@fluentui-react-native/experimental-shimmer 0.13.20 → 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,4 +1,4 @@
1
- "use strict";
1
+ 'use strict';
2
2
  /**
3
3
  * These functions are necessary to deal with the win32 platform issue of d2d1 not supporting SVG <Mask> elements.
4
4
  * We can support them indirectly by inverting a <ClipPath> element, with the troublesome issue of there being
@@ -13,137 +13,150 @@
13
13
  * This solution is far from ideal and may have incompatibilities with <ClipPath> features; for Shimmer, it's sufficient,
14
14
  * as we only support rounded rects and circles, with a circle being a rounded rect of borderRadius=length/2=width/2.
15
15
  */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.convertCircleToSvgPath = exports.convertRectToSvgPath = void 0;
16
+ Object.defineProperty(exports, '__esModule', { value: true });
17
+ exports.convertRectToSvgPath = convertRectToSvgPath;
18
+ exports.convertCircleToSvgPath = convertCircleToSvgPath;
18
19
  // Note for explicit clarity: length and width represent the full length and width of the rect, and not
19
20
  // the straight edge segments (i.e. length - 2*borderRadius).
20
21
  // borderRadius[X|Y] cannot be larger than [length/2 or width]/2; it would not be able to connect to the edge
21
22
  // segments of the rect if so, and will be reduced to the maximum values accordingly.
22
23
  function convertRoundedRectToSvgPath(x, y, borderRadiusX, borderRadiusY, width, height) {
23
- // Reduce borderRadii to maximum usable size.
24
- if (borderRadiusX * 2 > width) {
25
- borderRadiusX = width / 2;
26
- }
27
- if (borderRadiusY * 2 > height) {
28
- borderRadiusY = height / 2;
29
- }
30
- const horizontalEdgeLength = width - borderRadiusX * 2;
31
- const verticalEdgeLength = height - borderRadiusY * 2;
32
- const xAxisRotation = 0;
33
- const largeArcFlag = 0;
34
- const sweepArcFlag = 1;
35
- /**
36
- * The general manner in which we will draw our rounded rect is in the following
37
- * order of points.
38
- *
39
- * - Forward (/) and back (\) slashes represent borderRadiusY and borderRadiusX, respectively.
40
- * - The un-rounded rect points are represented by center dots (and steal 1 unit from the borderRadii).
41
- * - x and y parameters are left out as path arguments use relative coordinates (vs absolute coordinates).
42
- * - Coordinate axis aids are present to avoid counting for any necessary clarification.
43
- *
44
- * x: arbitrary
45
- * y: arbitrary
46
- * width: 24
47
- * height: 12
48
- * borderRadiusX: 5
49
- * borderRadiusY: 3
50
- *
51
- * 0123456789012345678901234
52
- *
53
- * (1+9) (2)
54
- * ⬇ ⬇
55
- * 0 •\\\\--------------\\\\•
56
- * 1 / /
57
- * 2 / /
58
- * 3 (8) ➡ | | ⬅ (3)
59
- * 4 | |
60
- * 5 | |
61
- * 6 | |
62
- * 7 | |
63
- * 8 | |
64
- * 9 (7) ➡ | | ⬅ (4)
65
- * 0 / /
66
- * 1 / /
67
- * 2 •\\\\--------------\\\\•
68
- * ⬆ ⬆
69
- * (6) (5)
70
- *
71
- * Which would generate the following path:
72
- * const path = 'M {x+5} ${y+3} ' +
73
- * 'h 14 ' +
74
- * 'a 5 3 0 0 1 5 3' +
75
- * 'v 6 ' +
76
- * 'a 5 3 0 0 1 -5 3' +
77
- * 'h -14 ' +
78
- * 'a 5 3 0 0 1 -5 -3' +
79
- * 'v -6 ' +
80
- * 'a 5 3 0 0 1 5 -3 Z';
81
- */
82
- // We start at the left-most point of the top edge.
83
- // M: lift and move the pen to [x] [y] coordinates -- does not draw.
84
- let path = ['M', x + borderRadiusX, y];
85
- // draw to the right-most point of the top edge.
86
- // h: horizontally draw a line [n] units relative to the current pen position.
87
- path = path.concat(['h', horizontalEdgeLength]);
88
- /**
89
- * draw the arc for the top-right corner. If the rect is not rounded, the arc will be 0 length.
90
- * a: draw an arc relative to the current pen position with the following parameters:
91
- * rx: X-axis ellipse radius
92
- * ry: Y-axis ellipse radius
93
- * x-axis-rotation: rotation of the ellipse relative to the current coordinate system
94
- * large-arc-flag: See https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands
95
- * sweep-arc-flag: See https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands
96
- * (dx, dy): relative end coordinate
97
- *
98
- * 'a rx ry x-axis-rotation large-arc-flag sweep-arc-flag dx dy'
99
- *
100
- * We will use x-axis-rotation = 0, large-arc-flag = 0, and sweep-arc-flag = 1 for our path generation.
101
- * */
102
- path = path.concat(['a', borderRadiusX, borderRadiusY, xAxisRotation, largeArcFlag, sweepArcFlag, borderRadiusX, borderRadiusY]);
103
- /**
104
- * Draw to the bottom-most point of the right edge.
105
- * v: vertically draw a line [n] units relative to the current pen position.
106
- */
107
- path = path.concat(['v', verticalEdgeLength]);
108
- /**
109
- * Draw the arc for the bottom-right corner.
110
- */
111
- path = path.concat(['a', borderRadiusX, borderRadiusY, xAxisRotation, largeArcFlag, sweepArcFlag, -borderRadiusX, borderRadiusY]);
112
- /**
113
- * Draw to the left-most point of the bottom edge.
114
- */
115
- path = path.concat(['h', -horizontalEdgeLength]);
116
- /**
117
- * Draw the bottom-left corner.
118
- */
119
- path = path.concat(['a', borderRadiusX, borderRadiusY, xAxisRotation, largeArcFlag, sweepArcFlag, -borderRadiusX, -borderRadiusY]);
120
- /**
121
- * Draw to the top-most point of the left edge.
122
- */
123
- path = path.concat(['v', -verticalEdgeLength]);
124
- /**
125
- * Draw the top-left corner.
126
- */
127
- path = path.concat(['a', borderRadiusX, borderRadiusY, xAxisRotation, largeArcFlag, sweepArcFlag, borderRadiusX, -borderRadiusY]);
128
- /**
129
- * Finally, close the shape. While we have manually returned to the same coordinate we started with, closing and not-closing the shape
130
- * can have different behavior depending on other properties.
131
- * z or Z: close the shape.
132
- */
133
- path = path.concat('z');
134
- /**
135
- * Join all arguments with spaces and return the completed path.
136
- */
137
- return path.join(' ');
24
+ // Reduce borderRadii to maximum usable size.
25
+ if (borderRadiusX * 2 > width) {
26
+ borderRadiusX = width / 2;
27
+ }
28
+ if (borderRadiusY * 2 > height) {
29
+ borderRadiusY = height / 2;
30
+ }
31
+ const horizontalEdgeLength = width - borderRadiusX * 2;
32
+ const verticalEdgeLength = height - borderRadiusY * 2;
33
+ const xAxisRotation = 0;
34
+ const largeArcFlag = 0;
35
+ const sweepArcFlag = 1;
36
+ /**
37
+ * The general manner in which we will draw our rounded rect is in the following
38
+ * order of points.
39
+ *
40
+ * - Forward (/) and back (\) slashes represent borderRadiusY and borderRadiusX, respectively.
41
+ * - The un-rounded rect points are represented by center dots (and steal 1 unit from the borderRadii).
42
+ * - x and y parameters are left out as path arguments use relative coordinates (vs absolute coordinates).
43
+ * - Coordinate axis aids are present to avoid counting for any necessary clarification.
44
+ *
45
+ * x: arbitrary
46
+ * y: arbitrary
47
+ * width: 24
48
+ * height: 12
49
+ * borderRadiusX: 5
50
+ * borderRadiusY: 3
51
+ *
52
+ * 0123456789012345678901234
53
+ *
54
+ * (1+9) (2)
55
+ * ⬇ ⬇
56
+ * 0 •\\\\--------------\\\\•
57
+ * 1 / /
58
+ * 2 / /
59
+ * 3 (8) ➡ | | ⬅ (3)
60
+ * 4 | |
61
+ * 5 | |
62
+ * 6 | |
63
+ * 7 | |
64
+ * 8 | |
65
+ * 9 (7) ➡ | | ⬅ (4)
66
+ * 0 / /
67
+ * 1 / /
68
+ * 2 •\\\\--------------\\\\•
69
+ * ⬆ ⬆
70
+ * (6) (5)
71
+ *
72
+ * Which would generate the following path:
73
+ * const path = 'M {x+5} ${y+3} ' +
74
+ * 'h 14 ' +
75
+ * 'a 5 3 0 0 1 5 3' +
76
+ * 'v 6 ' +
77
+ * 'a 5 3 0 0 1 -5 3' +
78
+ * 'h -14 ' +
79
+ * 'a 5 3 0 0 1 -5 -3' +
80
+ * 'v -6 ' +
81
+ * 'a 5 3 0 0 1 5 -3 Z';
82
+ */
83
+ // We start at the left-most point of the top edge.
84
+ // M: lift and move the pen to [x] [y] coordinates -- does not draw.
85
+ let path = ['M', x + borderRadiusX, y];
86
+ // draw to the right-most point of the top edge.
87
+ // h: horizontally draw a line [n] units relative to the current pen position.
88
+ path = path.concat(['h', horizontalEdgeLength]);
89
+ /**
90
+ * draw the arc for the top-right corner. If the rect is not rounded, the arc will be 0 length.
91
+ * a: draw an arc relative to the current pen position with the following parameters:
92
+ * rx: X-axis ellipse radius
93
+ * ry: Y-axis ellipse radius
94
+ * x-axis-rotation: rotation of the ellipse relative to the current coordinate system
95
+ * large-arc-flag: See https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands
96
+ * sweep-arc-flag: See https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands
97
+ * (dx, dy): relative end coordinate
98
+ *
99
+ * 'a rx ry x-axis-rotation large-arc-flag sweep-arc-flag dx dy'
100
+ *
101
+ * We will use x-axis-rotation = 0, large-arc-flag = 0, and sweep-arc-flag = 1 for our path generation.
102
+ * */
103
+ path = path.concat(['a', borderRadiusX, borderRadiusY, xAxisRotation, largeArcFlag, sweepArcFlag, borderRadiusX, borderRadiusY]);
104
+ /**
105
+ * Draw to the bottom-most point of the right edge.
106
+ * v: vertically draw a line [n] units relative to the current pen position.
107
+ */
108
+ path = path.concat(['v', verticalEdgeLength]);
109
+ /**
110
+ * Draw the arc for the bottom-right corner.
111
+ */
112
+ path = path.concat(['a', borderRadiusX, borderRadiusY, xAxisRotation, largeArcFlag, sweepArcFlag, -borderRadiusX, borderRadiusY]);
113
+ /**
114
+ * Draw to the left-most point of the bottom edge.
115
+ */
116
+ path = path.concat(['h', -horizontalEdgeLength]);
117
+ /**
118
+ * Draw the bottom-left corner.
119
+ */
120
+ path = path.concat(['a', borderRadiusX, borderRadiusY, xAxisRotation, largeArcFlag, sweepArcFlag, -borderRadiusX, -borderRadiusY]);
121
+ /**
122
+ * Draw to the top-most point of the left edge.
123
+ */
124
+ path = path.concat(['v', -verticalEdgeLength]);
125
+ /**
126
+ * Draw the top-left corner.
127
+ */
128
+ path = path.concat(['a', borderRadiusX, borderRadiusY, xAxisRotation, largeArcFlag, sweepArcFlag, borderRadiusX, -borderRadiusY]);
129
+ /**
130
+ * Finally, close the shape. While we have manually returned to the same coordinate we started with, closing and not-closing the shape
131
+ * can have different behavior depending on other properties.
132
+ * z or Z: close the shape.
133
+ */
134
+ path = path.concat('z');
135
+ /**
136
+ * Join all arguments with spaces and return the completed path.
137
+ */
138
+ return path.join(' ');
138
139
  }
139
140
  function convertRectToSvgPath(rectShape) {
140
- // Extract necessary args and generate the corresponding path for the shape.
141
- return convertRoundedRectToSvgPath(rectShape.x ? rectShape.x : 0, rectShape.y ? rectShape.y : 0, rectShape.borderRadiusX ? rectShape.borderRadiusX : 0, rectShape.borderRadiusX ? rectShape.borderRadiusY : 0, rectShape.width ? rectShape.width : 100, rectShape.height ? rectShape.height : 16);
141
+ // Extract necessary args and generate the corresponding path for the shape.
142
+ return convertRoundedRectToSvgPath(
143
+ rectShape.x ? rectShape.x : 0,
144
+ rectShape.y ? rectShape.y : 0,
145
+ rectShape.borderRadiusX ? rectShape.borderRadiusX : 0,
146
+ rectShape.borderRadiusX ? rectShape.borderRadiusY : 0,
147
+ rectShape.width ? rectShape.width : 100,
148
+ rectShape.height ? rectShape.height : 16,
149
+ );
142
150
  }
143
- exports.convertRectToSvgPath = convertRectToSvgPath;
144
151
  function convertCircleToSvgPath(circleShape) {
145
- const radius = circleShape.radius ? circleShape.radius : 12;
146
- return convertRoundedRectToSvgPath(circleShape.cx ? circleShape.cx - circleShape.radius : 12, circleShape.cy ? circleShape.cy - circleShape.radius : 12, radius, radius, radius * 2, radius * 2);
152
+ const radius = circleShape.radius ? circleShape.radius : 12;
153
+ return convertRoundedRectToSvgPath(
154
+ circleShape.cx ? circleShape.cx - circleShape.radius : 12,
155
+ circleShape.cy ? circleShape.cy - circleShape.radius : 12,
156
+ radius,
157
+ radius,
158
+ radius * 2,
159
+ radius * 2,
160
+ );
147
161
  }
148
- exports.convertCircleToSvgPath = convertCircleToSvgPath;
149
- //# sourceMappingURL=SvgShapeToPath.js.map
162
+ //# sourceMappingURL=SvgShapeToPath.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SvgShapeToPath.js","sourceRoot":"","sources":["../src/SvgShapeToPath.ts"],"names":[],"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D,OAAO,2BAA2B,CAChC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EACzD,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EACzD,MAAM,EACN,MAAM,EACN,MAAM,GAAG,CAAC,EACV,MAAM,GAAG,CAAC,CACX,CAAC;AAAA,CACH"}
@@ -3,12 +3,12 @@
3
3
  * Licensed under the MIT License.
4
4
  * @format
5
5
  */
6
- import type { HostComponent, ViewProps } from 'react-native';
6
+ import type { ViewProps } from 'react-native';
7
7
  import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
8
8
  export interface NativeProps extends ViewProps {
9
- delay?: Double;
10
- duration?: Double;
9
+ delay?: Double;
10
+ duration?: Double;
11
11
  }
12
- declare const _default: HostComponent<NativeProps>;
12
+ declare const _default: import('react-native').HostComponent<NativeProps>;
13
13
  export default _default;
14
- //# sourceMappingURL=Win32ShimmerNativeComponent.d.ts.map
14
+ //# sourceMappingURL=Win32ShimmerNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Win32ShimmerNativeComponent.d.ts","sourceRoot":"","sources":["../src/Win32ShimmerNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAGxE,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;AAED,wBAA6G"}
1
+ {"version":3,"file":"Win32ShimmerNativeComponent.d.ts","sourceRoot":"","sources":["../src/Win32ShimmerNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAGxE,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;AAED,wBAA+E"}
@@ -1,13 +1,10 @@
1
- "use strict";
1
+ 'use strict';
2
2
  /**
3
3
  * Copyright (c) Microsoft Corporation.
4
4
  * Licensed under the MIT License.
5
5
  * @format
6
6
  */
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- const codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
12
- exports.default = (0, codegenNativeComponent_1.default)('RCTNativeAnimatedShimmer');
13
- //# sourceMappingURL=Win32ShimmerNativeComponent.js.map
7
+ Object.defineProperty(exports, '__esModule', { value: true });
8
+ const react_native_1 = require('react-native');
9
+ exports.default = (0, react_native_1.requireNativeComponent)('RCTNativeAnimatedShimmer');
10
+ //# sourceMappingURL=Win32ShimmerNativeComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Win32ShimmerNativeComponent.js","sourceRoot":"","sources":["../src/Win32ShimmerNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAKH,qHAA6F;AAO7F,kBAAe,IAAA,gCAAsB,EAAc,0BAA0B,CAA+B,CAAC"}
1
+ {"version":3,"file":"Win32ShimmerNativeComponent.js","sourceRoot":"","sources":["../src/Win32ShimmerNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAKH,+CAAsD;kBAOvC,IAAA,qCAAsB,EAAc,0BAA0B,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export declare const shimmerDefaultAngle = 45;
2
2
  export declare const shimmerDefaultDelay = 0;
3
3
  export declare const shimmerDefaultDuration = 1000;
4
- //# sourceMappingURL=consts.android.d.ts.map
4
+ //# sourceMappingURL=consts.android.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.shimmerDefaultDuration = exports.shimmerDefaultDelay = exports.shimmerDefaultAngle = void 0;
4
4
  exports.shimmerDefaultAngle = 45;
5
5
  exports.shimmerDefaultDelay = 0;
6
6
  exports.shimmerDefaultDuration = 1000;
7
- //# sourceMappingURL=consts.android.js.map
7
+ //# sourceMappingURL=consts.android.js.map
@@ -1,4 +1,4 @@
1
1
  export declare const shimmerDefaultAngle = 0;
2
2
  export declare const shimmerDefaultDelay = 0;
3
3
  export declare const shimmerDefaultDuration = 7000;
4
- //# sourceMappingURL=consts.d.ts.map
4
+ //# sourceMappingURL=consts.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export declare const shimmerDefaultAngle = 0;
2
2
  export declare const shimmerDefaultDelay = 0;
3
3
  export declare const shimmerDefaultDuration = 1000;
4
- //# sourceMappingURL=consts.ios.d.ts.map
4
+ //# sourceMappingURL=consts.ios.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.shimmerDefaultDuration = exports.shimmerDefaultDelay = exports.shimmerDefaultAngle = void 0;
4
4
  exports.shimmerDefaultAngle = 0;
5
5
  exports.shimmerDefaultDelay = 0;
6
6
  exports.shimmerDefaultDuration = 1000;
7
- //# sourceMappingURL=consts.ios.js.map
7
+ //# sourceMappingURL=consts.ios.js.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.shimmerDefaultDuration = exports.shimmerDefaultDelay = exports.shimmerDefaultAngle = void 0;
4
4
  exports.shimmerDefaultAngle = 0;
5
5
  exports.shimmerDefaultDelay = 0;
6
6
  exports.shimmerDefaultDuration = 7000;
7
- //# sourceMappingURL=consts.js.map
7
+ //# sourceMappingURL=consts.js.map
@@ -1,4 +1,4 @@
1
1
  export declare const shimmerDefaultAngle = 0;
2
2
  export declare const shimmerDefaultDelay = 500;
3
3
  export declare const shimmerDefaultDuration = 2000;
4
- //# sourceMappingURL=consts.win32.d.ts.map
4
+ //# sourceMappingURL=consts.win32.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.shimmerDefaultDuration = exports.shimmerDefaultDelay = exports.shimmerDefaultAngle = void 0;
4
4
  exports.shimmerDefaultAngle = 0;
5
5
  exports.shimmerDefaultDelay = 500;
6
6
  exports.shimmerDefaultDuration = 2000;
7
- //# sourceMappingURL=consts.win32.js.map
7
+ //# sourceMappingURL=consts.win32.js.map
@@ -1,5 +1,13 @@
1
1
  export { Shimmer } from './Shimmer';
2
2
  export { shimmerName } from './Shimmer.types';
3
- export type { ShimmerCircleElement, ShimmerElementTypes, ShimmerProps, ShimmerRectElement, ShimmerSlotProps, ShimmerTokens, ShimmerType, } from './Shimmer.types';
3
+ export type {
4
+ ShimmerCircleElement,
5
+ ShimmerElementTypes,
6
+ ShimmerProps,
7
+ ShimmerRectElement,
8
+ ShimmerSlotProps,
9
+ ShimmerTokens,
10
+ ShimmerType,
11
+ } from './Shimmer.types';
4
12
  export { shimmerDefaultAngle, shimmerDefaultDelay, shimmerDefaultDuration } from './consts';
5
- //# sourceMappingURL=index.d.ts.map
13
+ //# sourceMappingURL=index.d.ts.map
@@ -1,12 +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.shimmerDefaultDuration = exports.shimmerDefaultDelay = exports.shimmerDefaultAngle = exports.shimmerName = exports.Shimmer = void 0;
4
- var Shimmer_1 = require("./Shimmer");
5
- Object.defineProperty(exports, "Shimmer", { enumerable: true, get: function () { return Shimmer_1.Shimmer; } });
6
- var Shimmer_types_1 = require("./Shimmer.types");
7
- Object.defineProperty(exports, "shimmerName", { enumerable: true, get: function () { return Shimmer_types_1.shimmerName; } });
8
- var consts_1 = require("./consts");
9
- Object.defineProperty(exports, "shimmerDefaultAngle", { enumerable: true, get: function () { return consts_1.shimmerDefaultAngle; } });
10
- Object.defineProperty(exports, "shimmerDefaultDelay", { enumerable: true, get: function () { return consts_1.shimmerDefaultDelay; } });
11
- Object.defineProperty(exports, "shimmerDefaultDuration", { enumerable: true, get: function () { return consts_1.shimmerDefaultDuration; } });
12
- //# sourceMappingURL=index.js.map
4
+ const Shimmer_1 = require('./Shimmer');
5
+ Object.defineProperty(exports, 'Shimmer', {
6
+ enumerable: true,
7
+ get: function () {
8
+ return Shimmer_1.Shimmer;
9
+ },
10
+ });
11
+ const Shimmer_types_1 = require('./Shimmer.types');
12
+ Object.defineProperty(exports, 'shimmerName', {
13
+ enumerable: true,
14
+ get: function () {
15
+ return Shimmer_types_1.shimmerName;
16
+ },
17
+ });
18
+ const consts_1 = require('./consts');
19
+ Object.defineProperty(exports, 'shimmerDefaultAngle', {
20
+ enumerable: true,
21
+ get: function () {
22
+ return consts_1.shimmerDefaultAngle;
23
+ },
24
+ });
25
+ Object.defineProperty(exports, 'shimmerDefaultDelay', {
26
+ enumerable: true,
27
+ get: function () {
28
+ return consts_1.shimmerDefaultDelay;
29
+ },
30
+ });
31
+ Object.defineProperty(exports, 'shimmerDefaultDuration', {
32
+ enumerable: true,
33
+ get: function () {
34
+ return consts_1.shimmerDefaultDuration;
35
+ },
36
+ });
37
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,iDAA8C;AAArC,4GAAA,WAAW,OAAA;AAUpB,mCAA4F;AAAnF,6GAAA,mBAAmB,OAAA;AAAE,6GAAA,mBAAmB,OAAA;AAAE,gHAAA,sBAAsB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,mDAA8C;AAArC,4GAAA,WAAW,OAAA;AAUpB,qCAA4F;AAAnF,6GAAA,mBAAmB,OAAA;AAAE,6GAAA,mBAAmB,OAAA;AAAE,gHAAA,sBAAsB,OAAA"}