@fluentui/react-switch 9.0.0-rc.9 → 9.0.2
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 +387 -1
- package/CHANGELOG.md +117 -2
- package/MIGRATION.md +1 -5
- package/README.md +20 -14
- package/Spec.md +2 -2
- package/dist/index.d.ts +19 -18
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/components/Switch/Switch.js.map +1 -1
- package/lib/components/Switch/Switch.types.js.map +1 -1
- package/lib/components/Switch/renderSwitch.js.map +1 -1
- package/lib/components/Switch/useSwitch.js.map +1 -1
- package/lib/components/Switch/useSwitchStyles.js +64 -61
- package/lib/components/Switch/useSwitchStyles.js.map +1 -1
- package/lib-commonjs/components/Switch/Switch.js.map +1 -1
- package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitchStyles.js +64 -61
- package/lib-commonjs/components/Switch/useSwitchStyles.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +10 -12
- package/lib/Switch.d.ts +0 -1
- package/lib/components/Switch/Switch.d.ts +0 -6
- package/lib/components/Switch/Switch.types.d.ts +0 -65
- package/lib/components/Switch/index.d.ts +0 -5
- package/lib/components/Switch/renderSwitch.d.ts +0 -5
- package/lib/components/Switch/useSwitch.d.ts +0 -12
- package/lib/components/Switch/useSwitchStyles.d.ts +0 -11
- package/lib/index.d.ts +0 -2
- package/lib-commonjs/Switch.d.ts +0 -1
- package/lib-commonjs/components/Switch/Switch.d.ts +0 -6
- package/lib-commonjs/components/Switch/Switch.types.d.ts +0 -65
- package/lib-commonjs/components/Switch/index.d.ts +0 -5
- package/lib-commonjs/components/Switch/renderSwitch.d.ts +0 -5
- package/lib-commonjs/components/Switch/useSwitch.d.ts +0 -12
- package/lib-commonjs/components/Switch/useSwitchStyles.d.ts +0 -11
- package/lib-commonjs/index.d.ts +0 -2
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,393 @@
|
|
2
2
|
"name": "@fluentui/react-switch",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "Thu,
|
5
|
+
"date": "Thu, 14 Jul 2022 17:03:33 GMT",
|
6
|
+
"tag": "@fluentui/react-switch_v9.0.2",
|
7
|
+
"version": "9.0.2",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "ololubek@microsoft.com",
|
12
|
+
"package": "@fluentui/react-switch",
|
13
|
+
"commit": "63ab03fa7a9b3d02204147ea5356b8f78751df42",
|
14
|
+
"comment": "chore: Update @fluentui/react-icons dependency to v2.0.175"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "beachball",
|
18
|
+
"package": "@fluentui/react-switch",
|
19
|
+
"comment": "Bump @fluentui/react-label to v9.0.2",
|
20
|
+
"commit": "fd9308f35ec9b2c7f7fdbfce62f9a94ca00d6536"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-switch",
|
25
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.2",
|
26
|
+
"commit": "fd9308f35ec9b2c7f7fdbfce62f9a94ca00d6536"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-switch",
|
31
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.1-0",
|
32
|
+
"commit": "fd9308f35ec9b2c7f7fdbfce62f9a94ca00d6536"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-switch",
|
37
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.11",
|
38
|
+
"commit": "fd9308f35ec9b2c7f7fdbfce62f9a94ca00d6536"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"none": [
|
42
|
+
{
|
43
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
44
|
+
"package": "@fluentui/react-switch",
|
45
|
+
"commit": "422636fffd66758c1a6dd617063582d902b61927",
|
46
|
+
"comment": "docs: Replacing https://aka.ms/fluentui-storybook with https://react.fluentui.dev/ to point to the official documentation site."
|
47
|
+
}
|
48
|
+
]
|
49
|
+
}
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"date": "Tue, 28 Jun 2022 17:39:52 GMT",
|
53
|
+
"tag": "@fluentui/react-switch_v9.0.1",
|
54
|
+
"version": "9.0.1",
|
55
|
+
"comments": {
|
56
|
+
"patch": [
|
57
|
+
{
|
58
|
+
"author": "lingfangao@hotmail.com",
|
59
|
+
"package": "@fluentui/react-switch",
|
60
|
+
"commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b",
|
61
|
+
"comment": "fix: Use caret dependency range for Griffel"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"author": "beachball",
|
65
|
+
"package": "@fluentui/react-switch",
|
66
|
+
"comment": "Bump @fluentui/react-label to v9.0.1",
|
67
|
+
"commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"author": "beachball",
|
71
|
+
"package": "@fluentui/react-switch",
|
72
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.1",
|
73
|
+
"commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"author": "beachball",
|
77
|
+
"package": "@fluentui/react-switch",
|
78
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.10",
|
79
|
+
"commit": "3deda1fbbfb6ac2b1ad150d4dc6343f1f7fda85b"
|
80
|
+
}
|
81
|
+
]
|
82
|
+
}
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"date": "Tue, 28 Jun 2022 15:14:04 GMT",
|
86
|
+
"tag": "@fluentui/react-switch_v9.0.0",
|
87
|
+
"version": "9.0.0",
|
88
|
+
"comments": {
|
89
|
+
"prerelease": [
|
90
|
+
{
|
91
|
+
"author": "lingfangao@hotmail.com",
|
92
|
+
"package": "@fluentui/react-switch",
|
93
|
+
"commit": "675acea49c97f10837ddee9b8c4350ca27750125",
|
94
|
+
"comment": "Bump Griffel dependencies"
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
98
|
+
"package": "@fluentui/react-switch",
|
99
|
+
"commit": "fd4c88b3915ed3e26d4d39bcb24390343b8299ac",
|
100
|
+
"comment": "fix: Removing user-select: 'none' from label."
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
104
|
+
"package": "@fluentui/react-switch",
|
105
|
+
"commit": "79a3a86436a5194f83cdaf561cd04e24a9a07d78",
|
106
|
+
"comment": "README update."
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"author": "olfedias@microsoft.com",
|
110
|
+
"package": "@fluentui/react-switch",
|
111
|
+
"commit": "82bd30dd41ad58df1f325e9b721200ed15d674a2",
|
112
|
+
"comment": "chore: Update @fluentui/react-icons to latest version"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
116
|
+
"package": "@fluentui/react-switch",
|
117
|
+
"commit": "5e326ed2e7068e8eb75df4a54495c27206ec831b",
|
118
|
+
"comment": "fix: Making thumb be vertically centered in Switch."
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
122
|
+
"package": "@fluentui/react-switch",
|
123
|
+
"commit": "5f06f19e57ffdc265f10ef26db086bf48dc8f610",
|
124
|
+
"comment": "README, spec and migration guide cleanup."
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"author": "lingfangao@hotmail.com",
|
128
|
+
"package": "@fluentui/react-switch",
|
129
|
+
"commit": "e0aabd850b15adf9c151ebd4e332f7c50ad6cfdf",
|
130
|
+
"comment": "Update 9.0.0-rc dependencies to use caret range"
|
131
|
+
}
|
132
|
+
],
|
133
|
+
"patch": [
|
134
|
+
{
|
135
|
+
"author": "lingfangao@hotmail.com",
|
136
|
+
"package": "@fluentui/react-switch",
|
137
|
+
"commit": "c7b1348bdad7aa883c29bfbc96ef2a32e6ebc7dd",
|
138
|
+
"comment": "feat: Initial 9.0.0 release"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"author": "beachball",
|
142
|
+
"package": "@fluentui/react-switch",
|
143
|
+
"comment": "Bump @fluentui/react-label to v9.0.0",
|
144
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"author": "beachball",
|
148
|
+
"package": "@fluentui/react-switch",
|
149
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0",
|
150
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"author": "beachball",
|
154
|
+
"package": "@fluentui/react-switch",
|
155
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0",
|
156
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"author": "beachball",
|
160
|
+
"package": "@fluentui/react-switch",
|
161
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0",
|
162
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"author": "beachball",
|
166
|
+
"package": "@fluentui/react-switch",
|
167
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9",
|
168
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
169
|
+
}
|
170
|
+
],
|
171
|
+
"none": [
|
172
|
+
{
|
173
|
+
"author": "mgodbolt@microsoft.com",
|
174
|
+
"package": "@fluentui/react-switch",
|
175
|
+
"commit": "ef7385bdc0dc640657b18bd2c51a5f3ef91113a5",
|
176
|
+
"comment": "chore: Convert switch to index based stories"
|
177
|
+
}
|
178
|
+
]
|
179
|
+
}
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"date": "Thu, 23 Jun 2022 14:25:31 GMT",
|
183
|
+
"tag": "@fluentui/react-switch_v9.0.0-rc.14",
|
184
|
+
"version": "9.0.0-rc.14",
|
185
|
+
"comments": {
|
186
|
+
"prerelease": [
|
187
|
+
{
|
188
|
+
"author": "beachball",
|
189
|
+
"package": "@fluentui/react-switch",
|
190
|
+
"comment": "Bump @fluentui/react-label to v9.0.0-rc.6",
|
191
|
+
"commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"author": "beachball",
|
195
|
+
"package": "@fluentui/react-switch",
|
196
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.14",
|
197
|
+
"commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"author": "beachball",
|
201
|
+
"package": "@fluentui/react-switch",
|
202
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.10",
|
203
|
+
"commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
|
204
|
+
}
|
205
|
+
]
|
206
|
+
}
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"date": "Tue, 31 May 2022 21:28:47 GMT",
|
210
|
+
"tag": "@fluentui/react-switch_v9.0.0-rc.13",
|
211
|
+
"version": "9.0.0-rc.13",
|
212
|
+
"comments": {
|
213
|
+
"prerelease": [
|
214
|
+
{
|
215
|
+
"author": "olfedias@microsoft.com",
|
216
|
+
"package": "@fluentui/react-switch",
|
217
|
+
"commit": "0a5e9fa77a72eecafdd07034ccdc0b95fd49877c",
|
218
|
+
"comment": "chore: Update Griffel to latest version"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"author": "beachball",
|
222
|
+
"package": "@fluentui/react-switch",
|
223
|
+
"comment": "Bump @fluentui/react-label to v9.0.0-rc.5",
|
224
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"author": "beachball",
|
228
|
+
"package": "@fluentui/react-switch",
|
229
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.13",
|
230
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"author": "beachball",
|
234
|
+
"package": "@fluentui/react-switch",
|
235
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.10",
|
236
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"author": "beachball",
|
240
|
+
"package": "@fluentui/react-switch",
|
241
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8",
|
242
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
243
|
+
}
|
244
|
+
]
|
245
|
+
}
|
246
|
+
},
|
247
|
+
{
|
248
|
+
"date": "Thu, 26 May 2022 21:01:30 GMT",
|
249
|
+
"tag": "@fluentui/react-switch_v9.0.0-rc.12",
|
250
|
+
"version": "9.0.0-rc.12",
|
251
|
+
"comments": {
|
252
|
+
"none": [
|
253
|
+
{
|
254
|
+
"author": "olfedias@microsoft.com",
|
255
|
+
"package": "@fluentui/react-switch",
|
256
|
+
"commit": "8735876a860005ac5bde07c20da265b23341682a",
|
257
|
+
"comment": "cleanup stories & docs"
|
258
|
+
}
|
259
|
+
],
|
260
|
+
"prerelease": [
|
261
|
+
{
|
262
|
+
"author": "beachball",
|
263
|
+
"package": "@fluentui/react-switch",
|
264
|
+
"comment": "Bump @fluentui/react-label to v9.0.0-rc.4",
|
265
|
+
"commit": "3cf55ce998048554bf6a550de44403843ea8ede0"
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"author": "beachball",
|
269
|
+
"package": "@fluentui/react-switch",
|
270
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.12",
|
271
|
+
"commit": "3cf55ce998048554bf6a550de44403843ea8ede0"
|
272
|
+
}
|
273
|
+
]
|
274
|
+
}
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"date": "Mon, 23 May 2022 18:56:51 GMT",
|
278
|
+
"tag": "@fluentui/react-switch_v9.0.0-rc.11",
|
279
|
+
"version": "9.0.0-rc.11",
|
280
|
+
"comments": {
|
281
|
+
"prerelease": [
|
282
|
+
{
|
283
|
+
"author": "beachball",
|
284
|
+
"package": "@fluentui/react-switch",
|
285
|
+
"comment": "Bump @fluentui/react-label to v9.0.0-rc.3",
|
286
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
287
|
+
},
|
288
|
+
{
|
289
|
+
"author": "beachball",
|
290
|
+
"package": "@fluentui/react-switch",
|
291
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.11",
|
292
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"author": "beachball",
|
296
|
+
"package": "@fluentui/react-switch",
|
297
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
|
298
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
299
|
+
},
|
300
|
+
{
|
301
|
+
"author": "beachball",
|
302
|
+
"package": "@fluentui/react-switch",
|
303
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7",
|
304
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
305
|
+
}
|
306
|
+
]
|
307
|
+
}
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"date": "Mon, 23 May 2022 12:13:46 GMT",
|
311
|
+
"tag": "@fluentui/react-switch_v9.0.0-rc.10",
|
312
|
+
"version": "9.0.0-rc.10",
|
313
|
+
"comments": {
|
314
|
+
"prerelease": [
|
315
|
+
{
|
316
|
+
"author": "olfedias@microsoft.com",
|
317
|
+
"package": "@fluentui/react-switch",
|
318
|
+
"commit": "f120fe9160ad7311a87af0cfacd8d2fb26275e34",
|
319
|
+
"comment": "chore: Update Griffel to latest version"
|
320
|
+
},
|
321
|
+
{
|
322
|
+
"author": "behowell@microsoft.com",
|
323
|
+
"package": "@fluentui/react-switch",
|
324
|
+
"commit": "c0b27cce0d29122e4488ff431689b966076a728b",
|
325
|
+
"comment": "Replace hardcoded padding with spacing tokens"
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"author": "behowell@microsoft.com",
|
329
|
+
"package": "@fluentui/react-switch",
|
330
|
+
"commit": "45ec789399b65b76b80cc8023d977de7d2b8b579",
|
331
|
+
"comment": "Refactor styles to remove usage of flex gap"
|
332
|
+
},
|
333
|
+
{
|
334
|
+
"author": "esteban.230@hotmail.com",
|
335
|
+
"package": "@fluentui/react-switch",
|
336
|
+
"commit": "0fac2d7a6f35c5fcebaf30da68b9604410fe0eb9",
|
337
|
+
"comment": "Updated react-label package version to RC."
|
338
|
+
},
|
339
|
+
{
|
340
|
+
"author": "martinhochel@microsoft.com",
|
341
|
+
"package": "@fluentui/react-switch",
|
342
|
+
"commit": "eb1084fd607c0d1086f9d465168be5822daa5e40",
|
343
|
+
"comment": "feat: ship rolluped only dts"
|
344
|
+
},
|
345
|
+
{
|
346
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
347
|
+
"package": "@fluentui/react-switch",
|
348
|
+
"commit": "ec6c1a33b3c4cec9422d07bcffc48b85928c22d2",
|
349
|
+
"comment": "Removing SwitchCommons type in @fluentui/react-switch."
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"author": "olfedias@microsoft.com",
|
353
|
+
"package": "@fluentui/react-switch",
|
354
|
+
"commit": "60804cec07a495b8a5d1fc66338bf0443b212144",
|
355
|
+
"comment": "chore: Update Griffel to latest version"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"author": "beachball",
|
359
|
+
"package": "@fluentui/react-switch",
|
360
|
+
"comment": "Bump @fluentui/react-label to v9.0.0-rc.2",
|
361
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"author": "beachball",
|
365
|
+
"package": "@fluentui/react-switch",
|
366
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.10",
|
367
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"author": "beachball",
|
371
|
+
"package": "@fluentui/react-switch",
|
372
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.8",
|
373
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"author": "beachball",
|
377
|
+
"package": "@fluentui/react-switch",
|
378
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.9",
|
379
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
380
|
+
},
|
381
|
+
{
|
382
|
+
"author": "beachball",
|
383
|
+
"package": "@fluentui/react-switch",
|
384
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6",
|
385
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
386
|
+
}
|
387
|
+
]
|
388
|
+
}
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"date": "Thu, 05 May 2022 18:26:26 GMT",
|
6
392
|
"tag": "@fluentui/react-switch_v9.0.0-rc.9",
|
7
393
|
"version": "9.0.0-rc.9",
|
8
394
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,127 @@
|
|
1
1
|
# Change Log - @fluentui/react-switch
|
2
2
|
|
3
|
-
This log was last generated on Thu,
|
3
|
+
This log was last generated on Thu, 14 Jul 2022 17:03:33 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.2)
|
8
|
+
|
9
|
+
Thu, 14 Jul 2022 17:03:33 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.1..@fluentui/react-switch_v9.0.2)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- chore: Update @fluentui/react-icons dependency to v2.0.175 ([PR #23812](https://github.com/microsoft/fluentui/pull/23812) by ololubek@microsoft.com)
|
15
|
+
- Bump @fluentui/react-label to v9.0.2 ([PR #23909](https://github.com/microsoft/fluentui/pull/23909) by beachball)
|
16
|
+
- Bump @fluentui/react-tabster to v9.0.2 ([PR #23909](https://github.com/microsoft/fluentui/pull/23909) by beachball)
|
17
|
+
- Bump @fluentui/react-utilities to v9.0.1-0 ([PR #23909](https://github.com/microsoft/fluentui/pull/23909) by beachball)
|
18
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.11 ([PR #23909](https://github.com/microsoft/fluentui/pull/23909) by beachball)
|
19
|
+
|
20
|
+
## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.1)
|
21
|
+
|
22
|
+
Tue, 28 Jun 2022 17:39:52 GMT
|
23
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0..@fluentui/react-switch_v9.0.1)
|
24
|
+
|
25
|
+
### Patches
|
26
|
+
|
27
|
+
- fix: Use caret dependency range for Griffel ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by lingfangao@hotmail.com)
|
28
|
+
- Bump @fluentui/react-label to v9.0.1 ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by beachball)
|
29
|
+
- Bump @fluentui/react-tabster to v9.0.1 ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by beachball)
|
30
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.10 ([PR #23754](https://github.com/microsoft/fluentui/pull/23754) by beachball)
|
31
|
+
|
32
|
+
## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0)
|
33
|
+
|
34
|
+
Tue, 28 Jun 2022 15:14:04 GMT
|
35
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.14..@fluentui/react-switch_v9.0.0)
|
36
|
+
|
37
|
+
### Patches
|
38
|
+
|
39
|
+
- feat: Initial 9.0.0 release ([PR #23733](https://github.com/microsoft/fluentui/pull/23733) by lingfangao@hotmail.com)
|
40
|
+
- Bump @fluentui/react-label to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
41
|
+
- Bump @fluentui/react-tabster to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
42
|
+
- Bump @fluentui/react-theme to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
43
|
+
- Bump @fluentui/react-utilities to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
44
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
45
|
+
|
46
|
+
### Changes
|
47
|
+
|
48
|
+
- Bump Griffel dependencies ([PR #23688](https://github.com/microsoft/fluentui/pull/23688) by lingfangao@hotmail.com)
|
49
|
+
- fix: Removing user-select: 'none' from label. ([PR #23590](https://github.com/microsoft/fluentui/pull/23590) by Humberto.Morimoto@microsoft.com)
|
50
|
+
- README update. ([PR #23439](https://github.com/microsoft/fluentui/pull/23439) by Humberto.Morimoto@microsoft.com)
|
51
|
+
- chore: Update @fluentui/react-icons to latest version ([PR #23459](https://github.com/microsoft/fluentui/pull/23459) by olfedias@microsoft.com)
|
52
|
+
- fix: Making thumb be vertically centered in Switch. ([PR #23712](https://github.com/microsoft/fluentui/pull/23712) by Humberto.Morimoto@microsoft.com)
|
53
|
+
- README, spec and migration guide cleanup. ([PR #23396](https://github.com/microsoft/fluentui/pull/23396) by Humberto.Morimoto@microsoft.com)
|
54
|
+
- Update 9.0.0-rc dependencies to use caret range ([PR #23732](https://github.com/microsoft/fluentui/pull/23732) by lingfangao@hotmail.com)
|
55
|
+
|
56
|
+
## [9.0.0-rc.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.14)
|
57
|
+
|
58
|
+
Thu, 23 Jun 2022 14:25:31 GMT
|
59
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.13..@fluentui/react-switch_v9.0.0-rc.14)
|
60
|
+
|
61
|
+
### Changes
|
62
|
+
|
63
|
+
- Bump @fluentui/react-label to v9.0.0-rc.6 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
|
64
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.14 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
|
65
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.10 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
|
66
|
+
|
67
|
+
## [9.0.0-rc.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.13)
|
68
|
+
|
69
|
+
Tue, 31 May 2022 21:28:47 GMT
|
70
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.12..@fluentui/react-switch_v9.0.0-rc.13)
|
71
|
+
|
72
|
+
### Changes
|
73
|
+
|
74
|
+
- chore: Update Griffel to latest version ([PR #23275](https://github.com/microsoft/fluentui/pull/23275) by olfedias@microsoft.com)
|
75
|
+
- Bump @fluentui/react-label to v9.0.0-rc.5 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
76
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.13 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
77
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
78
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
79
|
+
|
80
|
+
## [9.0.0-rc.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.12)
|
81
|
+
|
82
|
+
Thu, 26 May 2022 21:01:30 GMT
|
83
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.11..@fluentui/react-switch_v9.0.0-rc.12)
|
84
|
+
|
85
|
+
### Changes
|
86
|
+
|
87
|
+
- Bump @fluentui/react-label to v9.0.0-rc.4 ([PR #23267](https://github.com/microsoft/fluentui/pull/23267) by beachball)
|
88
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.12 ([PR #23267](https://github.com/microsoft/fluentui/pull/23267) by beachball)
|
89
|
+
|
90
|
+
## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.11)
|
91
|
+
|
92
|
+
Mon, 23 May 2022 18:56:51 GMT
|
93
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.10..@fluentui/react-switch_v9.0.0-rc.11)
|
94
|
+
|
95
|
+
### Changes
|
96
|
+
|
97
|
+
- Bump @fluentui/react-label to v9.0.0-rc.3 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
98
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.11 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
99
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
100
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
101
|
+
|
102
|
+
## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.10)
|
103
|
+
|
104
|
+
Mon, 23 May 2022 12:13:46 GMT
|
105
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.9..@fluentui/react-switch_v9.0.0-rc.10)
|
106
|
+
|
107
|
+
### Changes
|
108
|
+
|
109
|
+
- chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
|
110
|
+
- Replace hardcoded padding with spacing tokens ([PR #22982](https://github.com/microsoft/fluentui/pull/22982) by behowell@microsoft.com)
|
111
|
+
- Refactor styles to remove usage of flex gap ([PR #22976](https://github.com/microsoft/fluentui/pull/22976) by behowell@microsoft.com)
|
112
|
+
- Updated react-label package version to RC. ([PR #22865](https://github.com/microsoft/fluentui/pull/22865) by esteban.230@hotmail.com)
|
113
|
+
- feat: ship rolluped only dts ([PR #22874](https://github.com/microsoft/fluentui/pull/22874) by martinhochel@microsoft.com)
|
114
|
+
- Removing SwitchCommons type in @fluentui/react-switch. ([PR #22943](https://github.com/microsoft/fluentui/pull/22943) by Humberto.Morimoto@microsoft.com)
|
115
|
+
- chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
|
116
|
+
- Bump @fluentui/react-label to v9.0.0-rc.2 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
117
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.10 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
118
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
119
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
120
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
121
|
+
|
7
122
|
## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.9)
|
8
123
|
|
9
|
-
Thu, 05 May 2022 18:
|
124
|
+
Thu, 05 May 2022 18:26:26 GMT
|
10
125
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.8..@fluentui/react-switch_v9.0.0-rc.9)
|
11
126
|
|
12
127
|
### Changes
|
package/MIGRATION.md
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
# Switch Migration
|
2
2
|
|
3
|
-
## STATUS: WIP 🚧
|
4
|
-
|
5
|
-
This Migration guide is a work in progress and is not yet ready for use.
|
6
|
-
|
7
3
|
## Migration from v8's Toggle
|
8
4
|
|
9
5
|
### Props that remain as is
|
@@ -68,7 +64,7 @@ This Migration guide is a work in progress and is not yet ready for use.
|
|
68
64
|
|
69
65
|
- `design`
|
70
66
|
|
71
|
-
##
|
67
|
+
## Property mapping
|
72
68
|
|
73
69
|
| v8 `Toggle` | v0 `Checkbox` | v9 `Switch` |
|
74
70
|
| ---------------- | --------------- | ---------------- |
|
package/README.md
CHANGED
@@ -1,23 +1,13 @@
|
|
1
1
|
# @fluentui/react-switch
|
2
2
|
|
3
|
-
**
|
3
|
+
**Switch components for [Fluent UI React](https://react.fluentui.dev/)**
|
4
4
|
|
5
|
-
The `Switch` control
|
6
|
-
|
7
|
-
## STATUS: WIP 🚧
|
8
|
-
|
9
|
-
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.
|
5
|
+
The `Switch` control enables users to trigger an option on or off through interacting with the component.
|
10
6
|
|
11
7
|
## Usage
|
12
8
|
|
13
9
|
To import Switch:
|
14
10
|
|
15
|
-
```js
|
16
|
-
import { Switch } from '@fluentui/react-switch';
|
17
|
-
```
|
18
|
-
|
19
|
-
Once the Switch component graduates to a production release, the component will be available at:
|
20
|
-
|
21
11
|
```js
|
22
12
|
import { Switch } from '@fluentui/react-components';
|
23
13
|
```
|
@@ -26,7 +16,23 @@ import { Switch } from '@fluentui/react-components';
|
|
26
16
|
|
27
17
|
```jsx
|
28
18
|
<Switch />
|
29
|
-
<Switch defaultChecked
|
30
|
-
<Switch checked
|
19
|
+
<Switch defaultChecked required />
|
20
|
+
<Switch checked onChange={onChange} />
|
31
21
|
<Switch disabled />
|
22
|
+
<Switch label="Enable dark mode" labelPosition="after" />
|
32
23
|
```
|
24
|
+
|
25
|
+
See [Fluent UI Storybook](https://react.fluentui.dev/) for more detailed usage examples.
|
26
|
+
|
27
|
+
Alternatively, run Storybook locally with:
|
28
|
+
|
29
|
+
1. `yarn start`
|
30
|
+
2. Select `react-switch` from the list.
|
31
|
+
|
32
|
+
### Specification
|
33
|
+
|
34
|
+
See [SPEC.md](./Spec.md).
|
35
|
+
|
36
|
+
### Migration Guide
|
37
|
+
|
38
|
+
If you're upgrading to Fluent UI v9 see [MIGRATION.md](./MIGRATION.md) for guidance on updating to the latest Switch implementation.
|
package/Spec.md
CHANGED
@@ -109,7 +109,7 @@ https://github.com/microsoft/fluentui/blob/master/packages/react-checkbox/src/co
|
|
109
109
|
|
110
110
|
### Switch Props
|
111
111
|
|
112
|
-
See [Switch.types.ts](
|
112
|
+
See API at [Switch.types.ts](./src/components/Switch/Switch.types.ts).
|
113
113
|
|
114
114
|
## Structure
|
115
115
|
|
@@ -165,7 +165,7 @@ _With label after the track thumb indicator:_
|
|
165
165
|
|
166
166
|
## Migration
|
167
167
|
|
168
|
-
See [MIGRATION.md](MIGRATION.md).
|
168
|
+
See [MIGRATION.md](./MIGRATION.md).
|
169
169
|
|
170
170
|
## Behaviors
|
171
171
|
|