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

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 (102) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/lib/Shimmer.d.ts +2 -7
  3. package/lib/Shimmer.d.ts.map +1 -1
  4. package/lib/Shimmer.js +77 -149
  5. package/lib/Shimmer.js.map +1 -1
  6. package/lib/Shimmer.styling.d.ts +1 -1
  7. package/lib/Shimmer.styling.js +26 -29
  8. package/lib/Shimmer.styling.win32.d.ts +1 -1
  9. package/lib/Shimmer.styling.win32.js +24 -36
  10. package/lib/Shimmer.test.d.ts +1 -1
  11. package/lib/Shimmer.test.js +45 -45
  12. package/lib/Shimmer.test.js.map +1 -1
  13. package/lib/Shimmer.types.d.ts +2 -10
  14. package/lib/Shimmer.types.js +1 -1
  15. package/lib/Shimmer.types.shared.d.ts +123 -123
  16. package/lib/Shimmer.types.shared.d.ts.map +1 -1
  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 +2 -7
  21. package/lib/Shimmer.win32.js +107 -137
  22. package/lib/ShimmerTokens.android.d.ts +1 -1
  23. package/lib/ShimmerTokens.android.js +8 -8
  24. package/lib/ShimmerTokens.android.js.map +1 -1
  25. package/lib/ShimmerTokens.d.ts +1 -1
  26. package/lib/ShimmerTokens.ios.d.ts +1 -1
  27. package/lib/ShimmerTokens.ios.js +8 -8
  28. package/lib/ShimmerTokens.ios.js.map +1 -1
  29. package/lib/ShimmerTokens.js +9 -9
  30. package/lib/ShimmerTokens.js.map +1 -1
  31. package/lib/ShimmerTokens.win32.d.ts +1 -1
  32. package/lib/ShimmerTokens.win32.js +10 -10
  33. package/lib/ShimmerTokens.win32.js.map +1 -1
  34. package/lib/SvgShapeToPath.d.ts +1 -1
  35. package/lib/SvgShapeToPath.js +120 -134
  36. package/lib/Win32ShimmerNativeComponent.d.ts +4 -4
  37. package/lib/Win32ShimmerNativeComponent.js +1 -1
  38. package/lib/consts.android.d.ts +1 -1
  39. package/lib/consts.android.js +1 -1
  40. package/lib/consts.d.ts +1 -1
  41. package/lib/consts.ios.d.ts +1 -1
  42. package/lib/consts.ios.js +1 -1
  43. package/lib/consts.js +1 -1
  44. package/lib/consts.win32.d.ts +1 -1
  45. package/lib/consts.win32.js +1 -1
  46. package/lib/index.d.ts +2 -10
  47. package/lib/index.js +1 -1
  48. package/lib-commonjs/Shimmer.d.ts +2 -7
  49. package/lib-commonjs/Shimmer.d.ts.map +1 -1
  50. package/lib-commonjs/Shimmer.js +89 -163
  51. package/lib-commonjs/Shimmer.js.map +1 -1
  52. package/lib-commonjs/Shimmer.styling.d.ts +1 -1
  53. package/lib-commonjs/Shimmer.styling.js +31 -34
  54. package/lib-commonjs/Shimmer.styling.win32.d.ts +1 -1
  55. package/lib-commonjs/Shimmer.styling.win32.js +29 -41
  56. package/lib-commonjs/Shimmer.test.d.ts +1 -1
  57. package/lib-commonjs/Shimmer.test.js +79 -96
  58. package/lib-commonjs/Shimmer.test.js.map +1 -1
  59. package/lib-commonjs/Shimmer.types.d.ts +2 -10
  60. package/lib-commonjs/Shimmer.types.js +5 -10
  61. package/lib-commonjs/Shimmer.types.shared.d.ts +123 -123
  62. package/lib-commonjs/Shimmer.types.shared.d.ts.map +1 -1
  63. package/lib-commonjs/Shimmer.types.shared.js +3 -3
  64. package/lib-commonjs/Shimmer.types.win32.d.ts +26 -26
  65. package/lib-commonjs/Shimmer.types.win32.js +5 -10
  66. package/lib-commonjs/Shimmer.win32.d.ts +2 -7
  67. package/lib-commonjs/Shimmer.win32.js +120 -164
  68. package/lib-commonjs/ShimmerTokens.android.d.ts +1 -1
  69. package/lib-commonjs/ShimmerTokens.android.js +11 -11
  70. package/lib-commonjs/ShimmerTokens.android.js.map +1 -1
  71. package/lib-commonjs/ShimmerTokens.d.ts +1 -1
  72. package/lib-commonjs/ShimmerTokens.ios.d.ts +1 -1
  73. package/lib-commonjs/ShimmerTokens.ios.js +11 -11
  74. package/lib-commonjs/ShimmerTokens.ios.js.map +1 -1
  75. package/lib-commonjs/ShimmerTokens.js +13 -13
  76. package/lib-commonjs/ShimmerTokens.js.map +1 -1
  77. package/lib-commonjs/ShimmerTokens.win32.d.ts +1 -1
  78. package/lib-commonjs/ShimmerTokens.win32.js +13 -13
  79. package/lib-commonjs/ShimmerTokens.win32.js.map +1 -1
  80. package/lib-commonjs/SvgShapeToPath.d.ts +1 -1
  81. package/lib-commonjs/SvgShapeToPath.js +122 -136
  82. package/lib-commonjs/Win32ShimmerNativeComponent.d.ts +4 -4
  83. package/lib-commonjs/Win32ShimmerNativeComponent.js +4 -4
  84. package/lib-commonjs/consts.android.d.ts +1 -1
  85. package/lib-commonjs/consts.android.js +3 -3
  86. package/lib-commonjs/consts.d.ts +1 -1
  87. package/lib-commonjs/consts.ios.d.ts +1 -1
  88. package/lib-commonjs/consts.ios.js +3 -3
  89. package/lib-commonjs/consts.js +3 -3
  90. package/lib-commonjs/consts.win32.d.ts +1 -1
  91. package/lib-commonjs/consts.win32.js +3 -3
  92. package/lib-commonjs/index.d.ts +2 -10
  93. package/lib-commonjs/index.js +11 -36
  94. package/package.json +26 -25
  95. package/src/Shimmer.test.tsx +1 -1
  96. package/src/Shimmer.tsx +4 -14
  97. package/src/Shimmer.types.shared.ts +1 -1
  98. package/src/ShimmerTokens.android.ts +1 -1
  99. package/src/ShimmerTokens.ios.ts +1 -1
  100. package/src/ShimmerTokens.ts +1 -1
  101. package/src/ShimmerTokens.win32.ts +1 -1
  102. package/eslint.config.js +0 -3
@@ -1,168 +1,94 @@
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 });
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 });
8
6
  exports.Shimmer = void 0;
9
- const jsx_runtime_1 = require('@fluentui-react-native/framework-base/jsx-runtime');
7
+ const jsx_runtime_1 = require("@fluentui-react-native/framework-base/jsx-runtime");
10
8
  /** @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');
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");
18
16
  const useStyling = (0, framework_1.buildUseStyling)(Shimmer_styling_1.stylingSettings);
19
17
  exports.Shimmer = (0, framework_1.compose)({
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
- },
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
+ }), [props.angle, props.delay, props.duration, props.shimmerColor, props.shimmerWaveColor, props.style, tokens]);
41
+ /* The shimmer animation is implemented using a LinearGradient which travels from left to right.
42
+ * Different angles are handled by rotating this gradient.
43
+ * 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.
44
+ * Similarly the endValue is set to 3 to make sure the gradient animation exits the entire screen for any angle.
45
+ * In RTL, startValue and endValue are flipped to ensure that the animation moves from right to left.
46
+ */
47
+ const startValue = react_native_1.I18nManager.isRTL ? 3 : -2;
48
+ const endValue = react_native_1.I18nManager.isRTL ? -2 : 3;
49
+ const x1 = (0, react_1.useRef)(new react_native_1.Animated.Value(startValue)).current;
50
+ const shimmerAnimation = (0, react_1.useCallback)(() => {
51
+ react_native_1.Animated.loop(react_native_1.Animated.timing(x1, {
52
+ toValue: endValue,
53
+ duration: memoizedShimmerData.duration,
54
+ delay: memoizedShimmerData.delay,
55
+ useNativeDriver: true,
56
+ })).start();
57
+ }, [endValue, memoizedShimmerData.delay, memoizedShimmerData.duration, x1]);
58
+ (0, react_1.useEffect)(() => {
59
+ shimmerAnimation();
60
+ }, [shimmerAnimation]);
61
+ return (rest) => {
62
+ const { elements, ...mergedProps } = (0, framework_1.mergeProps)(props, rest);
63
+ const rows = [];
64
+ if (elements) {
65
+ for (let i = 0; i < elements.length; i++) {
66
+ const element = elements[i];
67
+ if (element.type == 'rect') {
68
+ rows.push(jsx_runtime_1.jsx(react_native_svg_1.Rect, { width: element.width, height: element.height, x: element.x, y: element.y, rx: element.borderRadiusX, ry: element.borderRadiusY }, i));
69
+ }
70
+ else if (element.type == 'circle') {
71
+ rows.push(jsx_runtime_1.jsx(react_native_svg_1.Circle, { r: element.radius, cx: element.cx, cy: element.cy }, i));
72
+ }
73
+ else {
74
+ (0, assert_never_1.default)(element);
75
+ }
76
+ }
77
+ }
78
+ // Flip the SVG if we are running in RTL
79
+ const rtlTransfrom = react_native_1.I18nManager.isRTL
80
+ ? { translateX: memoizedShimmerData.containerWidth, scaleX: -1 }
81
+ : { translateX: undefined, scaleX: undefined };
82
+ return (jsx_runtime_1.jsxs(Slots.root, { ...mergedProps, children: [
83
+ jsx_runtime_1.jsxs(react_native_svg_1.Defs, { children: [
84
+ jsx_runtime_1.jsxs(AnimatedLinearGradient, { id: "gradient", x1: x1, x2: "-1", gradientTransform: `rotate(${memoizedShimmerData.angle})`, children: [
85
+ jsx_runtime_1.jsx(react_native_svg_1.Stop, { offset: "10%", stopColor: memoizedShimmerData.shimmerColor, stopOpacity: memoizedShimmerData.shimmerColorOpacity }), jsx_runtime_1.jsx(react_native_svg_1.Stop, { offset: "20%", stopColor: memoizedShimmerData.shimmerWaveColor, stopOpacity: memoizedShimmerData.shimmerWaveColorOpacity }), jsx_runtime_1.jsx(react_native_svg_1.Stop, { offset: "30%", stopColor: memoizedShimmerData.shimmerColor, stopOpacity: memoizedShimmerData.shimmerColorOpacity })
86
+ ] }), jsx_runtime_1.jsx(react_native_svg_1.ClipPath, { id: "shimmerView", children: rows })
87
+ ] }), jsx_runtime_1.jsxs(react_native_svg_1.G, { transformProps: rtlTransfrom, children: [
88
+ jsx_runtime_1.jsx(react_native_svg_1.Rect, { x: "0", y: "0", width: memoizedShimmerData.containerWidth, height: memoizedShimmerData.containerHeight, fill: memoizedShimmerData.backgroundColor, rx: memoizedShimmerData.containerBorderRadius }), jsx_runtime_1.jsx(react_native_svg_1.Rect, { x: "0", y: "0", width: memoizedShimmerData.containerWidth, height: memoizedShimmerData.containerHeight, fill: "url(#gradient)", rx: memoizedShimmerData.containerBorderRadius, clipPath: "url(#shimmerView)" })
89
+ ] })
90
+ ] }));
91
+ };
92
+ },
167
93
  });
168
- //# sourceMappingURL=Shimmer.js.map
94
+ //# sourceMappingURL=Shimmer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shimmer.js","sourceRoot":"","sources":["../src/Shimmer.tsx"],"names":[],"mappings":";;;;;;;AAAA,6DAA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ACzC,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,37 +1,34 @@
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)(
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
- },
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
+ },
36
33
  };
37
- //# sourceMappingURL=Shimmer.styling.js.map
34
+ //# 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,47 +1,35 @@
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)(
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
- },
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
+ },
46
34
  };
47
- //# sourceMappingURL=Shimmer.styling.win32.js.map
35
+ //# 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