@fluentui/react-label 9.0.0-alpha.5 → 9.0.0-alpha.50
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +1189 -1
- package/CHANGELOG.md +458 -2
- package/README.md +22 -0
- package/Spec.md +30 -35
- package/dist/react-label.d.ts +40 -23
- package/lib/Label.js.map +1 -1
- package/lib/common/isConformant.d.ts +1 -1
- package/lib/common/isConformant.js +7 -5
- package/lib/common/isConformant.js.map +1 -1
- package/lib/components/Label/Label.d.ts +3 -3
- package/lib/components/Label/Label.js +5 -4
- package/lib/components/Label/Label.js.map +1 -1
- package/lib/components/Label/Label.types.d.ts +29 -15
- package/lib/components/Label/Label.types.js.map +1 -1
- package/lib/components/Label/index.js.map +1 -1
- package/lib/components/Label/renderLabel.d.ts +1 -1
- package/lib/components/Label/renderLabel.js +6 -2
- package/lib/components/Label/renderLabel.js.map +1 -1
- package/lib/components/Label/useLabel.d.ts +4 -4
- package/lib/components/Label/useLabel.js +34 -11
- package/lib/components/Label/useLabel.js.map +1 -1
- package/lib/components/Label/useLabelStyles.d.ts +1 -1
- package/lib/components/Label/useLabelStyles.js +43 -11
- package/lib/components/Label/useLabelStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/lib-commonjs/Label.js +7 -2
- package/lib-commonjs/Label.js.map +1 -1
- package/lib-commonjs/common/isConformant.d.ts +1 -1
- package/lib-commonjs/common/isConformant.js +16 -7
- package/lib-commonjs/common/isConformant.js.map +1 -1
- package/lib-commonjs/components/Label/Label.d.ts +3 -3
- package/lib-commonjs/components/Label/Label.js +18 -9
- package/lib-commonjs/components/Label/Label.js.map +1 -1
- package/lib-commonjs/components/Label/Label.types.d.ts +29 -15
- package/lib-commonjs/components/Label/Label.types.js +4 -1
- package/lib-commonjs/components/Label/Label.types.js.map +1 -1
- package/lib-commonjs/components/Label/index.js +11 -2
- package/lib-commonjs/components/Label/index.js.map +1 -1
- package/lib-commonjs/components/Label/renderLabel.d.ts +1 -1
- package/lib-commonjs/components/Label/renderLabel.js +20 -7
- package/lib-commonjs/components/Label/renderLabel.js.map +1 -1
- package/lib-commonjs/components/Label/useLabel.d.ts +4 -4
- package/lib-commonjs/components/Label/useLabel.js +43 -12
- package/lib-commonjs/components/Label/useLabel.js.map +1 -1
- package/lib-commonjs/components/Label/useLabelStyles.d.ts +1 -1
- package/lib-commonjs/components/Label/useLabelStyles.js +50 -12
- package/lib-commonjs/components/Label/useLabelStyles.js.map +1 -1
- package/lib-commonjs/index.js +7 -2
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +14 -10
- package/config/api-extractor.json +0 -3
- package/config/tests.js +0 -7
- package/etc/react-label.api.md +0 -44
- package/just.config.ts +0 -3
- package/lib-amd/Label.d.ts +0 -1
- package/lib-amd/Label.js +0 -6
- package/lib-amd/Label.js.map +0 -1
- package/lib-amd/common/isConformant.d.ts +0 -4
- package/lib-amd/common/isConformant.js +0 -14
- package/lib-amd/common/isConformant.js.map +0 -1
- package/lib-amd/components/Label/Label.d.ts +0 -6
- package/lib-amd/components/Label/Label.js +0 -15
- package/lib-amd/components/Label/Label.js.map +0 -1
- package/lib-amd/components/Label/Label.types.d.ts +0 -24
- package/lib-amd/components/Label/Label.types.js +0 -5
- package/lib-amd/components/Label/Label.types.js.map +0 -1
- package/lib-amd/components/Label/index.d.ts +0 -5
- package/lib-amd/components/Label/index.js +0 -10
- package/lib-amd/components/Label/index.js.map +0 -1
- package/lib-amd/components/Label/renderLabel.d.ts +0 -5
- package/lib-amd/components/Label/renderLabel.js +0 -14
- package/lib-amd/components/Label/renderLabel.js.map +0 -1
- package/lib-amd/components/Label/useLabel.d.ts +0 -17
- package/lib-amd/components/Label/useLabel.js +0 -30
- package/lib-amd/components/Label/useLabel.js.map +0 -1
- package/lib-amd/components/Label/useLabelStyles.d.ts +0 -5
- package/lib-amd/components/Label/useLabelStyles.js +0 -25
- package/lib-amd/components/Label/useLabelStyles.js.map +0 -1
- package/lib-amd/index.d.ts +0 -2
- package/lib-amd/index.js +0 -6
- package/lib-amd/index.js.map +0 -1
- package/src/components/Label/Label.types.ts +0 -33
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,468 @@
|
|
1
1
|
# Change Log - @fluentui/react-label
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 05 Oct 2021 09:26:55 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.0-alpha.50](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.50)
|
8
|
+
|
9
|
+
Tue, 05 Oct 2021 09:26:55 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.49..@fluentui/react-label_v9.0.0-alpha.50)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Adds ForwardRefComponent to react-label components declaration ([PR #20081](https://github.com/microsoft/fluentui/pull/20081) by bsunderhus@microsoft.com)
|
15
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.77 ([PR #20081](https://github.com/microsoft/fluentui/pull/20081) by beachball)
|
16
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.56 ([PR #20081](https://github.com/microsoft/fluentui/pull/20081) by beachball)
|
17
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.59 ([PR #20081](https://github.com/microsoft/fluentui/pull/20081) by beachball)
|
18
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.52 ([PR #20081](https://github.com/microsoft/fluentui/pull/20081) by beachball)
|
19
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.21 ([PR #20081](https://github.com/microsoft/fluentui/pull/20081) by beachball)
|
20
|
+
|
21
|
+
## [9.0.0-alpha.49](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.49)
|
22
|
+
|
23
|
+
Fri, 01 Oct 2021 14:13:08 GMT
|
24
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.47..@fluentui/react-label_v9.0.0-alpha.49)
|
25
|
+
|
26
|
+
### Changes
|
27
|
+
|
28
|
+
- Bump v9 prerelease versions to rerelease ([PR #20069](https://github.com/microsoft/fluentui/pull/20069) by lingfangao@hotmail.com)
|
29
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.76 ([PR #20069](https://github.com/microsoft/fluentui/pull/20069) by beachball)
|
30
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.55 ([PR #20069](https://github.com/microsoft/fluentui/pull/20069) by beachball)
|
31
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.58 ([PR #20069](https://github.com/microsoft/fluentui/pull/20069) by beachball)
|
32
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.51 ([PR #20069](https://github.com/microsoft/fluentui/pull/20069) by beachball)
|
33
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.20 ([PR #20069](https://github.com/microsoft/fluentui/pull/20069) by beachball)
|
34
|
+
|
35
|
+
## [9.0.0-alpha.47](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.47)
|
36
|
+
|
37
|
+
Wed, 29 Sep 2021 08:06:11 GMT
|
38
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.46..@fluentui/react-label_v9.0.0-alpha.47)
|
39
|
+
|
40
|
+
### Changes
|
41
|
+
|
42
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.74 ([PR #19660](https://github.com/microsoft/fluentui/pull/19660) by beachball)
|
43
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.56 ([PR #19660](https://github.com/microsoft/fluentui/pull/19660) by beachball)
|
44
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.49 ([PR #19660](https://github.com/microsoft/fluentui/pull/19660) by beachball)
|
45
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.18 ([PR #19660](https://github.com/microsoft/fluentui/pull/19660) by beachball)
|
46
|
+
|
47
|
+
## [9.0.0-alpha.46](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.46)
|
48
|
+
|
49
|
+
Mon, 27 Sep 2021 08:06:00 GMT
|
50
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.45..@fluentui/react-label_v9.0.0-alpha.46)
|
51
|
+
|
52
|
+
### Changes
|
53
|
+
|
54
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.73 ([PR #19981](https://github.com/microsoft/fluentui/pull/19981) by beachball)
|
55
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.53 ([PR #19981](https://github.com/microsoft/fluentui/pull/19981) by beachball)
|
56
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.55 ([PR #19981](https://github.com/microsoft/fluentui/pull/19981) by beachball)
|
57
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.48 ([PR #19981](https://github.com/microsoft/fluentui/pull/19981) by beachball)
|
58
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.17 ([PR #19981](https://github.com/microsoft/fluentui/pull/19981) by beachball)
|
59
|
+
|
60
|
+
## [9.0.0-alpha.45](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.45)
|
61
|
+
|
62
|
+
Fri, 24 Sep 2021 09:17:17 GMT
|
63
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.44..@fluentui/react-label_v9.0.0-alpha.45)
|
64
|
+
|
65
|
+
### Changes
|
66
|
+
|
67
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.72 ([PR #19950](https://github.com/microsoft/fluentui/pull/19950) by beachball)
|
68
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.52 ([PR #19950](https://github.com/microsoft/fluentui/pull/19950) by beachball)
|
69
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.54 ([PR #19950](https://github.com/microsoft/fluentui/pull/19950) by beachball)
|
70
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.47 ([PR #19950](https://github.com/microsoft/fluentui/pull/19950) by beachball)
|
71
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.16 ([PR #19950](https://github.com/microsoft/fluentui/pull/19950) by beachball)
|
72
|
+
|
73
|
+
## [9.0.0-alpha.44](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.44)
|
74
|
+
|
75
|
+
Thu, 23 Sep 2021 08:21:34 GMT
|
76
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.43..@fluentui/react-label_v9.0.0-alpha.44)
|
77
|
+
|
78
|
+
### Changes
|
79
|
+
|
80
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.71 ([commit](https://github.com/microsoft/fluentui/commit/95682da34c48813f7658032ae490d21d2f363b90) by beachball)
|
81
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.51 ([commit](https://github.com/microsoft/fluentui/commit/95682da34c48813f7658032ae490d21d2f363b90) by beachball)
|
82
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.53 ([commit](https://github.com/microsoft/fluentui/commit/95682da34c48813f7658032ae490d21d2f363b90) by beachball)
|
83
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.46 ([commit](https://github.com/microsoft/fluentui/commit/95682da34c48813f7658032ae490d21d2f363b90) by beachball)
|
84
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.15 ([commit](https://github.com/microsoft/fluentui/commit/95682da34c48813f7658032ae490d21d2f363b90) by beachball)
|
85
|
+
|
86
|
+
## [9.0.0-alpha.43](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.43)
|
87
|
+
|
88
|
+
Wed, 22 Sep 2021 10:10:07 GMT
|
89
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.42..@fluentui/react-label_v9.0.0-alpha.43)
|
90
|
+
|
91
|
+
### Changes
|
92
|
+
|
93
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.70 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
|
94
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.50 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
|
95
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.52 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
|
96
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.45 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
|
97
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.14 ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by beachball)
|
98
|
+
|
99
|
+
## [9.0.0-alpha.42](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.42)
|
100
|
+
|
101
|
+
Tue, 21 Sep 2021 07:42:34 GMT
|
102
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.41..@fluentui/react-label_v9.0.0-alpha.42)
|
103
|
+
|
104
|
+
### Changes
|
105
|
+
|
106
|
+
- Updating to types over interfaces ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by gcox@microsoft.com)
|
107
|
+
- Bump @fluentui/react-make-styles to v9.0.0-alpha.69 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
|
108
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.51 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
|
109
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.44 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
|
110
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-alpha.13 ([PR #19865](https://github.com/microsoft/fluentui/pull/19865) by beachball)
|
111
|
+
|
112
|
+
## [9.0.0-alpha.41](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.41)
|
113
|
+
|
114
|
+
Mon, 20 Sep 2021 07:36:26 GMT
|
115
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.40..@fluentui/react-label_v9.0.0-alpha.41)
|
116
|
+
|
117
|
+
### Changes
|
118
|
+
|
119
|
+
- Bump @fluentui/react-label to v9.0.0-alpha.41 ([PR #19844](https://github.com/microsoft/fluentui/pull/19844) by lingfangao@hotmail.com)
|
120
|
+
|
121
|
+
## [9.0.0-alpha.40](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.40)
|
122
|
+
|
123
|
+
Fri, 17 Sep 2021 07:35:26 GMT
|
124
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.39..@fluentui/react-label_v9.0.0-alpha.40)
|
125
|
+
|
126
|
+
### Changes
|
127
|
+
|
128
|
+
- Bump @fluentui/react-label to v9.0.0-alpha.40 ([PR #19840](https://github.com/microsoft/fluentui/pull/19840) by Humberto.Morimoto@microsoft.com)
|
129
|
+
|
130
|
+
## [9.0.0-alpha.39](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.39)
|
131
|
+
|
132
|
+
Thu, 16 Sep 2021 07:38:39 GMT
|
133
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.38..@fluentui/react-label_v9.0.0-alpha.39)
|
134
|
+
|
135
|
+
### Changes
|
136
|
+
|
137
|
+
- Bump @fluentui/react-label to v9.0.0-alpha.39 ([PR #19815](https://github.com/microsoft/fluentui/pull/19815) by behowell@microsoft.com)
|
138
|
+
|
139
|
+
## [9.0.0-alpha.38](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.38)
|
140
|
+
|
141
|
+
Tue, 14 Sep 2021 20:09:02 GMT
|
142
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.37..@fluentui/react-label_v9.0.0-alpha.38)
|
143
|
+
|
144
|
+
### Changes
|
145
|
+
|
146
|
+
- Bump @fluentui/react-label to v9.0.0-alpha.38 ([PR #19155](https://github.com/microsoft/fluentui/pull/19155) by bsunderhus@microsoft.com)
|
147
|
+
|
148
|
+
## [9.0.0-alpha.37](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.37)
|
149
|
+
|
150
|
+
Fri, 10 Sep 2021 16:31:53 GMT
|
151
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.36..@fluentui/react-label_v9.0.0-alpha.37)
|
152
|
+
|
153
|
+
### Changes
|
154
|
+
|
155
|
+
- chore(v9): Move all internal v9 dependencies from caret to fixed version ([PR #19748](https://github.com/microsoft/fluentui/pull/19748) by lingfangao@hotmail.com)
|
156
|
+
- Bump @fluentui/react-label to v9.0.0-alpha.37 ([PR #19748](https://github.com/microsoft/fluentui/pull/19748) by lingfangao@hotmail.com)
|
157
|
+
|
158
|
+
## [9.0.0-alpha.36](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.36)
|
159
|
+
|
160
|
+
Fri, 10 Sep 2021 07:39:51 GMT
|
161
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.35..@fluentui/react-label_v9.0.0-alpha.36)
|
162
|
+
|
163
|
+
### Changes
|
164
|
+
|
165
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.45 ([PR #19642](https://github.com/microsoft/fluentui/pull/19642) by behowell@microsoft.com)
|
166
|
+
|
167
|
+
## [9.0.0-alpha.35](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.35)
|
168
|
+
|
169
|
+
Mon, 06 Sep 2021 07:34:53 GMT
|
170
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.34..@fluentui/react-label_v9.0.0-alpha.35)
|
171
|
+
|
172
|
+
### Changes
|
173
|
+
|
174
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.44 ([PR #19640](https://github.com/microsoft/fluentui/pull/19640) by lingfangao@hotmail.com)
|
175
|
+
|
176
|
+
## [9.0.0-alpha.34](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.34)
|
177
|
+
|
178
|
+
Thu, 02 Sep 2021 07:36:46 GMT
|
179
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.33..@fluentui/react-label_v9.0.0-alpha.34)
|
180
|
+
|
181
|
+
### Patches
|
182
|
+
|
183
|
+
- Bump @fluentui/react-conformance to v0.4.5 ([PR #19590](https://github.com/microsoft/fluentui/pull/19590) by olfedias@microsoft.com)
|
184
|
+
|
185
|
+
### Changes
|
186
|
+
|
187
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.43 ([PR #19065](https://github.com/microsoft/fluentui/pull/19065) by olfedias@microsoft.com)
|
188
|
+
|
189
|
+
## [9.0.0-alpha.33](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.33)
|
190
|
+
|
191
|
+
Wed, 01 Sep 2021 07:39:56 GMT
|
192
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.32..@fluentui/react-label_v9.0.0-alpha.33)
|
193
|
+
|
194
|
+
### Changes
|
195
|
+
|
196
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.43 ([PR #19483](https://github.com/microsoft/fluentui/pull/19483) by bsunderhus@microsoft.com)
|
197
|
+
|
198
|
+
## [9.0.0-alpha.32](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.32)
|
199
|
+
|
200
|
+
Tue, 31 Aug 2021 07:37:47 GMT
|
201
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.31..@fluentui/react-label_v9.0.0-alpha.32)
|
202
|
+
|
203
|
+
### Changes
|
204
|
+
|
205
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.42 ([PR #19556](https://github.com/microsoft/fluentui/pull/19556) by lingfan.gao@microsoft.com)
|
206
|
+
|
207
|
+
## [9.0.0-alpha.31](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.31)
|
208
|
+
|
209
|
+
Fri, 27 Aug 2021 07:33:32 GMT
|
210
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.30..@fluentui/react-label_v9.0.0-alpha.31)
|
211
|
+
|
212
|
+
### Changes
|
213
|
+
|
214
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.40 ([PR #19462](https://github.com/microsoft/fluentui/pull/19462) by olfedias@microsoft.com)
|
215
|
+
|
216
|
+
## [9.0.0-alpha.30](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.30)
|
217
|
+
|
218
|
+
Thu, 26 Aug 2021 07:35:43 GMT
|
219
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.29..@fluentui/react-label_v9.0.0-alpha.30)
|
220
|
+
|
221
|
+
### Changes
|
222
|
+
|
223
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.39 ([PR #19486](https://github.com/microsoft/fluentui/pull/19486) by martinhochel@microsoft.com)
|
224
|
+
|
225
|
+
## [9.0.0-alpha.29](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.29)
|
226
|
+
|
227
|
+
Tue, 24 Aug 2021 07:34:48 GMT
|
228
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.28..@fluentui/react-label_v9.0.0-alpha.29)
|
229
|
+
|
230
|
+
### Changes
|
231
|
+
|
232
|
+
- Updating TypeScript type-only imports/exports to use import/export syntax. ([PR #19473](https://github.com/microsoft/fluentui/pull/19473) by dzearing@hotmail.com)
|
233
|
+
|
234
|
+
## [9.0.0-alpha.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.28)
|
235
|
+
|
236
|
+
Fri, 20 Aug 2021 07:37:28 GMT
|
237
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.27..@fluentui/react-label_v9.0.0-alpha.28)
|
238
|
+
|
239
|
+
### Changes
|
240
|
+
|
241
|
+
- Update .npmignore ([PR #19441](https://github.com/microsoft/fluentui/pull/19441) by elcraig@microsoft.com)
|
242
|
+
|
243
|
+
## [9.0.0-alpha.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.27)
|
244
|
+
|
245
|
+
Thu, 19 Aug 2021 07:41:35 GMT
|
246
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.26..@fluentui/react-label_v9.0.0-alpha.27)
|
247
|
+
|
248
|
+
### Changes
|
249
|
+
|
250
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.39 ([PR #19273](https://github.com/microsoft/fluentui/pull/19273) by bsunderhus@microsoft.com)
|
251
|
+
|
252
|
+
## [9.0.0-alpha.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.26)
|
253
|
+
|
254
|
+
Fri, 13 Aug 2021 07:36:34 GMT
|
255
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.25..@fluentui/react-label_v9.0.0-alpha.26)
|
256
|
+
|
257
|
+
### Changes
|
258
|
+
|
259
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.32 ([PR #19341](https://github.com/microsoft/fluentui/pull/19341) by olfedias@microsoft.com)
|
260
|
+
|
261
|
+
## [9.0.0-alpha.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.25)
|
262
|
+
|
263
|
+
Wed, 11 Aug 2021 07:34:54 GMT
|
264
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.24..@fluentui/react-label_v9.0.0-alpha.25)
|
265
|
+
|
266
|
+
### Changes
|
267
|
+
|
268
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.35 ([PR #19256](https://github.com/microsoft/fluentui/pull/19256) by olfedias@microsoft.com)
|
269
|
+
|
270
|
+
## [9.0.0-alpha.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.24)
|
271
|
+
|
272
|
+
Fri, 06 Aug 2021 07:35:14 GMT
|
273
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.23..@fluentui/react-label_v9.0.0-alpha.24)
|
274
|
+
|
275
|
+
### Changes
|
276
|
+
|
277
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.34 ([PR #19281](https://github.com/microsoft/fluentui/pull/19281) by jspurlin@microsoft.com)
|
278
|
+
|
279
|
+
## [9.0.0-alpha.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.23)
|
280
|
+
|
281
|
+
Tue, 03 Aug 2021 07:39:30 GMT
|
282
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.22..@fluentui/react-label_v9.0.0-alpha.23)
|
283
|
+
|
284
|
+
### Patches
|
285
|
+
|
286
|
+
- Bump @fluentui/eslint-plugin to v1.3.3 ([PR #19169](https://github.com/microsoft/fluentui/pull/19169) by behowell@microsoft.com)
|
287
|
+
- Bump @fluentui/react-conformance to v0.4.4 ([PR #19169](https://github.com/microsoft/fluentui/pull/19169) by behowell@microsoft.com)
|
288
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #19169](https://github.com/microsoft/fluentui/pull/19169) by behowell@microsoft.com)
|
289
|
+
|
290
|
+
### Changes
|
291
|
+
|
292
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.33 ([PR #19169](https://github.com/microsoft/fluentui/pull/19169) by behowell@microsoft.com)
|
293
|
+
|
294
|
+
## [9.0.0-alpha.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.22)
|
295
|
+
|
296
|
+
Mon, 02 Aug 2021 07:36:20 GMT
|
297
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.21..@fluentui/react-label_v9.0.0-alpha.22)
|
298
|
+
|
299
|
+
### Changes
|
300
|
+
|
301
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.36 ([PR #19204](https://github.com/microsoft/fluentui/pull/19204) by lingfan.gao@microsoft.com)
|
302
|
+
|
303
|
+
## [9.0.0-alpha.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.21)
|
304
|
+
|
305
|
+
Mon, 26 Jul 2021 07:37:30 GMT
|
306
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.20..@fluentui/react-label_v9.0.0-alpha.21)
|
307
|
+
|
308
|
+
### Changes
|
309
|
+
|
310
|
+
- add Babel plugins to build pipeline ([PR #18968](https://github.com/microsoft/fluentui/pull/18968) by olfedias@microsoft.com)
|
311
|
+
|
312
|
+
## [9.0.0-alpha.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.20)
|
313
|
+
|
314
|
+
Fri, 23 Jul 2021 07:38:19 GMT
|
315
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.19..@fluentui/react-label_v9.0.0-alpha.20)
|
316
|
+
|
317
|
+
### Changes
|
318
|
+
|
319
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.27 ([PR #19041](https://github.com/microsoft/fluentui/pull/19041) by miroslav.stastny@microsoft.com)
|
320
|
+
|
321
|
+
## [9.0.0-alpha.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.19)
|
322
|
+
|
323
|
+
Thu, 22 Jul 2021 07:36:55 GMT
|
324
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.18..@fluentui/react-label_v9.0.0-alpha.19)
|
325
|
+
|
326
|
+
### Changes
|
327
|
+
|
328
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.34 ([PR #19023](https://github.com/microsoft/fluentui/pull/19023) by behowell@microsoft.com)
|
329
|
+
|
330
|
+
## [9.0.0-alpha.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.18)
|
331
|
+
|
332
|
+
Thu, 15 Jul 2021 07:36:18 GMT
|
333
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.17..@fluentui/react-label_v9.0.0-alpha.18)
|
334
|
+
|
335
|
+
### Changes
|
336
|
+
|
337
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.33 ([PR #18861](https://github.com/microsoft/fluentui/pull/18861) by bsunderhus@microsoft.com)
|
338
|
+
|
339
|
+
## [9.0.0-alpha.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.17)
|
340
|
+
|
341
|
+
Tue, 13 Jul 2021 22:32:58 GMT
|
342
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.16..@fluentui/react-label_v9.0.0-alpha.17)
|
343
|
+
|
344
|
+
### Patches
|
345
|
+
|
346
|
+
- Bump @fluentui/react-conformance to v0.4.3 ([PR #18925](https://github.com/microsoft/fluentui/pull/18925) by elcraig@microsoft.com)
|
347
|
+
|
348
|
+
### Changes
|
349
|
+
|
350
|
+
- Adding missing line-height to Label. ([PR #18889](https://github.com/microsoft/fluentui/pull/18889) by esteban.230@hotmail.com)
|
351
|
+
|
352
|
+
## [9.0.0-alpha.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.16)
|
353
|
+
|
354
|
+
Tue, 13 Jul 2021 07:35:36 GMT
|
355
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.15..@fluentui/react-label_v9.0.0-alpha.16)
|
356
|
+
|
357
|
+
### Changes
|
358
|
+
|
359
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.24 ([PR #18560](https://github.com/microsoft/fluentui/pull/18560) by behowell@microsoft.com)
|
360
|
+
|
361
|
+
## [9.0.0-alpha.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.15)
|
362
|
+
|
363
|
+
Fri, 09 Jul 2021 07:39:31 GMT
|
364
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.14..@fluentui/react-label_v9.0.0-alpha.15)
|
365
|
+
|
366
|
+
### Patches
|
367
|
+
|
368
|
+
- Bump @fluentui/eslint-plugin to v1.3.2 ([PR #18808](https://github.com/microsoft/fluentui/pull/18808) by martinhochel@microsoft.com)
|
369
|
+
- Bump @fluentui/react-conformance to v0.4.2 ([PR #18808](https://github.com/microsoft/fluentui/pull/18808) by martinhochel@microsoft.com)
|
370
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #18808](https://github.com/microsoft/fluentui/pull/18808) by martinhochel@microsoft.com)
|
371
|
+
|
372
|
+
### Changes
|
373
|
+
|
374
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.23 ([PR #18808](https://github.com/microsoft/fluentui/pull/18808) by martinhochel@microsoft.com)
|
375
|
+
|
376
|
+
## [9.0.0-alpha.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.14)
|
377
|
+
|
378
|
+
Fri, 02 Jul 2021 23:15:55 GMT
|
379
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.13..@fluentui/react-label_v9.0.0-alpha.14)
|
380
|
+
|
381
|
+
### Changes
|
382
|
+
|
383
|
+
- Bump @fluentui/react-utilities to v9.0.0-alpha.31 ([PR #18721](https://github.com/microsoft/fluentui/pull/18721) by bsunderhus@microsoft.com)
|
384
|
+
|
385
|
+
## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.13)
|
386
|
+
|
387
|
+
Fri, 02 Jul 2021 07:37:06 GMT
|
388
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.12..@fluentui/react-label_v9.0.0-alpha.13)
|
389
|
+
|
390
|
+
### Changes
|
391
|
+
|
392
|
+
- Rename typings and getSlots to have the Compat Suffix ([PR #18796](https://github.com/microsoft/fluentui/pull/18796) by bsunderhus@microsoft.com)
|
393
|
+
|
394
|
+
## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.12)
|
395
|
+
|
396
|
+
Thu, 01 Jul 2021 07:35:05 GMT
|
397
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.11..@fluentui/react-label_v9.0.0-alpha.12)
|
398
|
+
|
399
|
+
### Changes
|
400
|
+
|
401
|
+
- Fixing bug in start script of converged packages. ([PR #18768](https://github.com/microsoft/fluentui/pull/18768) by Humberto.Morimoto@microsoft.com)
|
402
|
+
|
403
|
+
## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.11)
|
404
|
+
|
405
|
+
Wed, 30 Jun 2021 07:38:35 GMT
|
406
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.10..@fluentui/react-label_v9.0.0-alpha.11)
|
407
|
+
|
408
|
+
### Changes
|
409
|
+
|
410
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.20 ([PR #18695](https://github.com/microsoft/fluentui/pull/18695) by tristan.watanabe@gmail.com)
|
411
|
+
|
412
|
+
## [9.0.0-alpha.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.10)
|
413
|
+
|
414
|
+
Tue, 29 Jun 2021 07:33:32 GMT
|
415
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.9..@fluentui/react-label_v9.0.0-alpha.10)
|
416
|
+
|
417
|
+
### Changes
|
418
|
+
|
419
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.19 ([PR #18169](https://github.com/microsoft/fluentui/pull/18169) by olfedias@microsoft.com)
|
420
|
+
|
421
|
+
## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.9)
|
422
|
+
|
423
|
+
Fri, 18 Jun 2021 07:30:58 GMT
|
424
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.8..@fluentui/react-label_v9.0.0-alpha.9)
|
425
|
+
|
426
|
+
### Changes
|
427
|
+
|
428
|
+
- removing inline-flex and setting to block ([PR #18503](https://github.com/microsoft/fluentui/pull/18503) by esteban.230@hotmail.com)
|
429
|
+
|
430
|
+
## [9.0.0-alpha.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.8)
|
431
|
+
|
432
|
+
Tue, 15 Jun 2021 07:40:20 GMT
|
433
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.7..@fluentui/react-label_v9.0.0-alpha.8)
|
434
|
+
|
435
|
+
### Changes
|
436
|
+
|
437
|
+
- Fix type of required prop after change to ShorthandProp type definition ([PR #18521](https://github.com/microsoft/fluentui/pull/18521) by behowell@microsoft.com)
|
438
|
+
|
439
|
+
## [9.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.7)
|
440
|
+
|
441
|
+
Wed, 09 Jun 2021 07:33:38 GMT
|
442
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.6..@fluentui/react-label_v9.0.0-alpha.7)
|
443
|
+
|
444
|
+
### Changes
|
445
|
+
|
446
|
+
- Adding implementation ([PR #18378](https://github.com/microsoft/fluentui/pull/18378) by esteban.230@hotmail.com)
|
447
|
+
|
448
|
+
## [9.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.6)
|
449
|
+
|
450
|
+
Mon, 07 Jun 2021 07:38:15 GMT
|
451
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.5..@fluentui/react-label_v9.0.0-alpha.6)
|
452
|
+
|
453
|
+
### Patches
|
454
|
+
|
455
|
+
- Bump @fluentui/eslint-plugin to v1.3.1 ([PR #18437](https://github.com/microsoft/fluentui/pull/18437) by martinhochel@microsoft.com)
|
456
|
+
- Bump @fluentui/react-conformance to v0.4.1 ([PR #18437](https://github.com/microsoft/fluentui/pull/18437) by martinhochel@microsoft.com)
|
457
|
+
- Bump @fluentui/scripts to v1.0.0 ([PR #18437](https://github.com/microsoft/fluentui/pull/18437) by martinhochel@microsoft.com)
|
458
|
+
|
459
|
+
### Changes
|
460
|
+
|
461
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-alpha.17 ([PR #18437](https://github.com/microsoft/fluentui/pull/18437) by martinhochel@microsoft.com)
|
462
|
+
|
7
463
|
## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.5)
|
8
464
|
|
9
|
-
Fri, 04 Jun 2021 07:
|
465
|
+
Fri, 04 Jun 2021 07:37:23 GMT
|
10
466
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.4..@fluentui/react-label_v9.0.0-alpha.5)
|
11
467
|
|
12
468
|
### Changes
|
package/README.md
CHANGED
@@ -3,3 +3,25 @@
|
|
3
3
|
**React Label components for [Fluent UI React](https://developer.microsoft.com/en-us/fluentui)**
|
4
4
|
|
5
5
|
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
|
6
|
+
|
7
|
+
## Usage
|
8
|
+
|
9
|
+
To use the `Label` component import it from `@fluentui/react-label` and use it as shown below.
|
10
|
+
|
11
|
+
```tsx
|
12
|
+
import * as React from 'react';
|
13
|
+
import { Label } from '@fluentui/react-label';
|
14
|
+
|
15
|
+
export const labelExample = () => {
|
16
|
+
const inputId = React.useId('firstNameLabel');
|
17
|
+
|
18
|
+
return (
|
19
|
+
<>
|
20
|
+
<Label htmlfor={inputId} required strong>
|
21
|
+
First Name
|
22
|
+
</Label>
|
23
|
+
<input id={inputId} />
|
24
|
+
</>
|
25
|
+
);
|
26
|
+
};
|
27
|
+
```
|
package/Spec.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
## Background
|
4
4
|
|
5
|
-
|
5
|
+
Labels provide a name or title to a component or group of components, e.g., text fields, checkboxes, radio buttons, and dropdown menus.
|
6
6
|
|
7
7
|
## Prior Art
|
8
8
|
|
@@ -77,56 +77,53 @@ The Label component should be simple as shown below. It will just need the text
|
|
77
77
|
```ts
|
78
78
|
/**
|
79
79
|
* Label Props
|
80
|
-
* {@docCategory Label}
|
81
80
|
*/
|
82
|
-
export
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
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>;
|
94
|
+
|
95
|
+
/**
|
96
|
+
* A label supports different font sizes, see tokens for reference.
|
97
|
+
* @defaultvalue 'medium'
|
98
|
+
*/
|
99
|
+
size?: 'small' | 'medium' | 'large';
|
100
|
+
|
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
|
+
};
|
107
107
|
|
108
108
|
/**
|
109
109
|
* Names of the shorthand properties in LabelProps
|
110
|
-
* {@docCategory Label}
|
111
110
|
*/
|
112
111
|
export type LabelShorthandProps = 'required';
|
113
112
|
|
114
113
|
/**
|
115
114
|
* Names of LabelProps that have a default value in useLabel
|
116
|
-
* {@docCategory Label}
|
117
115
|
*/
|
118
116
|
export type LabelDefaultedProps = never;
|
119
117
|
|
120
118
|
/**
|
121
119
|
* State used in rendering Label
|
122
|
-
* {@docCategory Label}
|
123
120
|
*/
|
124
|
-
export
|
121
|
+
export type LabelState = ComponentState<LabelProps, LabelShorthandProps, LabelDefaultedProps> & {
|
125
122
|
/**
|
126
123
|
* Ref to the root element
|
127
124
|
*/
|
128
125
|
ref: React.Ref<HTMLElement>;
|
129
|
-
}
|
126
|
+
};
|
130
127
|
```
|
131
128
|
|
132
129
|
## Structure
|
@@ -134,9 +131,7 @@ export interface LabelState extends ComponentState<LabelProps, LabelShorthandPro
|
|
134
131
|
### Public
|
135
132
|
|
136
133
|
```tsx
|
137
|
-
<Label required>
|
138
|
-
I'm a Label
|
139
|
-
</Label>
|
134
|
+
<Label required>I'm a Label</Label>
|
140
135
|
```
|
141
136
|
|
142
137
|
### DOM
|