@fluentui/react-avatar 9.5.24 → 9.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +127 -1
- package/CHANGELOG.md +36 -2
- package/lib/components/Avatar/Avatar.js.map +1 -1
- package/lib/components/Avatar/renderAvatar.js +10 -2
- package/lib/components/Avatar/renderAvatar.js.map +1 -1
- package/lib/components/Avatar/useAvatar.js +7 -6
- package/lib/components/Avatar/useAvatar.js.map +1 -1
- package/lib/components/Avatar/useAvatarStyles.styles.js.map +1 -1
- package/lib/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib/components/AvatarGroup/renderAvatarGroup.js +5 -4
- package/lib/components/AvatarGroup/renderAvatarGroup.js.map +1 -1
- package/lib/components/AvatarGroup/useAvatarGroup.js +1 -1
- package/lib/components/AvatarGroup/useAvatarGroup.js.map +1 -1
- package/lib/components/AvatarGroup/useAvatarGroupContextValues.js +1 -1
- package/lib/components/AvatarGroup/useAvatarGroupContextValues.js.map +1 -1
- package/lib/components/AvatarGroup/useAvatarGroupStyles.styles.js.map +1 -1
- package/lib/components/AvatarGroupItem/AvatarGroupItem.js.map +1 -1
- package/lib/components/AvatarGroupItem/renderAvatarGroupItem.js +7 -2
- package/lib/components/AvatarGroupItem/renderAvatarGroupItem.js.map +1 -1
- package/lib/components/AvatarGroupItem/useAvatarGroupItem.js +1 -1
- package/lib/components/AvatarGroupItem/useAvatarGroupItem.js.map +1 -1
- package/lib/components/AvatarGroupItem/useAvatarGroupItemStyles.styles.js.map +1 -1
- package/lib/components/AvatarGroupPopover/AvatarGroupPopover.js.map +1 -1
- package/lib/components/AvatarGroupPopover/renderAvatarGroupPopover.js +17 -6
- package/lib/components/AvatarGroupPopover/renderAvatarGroupPopover.js.map +1 -1
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopover.js +3 -3
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopover.js.map +1 -1
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopoverContextValues.js.map +1 -1
- package/lib/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.styles.js.map +1 -1
- package/lib/contexts/AvatarContext.js.map +1 -1
- package/lib/utils/getInitials.js +3 -2
- package/lib/utils/getInitials.js.map +1 -1
- package/lib/utils/partitionAvatarGroupItems.js +1 -1
- package/lib/utils/partitionAvatarGroupItems.js.map +1 -1
- package/lib-commonjs/Avatar.js +2 -2
- package/lib-commonjs/Avatar.js.map +1 -1
- package/lib-commonjs/AvatarGroup.js +2 -2
- package/lib-commonjs/AvatarGroup.js.map +1 -1
- package/lib-commonjs/AvatarGroupItem.js +2 -2
- package/lib-commonjs/AvatarGroupItem.js.map +1 -1
- package/lib-commonjs/AvatarGroupPopover.js +2 -2
- package/lib-commonjs/AvatarGroupPopover.js.map +1 -1
- package/lib-commonjs/components/Avatar/Avatar.js +9 -7
- package/lib-commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib-commonjs/components/Avatar/index.js +6 -6
- package/lib-commonjs/components/Avatar/index.js.map +1 -1
- package/lib-commonjs/components/Avatar/renderAvatar.js +16 -6
- package/lib-commonjs/components/Avatar/renderAvatar.js.map +1 -1
- package/lib-commonjs/components/Avatar/useAvatar.js +31 -26
- package/lib-commonjs/components/Avatar/useAvatar.js.map +1 -1
- package/lib-commonjs/components/Avatar/useAvatarStyles.styles.js +17 -11
- package/lib-commonjs/components/Avatar/useAvatarStyles.styles.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/AvatarGroup.js +9 -7
- package/lib-commonjs/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/index.js +7 -7
- package/lib-commonjs/components/AvatarGroup/index.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/renderAvatarGroup.js +12 -9
- package/lib-commonjs/components/AvatarGroup/renderAvatarGroup.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/useAvatarGroup.js +11 -7
- package/lib-commonjs/components/AvatarGroup/useAvatarGroup.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupContextValues.js +4 -2
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupContextValues.js.map +1 -1
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupStyles.styles.js +10 -6
- package/lib-commonjs/components/AvatarGroup/useAvatarGroupStyles.styles.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.js +9 -7
- package/lib-commonjs/components/AvatarGroupItem/AvatarGroupItem.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/index.js +6 -6
- package/lib-commonjs/components/AvatarGroupItem/index.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/renderAvatarGroupItem.js +13 -6
- package/lib-commonjs/components/AvatarGroupItem/renderAvatarGroupItem.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItem.js +19 -17
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItem.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItemStyles.styles.js +20 -14
- package/lib-commonjs/components/AvatarGroupItem/useAvatarGroupItemStyles.styles.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/AvatarGroupPopover.js +9 -7
- package/lib-commonjs/components/AvatarGroupPopover/AvatarGroupPopover.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/AvatarGroupPopover.types.js +2 -2
- package/lib-commonjs/components/AvatarGroupPopover/AvatarGroupPopover.types.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/index.js +6 -6
- package/lib-commonjs/components/AvatarGroupPopover/index.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/renderAvatarGroupPopover.js +25 -12
- package/lib-commonjs/components/AvatarGroupPopover/renderAvatarGroupPopover.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopover.js +28 -26
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopover.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverContextValues.js +3 -1
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverContextValues.js.map +1 -1
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.styles.js +14 -10
- package/lib-commonjs/components/AvatarGroupPopover/useAvatarGroupPopoverStyles.styles.js.map +1 -1
- package/lib-commonjs/contexts/AvatarContext.js +8 -4
- package/lib-commonjs/contexts/AvatarContext.js.map +1 -1
- package/lib-commonjs/contexts/AvatarGroupContext.js +12 -6
- package/lib-commonjs/contexts/AvatarGroupContext.js.map +1 -1
- package/lib-commonjs/contexts/index.js +3 -3
- package/lib-commonjs/contexts/index.js.map +1 -1
- package/lib-commonjs/index.js +85 -31
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/getInitials.js +6 -3
- package/lib-commonjs/utils/getInitials.js.map +1 -1
- package/lib-commonjs/utils/index.js +6 -2
- package/lib-commonjs/utils/index.js.map +1 -1
- package/lib-commonjs/utils/partitionAvatarGroupItems.js +4 -2
- package/lib-commonjs/utils/partitionAvatarGroupItems.js.map +1 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["renderAvatarGroup.js"],"sourcesContent":["/** @jsxRuntime
|
|
1
|
+
{"version":3,"sources":["renderAvatarGroup.js"],"sourcesContent":["/** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { AvatarGroupProvider } from '../../contexts/AvatarGroupContext';\n/**\n * Render the final JSX of AvatarGroup\n */ export const renderAvatarGroup_unstable = (state, contextValues)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsx(AvatarGroupProvider, {\n value: contextValues.avatarGroup,\n children: /*#__PURE__*/ _jsx(state.root, {})\n });\n};\n"],"names":["renderAvatarGroup_unstable","state","contextValues","assertSlots","_jsx","AvatarGroupProvider","value","avatarGroup","children","root"],"mappings":"AAAA,0BAA0B,GAAG,iDAAiD;;;;+BAK7DA;;;eAAAA;;;4BAL4F;gCACjF;oCACQ;AAGzB,MAAMA,6BAA6B,CAACC,OAAOC;IAClDC,IAAAA,2BAAW,EAACF;IACZ,OAAO,WAAW,GAAGG,IAAAA,eAAI,EAACC,uCAAmB,EAAE;QAC3CC,OAAOJ,cAAcK,WAAW;QAChCC,UAAU,WAAW,GAAGJ,IAAAA,eAAI,EAACH,MAAMQ,IAAI,EAAE,CAAC;IAC9C;AACJ"}
|
|
@@ -9,15 +9,19 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
useAvatarGroup_unstable: ()
|
|
13
|
-
|
|
12
|
+
useAvatarGroup_unstable: function() {
|
|
13
|
+
return useAvatarGroup_unstable;
|
|
14
|
+
},
|
|
15
|
+
defaultAvatarGroupSize: function() {
|
|
16
|
+
return defaultAvatarGroupSize;
|
|
17
|
+
}
|
|
14
18
|
});
|
|
15
|
-
const
|
|
16
|
-
const _react = /*#__PURE__*/
|
|
17
|
-
const
|
|
19
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
21
|
+
const _reactutilities = require("@fluentui/react-utilities");
|
|
18
22
|
const useAvatarGroup_unstable = (props, ref)=>{
|
|
19
|
-
const { layout ='spread'
|
|
20
|
-
const root =
|
|
23
|
+
const { layout = 'spread', size = defaultAvatarGroupSize } = props;
|
|
24
|
+
const root = _reactutilities.slot.always((0, _reactutilities.getNativeElementProps)('div', {
|
|
21
25
|
role: 'group',
|
|
22
26
|
...props,
|
|
23
27
|
ref
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useAvatarGroup.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, slot } from '@fluentui/react-utilities';\n/**\n * Create the state required to render AvatarGroup.\n *\n * The returned state can be modified with hooks such as useAvatarGroupStyles_unstable,\n * before being passed to renderAvatarGroup_unstable.\n *\n * @param props - props from this instance of AvatarGroup\n * @param ref - reference to root HTMLElement of AvatarGroup\n */ export const useAvatarGroup_unstable = (props, ref)=>{\n const { layout ='spread'
|
|
1
|
+
{"version":3,"sources":["useAvatarGroup.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, slot } from '@fluentui/react-utilities';\n/**\n * Create the state required to render AvatarGroup.\n *\n * The returned state can be modified with hooks such as useAvatarGroupStyles_unstable,\n * before being passed to renderAvatarGroup_unstable.\n *\n * @param props - props from this instance of AvatarGroup\n * @param ref - reference to root HTMLElement of AvatarGroup\n */ export const useAvatarGroup_unstable = (props, ref)=>{\n const { layout = 'spread', size = defaultAvatarGroupSize } = props;\n const root = slot.always(getNativeElementProps('div', {\n role: 'group',\n ...props,\n ref\n }, [\n 'size'\n ]), {\n elementType: 'div'\n });\n return {\n layout,\n size,\n components: {\n root: 'div'\n },\n root\n };\n};\nexport const defaultAvatarGroupSize = 32;\n"],"names":["useAvatarGroup_unstable","defaultAvatarGroupSize","props","ref","layout","size","root","slot","always","getNativeElementProps","role","elementType","components"],"mappings":";;;;;;;;;;;IAUiBA,uBAAuB;eAAvBA;;IAoBJC,sBAAsB;eAAtBA;;;;iEA9BU;gCACqB;AASjC,MAAMD,0BAA0B,CAACE,OAAOC;IAC/C,MAAM,EAAEC,SAAS,QAAQ,EAAEC,OAAOJ,sBAAsB,EAAE,GAAGC;IAC7D,MAAMI,OAAOC,oBAAI,CAACC,MAAM,CAACC,IAAAA,qCAAqB,EAAC,OAAO;QAClDC,MAAM;QACN,GAAGR,KAAK;QACRC;IACJ,GAAG;QACC;KACH,GAAG;QACAQ,aAAa;IACjB;IACA,OAAO;QACHP;QACAC;QACAO,YAAY;YACRN,MAAM;QACV;QACAA;IACJ;AACJ;AACO,MAAML,yBAAyB"}
|
|
@@ -4,10 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "useAvatarGroupContextValues", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return useAvatarGroupContextValues;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const useAvatarGroupContextValues = (state)=>{
|
|
10
|
-
const { layout
|
|
12
|
+
const { layout, size } = state;
|
|
11
13
|
const avatarGroup = {
|
|
12
14
|
layout,
|
|
13
15
|
size
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useAvatarGroupContextValues.js"],"sourcesContent":["export const useAvatarGroupContextValues = (state)=>{\n const { layout
|
|
1
|
+
{"version":3,"sources":["useAvatarGroupContextValues.js"],"sourcesContent":["export const useAvatarGroupContextValues = (state)=>{\n const { layout, size } = state;\n const avatarGroup = {\n layout,\n size\n };\n return {\n avatarGroup\n };\n};\n"],"names":["useAvatarGroupContextValues","state","layout","size","avatarGroup"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,MAAMA,8BAA8B,CAACC;IACxC,MAAM,EAAEC,MAAM,EAAEC,IAAI,EAAE,GAAGF;IACzB,MAAMG,cAAc;QAChBF;QACAC;IACJ;IACA,OAAO;QACHC;IACJ;AACJ"}
|
|
@@ -9,17 +9,21 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
avatarGroupClassNames: ()
|
|
13
|
-
|
|
12
|
+
avatarGroupClassNames: function() {
|
|
13
|
+
return avatarGroupClassNames;
|
|
14
|
+
},
|
|
15
|
+
useAvatarGroupStyles_unstable: function() {
|
|
16
|
+
return useAvatarGroupStyles_unstable;
|
|
17
|
+
}
|
|
14
18
|
});
|
|
15
19
|
const _react = require("@griffel/react");
|
|
16
|
-
const
|
|
20
|
+
const _useAvatarStylesstyles = require("../Avatar/useAvatarStyles.styles");
|
|
17
21
|
const avatarGroupClassNames = {
|
|
18
22
|
root: 'fui-AvatarGroup'
|
|
19
23
|
};
|
|
20
24
|
/**
|
|
21
25
|
* Styles for the root slot.
|
|
22
|
-
*/ const useStyles = /*#__PURE__*/ (0, _react
|
|
26
|
+
*/ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
23
27
|
base: {
|
|
24
28
|
mc9l5x: "ftuwxu6",
|
|
25
29
|
qhf8xq: "f10pi13n"
|
|
@@ -46,9 +50,9 @@ const avatarGroupClassNames = {
|
|
|
46
50
|
]
|
|
47
51
|
});
|
|
48
52
|
const useAvatarGroupStyles_unstable = (state)=>{
|
|
49
|
-
const { layout
|
|
53
|
+
const { layout, size } = state;
|
|
50
54
|
const styles = useStyles();
|
|
51
|
-
const sizeStyles = (0,
|
|
55
|
+
const sizeStyles = (0, _useAvatarStylesstyles.useSizeStyles)();
|
|
52
56
|
state.root.className = (0, _react.mergeClasses)(avatarGroupClassNames.root, styles.base, layout === 'pie' && sizeStyles[size], layout === 'pie' && styles.pie, state.root.className);
|
|
53
57
|
return state;
|
|
54
58
|
}; //# sourceMappingURL=useAvatarGroupStyles.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useAvatarGroupStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { useSizeStyles } from '../Avatar/useAvatarStyles.styles';\nexport const avatarGroupClassNames = {\n root: 'fui-AvatarGroup'\n};\n/**\n * Styles for the root slot.\n */\nconst useStyles = /*#__PURE__*/__styles({\n base: {\n mc9l5x: \"ftuwxu6\",\n qhf8xq: \"f10pi13n\"\n },\n pie: {\n Bgl5zvf: \"f1uz6ud1\",\n De3pzq: \"f1ganh6p\",\n Bsw6fvg: \"fe2ae1k\"\n }\n}, {\n d: [\".ftuwxu6{display:inline-flex;}\", \".f10pi13n{position:relative;}\", \".f1uz6ud1{clip-path:circle(50%);}\", \".f1ganh6p{background-color:var(--colorTransparentStroke);}\"],\n m: [[\"@media (forced-colors: active){.fe2ae1k{background-color:CanvasText;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\n/**\n * Apply styling to the AvatarGroup slots based on the state\n */\nexport const useAvatarGroupStyles_unstable = state => {\n const {\n layout,\n size\n } = state;\n const styles = useStyles();\n const sizeStyles = useSizeStyles();\n state.root.className = mergeClasses(avatarGroupClassNames.root, styles.base, layout === 'pie' && sizeStyles[size], layout === 'pie' && styles.pie, state.root.className);\n return state;\n};\n//# sourceMappingURL=useAvatarGroupStyles.styles.js.map"],"names":["avatarGroupClassNames","useAvatarGroupStyles_unstable","root","useStyles","__styles","base","mc9l5x","qhf8xq","pie","Bgl5zvf","De3pzq","Bsw6fvg","d","m","state","layout","size","styles","sizeStyles","useSizeStyles","className","mergeClasses"],"mappings":";;;;;;;;;;;IAGaA,qBAAqB
|
|
1
|
+
{"version":3,"sources":["useAvatarGroupStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { useSizeStyles } from '../Avatar/useAvatarStyles.styles';\nexport const avatarGroupClassNames = {\n root: 'fui-AvatarGroup'\n};\n/**\n * Styles for the root slot.\n */\nconst useStyles = /*#__PURE__*/__styles({\n base: {\n mc9l5x: \"ftuwxu6\",\n qhf8xq: \"f10pi13n\"\n },\n pie: {\n Bgl5zvf: \"f1uz6ud1\",\n De3pzq: \"f1ganh6p\",\n Bsw6fvg: \"fe2ae1k\"\n }\n}, {\n d: [\".ftuwxu6{display:inline-flex;}\", \".f10pi13n{position:relative;}\", \".f1uz6ud1{clip-path:circle(50%);}\", \".f1ganh6p{background-color:var(--colorTransparentStroke);}\"],\n m: [[\"@media (forced-colors: active){.fe2ae1k{background-color:CanvasText;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\n/**\n * Apply styling to the AvatarGroup slots based on the state\n */\nexport const useAvatarGroupStyles_unstable = state => {\n const {\n layout,\n size\n } = state;\n const styles = useStyles();\n const sizeStyles = useSizeStyles();\n state.root.className = mergeClasses(avatarGroupClassNames.root, styles.base, layout === 'pie' && sizeStyles[size], layout === 'pie' && styles.pie, state.root.className);\n return state;\n};\n//# sourceMappingURL=useAvatarGroupStyles.styles.js.map"],"names":["avatarGroupClassNames","useAvatarGroupStyles_unstable","root","useStyles","__styles","base","mc9l5x","qhf8xq","pie","Bgl5zvf","De3pzq","Bsw6fvg","d","m","state","layout","size","styles","sizeStyles","useSizeStyles","className","mergeClasses"],"mappings":";;;;;;;;;;;IAGaA,qBAAqB;eAArBA;;IAyBAC,6BAA6B;eAA7BA;;;uBA5B0B;uCAET;AACvB,MAAMD,wBAAwB;IACnCE,MAAM;AACR;AACA;;CAEC,GACD,MAAMC,YAAY,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IACtCC,MAAM;QACJC,QAAQ;QACRC,QAAQ;IACV;IACAC,KAAK;QACHC,SAAS;QACTC,QAAQ;QACRC,SAAS;IACX;AACF,GAAG;IACDC,GAAG;QAAC;QAAkC;QAAiC;QAAqC;KAA6D;IACzKC,GAAG;QAAC;YAAC;YAA0E;gBAC7EA,GAAG;YACL;SAAE;KAAC;AACL;AAIO,MAAMZ,gCAAgCa,CAAAA;IAC3C,MAAM,EACJC,MAAM,EACNC,IAAI,EACL,GAAGF;IACJ,MAAMG,SAASd;IACf,MAAMe,aAAaC,IAAAA,oCAAa;IAChCL,MAAMZ,IAAI,CAACkB,SAAS,GAAGC,IAAAA,mBAAY,EAACrB,sBAAsBE,IAAI,EAAEe,OAAOZ,IAAI,EAAEU,WAAW,SAASG,UAAU,CAACF,KAAK,EAAED,WAAW,SAASE,OAAOT,GAAG,EAAEM,MAAMZ,IAAI,CAACkB,SAAS;IACvK,OAAON;AACT,GACA,uDAAuD"}
|
|
@@ -4,18 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "AvatarGroupItem", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return AvatarGroupItem;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const
|
|
10
|
-
const _react = /*#__PURE__*/
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
11
13
|
const _renderAvatarGroupItem = require("./renderAvatarGroupItem");
|
|
12
14
|
const _useAvatarGroupItem = require("./useAvatarGroupItem");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
+
const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
|
|
16
|
+
const _useAvatarGroupItemStylesstyles = require("./useAvatarGroupItemStyles.styles");
|
|
15
17
|
const AvatarGroupItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
16
18
|
const state = (0, _useAvatarGroupItem.useAvatarGroupItem_unstable)(props, ref);
|
|
17
|
-
(0,
|
|
18
|
-
(0,
|
|
19
|
+
(0, _useAvatarGroupItemStylesstyles.useAvatarGroupItemStyles_unstable)(state);
|
|
20
|
+
(0, _reactsharedcontexts.useCustomStyleHook_unstable)('useAvatarGroupItemStyles_unstable')(state);
|
|
19
21
|
return (0, _renderAvatarGroupItem.renderAvatarGroupItem_unstable)(state);
|
|
20
22
|
});
|
|
21
23
|
AvatarGroupItem.displayName = 'AvatarGroupItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["AvatarGroupItem.js"],"sourcesContent":["import * as React from 'react';\nimport { renderAvatarGroupItem_unstable } from './renderAvatarGroupItem';\nimport { useAvatarGroupItem_unstable } from './useAvatarGroupItem';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useAvatarGroupItemStyles_unstable } from './useAvatarGroupItemStyles.styles';\n/**\n * The AvatarGroupItem component represents a single person or entity.\n * AvatarGroupItem should only be used in an AvatarGroup component.\n */ export const AvatarGroupItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useAvatarGroupItem_unstable(props, ref);\n useAvatarGroupItemStyles_unstable(state);\n useCustomStyleHook_unstable('useAvatarGroupItemStyles_unstable')(state);\n return renderAvatarGroupItem_unstable(state);\n});\nAvatarGroupItem.displayName = 'AvatarGroupItem';\n"],"names":["AvatarGroupItem","React","forwardRef","props","ref","state","useAvatarGroupItem_unstable","useAvatarGroupItemStyles_unstable","useCustomStyleHook_unstable","renderAvatarGroupItem_unstable","displayName"],"mappings":";;;;+BAQiBA
|
|
1
|
+
{"version":3,"sources":["AvatarGroupItem.js"],"sourcesContent":["import * as React from 'react';\nimport { renderAvatarGroupItem_unstable } from './renderAvatarGroupItem';\nimport { useAvatarGroupItem_unstable } from './useAvatarGroupItem';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useAvatarGroupItemStyles_unstable } from './useAvatarGroupItemStyles.styles';\n/**\n * The AvatarGroupItem component represents a single person or entity.\n * AvatarGroupItem should only be used in an AvatarGroup component.\n */ export const AvatarGroupItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useAvatarGroupItem_unstable(props, ref);\n useAvatarGroupItemStyles_unstable(state);\n useCustomStyleHook_unstable('useAvatarGroupItemStyles_unstable')(state);\n return renderAvatarGroupItem_unstable(state);\n});\nAvatarGroupItem.displayName = 'AvatarGroupItem';\n"],"names":["AvatarGroupItem","React","forwardRef","props","ref","state","useAvatarGroupItem_unstable","useAvatarGroupItemStyles_unstable","useCustomStyleHook_unstable","renderAvatarGroupItem_unstable","displayName"],"mappings":";;;;+BAQiBA;;;eAAAA;;;;iEARM;uCACwB;oCACH;qCACA;gDACM;AAIvC,MAAMA,kBAAkB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACtE,MAAMC,QAAQC,IAAAA,+CAA2B,EAACH,OAAOC;IACjDG,IAAAA,iEAAiC,EAACF;IAClCG,IAAAA,gDAA2B,EAAC,qCAAqCH;IACjE,OAAOI,IAAAA,qDAA8B,EAACJ;AAC1C;AACAL,gBAAgBU,WAAW,GAAG"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
|
6
|
+
_export_star._(require("./AvatarGroupItem"), exports);
|
|
7
|
+
_export_star._(require("./AvatarGroupItem.types"), exports);
|
|
8
|
+
_export_star._(require("./renderAvatarGroupItem"), exports);
|
|
9
|
+
_export_star._(require("./useAvatarGroupItem"), exports);
|
|
10
|
+
_export_star._(require("./useAvatarGroupItemStyles.styles"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './AvatarGroupItem';\nexport * from './AvatarGroupItem.types';\nexport * from './renderAvatarGroupItem';\nexport * from './useAvatarGroupItem';\nexport * from './useAvatarGroupItemStyles.styles';\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './AvatarGroupItem';\nexport * from './AvatarGroupItem.types';\nexport * from './renderAvatarGroupItem';\nexport * from './useAvatarGroupItem';\nexport * from './useAvatarGroupItemStyles.styles';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
/** @jsxRuntime
|
|
1
|
+
/** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ "use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "renderAvatarGroupItem_unstable", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return renderAvatarGroupItem_unstable;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
+
const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
|
|
12
|
+
const _reactutilities = require("@fluentui/react-utilities");
|
|
11
13
|
const renderAvatarGroupItem_unstable = (state)=>{
|
|
12
|
-
(0,
|
|
13
|
-
return /*#__PURE__*/ (0,
|
|
14
|
+
(0, _reactutilities.assertSlots)(state);
|
|
15
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(state.root, {
|
|
16
|
+
children: [
|
|
17
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(state.avatar, {}),
|
|
18
|
+
state.isOverflowItem && /*#__PURE__*/ (0, _jsxruntime.jsx)(state.overflowLabel, {})
|
|
19
|
+
]
|
|
20
|
+
});
|
|
14
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["renderAvatarGroupItem.js"],"sourcesContent":["/** @jsxRuntime
|
|
1
|
+
{"version":3,"sources":["renderAvatarGroupItem.js"],"sourcesContent":["/** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ import { jsx as _jsx, jsxs as _jsxs } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of AvatarGroupItem\n */ export const renderAvatarGroupItem_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsxs(state.root, {\n children: [\n /*#__PURE__*/ _jsx(state.avatar, {}),\n state.isOverflowItem && /*#__PURE__*/ _jsx(state.overflowLabel, {})\n ]\n });\n};\n"],"names":["renderAvatarGroupItem_unstable","state","assertSlots","_jsxs","root","children","_jsx","avatar","isOverflowItem","overflowLabel"],"mappings":"AAAA,0BAA0B,GAAG,iDAAiD;;;;+BAI7DA;;;eAAAA;;;4BAJ2G;gCAChG;AAGjB,MAAMA,iCAAiC,CAACC;IAC/CC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,gBAAK,EAACF,MAAMG,IAAI,EAAE;QACnCC,UAAU;YACN,WAAW,GAAGC,IAAAA,eAAI,EAACL,MAAMM,MAAM,EAAE,CAAC;YAClCN,MAAMO,cAAc,IAAI,WAAW,GAAGF,IAAAA,eAAI,EAACL,MAAMQ,aAAa,EAAE,CAAC;SACpE;IACL;AACJ"}
|
|
@@ -4,23 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "useAvatarGroupItem_unstable", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return useAvatarGroupItem_unstable;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const
|
|
10
|
-
const _react = /*#__PURE__*/
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _Avatar = require("../Avatar/Avatar");
|
|
14
|
+
const _AvatarGroupContext = require("../../contexts/AvatarGroupContext");
|
|
13
15
|
const _useAvatarGroup = require("../AvatarGroup/useAvatarGroup");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
+
const _reactutilities = require("@fluentui/react-utilities");
|
|
17
|
+
const _reactcontextselector = require("@fluentui/react-context-selector");
|
|
16
18
|
const useAvatarGroupItem_unstable = (props, ref)=>{
|
|
17
|
-
const groupIsOverflow = (0,
|
|
18
|
-
const groupSize = (0,
|
|
19
|
-
const layout = (0,
|
|
19
|
+
const groupIsOverflow = (0, _AvatarGroupContext.useAvatarGroupContext_unstable)((ctx)=>ctx.isOverflow);
|
|
20
|
+
const groupSize = (0, _AvatarGroupContext.useAvatarGroupContext_unstable)((ctx)=>ctx.size);
|
|
21
|
+
const layout = (0, _AvatarGroupContext.useAvatarGroupContext_unstable)((ctx)=>ctx.layout);
|
|
20
22
|
// Since the primary slot is not an intrinsic element, getPartitionedNativeProps cannot be used here.
|
|
21
|
-
const { style
|
|
23
|
+
const { style, className, ...avatarSlotProps } = props;
|
|
22
24
|
const size = groupSize !== null && groupSize !== void 0 ? groupSize : _useAvatarGroup.defaultAvatarGroupSize;
|
|
23
|
-
const hasAvatarGroupContext = (0,
|
|
25
|
+
const hasAvatarGroupContext = (0, _reactcontextselector.useHasParentContext)(_AvatarGroupContext.AvatarGroupContext);
|
|
24
26
|
if (process.env.NODE_ENV !== 'production' && !hasAvatarGroupContext) {
|
|
25
27
|
// eslint-disable-next-line no-console
|
|
26
28
|
console.warn('AvatarGroupItem must only be used inside an AvatarGroup component.');
|
|
@@ -31,26 +33,26 @@ const useAvatarGroupItem_unstable = (props, ref)=>{
|
|
|
31
33
|
size,
|
|
32
34
|
components: {
|
|
33
35
|
root: groupIsOverflow ? 'li' : 'div',
|
|
34
|
-
avatar:
|
|
36
|
+
avatar: _Avatar.Avatar,
|
|
35
37
|
overflowLabel: 'span'
|
|
36
38
|
},
|
|
37
|
-
root:
|
|
39
|
+
root: _reactutilities.slot.always(props.root, {
|
|
38
40
|
defaultProps: {
|
|
39
41
|
style,
|
|
40
42
|
className
|
|
41
43
|
},
|
|
42
44
|
elementType: groupIsOverflow ? 'li' : 'div'
|
|
43
45
|
}),
|
|
44
|
-
avatar:
|
|
46
|
+
avatar: _reactutilities.slot.always(props.avatar, {
|
|
45
47
|
defaultProps: {
|
|
46
48
|
ref,
|
|
47
49
|
size,
|
|
48
50
|
color: 'colorful',
|
|
49
51
|
...avatarSlotProps
|
|
50
52
|
},
|
|
51
|
-
elementType:
|
|
53
|
+
elementType: _Avatar.Avatar
|
|
52
54
|
}),
|
|
53
|
-
overflowLabel:
|
|
55
|
+
overflowLabel: _reactutilities.slot.always(props.overflowLabel, {
|
|
54
56
|
defaultProps: {
|
|
55
57
|
// Avatar already has its aria-label set to the name, this will prevent the name to be read twice.
|
|
56
58
|
'aria-hidden': true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useAvatarGroupItem.js"],"sourcesContent":["import * as React from 'react';\nimport { Avatar } from '../Avatar/Avatar';\nimport { AvatarGroupContext, useAvatarGroupContext_unstable } from '../../contexts/AvatarGroupContext';\nimport { defaultAvatarGroupSize } from '../AvatarGroup/useAvatarGroup';\nimport { slot } from '@fluentui/react-utilities';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\n/**\n * Create the state required to render AvatarGroupItem.\n *\n * The returned state can be modified with hooks such as useAvatarGroupItemStyles_unstable,\n * before being passed to renderAvatarGroupItem_unstable.\n *\n * @param props - props from this instance of AvatarGroupItem\n * @param ref - reference to root HTMLElement of AvatarGroupItem\n */ export const useAvatarGroupItem_unstable = (props, ref)=>{\n const groupIsOverflow = useAvatarGroupContext_unstable((ctx)=>ctx.isOverflow);\n const groupSize = useAvatarGroupContext_unstable((ctx)=>ctx.size);\n const layout = useAvatarGroupContext_unstable((ctx)=>ctx.layout);\n // Since the primary slot is not an intrinsic element, getPartitionedNativeProps cannot be used here.\n const { style
|
|
1
|
+
{"version":3,"sources":["useAvatarGroupItem.js"],"sourcesContent":["import * as React from 'react';\nimport { Avatar } from '../Avatar/Avatar';\nimport { AvatarGroupContext, useAvatarGroupContext_unstable } from '../../contexts/AvatarGroupContext';\nimport { defaultAvatarGroupSize } from '../AvatarGroup/useAvatarGroup';\nimport { slot } from '@fluentui/react-utilities';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\n/**\n * Create the state required to render AvatarGroupItem.\n *\n * The returned state can be modified with hooks such as useAvatarGroupItemStyles_unstable,\n * before being passed to renderAvatarGroupItem_unstable.\n *\n * @param props - props from this instance of AvatarGroupItem\n * @param ref - reference to root HTMLElement of AvatarGroupItem\n */ export const useAvatarGroupItem_unstable = (props, ref)=>{\n const groupIsOverflow = useAvatarGroupContext_unstable((ctx)=>ctx.isOverflow);\n const groupSize = useAvatarGroupContext_unstable((ctx)=>ctx.size);\n const layout = useAvatarGroupContext_unstable((ctx)=>ctx.layout);\n // Since the primary slot is not an intrinsic element, getPartitionedNativeProps cannot be used here.\n const { style, className, ...avatarSlotProps } = props;\n const size = groupSize !== null && groupSize !== void 0 ? groupSize : defaultAvatarGroupSize;\n const hasAvatarGroupContext = useHasParentContext(AvatarGroupContext);\n if (process.env.NODE_ENV !== 'production' && !hasAvatarGroupContext) {\n // eslint-disable-next-line no-console\n console.warn('AvatarGroupItem must only be used inside an AvatarGroup component.');\n }\n return {\n isOverflowItem: groupIsOverflow,\n layout,\n size,\n components: {\n root: groupIsOverflow ? 'li' : 'div',\n avatar: Avatar,\n overflowLabel: 'span'\n },\n root: slot.always(props.root, {\n defaultProps: {\n style,\n className\n },\n elementType: groupIsOverflow ? 'li' : 'div'\n }),\n avatar: slot.always(props.avatar, {\n defaultProps: {\n ref,\n size,\n color: 'colorful',\n ...avatarSlotProps\n },\n elementType: Avatar\n }),\n overflowLabel: slot.always(props.overflowLabel, {\n defaultProps: {\n // Avatar already has its aria-label set to the name, this will prevent the name to be read twice.\n 'aria-hidden': true,\n children: props.name\n },\n elementType: 'span'\n })\n };\n};\n"],"names":["useAvatarGroupItem_unstable","props","ref","groupIsOverflow","useAvatarGroupContext_unstable","ctx","isOverflow","groupSize","size","layout","style","className","avatarSlotProps","defaultAvatarGroupSize","hasAvatarGroupContext","useHasParentContext","AvatarGroupContext","process","env","NODE_ENV","console","warn","isOverflowItem","components","root","avatar","Avatar","overflowLabel","slot","always","defaultProps","elementType","color","children","name"],"mappings":";;;;+BAciBA;;;eAAAA;;;;iEAdM;wBACA;oCAC4C;gCAC5B;gCAClB;sCACe;AASzB,MAAMA,8BAA8B,CAACC,OAAOC;IACnD,MAAMC,kBAAkBC,IAAAA,kDAA8B,EAAC,CAACC,MAAMA,IAAIC,UAAU;IAC5E,MAAMC,YAAYH,IAAAA,kDAA8B,EAAC,CAACC,MAAMA,IAAIG,IAAI;IAChE,MAAMC,SAASL,IAAAA,kDAA8B,EAAC,CAACC,MAAMA,IAAII,MAAM;IAC/D,qGAAqG;IACrG,MAAM,EAAEC,KAAK,EAAEC,SAAS,EAAE,GAAGC,iBAAiB,GAAGX;IACjD,MAAMO,OAAOD,cAAc,QAAQA,cAAc,KAAK,IAAIA,YAAYM,sCAAsB;IAC5F,MAAMC,wBAAwBC,IAAAA,yCAAmB,EAACC,sCAAkB;IACpE,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,gBAAgB,CAACL,uBAAuB;QACjE,sCAAsC;QACtCM,QAAQC,IAAI,CAAC;IACjB;IACA,OAAO;QACHC,gBAAgBnB;QAChBM;QACAD;QACAe,YAAY;YACRC,MAAMrB,kBAAkB,OAAO;YAC/BsB,QAAQC,cAAM;YACdC,eAAe;QACnB;QACAH,MAAMI,oBAAI,CAACC,MAAM,CAAC5B,MAAMuB,IAAI,EAAE;YAC1BM,cAAc;gBACVpB;gBACAC;YACJ;YACAoB,aAAa5B,kBAAkB,OAAO;QAC1C;QACAsB,QAAQG,oBAAI,CAACC,MAAM,CAAC5B,MAAMwB,MAAM,EAAE;YAC9BK,cAAc;gBACV5B;gBACAM;gBACAwB,OAAO;gBACP,GAAGpB,eAAe;YACtB;YACAmB,aAAaL,cAAM;QACvB;QACAC,eAAeC,oBAAI,CAACC,MAAM,CAAC5B,MAAM0B,aAAa,EAAE;YAC5CG,cAAc;gBACV,kGAAkG;gBAClG,eAAe;gBACfG,UAAUhC,MAAMiC,IAAI;YACxB;YACAH,aAAa;QACjB;IACJ;AACJ"}
|
|
@@ -9,13 +9,19 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
avatarGroupItemClassNames: ()
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
avatarGroupItemClassNames: function() {
|
|
13
|
+
return avatarGroupItemClassNames;
|
|
14
|
+
},
|
|
15
|
+
useAvatarGroupItemStyles_unstable: function() {
|
|
16
|
+
return useAvatarGroupItemStyles_unstable;
|
|
17
|
+
},
|
|
18
|
+
useGroupChildClassName: function() {
|
|
19
|
+
return useGroupChildClassName;
|
|
20
|
+
}
|
|
15
21
|
});
|
|
16
22
|
const _react = require("@griffel/react");
|
|
17
|
-
const
|
|
18
|
-
const
|
|
23
|
+
const _Avatar = require("../../Avatar");
|
|
24
|
+
const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
|
|
19
25
|
const avatarGroupItemClassNames = {
|
|
20
26
|
root: 'fui-AvatarGroupItem',
|
|
21
27
|
avatar: 'fui-AvatarGroupItem__avatar',
|
|
@@ -24,7 +30,7 @@ const avatarGroupItemClassNames = {
|
|
|
24
30
|
const avatarGroupItemDividerWidthVar = '--fuiAvatarGroupItem__divider--width';
|
|
25
31
|
/**
|
|
26
32
|
* Styles for the root slot
|
|
27
|
-
*/ const useRootStyles = /*#__PURE__*/ (0, _react
|
|
33
|
+
*/ const useRootStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
28
34
|
base: {
|
|
29
35
|
Bt984gj: "f122n59",
|
|
30
36
|
mc9l5x: "ftuwxu6",
|
|
@@ -79,7 +85,7 @@ const avatarGroupItemDividerWidthVar = '--fuiAvatarGroupItem__divider--width';
|
|
|
79
85
|
});
|
|
80
86
|
/**
|
|
81
87
|
* Styles for the avatar slot
|
|
82
|
-
*/ const useAvatarStyles = /*#__PURE__*/ (0, _react
|
|
88
|
+
*/ const useAvatarStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
83
89
|
nonOverflowItem: {
|
|
84
90
|
qhf8xq: "f1euv43f"
|
|
85
91
|
},
|
|
@@ -112,7 +118,7 @@ const avatarGroupItemDividerWidthVar = '--fuiAvatarGroupItem__divider--width';
|
|
|
112
118
|
});
|
|
113
119
|
/**
|
|
114
120
|
* Styles for the label slot
|
|
115
|
-
*/ const useOverflowLabelStyles = /*#__PURE__*/ (0, _react
|
|
121
|
+
*/ const useOverflowLabelStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
116
122
|
base: {
|
|
117
123
|
Frg6f3: [
|
|
118
124
|
"foyynoy",
|
|
@@ -137,7 +143,7 @@ const avatarGroupItemDividerWidthVar = '--fuiAvatarGroupItem__divider--width';
|
|
|
137
143
|
});
|
|
138
144
|
/**
|
|
139
145
|
* Styles for the stack layout
|
|
140
|
-
*/ const useStackStyles = /*#__PURE__*/ (0, _react
|
|
146
|
+
*/ const useStackStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
141
147
|
thick: {
|
|
142
148
|
E5pizo: "foiuzp5"
|
|
143
149
|
},
|
|
@@ -188,7 +194,7 @@ const avatarGroupItemDividerWidthVar = '--fuiAvatarGroupItem__divider--width';
|
|
|
188
194
|
});
|
|
189
195
|
/**
|
|
190
196
|
* Styles for the spread layout
|
|
191
|
-
*/ const useSpreadStyles = /*#__PURE__*/ (0, _react
|
|
197
|
+
*/ const useSpreadStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
192
198
|
s: {
|
|
193
199
|
jhia2w: [
|
|
194
200
|
"f7lhxv7",
|
|
@@ -235,7 +241,7 @@ const avatarGroupItemDividerWidthVar = '--fuiAvatarGroupItem__divider--width';
|
|
|
235
241
|
});
|
|
236
242
|
/**
|
|
237
243
|
* Styles for the pie layout
|
|
238
|
-
*/ const usePieStyles = /*#__PURE__*/ (0, _react
|
|
244
|
+
*/ const usePieStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
239
245
|
base: {
|
|
240
246
|
qhf8xq: "f1euv43f"
|
|
241
247
|
},
|
|
@@ -333,13 +339,13 @@ const avatarGroupItemDividerWidthVar = '--fuiAvatarGroupItem__divider--width';
|
|
|
333
339
|
]
|
|
334
340
|
});
|
|
335
341
|
const useAvatarGroupItemStyles_unstable = (state)=>{
|
|
336
|
-
const { isOverflowItem
|
|
337
|
-
const { dir
|
|
342
|
+
const { isOverflowItem, layout, size } = state;
|
|
343
|
+
const { dir } = (0, _reactsharedcontexts.useFluent_unstable)();
|
|
338
344
|
const avatarStyles = useAvatarStyles();
|
|
339
345
|
const overflowLabelStyles = useOverflowLabelStyles();
|
|
340
346
|
const pieStyles = usePieStyles();
|
|
341
347
|
const rootStyles = useRootStyles();
|
|
342
|
-
const sizeStyles = (0,
|
|
348
|
+
const sizeStyles = (0, _Avatar.useSizeStyles)();
|
|
343
349
|
const groupChildClassName = useGroupChildClassName(layout, size);
|
|
344
350
|
const rootClasses = [
|
|
345
351
|
rootStyles.base
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useAvatarGroupItemStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { useSizeStyles } from '../../Avatar';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nexport const avatarGroupItemClassNames = {\n root: 'fui-AvatarGroupItem',\n avatar: 'fui-AvatarGroupItem__avatar',\n overflowLabel: 'fui-AvatarGroupItem__overflowLabel'\n};\nconst avatarGroupItemDividerWidthVar = '--fuiAvatarGroupItem__divider--width';\n/**\n * Styles for the root slot\n */\nconst useRootStyles = /*#__PURE__*/__styles({\n base: {\n Bt984gj: \"f122n59\",\n mc9l5x: \"ftuwxu6\",\n Bnnss6s: \"fi64zpg\",\n qhf8xq: \"f10pi13n\"\n },\n overflowItem: {\n z8tnut: \"f1ywm7hm\",\n z189sj: [\"f7x41pl\", \"fruq291\"],\n Byoj8tv: \"f14wxoun\",\n uwmqm3: [\"fruq291\", \"f7x41pl\"]\n },\n nonOverflowItem: {\n Bbmb7ep: [\"f8fbkgy\", \"f1nfllo7\"],\n Beyfa6y: [\"f1nfllo7\", \"f8fbkgy\"],\n B7oj6ja: [\"f1djnp8u\", \"f1s8kh49\"],\n Btl43ni: [\"f1s8kh49\", \"f1djnp8u\"]\n }\n}, {\n d: [\".f122n59{align-items:center;}\", \".ftuwxu6{display:inline-flex;}\", \".fi64zpg{flex-shrink:0;}\", \".f10pi13n{position:relative;}\", \".f1ywm7hm{padding-top:var(--spacingVerticalXS);}\", \".f7x41pl{padding-right:var(--spacingHorizontalXS);}\", \".fruq291{padding-left:var(--spacingHorizontalXS);}\", \".f14wxoun{padding-bottom:var(--spacingVerticalXS);}\", \".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}\", \".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}\", \".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}\", \".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}\"]\n});\n/**\n * Styles for the avatar slot\n */\nconst useAvatarStyles = /*#__PURE__*/__styles({\n nonOverflowItem: {\n qhf8xq: \"f1euv43f\"\n },\n pie: {\n Bbmb7ep: [\"f1krrbdw\", \"f1deotkl\"],\n Beyfa6y: [\"f1deotkl\", \"f1krrbdw\"],\n B7oj6ja: [\"f10ostut\", \"f1ozlkrg\"],\n Btl43ni: [\"f1ozlkrg\", \"f10ostut\"]\n }\n}, {\n d: [\".f1euv43f{position:absolute;}\", \".f1krrbdw{border-bottom-right-radius:0;}\", \".f1deotkl{border-bottom-left-radius:0;}\", \".f10ostut{border-top-right-radius:0;}\", \".f1ozlkrg{border-top-left-radius:0;}\"]\n});\n/**\n * Styles for the label slot\n */\nconst useOverflowLabelStyles = /*#__PURE__*/__styles({\n base: {\n Frg6f3: [\"foyynoy\", \"f1vcna3q\"],\n sj55zd: \"f19n0e5\",\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"fkhj508\",\n Bhrd7zp: \"figsok6\",\n Bg96gwp: \"f1i3iumi\"\n }\n}, {\n d: [\".foyynoy{margin-left:var(--spacingHorizontalS);}\", \".f1vcna3q{margin-right:var(--spacingHorizontalS);}\", \".f19n0e5{color:var(--colorNeutralForeground1);}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".fkhj508{font-size:var(--fontSizeBase300);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\", \".f1i3iumi{line-height:var(--lineHeightBase300);}\"]\n});\n/**\n * Styles for the stack layout\n */\nconst useStackStyles = /*#__PURE__*/__styles({\n thick: {\n E5pizo: \"foiuzp5\"\n },\n thicker: {\n E5pizo: \"f1x6o7w7\"\n },\n thickest: {\n E5pizo: \"f2aml1u\"\n },\n xxs: {\n jhia2w: [\"f1cjco14\", \"f13dxjc9\"]\n },\n xs: {\n jhia2w: [\"f15p6bln\", \"f1bab3ru\"]\n },\n s: {\n jhia2w: [\"f1v53ncc\", \"f17pu8r8\"]\n },\n l: {\n jhia2w: [\"flv48ch\", \"fnh1ydj\"]\n }\n}, {\n d: [\".foiuzp5{box-shadow:0 0 0 var(--strokeWidthThick) var(--colorNeutralBackground2);}\", \".f1x6o7w7{box-shadow:0 0 0 var(--strokeWidthThicker) var(--colorNeutralBackground2);}\", \".f2aml1u{box-shadow:0 0 0 var(--strokeWidthThickest) var(--colorNeutralBackground2);}\", \".f1cjco14:not(:first-child){margin-left:calc(-1 * var(--spacingHorizontalXXS));}\", \".f13dxjc9:not(:first-child){margin-right:calc(-1 * var(--spacingHorizontalXXS));}\", \".f15p6bln:not(:first-child){margin-left:calc(-1 * var(--spacingHorizontalXS));}\", \".f1bab3ru:not(:first-child){margin-right:calc(-1 * var(--spacingHorizontalXS));}\", \".f1v53ncc:not(:first-child){margin-left:calc(-1 * var(--spacingHorizontalS));}\", \".f17pu8r8:not(:first-child){margin-right:calc(-1 * var(--spacingHorizontalS));}\", \".flv48ch:not(:first-child){margin-left:calc(-1 * var(--spacingHorizontalL));}\", \".fnh1ydj:not(:first-child){margin-right:calc(-1 * var(--spacingHorizontalL));}\"]\n});\n/**\n * Styles for the spread layout\n */\nconst useSpreadStyles = /*#__PURE__*/__styles({\n s: {\n jhia2w: [\"f7lhxv7\", \"f6ou2b0\"]\n },\n mNudge: {\n jhia2w: [\"f1h0okno\", \"fnnqava\"]\n },\n m: {\n jhia2w: [\"f1wkt588\", \"f1maio5g\"]\n },\n l: {\n jhia2w: [\"f1l333zn\", \"f1r41m4c\"]\n },\n xl: {\n jhia2w: [\"fahr13a\", \"f2n7rbo\"]\n }\n}, {\n d: [\".f7lhxv7:not(:first-child){margin-left:var(--spacingHorizontalS);}\", \".f6ou2b0:not(:first-child){margin-right:var(--spacingHorizontalS);}\", \".f1h0okno:not(:first-child){margin-left:var(--spacingHorizontalMNudge);}\", \".fnnqava:not(:first-child){margin-right:var(--spacingHorizontalMNudge);}\", \".f1wkt588:not(:first-child){margin-left:var(--spacingHorizontalM);}\", \".f1maio5g:not(:first-child){margin-right:var(--spacingHorizontalM);}\", \".f1l333zn:not(:first-child){margin-left:var(--spacingHorizontalL);}\", \".f1r41m4c:not(:first-child){margin-right:var(--spacingHorizontalL);}\", \".fahr13a:not(:first-child){margin-left:var(--spacingHorizontalXL);}\", \".f2n7rbo:not(:first-child){margin-right:var(--spacingHorizontalXL);}\"]\n});\n/**\n * Styles for the pie layout\n */\nconst usePieStyles = /*#__PURE__*/__styles({\n base: {\n qhf8xq: \"f1euv43f\"\n },\n slices: {\n B3gf25r: \"f16m7w7k\",\n Be2twx7: [\"f1o4hhgz\", \"fb4gjrz\"],\n Bvaow4n: \"f1pgb5nx\",\n Gpecfs: [\"fugirid\", \"f4sk99m\"],\n bhabj1: \"fjreaf3\",\n B7rc6i7: [\"f1k4vw81\", \"f1w1xcy7\"],\n Bwrfys5: \"f1ef8vxk\",\n Bwuzm9m: [\"f1x2qbfv\", \"f1xwf4nz\"],\n fflka: \"ff6xuso\",\n do7bja: \"fzpvk6c\",\n Be8zqhl: \"f4onu7f\",\n Bij0kh0: [\"f1ydfez1\", \"fjensob\"],\n Bwexnyt: \"f1yv732j\",\n Bhe5x6o: \"fchq2fj\",\n B3kv7bh: \"ff5binh\"\n },\n rtlSlices: {\n B3gf25r: \"f5vdl61\",\n Bvaow4n: \"f1bnra92\",\n bhabj1: \"f4ibo7t\",\n Bwrfys5: \"f17heuis\",\n Bwuzm9m: [\"f64f2ud\", \"f1yjglu3\"],\n Be8zqhl: \"fa6l61x\",\n Bij0kh0: [\"f1w2396a\", \"f14ab3yo\"]\n },\n thick: {\n uiicq7: \"fnyfzln\"\n },\n thicker: {\n uiicq7: \"f1xdzzot\"\n },\n thickest: {\n uiicq7: \"f1auhru5\"\n }\n}, {\n d: [\".f1euv43f{position:absolute;}\", \".f16m7w7k:nth-of-type(1):nth-last-of-type(2){clip-path:inset(0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)) 0 25%);}\", \".f1o4hhgz:nth-of-type(1):nth-last-of-type(2){left:-25%;}\", \".fb4gjrz:nth-of-type(1):nth-last-of-type(2){right:-25%;}\", \".f1pgb5nx:nth-of-type(2):nth-last-of-type(1){clip-path:inset(0 25% 0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)));}\", \".fugirid:nth-of-type(2):nth-last-of-type(1){left:25%;}\", \".f4sk99m:nth-of-type(2):nth-last-of-type(1){right:25%;}\", \".fjreaf3:nth-of-type(1):nth-last-of-type(3){clip-path:inset(0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)) 0 25%);}\", \".f1k4vw81:nth-of-type(1):nth-last-of-type(3){left:-25%;}\", \".f1w1xcy7:nth-of-type(1):nth-last-of-type(3){right:-25%;}\", \".f1ef8vxk:nth-of-type(2):nth-last-of-type(2){clip-path:inset(0 0 var(--fuiAvatarGroupItem__divider--width) var(--fuiAvatarGroupItem__divider--width));}\", \".f1x2qbfv:nth-of-type(2):nth-last-of-type(2){left:50%;}\", \".f1xwf4nz:nth-of-type(2):nth-last-of-type(2){right:50%;}\", \".ff6xuso:nth-of-type(2):nth-last-of-type(2){transform:scale(0.5);}\", \".fzpvk6c:nth-of-type(2):nth-last-of-type(2){transform-origin:0 0;}\", \".f4onu7f:nth-of-type(3):nth-last-of-type(1){clip-path:inset(var(--fuiAvatarGroupItem__divider--width) 0 0 var(--fuiAvatarGroupItem__divider--width));}\", \".f1ydfez1:nth-of-type(3):nth-last-of-type(1){left:50%;}\", \".fjensob:nth-of-type(3):nth-last-of-type(1){right:50%;}\", \".f1yv732j:nth-of-type(3):nth-last-of-type(1){top:50%;}\", \".fchq2fj:nth-of-type(3):nth-last-of-type(1){transform:scale(0.5);}\", \".ff5binh:nth-of-type(3):nth-last-of-type(1){transform-origin:0 0;}\", \".f5vdl61:nth-of-type(1):nth-last-of-type(2){clip-path:inset(0 25% 0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)));}\", \".f1bnra92:nth-of-type(2):nth-last-of-type(1){clip-path:inset(0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)) 0 25%);}\", \".f4ibo7t:nth-of-type(1):nth-last-of-type(3){clip-path:inset(0 25% 0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)));}\", \".f17heuis:nth-of-type(2):nth-last-of-type(2){clip-path:inset(0 var(--fuiAvatarGroupItem__divider--width) var(--fuiAvatarGroupItem__divider--width) 0);}\", \".f64f2ud:nth-of-type(2):nth-last-of-type(2){left:0;}\", \".f1yjglu3:nth-of-type(2):nth-last-of-type(2){right:0;}\", \".fa6l61x:nth-of-type(3):nth-last-of-type(1){clip-path:inset(var(--fuiAvatarGroupItem__divider--width) var(--fuiAvatarGroupItem__divider--width) 0 0);}\", \".f1w2396a:nth-of-type(3):nth-last-of-type(1){left:0;}\", \".f14ab3yo:nth-of-type(3):nth-last-of-type(1){right:0;}\", \".fnyfzln{--fuiAvatarGroupItem__divider--width:var(--strokeWidthThick);}\", \".f1xdzzot{--fuiAvatarGroupItem__divider--width:var(--strokeWidthThicker);}\", \".f1auhru5{--fuiAvatarGroupItem__divider--width:var(--strokeWidthThickest);}\"]\n});\n/**\n * Apply styling to the AvatarGroupItem slots based on the state\n */\nexport const useAvatarGroupItemStyles_unstable = state => {\n const {\n isOverflowItem,\n layout,\n size\n } = state;\n const {\n dir\n } = useFluent();\n const avatarStyles = useAvatarStyles();\n const overflowLabelStyles = useOverflowLabelStyles();\n const pieStyles = usePieStyles();\n const rootStyles = useRootStyles();\n const sizeStyles = useSizeStyles();\n const groupChildClassName = useGroupChildClassName(layout, size);\n const rootClasses = [rootStyles.base];\n if (!isOverflowItem) {\n rootClasses.push(rootStyles.nonOverflowItem);\n rootClasses.push(groupChildClassName);\n rootClasses.push(sizeStyles[size]);\n if (layout === 'pie') {\n rootClasses.push(pieStyles.base);\n if (size < 56) {\n rootClasses.push(pieStyles.thick);\n } else if (size < 72) {\n rootClasses.push(pieStyles.thicker);\n } else {\n rootClasses.push(pieStyles.thickest);\n }\n rootClasses.push(pieStyles.slices);\n if (dir === 'rtl') {\n rootClasses.push(pieStyles.rtlSlices);\n }\n }\n } else {\n rootClasses.push(rootStyles.overflowItem);\n }\n state.root.className = mergeClasses(avatarGroupItemClassNames.root, ...rootClasses, state.root.className);\n state.avatar.className = mergeClasses(avatarGroupItemClassNames.avatar, !isOverflowItem && avatarStyles.nonOverflowItem, layout === 'pie' && avatarStyles.pie, state.avatar.className);\n if (state.overflowLabel) {\n state.overflowLabel.className = mergeClasses(avatarGroupItemClassNames.overflowLabel, overflowLabelStyles.base, state.overflowLabel.className);\n }\n return state;\n};\n/**\n * Hook for getting the className for the children of AvatarGroup. This hook will provide the spacing and outlines\n * needed for each layout.\n */\nexport const useGroupChildClassName = (layout, size) => {\n const stackStyles = useStackStyles();\n const spreadStyles = useSpreadStyles();\n const layoutClasses = [];\n if (size) {\n if (layout === 'stack') {\n if (size < 56) {\n layoutClasses.push(stackStyles.thick);\n } else if (size < 72) {\n layoutClasses.push(stackStyles.thicker);\n } else {\n layoutClasses.push(stackStyles.thickest);\n }\n if (size < 24) {\n layoutClasses.push(stackStyles.xxs);\n } else if (size < 48) {\n layoutClasses.push(stackStyles.xs);\n } else if (size < 96) {\n layoutClasses.push(stackStyles.s);\n } else {\n layoutClasses.push(stackStyles.l);\n }\n } else if (layout === 'spread') {\n if (size < 20) {\n layoutClasses.push(spreadStyles.s);\n } else if (size < 32) {\n layoutClasses.push(spreadStyles.mNudge);\n } else if (size < 64) {\n layoutClasses.push(spreadStyles.l);\n } else {\n layoutClasses.push(spreadStyles.xl);\n }\n }\n }\n return mergeClasses(...layoutClasses);\n};\n//# sourceMappingURL=useAvatarGroupItemStyles.styles.js.map"],"names":["avatarGroupItemClassNames","useAvatarGroupItemStyles_unstable","useGroupChildClassName","root","avatar","overflowLabel","avatarGroupItemDividerWidthVar","useRootStyles","__styles","base","Bt984gj","mc9l5x","Bnnss6s","qhf8xq","overflowItem","z8tnut","z189sj","Byoj8tv","uwmqm3","nonOverflowItem","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","d","useAvatarStyles","pie","useOverflowLabelStyles","Frg6f3","sj55zd","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","useStackStyles","thick","E5pizo","thicker","thickest","xxs","jhia2w","xs","s","l","useSpreadStyles","mNudge","m","xl","usePieStyles","slices","B3gf25r","Be2twx7","Bvaow4n","Gpecfs","bhabj1","B7rc6i7","Bwrfys5","Bwuzm9m","fflka","do7bja","Be8zqhl","Bij0kh0","Bwexnyt","Bhe5x6o","B3kv7bh","rtlSlices","uiicq7","state","isOverflowItem","layout","size","dir","useFluent","avatarStyles","overflowLabelStyles","pieStyles","rootStyles","sizeStyles","useSizeStyles","groupChildClassName","rootClasses","push","className","mergeClasses","stackStyles","spreadStyles","layoutClasses"],"mappings":";;;;;;;;;;;IAIaA,yBAAyB,MAAzBA;IAgKAC,iCAAiC,MAAjCA;IAgDAC,sBAAsB,MAAtBA;;uBApNsC;wBAErB;qCACkB;AACzC,MAAMF,4BAA4B;IACvCG,MAAM;IACNC,QAAQ;IACRC,eAAe;AACjB;AACA,MAAMC,iCAAiC;AACvC;;CAEC,GACD,MAAMC,gBAAgB,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IAC1CC,MAAM;QACJC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC,QAAQ;IACV;IACAC,cAAc;QACZC,QAAQ;QACRC,QAAQ;YAAC;YAAW;SAAU;QAC9BC,SAAS;QACTC,QAAQ;YAAC;YAAW;SAAU;IAChC;IACAC,iBAAiB;QACfC,SAAS;YAAC;YAAW;SAAW;QA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L,IAAI,CAACI,aAAaxC,MAAM;YACxC,OAAO,IAAIyB,OAAO,IAAI;gBACpBgB,cAAcL,IAAI,CAACI,aAAa1C,CAAC;YACnC,OAAO;gBACL2C,cAAcL,IAAI,CAACI,aAAatC,EAAE;YACpC,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAOoC,IAAAA,mBAAY,KAAIG;AACzB,GACA,2DAA2D"}
|
|
1
|
+
{"version":3,"sources":["useAvatarGroupItemStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { useSizeStyles } from '../../Avatar';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nexport const avatarGroupItemClassNames = {\n root: 'fui-AvatarGroupItem',\n avatar: 'fui-AvatarGroupItem__avatar',\n overflowLabel: 'fui-AvatarGroupItem__overflowLabel'\n};\nconst avatarGroupItemDividerWidthVar = '--fuiAvatarGroupItem__divider--width';\n/**\n * Styles for the root slot\n */\nconst useRootStyles = /*#__PURE__*/__styles({\n base: {\n Bt984gj: \"f122n59\",\n mc9l5x: \"ftuwxu6\",\n Bnnss6s: \"fi64zpg\",\n qhf8xq: \"f10pi13n\"\n },\n overflowItem: {\n z8tnut: \"f1ywm7hm\",\n z189sj: [\"f7x41pl\", \"fruq291\"],\n Byoj8tv: \"f14wxoun\",\n uwmqm3: [\"fruq291\", \"f7x41pl\"]\n },\n nonOverflowItem: {\n Bbmb7ep: [\"f8fbkgy\", \"f1nfllo7\"],\n Beyfa6y: [\"f1nfllo7\", \"f8fbkgy\"],\n B7oj6ja: [\"f1djnp8u\", \"f1s8kh49\"],\n Btl43ni: [\"f1s8kh49\", \"f1djnp8u\"]\n }\n}, {\n d: [\".f122n59{align-items:center;}\", \".ftuwxu6{display:inline-flex;}\", \".fi64zpg{flex-shrink:0;}\", \".f10pi13n{position:relative;}\", \".f1ywm7hm{padding-top:var(--spacingVerticalXS);}\", \".f7x41pl{padding-right:var(--spacingHorizontalXS);}\", \".fruq291{padding-left:var(--spacingHorizontalXS);}\", \".f14wxoun{padding-bottom:var(--spacingVerticalXS);}\", \".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}\", \".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}\", \".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}\", \".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}\"]\n});\n/**\n * Styles for the avatar slot\n */\nconst useAvatarStyles = /*#__PURE__*/__styles({\n nonOverflowItem: {\n qhf8xq: \"f1euv43f\"\n },\n pie: {\n Bbmb7ep: [\"f1krrbdw\", \"f1deotkl\"],\n Beyfa6y: [\"f1deotkl\", \"f1krrbdw\"],\n B7oj6ja: [\"f10ostut\", \"f1ozlkrg\"],\n Btl43ni: [\"f1ozlkrg\", \"f10ostut\"]\n }\n}, {\n d: [\".f1euv43f{position:absolute;}\", \".f1krrbdw{border-bottom-right-radius:0;}\", \".f1deotkl{border-bottom-left-radius:0;}\", \".f10ostut{border-top-right-radius:0;}\", \".f1ozlkrg{border-top-left-radius:0;}\"]\n});\n/**\n * Styles for the label slot\n */\nconst useOverflowLabelStyles = /*#__PURE__*/__styles({\n base: {\n Frg6f3: [\"foyynoy\", \"f1vcna3q\"],\n sj55zd: \"f19n0e5\",\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"fkhj508\",\n Bhrd7zp: \"figsok6\",\n Bg96gwp: \"f1i3iumi\"\n }\n}, {\n d: [\".foyynoy{margin-left:var(--spacingHorizontalS);}\", \".f1vcna3q{margin-right:var(--spacingHorizontalS);}\", \".f19n0e5{color:var(--colorNeutralForeground1);}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".fkhj508{font-size:var(--fontSizeBase300);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\", \".f1i3iumi{line-height:var(--lineHeightBase300);}\"]\n});\n/**\n * Styles for the stack layout\n */\nconst useStackStyles = /*#__PURE__*/__styles({\n thick: {\n E5pizo: \"foiuzp5\"\n },\n thicker: {\n E5pizo: \"f1x6o7w7\"\n },\n thickest: {\n E5pizo: \"f2aml1u\"\n },\n xxs: {\n jhia2w: [\"f1cjco14\", \"f13dxjc9\"]\n },\n xs: {\n jhia2w: [\"f15p6bln\", \"f1bab3ru\"]\n },\n s: {\n jhia2w: [\"f1v53ncc\", \"f17pu8r8\"]\n },\n l: {\n jhia2w: [\"flv48ch\", \"fnh1ydj\"]\n }\n}, {\n d: [\".foiuzp5{box-shadow:0 0 0 var(--strokeWidthThick) var(--colorNeutralBackground2);}\", \".f1x6o7w7{box-shadow:0 0 0 var(--strokeWidthThicker) var(--colorNeutralBackground2);}\", \".f2aml1u{box-shadow:0 0 0 var(--strokeWidthThickest) var(--colorNeutralBackground2);}\", \".f1cjco14:not(:first-child){margin-left:calc(-1 * var(--spacingHorizontalXXS));}\", \".f13dxjc9:not(:first-child){margin-right:calc(-1 * var(--spacingHorizontalXXS));}\", \".f15p6bln:not(:first-child){margin-left:calc(-1 * var(--spacingHorizontalXS));}\", \".f1bab3ru:not(:first-child){margin-right:calc(-1 * var(--spacingHorizontalXS));}\", \".f1v53ncc:not(:first-child){margin-left:calc(-1 * var(--spacingHorizontalS));}\", \".f17pu8r8:not(:first-child){margin-right:calc(-1 * var(--spacingHorizontalS));}\", \".flv48ch:not(:first-child){margin-left:calc(-1 * var(--spacingHorizontalL));}\", \".fnh1ydj:not(:first-child){margin-right:calc(-1 * var(--spacingHorizontalL));}\"]\n});\n/**\n * Styles for the spread layout\n */\nconst useSpreadStyles = /*#__PURE__*/__styles({\n s: {\n jhia2w: [\"f7lhxv7\", \"f6ou2b0\"]\n },\n mNudge: {\n jhia2w: [\"f1h0okno\", \"fnnqava\"]\n },\n m: {\n jhia2w: [\"f1wkt588\", \"f1maio5g\"]\n },\n l: {\n jhia2w: [\"f1l333zn\", \"f1r41m4c\"]\n },\n xl: {\n jhia2w: [\"fahr13a\", \"f2n7rbo\"]\n }\n}, {\n d: [\".f7lhxv7:not(:first-child){margin-left:var(--spacingHorizontalS);}\", \".f6ou2b0:not(:first-child){margin-right:var(--spacingHorizontalS);}\", \".f1h0okno:not(:first-child){margin-left:var(--spacingHorizontalMNudge);}\", \".fnnqava:not(:first-child){margin-right:var(--spacingHorizontalMNudge);}\", \".f1wkt588:not(:first-child){margin-left:var(--spacingHorizontalM);}\", \".f1maio5g:not(:first-child){margin-right:var(--spacingHorizontalM);}\", \".f1l333zn:not(:first-child){margin-left:var(--spacingHorizontalL);}\", \".f1r41m4c:not(:first-child){margin-right:var(--spacingHorizontalL);}\", \".fahr13a:not(:first-child){margin-left:var(--spacingHorizontalXL);}\", \".f2n7rbo:not(:first-child){margin-right:var(--spacingHorizontalXL);}\"]\n});\n/**\n * Styles for the pie layout\n */\nconst usePieStyles = /*#__PURE__*/__styles({\n base: {\n qhf8xq: \"f1euv43f\"\n },\n slices: {\n B3gf25r: \"f16m7w7k\",\n Be2twx7: [\"f1o4hhgz\", \"fb4gjrz\"],\n Bvaow4n: \"f1pgb5nx\",\n Gpecfs: [\"fugirid\", \"f4sk99m\"],\n bhabj1: \"fjreaf3\",\n B7rc6i7: [\"f1k4vw81\", \"f1w1xcy7\"],\n Bwrfys5: \"f1ef8vxk\",\n Bwuzm9m: [\"f1x2qbfv\", \"f1xwf4nz\"],\n fflka: \"ff6xuso\",\n do7bja: \"fzpvk6c\",\n Be8zqhl: \"f4onu7f\",\n Bij0kh0: [\"f1ydfez1\", \"fjensob\"],\n Bwexnyt: \"f1yv732j\",\n Bhe5x6o: \"fchq2fj\",\n B3kv7bh: \"ff5binh\"\n },\n rtlSlices: {\n B3gf25r: \"f5vdl61\",\n Bvaow4n: \"f1bnra92\",\n bhabj1: \"f4ibo7t\",\n Bwrfys5: \"f17heuis\",\n Bwuzm9m: [\"f64f2ud\", \"f1yjglu3\"],\n Be8zqhl: \"fa6l61x\",\n Bij0kh0: [\"f1w2396a\", \"f14ab3yo\"]\n },\n thick: {\n uiicq7: \"fnyfzln\"\n },\n thicker: {\n uiicq7: \"f1xdzzot\"\n },\n thickest: {\n uiicq7: \"f1auhru5\"\n }\n}, {\n d: [\".f1euv43f{position:absolute;}\", \".f16m7w7k:nth-of-type(1):nth-last-of-type(2){clip-path:inset(0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)) 0 25%);}\", \".f1o4hhgz:nth-of-type(1):nth-last-of-type(2){left:-25%;}\", \".fb4gjrz:nth-of-type(1):nth-last-of-type(2){right:-25%;}\", \".f1pgb5nx:nth-of-type(2):nth-last-of-type(1){clip-path:inset(0 25% 0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)));}\", \".fugirid:nth-of-type(2):nth-last-of-type(1){left:25%;}\", \".f4sk99m:nth-of-type(2):nth-last-of-type(1){right:25%;}\", \".fjreaf3:nth-of-type(1):nth-last-of-type(3){clip-path:inset(0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)) 0 25%);}\", \".f1k4vw81:nth-of-type(1):nth-last-of-type(3){left:-25%;}\", \".f1w1xcy7:nth-of-type(1):nth-last-of-type(3){right:-25%;}\", \".f1ef8vxk:nth-of-type(2):nth-last-of-type(2){clip-path:inset(0 0 var(--fuiAvatarGroupItem__divider--width) var(--fuiAvatarGroupItem__divider--width));}\", \".f1x2qbfv:nth-of-type(2):nth-last-of-type(2){left:50%;}\", \".f1xwf4nz:nth-of-type(2):nth-last-of-type(2){right:50%;}\", \".ff6xuso:nth-of-type(2):nth-last-of-type(2){transform:scale(0.5);}\", \".fzpvk6c:nth-of-type(2):nth-last-of-type(2){transform-origin:0 0;}\", \".f4onu7f:nth-of-type(3):nth-last-of-type(1){clip-path:inset(var(--fuiAvatarGroupItem__divider--width) 0 0 var(--fuiAvatarGroupItem__divider--width));}\", \".f1ydfez1:nth-of-type(3):nth-last-of-type(1){left:50%;}\", \".fjensob:nth-of-type(3):nth-last-of-type(1){right:50%;}\", \".f1yv732j:nth-of-type(3):nth-last-of-type(1){top:50%;}\", \".fchq2fj:nth-of-type(3):nth-last-of-type(1){transform:scale(0.5);}\", \".ff5binh:nth-of-type(3):nth-last-of-type(1){transform-origin:0 0;}\", \".f5vdl61:nth-of-type(1):nth-last-of-type(2){clip-path:inset(0 25% 0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)));}\", \".f1bnra92:nth-of-type(2):nth-last-of-type(1){clip-path:inset(0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)) 0 25%);}\", \".f4ibo7t:nth-of-type(1):nth-last-of-type(3){clip-path:inset(0 25% 0 calc(25% + (var(--fuiAvatarGroupItem__divider--width) / 2)));}\", \".f17heuis:nth-of-type(2):nth-last-of-type(2){clip-path:inset(0 var(--fuiAvatarGroupItem__divider--width) var(--fuiAvatarGroupItem__divider--width) 0);}\", \".f64f2ud:nth-of-type(2):nth-last-of-type(2){left:0;}\", \".f1yjglu3:nth-of-type(2):nth-last-of-type(2){right:0;}\", \".fa6l61x:nth-of-type(3):nth-last-of-type(1){clip-path:inset(var(--fuiAvatarGroupItem__divider--width) var(--fuiAvatarGroupItem__divider--width) 0 0);}\", \".f1w2396a:nth-of-type(3):nth-last-of-type(1){left:0;}\", \".f14ab3yo:nth-of-type(3):nth-last-of-type(1){right:0;}\", \".fnyfzln{--fuiAvatarGroupItem__divider--width:var(--strokeWidthThick);}\", \".f1xdzzot{--fuiAvatarGroupItem__divider--width:var(--strokeWidthThicker);}\", \".f1auhru5{--fuiAvatarGroupItem__divider--width:var(--strokeWidthThickest);}\"]\n});\n/**\n * Apply styling to the AvatarGroupItem slots based on the state\n */\nexport const useAvatarGroupItemStyles_unstable = state => {\n const {\n isOverflowItem,\n layout,\n size\n } = state;\n const {\n dir\n } = useFluent();\n const avatarStyles = useAvatarStyles();\n const overflowLabelStyles = useOverflowLabelStyles();\n const pieStyles = usePieStyles();\n const rootStyles = useRootStyles();\n const sizeStyles = useSizeStyles();\n const groupChildClassName = useGroupChildClassName(layout, size);\n const rootClasses = [rootStyles.base];\n if (!isOverflowItem) {\n rootClasses.push(rootStyles.nonOverflowItem);\n rootClasses.push(groupChildClassName);\n rootClasses.push(sizeStyles[size]);\n if (layout === 'pie') {\n rootClasses.push(pieStyles.base);\n if (size < 56) {\n rootClasses.push(pieStyles.thick);\n } else if (size < 72) {\n rootClasses.push(pieStyles.thicker);\n } else {\n rootClasses.push(pieStyles.thickest);\n }\n rootClasses.push(pieStyles.slices);\n if (dir === 'rtl') {\n rootClasses.push(pieStyles.rtlSlices);\n }\n }\n } else {\n rootClasses.push(rootStyles.overflowItem);\n }\n state.root.className = mergeClasses(avatarGroupItemClassNames.root, ...rootClasses, state.root.className);\n state.avatar.className = mergeClasses(avatarGroupItemClassNames.avatar, !isOverflowItem && avatarStyles.nonOverflowItem, layout === 'pie' && avatarStyles.pie, state.avatar.className);\n if (state.overflowLabel) {\n state.overflowLabel.className = mergeClasses(avatarGroupItemClassNames.overflowLabel, overflowLabelStyles.base, state.overflowLabel.className);\n }\n return state;\n};\n/**\n * Hook for getting the className for the children of AvatarGroup. This hook will provide the spacing and outlines\n * needed for each layout.\n */\nexport const useGroupChildClassName = (layout, size) => {\n const stackStyles = useStackStyles();\n const spreadStyles = useSpreadStyles();\n const layoutClasses = [];\n if (size) {\n if (layout === 'stack') {\n if (size < 56) {\n layoutClasses.push(stackStyles.thick);\n } else if (size < 72) {\n layoutClasses.push(stackStyles.thicker);\n } else {\n layoutClasses.push(stackStyles.thickest);\n }\n if (size < 24) {\n layoutClasses.push(stackStyles.xxs);\n } else if (size < 48) {\n layoutClasses.push(stackStyles.xs);\n } else if (size < 96) {\n layoutClasses.push(stackStyles.s);\n } else {\n layoutClasses.push(stackStyles.l);\n }\n } else if (layout === 'spread') {\n if (size < 20) {\n layoutClasses.push(spreadStyles.s);\n } else if (size < 32) {\n layoutClasses.push(spreadStyles.mNudge);\n } else if (size < 64) {\n layoutClasses.push(spreadStyles.l);\n } else {\n layoutClasses.push(spreadStyles.xl);\n }\n }\n }\n return mergeClasses(...layoutClasses);\n};\n//# sourceMappingURL=useAvatarGroupItemStyles.styles.js.map"],"names":["avatarGroupItemClassNames","useAvatarGroupItemStyles_unstable","useGroupChildClassName","root","avatar","overflowLabel","avatarGroupItemDividerWidthVar","useRootStyles","__styles","base","Bt984gj","mc9l5x","Bnnss6s","qhf8xq","overflowItem","z8tnut","z189sj","Byoj8tv","uwmqm3","nonOverflowItem","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","d","useAvatarStyles","pie","useOverflowLabelStyles","Frg6f3","sj55zd","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","useStackStyles","thick","E5pizo","thicker","thickest","xxs","jhia2w","xs","s","l","useSpreadStyles","mNudge","m","xl","usePieStyles","slices","B3gf25r","Be2twx7","Bvaow4n","Gpecfs","bhabj1","B7rc6i7","Bwrfys5","Bwuzm9m","fflka","do7bja","Be8zqhl","Bij0kh0","Bwexnyt","Bhe5x6o","B3kv7bh","rtlSlices","uiicq7","state","isOverflowItem","layout","size","dir","useFluent","avatarStyles","overflowLabelStyles","pieStyles","rootStyles","sizeStyles","useSizeStyles","groupChildClassName","rootClasses","push","className","mergeClasses","stackStyles","spreadStyles","layoutClasses"],"mappings":";;;;;;;;;;;IAIaA,yBAAyB;eAAzBA;;IAgKAC,iCAAiC;eAAjCA;;IAgDAC,sBAAsB;eAAtBA;;;uBApNsC;wBAErB;qCACkB;AACzC,MAAMF,4BAA4B;IACvCG,MAAM;IACNC,QAAQ;IACRC,eAAe;AACjB;AACA,MAAMC,iCAAiC;AACvC;;CAEC,GACD,MAAMC,gBAAgB,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IAC1CC,MAAM;QACJC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC,QAAQ;IACV;IACAC,cAAc;QACZC,QAAQ;QACRC,QAAQ;YAAC;YAAW;SAAU;QAC9BC,SAAS;QACTC,QAAQ;YAAC;YAAW;SAAU;IAChC;IACAC,iBAAiB;QACfC,SAAS;YAAC;YAAW;SAAW;QAChCC,SAAS;YAAC;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cL,IAAI,CAACI,aAAa1C,CAAC;YACnC,OAAO;gBACL2C,cAAcL,IAAI,CAACI,aAAatC,EAAE;YACpC;QACF;IACF;IACA,OAAOoC,IAAAA,mBAAY,KAAIG;AACzB,GACA,2DAA2D"}
|
|
@@ -4,20 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "AvatarGroupPopover", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return AvatarGroupPopover;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const
|
|
10
|
-
const _react = /*#__PURE__*/
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
11
13
|
const _renderAvatarGroupPopover = require("./renderAvatarGroupPopover");
|
|
12
14
|
const _useAvatarGroupPopoverContextValues = require("./useAvatarGroupPopoverContextValues");
|
|
13
|
-
const
|
|
15
|
+
const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
|
|
14
16
|
const _useAvatarGroupPopover = require("./useAvatarGroupPopover");
|
|
15
|
-
const
|
|
17
|
+
const _useAvatarGroupPopoverStylesstyles = require("./useAvatarGroupPopoverStyles.styles");
|
|
16
18
|
const AvatarGroupPopover = (props)=>{
|
|
17
19
|
const state = (0, _useAvatarGroupPopover.useAvatarGroupPopover_unstable)(props);
|
|
18
20
|
const contextValues = (0, _useAvatarGroupPopoverContextValues.useAvatarGroupPopoverContextValues)(state);
|
|
19
|
-
(0,
|
|
20
|
-
(0,
|
|
21
|
+
(0, _useAvatarGroupPopoverStylesstyles.useAvatarGroupPopoverStyles_unstable)(state);
|
|
22
|
+
(0, _reactsharedcontexts.useCustomStyleHook_unstable)('useAvatarGroupPopoverStyles_unstable')(state);
|
|
21
23
|
return (0, _renderAvatarGroupPopover.renderAvatarGroupPopover_unstable)(state, contextValues);
|
|
22
24
|
};
|
|
23
25
|
AvatarGroupPopover.displayName = 'AvatarGroupPopover';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["AvatarGroupPopover.js"],"sourcesContent":["import * as React from 'react';\nimport { renderAvatarGroupPopover_unstable } from './renderAvatarGroupPopover';\nimport { useAvatarGroupPopoverContextValues } from './useAvatarGroupPopoverContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useAvatarGroupPopover_unstable } from './useAvatarGroupPopover';\nimport { useAvatarGroupPopoverStyles_unstable } from './useAvatarGroupPopoverStyles.styles';\n/**\n * The AvatarGroupPopover component provides a button with a Popover containing the children provided.\n */ export const AvatarGroupPopover = (props)=>{\n const state = useAvatarGroupPopover_unstable(props);\n const contextValues = useAvatarGroupPopoverContextValues(state);\n useAvatarGroupPopoverStyles_unstable(state);\n useCustomStyleHook_unstable('useAvatarGroupPopoverStyles_unstable')(state);\n return renderAvatarGroupPopover_unstable(state, contextValues);\n};\nAvatarGroupPopover.displayName = 'AvatarGroupPopover';\n"],"names":["AvatarGroupPopover","props","state","useAvatarGroupPopover_unstable","contextValues","useAvatarGroupPopoverContextValues","useAvatarGroupPopoverStyles_unstable","useCustomStyleHook_unstable","renderAvatarGroupPopover_unstable","displayName"],"mappings":";;;;+BAQiBA
|
|
1
|
+
{"version":3,"sources":["AvatarGroupPopover.js"],"sourcesContent":["import * as React from 'react';\nimport { renderAvatarGroupPopover_unstable } from './renderAvatarGroupPopover';\nimport { useAvatarGroupPopoverContextValues } from './useAvatarGroupPopoverContextValues';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useAvatarGroupPopover_unstable } from './useAvatarGroupPopover';\nimport { useAvatarGroupPopoverStyles_unstable } from './useAvatarGroupPopoverStyles.styles';\n/**\n * The AvatarGroupPopover component provides a button with a Popover containing the children provided.\n */ export const AvatarGroupPopover = (props)=>{\n const state = useAvatarGroupPopover_unstable(props);\n const contextValues = useAvatarGroupPopoverContextValues(state);\n useAvatarGroupPopoverStyles_unstable(state);\n useCustomStyleHook_unstable('useAvatarGroupPopoverStyles_unstable')(state);\n return renderAvatarGroupPopover_unstable(state, contextValues);\n};\nAvatarGroupPopover.displayName = 'AvatarGroupPopover';\n"],"names":["AvatarGroupPopover","props","state","useAvatarGroupPopover_unstable","contextValues","useAvatarGroupPopoverContextValues","useAvatarGroupPopoverStyles_unstable","useCustomStyleHook_unstable","renderAvatarGroupPopover_unstable","displayName"],"mappings":";;;;+BAQiBA;;;eAAAA;;;;iEARM;0CAC2B;oDACC;qCACP;uCACG;mDACM;AAG1C,MAAMA,qBAAqB,CAACC;IACnC,MAAMC,QAAQC,IAAAA,qDAA8B,EAACF;IAC7C,MAAMG,gBAAgBC,IAAAA,sEAAkC,EAACH;IACzDI,IAAAA,uEAAoC,EAACJ;IACrCK,IAAAA,gDAA2B,EAAC,wCAAwCL;IACpE,OAAOM,IAAAA,2DAAiC,EAACN,OAAOE;AACpD;AACAJ,mBAAmBS,WAAW,GAAG"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
const
|
|
6
|
-
const _react = /*#__PURE__*/
|
|
5
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
6
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["AvatarGroupPopover.types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["AvatarGroupPopover.types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;iEAAuB"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
|
6
|
+
_export_star._(require("./AvatarGroupPopover"), exports);
|
|
7
|
+
_export_star._(require("./AvatarGroupPopover.types"), exports);
|
|
8
|
+
_export_star._(require("./renderAvatarGroupPopover"), exports);
|
|
9
|
+
_export_star._(require("./useAvatarGroupPopover"), exports);
|
|
10
|
+
_export_star._(require("./useAvatarGroupPopoverStyles.styles"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './AvatarGroupPopover';\nexport * from './AvatarGroupPopover.types';\nexport * from './renderAvatarGroupPopover';\nexport * from './useAvatarGroupPopover';\nexport * from './useAvatarGroupPopoverStyles.styles';\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './AvatarGroupPopover';\nexport * from './AvatarGroupPopover.types';\nexport * from './renderAvatarGroupPopover';\nexport * from './useAvatarGroupPopover';\nexport * from './useAvatarGroupPopoverStyles.styles';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
|