@fluentui/react-switch 0.0.0-nightlyfbae36b19b20211111.1 → 0.0.0-nightlyfc5cfdc52420220215.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +231 -26
- package/CHANGELOG.md +62 -15
- package/dist/react-switch.d.ts +12 -17
- package/lib/components/Switch/Switch.js +6 -6
- package/lib/components/Switch/Switch.js.map +1 -1
- package/lib/components/Switch/Switch.types.d.ts +10 -9
- package/lib/components/Switch/renderSwitch.d.ts +1 -1
- package/lib/components/Switch/renderSwitch.js +9 -4
- package/lib/components/Switch/renderSwitch.js.map +1 -1
- package/lib/components/Switch/useSwitch.d.ts +2 -6
- package/lib/components/Switch/useSwitch.js +1 -6
- package/lib/components/Switch/useSwitch.js.map +1 -1
- package/lib/components/Switch/useSwitchState.js +1 -1
- package/lib/components/Switch/useSwitchState.js.map +1 -1
- package/lib/components/Switch/useSwitchStyles.d.ts +1 -1
- package/lib/components/Switch/useSwitchStyles.js +49 -44
- package/lib/components/Switch/useSwitchStyles.js.map +1 -1
- package/lib-commonjs/components/Switch/Switch.js +3 -3
- package/lib-commonjs/components/Switch/Switch.js.map +1 -1
- package/lib-commonjs/components/Switch/Switch.types.d.ts +10 -9
- package/lib-commonjs/components/Switch/renderSwitch.d.ts +1 -1
- package/lib-commonjs/components/Switch/renderSwitch.js +11 -7
- package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitch.d.ts +2 -6
- package/lib-commonjs/components/Switch/useSwitch.js +4 -9
- package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitchState.js +1 -1
- package/lib-commonjs/components/Switch/useSwitchState.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitchStyles.d.ts +1 -1
- package/lib-commonjs/components/Switch/useSwitchStyles.js +64 -58
- package/lib-commonjs/components/Switch/useSwitchStyles.js.map +1 -1
- package/package.json +10 -15
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -12
- package/lib/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -23
- package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,82 +2,287 @@
|
|
2
2
|
"name": "@fluentui/react-switch",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-switch_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Tue, 15 Feb 2022 04:11:42 GMT",
|
6
|
+
"tag": "@fluentui/react-switch_v0.0.0-nightlyfc5cfdc52420220215.1",
|
7
|
+
"version": "0.0.0-nightlyfc5cfdc52420220215.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
11
|
"author": "email not defined",
|
12
12
|
"package": "@fluentui/react-switch",
|
13
|
-
"commit": "
|
13
|
+
"commit": "911569f28daa07a66ee59e1d8b7cfaf6f86051e9",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
|
+
{
|
17
|
+
"author": "mgodbolt@microsoft.com",
|
18
|
+
"package": "@fluentui/react-switch",
|
19
|
+
"commit": "2c9804dd585c1b485736c34321264dc62abe6fe1",
|
20
|
+
"comment": "fix visual display of controlled switches"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-switch",
|
25
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyfc5cfdc52420220215.1",
|
26
|
+
"commit": "911569f28daa07a66ee59e1d8b7cfaf6f86051e9"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-switch",
|
31
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyfc5cfdc52420220215.1",
|
32
|
+
"commit": "911569f28daa07a66ee59e1d8b7cfaf6f86051e9"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-switch",
|
37
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyfc5cfdc52420220215.1",
|
38
|
+
"commit": "911569f28daa07a66ee59e1d8b7cfaf6f86051e9"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "beachball",
|
42
|
+
"package": "@fluentui/react-switch",
|
43
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyfc5cfdc52420220215.1",
|
44
|
+
"commit": "911569f28daa07a66ee59e1d8b7cfaf6f86051e9"
|
45
|
+
}
|
46
|
+
]
|
47
|
+
}
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"date": "Thu, 10 Feb 2022 08:50:51 GMT",
|
51
|
+
"tag": "@fluentui/react-switch_v9.0.0-rc.1",
|
52
|
+
"version": "9.0.0-rc.1",
|
53
|
+
"comments": {
|
54
|
+
"none": [
|
55
|
+
{
|
56
|
+
"author": "martinhochel@microsoft.com",
|
57
|
+
"package": "@fluentui/react-switch",
|
58
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
59
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"author": "andredias@microsoft.com",
|
63
|
+
"package": "@fluentui/react-switch",
|
64
|
+
"commit": "bf950e951b102fd8be046993dbb604073fc4ea9e",
|
65
|
+
"comment": "Migrate package to use solution tsconfigs"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"author": "martinhochel@microsoft.com",
|
69
|
+
"package": "@fluentui/react-switch",
|
70
|
+
"commit": "28ceaaa83cd92a0389c466f0b15b283e3d9b08e4",
|
71
|
+
"comment": "test(react-switch): update snapshots to match new JSDOM"
|
72
|
+
},
|
16
73
|
{
|
17
74
|
"author": "olfedias@microsoft.com",
|
18
75
|
"package": "@fluentui/react-switch",
|
19
|
-
"commit": "
|
20
|
-
"comment": "
|
76
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
77
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
"prerelease": [
|
81
|
+
{
|
82
|
+
"author": "olfedias@microsoft.com",
|
83
|
+
"package": "@fluentui/react-switch",
|
84
|
+
"commit": "1df1d6e85bd3a6ab2a7b13e96a9aac324bb6d00c",
|
85
|
+
"comment": "Replace make-styles packages with griffel equivalents."
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
89
|
+
"package": "@fluentui/react-switch",
|
90
|
+
"commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
|
91
|
+
"comment": "Updating based on changes to composition types."
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"author": "behowell@microsoft.com",
|
95
|
+
"package": "@fluentui/react-switch",
|
96
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
97
|
+
"comment": "Remove component's shorthandProps array"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"author": "behowell@microsoft.com",
|
101
|
+
"package": "@fluentui/react-switch",
|
102
|
+
"commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
|
103
|
+
"comment": "Refactor component Slot typings"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"author": "mgodbolt@microsoft.com",
|
107
|
+
"package": "@fluentui/react-switch",
|
108
|
+
"commit": "839ec14849e112b85aa321d034739ec421199141",
|
109
|
+
"comment": "remove export of commons types"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"author": "olfedias@microsoft.com",
|
113
|
+
"package": "@fluentui/react-switch",
|
114
|
+
"commit": "029a7f2fe40e5abe21d8992ad9d92bf2b04d0e97",
|
115
|
+
"comment": "update styles to not use CSS shorthands"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
119
|
+
"package": "@fluentui/react-switch",
|
120
|
+
"commit": "b52ebbbf185a2ddc4de814238f9438fd04bfba02",
|
121
|
+
"comment": "Replacing use of functions in makeStyles with direct use of tokens."
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
125
|
+
"package": "@fluentui/react-switch",
|
126
|
+
"commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
|
127
|
+
"comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"author": "behowell@microsoft.com",
|
131
|
+
"package": "@fluentui/react-switch",
|
132
|
+
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
133
|
+
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"author": "lingfangao@hotmail.com",
|
137
|
+
"package": "@fluentui/react-switch",
|
138
|
+
"commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
|
139
|
+
"comment": "Bump Fluent UI dependencies to 9.0.0-rc"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"author": "beachball",
|
143
|
+
"package": "@fluentui/react-switch",
|
144
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.1",
|
145
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"author": "beachball",
|
149
|
+
"package": "@fluentui/react-switch",
|
150
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
|
151
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"author": "beachball",
|
155
|
+
"package": "@fluentui/react-switch",
|
156
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
|
157
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"author": "beachball",
|
161
|
+
"package": "@fluentui/react-switch",
|
162
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
|
163
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
164
|
+
}
|
165
|
+
]
|
166
|
+
}
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"date": "Thu, 25 Nov 2021 08:34:17 GMT",
|
170
|
+
"tag": "@fluentui/react-switch_v9.0.0-beta.5",
|
171
|
+
"version": "9.0.0-beta.5",
|
172
|
+
"comments": {
|
173
|
+
"prerelease": [
|
174
|
+
{
|
175
|
+
"author": "beachball",
|
176
|
+
"package": "@fluentui/react-switch",
|
177
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
178
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
21
179
|
},
|
22
180
|
{
|
23
181
|
"author": "beachball",
|
24
182
|
"package": "@fluentui/react-switch",
|
25
|
-
"comment": "Bump @fluentui/react-
|
26
|
-
"commit": "
|
183
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
|
184
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
27
185
|
},
|
28
186
|
{
|
29
187
|
"author": "beachball",
|
30
188
|
"package": "@fluentui/react-switch",
|
31
|
-
"comment": "Bump @fluentui/react-
|
32
|
-
"commit": "
|
189
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
190
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
33
191
|
},
|
34
192
|
{
|
35
193
|
"author": "beachball",
|
36
194
|
"package": "@fluentui/react-switch",
|
37
|
-
"comment": "Bump @fluentui/react-
|
38
|
-
"commit": "
|
195
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
196
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"author": "beachball",
|
200
|
+
"package": "@fluentui/react-switch",
|
201
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
202
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"author": "beachball",
|
206
|
+
"package": "@fluentui/react-switch",
|
207
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
208
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"author": "beachball",
|
212
|
+
"package": "@fluentui/react-switch",
|
213
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
214
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
215
|
+
}
|
216
|
+
]
|
217
|
+
}
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"date": "Fri, 12 Nov 2021 13:25:33 GMT",
|
221
|
+
"tag": "@fluentui/react-switch_v9.0.0-beta.4",
|
222
|
+
"version": "9.0.0-beta.4",
|
223
|
+
"comments": {
|
224
|
+
"none": [
|
225
|
+
{
|
226
|
+
"author": "olfedias@microsoft.com",
|
227
|
+
"package": "@fluentui/react-switch",
|
228
|
+
"commit": "9e6977945782df1cc997c92804a1b214cc4e4f43",
|
229
|
+
"comment": "do not use other packages in devDependencies"
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"author": "lingfangao@hotmail.com",
|
233
|
+
"package": "@fluentui/react-switch",
|
234
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
235
|
+
"comment": "Remove beta release tag"
|
236
|
+
}
|
237
|
+
],
|
238
|
+
"prerelease": [
|
239
|
+
{
|
240
|
+
"author": "olfedias@microsoft.com",
|
241
|
+
"package": "@fluentui/react-switch",
|
242
|
+
"commit": "9186578324773f95f4d61be3d70e67752159d843",
|
243
|
+
"comment": "export static classes for components"
|
39
244
|
},
|
40
245
|
{
|
41
246
|
"author": "beachball",
|
42
247
|
"package": "@fluentui/react-switch",
|
43
|
-
"comment": "Bump @fluentui/react-
|
44
|
-
"commit": "
|
248
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
249
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
45
250
|
},
|
46
251
|
{
|
47
252
|
"author": "beachball",
|
48
253
|
"package": "@fluentui/react-switch",
|
49
|
-
"comment": "Bump @fluentui/
|
50
|
-
"commit": "
|
254
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.3",
|
255
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
51
256
|
},
|
52
257
|
{
|
53
258
|
"author": "beachball",
|
54
259
|
"package": "@fluentui/react-switch",
|
55
|
-
"comment": "Bump @fluentui/
|
56
|
-
"commit": "
|
260
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
|
261
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
57
262
|
},
|
58
263
|
{
|
59
264
|
"author": "beachball",
|
60
265
|
"package": "@fluentui/react-switch",
|
61
|
-
"comment": "Bump @fluentui/react-
|
62
|
-
"commit": "
|
266
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
267
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
63
268
|
},
|
64
269
|
{
|
65
270
|
"author": "beachball",
|
66
271
|
"package": "@fluentui/react-switch",
|
67
|
-
"comment": "Bump @fluentui/
|
68
|
-
"commit": "
|
272
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
273
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
69
274
|
},
|
70
275
|
{
|
71
276
|
"author": "beachball",
|
72
277
|
"package": "@fluentui/react-switch",
|
73
|
-
"comment": "Bump @fluentui/
|
74
|
-
"commit": "
|
278
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
279
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
75
280
|
},
|
76
281
|
{
|
77
282
|
"author": "beachball",
|
78
283
|
"package": "@fluentui/react-switch",
|
79
|
-
"comment": "Bump @fluentui/react-
|
80
|
-
"commit": "
|
284
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
285
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
81
286
|
}
|
82
287
|
]
|
83
288
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,28 +1,75 @@
|
|
1
1
|
# Change Log - @fluentui/react-switch
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 15 Feb 2022 04:11:42 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlyfc5cfdc52420220215.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v0.0.0-nightlyfc5cfdc52420220215.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-
|
9
|
+
Tue, 15 Feb 2022 04:11:42 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.1..@fluentui/react-switch_v0.0.0-nightlyfc5cfdc52420220215.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/911569f28daa07a66ee59e1d8b7cfaf6f86051e9) by email not defined)
|
15
|
+
- fix visual display of controlled switches ([PR #21704](https://github.com/microsoft/fluentui/pull/21704) by mgodbolt@microsoft.com)
|
16
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightlyfc5cfdc52420220215.1 ([commit](https://github.com/microsoft/fluentui/commit/911569f28daa07a66ee59e1d8b7cfaf6f86051e9) by beachball)
|
17
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlyfc5cfdc52420220215.1 ([commit](https://github.com/microsoft/fluentui/commit/911569f28daa07a66ee59e1d8b7cfaf6f86051e9) by beachball)
|
18
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlyfc5cfdc52420220215.1 ([commit](https://github.com/microsoft/fluentui/commit/911569f28daa07a66ee59e1d8b7cfaf6f86051e9) by beachball)
|
19
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyfc5cfdc52420220215.1 ([commit](https://github.com/microsoft/fluentui/commit/911569f28daa07a66ee59e1d8b7cfaf6f86051e9) by beachball)
|
20
|
+
|
21
|
+
## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.1)
|
22
|
+
|
23
|
+
Thu, 10 Feb 2022 08:50:51 GMT
|
24
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.5..@fluentui/react-switch_v9.0.0-rc.1)
|
25
|
+
|
26
|
+
### Changes
|
27
|
+
|
28
|
+
- Replace make-styles packages with griffel equivalents. ([PR #21424](https://github.com/microsoft/fluentui/pull/21424) by olfedias@microsoft.com)
|
29
|
+
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
30
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
31
|
+
- Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
|
32
|
+
- remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
|
33
|
+
- update styles to not use CSS shorthands ([PR #20844](https://github.com/microsoft/fluentui/pull/20844) by olfedias@microsoft.com)
|
34
|
+
- Replacing use of functions in makeStyles with direct use of tokens. ([PR #21056](https://github.com/microsoft/fluentui/pull/21056) by Humberto.Morimoto@microsoft.com)
|
35
|
+
- Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster. ([PR #21035](https://github.com/microsoft/fluentui/pull/21035) by Humberto.Morimoto@microsoft.com)
|
36
|
+
- 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)
|
37
|
+
- Bump Fluent UI dependencies to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
|
38
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
39
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
40
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
41
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
42
|
+
|
43
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.5)
|
44
|
+
|
45
|
+
Thu, 25 Nov 2021 08:34:17 GMT
|
46
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.4..@fluentui/react-switch_v9.0.0-beta.5)
|
47
|
+
|
48
|
+
### Changes
|
49
|
+
|
50
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
51
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
52
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
53
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
54
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
55
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
56
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
57
|
+
|
58
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.4)
|
59
|
+
|
60
|
+
Fri, 12 Nov 2021 13:25:33 GMT
|
61
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.3..@fluentui/react-switch_v9.0.0-beta.4)
|
11
62
|
|
12
63
|
### Changes
|
13
64
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/b913f5d66978b4e311c72ff6ba9f00d5817ab025) by email not defined)
|
15
65
|
- export static classes for components ([PR #20456](https://github.com/microsoft/fluentui/pull/20456) by olfedias@microsoft.com)
|
16
|
-
- Bump @fluentui/react-make-styles to
|
17
|
-
- Bump @fluentui/react-shared-contexts to
|
18
|
-
- Bump @fluentui/react-tabster to
|
19
|
-
- Bump @fluentui/react-utilities to
|
20
|
-
- Bump @fluentui/babel-make-styles to
|
21
|
-
- Bump @fluentui/jest-serializer-make-styles to
|
22
|
-
- Bump @fluentui/react-conformance-make-styles to
|
23
|
-
- Bump @fluentui/react-label to v0.0.0-nightlyfbae36b19b20211111.1 ([commit](https://github.com/microsoft/fluentui/commit/b913f5d66978b4e311c72ff6ba9f00d5817ab025) by beachball)
|
24
|
-
- Bump @fluentui/react-provider to v0.0.0-nightlyfbae36b19b20211111.1 ([commit](https://github.com/microsoft/fluentui/commit/b913f5d66978b4e311c72ff6ba9f00d5817ab025) by beachball)
|
25
|
-
- Bump @fluentui/react-theme to v0.0.0-nightlyfbae36b19b20211111.1 ([commit](https://github.com/microsoft/fluentui/commit/b913f5d66978b4e311c72ff6ba9f00d5817ab025) by beachball)
|
66
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
67
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
68
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
69
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
70
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
71
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
72
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
26
73
|
|
27
74
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.3)
|
28
75
|
|
package/dist/react-switch.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
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
4
|
import * as React_2 from 'react';
|
5
|
+
import type { Slot } from '@fluentui/react-utilities';
|
6
6
|
|
7
7
|
/**
|
8
8
|
* Render the final JSX of Switch
|
9
9
|
*/
|
10
|
-
export declare const
|
10
|
+
export declare const renderSwitch_unstable: (state: SwitchState) => JSX.Element;
|
11
11
|
|
12
12
|
/**
|
13
13
|
* The Switch control enables users to trigger an option on or off through pressing on the component.
|
@@ -16,7 +16,7 @@ export declare const Switch: ForwardRefComponent<SwitchProps>;
|
|
16
16
|
|
17
17
|
export declare const switchClassName = "fui-Switch";
|
18
18
|
|
19
|
-
|
19
|
+
declare interface SwitchCommons {
|
20
20
|
/**
|
21
21
|
* The starting value for a uncontrolled Switch. If `true` then the Switch will be enabled.
|
22
22
|
* Mutually exclusive with `checked` prop.
|
@@ -43,39 +43,34 @@ export declare interface SwitchCommons {
|
|
43
43
|
}) => void;
|
44
44
|
}
|
45
45
|
|
46
|
-
export declare interface SwitchProps extends Omit<ComponentProps<SwitchSlots
|
46
|
+
export declare interface SwitchProps extends Omit<ComponentProps<Partial<SwitchSlots>>, 'onChange'>, SwitchCommons {
|
47
47
|
}
|
48
48
|
|
49
|
-
/**
|
50
|
-
* Array of all shorthand properties listed in SwitchSlots
|
51
|
-
*/
|
52
|
-
export declare const switchShorthandProps: (keyof SwitchSlots)[];
|
53
|
-
|
54
49
|
export declare type SwitchSlots = {
|
55
50
|
/**
|
56
51
|
* The root of the Switch.
|
57
52
|
*/
|
58
|
-
root:
|
53
|
+
root: Slot<'div'>;
|
59
54
|
/**
|
60
55
|
* The bar indicating the status of the Switch.
|
61
56
|
*/
|
62
|
-
track:
|
57
|
+
track: NonNullable<Slot<'div'>>;
|
63
58
|
/**
|
64
59
|
* The wrapper around the thumb. It is used as the active area for the thumb to position itself.
|
65
60
|
*/
|
66
|
-
thumbWrapper:
|
61
|
+
thumbWrapper: NonNullable<Slot<'div'>>;
|
67
62
|
/**
|
68
63
|
* The circular icon indicating the status of the Switch.
|
69
64
|
*/
|
70
|
-
thumb:
|
65
|
+
thumb: NonNullable<Slot<'div'>>;
|
71
66
|
/**
|
72
67
|
* The hidden input that handles the Switch's internal functionality.
|
73
68
|
*/
|
74
|
-
input:
|
69
|
+
input: NonNullable<Slot<'input'>>;
|
75
70
|
/**
|
76
71
|
* The area in which the Switch's rail allows for the thumb to be dragged.
|
77
72
|
*/
|
78
|
-
activeRail:
|
73
|
+
activeRail: NonNullable<Slot<'div'>>;
|
79
74
|
};
|
80
75
|
|
81
76
|
export declare interface SwitchState extends ComponentState<SwitchSlots>, SwitchCommons {
|
@@ -84,11 +79,11 @@ export declare interface SwitchState extends ComponentState<SwitchSlots>, Switch
|
|
84
79
|
/**
|
85
80
|
* Given user props, returns state and render function for a Switch.
|
86
81
|
*/
|
87
|
-
export declare const
|
82
|
+
export declare const useSwitch_unstable: (props: SwitchProps, ref: React_2.Ref<HTMLElement>) => SwitchState;
|
88
83
|
|
89
84
|
/**
|
90
85
|
* Apply styling to the Switch slots based on the state
|
91
86
|
*/
|
92
|
-
export declare const
|
87
|
+
export declare const useSwitchStyles_unstable: (state: SwitchState) => SwitchState;
|
93
88
|
|
94
89
|
export { }
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { useSwitch_unstable } from './useSwitch';
|
3
|
+
import { renderSwitch_unstable } from './renderSwitch';
|
4
|
+
import { useSwitchStyles_unstable } from './useSwitchStyles';
|
5
5
|
/**
|
6
6
|
* The Switch control enables users to trigger an option on or off through pressing on the component.
|
7
7
|
*/
|
8
8
|
|
9
9
|
export const Switch = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
-
const state =
|
11
|
-
|
12
|
-
return
|
10
|
+
const state = useSwitch_unstable(props, ref);
|
11
|
+
useSwitchStyles_unstable(state);
|
12
|
+
return renderSwitch_unstable(state);
|
13
13
|
});
|
14
14
|
Switch.displayName = 'Switch';
|
15
15
|
//# sourceMappingURL=Switch.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,kBAAT,QAAmC,aAAnC;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AAIA;;AAEG;;AACH,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,KAAK,GAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAAhC;AAEA,EAAA,wBAAwB,CAAC,KAAD,CAAxB;AAEA,SAAO,qBAAqB,CAAC,KAAD,CAA5B;AACD,CANuD,CAAjD;AAQP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
|
@@ -1,32 +1,32 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import type { ComponentProps, ComponentState,
|
2
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
3
3
|
export declare type SwitchSlots = {
|
4
4
|
/**
|
5
5
|
* The root of the Switch.
|
6
6
|
*/
|
7
|
-
root:
|
7
|
+
root: Slot<'div'>;
|
8
8
|
/**
|
9
9
|
* The bar indicating the status of the Switch.
|
10
10
|
*/
|
11
|
-
track:
|
11
|
+
track: NonNullable<Slot<'div'>>;
|
12
12
|
/**
|
13
13
|
* The wrapper around the thumb. It is used as the active area for the thumb to position itself.
|
14
14
|
*/
|
15
|
-
thumbWrapper:
|
15
|
+
thumbWrapper: NonNullable<Slot<'div'>>;
|
16
16
|
/**
|
17
17
|
* The circular icon indicating the status of the Switch.
|
18
18
|
*/
|
19
|
-
thumb:
|
19
|
+
thumb: NonNullable<Slot<'div'>>;
|
20
20
|
/**
|
21
21
|
* The hidden input that handles the Switch's internal functionality.
|
22
22
|
*/
|
23
|
-
input:
|
23
|
+
input: NonNullable<Slot<'input'>>;
|
24
24
|
/**
|
25
25
|
* The area in which the Switch's rail allows for the thumb to be dragged.
|
26
26
|
*/
|
27
|
-
activeRail:
|
27
|
+
activeRail: NonNullable<Slot<'div'>>;
|
28
28
|
};
|
29
|
-
|
29
|
+
interface SwitchCommons {
|
30
30
|
/**
|
31
31
|
* The starting value for a uncontrolled Switch. If `true` then the Switch will be enabled.
|
32
32
|
* Mutually exclusive with `checked` prop.
|
@@ -52,7 +52,8 @@ export interface SwitchCommons {
|
|
52
52
|
checked: boolean;
|
53
53
|
}) => void;
|
54
54
|
}
|
55
|
-
export interface SwitchProps extends Omit<ComponentProps<SwitchSlots
|
55
|
+
export interface SwitchProps extends Omit<ComponentProps<Partial<SwitchSlots>>, 'onChange'>, SwitchCommons {
|
56
56
|
}
|
57
57
|
export interface SwitchState extends ComponentState<SwitchSlots>, SwitchCommons {
|
58
58
|
}
|
59
|
+
export {};
|
@@ -1,15 +1,20 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { getSlots } from '@fluentui/react-utilities';
|
3
|
-
import { switchShorthandProps } from './useSwitch';
|
4
3
|
/**
|
5
4
|
* Render the final JSX of Switch
|
6
5
|
*/
|
7
6
|
|
8
|
-
export const
|
7
|
+
export const renderSwitch_unstable = state => {
|
9
8
|
const {
|
10
9
|
slots,
|
11
10
|
slotProps
|
12
|
-
} = getSlots(state
|
13
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
11
|
+
} = getSlots(state);
|
12
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
13
|
+
}, /*#__PURE__*/React.createElement(slots.track, { ...slotProps.track
|
14
|
+
}), /*#__PURE__*/React.createElement(slots.thumbWrapper, { ...slotProps.thumbWrapper
|
15
|
+
}, /*#__PURE__*/React.createElement(slots.thumb, { ...slotProps.thumb
|
16
|
+
})), /*#__PURE__*/React.createElement(slots.input, { ...slotProps.input
|
17
|
+
}), /*#__PURE__*/React.createElement(slots.activeRail, { ...slotProps.activeRail
|
18
|
+
}));
|
14
19
|
};
|
15
20
|
//# sourceMappingURL=renderSwitch.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Switch/renderSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;
|
1
|
+
{"version":3,"sources":["../../../src/components/Switch/renderSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAuB;AAC1D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;AAAf,GAAZ,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,YAAP,EAAmB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAnB,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;AAAf,GAAZ,CADF,CAFF,eAKE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,KAAP,EAAY,EAAA,GAAK,SAAS,CAAC;AAAf,GAAZ,CALF,eAME,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,UAAP,EAAiB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAjB,CANF,CADF;AAUD,CAbM","sourceRoot":""}
|
@@ -1,10 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import type { SwitchProps,
|
3
|
-
/**
|
4
|
-
* Array of all shorthand properties listed in SwitchSlots
|
5
|
-
*/
|
6
|
-
export declare const switchShorthandProps: (keyof SwitchSlots)[];
|
2
|
+
import type { SwitchProps, SwitchState } from './Switch.types';
|
7
3
|
/**
|
8
4
|
* Given user props, returns state and render function for a Switch.
|
9
5
|
*/
|
10
|
-
export declare const
|
6
|
+
export declare const useSwitch_unstable: (props: SwitchProps, ref: React.Ref<HTMLElement>) => SwitchState;
|