@fluentui-react-native/experimental-shimmer 0.13.19 → 0.14.0

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.
Files changed (110) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/SPEC.md +2 -2
  3. package/lib/Shimmer.d.ts +7 -2
  4. package/lib/Shimmer.d.ts.map +1 -1
  5. package/lib/Shimmer.js +151 -90
  6. package/lib/Shimmer.js.map +1 -1
  7. package/lib/Shimmer.styling.d.ts +1 -1
  8. package/lib/Shimmer.styling.js +29 -26
  9. package/lib/Shimmer.styling.win32.d.ts +1 -1
  10. package/lib/Shimmer.styling.win32.js +36 -24
  11. package/lib/Shimmer.test.d.ts +1 -1
  12. package/lib/Shimmer.test.js +48 -44
  13. package/lib/Shimmer.test.js.map +1 -1
  14. package/lib/Shimmer.types.d.ts +10 -2
  15. package/lib/Shimmer.types.js +1 -1
  16. package/lib/Shimmer.types.shared.d.ts +123 -123
  17. package/lib/Shimmer.types.shared.js +1 -1
  18. package/lib/Shimmer.types.win32.d.ts +26 -26
  19. package/lib/Shimmer.types.win32.js +1 -1
  20. package/lib/Shimmer.win32.d.ts +7 -2
  21. package/lib/Shimmer.win32.d.ts.map +1 -1
  22. package/lib/Shimmer.win32.js +138 -114
  23. package/lib/Shimmer.win32.js.map +1 -1
  24. package/lib/ShimmerTokens.android.d.ts +1 -1
  25. package/lib/ShimmerTokens.android.js +8 -8
  26. package/lib/ShimmerTokens.android.js.map +1 -1
  27. package/lib/ShimmerTokens.d.ts +1 -1
  28. package/lib/ShimmerTokens.ios.d.ts +1 -1
  29. package/lib/ShimmerTokens.ios.js +8 -8
  30. package/lib/ShimmerTokens.ios.js.map +1 -1
  31. package/lib/ShimmerTokens.js +9 -9
  32. package/lib/ShimmerTokens.js.map +1 -1
  33. package/lib/ShimmerTokens.win32.d.ts +1 -1
  34. package/lib/ShimmerTokens.win32.js +10 -10
  35. package/lib/ShimmerTokens.win32.js.map +1 -1
  36. package/lib/SvgShapeToPath.d.ts +1 -1
  37. package/lib/SvgShapeToPath.js +134 -120
  38. package/lib/SvgShapeToPath.js.map +1 -1
  39. package/lib/Win32ShimmerNativeComponent.d.ts +5 -5
  40. package/lib/Win32ShimmerNativeComponent.d.ts.map +1 -1
  41. package/lib/Win32ShimmerNativeComponent.js +3 -3
  42. package/lib/Win32ShimmerNativeComponent.js.map +1 -1
  43. package/lib/consts.android.d.ts +1 -1
  44. package/lib/consts.android.js +1 -1
  45. package/lib/consts.d.ts +1 -1
  46. package/lib/consts.ios.d.ts +1 -1
  47. package/lib/consts.ios.js +1 -1
  48. package/lib/consts.js +1 -1
  49. package/lib/consts.win32.d.ts +1 -1
  50. package/lib/consts.win32.js +1 -1
  51. package/lib/index.d.ts +10 -2
  52. package/lib/index.js +1 -1
  53. package/lib-commonjs/Shimmer.d.ts +7 -2
  54. package/lib-commonjs/Shimmer.d.ts.map +1 -1
  55. package/lib-commonjs/Shimmer.js +164 -101
  56. package/lib-commonjs/Shimmer.js.map +1 -1
  57. package/lib-commonjs/Shimmer.styling.d.ts +1 -1
  58. package/lib-commonjs/Shimmer.styling.js +34 -31
  59. package/lib-commonjs/Shimmer.styling.win32.d.ts +1 -1
  60. package/lib-commonjs/Shimmer.styling.win32.js +41 -29
  61. package/lib-commonjs/Shimmer.test.d.ts +1 -1
  62. package/lib-commonjs/Shimmer.test.js +102 -71
  63. package/lib-commonjs/Shimmer.test.js.map +1 -1
  64. package/lib-commonjs/Shimmer.types.d.ts +10 -2
  65. package/lib-commonjs/Shimmer.types.js +10 -5
  66. package/lib-commonjs/Shimmer.types.js.map +1 -1
  67. package/lib-commonjs/Shimmer.types.shared.d.ts +123 -123
  68. package/lib-commonjs/Shimmer.types.shared.js +3 -3
  69. package/lib-commonjs/Shimmer.types.win32.d.ts +26 -26
  70. package/lib-commonjs/Shimmer.types.win32.js +10 -5
  71. package/lib-commonjs/Shimmer.types.win32.js.map +1 -1
  72. package/lib-commonjs/Shimmer.win32.d.ts +7 -2
  73. package/lib-commonjs/Shimmer.win32.d.ts.map +1 -1
  74. package/lib-commonjs/Shimmer.win32.js +166 -128
  75. package/lib-commonjs/Shimmer.win32.js.map +1 -1
  76. package/lib-commonjs/ShimmerTokens.android.d.ts +1 -1
  77. package/lib-commonjs/ShimmerTokens.android.js +11 -11
  78. package/lib-commonjs/ShimmerTokens.android.js.map +1 -1
  79. package/lib-commonjs/ShimmerTokens.d.ts +1 -1
  80. package/lib-commonjs/ShimmerTokens.ios.d.ts +1 -1
  81. package/lib-commonjs/ShimmerTokens.ios.js +11 -11
  82. package/lib-commonjs/ShimmerTokens.ios.js.map +1 -1
  83. package/lib-commonjs/ShimmerTokens.js +13 -13
  84. package/lib-commonjs/ShimmerTokens.js.map +1 -1
  85. package/lib-commonjs/ShimmerTokens.win32.d.ts +1 -1
  86. package/lib-commonjs/ShimmerTokens.win32.js +13 -13
  87. package/lib-commonjs/ShimmerTokens.win32.js.map +1 -1
  88. package/lib-commonjs/SvgShapeToPath.d.ts +1 -1
  89. package/lib-commonjs/SvgShapeToPath.js +138 -125
  90. package/lib-commonjs/SvgShapeToPath.js.map +1 -1
  91. package/lib-commonjs/Win32ShimmerNativeComponent.d.ts +5 -5
  92. package/lib-commonjs/Win32ShimmerNativeComponent.d.ts.map +1 -1
  93. package/lib-commonjs/Win32ShimmerNativeComponent.js +5 -8
  94. package/lib-commonjs/Win32ShimmerNativeComponent.js.map +1 -1
  95. package/lib-commonjs/consts.android.d.ts +1 -1
  96. package/lib-commonjs/consts.android.js +3 -3
  97. package/lib-commonjs/consts.d.ts +1 -1
  98. package/lib-commonjs/consts.ios.d.ts +1 -1
  99. package/lib-commonjs/consts.ios.js +3 -3
  100. package/lib-commonjs/consts.js +3 -3
  101. package/lib-commonjs/consts.win32.d.ts +1 -1
  102. package/lib-commonjs/consts.win32.js +3 -3
  103. package/lib-commonjs/index.d.ts +10 -2
  104. package/lib-commonjs/index.js +36 -11
  105. package/lib-commonjs/index.js.map +1 -1
  106. package/package.json +63 -62
  107. package/src/Shimmer.test.tsx +16 -13
  108. package/src/Shimmer.tsx +3 -4
  109. package/src/Shimmer.win32.tsx +1 -3
  110. package/src/Win32ShimmerNativeComponent.ts +3 -3
@@ -1,105 +1,168 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ var __importDefault =
3
+ (this && this.__importDefault) ||
4
+ function (mod) {
5
+ return mod && mod.__esModule ? mod : { default: mod };
6
+ };
7
+ Object.defineProperty(exports, '__esModule', { value: true });
6
8
  exports.Shimmer = void 0;
7
- /** @jsxRuntime classic */
8
- /** @jsx withSlots */
9
- const react_1 = require("react");
10
- const react_native_1 = require("react-native");
11
- const framework_1 = require("@fluentui-react-native/framework");
12
- const assert_never_1 = __importDefault(require("assert-never"));
13
- const react_native_svg_1 = require("react-native-svg");
14
- const Shimmer_styling_1 = require("./Shimmer.styling");
15
- const Shimmer_types_1 = require("./Shimmer.types");
9
+ const jsx_runtime_1 = require('@fluentui-react-native/framework-base/jsx-runtime');
10
+ /** @jsxImportSource @fluentui-react-native/framework-base */
11
+ const react_1 = require('react');
12
+ const react_native_1 = require('react-native');
13
+ const framework_1 = require('@fluentui-react-native/framework');
14
+ const assert_never_1 = __importDefault(require('assert-never'));
15
+ const react_native_svg_1 = require('react-native-svg');
16
+ const Shimmer_styling_1 = require('./Shimmer.styling');
17
+ const Shimmer_types_1 = require('./Shimmer.types');
16
18
  const useStyling = (0, framework_1.buildUseStyling)(Shimmer_styling_1.stylingSettings);
17
19
  exports.Shimmer = (0, framework_1.compose)({
18
- displayName: Shimmer_types_1.shimmerName,
19
- ...Shimmer_styling_1.stylingSettings,
20
- slots: {
21
- root: react_native_svg_1.Svg,
22
- },
23
- useRender: (props, useSlots) => {
24
- const Slots = useSlots(props);
25
- props = (0, framework_1.mergeProps)(props, Slots.root({}).props);
26
- const AnimatedLinearGradient = react_native_1.Animated.createAnimatedComponent(react_native_svg_1.LinearGradient);
27
- const tokens = useStyling(props).root;
28
- const memoizedShimmerData = (0, react_1.useMemo)(() => ({
29
- angle: props.angle ? props.angle : tokens['angle'],
30
- backgroundColor: props?.style?.['backgroundColor'] ? props?.style['backgroundColor'] : tokens['backgroundColor'] ?? 'transparent',
31
- containerBorderRadius: props?.style?.['borderRadius'] ? props?.style['borderRadius'] : 0,
32
- containerWidth: props?.style?.['width'] ? props?.style['width'] : '100%',
33
- containerHeight: props?.style?.['height'] ? props?.style['height'] : '100%',
34
- delay: props.delay ? props.delay : tokens['delay'],
35
- duration: props.duration ? props.duration : tokens['duration'],
36
- shimmerColor: props.shimmerColor ? props.shimmerColor : tokens['shimmerColor'],
37
- shimmerColorOpacity: tokens['shimmerColorOpacity'],
38
- shimmerWaveColor: props.shimmerWaveColor ? props.shimmerWaveColor : tokens['shimmerWaveColor'],
39
- shimmerWaveColorOpacity: tokens['shimmerWaveColorOpacity'],
40
- }), [
41
- props.angle,
42
- props.backgroundColor,
43
- props.delay,
44
- props.duration,
45
- props.shimmerColor,
46
- props.shimmerColorOpacity,
47
- props.shimmerWaveColor,
48
- props.shimmerWaveColorOpacity,
49
- props.style,
50
- ]);
51
- /* The shimmer animation is implemented using a LinearGradient which travels from left to right.
52
- * Different angles are handled by rotating this gradient.
53
- * The startValue is used to control the start position of the gradient animation, it is set as -2 to make sure it is starts off the screen for any angle.
54
- * Similarly the endValue is set to 3 to make sure the gradient animation exits the entire screen for any angle.
55
- * In RTL, startValue and endValue are flipped to ensure that the animation moves from right to left.
56
- */
57
- const startValue = react_native_1.I18nManager.isRTL ? 3 : -2;
58
- const endValue = react_native_1.I18nManager.isRTL ? -2 : 3;
59
- const x1 = (0, react_1.useRef)(new react_native_1.Animated.Value(startValue)).current;
60
- const shimmerAnimation = (0, react_1.useCallback)(() => {
61
- react_native_1.Animated.loop(react_native_1.Animated.timing(x1, {
62
- toValue: endValue,
63
- duration: memoizedShimmerData.duration,
64
- delay: memoizedShimmerData.delay,
65
- useNativeDriver: true,
66
- })).start();
67
- }, [memoizedShimmerData.delay, memoizedShimmerData.duration]);
68
- (0, react_1.useEffect)(() => {
69
- shimmerAnimation();
70
- });
71
- return (rest) => {
72
- const { elements, ...mergedProps } = (0, framework_1.mergeProps)(props, rest);
73
- const rows = [];
74
- if (elements) {
75
- for (let i = 0; i < elements.length; i++) {
76
- const element = elements[i];
77
- if (element.type == 'rect') {
78
- rows.push((0, framework_1.withSlots)(react_native_svg_1.Rect, { key: i, width: element.width, height: element.height, x: element.x, y: element.y, rx: element.borderRadiusX, ry: element.borderRadiusY }));
79
- }
80
- else if (element.type == 'circle') {
81
- rows.push((0, framework_1.withSlots)(react_native_svg_1.Circle, { key: i, r: element.radius, cx: element.cx, cy: element.cy }));
82
- }
83
- else {
84
- (0, assert_never_1.default)(element);
85
- }
86
- }
87
- }
88
- // Flip the SVG if we are running in RTL
89
- const rtlTransfrom = react_native_1.I18nManager.isRTL
90
- ? { translateX: memoizedShimmerData.containerWidth, scaleX: -1 }
91
- : { translateX: undefined, scaleX: undefined };
92
- return ((0, framework_1.withSlots)(Slots.root, { ...mergedProps },
93
- (0, framework_1.withSlots)(react_native_svg_1.Defs, null,
94
- (0, framework_1.withSlots)(AnimatedLinearGradient, { id: "gradient", x1: x1, x2: "-1", gradientTransform: `rotate(${memoizedShimmerData.angle})` },
95
- (0, framework_1.withSlots)(react_native_svg_1.Stop, { offset: "10%", stopColor: memoizedShimmerData.shimmerColor, stopOpacity: memoizedShimmerData.shimmerColorOpacity }),
96
- (0, framework_1.withSlots)(react_native_svg_1.Stop, { offset: "20%", stopColor: memoizedShimmerData.shimmerWaveColor, stopOpacity: memoizedShimmerData.shimmerWaveColorOpacity }),
97
- (0, framework_1.withSlots)(react_native_svg_1.Stop, { offset: "30%", stopColor: memoizedShimmerData.shimmerColor, stopOpacity: memoizedShimmerData.shimmerColorOpacity })),
98
- (0, framework_1.withSlots)(react_native_svg_1.ClipPath, { id: "shimmerView" }, rows)),
99
- (0, framework_1.withSlots)(react_native_svg_1.G, { transformProps: rtlTransfrom },
100
- (0, framework_1.withSlots)(react_native_svg_1.Rect, { x: "0", y: "0", width: memoizedShimmerData.containerWidth, height: memoizedShimmerData.containerHeight, fill: memoizedShimmerData.backgroundColor, rx: memoizedShimmerData.containerBorderRadius }),
101
- (0, framework_1.withSlots)(react_native_svg_1.Rect, { x: "0", y: "0", width: memoizedShimmerData.containerWidth, height: memoizedShimmerData.containerHeight, fill: "url(#gradient)", rx: memoizedShimmerData.containerBorderRadius, clipPath: "url(#shimmerView)" }))));
102
- };
103
- },
20
+ displayName: Shimmer_types_1.shimmerName,
21
+ ...Shimmer_styling_1.stylingSettings,
22
+ slots: {
23
+ root: react_native_svg_1.Svg,
24
+ },
25
+ useRender: (props, useSlots) => {
26
+ const Slots = useSlots(props);
27
+ props = (0, framework_1.mergeProps)(props, Slots.root({}).props);
28
+ const AnimatedLinearGradient = react_native_1.Animated.createAnimatedComponent(react_native_svg_1.LinearGradient);
29
+ const tokens = useStyling(props).root;
30
+ const memoizedShimmerData = (0, react_1.useMemo)(
31
+ () => ({
32
+ angle: props.angle ? props.angle : tokens['angle'],
33
+ backgroundColor: props?.style?.['backgroundColor'] ? props?.style['backgroundColor'] : tokens['backgroundColor'] ?? 'transparent',
34
+ containerBorderRadius: props?.style?.['borderRadius'] ? props?.style['borderRadius'] : 0,
35
+ containerWidth: props?.style?.['width'] ? props?.style['width'] : '100%',
36
+ containerHeight: props?.style?.['height'] ? props?.style['height'] : '100%',
37
+ delay: props.delay ? props.delay : tokens['delay'],
38
+ duration: props.duration ? props.duration : tokens['duration'],
39
+ shimmerColor: props.shimmerColor ? props.shimmerColor : tokens['shimmerColor'],
40
+ shimmerColorOpacity: tokens['shimmerColorOpacity'],
41
+ shimmerWaveColor: props.shimmerWaveColor ? props.shimmerWaveColor : tokens['shimmerWaveColor'],
42
+ shimmerWaveColorOpacity: tokens['shimmerWaveColorOpacity'],
43
+ }),
44
+ [
45
+ props.angle,
46
+ props.backgroundColor,
47
+ props.delay,
48
+ props.duration,
49
+ props.shimmerColor,
50
+ props.shimmerColorOpacity,
51
+ props.shimmerWaveColor,
52
+ props.shimmerWaveColorOpacity,
53
+ props.style,
54
+ ],
55
+ );
56
+ /* The shimmer animation is implemented using a LinearGradient which travels from left to right.
57
+ * Different angles are handled by rotating this gradient.
58
+ * The startValue is used to control the start position of the gradient animation, it is set as -2 to make sure it is starts off the screen for any angle.
59
+ * Similarly the endValue is set to 3 to make sure the gradient animation exits the entire screen for any angle.
60
+ * In RTL, startValue and endValue are flipped to ensure that the animation moves from right to left.
61
+ */
62
+ const startValue = react_native_1.I18nManager.isRTL ? 3 : -2;
63
+ const endValue = react_native_1.I18nManager.isRTL ? -2 : 3;
64
+ const x1 = (0, react_1.useRef)(new react_native_1.Animated.Value(startValue)).current;
65
+ const shimmerAnimation = (0, react_1.useCallback)(() => {
66
+ react_native_1.Animated.loop(
67
+ react_native_1.Animated.timing(x1, {
68
+ toValue: endValue,
69
+ duration: memoizedShimmerData.duration,
70
+ delay: memoizedShimmerData.delay,
71
+ useNativeDriver: true,
72
+ }),
73
+ ).start();
74
+ }, [memoizedShimmerData.delay, memoizedShimmerData.duration]);
75
+ (0, react_1.useEffect)(() => {
76
+ shimmerAnimation();
77
+ });
78
+ return (rest) => {
79
+ const { elements, ...mergedProps } = (0, framework_1.mergeProps)(props, rest);
80
+ const rows = [];
81
+ if (elements) {
82
+ for (let i = 0; i < elements.length; i++) {
83
+ const element = elements[i];
84
+ if (element.type == 'rect') {
85
+ rows.push(
86
+ jsx_runtime_1.jsx(
87
+ react_native_svg_1.Rect,
88
+ {
89
+ width: element.width,
90
+ height: element.height,
91
+ x: element.x,
92
+ y: element.y,
93
+ rx: element.borderRadiusX,
94
+ ry: element.borderRadiusY,
95
+ },
96
+ i,
97
+ ),
98
+ );
99
+ } else if (element.type == 'circle') {
100
+ rows.push(jsx_runtime_1.jsx(react_native_svg_1.Circle, { r: element.radius, cx: element.cx, cy: element.cy }, i));
101
+ } else {
102
+ (0, assert_never_1.default)(element);
103
+ }
104
+ }
105
+ }
106
+ // Flip the SVG if we are running in RTL
107
+ const rtlTransfrom = react_native_1.I18nManager.isRTL
108
+ ? { translateX: memoizedShimmerData.containerWidth, scaleX: -1 }
109
+ : { translateX: undefined, scaleX: undefined };
110
+ return jsx_runtime_1.jsxs(Slots.root, {
111
+ ...mergedProps,
112
+ children: [
113
+ jsx_runtime_1.jsxs(react_native_svg_1.Defs, {
114
+ children: [
115
+ jsx_runtime_1.jsxs(AnimatedLinearGradient, {
116
+ id: 'gradient',
117
+ x1: x1,
118
+ x2: '-1',
119
+ gradientTransform: `rotate(${memoizedShimmerData.angle})`,
120
+ children: [
121
+ jsx_runtime_1.jsx(react_native_svg_1.Stop, {
122
+ offset: '10%',
123
+ stopColor: memoizedShimmerData.shimmerColor,
124
+ stopOpacity: memoizedShimmerData.shimmerColorOpacity,
125
+ }),
126
+ jsx_runtime_1.jsx(react_native_svg_1.Stop, {
127
+ offset: '20%',
128
+ stopColor: memoizedShimmerData.shimmerWaveColor,
129
+ stopOpacity: memoizedShimmerData.shimmerWaveColorOpacity,
130
+ }),
131
+ jsx_runtime_1.jsx(react_native_svg_1.Stop, {
132
+ offset: '30%',
133
+ stopColor: memoizedShimmerData.shimmerColor,
134
+ stopOpacity: memoizedShimmerData.shimmerColorOpacity,
135
+ }),
136
+ ],
137
+ }),
138
+ jsx_runtime_1.jsx(react_native_svg_1.ClipPath, { id: 'shimmerView', children: rows }),
139
+ ],
140
+ }),
141
+ jsx_runtime_1.jsxs(react_native_svg_1.G, {
142
+ transformProps: rtlTransfrom,
143
+ children: [
144
+ jsx_runtime_1.jsx(react_native_svg_1.Rect, {
145
+ x: '0',
146
+ y: '0',
147
+ width: memoizedShimmerData.containerWidth,
148
+ height: memoizedShimmerData.containerHeight,
149
+ fill: memoizedShimmerData.backgroundColor,
150
+ rx: memoizedShimmerData.containerBorderRadius,
151
+ }),
152
+ jsx_runtime_1.jsx(react_native_svg_1.Rect, {
153
+ x: '0',
154
+ y: '0',
155
+ width: memoizedShimmerData.containerWidth,
156
+ height: memoizedShimmerData.containerHeight,
157
+ fill: 'url(#gradient)',
158
+ rx: memoizedShimmerData.containerBorderRadius,
159
+ clipPath: 'url(#shimmerView)',
160
+ }),
161
+ ],
162
+ }),
163
+ ],
164
+ });
165
+ };
166
+ },
104
167
  });
105
- //# sourceMappingURL=Shimmer.js.map
168
+ //# sourceMappingURL=Shimmer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shimmer.js","sourceRoot":"","sources":["../src/Shimmer.tsx"],"names":[],"mappings":";;;;;;AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,iCAAgE;AAEhE,+CAAqD;AAGrD,gEAAmG;AACnG,gEAAuC;AACvC,uDAA8F;AAE9F,uDAAoD;AAEpD,mDAA8C;AAE9C,MAAM,UAAU,GAAG,IAAA,2BAAe,EAAC,iCAAe,CAAC,CAAC;AACvC,QAAA,OAAO,GAAG,IAAA,mBAAO,EAAc;IAC1C,WAAW,EAAE,2BAAW;IACxB,GAAG,iCAAe;IAClB,KAAK,EAAE;QACL,IAAI,EAAE,sBAAG;KACV;IACD,SAAS,EAAE,CAAC,KAAmB,EAAE,QAA+B,EAAE,EAAE;QAClE,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC9B,KAAK,GAAG,IAAA,sBAAU,EAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;QAChD,MAAM,sBAAsB,GAAG,uBAAQ,CAAC,uBAAuB,CAAC,iCAAc,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;QACtC,MAAM,mBAAmB,GAAG,IAAA,eAAO,EACjC,GAAG,EAAE,CAAC,CAAC;YACL,KAAK,EAAE,KAAK,CAAC,KAAK,CA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E,mBAAmB,CAAC,uBAAuB,GACxD,EACF,kBAAC,uBAAI,IAAC,MAAM,EAAC,KAAK,EAAC,SAAS,EAAE,mBAAmB,CAAC,YAAY,EAAE,WAAW,EAAE,mBAAmB,CAAC,mBAAmB,GAAI;oCACjG,EACzB,kBAAC,2BAAQ,IAAC,EAAE,EAAC,aAAa,YAAE,IAAI,GAAY;4BACvC,EACP,mBAAC,oBAAC,IAAC,cAAc,EAAE,YAAY;4BAC7B,kBAAC,uBAAI,IACH,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,KAAK,EAAE,mBAAmB,CAAC,cAAc,EACzC,MAAM,EAAE,mBAAmB,CAAC,eAAe,EAC3C,IAAI,EAAE,mBAAmB,CAAC,eAAe,EACzC,EAAE,EAAE,mBAAmB,CAAC,qBAAqB,GAC7C,EACF,kBAAC,uBAAI,IACH,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,KAAK,EAAE,mBAAmB,CAAC,cAAc,EACzC,MAAM,EAAE,mBAAmB,CAAC,eAAe,EAC3C,IAAI,EAAC,gBAAgB,EACrB,EAAE,EAAE,mBAAmB,CAAC,qBAAqB,EAC7C,QAAQ,EAAC,mBAAmB,GAC5B;4BACA;oBACO,CACd,CAAC;QAAA,CACH,CAAC;IAAA,CACH;CACF,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { UseStylingOptions } from '@fluentui-react-native/framework';
2
2
  import type { ShimmerProps, ShimmerSlotProps, ShimmerTokens } from './Shimmer.types';
3
3
  export declare const stylingSettings: UseStylingOptions<ShimmerProps, ShimmerSlotProps, ShimmerTokens>;
4
- //# sourceMappingURL=Shimmer.styling.d.ts.map
4
+ //# sourceMappingURL=Shimmer.styling.d.ts.map
@@ -1,34 +1,37 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.stylingSettings = void 0;
4
- const framework_1 = require("@fluentui-react-native/framework");
5
- const Shimmer_types_1 = require("./Shimmer.types");
6
- const ShimmerTokens_1 = require("./ShimmerTokens");
4
+ const framework_1 = require('@fluentui-react-native/framework');
5
+ const Shimmer_types_1 = require('./Shimmer.types');
6
+ const ShimmerTokens_1 = require('./ShimmerTokens');
7
7
  exports.stylingSettings = {
8
- tokens: [ShimmerTokens_1.defaultShimmerTokens, Shimmer_types_1.shimmerName],
9
- tokensThatAreAlsoProps: 'all',
10
- slotProps: {
11
- root: (0, framework_1.buildProps)((tokens) => ({
12
- accessibilityRole: 'progressbar',
13
- accessible: true,
14
- style: { overflow: 'hidden', backgroundColor: tokens.backgroundColor },
15
- angle: tokens.angle,
16
- delay: tokens.delay,
17
- duration: tokens.duration,
18
- shimmerColor: tokens.shimmerColor,
19
- shimmerColorOpacity: tokens.shimmerColorOpacity,
20
- shimmerWaveColor: tokens.shimmerWaveColor,
21
- shimmerWaveColorOpacity: tokens.shimmerWaveColorOpacity,
22
- }), [
23
- 'angle',
24
- 'delay',
25
- 'duration',
26
- 'shimmerColor',
27
- 'shimmerColorOpacity',
28
- 'shimmerWaveColor',
29
- 'shimmerWaveColorOpacity',
30
- 'backgroundColor',
31
- ]),
32
- },
8
+ tokens: [ShimmerTokens_1.defaultShimmerTokens, Shimmer_types_1.shimmerName],
9
+ tokensThatAreAlsoProps: 'all',
10
+ slotProps: {
11
+ root: (0, framework_1.buildProps)(
12
+ (tokens) => ({
13
+ accessibilityRole: 'progressbar',
14
+ accessible: true,
15
+ style: { overflow: 'hidden', backgroundColor: tokens.backgroundColor },
16
+ angle: tokens.angle,
17
+ delay: tokens.delay,
18
+ duration: tokens.duration,
19
+ shimmerColor: tokens.shimmerColor,
20
+ shimmerColorOpacity: tokens.shimmerColorOpacity,
21
+ shimmerWaveColor: tokens.shimmerWaveColor,
22
+ shimmerWaveColorOpacity: tokens.shimmerWaveColorOpacity,
23
+ }),
24
+ [
25
+ 'angle',
26
+ 'delay',
27
+ 'duration',
28
+ 'shimmerColor',
29
+ 'shimmerColorOpacity',
30
+ 'shimmerWaveColor',
31
+ 'shimmerWaveColorOpacity',
32
+ 'backgroundColor',
33
+ ],
34
+ ),
35
+ },
33
36
  };
34
- //# sourceMappingURL=Shimmer.styling.js.map
37
+ //# sourceMappingURL=Shimmer.styling.js.map
@@ -5,4 +5,4 @@ import type { ShimmerSlotProps } from './Shimmer.types.win32';
5
5
  * tell the styling hook how to build up the tokens
6
6
  */
7
7
  export declare const stylingSettings: UseStylingOptions<ShimmerProps, ShimmerSlotProps, ShimmerTokens>;
8
- //# sourceMappingURL=Shimmer.styling.win32.d.ts.map
8
+ //# sourceMappingURL=Shimmer.styling.win32.d.ts.map
@@ -1,35 +1,47 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.stylingSettings = void 0;
4
- const framework_1 = require("@fluentui-react-native/framework");
5
- const Shimmer_types_1 = require("./Shimmer.types");
6
- const ShimmerTokens_win32_1 = require("./ShimmerTokens.win32");
4
+ const framework_1 = require('@fluentui-react-native/framework');
5
+ const Shimmer_types_1 = require('./Shimmer.types');
6
+ const ShimmerTokens_win32_1 = require('./ShimmerTokens.win32');
7
7
  /**
8
8
  * tell the styling hook how to build up the tokens
9
9
  */
10
10
  exports.stylingSettings = {
11
- tokens: [ShimmerTokens_win32_1.defaultShimmerTokens, Shimmer_types_1.shimmerName],
12
- tokensThatAreAlsoProps: 'all',
13
- slotProps: {
14
- root: (0, framework_1.buildProps)((tokens) => ({
15
- accessibilityRole: 'progressbar',
16
- accessible: true,
17
- style: { overflow: 'hidden', backgroundColor: tokens.backgroundColor },
18
- }), ['backgroundColor']),
19
- shimmerWaveContainer: (0, framework_1.buildProps)((tokens) => ({
20
- delay: tokens.delay,
21
- duration: tokens.duration,
22
- shimmerColor: tokens.shimmerColor,
23
- }), ['delay', 'duration', 'shimmerColor']),
24
- shimmerWave: (0, framework_1.buildProps)((tokens) => ({
25
- angle: tokens.angle,
26
- shimmerColor: tokens.shimmerColor,
27
- shimmerWaveColor: tokens.shimmerWaveColor,
28
- shimmerWaveWidth: tokens.shimmerWaveWidth,
29
- }), ['angle', 'shimmerColor', 'shimmerWaveColor', 'shimmerWaveWidth']),
30
- clippingMask: (0, framework_1.buildProps)((tokens) => ({
31
- backgroundColor: tokens.backgroundColor,
32
- }), ['backgroundColor']),
33
- },
11
+ tokens: [ShimmerTokens_win32_1.defaultShimmerTokens, Shimmer_types_1.shimmerName],
12
+ tokensThatAreAlsoProps: 'all',
13
+ slotProps: {
14
+ root: (0, framework_1.buildProps)(
15
+ (tokens) => ({
16
+ accessibilityRole: 'progressbar',
17
+ accessible: true,
18
+ style: { overflow: 'hidden', backgroundColor: tokens.backgroundColor },
19
+ }),
20
+ ['backgroundColor'],
21
+ ),
22
+ shimmerWaveContainer: (0, framework_1.buildProps)(
23
+ (tokens) => ({
24
+ delay: tokens.delay,
25
+ duration: tokens.duration,
26
+ shimmerColor: tokens.shimmerColor,
27
+ }),
28
+ ['delay', 'duration', 'shimmerColor'],
29
+ ),
30
+ shimmerWave: (0, framework_1.buildProps)(
31
+ (tokens) => ({
32
+ angle: tokens.angle,
33
+ shimmerColor: tokens.shimmerColor,
34
+ shimmerWaveColor: tokens.shimmerWaveColor,
35
+ shimmerWaveWidth: tokens.shimmerWaveWidth,
36
+ }),
37
+ ['angle', 'shimmerColor', 'shimmerWaveColor', 'shimmerWaveWidth'],
38
+ ),
39
+ clippingMask: (0, framework_1.buildProps)(
40
+ (tokens) => ({
41
+ backgroundColor: tokens.backgroundColor,
42
+ }),
43
+ ['backgroundColor'],
44
+ ),
45
+ },
34
46
  };
35
- //# sourceMappingURL=Shimmer.styling.win32.js.map
47
+ //# sourceMappingURL=Shimmer.styling.win32.js.map
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=Shimmer.test.d.ts.map
2
+ //# sourceMappingURL=Shimmer.test.d.ts.map