@fluentui/react-skeleton 9.0.0-beta.2 → 9.0.0-beta.4
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/.swcrc +30 -0
- package/CHANGELOG.json +73 -1
- package/CHANGELOG.md +27 -2
- package/lib/Skeleton.js.map +1 -1
- package/lib/SkeletonItem.js.map +1 -1
- package/lib/components/Skeleton/Skeleton.js.map +1 -1
- package/lib/components/Skeleton/Skeleton.types.js.map +1 -1
- package/lib/components/Skeleton/index.js.map +1 -1
- package/lib/components/Skeleton/renderSkeleton.js +1 -3
- package/lib/components/Skeleton/renderSkeleton.js.map +1 -1
- package/lib/components/Skeleton/useSkeleton.js +1 -0
- package/lib/components/Skeleton/useSkeleton.js.map +1 -1
- package/lib/components/Skeleton/useSkeletonContextValues.js.map +1 -1
- package/lib/components/Skeleton/useSkeletonStyles.js.map +1 -1
- package/lib/components/SkeletonItem/SkeletonItem.js.map +1 -1
- package/lib/components/SkeletonItem/SkeletonItem.types.js.map +1 -1
- package/lib/components/SkeletonItem/index.js.map +1 -1
- package/lib/components/SkeletonItem/renderSkeletonItem.js +1 -3
- package/lib/components/SkeletonItem/renderSkeletonItem.js.map +1 -1
- package/lib/components/SkeletonItem/useSkeletonItem.js +1 -0
- package/lib/components/SkeletonItem/useSkeletonItem.js.map +1 -1
- package/lib/components/SkeletonItem/useSkeletonItemStyles.js.map +1 -1
- package/lib/contexts/SkeletonContext.js +2 -4
- package/lib/contexts/SkeletonContext.js.map +1 -1
- package/lib/contexts/index.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Skeleton.js +5 -4
- package/lib-commonjs/Skeleton.js.map +1 -1
- package/lib-commonjs/SkeletonItem.js +5 -4
- package/lib-commonjs/SkeletonItem.js.map +1 -1
- package/lib-commonjs/components/Skeleton/Skeleton.js +18 -17
- package/lib-commonjs/components/Skeleton/Skeleton.js.map +1 -1
- package/lib-commonjs/components/Skeleton/Skeleton.types.js +3 -2
- package/lib-commonjs/components/Skeleton/Skeleton.types.js.map +1 -1
- package/lib-commonjs/components/Skeleton/index.js +10 -9
- package/lib-commonjs/components/Skeleton/index.js.map +1 -1
- package/lib-commonjs/components/Skeleton/renderSkeleton.js +16 -21
- package/lib-commonjs/components/Skeleton/renderSkeleton.js.map +1 -1
- package/lib-commonjs/components/Skeleton/useSkeleton.js +29 -40
- package/lib-commonjs/components/Skeleton/useSkeleton.js.map +1 -1
- package/lib-commonjs/components/Skeleton/useSkeletonContextValues.js +21 -18
- package/lib-commonjs/components/Skeleton/useSkeletonContextValues.js.map +1 -1
- package/lib-commonjs/components/Skeleton/useSkeletonStyles.js +19 -14
- package/lib-commonjs/components/Skeleton/useSkeletonStyles.js.map +1 -1
- package/lib-commonjs/components/SkeletonItem/SkeletonItem.js +16 -12
- package/lib-commonjs/components/SkeletonItem/SkeletonItem.js.map +1 -1
- package/lib-commonjs/components/SkeletonItem/SkeletonItem.types.js +3 -2
- package/lib-commonjs/components/SkeletonItem/SkeletonItem.types.js.map +1 -1
- package/lib-commonjs/components/SkeletonItem/index.js +9 -8
- package/lib-commonjs/components/SkeletonItem/index.js.map +1 -1
- package/lib-commonjs/components/SkeletonItem/renderSkeletonItem.js +13 -18
- package/lib-commonjs/components/SkeletonItem/renderSkeletonItem.js.map +1 -1
- package/lib-commonjs/components/SkeletonItem/useSkeletonItem.js +28 -41
- package/lib-commonjs/components/SkeletonItem/useSkeletonItem.js.map +1 -1
- package/lib-commonjs/components/SkeletonItem/useSkeletonItemStyles.js +333 -215
- package/lib-commonjs/components/SkeletonItem/useSkeletonItemStyles.js.map +1 -1
- package/lib-commonjs/contexts/SkeletonContext.js +18 -11
- package/lib-commonjs/contexts/SkeletonContext.js.map +1 -1
- package/lib-commonjs/contexts/index.js +5 -4
- package/lib-commonjs/contexts/index.js.map +1 -1
- package/lib-commonjs/index.js +27 -79
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -8
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "renderSkeleton_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>renderSkeleton_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = react_utilities_1.getSlots(state);
|
|
18
|
-
return React.createElement(SkeletonContext_1.SkeletonContextProvider, {
|
|
19
|
-
value: contextValues.skeletonGroup
|
|
20
|
-
}, React.createElement(slots.root, {
|
|
21
|
-
...slotProps.root
|
|
22
|
-
}));
|
|
23
|
-
};
|
|
24
|
-
exports.renderSkeleton_unstable = renderSkeleton_unstable;
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactUtilities = require("@fluentui/react-utilities");
|
|
12
|
+
const _skeletonContext = require("../../contexts/SkeletonContext");
|
|
13
|
+
const renderSkeleton_unstable = (state, contextValues)=>{
|
|
14
|
+
const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
|
|
15
|
+
return /*#__PURE__*/ _react.createElement(_skeletonContext.SkeletonContextProvider, {
|
|
16
|
+
value: contextValues.skeletonGroup
|
|
17
|
+
}, /*#__PURE__*/ _react.createElement(slots.root, slotProps.root));
|
|
18
|
+
}; //# sourceMappingURL=renderSkeleton.js.map
|
|
19
|
+
|
|
25
20
|
//# sourceMappingURL=renderSkeleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Skeleton/renderSkeleton.js"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { SkeletonContextProvider } from '../../contexts/SkeletonContext';\n/**\n * Render the final JSX of Skeleton\n */\nexport const renderSkeleton_unstable = (state, contextValues) => {\n const {\n slots,\n slotProps\n } = getSlots(state);\n return /*#__PURE__*/React.createElement(SkeletonContextProvider, {\n value: contextValues.skeletonGroup\n }, /*#__PURE__*/React.createElement(slots.root, slotProps.root));\n};\n//# sourceMappingURL=renderSkeleton.js.map"],"names":["renderSkeleton_unstable","state","contextValues","slots","slotProps","getSlots","React","createElement","SkeletonContextProvider","value","skeletonGroup","root"],"mappings":";;;;+BAMaA;;aAAAA;;;6DANU;gCACE;iCACe;AAIjC,MAAMA,0BAA0B,CAACC,OAAOC,gBAAkB;IAC/D,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,wBAAQ,EAACJ;IACb,OAAO,WAAW,GAAEK,OAAMC,aAAa,CAACC,wCAAuB,EAAE;QAC/DC,OAAOP,cAAcQ,aAAa;IACpC,GAAG,WAAW,GAAEJ,OAAMC,aAAa,CAACJ,MAAMQ,IAAI,EAAEP,UAAUO,IAAI;AAChE,GACA,0CAA0C"}
|
|
@@ -1,44 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useSkeleton_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>useSkeleton_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
'aria-busy': true,
|
|
31
|
-
'aria-label': 'Loading Content',
|
|
32
|
-
...props
|
|
33
|
-
});
|
|
34
|
-
return {
|
|
35
|
-
animation,
|
|
36
|
-
appearance,
|
|
37
|
-
components: {
|
|
38
|
-
root: 'div'
|
|
39
|
-
},
|
|
40
|
-
root
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
exports.useSkeleton_unstable = useSkeleton_unstable;
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactUtilities = require("@fluentui/react-utilities");
|
|
12
|
+
const _skeletonContext = require("../../contexts/SkeletonContext");
|
|
13
|
+
const useSkeleton_unstable = (props, ref)=>{
|
|
14
|
+
const { animation: contextAnimation , appearance: contextAppearance } = (0, _skeletonContext.useSkeletonContext)();
|
|
15
|
+
const { animation =contextAnimation !== null && contextAnimation !== void 0 ? contextAnimation : 'wave' , appearance =contextAppearance !== null && contextAppearance !== void 0 ? contextAppearance : 'opaque' } = props;
|
|
16
|
+
const root = (0, _reactUtilities.getNativeElementProps)('div', {
|
|
17
|
+
ref,
|
|
18
|
+
role: 'progressbar',
|
|
19
|
+
'aria-busy': true,
|
|
20
|
+
'aria-label': 'Loading Content',
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
animation,
|
|
25
|
+
appearance,
|
|
26
|
+
components: {
|
|
27
|
+
root: 'div'
|
|
28
|
+
},
|
|
29
|
+
root
|
|
30
|
+
};
|
|
31
|
+
}; //# sourceMappingURL=useSkeleton.js.map
|
|
32
|
+
|
|
44
33
|
//# sourceMappingURL=useSkeleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Skeleton/useSkeleton.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport { useSkeletonContext } from '../../contexts/SkeletonContext';\n/**\n * Create the state required to render Skeleton.\n *\n * The returned state can be modified with hooks such as useSkeletonStyles_unstable,\n * before being passed to renderSkeleton_unstable.\n *\n * @param props - props from this instance of Skeleton\n * @param ref - reference to root HTMLElement of Skeleton\n */\nexport const useSkeleton_unstable = (props, ref) => {\n const {\n animation: contextAnimation,\n appearance: contextAppearance\n } = useSkeletonContext();\n const {\n animation = contextAnimation !== null && contextAnimation !== void 0 ? contextAnimation : 'wave',\n appearance = contextAppearance !== null && contextAppearance !== void 0 ? contextAppearance : 'opaque'\n } = props;\n const root = getNativeElementProps('div', {\n ref,\n role: 'progressbar',\n 'aria-busy': true,\n 'aria-label': 'Loading Content',\n ...props\n });\n return {\n animation,\n appearance,\n components: {\n root: 'div'\n },\n root\n };\n};\n//# sourceMappingURL=useSkeleton.js.map"],"names":["useSkeleton_unstable","props","ref","animation","contextAnimation","appearance","contextAppearance","useSkeletonContext","root","getNativeElementProps","role","components"],"mappings":";;;;+BAYaA;;aAAAA;;;6DAZU;gCACe;iCACH;AAU5B,MAAMA,uBAAuB,CAACC,OAAOC,MAAQ;IAClD,MAAM,EACJC,WAAWC,iBAAgB,EAC3BC,YAAYC,kBAAiB,EAC9B,GAAGC,IAAAA,mCAAkB;IACtB,MAAM,EACJJ,WAAYC,qBAAqB,IAAI,IAAIA,qBAAqB,KAAK,IAAIA,mBAAmB,MAAM,CAAA,EAChGC,YAAaC,sBAAsB,IAAI,IAAIA,sBAAsB,KAAK,IAAIA,oBAAoB,QAAQ,CAAA,EACvG,GAAGL;IACJ,MAAMO,OAAOC,IAAAA,qCAAqB,EAAC,OAAO;QACxCP;QACAQ,MAAM;QACN,aAAa,IAAI;QACjB,cAAc;QACd,GAAGT,KAAK;IACV;IACA,OAAO;QACLE;QACAE;QACAM,YAAY;YACVH,MAAM;QACR;QACAA;IACF;AACF,GACA,uCAAuC"}
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useSkeletonContextValues", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>useSkeletonContextValues
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const useSkeletonContextValues = state
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const useSkeletonContextValues = (state)=>{
|
|
12
|
+
const { animation , appearance } = state;
|
|
13
|
+
const skeletonGroup = _react.useMemo(()=>({
|
|
14
|
+
animation,
|
|
15
|
+
appearance
|
|
16
|
+
}), [
|
|
17
|
+
animation,
|
|
18
|
+
appearance
|
|
19
|
+
]);
|
|
20
|
+
return {
|
|
21
|
+
skeletonGroup
|
|
22
|
+
};
|
|
23
|
+
}; //# sourceMappingURL=useSkeletonContextValues.js.map
|
|
24
|
+
|
|
22
25
|
//# sourceMappingURL=useSkeletonContextValues.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Skeleton/useSkeletonContextValues.js"],"sourcesContent":["import * as React from 'react';\nexport const useSkeletonContextValues = state => {\n const {\n animation,\n appearance\n } = state;\n const skeletonGroup = React.useMemo(() => ({\n animation,\n appearance\n }), [animation, appearance]);\n return {\n skeletonGroup\n };\n};\n//# sourceMappingURL=useSkeletonContextValues.js.map"],"names":["useSkeletonContextValues","state","animation","appearance","skeletonGroup","React","useMemo"],"mappings":";;;;+BACaA;;aAAAA;;;6DADU;AAChB,MAAMA,2BAA2BC,CAAAA,QAAS;IAC/C,MAAM,EACJC,UAAS,EACTC,WAAU,EACX,GAAGF;IACJ,MAAMG,gBAAgBC,OAAMC,OAAO,CAAC,IAAO,CAAA;YACzCJ;YACAC;QACF,CAAA,GAAI;QAACD;QAAWC;KAAW;IAC3B,OAAO;QACLC;IACF;AACF,GACA,oDAAoD"}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
skeletonClassNames: ()=>skeletonClassNames,
|
|
13
|
+
useSkeletonStyles_unstable: ()=>useSkeletonStyles_unstable
|
|
14
|
+
});
|
|
15
|
+
const _react = require("@griffel/react");
|
|
16
|
+
const skeletonClassNames = {
|
|
17
|
+
root: 'fui-Skeleton'
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
const useSkeletonStyles_unstable = (state)=>{
|
|
20
|
+
state.root.className = (0, _react.mergeClasses)(skeletonClassNames.root, state.root.className);
|
|
21
|
+
return state;
|
|
22
|
+
}; //# sourceMappingURL=useSkeletonStyles.js.map
|
|
23
|
+
|
|
19
24
|
//# sourceMappingURL=useSkeletonStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/Skeleton/useSkeletonStyles.js"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nexport const skeletonClassNames = {\n root: 'fui-Skeleton'\n};\n/**\n * Apply styling to the Skeleton slots based on the state\n */\nexport const useSkeletonStyles_unstable = state => {\n state.root.className = mergeClasses(skeletonClassNames.root, state.root.className);\n return state;\n};\n//# sourceMappingURL=useSkeletonStyles.js.map"],"names":["skeletonClassNames","useSkeletonStyles_unstable","root","state","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,kBAAkB,MAAlBA;IAMAC,0BAA0B,MAA1BA;;uBAPgB;AACtB,MAAMD,qBAAqB;IAChCE,MAAM;AACR;AAIO,MAAMD,6BAA6BE,CAAAA,QAAS;IACjDA,MAAMD,IAAI,CAACE,SAAS,GAAGC,IAAAA,mBAAY,EAACL,mBAAmBE,IAAI,EAAEC,MAAMD,IAAI,CAACE,SAAS;IACjF,OAAOD;AACT,GACA,6CAA6C"}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "SkeletonItem", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>SkeletonItem
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _useSkeletonItem = require("./useSkeletonItem");
|
|
12
|
+
const _renderSkeletonItem = require("./renderSkeletonItem");
|
|
13
|
+
const _useSkeletonItemStyles = require("./useSkeletonItemStyles");
|
|
14
|
+
const SkeletonItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
15
|
+
const state = (0, _useSkeletonItem.useSkeletonItem_unstable)(props, ref);
|
|
16
|
+
(0, _useSkeletonItemStyles.useSkeletonItemStyles_unstable)(state);
|
|
17
|
+
return (0, _renderSkeletonItem.renderSkeletonItem_unstable)(state);
|
|
15
18
|
});
|
|
16
|
-
|
|
19
|
+
SkeletonItem.displayName = 'SkeletonItem'; //# sourceMappingURL=SkeletonItem.js.map
|
|
20
|
+
|
|
17
21
|
//# sourceMappingURL=SkeletonItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/SkeletonItem/SkeletonItem.js"],"sourcesContent":["import * as React from 'react';\nimport { useSkeletonItem_unstable } from './useSkeletonItem';\nimport { renderSkeletonItem_unstable } from './renderSkeletonItem';\nimport { useSkeletonItemStyles_unstable } from './useSkeletonItemStyles';\nexport const SkeletonItem = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useSkeletonItem_unstable(props, ref);\n useSkeletonItemStyles_unstable(state);\n return renderSkeletonItem_unstable(state);\n});\nSkeletonItem.displayName = 'SkeletonItem';\n//# sourceMappingURL=SkeletonItem.js.map"],"names":["SkeletonItem","React","forwardRef","props","ref","state","useSkeletonItem_unstable","useSkeletonItemStyles_unstable","renderSkeletonItem_unstable","displayName"],"mappings":";;;;+BAIaA;;aAAAA;;;6DAJU;iCACkB;oCACG;uCACG;AACxC,MAAMA,eAAe,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACxE,MAAMC,QAAQC,IAAAA,yCAAwB,EAACH,OAAOC;IAC9CG,IAAAA,qDAA8B,EAACF;IAC/B,OAAOG,IAAAA,+CAA2B,EAACH;AACrC;AACAL,aAAaS,WAAW,GAAG,gBAC3B,wCAAwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/SkeletonItem/SkeletonItem.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=SkeletonItem.types.js.map"],"names":[],"mappings":";;;;CACA,8CAA8C"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
5
4
|
});
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
|
6
|
+
_exportStar(require("./SkeletonItem"), exports);
|
|
7
|
+
_exportStar(require("./SkeletonItem.types"), exports);
|
|
8
|
+
_exportStar(require("./renderSkeletonItem"), exports);
|
|
9
|
+
_exportStar(require("./useSkeletonItem"), exports);
|
|
10
|
+
_exportStar(require("./useSkeletonItemStyles"), exports);
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
12
|
+
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/SkeletonItem/index.js"],"sourcesContent":["export * from './SkeletonItem';\nexport * from './SkeletonItem.types';\nexport * from './renderSkeletonItem';\nexport * from './useSkeletonItem';\nexport * from './useSkeletonItemStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA;CACd,iCAAiC"}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "renderSkeletonItem_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>renderSkeletonItem_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
slots,
|
|
15
|
-
slotProps
|
|
16
|
-
} = react_utilities_1.getSlots(state);
|
|
17
|
-
return React.createElement(slots.root, {
|
|
18
|
-
...slotProps.root
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
exports.renderSkeletonItem_unstable = renderSkeletonItem_unstable;
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactUtilities = require("@fluentui/react-utilities");
|
|
12
|
+
const renderSkeletonItem_unstable = (state)=>{
|
|
13
|
+
const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
|
|
14
|
+
return /*#__PURE__*/ _react.createElement(slots.root, slotProps.root);
|
|
15
|
+
}; //# sourceMappingURL=renderSkeletonItem.js.map
|
|
16
|
+
|
|
22
17
|
//# sourceMappingURL=renderSkeletonItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/SkeletonItem/renderSkeletonItem.js"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of SkeletonItem\n */\nexport const renderSkeletonItem_unstable = state => {\n const {\n slots,\n slotProps\n } = getSlots(state);\n return /*#__PURE__*/React.createElement(slots.root, slotProps.root);\n};\n//# sourceMappingURL=renderSkeletonItem.js.map"],"names":["renderSkeletonItem_unstable","state","slots","slotProps","getSlots","React","createElement","root"],"mappings":";;;;+BAKaA;;aAAAA;;;6DALU;gCACE;AAIlB,MAAMA,8BAA8BC,CAAAA,QAAS;IAClD,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,wBAAQ,EAACH;IACb,OAAO,WAAW,GAAEI,OAAMC,aAAa,CAACJ,MAAMK,IAAI,EAAEJ,UAAUI,IAAI;AACpE,GACA,8CAA8C"}
|
|
@@ -1,45 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useSkeletonItem_unstable", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: ()=>useSkeletonItem_unstable
|
|
5
8
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const root = react_utilities_1.getNativeElementProps('div', {
|
|
30
|
-
ref,
|
|
31
|
-
...props
|
|
32
|
-
});
|
|
33
|
-
return {
|
|
34
|
-
appearance,
|
|
35
|
-
animation,
|
|
36
|
-
size,
|
|
37
|
-
shape,
|
|
38
|
-
components: {
|
|
39
|
-
root: 'div'
|
|
40
|
-
},
|
|
41
|
-
root
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
exports.useSkeletonItem_unstable = useSkeletonItem_unstable;
|
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
11
|
+
const _reactUtilities = require("@fluentui/react-utilities");
|
|
12
|
+
const _skeletonContext = require("../../contexts/SkeletonContext");
|
|
13
|
+
const useSkeletonItem_unstable = (props, ref)=>{
|
|
14
|
+
const { animation: contextAnimation , appearance: contextAppearance } = (0, _skeletonContext.useSkeletonContext)();
|
|
15
|
+
const { animation =contextAnimation !== null && contextAnimation !== void 0 ? contextAnimation : 'wave' , appearance =contextAppearance !== null && contextAppearance !== void 0 ? contextAppearance : 'opaque' , size =16 , shape ='rectangle' } = props;
|
|
16
|
+
const root = (0, _reactUtilities.getNativeElementProps)('div', {
|
|
17
|
+
ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
|
+
return {
|
|
21
|
+
appearance,
|
|
22
|
+
animation,
|
|
23
|
+
size,
|
|
24
|
+
shape,
|
|
25
|
+
components: {
|
|
26
|
+
root: 'div'
|
|
27
|
+
},
|
|
28
|
+
root
|
|
29
|
+
};
|
|
30
|
+
}; //# sourceMappingURL=useSkeletonItem.js.map
|
|
31
|
+
|
|
45
32
|
//# sourceMappingURL=useSkeletonItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../lib/components/SkeletonItem/useSkeletonItem.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport { useSkeletonContext } from '../../contexts/SkeletonContext';\n/**\n * Create the state required to render SkeletonItem.\n *\n * The returned state can be modified with hooks such as useSkeletonItemStyles_unstable,\n * before being passed to renderSkeletonItem_unstable.\n *\n * @param props - props from this instance of SkeletonItem\n * @param ref - reference to root HTMLElement of SkeletonItem\n */\nexport const useSkeletonItem_unstable = (props, ref) => {\n const {\n animation: contextAnimation,\n appearance: contextAppearance\n } = useSkeletonContext();\n const {\n animation = contextAnimation !== null && contextAnimation !== void 0 ? contextAnimation : 'wave',\n appearance = contextAppearance !== null && contextAppearance !== void 0 ? contextAppearance : 'opaque',\n size = 16,\n shape = 'rectangle'\n } = props;\n const root = getNativeElementProps('div', {\n ref,\n ...props\n });\n return {\n appearance,\n animation,\n size,\n shape,\n components: {\n root: 'div'\n },\n root\n };\n};\n//# sourceMappingURL=useSkeletonItem.js.map"],"names":["useSkeletonItem_unstable","props","ref","animation","contextAnimation","appearance","contextAppearance","useSkeletonContext","size","shape","root","getNativeElementProps","components"],"mappings":";;;;+BAYaA;;aAAAA;;;6DAZU;gCACe;iCACH;AAU5B,MAAMA,2BAA2B,CAACC,OAAOC,MAAQ;IACtD,MAAM,EACJC,WAAWC,iBAAgB,EAC3BC,YAAYC,kBAAiB,EAC9B,GAAGC,IAAAA,mCAAkB;IACtB,MAAM,EACJJ,WAAYC,qBAAqB,IAAI,IAAIA,qBAAqB,KAAK,IAAIA,mBAAmB,MAAM,CAAA,EAChGC,YAAaC,sBAAsB,IAAI,IAAIA,sBAAsB,KAAK,IAAIA,oBAAoB,QAAQ,CAAA,EACtGE,MAAO,GAAE,EACTC,OAAQ,YAAW,EACpB,GAAGR;IACJ,MAAMS,OAAOC,IAAAA,qCAAqB,EAAC,OAAO;QACxCT;QACA,GAAGD,KAAK;IACV;IACA,OAAO;QACLI;QACAF;QACAK;QACAC;QACAG,YAAY;YACVF,MAAM;QACR;QACAA;IACF;AACF,GACA,2CAA2C"}
|