first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
@@ -0,0 +1,7 @@
import type { IBaseCardProps } from '../BaseCard.types';
import type { JSXElement } from '@fluentui/utilities';
export interface ICardCalloutProps extends Omit<IBaseCardProps<{}, {}, {}>, 'content'> {
finalHeight?: number;
content?: JSXElement;
}
export declare const CardCallout: (props: ICardCalloutProps) => JSXElement | null;
@@ -0,0 +1,16 @@
define(["require", "exports", "tslib", "react", "../../../Utilities", "../../../common/DirectionalHint", "../../../Callout"], function (require, exports, tslib_1, React, Utilities_1, DirectionalHint_1, Callout_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CardCallout = void 0;
var CardCallout = function (props) {
var _a = props.gapSpace, gapSpace = _a === void 0 ? 0 : _a, _b = props.directionalHint, directionalHint = _b === void 0 ? DirectionalHint_1.DirectionalHint.bottomLeftEdge : _b, directionalHintFixed = props.directionalHintFixed, targetElement = props.targetElement, firstFocus = props.firstFocus, trapFocus = props.trapFocus, onLeave = props.onLeave, className = props.className, finalHeight = props.finalHeight, content = props.content, calloutProps = props.calloutProps;
var mergedCalloutProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties)), { className: className, target: targetElement, isBeakVisible: false, directionalHint: directionalHint, directionalHintFixed: directionalHintFixed, finalHeight: finalHeight, minPagePadding: 24, onDismiss: onLeave, gapSpace: gapSpace }), calloutProps);
return (React.createElement(React.Fragment, null, trapFocus ? (React.createElement(Callout_1.FocusTrapCallout, tslib_1.__assign({}, mergedCalloutProps, { focusTrapProps: {
forceFocusInsideTrap: false,
isClickableOutsideFocusTrap: true,
disableFirstFocus: !firstFocus,
} }), content)) : (React.createElement(Callout_1.Callout, tslib_1.__assign({}, mergedCalloutProps), content))));
};
exports.CardCallout = CardCallout;
});
//# sourceMappingURL=CardCallout.js.map
@@ -0,0 +1 @@
{"version":3,"file":"CardCallout.js","sourceRoot":"../src/","sources":["components/HoverCard/CardCallout/CardCallout.tsx"],"names":[],"mappings":";;;;IAgBO,IAAM,WAAW,GAAG,UAAC,KAAwB;QAEhD,IAAA,KAWE,KAAK,SAXK,EAAZ,QAAQ,mBAAG,CAAC,KAAA,EACZ,KAUE,KAAK,gBAVyC,EAAhD,eAAe,mBAAG,iCAAe,CAAC,cAAc,KAAA,EAChD,oBAAoB,GASlB,KAAK,qBATa,EACpB,aAAa,GAQX,KAAK,cARM,EACb,UAAU,GAOR,KAAK,WAPG,EACV,SAAS,GAMP,KAAK,UANE,EACT,OAAO,GAKL,KAAK,QALA,EACP,SAAS,GAIP,KAAK,UAJE,EACT,WAAW,GAGT,KAAK,YAHI,EACX,OAAO,GAEL,KAAK,QAFA,EACP,YAAY,GACV,KAAK,aADK,CACJ;QAEV,IAAM,kBAAkB,0DACnB,IAAA,0BAAc,EAAC,KAAK,EAAE,yBAAa,CAAC,KACvC,SAAS,WAAA,EACT,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,KAAK,EACpB,eAAe,iBAAA,EACf,oBAAoB,sBAAA,EACpB,WAAW,aAAA,EACX,cAAc,EAAE,EAAE,EAClB,SAAS,EAAE,OAAO,EAClB,QAAQ,UAAA,KACL,YAAY,CAChB,CAAC;QAEF,OAAO,CACL,0CACG,SAAS,CAAC,CAAC,CAAC,CACX,oBAAC,0BAAgB,uBACX,kBAAkB,IACtB,cAAc,EAAE;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,2BAA2B,EAAE,IAAI;gBACjC,iBAAiB,EAAE,CAAC,UAAU;aAC/B,KAEA,OAAO,CACS,CACpB,CAAC,CAAC,CAAC,CACF,oBAAC,iBAAO,uBAAK,kBAAkB,GAAG,OAAO,CAAW,CACrD,CACA,CACJ,CAAC;IACJ,CAAC,CAAC;IA/CW,QAAA,WAAW,eA+CtB","sourcesContent":["import * as React from 'react';\n\nimport { divProperties, getNativeProps } from '../../../Utilities';\nimport { DirectionalHint } from '../../../common/DirectionalHint';\nimport { Callout, FocusTrapCallout } from '../../../Callout';\nimport type { IBaseCardProps } from '../BaseCard.types';\nimport type { ICalloutProps } from '../../../Callout';\n\nimport type { JSXElement } from '@fluentui/utilities';\n\nexport interface ICardCalloutProps extends Omit<IBaseCardProps<{}, {}, {}>, 'content'> {\n finalHeight?: number;\n\n content?: JSXElement;\n}\n\nexport const CardCallout = (props: ICardCalloutProps): JSXElement | null => {\n const {\n gapSpace = 0,\n directionalHint = DirectionalHint.bottomLeftEdge,\n directionalHintFixed,\n targetElement,\n firstFocus,\n trapFocus,\n onLeave,\n className,\n finalHeight,\n content,\n calloutProps,\n } = props;\n\n const mergedCalloutProps: ICalloutProps = {\n ...getNativeProps(props, divProperties),\n className,\n target: targetElement,\n isBeakVisible: false,\n directionalHint,\n directionalHintFixed,\n finalHeight,\n minPagePadding: 24,\n onDismiss: onLeave,\n gapSpace,\n ...calloutProps,\n };\n\n return (\n <>\n {trapFocus ? (\n <FocusTrapCallout\n {...mergedCalloutProps}\n focusTrapProps={{\n forceFocusInsideTrap: false,\n isClickableOutsideFocusTrap: true,\n disableFirstFocus: !firstFocus,\n }}\n >\n {content}\n </FocusTrapCallout>\n ) : (\n <Callout {...mergedCalloutProps}>{content}</Callout>\n )}\n </>\n );\n};\n"]}