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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/CHANGELOG.json +423 -1
  2. package/CHANGELOG.md +112 -2
  3. package/README.md +2 -1
  4. package/Spec.md +33 -40
  5. package/dist/react-label.d.ts +19 -18
  6. package/lib/Label.js.map +1 -1
  7. package/lib/components/Label/Label.js +7 -7
  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 +8 -8
  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 +18 -27
  17. package/lib/components/Label/useLabel.js.map +1 -1
  18. package/lib/components/Label/useLabelStyles.d.ts +8 -2
  19. package/lib/components/Label/useLabelStyles.js +16 -6
  20. package/lib/components/Label/useLabelStyles.js.map +1 -1
  21. package/lib/index.d.ts +2 -2
  22. package/lib/index.js +2 -1
  23. package/lib/index.js.map +1 -1
  24. package/lib-commonjs/Label.js +1 -1
  25. package/lib-commonjs/Label.js.map +1 -1
  26. package/lib-commonjs/components/Label/Label.js +8 -8
  27. package/lib-commonjs/components/Label/Label.js.map +1 -1
  28. package/lib-commonjs/components/Label/Label.types.d.ts +9 -9
  29. package/lib-commonjs/components/Label/Label.types.js.map +1 -1
  30. package/lib-commonjs/components/Label/index.js +1 -1
  31. package/lib-commonjs/components/Label/index.js.map +1 -1
  32. package/lib-commonjs/components/Label/renderLabel.d.ts +1 -1
  33. package/lib-commonjs/components/Label/renderLabel.js +12 -14
  34. package/lib-commonjs/components/Label/renderLabel.js.map +1 -1
  35. package/lib-commonjs/components/Label/useLabel.d.ts +4 -9
  36. package/lib-commonjs/components/Label/useLabel.js +23 -33
  37. package/lib-commonjs/components/Label/useLabel.js.map +1 -1
  38. package/lib-commonjs/components/Label/useLabelStyles.d.ts +8 -2
  39. package/lib-commonjs/components/Label/useLabelStyles.js +20 -9
  40. package/lib-commonjs/components/Label/useLabelStyles.js.map +1 -1
  41. package/lib-commonjs/index.d.ts +2 -2
  42. package/lib-commonjs/index.js +39 -2
  43. package/lib-commonjs/index.js.map +1 -1
  44. package/package.json +18 -22
  45. package/lib/common/isConformant.d.ts +0 -4
  46. package/lib/common/isConformant.js +0 -11
  47. package/lib/common/isConformant.js.map +0 -1
  48. package/lib-commonjs/common/isConformant.d.ts +0 -4
  49. package/lib-commonjs/common/isConformant.js +0 -22
  50. package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,429 @@
2
2
  "name": "@fluentui/react-label",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 06 Oct 2021 10:36:00 GMT",
5
+ "date": "Tue, 19 Apr 2022 19:14:37 GMT",
6
+ "tag": "@fluentui/react-label_v9.0.0-beta.10",
7
+ "version": "9.0.0-beta.10",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "seanmonahan@microsoft.com",
12
+ "package": "@fluentui/react-label",
13
+ "commit": "086a675fd0c648944ff4048450190a0a13467de3",
14
+ "comment": "Add static classnames to Label"
15
+ },
16
+ {
17
+ "author": "olfedias@microsoft.com",
18
+ "package": "@fluentui/react-label",
19
+ "commit": "e569d6e04d83cbcc6225e61db52ff81d2addd363",
20
+ "comment": "chore: Update Griffel to latest version"
21
+ },
22
+ {
23
+ "author": "Humberto.Morimoto@microsoft.com",
24
+ "package": "@fluentui/react-label",
25
+ "commit": "19dbc6a15819f699b3313e2a9b822b8456b2a59c",
26
+ "comment": "Removing star exports."
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-label",
31
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.5",
32
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-label",
37
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.6",
38
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-label",
43
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4",
44
+ "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
45
+ }
46
+ ],
47
+ "none": [
48
+ {
49
+ "author": "elcraig@microsoft.com",
50
+ "package": "@fluentui/react-label",
51
+ "commit": "b7f17e976f9e058f39c9fce4f0f9bb6eb4dfa577",
52
+ "comment": "Update React dev deps and hoist them to the repo root"
53
+ },
54
+ {
55
+ "author": "mgodbolt@microsoft.com",
56
+ "package": "@fluentui/react-label",
57
+ "commit": "905e46db07ada986fd7885531f72a71b7bbaabdc",
58
+ "comment": "create v9 api extractor config and set all v9 packags to use it, suppress forgotten export"
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ {
64
+ "date": "Fri, 04 Mar 2022 05:17:37 GMT",
65
+ "tag": "@fluentui/react-label_v9.0.0-beta.9",
66
+ "version": "9.0.0-beta.9",
67
+ "comments": {
68
+ "prerelease": [
69
+ {
70
+ "author": "dzearing@microsoft.com",
71
+ "package": "@fluentui/react-label",
72
+ "commit": "f2f1c0ea948cc3517eeb442c05433eb0918def29",
73
+ "comment": "Adding explicit export maps on all consumer packages for FUIR 8 and 9."
74
+ },
75
+ {
76
+ "author": "beachball",
77
+ "package": "@fluentui/react-label",
78
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.4",
79
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
80
+ },
81
+ {
82
+ "author": "beachball",
83
+ "package": "@fluentui/react-label",
84
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.5",
85
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
86
+ }
87
+ ]
88
+ }
89
+ },
90
+ {
91
+ "date": "Tue, 01 Mar 2022 02:17:36 GMT",
92
+ "tag": "@fluentui/react-label_v9.0.0-beta.8",
93
+ "version": "9.0.0-beta.8",
94
+ "comments": {
95
+ "prerelease": [
96
+ {
97
+ "author": "olfedias@microsoft.com",
98
+ "package": "@fluentui/react-label",
99
+ "commit": "084d7408855f3e52b67cbca172da1acef9dcb98f",
100
+ "comment": "fix: Add react-theme as dependency"
101
+ },
102
+ {
103
+ "author": "beachball",
104
+ "package": "@fluentui/react-label",
105
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.4",
106
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
107
+ }
108
+ ],
109
+ "none": [
110
+ {
111
+ "author": "seanmonahan@microsoft.com",
112
+ "package": "@fluentui/react-label",
113
+ "commit": "2b8643c7bc1644ec5c5930f18e28440eeb8c8bd6",
114
+ "comment": "Update react-label README example"
115
+ }
116
+ ]
117
+ }
118
+ },
119
+ {
120
+ "date": "Fri, 18 Feb 2022 13:35:32 GMT",
121
+ "tag": "@fluentui/react-label_v9.0.0-beta.7",
122
+ "version": "9.0.0-beta.7",
123
+ "comments": {
124
+ "prerelease": [
125
+ {
126
+ "author": "lingfangao@hotmail.com",
127
+ "package": "@fluentui/react-label",
128
+ "commit": "1aa9e691fcccd9a64168cea7941c0f1e71fa1d14",
129
+ "comment": "fix: Source maps contain original source code"
130
+ },
131
+ {
132
+ "author": "beachball",
133
+ "package": "@fluentui/react-label",
134
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.3",
135
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
136
+ },
137
+ {
138
+ "author": "beachball",
139
+ "package": "@fluentui/react-label",
140
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3",
141
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
142
+ }
143
+ ]
144
+ }
145
+ },
146
+ {
147
+ "date": "Thu, 10 Feb 2022 08:51:22 GMT",
148
+ "tag": "@fluentui/react-label_v9.0.0-beta.5",
149
+ "version": "9.0.0-beta.5",
150
+ "comments": {
151
+ "none": [
152
+ {
153
+ "author": "martinhochel@microsoft.com",
154
+ "package": "@fluentui/react-label",
155
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
156
+ "comment": "chore: use storybook runner for all vNext packages"
157
+ },
158
+ {
159
+ "author": "elcraig@microsoft.com",
160
+ "package": "@fluentui/react-label",
161
+ "commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
162
+ "comment": "Relocate comment about props to the correct type, and update spec to accurately reflect props"
163
+ },
164
+ {
165
+ "author": "bsunderhus@microsoft.com",
166
+ "package": "@fluentui/react-label",
167
+ "commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
168
+ "comment": "Updates components with nullRender changes"
169
+ },
170
+ {
171
+ "author": "elcraig@microsoft.com",
172
+ "package": "@fluentui/react-label",
173
+ "commit": "96d9c93544464bcc5ec36b7c5d724b77ae499c73",
174
+ "comment": "Update docs description"
175
+ },
176
+ {
177
+ "author": "andredias@microsoft.com",
178
+ "package": "@fluentui/react-label",
179
+ "commit": "084a7183511bae60a43e57fbd57979349c4736a4",
180
+ "comment": "Migrate package to use solution tsconfigs"
181
+ },
182
+ {
183
+ "author": "olfedias@microsoft.com",
184
+ "package": "@fluentui/react-label",
185
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
186
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
187
+ }
188
+ ],
189
+ "prerelease": [
190
+ {
191
+ "author": "lingfangao@hotmail.com",
192
+ "package": "@fluentui/react-label",
193
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
194
+ "comment": "Bump Fluent UI dependencies to 9.0.0-rc"
195
+ },
196
+ {
197
+ "author": "olfedias@microsoft.com",
198
+ "package": "@fluentui/react-label",
199
+ "commit": "742c191b7f2ea28505e49304117c090f9f36386c",
200
+ "comment": "Replace make-styles packages with griffel equivalents."
201
+ },
202
+ {
203
+ "author": "mgodbolt@microsoft.com",
204
+ "package": "@fluentui/react-label",
205
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
206
+ "comment": "remove export of commons types"
207
+ },
208
+ {
209
+ "author": "Humberto.Morimoto@microsoft.com",
210
+ "package": "@fluentui/react-label",
211
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
212
+ "comment": "Updating based on changes to composition types."
213
+ },
214
+ {
215
+ "author": "Humberto.Morimoto@microsoft.com",
216
+ "package": "@fluentui/react-label",
217
+ "commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
218
+ "comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
219
+ },
220
+ {
221
+ "author": "behowell@microsoft.com",
222
+ "package": "@fluentui/react-label",
223
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
224
+ "comment": "Refactor component Slot typings"
225
+ },
226
+ {
227
+ "author": "Humberto.Morimoto@microsoft.com",
228
+ "package": "@fluentui/react-label",
229
+ "commit": "a052fbc9204600669d32b0ac346032d2cd8d9204",
230
+ "comment": "react-label: Replacing use of functions in makeStyles with direct use of tokens."
231
+ },
232
+ {
233
+ "author": "behowell@microsoft.com",
234
+ "package": "@fluentui/react-label",
235
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
236
+ "comment": "Remove component's shorthandProps array"
237
+ },
238
+ {
239
+ "author": "behowell@microsoft.com",
240
+ "package": "@fluentui/react-label",
241
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
242
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
243
+ },
244
+ {
245
+ "author": "Humberto.Morimoto@microsoft.com",
246
+ "package": "@fluentui/react-label",
247
+ "commit": "00a5d945904c896a0664de6ba72c145a255f0848",
248
+ "comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
249
+ },
250
+ {
251
+ "author": "beachball",
252
+ "package": "@fluentui/react-label",
253
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
254
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
255
+ },
256
+ {
257
+ "author": "beachball",
258
+ "package": "@fluentui/react-label",
259
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
260
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
261
+ }
262
+ ]
263
+ }
264
+ },
265
+ {
266
+ "date": "Thu, 25 Nov 2021 08:34:14 GMT",
267
+ "tag": "@fluentui/react-label_v9.0.0-beta.4",
268
+ "version": "9.0.0-beta.4",
269
+ "comments": {
270
+ "prerelease": [
271
+ {
272
+ "author": "ololubek@microsoft.com",
273
+ "package": "@fluentui/react-label",
274
+ "commit": "a683ee69b17c667227acb71c59f609b4f1ca1ef9",
275
+ "comment": "Add aria-hidden to Label required field"
276
+ },
277
+ {
278
+ "author": "beachball",
279
+ "package": "@fluentui/react-label",
280
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
281
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
282
+ },
283
+ {
284
+ "author": "beachball",
285
+ "package": "@fluentui/react-label",
286
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
287
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
288
+ },
289
+ {
290
+ "author": "beachball",
291
+ "package": "@fluentui/react-label",
292
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
293
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
294
+ },
295
+ {
296
+ "author": "beachball",
297
+ "package": "@fluentui/react-label",
298
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
299
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
300
+ },
301
+ {
302
+ "author": "beachball",
303
+ "package": "@fluentui/react-label",
304
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
305
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
306
+ }
307
+ ]
308
+ }
309
+ },
310
+ {
311
+ "date": "Fri, 12 Nov 2021 13:25:25 GMT",
312
+ "tag": "@fluentui/react-label_v9.0.0-beta.3",
313
+ "version": "9.0.0-beta.3",
314
+ "comments": {
315
+ "none": [
316
+ {
317
+ "author": "lingfangao@hotmail.com",
318
+ "package": "@fluentui/react-label",
319
+ "commit": "7eff1eb4a259988273f8bc709e2951dbb8e0b695",
320
+ "comment": "chore(Label): Rework documentation to desired format"
321
+ },
322
+ {
323
+ "author": "lingfangao@hotmail.com",
324
+ "package": "@fluentui/react-label",
325
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
326
+ "comment": "Remove beta release tag"
327
+ }
328
+ ],
329
+ "prerelease": [
330
+ {
331
+ "author": "gcox@microsoft.com",
332
+ "package": "@fluentui/react-label",
333
+ "commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
334
+ "comment": "Updated beta and RC components to ES2019"
335
+ },
336
+ {
337
+ "author": "olfedias@microsoft.com",
338
+ "package": "@fluentui/react-label",
339
+ "commit": "9186578324773f95f4d61be3d70e67752159d843",
340
+ "comment": "export static classes for components"
341
+ },
342
+ {
343
+ "author": "beachball",
344
+ "package": "@fluentui/react-label",
345
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
346
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
347
+ },
348
+ {
349
+ "author": "beachball",
350
+ "package": "@fluentui/react-label",
351
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
352
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
353
+ },
354
+ {
355
+ "author": "beachball",
356
+ "package": "@fluentui/react-label",
357
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
358
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
359
+ },
360
+ {
361
+ "author": "beachball",
362
+ "package": "@fluentui/react-label",
363
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
364
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
365
+ },
366
+ {
367
+ "author": "beachball",
368
+ "package": "@fluentui/react-label",
369
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
370
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
371
+ }
372
+ ]
373
+ }
374
+ },
375
+ {
376
+ "date": "Wed, 27 Oct 2021 12:14:18 GMT",
377
+ "tag": "@fluentui/react-label_v9.0.0-beta.2",
378
+ "version": "9.0.0-beta.2",
379
+ "comments": {
380
+ "prerelease": [
381
+ {
382
+ "author": "peter@draxler.ml",
383
+ "package": "@fluentui/react-label",
384
+ "commit": "f6db7c8d6b7db0902775e7857b62b745be35b59a",
385
+ "comment": "added styling of documentation"
386
+ },
387
+ {
388
+ "author": "gcox@microsoft.com",
389
+ "package": "@fluentui/react-label",
390
+ "commit": "9a5055bbb719173bdfa5c82c1ab14f93efa9c736",
391
+ "comment": "Removed duplicate 'Label' from story names"
392
+ },
393
+ {
394
+ "author": "beachball",
395
+ "package": "@fluentui/react-label",
396
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.2",
397
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
398
+ },
399
+ {
400
+ "author": "beachball",
401
+ "package": "@fluentui/react-label",
402
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.2",
403
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
404
+ },
405
+ {
406
+ "author": "beachball",
407
+ "package": "@fluentui/react-label",
408
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.2",
409
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
410
+ },
411
+ {
412
+ "author": "beachball",
413
+ "package": "@fluentui/react-label",
414
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2",
415
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
416
+ },
417
+ {
418
+ "author": "beachball",
419
+ "package": "@fluentui/react-label",
420
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2",
421
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
422
+ }
423
+ ]
424
+ }
425
+ },
426
+ {
427
+ "date": "Wed, 06 Oct 2021 10:37:22 GMT",
6
428
  "tag": "@fluentui/react-label_v9.0.0-beta.1",
7
429
  "version": "9.0.0-beta.1",
8
430
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,122 @@
1
1
  # Change Log - @fluentui/react-label
2
2
 
3
- This log was last generated on Wed, 06 Oct 2021 10:36:00 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 19 Apr 2022 19:14:37 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-label_v9.0.0-beta.10)
8
+
9
+ Tue, 19 Apr 2022 19:14:37 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.9..@fluentui/react-label_v9.0.0-beta.10)
11
+
12
+ ### Changes
13
+
14
+ - Add static classnames to Label ([PR #21960](https://github.com/microsoft/fluentui/pull/21960) by seanmonahan@microsoft.com)
15
+ - chore: Update Griffel to latest version ([PR #21976](https://github.com/microsoft/fluentui/pull/21976) by olfedias@microsoft.com)
16
+ - Removing star exports. ([PR #22138](https://github.com/microsoft/fluentui/pull/22138) by Humberto.Morimoto@microsoft.com)
17
+ - Bump @fluentui/react-theme to v9.0.0-rc.5 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
18
+ - Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
19
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
20
+
21
+ ## [9.0.0-beta.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.9)
22
+
23
+ Fri, 04 Mar 2022 05:17:37 GMT
24
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.8..@fluentui/react-label_v9.0.0-beta.9)
25
+
26
+ ### Changes
27
+
28
+ - Adding explicit export maps on all consumer packages for FUIR 8 and 9. ([PR #21508](https://github.com/microsoft/fluentui/pull/21508) by dzearing@microsoft.com)
29
+ - Bump @fluentui/react-theme to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
30
+ - Bump @fluentui/react-utilities to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
31
+
32
+ ## [9.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.8)
33
+
34
+ Tue, 01 Mar 2022 02:17:36 GMT
35
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.7..@fluentui/react-label_v9.0.0-beta.8)
36
+
37
+ ### Changes
38
+
39
+ - fix: Add react-theme as dependency ([PR #21825](https://github.com/microsoft/fluentui/pull/21825) by olfedias@microsoft.com)
40
+ - Bump @fluentui/react-utilities to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
41
+
42
+ ## [9.0.0-beta.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.7)
43
+
44
+ Fri, 18 Feb 2022 13:35:32 GMT
45
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.5..@fluentui/react-label_v9.0.0-beta.7)
46
+
47
+ ### Changes
48
+
49
+ - fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
50
+ - Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
51
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
52
+
53
+ ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.5)
54
+
55
+ Thu, 10 Feb 2022 08:51:22 GMT
56
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.4..@fluentui/react-label_v9.0.0-beta.5)
57
+
58
+ ### Changes
59
+
60
+ - Bump Fluent UI dependencies to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
61
+ - Replace make-styles packages with griffel equivalents. ([PR #21430](https://github.com/microsoft/fluentui/pull/21430) by olfedias@microsoft.com)
62
+ - remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
63
+ - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
64
+ - Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
65
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
66
+ - 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)
67
+ - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
68
+ - 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)
69
+ - 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)
70
+ - Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
71
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
72
+
73
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.4)
74
+
75
+ Thu, 25 Nov 2021 08:34:14 GMT
76
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.3..@fluentui/react-label_v9.0.0-beta.4)
77
+
78
+ ### Changes
79
+
80
+ - Add aria-hidden to Label required field ([PR #20680](https://github.com/microsoft/fluentui/pull/20680) by ololubek@microsoft.com)
81
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
82
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
83
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
84
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
85
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
86
+
87
+ ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.3)
88
+
89
+ Fri, 12 Nov 2021 13:25:25 GMT
90
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.2..@fluentui/react-label_v9.0.0-beta.3)
91
+
92
+ ### Changes
93
+
94
+ - Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
95
+ - export static classes for components ([PR #20456](https://github.com/microsoft/fluentui/pull/20456) by olfedias@microsoft.com)
96
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
97
+ - Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
98
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
99
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
100
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
101
+
102
+ ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.2)
103
+
104
+ Wed, 27 Oct 2021 12:14:18 GMT
105
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.1..@fluentui/react-label_v9.0.0-beta.2)
106
+
107
+ ### Changes
108
+
109
+ - added styling of documentation ([PR #20193](https://github.com/microsoft/fluentui/pull/20193) by peter@draxler.ml)
110
+ - Removed duplicate 'Label' from story names ([PR #20269](https://github.com/microsoft/fluentui/pull/20269) by gcox@microsoft.com)
111
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
112
+ - Bump @fluentui/react-utilities to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
113
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
114
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
115
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
116
+
7
117
  ## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.1)
8
118
 
9
- Wed, 06 Oct 2021 10:36:00 GMT
119
+ Wed, 06 Oct 2021 10:37:22 GMT
10
120
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.51..@fluentui/react-label_v9.0.0-beta.1)
11
121
 
12
122
  ### Changes
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