@fluentui/react-label 0.0.0-nightly627ad67f1120211109.1 → 0.0.0-nightly695230dc7220220301.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/CHANGELOG.json +273 -20
  2. package/CHANGELOG.md +76 -10
  3. package/README.md +2 -1
  4. package/Spec.md +33 -40
  5. package/dist/react-label.d.ts +13 -20
  6. package/lib/Label.js.map +1 -1
  7. package/lib/components/Label/Label.js +6 -6
  8. package/lib/components/Label/Label.js.map +1 -1
  9. package/lib/components/Label/Label.types.d.ts +9 -9
  10. package/lib/components/Label/Label.types.js.map +1 -1
  11. package/lib/components/Label/index.js.map +1 -1
  12. package/lib/components/Label/renderLabel.d.ts +1 -1
  13. package/lib/components/Label/renderLabel.js +5 -4
  14. package/lib/components/Label/renderLabel.js.map +1 -1
  15. package/lib/components/Label/useLabel.d.ts +4 -9
  16. package/lib/components/Label/useLabel.js +5 -12
  17. package/lib/components/Label/useLabel.js.map +1 -1
  18. package/lib/components/Label/useLabelStyles.d.ts +1 -1
  19. package/lib/components/Label/useLabelStyles.js +3 -2
  20. package/lib/components/Label/useLabelStyles.js.map +1 -1
  21. package/lib/index.js.map +1 -1
  22. package/lib-commonjs/Label.js.map +1 -1
  23. package/lib-commonjs/components/Label/Label.js +3 -3
  24. package/lib-commonjs/components/Label/Label.js.map +1 -1
  25. package/lib-commonjs/components/Label/Label.types.d.ts +9 -9
  26. package/lib-commonjs/components/Label/Label.types.js.map +1 -1
  27. package/lib-commonjs/components/Label/index.js.map +1 -1
  28. package/lib-commonjs/components/Label/renderLabel.d.ts +1 -1
  29. package/lib-commonjs/components/Label/renderLabel.js +7 -7
  30. package/lib-commonjs/components/Label/renderLabel.js.map +1 -1
  31. package/lib-commonjs/components/Label/useLabel.d.ts +4 -9
  32. package/lib-commonjs/components/Label/useLabel.js +8 -15
  33. package/lib-commonjs/components/Label/useLabel.js.map +1 -1
  34. package/lib-commonjs/components/Label/useLabelStyles.d.ts +1 -1
  35. package/lib-commonjs/components/Label/useLabelStyles.js +9 -7
  36. package/lib-commonjs/components/Label/useLabelStyles.js.map +1 -1
  37. package/lib-commonjs/index.js.map +1 -1
  38. package/package.json +10 -11
  39. package/lib/common/isConformant.d.ts +0 -4
  40. package/lib/common/isConformant.js +0 -11
  41. package/lib/common/isConformant.js.map +0 -1
  42. package/lib-commonjs/common/isConformant.d.ts +0 -4
  43. package/lib-commonjs/common/isConformant.js +0 -22
  44. package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,66 +2,319 @@
2
2
  "name": "@fluentui/react-label",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 09 Nov 2021 04:20:25 GMT",
6
- "tag": "@fluentui/react-label_v0.0.0-nightly627ad67f1120211109.1",
7
- "version": "0.0.0-nightly627ad67f1120211109.1",
5
+ "date": "Tue, 01 Mar 2022 04:14:59 GMT",
6
+ "tag": "@fluentui/react-label_v0.0.0-nightly695230dc7220220301.1",
7
+ "version": "0.0.0-nightly695230dc7220220301.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-label",
13
- "commit": "5e2f04f4741a9e3b98463480f9c1926ea2006337",
13
+ "commit": "be1864c428aedd3bb265318a6cb6cf161ded2472",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
16
  {
17
- "author": "gcox@microsoft.com",
17
+ "author": "beachball",
18
18
  "package": "@fluentui/react-label",
19
- "commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
20
- "comment": "Updated beta and RC components to ES2019"
19
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly695230dc7220220301.1",
20
+ "commit": "be1864c428aedd3bb265318a6cb6cf161ded2472"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-label",
25
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly695230dc7220220301.1",
26
+ "commit": "be1864c428aedd3bb265318a6cb6cf161ded2472"
21
27
  },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-label",
31
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly695230dc7220220301.1",
32
+ "commit": "be1864c428aedd3bb265318a6cb6cf161ded2472"
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "date": "Tue, 01 Mar 2022 02:17:36 GMT",
39
+ "tag": "@fluentui/react-label_v9.0.0-beta.8",
40
+ "version": "9.0.0-beta.8",
41
+ "comments": {
42
+ "prerelease": [
22
43
  {
23
44
  "author": "olfedias@microsoft.com",
24
45
  "package": "@fluentui/react-label",
25
- "commit": "9186578324773f95f4d61be3d70e67752159d843",
26
- "comment": "export static classes for components"
46
+ "commit": "084d7408855f3e52b67cbca172da1acef9dcb98f",
47
+ "comment": "fix: Add react-theme as dependency"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-label",
52
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.4",
53
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
54
+ }
55
+ ],
56
+ "none": [
57
+ {
58
+ "author": "seanmonahan@microsoft.com",
59
+ "package": "@fluentui/react-label",
60
+ "commit": "2b8643c7bc1644ec5c5930f18e28440eeb8c8bd6",
61
+ "comment": "Update react-label README example"
62
+ }
63
+ ]
64
+ }
65
+ },
66
+ {
67
+ "date": "Fri, 18 Feb 2022 13:35:32 GMT",
68
+ "tag": "@fluentui/react-label_v9.0.0-beta.7",
69
+ "version": "9.0.0-beta.7",
70
+ "comments": {
71
+ "prerelease": [
72
+ {
73
+ "author": "lingfangao@hotmail.com",
74
+ "package": "@fluentui/react-label",
75
+ "commit": "1aa9e691fcccd9a64168cea7941c0f1e71fa1d14",
76
+ "comment": "fix: Source maps contain original source code"
77
+ },
78
+ {
79
+ "author": "beachball",
80
+ "package": "@fluentui/react-label",
81
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.3",
82
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
83
+ },
84
+ {
85
+ "author": "beachball",
86
+ "package": "@fluentui/react-label",
87
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3",
88
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
89
+ }
90
+ ]
91
+ }
92
+ },
93
+ {
94
+ "date": "Thu, 10 Feb 2022 08:51:22 GMT",
95
+ "tag": "@fluentui/react-label_v9.0.0-beta.5",
96
+ "version": "9.0.0-beta.5",
97
+ "comments": {
98
+ "none": [
99
+ {
100
+ "author": "martinhochel@microsoft.com",
101
+ "package": "@fluentui/react-label",
102
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
103
+ "comment": "chore: use storybook runner for all vNext packages"
104
+ },
105
+ {
106
+ "author": "elcraig@microsoft.com",
107
+ "package": "@fluentui/react-label",
108
+ "commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
109
+ "comment": "Relocate comment about props to the correct type, and update spec to accurately reflect props"
110
+ },
111
+ {
112
+ "author": "bsunderhus@microsoft.com",
113
+ "package": "@fluentui/react-label",
114
+ "commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
115
+ "comment": "Updates components with nullRender changes"
116
+ },
117
+ {
118
+ "author": "elcraig@microsoft.com",
119
+ "package": "@fluentui/react-label",
120
+ "commit": "96d9c93544464bcc5ec36b7c5d724b77ae499c73",
121
+ "comment": "Update docs description"
122
+ },
123
+ {
124
+ "author": "andredias@microsoft.com",
125
+ "package": "@fluentui/react-label",
126
+ "commit": "084a7183511bae60a43e57fbd57979349c4736a4",
127
+ "comment": "Migrate package to use solution tsconfigs"
128
+ },
129
+ {
130
+ "author": "olfedias@microsoft.com",
131
+ "package": "@fluentui/react-label",
132
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
133
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
134
+ }
135
+ ],
136
+ "prerelease": [
137
+ {
138
+ "author": "lingfangao@hotmail.com",
139
+ "package": "@fluentui/react-label",
140
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
141
+ "comment": "Bump Fluent UI dependencies to 9.0.0-rc"
142
+ },
143
+ {
144
+ "author": "olfedias@microsoft.com",
145
+ "package": "@fluentui/react-label",
146
+ "commit": "742c191b7f2ea28505e49304117c090f9f36386c",
147
+ "comment": "Replace make-styles packages with griffel equivalents."
148
+ },
149
+ {
150
+ "author": "mgodbolt@microsoft.com",
151
+ "package": "@fluentui/react-label",
152
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
153
+ "comment": "remove export of commons types"
154
+ },
155
+ {
156
+ "author": "Humberto.Morimoto@microsoft.com",
157
+ "package": "@fluentui/react-label",
158
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
159
+ "comment": "Updating based on changes to composition types."
160
+ },
161
+ {
162
+ "author": "Humberto.Morimoto@microsoft.com",
163
+ "package": "@fluentui/react-label",
164
+ "commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
165
+ "comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
166
+ },
167
+ {
168
+ "author": "behowell@microsoft.com",
169
+ "package": "@fluentui/react-label",
170
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
171
+ "comment": "Refactor component Slot typings"
172
+ },
173
+ {
174
+ "author": "Humberto.Morimoto@microsoft.com",
175
+ "package": "@fluentui/react-label",
176
+ "commit": "a052fbc9204600669d32b0ac346032d2cd8d9204",
177
+ "comment": "react-label: Replacing use of functions in makeStyles with direct use of tokens."
178
+ },
179
+ {
180
+ "author": "behowell@microsoft.com",
181
+ "package": "@fluentui/react-label",
182
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
183
+ "comment": "Remove component's shorthandProps array"
184
+ },
185
+ {
186
+ "author": "behowell@microsoft.com",
187
+ "package": "@fluentui/react-label",
188
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
189
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
190
+ },
191
+ {
192
+ "author": "Humberto.Morimoto@microsoft.com",
193
+ "package": "@fluentui/react-label",
194
+ "commit": "00a5d945904c896a0664de6ba72c145a255f0848",
195
+ "comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
196
+ },
197
+ {
198
+ "author": "beachball",
199
+ "package": "@fluentui/react-label",
200
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
201
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
202
+ },
203
+ {
204
+ "author": "beachball",
205
+ "package": "@fluentui/react-label",
206
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
207
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
208
+ }
209
+ ]
210
+ }
211
+ },
212
+ {
213
+ "date": "Thu, 25 Nov 2021 08:34:14 GMT",
214
+ "tag": "@fluentui/react-label_v9.0.0-beta.4",
215
+ "version": "9.0.0-beta.4",
216
+ "comments": {
217
+ "prerelease": [
218
+ {
219
+ "author": "ololubek@microsoft.com",
220
+ "package": "@fluentui/react-label",
221
+ "commit": "a683ee69b17c667227acb71c59f609b4f1ca1ef9",
222
+ "comment": "Add aria-hidden to Label required field"
27
223
  },
28
224
  {
29
225
  "author": "beachball",
30
226
  "package": "@fluentui/react-label",
31
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly627ad67f1120211109.1",
32
- "commit": "5e2f04f4741a9e3b98463480f9c1926ea2006337"
227
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
228
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
33
229
  },
34
230
  {
35
231
  "author": "beachball",
36
232
  "package": "@fluentui/react-label",
37
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly627ad67f1120211109.1",
38
- "commit": "5e2f04f4741a9e3b98463480f9c1926ea2006337"
233
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
234
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
39
235
  },
40
236
  {
41
237
  "author": "beachball",
42
238
  "package": "@fluentui/react-label",
43
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly627ad67f1120211109.1",
44
- "commit": "5e2f04f4741a9e3b98463480f9c1926ea2006337"
239
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
240
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
45
241
  },
46
242
  {
47
243
  "author": "beachball",
48
244
  "package": "@fluentui/react-label",
49
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly627ad67f1120211109.1",
50
- "commit": "5e2f04f4741a9e3b98463480f9c1926ea2006337"
245
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
246
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
51
247
  },
52
248
  {
53
249
  "author": "beachball",
54
250
  "package": "@fluentui/react-label",
55
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly627ad67f1120211109.1",
56
- "commit": "5e2f04f4741a9e3b98463480f9c1926ea2006337"
251
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
252
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
57
253
  }
58
- ],
254
+ ]
255
+ }
256
+ },
257
+ {
258
+ "date": "Fri, 12 Nov 2021 13:25:25 GMT",
259
+ "tag": "@fluentui/react-label_v9.0.0-beta.3",
260
+ "version": "9.0.0-beta.3",
261
+ "comments": {
59
262
  "none": [
60
263
  {
61
264
  "author": "lingfangao@hotmail.com",
62
265
  "package": "@fluentui/react-label",
63
266
  "commit": "7eff1eb4a259988273f8bc709e2951dbb8e0b695",
64
267
  "comment": "chore(Label): Rework documentation to desired format"
268
+ },
269
+ {
270
+ "author": "lingfangao@hotmail.com",
271
+ "package": "@fluentui/react-label",
272
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
273
+ "comment": "Remove beta release tag"
274
+ }
275
+ ],
276
+ "prerelease": [
277
+ {
278
+ "author": "gcox@microsoft.com",
279
+ "package": "@fluentui/react-label",
280
+ "commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
281
+ "comment": "Updated beta and RC components to ES2019"
282
+ },
283
+ {
284
+ "author": "olfedias@microsoft.com",
285
+ "package": "@fluentui/react-label",
286
+ "commit": "9186578324773f95f4d61be3d70e67752159d843",
287
+ "comment": "export static classes for components"
288
+ },
289
+ {
290
+ "author": "beachball",
291
+ "package": "@fluentui/react-label",
292
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
293
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
294
+ },
295
+ {
296
+ "author": "beachball",
297
+ "package": "@fluentui/react-label",
298
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
299
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
300
+ },
301
+ {
302
+ "author": "beachball",
303
+ "package": "@fluentui/react-label",
304
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
305
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
306
+ },
307
+ {
308
+ "author": "beachball",
309
+ "package": "@fluentui/react-label",
310
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
311
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
312
+ },
313
+ {
314
+ "author": "beachball",
315
+ "package": "@fluentui/react-label",
316
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
317
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
65
318
  }
66
319
  ]
67
320
  }
package/CHANGELOG.md CHANGED
@@ -1,24 +1,90 @@
1
1
  # Change Log - @fluentui/react-label
2
2
 
3
- This log was last generated on Tue, 09 Nov 2021 04:20:25 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 01 Mar 2022 04:14:59 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly627ad67f1120211109.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v0.0.0-nightly627ad67f1120211109.1)
7
+ ## [0.0.0-nightly695230dc7220220301.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v0.0.0-nightly695230dc7220220301.1)
8
8
 
9
- Tue, 09 Nov 2021 04:20:25 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.2..@fluentui/react-label_v0.0.0-nightly627ad67f1120211109.1)
9
+ Tue, 01 Mar 2022 04:14:59 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.8..@fluentui/react-label_v0.0.0-nightly695230dc7220220301.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/be1864c428aedd3bb265318a6cb6cf161ded2472) by email not defined)
15
+ - Bump @fluentui/react-theme to v0.0.0-nightly695230dc7220220301.1 ([commit](https://github.com/microsoft/fluentui/commit/be1864c428aedd3bb265318a6cb6cf161ded2472) by beachball)
16
+ - Bump @fluentui/react-utilities to v0.0.0-nightly695230dc7220220301.1 ([commit](https://github.com/microsoft/fluentui/commit/be1864c428aedd3bb265318a6cb6cf161ded2472) by beachball)
17
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly695230dc7220220301.1 ([commit](https://github.com/microsoft/fluentui/commit/be1864c428aedd3bb265318a6cb6cf161ded2472) by beachball)
18
+
19
+ ## [9.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.8)
20
+
21
+ Tue, 01 Mar 2022 02:17:36 GMT
22
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.7..@fluentui/react-label_v9.0.0-beta.8)
23
+
24
+ ### Changes
25
+
26
+ - fix: Add react-theme as dependency ([PR #21825](https://github.com/microsoft/fluentui/pull/21825) by olfedias@microsoft.com)
27
+ - Bump @fluentui/react-utilities to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
28
+
29
+ ## [9.0.0-beta.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.7)
30
+
31
+ Fri, 18 Feb 2022 13:35:32 GMT
32
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.5..@fluentui/react-label_v9.0.0-beta.7)
33
+
34
+ ### Changes
35
+
36
+ - fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
37
+ - Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
38
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
39
+
40
+ ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.5)
41
+
42
+ Thu, 10 Feb 2022 08:51:22 GMT
43
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.4..@fluentui/react-label_v9.0.0-beta.5)
44
+
45
+ ### Changes
46
+
47
+ - Bump Fluent UI dependencies to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
48
+ - Replace make-styles packages with griffel equivalents. ([PR #21430](https://github.com/microsoft/fluentui/pull/21430) by olfedias@microsoft.com)
49
+ - remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
50
+ - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
51
+ - Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
52
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
53
+ - react-label: Replacing use of functions in makeStyles with direct use of tokens. ([PR #21046](https://github.com/microsoft/fluentui/pull/21046) by Humberto.Morimoto@microsoft.com)
54
+ - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
55
+ - BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
56
+ - Updating use of tokens.fontWeight now that we don't need to use casting. ([PR #21217](https://github.com/microsoft/fluentui/pull/21217) by Humberto.Morimoto@microsoft.com)
57
+ - Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
58
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
59
+
60
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.4)
61
+
62
+ Thu, 25 Nov 2021 08:34:14 GMT
63
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.3..@fluentui/react-label_v9.0.0-beta.4)
64
+
65
+ ### Changes
66
+
67
+ - Add aria-hidden to Label required field ([PR #20680](https://github.com/microsoft/fluentui/pull/20680) by ololubek@microsoft.com)
68
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
69
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
70
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
71
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
72
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
73
+
74
+ ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.3)
75
+
76
+ Fri, 12 Nov 2021 13:25:25 GMT
77
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.2..@fluentui/react-label_v9.0.0-beta.3)
11
78
 
12
79
  ### Changes
13
80
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/5e2f04f4741a9e3b98463480f9c1926ea2006337) by email not defined)
15
81
  - Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
16
82
  - export static classes for components ([PR #20456](https://github.com/microsoft/fluentui/pull/20456) by olfedias@microsoft.com)
17
- - Bump @fluentui/react-make-styles to v0.0.0-nightly627ad67f1120211109.1 ([commit](https://github.com/microsoft/fluentui/commit/5e2f04f4741a9e3b98463480f9c1926ea2006337) by beachball)
18
- - Bump @fluentui/react-utilities to v0.0.0-nightly627ad67f1120211109.1 ([commit](https://github.com/microsoft/fluentui/commit/5e2f04f4741a9e3b98463480f9c1926ea2006337) by beachball)
19
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly627ad67f1120211109.1 ([commit](https://github.com/microsoft/fluentui/commit/5e2f04f4741a9e3b98463480f9c1926ea2006337) by beachball)
20
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly627ad67f1120211109.1 ([commit](https://github.com/microsoft/fluentui/commit/5e2f04f4741a9e3b98463480f9c1926ea2006337) by beachball)
21
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly627ad67f1120211109.1 ([commit](https://github.com/microsoft/fluentui/commit/5e2f04f4741a9e3b98463480f9c1926ea2006337) by beachball)
83
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
84
+ - Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
85
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
86
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
87
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
22
88
 
23
89
  ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.2)
24
90
 
package/README.md CHANGED
@@ -11,9 +11,10 @@ To use the `Label` component import it from `@fluentui/react-label` and use it a
11
11
  ```tsx
12
12
  import * as React from 'react';
13
13
  import { Label } from '@fluentui/react-label';
14
+ import { useId } from '@fluentui/react-utilities';
14
15
 
15
16
  export const labelExample = () => {
16
- const inputId = React.useId('firstNameLabel');
17
+ const inputId = useId('firstNameLabel-');
17
18
 
18
19
  return (
19
20
  <>
package/Spec.md CHANGED
@@ -75,55 +75,48 @@ The Label component should be simple as shown below. It will just need the text
75
75
  ## API
76
76
 
77
77
  ```ts
78
- /**
79
- * Label Props
80
- */
81
- export type LabelProps = ComponentProps &
82
- React.LabelHTMLAttributes<HTMLElement> & {
83
- /**
84
- * Renders the label as disabled
85
- * @defaultvalue false
86
- */
87
- disabled?: boolean;
88
-
89
- /**
90
- * Whether the associated form field is required or not. If true it will be an asterisk, otherwise it will be what is provided.
91
- * @defaultvalue false
92
- */
93
- required?: boolean | ShorthandProps<ComponentProps>;
78
+ export type LabelCommons = {
79
+ /**
80
+ * Renders the label as disabled
81
+ * @defaultvalue false
82
+ */
83
+ disabled: boolean;
94
84
 
95
- /**
96
- * A label supports different font sizes, see tokens for reference.
97
- * @defaultvalue 'medium'
98
- */
99
- size?: 'small' | 'medium' | 'large';
85
+ /**
86
+ * A label supports different sizes.
87
+ * @defaultvalue 'medium'
88
+ */
89
+ size: 'small' | 'medium' | 'large';
100
90
 
101
- /**
102
- * A label supports semibold/strong fontweight. When size is set to large, label strong will be set by default.
103
- * @defaultvalue false
104
- */
105
- strong?: boolean;
106
- };
91
+ /**
92
+ * A label supports semibold/strong fontweight.
93
+ * @defaultvalue false
94
+ */
95
+ strong: boolean;
96
+ };
107
97
 
108
- /**
109
- * Names of the shorthand properties in LabelProps
110
- */
111
- export type LabelShorthandProps = 'required';
98
+ export type LabelSlots = {
99
+ root: IntrinsicSlotProps<'label'>;
100
+ required?: IntrinsicSlotProps<'span'>;
101
+ };
112
102
 
113
103
  /**
114
- * Names of LabelProps that have a default value in useLabel
104
+ * State used in rendering Label
115
105
  */
116
- export type LabelDefaultedProps = never;
106
+ export type LabelState = ComponentState<LabelSlots> & LabelCommons;
117
107
 
118
108
  /**
119
- * State used in rendering Label
109
+ * Label Props
120
110
  */
121
- export type LabelState = ComponentState<LabelProps, LabelShorthandProps, LabelDefaultedProps> & {
122
- /**
123
- * Ref to the root element
124
- */
125
- ref: React.Ref<HTMLElement>;
126
- };
111
+ export type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> &
112
+ Partial<LabelCommons> & {
113
+ /**
114
+ * Displays and indicator that the label is for a required field. The required prop can be set to true to display
115
+ * an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.
116
+ * @defaultvalue false
117
+ */
118
+ required?: boolean | IntrinsicSlotProps<'span'> | React.ReactNode;
119
+ };
127
120
  ```
128
121
 
129
122
  ## Structure
@@ -1,9 +1,8 @@
1
1
  import type { ComponentProps } from '@fluentui/react-utilities';
2
2
  import type { ComponentState } from '@fluentui/react-utilities';
3
3
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
4
- import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
5
- import type { ObjectShorthandProps } from '@fluentui/react-utilities';
6
4
  import * as React_2 from 'react';
5
+ import type { Slot } from '@fluentui/react-utilities';
7
6
 
8
7
  /**
9
8
  * A label component provides a title or name to a component.
@@ -12,10 +11,7 @@ export declare const Label: ForwardRefComponent<LabelProps>;
12
11
 
13
12
  export declare const labelClassName = "fui-Label";
14
13
 
15
- /**
16
- * Label Props
17
- */
18
- export declare type LabelCommons = {
14
+ declare type LabelCommons = {
19
15
  /**
20
16
  * Renders the label as disabled
21
17
  * @defaultvalue false
@@ -33,24 +29,21 @@ export declare type LabelCommons = {
33
29
  strong: boolean;
34
30
  };
35
31
 
32
+ /**
33
+ * Label Props
34
+ */
36
35
  export declare type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> & Partial<LabelCommons> & {
37
36
  /**
38
37
  * Displays and indicator that the label is for a required field. The required prop can be set to true to display
39
38
  * an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.
40
39
  * @defaultvalue false
41
40
  */
42
- required?: boolean | ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>> | React_2.ReactNode;
41
+ required?: boolean | Slot<'span'>;
43
42
  };
44
43
 
45
- /**
46
- * Array of all shorthand properties listed in LabelShorthandProps
47
- * {@docCatergory Label}
48
- */
49
- export declare const labelShorthandProps: Array<keyof LabelSlots>;
50
-
51
44
  export declare type LabelSlots = {
52
- root: IntrinsicShorthandProps<'label'>;
53
- required?: IntrinsicShorthandProps<'span'>;
45
+ root: Slot<'label'>;
46
+ required?: Slot<'span'>;
54
47
  };
55
48
 
56
49
  /**
@@ -61,22 +54,22 @@ export declare type LabelState = ComponentState<LabelSlots> & LabelCommons;
61
54
  /**
62
55
  * Render the final JSX of Label
63
56
  */
64
- export declare const renderLabel: (state: LabelState) => JSX.Element;
57
+ export declare const renderLabel_unstable: (state: LabelState) => JSX.Element;
65
58
 
66
59
  /**
67
60
  * Create the state required to render Label.
68
61
  *
69
- * The returned state can be modified with hooks such as useLabelStyles,
70
- * before being passed to renderLabel.
62
+ * The returned state can be modified with hooks such as useLabelStyles_unstable,
63
+ * before being passed to renderLabel_unstable.
71
64
  *
72
65
  * @param props - props from this instance of Label
73
66
  * @param ref - reference to root HTMLElement of Label
74
67
  */
75
- export declare const useLabel: (props: LabelProps, ref: React_2.Ref<HTMLElement>) => LabelState;
68
+ export declare const useLabel_unstable: (props: LabelProps, ref: React_2.Ref<HTMLElement>) => LabelState;
76
69
 
77
70
  /**
78
71
  * Apply styling to the Label slots based on the state
79
72
  */
80
- export declare const useLabelStyles: (state: LabelState) => LabelState;
73
+ export declare const useLabelStyles_unstable: (state: LabelState) => LabelState;
81
74
 
82
75
  export { }
package/lib/Label.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Label.js","sourceRoot":"","sources":["../src/Label.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"Label.js","sourceRoot":"../src/","sources":["Label.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './components/Label/index';\n"]}
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useLabel } from './useLabel';
3
- import { renderLabel } from './renderLabel';
4
- import { useLabelStyles } from './useLabelStyles';
2
+ import { useLabel_unstable } from './useLabel';
3
+ import { renderLabel_unstable } from './renderLabel';
4
+ import { useLabelStyles_unstable } from './useLabelStyles';
5
5
  /**
6
6
  * A label component provides a title or name to a component.
7
7
  */
8
8
 
9
9
  export const Label = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useLabel(props, ref);
11
- useLabelStyles(state);
12
- return renderLabel(state);
10
+ const state = useLabel_unstable(props, ref);
11
+ useLabelStyles_unstable(state);
12
+ return renderLabel_unstable(state);
13
13
  });
14
14
  Label.displayName = 'Label';
15
15
  //# sourceMappingURL=Label.js.map