@fluentui/react-skeleton 9.0.0-beta.1 → 9.0.0-beta.10

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 (63) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +217 -1
  3. package/CHANGELOG.md +90 -2
  4. package/lib/Skeleton.js.map +1 -1
  5. package/lib/SkeletonItem.js.map +1 -1
  6. package/lib/components/Skeleton/Skeleton.js.map +1 -1
  7. package/lib/components/Skeleton/Skeleton.types.js.map +1 -1
  8. package/lib/components/Skeleton/index.js.map +1 -1
  9. package/lib/components/Skeleton/renderSkeleton.js +5 -7
  10. package/lib/components/Skeleton/renderSkeleton.js.map +1 -1
  11. package/lib/components/Skeleton/useSkeleton.js +1 -0
  12. package/lib/components/Skeleton/useSkeleton.js.map +1 -1
  13. package/lib/components/Skeleton/useSkeletonContextValues.js.map +1 -1
  14. package/lib/components/Skeleton/useSkeletonStyles.js.map +1 -1
  15. package/lib/components/SkeletonItem/SkeletonItem.js.map +1 -1
  16. package/lib/components/SkeletonItem/SkeletonItem.types.js.map +1 -1
  17. package/lib/components/SkeletonItem/index.js.map +1 -1
  18. package/lib/components/SkeletonItem/renderSkeletonItem.js +4 -6
  19. package/lib/components/SkeletonItem/renderSkeletonItem.js.map +1 -1
  20. package/lib/components/SkeletonItem/useSkeletonItem.js +1 -0
  21. package/lib/components/SkeletonItem/useSkeletonItem.js.map +1 -1
  22. package/lib/components/SkeletonItem/useSkeletonItemStyles.js.map +1 -1
  23. package/lib/contexts/SkeletonContext.js +2 -4
  24. package/lib/contexts/SkeletonContext.js.map +1 -1
  25. package/lib/contexts/index.js.map +1 -1
  26. package/lib/index.js.map +1 -1
  27. package/lib-commonjs/Skeleton.js +5 -4
  28. package/lib-commonjs/Skeleton.js.map +1 -1
  29. package/lib-commonjs/SkeletonItem.js +5 -4
  30. package/lib-commonjs/SkeletonItem.js.map +1 -1
  31. package/lib-commonjs/components/Skeleton/Skeleton.js +18 -17
  32. package/lib-commonjs/components/Skeleton/Skeleton.js.map +1 -1
  33. package/lib-commonjs/components/Skeleton/Skeleton.types.js +3 -2
  34. package/lib-commonjs/components/Skeleton/Skeleton.types.js.map +1 -1
  35. package/lib-commonjs/components/Skeleton/index.js +10 -9
  36. package/lib-commonjs/components/Skeleton/index.js.map +1 -1
  37. package/lib-commonjs/components/Skeleton/renderSkeleton.js +16 -22
  38. package/lib-commonjs/components/Skeleton/renderSkeleton.js.map +1 -1
  39. package/lib-commonjs/components/Skeleton/useSkeleton.js +29 -40
  40. package/lib-commonjs/components/Skeleton/useSkeleton.js.map +1 -1
  41. package/lib-commonjs/components/Skeleton/useSkeletonContextValues.js +21 -18
  42. package/lib-commonjs/components/Skeleton/useSkeletonContextValues.js.map +1 -1
  43. package/lib-commonjs/components/Skeleton/useSkeletonStyles.js +19 -14
  44. package/lib-commonjs/components/Skeleton/useSkeletonStyles.js.map +1 -1
  45. package/lib-commonjs/components/SkeletonItem/SkeletonItem.js +16 -12
  46. package/lib-commonjs/components/SkeletonItem/SkeletonItem.js.map +1 -1
  47. package/lib-commonjs/components/SkeletonItem/SkeletonItem.types.js +3 -2
  48. package/lib-commonjs/components/SkeletonItem/SkeletonItem.types.js.map +1 -1
  49. package/lib-commonjs/components/SkeletonItem/index.js +9 -8
  50. package/lib-commonjs/components/SkeletonItem/index.js.map +1 -1
  51. package/lib-commonjs/components/SkeletonItem/renderSkeletonItem.js +13 -19
  52. package/lib-commonjs/components/SkeletonItem/renderSkeletonItem.js.map +1 -1
  53. package/lib-commonjs/components/SkeletonItem/useSkeletonItem.js +28 -41
  54. package/lib-commonjs/components/SkeletonItem/useSkeletonItem.js.map +1 -1
  55. package/lib-commonjs/components/SkeletonItem/useSkeletonItemStyles.js +333 -215
  56. package/lib-commonjs/components/SkeletonItem/useSkeletonItemStyles.js.map +1 -1
  57. package/lib-commonjs/contexts/SkeletonContext.js +18 -11
  58. package/lib-commonjs/contexts/SkeletonContext.js.map +1 -1
  59. package/lib-commonjs/contexts/index.js +5 -4
  60. package/lib-commonjs/contexts/index.js.map +1 -1
  61. package/lib-commonjs/index.js +27 -79
  62. package/lib-commonjs/index.js.map +1 -1
  63. package/package.json +10 -8
package/.swcrc ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/swcrc",
3
+ "exclude": [
4
+ "/testing",
5
+ "/**/*.cy.ts",
6
+ "/**/*.cy.tsx",
7
+ "/**/*.spec.ts",
8
+ "/**/*.spec.tsx",
9
+ "/**/*.test.ts",
10
+ "/**/*.test.tsx"
11
+ ],
12
+ "jsc": {
13
+ "parser": {
14
+ "syntax": "typescript",
15
+ "tsx": true,
16
+ "decorators": false,
17
+ "dynamicImport": false
18
+ },
19
+ "externalHelpers": true,
20
+ "transform": {
21
+ "react": {
22
+ "runtime": "classic",
23
+ "useSpread": true
24
+ }
25
+ },
26
+ "target": "es2019"
27
+ },
28
+ "minify": false,
29
+ "sourceMaps": true
30
+ }
package/CHANGELOG.json CHANGED
@@ -2,7 +2,223 @@
2
2
  "name": "@fluentui/react-skeleton",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 13 Mar 2023 08:55:01 GMT",
5
+ "date": "Mon, 24 Apr 2023 08:09:15 GMT",
6
+ "tag": "@fluentui/react-skeleton_v9.0.0-beta.10",
7
+ "version": "9.0.0-beta.10",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "bernardo.sunderhus@gmail.com",
12
+ "package": "@fluentui/react-skeleton",
13
+ "commit": "c899af235684ed0e2745db9c8e394692865b6765",
14
+ "comment": "chore: adopt custom JSX pragma"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-skeleton",
19
+ "comment": "Bump @fluentui/react-field to v9.1.1",
20
+ "commit": "948b5bf9871303d1742f1b9a17a3bd4006ce2fea"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-skeleton",
25
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.2",
26
+ "commit": "948b5bf9871303d1742f1b9a17a3bd4006ce2fea"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ {
32
+ "date": "Mon, 17 Apr 2023 17:53:56 GMT",
33
+ "tag": "@fluentui/react-skeleton_v9.0.0-beta.9",
34
+ "version": "9.0.0-beta.9",
35
+ "comments": {
36
+ "prerelease": [
37
+ {
38
+ "author": "behowell@microsoft.com",
39
+ "package": "@fluentui/react-skeleton",
40
+ "commit": "36f98c3a49334e4ea9b22774691560d11010f2e7",
41
+ "comment": "chore: Update react-field dependency version"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@fluentui/react-skeleton",
46
+ "comment": "Bump @fluentui/react-field to v9.1.0",
47
+ "commit": "35d247e0b6a8c2b22e69942afbabe18043e59585"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-skeleton",
52
+ "comment": "Bump @fluentui/react-utilities to v9.8.0",
53
+ "commit": "35d247e0b6a8c2b22e69942afbabe18043e59585"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ {
59
+ "date": "Wed, 12 Apr 2023 09:31:45 GMT",
60
+ "tag": "@fluentui/react-skeleton_v9.0.0-beta.8",
61
+ "version": "9.0.0-beta.8",
62
+ "comments": {
63
+ "prerelease": [
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui/react-skeleton",
67
+ "comment": "Bump @fluentui/react-field to v9.0.0-beta.2",
68
+ "commit": "45cb6089b0f5f464ae0dd9e9cba7e199a9d67cd8"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui/react-skeleton",
73
+ "comment": "Bump @fluentui/react-utilities to v9.7.4",
74
+ "commit": "45cb6089b0f5f464ae0dd9e9cba7e199a9d67cd8"
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ {
80
+ "date": "Fri, 07 Apr 2023 00:01:42 GMT",
81
+ "tag": "@fluentui/react-skeleton_v9.0.0-beta.7",
82
+ "version": "9.0.0-beta.7",
83
+ "comments": {
84
+ "prerelease": [
85
+ {
86
+ "author": "behowell@microsoft.com",
87
+ "package": "@fluentui/react-skeleton",
88
+ "commit": "eee5716e76dc6a5bef9316546a352694bbe5750a",
89
+ "comment": "chore: Update package version of react-field"
90
+ },
91
+ {
92
+ "author": "beachball",
93
+ "package": "@fluentui/react-skeleton",
94
+ "comment": "Bump @fluentui/react-field to v9.0.0-beta.1",
95
+ "commit": "7a46cab3d31a233b89b7188e994b24712af5393c"
96
+ }
97
+ ]
98
+ }
99
+ },
100
+ {
101
+ "date": "Tue, 04 Apr 2023 18:44:50 GMT",
102
+ "tag": "@fluentui/react-skeleton_v9.0.0-beta.6",
103
+ "version": "9.0.0-beta.6",
104
+ "comments": {
105
+ "prerelease": [
106
+ {
107
+ "author": "beachball",
108
+ "package": "@fluentui/react-skeleton",
109
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.29",
110
+ "commit": "6778d76bbbad7e1975c151c797f28c2708cde2ce"
111
+ },
112
+ {
113
+ "author": "beachball",
114
+ "package": "@fluentui/react-skeleton",
115
+ "comment": "Bump @fluentui/react-utilities to v9.7.3",
116
+ "commit": "6778d76bbbad7e1975c151c797f28c2708cde2ce"
117
+ }
118
+ ]
119
+ }
120
+ },
121
+ {
122
+ "date": "Tue, 21 Mar 2023 21:23:02 GMT",
123
+ "tag": "@fluentui/react-skeleton_v9.0.0-beta.4",
124
+ "version": "9.0.0-beta.4",
125
+ "comments": {
126
+ "prerelease": [
127
+ {
128
+ "author": "tristan.watanabe@gmail.com",
129
+ "package": "@fluentui/react-skeleton",
130
+ "commit": "2fac1a139149bd13b76b1306207bc988dca9c72c",
131
+ "comment": "chore: migrate to swc transpilation approach."
132
+ },
133
+ {
134
+ "author": "tristan.watanabe@gmail.com",
135
+ "package": "@fluentui/react-skeleton",
136
+ "commit": "ead1c6d4c2ac3f3596b62b8cbc07b0a03041f11f",
137
+ "comment": "fix: add node field to package.json exports map."
138
+ },
139
+ {
140
+ "author": "beachball",
141
+ "package": "@fluentui/react-skeleton",
142
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.27",
143
+ "commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
144
+ },
145
+ {
146
+ "author": "beachball",
147
+ "package": "@fluentui/react-skeleton",
148
+ "comment": "Bump @fluentui/react-shared-contexts to v9.3.2",
149
+ "commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
150
+ },
151
+ {
152
+ "author": "beachball",
153
+ "package": "@fluentui/react-skeleton",
154
+ "comment": "Bump @fluentui/react-theme to v9.1.7",
155
+ "commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
156
+ },
157
+ {
158
+ "author": "beachball",
159
+ "package": "@fluentui/react-skeleton",
160
+ "comment": "Bump @fluentui/react-utilities to v9.7.2",
161
+ "commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
162
+ },
163
+ {
164
+ "author": "beachball",
165
+ "package": "@fluentui/react-skeleton",
166
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.20",
167
+ "commit": "b7a26f6263c80e3253c6b8338c33b73bae33e2b5"
168
+ }
169
+ ]
170
+ }
171
+ },
172
+ {
173
+ "date": "Thu, 16 Mar 2023 14:36:59 GMT",
174
+ "tag": "@fluentui/react-skeleton_v9.0.0-beta.3",
175
+ "version": "9.0.0-beta.3",
176
+ "comments": {
177
+ "prerelease": [
178
+ {
179
+ "author": "beachball",
180
+ "package": "@fluentui/react-skeleton",
181
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.26",
182
+ "commit": "e7dcadf7cabae6bc6811ca04a630e7d850388f81"
183
+ },
184
+ {
185
+ "author": "beachball",
186
+ "package": "@fluentui/react-skeleton",
187
+ "comment": "Bump @fluentui/react-utilities to v9.7.1",
188
+ "commit": "e7dcadf7cabae6bc6811ca04a630e7d850388f81"
189
+ }
190
+ ]
191
+ }
192
+ },
193
+ {
194
+ "date": "Wed, 15 Mar 2023 10:19:53 GMT",
195
+ "tag": "@fluentui/react-skeleton_v9.0.0-beta.2",
196
+ "version": "9.0.0-beta.2",
197
+ "comments": {
198
+ "prerelease": [
199
+ {
200
+ "author": "beachball",
201
+ "package": "@fluentui/react-skeleton",
202
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.25",
203
+ "commit": "5da01b4766ae6d81befb7bcd588d9cf8d969e1e2"
204
+ },
205
+ {
206
+ "author": "beachball",
207
+ "package": "@fluentui/react-skeleton",
208
+ "comment": "Bump @fluentui/react-shared-contexts to v9.3.1",
209
+ "commit": "5da01b4766ae6d81befb7bcd588d9cf8d969e1e2"
210
+ },
211
+ {
212
+ "author": "beachball",
213
+ "package": "@fluentui/react-skeleton",
214
+ "comment": "Bump @fluentui/react-theme to v9.1.6",
215
+ "commit": "5da01b4766ae6d81befb7bcd588d9cf8d969e1e2"
216
+ }
217
+ ]
218
+ }
219
+ },
220
+ {
221
+ "date": "Mon, 13 Mar 2023 08:58:25 GMT",
6
222
  "tag": "@fluentui/react-skeleton_v9.0.0-beta.1",
7
223
  "version": "9.0.0-beta.1",
8
224
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,100 @@
1
1
  # Change Log - @fluentui/react-skeleton
2
2
 
3
- This log was last generated on Mon, 13 Mar 2023 08:55:01 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 24 Apr 2023 08:09:15 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-beta.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-skeleton_v9.0.0-beta.10)
8
+
9
+ Mon, 24 Apr 2023 08:09:15 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-skeleton_v9.0.0-beta.9..@fluentui/react-skeleton_v9.0.0-beta.10)
11
+
12
+ ### Changes
13
+
14
+ - chore: adopt custom JSX pragma ([PR #27623](https://github.com/microsoft/fluentui/pull/27623) by bernardo.sunderhus@gmail.com)
15
+ - Bump @fluentui/react-field to v9.1.1 ([PR #27632](https://github.com/microsoft/fluentui/pull/27632) by beachball)
16
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.2 ([PR #27632](https://github.com/microsoft/fluentui/pull/27632) by beachball)
17
+
18
+ ## [9.0.0-beta.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-skeleton_v9.0.0-beta.9)
19
+
20
+ Mon, 17 Apr 2023 17:53:56 GMT
21
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-skeleton_v9.0.0-beta.8..@fluentui/react-skeleton_v9.0.0-beta.9)
22
+
23
+ ### Changes
24
+
25
+ - chore: Update react-field dependency version ([PR #27493](https://github.com/microsoft/fluentui/pull/27493) by behowell@microsoft.com)
26
+ - Bump @fluentui/react-field to v9.1.0 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
27
+ - Bump @fluentui/react-utilities to v9.8.0 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
28
+
29
+ ## [9.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-skeleton_v9.0.0-beta.8)
30
+
31
+ Wed, 12 Apr 2023 09:31:45 GMT
32
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-skeleton_v9.0.0-beta.7..@fluentui/react-skeleton_v9.0.0-beta.8)
33
+
34
+ ### Changes
35
+
36
+ - Bump @fluentui/react-field to v9.0.0-beta.2 ([PR #27274](https://github.com/microsoft/fluentui/pull/27274) by beachball)
37
+ - Bump @fluentui/react-utilities to v9.7.4 ([PR #27274](https://github.com/microsoft/fluentui/pull/27274) by beachball)
38
+
39
+ ## [9.0.0-beta.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-skeleton_v9.0.0-beta.7)
40
+
41
+ Fri, 07 Apr 2023 00:01:42 GMT
42
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-skeleton_v9.0.0-beta.6..@fluentui/react-skeleton_v9.0.0-beta.7)
43
+
44
+ ### Changes
45
+
46
+ - chore: Update package version of react-field ([PR #27458](https://github.com/microsoft/fluentui/pull/27458) by behowell@microsoft.com)
47
+ - Bump @fluentui/react-field to v9.0.0-beta.1 ([PR #27420](https://github.com/microsoft/fluentui/pull/27420) by beachball)
48
+
49
+ ## [9.0.0-beta.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-skeleton_v9.0.0-beta.6)
50
+
51
+ Tue, 04 Apr 2023 18:44:50 GMT
52
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-skeleton_v9.0.0-beta.4..@fluentui/react-skeleton_v9.0.0-beta.6)
53
+
54
+ ### Changes
55
+
56
+ - Bump @fluentui/react-field to v9.0.0-alpha.29 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
57
+ - Bump @fluentui/react-utilities to v9.7.3 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
58
+
59
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-skeleton_v9.0.0-beta.4)
60
+
61
+ Tue, 21 Mar 2023 21:23:02 GMT
62
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-skeleton_v9.0.0-beta.3..@fluentui/react-skeleton_v9.0.0-beta.4)
63
+
64
+ ### Changes
65
+
66
+ - chore: migrate to swc transpilation approach. ([PR #27250](https://github.com/microsoft/fluentui/pull/27250) by tristan.watanabe@gmail.com)
67
+ - fix: add node field to package.json exports map. ([PR #27154](https://github.com/microsoft/fluentui/pull/27154) by tristan.watanabe@gmail.com)
68
+ - Bump @fluentui/react-field to v9.0.0-alpha.27 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
69
+ - Bump @fluentui/react-shared-contexts to v9.3.2 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
70
+ - Bump @fluentui/react-theme to v9.1.7 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
71
+ - Bump @fluentui/react-utilities to v9.7.2 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
72
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.20 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
73
+
74
+ ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-skeleton_v9.0.0-beta.3)
75
+
76
+ Thu, 16 Mar 2023 14:36:59 GMT
77
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-skeleton_v9.0.0-beta.2..@fluentui/react-skeleton_v9.0.0-beta.3)
78
+
79
+ ### Changes
80
+
81
+ - Bump @fluentui/react-field to v9.0.0-alpha.26 ([PR #27229](https://github.com/microsoft/fluentui/pull/27229) by beachball)
82
+ - Bump @fluentui/react-utilities to v9.7.1 ([PR #27229](https://github.com/microsoft/fluentui/pull/27229) by beachball)
83
+
84
+ ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-skeleton_v9.0.0-beta.2)
85
+
86
+ Wed, 15 Mar 2023 10:19:53 GMT
87
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-skeleton_v9.0.0-beta.1..@fluentui/react-skeleton_v9.0.0-beta.2)
88
+
89
+ ### Changes
90
+
91
+ - Bump @fluentui/react-field to v9.0.0-alpha.25 ([PR #27213](https://github.com/microsoft/fluentui/pull/27213) by beachball)
92
+ - Bump @fluentui/react-shared-contexts to v9.3.1 ([PR #27213](https://github.com/microsoft/fluentui/pull/27213) by beachball)
93
+ - Bump @fluentui/react-theme to v9.1.6 ([PR #27213](https://github.com/microsoft/fluentui/pull/27213) by beachball)
94
+
7
95
  ## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-skeleton_v9.0.0-beta.1)
8
96
 
9
- Mon, 13 Mar 2023 08:55:01 GMT
97
+ Mon, 13 Mar 2023 08:58:25 GMT
10
98
 
11
99
  ### Changes
12
100
 
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.js","sourceRoot":"../src/","sources":["packages/react-components/react-skeleton/src/Skeleton.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './components/Skeleton/index';\n"]}
1
+ {"version":3,"names":[],"sources":["../src/Skeleton.ts"],"sourcesContent":["export * from './components/Skeleton/index';\n"],"mappings":"AAAA,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"SkeletonItem.js","sourceRoot":"../src/","sources":["packages/react-components/react-skeleton/src/SkeletonItem.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC","sourcesContent":["export * from './components/SkeletonItem/index';\n"]}
1
+ {"version":3,"names":[],"sources":["../src/SkeletonItem.ts"],"sourcesContent":["export * from './components/SkeletonItem/index';\n"],"mappings":"AAAA,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useSkeleton_unstable","renderSkeleton_unstable","useSkeletonStyles_unstable","useSkeletonContextValues","Skeleton","forwardRef","props","ref","state","contextValues","displayName"],"sources":["../src/packages/react-components/react-skeleton/src/components/Skeleton/Skeleton.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSkeleton_unstable } from './useSkeleton';\nimport { renderSkeleton_unstable } from './renderSkeleton';\nimport { useSkeletonStyles_unstable } from './useSkeletonStyles';\nimport { useSkeletonContextValues } from './useSkeletonContextValues';\nimport type { SkeletonProps } from './Skeleton.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Skeleton component - TODO: add more docs\n */\nexport const Skeleton: ForwardRefComponent<SkeletonProps> = React.forwardRef((props, ref) => {\n const state = useSkeleton_unstable(props, ref);\n const contextValues = useSkeletonContextValues(state);\n\n useSkeletonStyles_unstable(state);\n return renderSkeleton_unstable(state, contextValues);\n});\n\nSkeleton.displayName = 'Skeleton';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,oBAAoB,QAAQ,eAAe;AACpD,SAASC,uBAAuB,QAAQ,kBAAkB;AAC1D,SAASC,0BAA0B,QAAQ,qBAAqB;AAChE,SAASC,wBAAwB,QAAQ,4BAA4B;AAIrE;;;AAGA,OAAO,MAAMC,QAAQ,gBAAuCL,KAAK,CAACM,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAC1F,MAAMC,KAAK,GAAGR,oBAAoB,CAACM,KAAK,EAAEC,GAAG,CAAC;EAC9C,MAAME,aAAa,GAAGN,wBAAwB,CAACK,KAAK,CAAC;EAErDN,0BAA0B,CAACM,KAAK,CAAC;EACjC,OAAOP,uBAAuB,CAACO,KAAK,EAAEC,aAAa,CAAC;AACtD,CAAC,CAAC;AAEFL,QAAQ,CAACM,WAAW,GAAG,UAAU"}
1
+ {"version":3,"names":["React","useSkeleton_unstable","renderSkeleton_unstable","useSkeletonStyles_unstable","useSkeletonContextValues","Skeleton","forwardRef","props","ref","state","contextValues","displayName"],"sources":["../../../src/components/Skeleton/Skeleton.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSkeleton_unstable } from './useSkeleton';\nimport { renderSkeleton_unstable } from './renderSkeleton';\nimport { useSkeletonStyles_unstable } from './useSkeletonStyles';\nimport { useSkeletonContextValues } from './useSkeletonContextValues';\nimport type { SkeletonProps } from './Skeleton.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Skeleton component - TODO: add more docs\n */\nexport const Skeleton: ForwardRefComponent<SkeletonProps> = React.forwardRef((props, ref) => {\n const state = useSkeleton_unstable(props, ref);\n const contextValues = useSkeletonContextValues(state);\n\n useSkeletonStyles_unstable(state);\n return renderSkeleton_unstable(state, contextValues);\n});\n\nSkeleton.displayName = 'Skeleton';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,oBAAoB,QAAQ;AACrC,SAASC,uBAAuB,QAAQ;AACxC,SAASC,0BAA0B,QAAQ;AAC3C,SAASC,wBAAwB,QAAQ;AAIzC;;;AAGA,OAAO,MAAMC,QAAA,gBAA+CL,KAAA,CAAMM,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EAC3F,MAAMC,KAAA,GAAQR,oBAAA,CAAqBM,KAAA,EAAOC,GAAA;EAC1C,MAAME,aAAA,GAAgBN,wBAAA,CAAyBK,KAAA;EAE/CN,0BAAA,CAA2BM,KAAA;EAC3B,OAAOP,uBAAA,CAAwBO,KAAA,EAAOC,aAAA;AACxC;AAEAL,QAAA,CAASM,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-skeleton/src/components/Skeleton/Skeleton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { SkeletonContextValue } from '../../contexts/index';\n\nexport type SkeletonSlots = {\n /**\n * The root slot of the `Skeleton` is the container that will contain the slots that make up a `Skeleton`\n * and any data that the `Skeleton` will load. The default html element is a `div`.\n */\n root: NonNullable<Slot<'div'>>;\n};\n\n/**\n * Skeleton Props\n */\nexport type SkeletonProps = Omit<ComponentProps<Partial<SkeletonSlots>>, 'width'> & {\n /**\n * The animation type for the Skeleton\n * @defaultValue wave\n */\n animation?: 'wave' | 'pulse';\n\n /**\n * Sets the appearance of the Skeleton.\n * @defaultValue opaque\n */\n appearance?: 'opaque' | 'translucent';\n\n /**\n * Sets the width value of the skeleton wrapper.\n * @defaultValue 100%\n */\n width?: number | string;\n};\n\nexport type SkeletonContextValues = {\n skeletonGroup: SkeletonContextValue;\n};\n\n/**\n * State used in rendering Skeleton\n */\nexport type SkeletonState = ComponentState<SkeletonSlots> & Required<Pick<SkeletonProps, 'animation' | 'appearance'>>;\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/Skeleton/Skeleton.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { SkeletonContextValue } from '../../contexts/index';\n\nexport type SkeletonSlots = {\n /**\n * The root slot of the `Skeleton` is the container that will contain the slots that make up a `Skeleton`\n * and any data that the `Skeleton` will load. The default html element is a `div`.\n */\n root: NonNullable<Slot<'div'>>;\n};\n\n/**\n * Skeleton Props\n */\nexport type SkeletonProps = Omit<ComponentProps<Partial<SkeletonSlots>>, 'width'> & {\n /**\n * The animation type for the Skeleton\n * @defaultValue wave\n */\n animation?: 'wave' | 'pulse';\n\n /**\n * Sets the appearance of the Skeleton.\n * @defaultValue opaque\n */\n appearance?: 'opaque' | 'translucent';\n\n /**\n * Sets the width value of the skeleton wrapper.\n * @defaultValue 100%\n */\n width?: number | string;\n};\n\nexport type SkeletonContextValues = {\n skeletonGroup: SkeletonContextValue;\n};\n\n/**\n * State used in rendering Skeleton\n */\nexport type SkeletonState = ComponentState<SkeletonSlots> & Required<Pick<SkeletonProps, 'animation' | 'appearance'>>;\n"],"mappings":"AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-skeleton/src/components/Skeleton/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC","sourcesContent":["export * from './Skeleton';\nexport * from './Skeleton.types';\nexport * from './renderSkeleton';\nexport * from './useSkeleton';\nexport * from './useSkeletonContextValues';\nexport * from './useSkeletonStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/Skeleton/index.ts"],"sourcesContent":["export * from './Skeleton';\nexport * from './Skeleton.types';\nexport * from './renderSkeleton';\nexport * from './useSkeleton';\nexport * from './useSkeletonContextValues';\nexport * from './useSkeletonStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { getSlots } from '@fluentui/react-utilities';
1
+ /** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';
2
+ import { getSlotsNext } from '@fluentui/react-utilities';
3
3
  import { SkeletonContextProvider } from '../../contexts/SkeletonContext';
4
4
  /**
5
5
  * Render the final JSX of Skeleton
@@ -8,11 +8,9 @@ export const renderSkeleton_unstable = (state, contextValues) => {
8
8
  const {
9
9
  slots,
10
10
  slotProps
11
- } = getSlots(state);
12
- return /*#__PURE__*/React.createElement(SkeletonContextProvider, {
11
+ } = getSlotsNext(state);
12
+ return /*#__PURE__*/createElement(SkeletonContextProvider, {
13
13
  value: contextValues.skeletonGroup
14
- }, /*#__PURE__*/React.createElement(slots.root, {
15
- ...slotProps.root
16
- }));
14
+ }, /*#__PURE__*/createElement(slots.root, slotProps.root));
17
15
  };
18
16
  //# sourceMappingURL=renderSkeleton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","getSlots","SkeletonContextProvider","renderSkeleton_unstable","state","contextValues","slots","slotProps","createElement","value","skeletonGroup","root"],"sources":["../src/packages/react-components/react-skeleton/src/components/Skeleton/renderSkeleton.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { SkeletonContextProvider } from '../../contexts/SkeletonContext';\nimport type { SkeletonContextValues, SkeletonSlots, SkeletonState } from './Skeleton.types';\n\n/**\n * Render the final JSX of Skeleton\n */\nexport const renderSkeleton_unstable = (state: SkeletonState, contextValues: SkeletonContextValues) => {\n const { slots, slotProps } = getSlots<SkeletonSlots>(state);\n\n return (\n <SkeletonContextProvider value={contextValues.skeletonGroup}>\n <slots.root {...slotProps.root} />\n </SkeletonContextProvider>\n );\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,uBAAuB,QAAQ,gCAAgC;AAGxE;;;AAGA,OAAO,MAAMC,uBAAuB,GAAGA,CAACC,KAAoB,EAAEC,aAAoC,KAAI;EACpG,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGN,QAAQ,CAAgBG,KAAK,CAAC;EAE3D,oBACEJ,KAAA,CAAAQ,aAAA,CAACN,uBAAuB;IAACO,KAAK,EAAEJ,aAAa,CAACK;EAAa,gBACzDV,KAAA,CAAAQ,aAAA,CAACF,KAAK,CAACK,IAAI;IAAA,GAAKJ,SAAS,CAACI;EAAI,EAAI,CACV;AAE9B,CAAC"}
1
+ {"version":3,"names":["createElement","getSlotsNext","SkeletonContextProvider","renderSkeleton_unstable","state","contextValues","slots","slotProps","value","skeletonGroup","root"],"sources":["../../../src/components/Skeleton/renderSkeleton.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport { SkeletonContextProvider } from '../../contexts/SkeletonContext';\nimport type { SkeletonContextValues, SkeletonSlots, SkeletonState } from './Skeleton.types';\n\n/**\n * Render the final JSX of Skeleton\n */\nexport const renderSkeleton_unstable = (state: SkeletonState, contextValues: SkeletonContextValues) => {\n const { slots, slotProps } = getSlotsNext<SkeletonSlots>(state);\n\n return (\n <SkeletonContextProvider value={contextValues.skeletonGroup}>\n <slots.root {...slotProps.root} />\n </SkeletonContextProvider>\n );\n};\n"],"mappings":"AAAA,2BACA,yBAEA,SAASA,aAAa,QAAQ;AAE9B,SAASC,YAAY,QAAQ;AAC7B,SAASC,uBAAuB,QAAQ;AAGxC;;;AAGA,OAAO,MAAMC,uBAAA,GAA0BA,CAACC,KAAA,EAAsBC,aAAA,KAAyC;EACrG,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGN,YAAA,CAA4BG,KAAA;EAEzD,oBACEJ,aAfJ,CAeKE,uBAAA;IAAwBM,KAAA,EAAOH,aAAA,CAAcI;kBAC5CT,aAhBN,CAgBOM,KAAA,CAAMI,IAAI,EAAKH,SAAA,CAAUG,IAAI;AAGpC"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { getNativeElementProps } from '@fluentui/react-utilities';
2
3
  import { useSkeletonContext } from '../../contexts/SkeletonContext';
3
4
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["getNativeElementProps","useSkeletonContext","useSkeleton_unstable","props","ref","animation","contextAnimation","appearance","contextAppearance","root","role","components"],"sources":["../src/packages/react-components/react-skeleton/src/components/Skeleton/useSkeleton.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { SkeletonProps, SkeletonState } from './Skeleton.types';\nimport { useSkeletonContext } from '../../contexts/SkeletonContext';\n\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: SkeletonProps, ref: React.Ref<HTMLElement>): SkeletonState => {\n const { animation: contextAnimation, appearance: contextAppearance } = useSkeletonContext();\n const { animation = contextAnimation ?? 'wave', appearance = contextAppearance ?? 'opaque' } = props;\n\n const root = getNativeElementProps('div', {\n ref,\n role: 'progressbar',\n 'aria-busy': true,\n 'aria-label': 'Loading Content',\n ...props,\n });\n\n return {\n animation,\n appearance,\n components: {\n root: 'div',\n },\n root,\n };\n};\n"],"mappings":"AACA,SAASA,qBAAqB,QAAQ,2BAA2B;AAEjE,SAASC,kBAAkB,QAAQ,gCAAgC;AAEnE;;;;;;;;;AASA,OAAO,MAAMC,oBAAoB,GAAGA,CAACC,KAAoB,EAAEC,GAA2B,KAAmB;EACvG,MAAM;IAAEC,SAAS,EAAEC,gBAAgB;IAAEC,UAAU,EAAEC;EAAiB,CAAE,GAAGP,kBAAkB,EAAE;EAC3F,MAAM;IAAEI,SAAS,GAAGC,gBAAgB,aAAhBA,gBAAgB,cAAhBA,gBAAgB,GAAI,MAAM;IAAEC,UAAU,GAAGC,iBAAiB,aAAjBA,iBAAiB,cAAjBA,iBAAiB,GAAI;EAAQ,CAAE,GAAGL,KAAK;EAEpG,MAAMM,IAAI,GAAGT,qBAAqB,CAAC,KAAK,EAAE;IACxCI,GAAG;IACHM,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,IAAI;IACjB,YAAY,EAAE,iBAAiB;IAC/B,GAAGP;GACJ,CAAC;EAEF,OAAO;IACLE,SAAS;IACTE,UAAU;IACVI,UAAU,EAAE;MACVF,IAAI,EAAE;KACP;IACDA;GACD;AACH,CAAC"}
1
+ {"version":3,"names":["React","getNativeElementProps","useSkeletonContext","useSkeleton_unstable","props","ref","animation","contextAnimation","appearance","contextAppearance","root","role","components"],"sources":["../../../src/components/Skeleton/useSkeleton.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { SkeletonProps, SkeletonState } from './Skeleton.types';\nimport { useSkeletonContext } from '../../contexts/SkeletonContext';\n\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: SkeletonProps, ref: React.Ref<HTMLElement>): SkeletonState => {\n const { animation: contextAnimation, appearance: contextAppearance } = useSkeletonContext();\n const { animation = contextAnimation ?? 'wave', appearance = contextAppearance ?? 'opaque' } = props;\n\n const root = getNativeElementProps('div', {\n ref,\n role: 'progressbar',\n 'aria-busy': true,\n 'aria-label': 'Loading Content',\n ...props,\n });\n\n return {\n animation,\n appearance,\n components: {\n root: 'div',\n },\n root,\n };\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AAEtC,SAASC,kBAAkB,QAAQ;AAEnC;;;;;;;;;AASA,OAAO,MAAMC,oBAAA,GAAuBA,CAACC,KAAA,EAAsBC,GAAA,KAA+C;EACxG,MAAM;IAAEC,SAAA,EAAWC,gBAAA;IAAkBC,UAAA,EAAYC;EAAiB,CAAE,GAAGP,kBAAA;EACvE,MAAM;IAAEI,SAAA,GAAYC,gBAAA,aAAAA,gBAAA,cAAAA,gBAAA,GAAoB,MAAM;IAAEC,UAAA,GAAaC,iBAAA,aAAAA,iBAAA,cAAAA,iBAAA,GAAqB;EAAQ,CAAE,GAAGL,KAAA;EAE/F,MAAMM,IAAA,GAAOT,qBAAA,CAAsB,OAAO;IACxCI,GAAA;IACAM,IAAA,EAAM;IACN,aAAa,IAAI;IACjB,cAAc;IACd,GAAGP;EACL;EAEA,OAAO;IACLE,SAAA;IACAE,UAAA;IACAI,UAAA,EAAY;MACVF,IAAA,EAAM;IACR;IACAA;EACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useSkeletonContextValues","state","animation","appearance","skeletonGroup","useMemo"],"sources":["../src/packages/react-components/react-skeleton/src/components/Skeleton/useSkeletonContextValues.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SkeletonContextValues, SkeletonState } from '../Skeleton';\n\nexport const useSkeletonContextValues = (state: SkeletonState): SkeletonContextValues => {\n const { animation, appearance } = state;\n\n const skeletonGroup = React.useMemo(\n () => ({\n animation,\n appearance,\n }),\n [animation, appearance],\n );\n\n return { skeletonGroup };\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,OAAO,MAAMC,wBAAwB,GAAIC,KAAoB,IAA2B;EACtF,MAAM;IAAEC,SAAS;IAAEC;EAAU,CAAE,GAAGF,KAAK;EAEvC,MAAMG,aAAa,GAAGL,KAAK,CAACM,OAAO,CACjC,OAAO;IACLH,SAAS;IACTC;GACD,CAAC,EACF,CAACD,SAAS,EAAEC,UAAU,CAAC,CACxB;EAED,OAAO;IAAEC;EAAa,CAAE;AAC1B,CAAC"}
1
+ {"version":3,"names":["React","useSkeletonContextValues","state","animation","appearance","skeletonGroup","useMemo"],"sources":["../../../src/components/Skeleton/useSkeletonContextValues.ts"],"sourcesContent":["import * as React from 'react';\nimport type { SkeletonContextValues, SkeletonState } from '../Skeleton';\n\nexport const useSkeletonContextValues = (state: SkeletonState): SkeletonContextValues => {\n const { animation, appearance } = state;\n\n const skeletonGroup = React.useMemo(\n () => ({\n animation,\n appearance,\n }),\n [animation, appearance],\n );\n\n return { skeletonGroup };\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGvB,OAAO,MAAMC,wBAAA,GAA4BC,KAAA,IAAgD;EACvF,MAAM;IAAEC,SAAA;IAAWC;EAAU,CAAE,GAAGF,KAAA;EAElC,MAAMG,aAAA,GAAgBL,KAAA,CAAMM,OAAO,CACjC,OAAO;IACLH,SAAA;IACAC;EACF,IACA,CAACD,SAAA,EAAWC,UAAA,CAAW;EAGzB,OAAO;IAAEC;EAAc;AACzB"}
@@ -1 +1 @@
1
- {"version":3,"names":["mergeClasses","skeletonClassNames","root","useSkeletonStyles_unstable","state","className"],"sources":["../src/packages/react-components/react-skeleton/src/components/Skeleton/useSkeletonStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { SkeletonSlots, SkeletonState } from './Skeleton.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nexport const skeletonClassNames: SlotClassNames<SkeletonSlots> = {\n root: 'fui-Skeleton',\n};\n\n/**\n * Apply styling to the Skeleton slots based on the state\n */\nexport const useSkeletonStyles_unstable = (state: SkeletonState): SkeletonState => {\n state.root.className = mergeClasses(skeletonClassNames.root, state.root.className);\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAG7C,OAAO,MAAMC,kBAAkB,GAAkC;EAC/DC,IAAI,EAAE;CACP;AAED;;;AAGA,OAAO,MAAMC,0BAA0B,GAAIC,KAAoB,IAAmB;EAChFA,KAAK,CAACF,IAAI,CAACG,SAAS,GAAGL,YAAY,CAACC,kBAAkB,CAACC,IAAI,EAAEE,KAAK,CAACF,IAAI,CAACG,SAAS,CAAC;EAElF,OAAOD,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["mergeClasses","skeletonClassNames","root","useSkeletonStyles_unstable","state","className"],"sources":["../../../src/components/Skeleton/useSkeletonStyles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { SkeletonSlots, SkeletonState } from './Skeleton.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nexport const skeletonClassNames: SlotClassNames<SkeletonSlots> = {\n root: 'fui-Skeleton',\n};\n\n/**\n * Apply styling to the Skeleton slots based on the state\n */\nexport const useSkeletonStyles_unstable = (state: SkeletonState): SkeletonState => {\n state.root.className = mergeClasses(skeletonClassNames.root, state.root.className);\n\n return state;\n};\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ;AAG7B,OAAO,MAAMC,kBAAA,GAAoD;EAC/DC,IAAA,EAAM;AACR;AAEA;;;AAGA,OAAO,MAAMC,0BAAA,GAA8BC,KAAA,IAAwC;EACjFA,KAAA,CAAMF,IAAI,CAACG,SAAS,GAAGL,YAAA,CAAaC,kBAAA,CAAmBC,IAAI,EAAEE,KAAA,CAAMF,IAAI,CAACG,SAAS;EAEjF,OAAOD,KAAA;AACT"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useSkeletonItem_unstable","renderSkeletonItem_unstable","useSkeletonItemStyles_unstable","SkeletonItem","forwardRef","props","ref","state","displayName"],"sources":["../src/packages/react-components/react-skeleton/src/components/SkeletonItem/SkeletonItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSkeletonItem_unstable } from './useSkeletonItem';\nimport { renderSkeletonItem_unstable } from './renderSkeletonItem';\nimport { useSkeletonItemStyles_unstable } from './useSkeletonItemStyles';\nimport type { SkeletonItemProps } from './SkeletonItem.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nexport const SkeletonItem: ForwardRefComponent<SkeletonItemProps> = React.forwardRef((props, ref) => {\n const state = useSkeletonItem_unstable(props, ref);\n\n useSkeletonItemStyles_unstable(state);\n return renderSkeletonItem_unstable(state);\n});\n\nSkeletonItem.displayName = 'SkeletonItem';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,wBAAwB,QAAQ,mBAAmB;AAC5D,SAASC,2BAA2B,QAAQ,sBAAsB;AAClE,SAASC,8BAA8B,QAAQ,yBAAyB;AAIxE,OAAO,MAAMC,YAAY,gBAA2CJ,KAAK,CAACK,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAClG,MAAMC,KAAK,GAAGP,wBAAwB,CAACK,KAAK,EAAEC,GAAG,CAAC;EAElDJ,8BAA8B,CAACK,KAAK,CAAC;EACrC,OAAON,2BAA2B,CAACM,KAAK,CAAC;AAC3C,CAAC,CAAC;AAEFJ,YAAY,CAACK,WAAW,GAAG,cAAc"}
1
+ {"version":3,"names":["React","useSkeletonItem_unstable","renderSkeletonItem_unstable","useSkeletonItemStyles_unstable","SkeletonItem","forwardRef","props","ref","state","displayName"],"sources":["../../../src/components/SkeletonItem/SkeletonItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSkeletonItem_unstable } from './useSkeletonItem';\nimport { renderSkeletonItem_unstable } from './renderSkeletonItem';\nimport { useSkeletonItemStyles_unstable } from './useSkeletonItemStyles';\nimport type { SkeletonItemProps } from './SkeletonItem.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nexport const SkeletonItem: ForwardRefComponent<SkeletonItemProps> = React.forwardRef((props, ref) => {\n const state = useSkeletonItem_unstable(props, ref);\n\n useSkeletonItemStyles_unstable(state);\n return renderSkeletonItem_unstable(state);\n});\n\nSkeletonItem.displayName = 'SkeletonItem';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,wBAAwB,QAAQ;AACzC,SAASC,2BAA2B,QAAQ;AAC5C,SAASC,8BAA8B,QAAQ;AAI/C,OAAO,MAAMC,YAAA,gBAAuDJ,KAAA,CAAMK,UAAU,CAAC,CAACC,KAAA,EAAOC,GAAA,KAAQ;EACnG,MAAMC,KAAA,GAAQP,wBAAA,CAAyBK,KAAA,EAAOC,GAAA;EAE9CJ,8BAAA,CAA+BK,KAAA;EAC/B,OAAON,2BAAA,CAA4BM,KAAA;AACrC;AAEAJ,YAAA,CAAaK,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"SkeletonItem.types.js","sourceRoot":"../src/","sources":["packages/react-components/react-skeleton/src/components/SkeletonItem/SkeletonItem.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type SkeletonItemSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * Sizes for the SkeletonItem\n */\nexport type SkeletonItemSize = 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 48 | 56 | 64 | 72 | 96 | 120 | 128;\n\n/**\n * SkeletonItem Props\n */\nexport type SkeletonItemProps = ComponentProps<SkeletonItemSlots> & {\n /**\n * Sets the animation of the SkeletonItem\n * @default wave\n */\n animation?: 'wave' | 'pulse';\n\n /**\n * Sets the appearance of the SkeletonItem\n * @default opaque\n */\n appearance?: 'opaque' | 'translucent';\n\n /**\n * Sets the size of the SkeletonItem in pixels.\n * Size is restricted to a limited set of values recommended for most uses(see SkeletonItemSize).\n * To set a non-supported size, set `width` and `height` to override the rendered size.\n * @default 16\n */\n size?: SkeletonItemSize;\n\n /**\n * Sets the shape of the SkeletonItem.\n * @default rectangle\n */\n shape?: 'circle' | 'square' | 'rectangle';\n};\n\n/**\n * State used in rendering SkeletonItem\n */\nexport type SkeletonItemState = ComponentState<SkeletonItemSlots> &\n Required<Pick<SkeletonItemProps, 'animation' | 'appearance' | 'size' | 'shape'>>;\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/SkeletonItem/SkeletonItem.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type SkeletonItemSlots = {\n root: Slot<'div'>;\n};\n\n/**\n * Sizes for the SkeletonItem\n */\nexport type SkeletonItemSize = 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 48 | 56 | 64 | 72 | 96 | 120 | 128;\n\n/**\n * SkeletonItem Props\n */\nexport type SkeletonItemProps = ComponentProps<SkeletonItemSlots> & {\n /**\n * Sets the animation of the SkeletonItem\n * @default wave\n */\n animation?: 'wave' | 'pulse';\n\n /**\n * Sets the appearance of the SkeletonItem\n * @default opaque\n */\n appearance?: 'opaque' | 'translucent';\n\n /**\n * Sets the size of the SkeletonItem in pixels.\n * Size is restricted to a limited set of values recommended for most uses(see SkeletonItemSize).\n * To set a non-supported size, set `width` and `height` to override the rendered size.\n * @default 16\n */\n size?: SkeletonItemSize;\n\n /**\n * Sets the shape of the SkeletonItem.\n * @default rectangle\n */\n shape?: 'circle' | 'square' | 'rectangle';\n};\n\n/**\n * State used in rendering SkeletonItem\n */\nexport type SkeletonItemState = ComponentState<SkeletonItemSlots> &\n Required<Pick<SkeletonItemProps, 'animation' | 'appearance' | 'size' | 'shape'>>;\n"],"mappings":"AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["packages/react-components/react-skeleton/src/components/SkeletonItem/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './SkeletonItem';\nexport * from './SkeletonItem.types';\nexport * from './renderSkeletonItem';\nexport * from './useSkeletonItem';\nexport * from './useSkeletonItemStyles';\n"]}
1
+ {"version":3,"names":[],"sources":["../../../src/components/SkeletonItem/index.ts"],"sourcesContent":["export * from './SkeletonItem';\nexport * from './SkeletonItem.types';\nexport * from './renderSkeletonItem';\nexport * from './useSkeletonItem';\nexport * from './useSkeletonItemStyles';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { getSlots } from '@fluentui/react-utilities';
1
+ /** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';
2
+ import { getSlotsNext } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Render the final JSX of SkeletonItem
5
5
  */
@@ -7,9 +7,7 @@ export const renderSkeletonItem_unstable = state => {
7
7
  const {
8
8
  slots,
9
9
  slotProps
10
- } = getSlots(state);
11
- return /*#__PURE__*/React.createElement(slots.root, {
12
- ...slotProps.root
13
- });
10
+ } = getSlotsNext(state);
11
+ return /*#__PURE__*/createElement(slots.root, slotProps.root);
14
12
  };
15
13
  //# sourceMappingURL=renderSkeletonItem.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","getSlots","renderSkeletonItem_unstable","state","slots","slotProps","createElement","root"],"sources":["../src/packages/react-components/react-skeleton/src/components/SkeletonItem/renderSkeletonItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { SkeletonItemState, SkeletonItemSlots } from './SkeletonItem.types';\n\n/**\n * Render the final JSX of SkeletonItem\n */\nexport const renderSkeletonItem_unstable = (state: SkeletonItemState) => {\n const { slots, slotProps } = getSlots<SkeletonItemSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAGpD;;;AAGA,OAAO,MAAMC,2BAA2B,GAAIC,KAAwB,IAAI;EACtE,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,QAAQ,CAAoBE,KAAK,CAAC;EAE/D,oBAAOH,KAAA,CAAAM,aAAA,CAACF,KAAK,CAACG,IAAI;IAAA,GAAKF,SAAS,CAACE;EAAI,EAAI;AAC3C,CAAC"}
1
+ {"version":3,"names":["createElement","getSlotsNext","renderSkeletonItem_unstable","state","slots","slotProps","root"],"sources":["../../../src/components/SkeletonItem/renderSkeletonItem.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { SkeletonItemState, SkeletonItemSlots } from './SkeletonItem.types';\n\n/**\n * Render the final JSX of SkeletonItem\n */\nexport const renderSkeletonItem_unstable = (state: SkeletonItemState) => {\n const { slots, slotProps } = getSlotsNext<SkeletonItemSlots>(state);\n\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":"AAAA,2BACA,yBAEA,SAASA,aAAa,QAAQ;AAE9B,SAASC,YAAY,QAAQ;AAG7B;;;AAGA,OAAO,MAAMC,2BAAA,GAA+BC,KAAA,IAA6B;EACvE,MAAM;IAAEC,KAAA;IAAOC;EAAS,CAAE,GAAGJ,YAAA,CAAgCE,KAAA;EAE7D,oBAAOH,aAbT,CAaUI,KAAA,CAAME,IAAI,EAAKD,SAAA,CAAUC,IAAI;AACvC"}
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { getNativeElementProps } from '@fluentui/react-utilities';
2
3
  import { useSkeletonContext } from '../../contexts/SkeletonContext';
3
4
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["getNativeElementProps","useSkeletonContext","useSkeletonItem_unstable","props","ref","animation","contextAnimation","appearance","contextAppearance","size","shape","root","components"],"sources":["../src/packages/react-components/react-skeleton/src/components/SkeletonItem/useSkeletonItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport { useSkeletonContext } from '../../contexts/SkeletonContext';\nimport type { SkeletonItemProps, SkeletonItemState } from './SkeletonItem.types';\n\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: SkeletonItemProps, ref: React.Ref<HTMLElement>): SkeletonItemState => {\n const { animation: contextAnimation, appearance: contextAppearance } = useSkeletonContext();\n const {\n animation = contextAnimation ?? 'wave',\n appearance = contextAppearance ?? 'opaque',\n size = 16,\n shape = 'rectangle',\n } = props;\n\n const root = getNativeElementProps('div', {\n ref,\n ...props,\n });\n\n return {\n appearance,\n animation,\n size,\n shape,\n components: {\n root: 'div',\n },\n root,\n };\n};\n"],"mappings":"AACA,SAASA,qBAAqB,QAAQ,2BAA2B;AACjE,SAASC,kBAAkB,QAAQ,gCAAgC;AAGnE;;;;;;;;;AASA,OAAO,MAAMC,wBAAwB,GAAGA,CAACC,KAAwB,EAAEC,GAA2B,KAAuB;EACnH,MAAM;IAAEC,SAAS,EAAEC,gBAAgB;IAAEC,UAAU,EAAEC;EAAiB,CAAE,GAAGP,kBAAkB,EAAE;EAC3F,MAAM;IACJI,SAAS,GAAGC,gBAAgB,aAAhBA,gBAAgB,cAAhBA,gBAAgB,GAAI,MAAM;IACtCC,UAAU,GAAGC,iBAAiB,aAAjBA,iBAAiB,cAAjBA,iBAAiB,GAAI,QAAQ;IAC1CC,IAAI,GAAG,EAAE;IACTC,KAAK,GAAG;EAAW,CACpB,GAAGP,KAAK;EAET,MAAMQ,IAAI,GAAGX,qBAAqB,CAAC,KAAK,EAAE;IACxCI,GAAG;IACH,GAAGD;GACJ,CAAC;EAEF,OAAO;IACLI,UAAU;IACVF,SAAS;IACTI,IAAI;IACJC,KAAK;IACLE,UAAU,EAAE;MACVD,IAAI,EAAE;KACP;IACDA;GACD;AACH,CAAC"}
1
+ {"version":3,"names":["React","getNativeElementProps","useSkeletonContext","useSkeletonItem_unstable","props","ref","animation","contextAnimation","appearance","contextAppearance","size","shape","root","components"],"sources":["../../../src/components/SkeletonItem/useSkeletonItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport { useSkeletonContext } from '../../contexts/SkeletonContext';\nimport type { SkeletonItemProps, SkeletonItemState } from './SkeletonItem.types';\n\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: SkeletonItemProps, ref: React.Ref<HTMLElement>): SkeletonItemState => {\n const { animation: contextAnimation, appearance: contextAppearance } = useSkeletonContext();\n const {\n animation = contextAnimation ?? 'wave',\n appearance = contextAppearance ?? 'opaque',\n size = 16,\n shape = 'rectangle',\n } = props;\n\n const root = getNativeElementProps('div', {\n ref,\n ...props,\n });\n\n return {\n appearance,\n animation,\n size,\n shape,\n components: {\n root: 'div',\n },\n root,\n };\n};\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,qBAAqB,QAAQ;AACtC,SAASC,kBAAkB,QAAQ;AAGnC;;;;;;;;;AASA,OAAO,MAAMC,wBAAA,GAA2BA,CAACC,KAAA,EAA0BC,GAAA,KAAmD;EACpH,MAAM;IAAEC,SAAA,EAAWC,gBAAA;IAAkBC,UAAA,EAAYC;EAAiB,CAAE,GAAGP,kBAAA;EACvE,MAAM;IACJI,SAAA,GAAYC,gBAAA,aAAAA,gBAAA,cAAAA,gBAAA,GAAoB,MAAM;IACtCC,UAAA,GAAaC,iBAAA,aAAAA,iBAAA,cAAAA,iBAAA,GAAqB,QAAQ;IAC1CC,IAAA,GAAO;IACPC,KAAA,GAAQ;EAAW,CACpB,GAAGP,KAAA;EAEJ,MAAMQ,IAAA,GAAOX,qBAAA,CAAsB,OAAO;IACxCI,GAAA;IACA,GAAGD;EACL;EAEA,OAAO;IACLI,UAAA;IACAF,SAAA;IACAI,IAAA;IACAC,KAAA;IACAE,UAAA,EAAY;MACVD,IAAA,EAAM;IACR;IACAA;EACF;AACF"}