@fluentui/react-switch 9.0.0-rc.1 → 9.0.0-rc.10

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.
Files changed (56) hide show
  1. package/CHANGELOG.json +395 -1
  2. package/CHANGELOG.md +145 -31
  3. package/MIGRATION.md +89 -22
  4. package/Spec.md +179 -84
  5. package/dist/index.d.ts +107 -0
  6. package/{lib → dist}/tsdoc-metadata.json +0 -0
  7. package/lib/Switch.js.map +1 -1
  8. package/lib/components/Switch/Switch.js +1 -1
  9. package/lib/components/Switch/Switch.js.map +1 -1
  10. package/lib/components/Switch/Switch.types.js.map +1 -1
  11. package/lib/components/Switch/index.js.map +1 -1
  12. package/lib/components/Switch/renderSwitch.js +8 -6
  13. package/lib/components/Switch/renderSwitch.js.map +1 -1
  14. package/lib/components/Switch/useSwitch.js +63 -43
  15. package/lib/components/Switch/useSwitch.js.map +1 -1
  16. package/lib/components/Switch/useSwitchStyles.js +170 -268
  17. package/lib/components/Switch/useSwitchStyles.js.map +1 -1
  18. package/lib/index.js +2 -1
  19. package/lib/index.js.map +1 -1
  20. package/lib-commonjs/Switch.js.map +1 -1
  21. package/lib-commonjs/components/Switch/Switch.js +1 -1
  22. package/lib-commonjs/components/Switch/Switch.js.map +1 -1
  23. package/lib-commonjs/components/Switch/Switch.types.js.map +1 -1
  24. package/lib-commonjs/components/Switch/index.js.map +1 -1
  25. package/lib-commonjs/components/Switch/renderSwitch.js +8 -6
  26. package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
  27. package/lib-commonjs/components/Switch/useSwitch.js +65 -43
  28. package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
  29. package/lib-commonjs/components/Switch/useSwitchStyles.js +172 -270
  30. package/lib-commonjs/components/Switch/useSwitchStyles.js.map +1 -1
  31. package/lib-commonjs/index.js +39 -2
  32. package/lib-commonjs/index.js.map +1 -1
  33. package/package.json +19 -20
  34. package/dist/react-switch.d.ts +0 -89
  35. package/lib/Switch.d.ts +0 -1
  36. package/lib/components/Switch/Switch.d.ts +0 -6
  37. package/lib/components/Switch/Switch.types.d.ts +0 -59
  38. package/lib/components/Switch/index.d.ts +0 -5
  39. package/lib/components/Switch/renderSwitch.d.ts +0 -5
  40. package/lib/components/Switch/useSwitch.d.ts +0 -6
  41. package/lib/components/Switch/useSwitchState.d.ts +0 -2
  42. package/lib/components/Switch/useSwitchState.js +0 -144
  43. package/lib/components/Switch/useSwitchState.js.map +0 -1
  44. package/lib/components/Switch/useSwitchStyles.d.ts +0 -6
  45. package/lib/index.d.ts +0 -2
  46. package/lib-commonjs/Switch.d.ts +0 -1
  47. package/lib-commonjs/components/Switch/Switch.d.ts +0 -6
  48. package/lib-commonjs/components/Switch/Switch.types.d.ts +0 -59
  49. package/lib-commonjs/components/Switch/index.d.ts +0 -5
  50. package/lib-commonjs/components/Switch/renderSwitch.d.ts +0 -5
  51. package/lib-commonjs/components/Switch/useSwitch.d.ts +0 -6
  52. package/lib-commonjs/components/Switch/useSwitchState.d.ts +0 -2
  53. package/lib-commonjs/components/Switch/useSwitchState.js +0 -156
  54. package/lib-commonjs/components/Switch/useSwitchState.js.map +0 -1
  55. package/lib-commonjs/components/Switch/useSwitchStyles.d.ts +0 -6
  56. package/lib-commonjs/index.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,12 +1,126 @@
1
1
  # Change Log - @fluentui/react-switch
2
2
 
3
- This log was last generated on Thu, 10 Feb 2022 08:44:05 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 23 May 2022 12:10:12 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.10)
8
+
9
+ Mon, 23 May 2022 12:10:12 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.9..@fluentui/react-switch_v9.0.0-rc.10)
11
+
12
+ ### Changes
13
+
14
+ - chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
15
+ - Replace hardcoded padding with spacing tokens ([PR #22982](https://github.com/microsoft/fluentui/pull/22982) by behowell@microsoft.com)
16
+ - Refactor styles to remove usage of flex gap ([PR #22976](https://github.com/microsoft/fluentui/pull/22976) by behowell@microsoft.com)
17
+ - Updated react-label package version to RC. ([PR #22865](https://github.com/microsoft/fluentui/pull/22865) by esteban.230@hotmail.com)
18
+ - feat: ship rolluped only dts ([PR #22874](https://github.com/microsoft/fluentui/pull/22874) by martinhochel@microsoft.com)
19
+ - Removing SwitchCommons type in @fluentui/react-switch. ([PR #22943](https://github.com/microsoft/fluentui/pull/22943) by Humberto.Morimoto@microsoft.com)
20
+ - chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
21
+ - Bump @fluentui/react-label to v9.0.0-rc.2 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
22
+ - Bump @fluentui/react-tabster to v9.0.0-rc.10 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
23
+ - Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
24
+ - Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
25
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
26
+
27
+ ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.9)
28
+
29
+ Thu, 05 May 2022 18:26:26 GMT
30
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.8..@fluentui/react-switch_v9.0.0-rc.9)
31
+
32
+ ### Changes
33
+
34
+ - Bump @fluentui/react-label to v9.0.0-beta.12 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
35
+ - Bump @fluentui/react-tabster to v9.0.0-rc.9 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
36
+ - Bump @fluentui/react-theme to v9.0.0-rc.7 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
37
+ - Bump @fluentui/react-utilities to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
38
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
39
+
40
+ ## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.8)
41
+
42
+ Wed, 04 May 2022 13:26:51 GMT
43
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.7..@fluentui/react-switch_v9.0.0-rc.8)
44
+
45
+ ### Changes
46
+
47
+ - Switch: Fixing disabled styles in high contrast mode. ([PR #22817](https://github.com/microsoft/fluentui/pull/22817) by humberto_makoto@hotmail.com)
48
+ - Bump @fluentui/react-label to v9.0.0-beta.11 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
49
+ - Bump @fluentui/react-tabster to v9.0.0-rc.8 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
50
+ - Bump @fluentui/react-theme to v9.0.0-rc.6 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
51
+ - Bump @fluentui/react-utilities to v9.0.0-rc.7 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
52
+
53
+ ## [9.0.0-rc.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.7)
54
+
55
+ Mon, 25 Apr 2022 09:32:19 GMT
56
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.6..@fluentui/react-switch_v9.0.0-rc.7)
57
+
58
+ ### Changes
59
+
60
+ - Bump @fluentui/react-tabster to v9.0.0-rc.7 ([PR #22601](https://github.com/microsoft/fluentui/pull/22601) by beachball)
61
+
62
+ ## [9.0.0-rc.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.6)
63
+
64
+ Tue, 19 Apr 2022 19:16:54 GMT
65
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.5..@fluentui/react-switch_v9.0.0-rc.6)
66
+
67
+ ### Changes
68
+
69
+ - Add deprecation messages to react-switch ([PR #21960](https://github.com/microsoft/fluentui/pull/21960) by seanmonahan@microsoft.com)
70
+ - chore: Update Griffel to latest version ([PR #21976](https://github.com/microsoft/fluentui/pull/21976) by olfedias@microsoft.com)
71
+ - update react-icons version to ^2.0.166-rc.3 from ^2.0.159-beta.10 ([PR #22512](https://github.com/microsoft/fluentui/pull/22512) by seanmonahan@microsoft.com)
72
+ - Removing star exports. ([PR #22139](https://github.com/microsoft/fluentui/pull/22139) by Humberto.Morimoto@microsoft.com)
73
+ - Switch: Updating spec and migration guide to reflect latest state of the component. ([PR #22011](https://github.com/microsoft/fluentui/pull/22011) by email not defined)
74
+ - Bump @fluentui/react-label to v9.0.0-beta.10 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
75
+ - Bump @fluentui/react-tabster to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
76
+ - Bump @fluentui/react-theme to v9.0.0-rc.5 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
77
+ - Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
78
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
79
+
80
+ ## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.5)
81
+
82
+ Fri, 04 Mar 2022 05:17:30 GMT
83
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.4..@fluentui/react-switch_v9.0.0-rc.5)
84
+
85
+ ### Changes
86
+
87
+ - Adding explicit export maps on all consumer packages for FUIR 8 and 9. ([PR #21508](https://github.com/microsoft/fluentui/pull/21508) by dzearing@microsoft.com)
88
+ - Updating class names to use slot class names helper type. ([PR #21933](https://github.com/microsoft/fluentui/pull/21933) by email not defined)
89
+ - Bump @fluentui/react-label to v9.0.0-beta.9 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
90
+ - Bump @fluentui/react-tabster to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
91
+ - Bump @fluentui/react-theme to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
92
+ - Bump @fluentui/react-utilities to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
93
+
94
+ ## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.4)
95
+
96
+ Tue, 01 Mar 2022 02:17:38 GMT
97
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.3..@fluentui/react-switch_v9.0.0-rc.4)
98
+
99
+ ### Changes
100
+
101
+ - Switch: Re-implementing component to make it simpler and making it adhere to latest patterns. ([PR #21849](https://github.com/microsoft/fluentui/pull/21849) by Humberto.Morimoto@microsoft.com)
102
+ - fix: Add react-theme as dependency ([PR #21825](https://github.com/microsoft/fluentui/pull/21825) by olfedias@microsoft.com)
103
+ - Bump @fluentui/react-label to v9.0.0-beta.8 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
104
+ - Bump @fluentui/react-tabster to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
105
+ - Bump @fluentui/react-utilities to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
106
+
107
+ ## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.3)
108
+
109
+ Fri, 18 Feb 2022 13:35:34 GMT
110
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.1..@fluentui/react-switch_v9.0.0-rc.3)
111
+
112
+ ### Changes
113
+
114
+ - fix visual display of controlled switches ([PR #21704](https://github.com/microsoft/fluentui/pull/21704) by mgodbolt@microsoft.com)
115
+ - fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
116
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
117
+ - Bump @fluentui/react-tabster to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
118
+ - Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
119
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
120
+
7
121
  ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.1)
8
122
 
9
- Thu, 10 Feb 2022 08:44:05 GMT
123
+ Thu, 10 Feb 2022 08:50:51 GMT
10
124
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.5..@fluentui/react-switch_v9.0.0-rc.1)
11
125
 
12
126
  ### Changes
@@ -28,7 +142,7 @@ Thu, 10 Feb 2022 08:44:05 GMT
28
142
 
29
143
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.5)
30
144
 
31
- Thu, 25 Nov 2021 08:34:17 GMT
145
+ Thu, 25 Nov 2021 08:34:17 GMT
32
146
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.4..@fluentui/react-switch_v9.0.0-beta.5)
33
147
 
34
148
  ### Changes
@@ -43,7 +157,7 @@ Thu, 25 Nov 2021 08:34:17 GMT
43
157
 
44
158
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.4)
45
159
 
46
- Fri, 12 Nov 2021 13:25:33 GMT
160
+ Fri, 12 Nov 2021 13:25:33 GMT
47
161
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.3..@fluentui/react-switch_v9.0.0-beta.4)
48
162
 
49
163
  ### Changes
@@ -59,7 +173,7 @@ Fri, 12 Nov 2021 13:25:33 GMT
59
173
 
60
174
  ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.3)
61
175
 
62
- Wed, 27 Oct 2021 12:14:22 GMT
176
+ Wed, 27 Oct 2021 12:14:22 GMT
63
177
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.2..@fluentui/react-switch_v9.0.0-beta.3)
64
178
 
65
179
  ### Changes
@@ -79,7 +193,7 @@ Wed, 27 Oct 2021 12:14:22 GMT
79
193
 
80
194
  ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.2)
81
195
 
82
- Tue, 12 Oct 2021 19:45:58 GMT
196
+ Tue, 12 Oct 2021 19:45:58 GMT
83
197
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.1..@fluentui/react-switch_v9.0.0-beta.2)
84
198
 
85
199
  ### Changes
@@ -89,7 +203,7 @@ Tue, 12 Oct 2021 19:45:58 GMT
89
203
 
90
204
  ## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.1)
91
205
 
92
- Wed, 06 Oct 2021 10:37:22 GMT
206
+ Wed, 06 Oct 2021 10:37:22 GMT
93
207
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.17..@fluentui/react-switch_v9.0.0-beta.1)
94
208
 
95
209
  ### Changes
@@ -108,7 +222,7 @@ Wed, 06 Oct 2021 10:37:22 GMT
108
222
 
109
223
  ## [9.0.0-alpha.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.17)
110
224
 
111
- Tue, 05 Oct 2021 12:47:58 GMT
225
+ Tue, 05 Oct 2021 12:47:58 GMT
112
226
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.16..@fluentui/react-switch_v9.0.0-alpha.17)
113
227
 
114
228
  ### Changes
@@ -123,7 +237,7 @@ Tue, 05 Oct 2021 12:47:58 GMT
123
237
 
124
238
  ## [9.0.0-alpha.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.16)
125
239
 
126
- Tue, 05 Oct 2021 09:28:07 GMT
240
+ Tue, 05 Oct 2021 09:28:07 GMT
127
241
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.15..@fluentui/react-switch_v9.0.0-alpha.16)
128
242
 
129
243
  ### Changes
@@ -140,7 +254,7 @@ Tue, 05 Oct 2021 09:28:07 GMT
140
254
 
141
255
  ## [9.0.0-alpha.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.15)
142
256
 
143
- Fri, 01 Oct 2021 14:13:08 GMT
257
+ Fri, 01 Oct 2021 14:13:08 GMT
144
258
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.13..@fluentui/react-switch_v9.0.0-alpha.15)
145
259
 
146
260
  ### Changes
@@ -159,7 +273,7 @@ Fri, 01 Oct 2021 14:13:08 GMT
159
273
 
160
274
  ## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.13)
161
275
 
162
- Fri, 01 Oct 2021 09:44:56 GMT
276
+ Fri, 01 Oct 2021 09:44:56 GMT
163
277
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.12..@fluentui/react-switch_v9.0.0-alpha.13)
164
278
 
165
279
  ### Changes
@@ -170,7 +284,7 @@ Fri, 01 Oct 2021 09:44:56 GMT
170
284
 
171
285
  ## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.12)
172
286
 
173
- Wed, 29 Sep 2021 08:06:11 GMT
287
+ Wed, 29 Sep 2021 08:06:11 GMT
174
288
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.11..@fluentui/react-switch_v9.0.0-alpha.12)
175
289
 
176
290
  ### Changes
@@ -187,7 +301,7 @@ Wed, 29 Sep 2021 08:06:11 GMT
187
301
 
188
302
  ## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.11)
189
303
 
190
- Mon, 27 Sep 2021 08:06:00 GMT
304
+ Mon, 27 Sep 2021 08:06:00 GMT
191
305
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.10..@fluentui/react-switch_v9.0.0-alpha.11)
192
306
 
193
307
  ### Changes
@@ -203,7 +317,7 @@ Mon, 27 Sep 2021 08:06:00 GMT
203
317
 
204
318
  ## [9.0.0-alpha.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.10)
205
319
 
206
- Fri, 24 Sep 2021 09:17:17 GMT
320
+ Fri, 24 Sep 2021 09:17:17 GMT
207
321
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.9..@fluentui/react-switch_v9.0.0-alpha.10)
208
322
 
209
323
  ### Changes
@@ -219,7 +333,7 @@ Fri, 24 Sep 2021 09:17:17 GMT
219
333
 
220
334
  ## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.9)
221
335
 
222
- Thu, 23 Sep 2021 08:21:34 GMT
336
+ Thu, 23 Sep 2021 08:21:34 GMT
223
337
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.8..@fluentui/react-switch_v9.0.0-alpha.9)
224
338
 
225
339
  ### Changes
@@ -236,7 +350,7 @@ Thu, 23 Sep 2021 08:21:34 GMT
236
350
 
237
351
  ## [9.0.0-alpha.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.8)
238
352
 
239
- Wed, 22 Sep 2021 10:10:07 GMT
353
+ Wed, 22 Sep 2021 10:10:07 GMT
240
354
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.7..@fluentui/react-switch_v9.0.0-alpha.8)
241
355
 
242
356
  ### Changes
@@ -253,7 +367,7 @@ Wed, 22 Sep 2021 10:10:07 GMT
253
367
 
254
368
  ## [9.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.7)
255
369
 
256
- Tue, 21 Sep 2021 07:42:34 GMT
370
+ Tue, 21 Sep 2021 07:42:34 GMT
257
371
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.6..@fluentui/react-switch_v9.0.0-alpha.7)
258
372
 
259
373
  ### Changes
@@ -270,7 +384,7 @@ Tue, 21 Sep 2021 07:42:34 GMT
270
384
 
271
385
  ## [9.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.6)
272
386
 
273
- Mon, 20 Sep 2021 07:36:26 GMT
387
+ Mon, 20 Sep 2021 07:36:26 GMT
274
388
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.5..@fluentui/react-switch_v9.0.0-alpha.6)
275
389
 
276
390
  ### Changes
@@ -279,7 +393,7 @@ Mon, 20 Sep 2021 07:36:26 GMT
279
393
 
280
394
  ## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.5)
281
395
 
282
- Fri, 17 Sep 2021 07:35:26 GMT
396
+ Fri, 17 Sep 2021 07:35:26 GMT
283
397
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.4..@fluentui/react-switch_v9.0.0-alpha.5)
284
398
 
285
399
  ### Changes
@@ -288,7 +402,7 @@ Fri, 17 Sep 2021 07:35:26 GMT
288
402
 
289
403
  ## [9.0.0-alpha.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.4)
290
404
 
291
- Thu, 16 Sep 2021 07:38:39 GMT
405
+ Thu, 16 Sep 2021 07:38:39 GMT
292
406
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.3..@fluentui/react-switch_v9.0.0-alpha.4)
293
407
 
294
408
  ### Changes
@@ -298,7 +412,7 @@ Thu, 16 Sep 2021 07:38:39 GMT
298
412
 
299
413
  ## [9.0.0-alpha.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.3)
300
414
 
301
- Tue, 14 Sep 2021 20:09:02 GMT
415
+ Tue, 14 Sep 2021 20:09:02 GMT
302
416
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.2..@fluentui/react-switch_v9.0.0-alpha.3)
303
417
 
304
418
  ### Changes
@@ -307,7 +421,7 @@ Tue, 14 Sep 2021 20:09:02 GMT
307
421
 
308
422
  ## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.2)
309
423
 
310
- Fri, 10 Sep 2021 16:31:53 GMT
424
+ Fri, 10 Sep 2021 16:31:53 GMT
311
425
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.1..@fluentui/react-switch_v9.0.0-alpha.2)
312
426
 
313
427
  ### Changes
@@ -317,7 +431,7 @@ Fri, 10 Sep 2021 16:31:53 GMT
317
431
 
318
432
  ## [9.0.0-alpha.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.1)
319
433
 
320
- Fri, 10 Sep 2021 07:39:51 GMT
434
+ Fri, 10 Sep 2021 07:39:51 GMT
321
435
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.1)
322
436
 
323
437
  ### Changes
@@ -326,7 +440,7 @@ Fri, 10 Sep 2021 07:39:51 GMT
326
440
 
327
441
  ## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
328
442
 
329
- Mon, 06 Sep 2021 07:34:53 GMT
443
+ Mon, 06 Sep 2021 07:34:53 GMT
330
444
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
331
445
 
332
446
  ### Changes
@@ -335,7 +449,7 @@ Mon, 06 Sep 2021 07:34:53 GMT
335
449
 
336
450
  ## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
337
451
 
338
- Thu, 02 Sep 2021 07:36:46 GMT
452
+ Thu, 02 Sep 2021 07:36:46 GMT
339
453
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
340
454
 
341
455
  ### Patches
@@ -348,7 +462,7 @@ Thu, 02 Sep 2021 07:36:46 GMT
348
462
 
349
463
  ## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
350
464
 
351
- Wed, 01 Sep 2021 07:39:56 GMT
465
+ Wed, 01 Sep 2021 07:39:56 GMT
352
466
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
353
467
 
354
468
  ### Changes
@@ -357,7 +471,7 @@ Wed, 01 Sep 2021 07:39:56 GMT
357
471
 
358
472
  ## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
359
473
 
360
- Tue, 31 Aug 2021 07:37:47 GMT
474
+ Tue, 31 Aug 2021 07:37:47 GMT
361
475
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
362
476
 
363
477
  ### Changes
@@ -366,7 +480,7 @@ Tue, 31 Aug 2021 07:37:47 GMT
366
480
 
367
481
  ## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
368
482
 
369
- Fri, 27 Aug 2021 07:33:32 GMT
483
+ Fri, 27 Aug 2021 07:33:32 GMT
370
484
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
371
485
 
372
486
  ### Changes
@@ -375,7 +489,7 @@ Fri, 27 Aug 2021 07:33:32 GMT
375
489
 
376
490
  ## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
377
491
 
378
- Thu, 26 Aug 2021 07:35:43 GMT
492
+ Thu, 26 Aug 2021 07:35:43 GMT
379
493
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
380
494
 
381
495
  ### Changes
@@ -384,7 +498,7 @@ Thu, 26 Aug 2021 07:35:43 GMT
384
498
 
385
499
  ## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
386
500
 
387
- Fri, 20 Aug 2021 07:37:28 GMT
501
+ Fri, 20 Aug 2021 07:37:28 GMT
388
502
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
389
503
 
390
504
  ### Changes
@@ -393,7 +507,7 @@ Fri, 20 Aug 2021 07:37:28 GMT
393
507
 
394
508
  ## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
395
509
 
396
- Thu, 19 Aug 2021 07:41:35 GMT
510
+ Thu, 19 Aug 2021 07:41:35 GMT
397
511
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
398
512
 
399
513
  ### Changes
package/MIGRATION.md CHANGED
@@ -4,25 +4,92 @@
4
4
 
5
5
  This Migration guide is a work in progress and is not yet ready for use.
6
6
 
7
- ## Migration from v8
8
-
9
- - `componentRef` => NOT SUPPORTED - use regular `ref` instead.
10
- - `styles` => NOT SUPPORTED - use new styling system via `tokens` instead.
11
- - `theme` => NOT SUPPORTED
12
- - `label` => NOT SUPPORTED
13
- - `labelPosition` => NOT SUPPORTED
14
- - `onText` => NOT SUPPORTED
15
- - `offText` => NOT SUPPORTED
16
- - `ariaLabel` => NOT SUPPORTED
17
- - `onAriaLabel` => NOT SUPPORTED
18
- - `offAriaLabel` => NOT SUPPORTED
19
- - `inlineLabel` => NOT SUPPORTED
20
- - `onChanged` => NOT SUPPORTED
21
- - `role` => NOT SUPPORTED
22
-
23
- ## Migration from v0
24
-
25
- - `indicator` => NOT SUPPORTED
26
- - `label` => NOT SUPPORTED
27
- - `labelPosition` => NOT SUPPORTED
28
- - `toggle` => NOT SUPPORTED
7
+ ## Migration from v8's Toggle
8
+
9
+ ### Props that remain as is
10
+
11
+ - `checked`
12
+ - `defaultChecked`
13
+
14
+ ### Props that have the same name but have a different implementation
15
+
16
+ - `as` - Uses new pattern for `as` introduced in v9
17
+ - `label` - Now implemented as a v9 slot
18
+ - `onChange` - Has a slightly different API with our new event data handling pattern
19
+
20
+ ### Props removed because we can get them from HTML props
21
+
22
+ - `ariaLabel` => Getting it as `aria-label` instead
23
+ - `disabled`
24
+ - `role`
25
+
26
+ ### Props no longer supported with an equivalent funtionality in v9's Switch
27
+
28
+ - `as`
29
+ - `componentRef` => Use regular `ref` instead
30
+ - `inlineLabel` => Use `labelPosition` instead
31
+ - `styles` => Use new styling system via `tokens` instead
32
+
33
+ ### Props no longer supported without an equivalent functionality in v9's Switch
34
+
35
+ - `offText`
36
+ - `onText`
37
+ - `theme`
38
+
39
+ ## Migration from v0's Checkbox
40
+
41
+ ### Props that remain as is
42
+
43
+ - `checked`
44
+ - `defaultChecked`
45
+ - `labelPosition`
46
+
47
+ ### Props that have the same name but have a different implementation
48
+
49
+ - `as` - Uses new pattern for `as` introduced in v9
50
+ - `indicator` => Now implemented as a v9 slot
51
+ - `label` - Now implemented as a v9 slot
52
+ - `onChange` - Has a slightly different API with our new event data handling pattern
53
+
54
+ ### Props removed because we can get them from HTML props
55
+
56
+ - `className`
57
+ - `disabled`
58
+ - `onClick`
59
+
60
+ ### Props no longer supported with an equivalent functionality in v9's Switch
61
+
62
+ - `accessibility` => Override accessibility behavior by composing the `Switch` however you want
63
+ - `styles` => Use new styling system via `tokens` instead
64
+ - `toggle` => Default behavior for `Switch` in v9
65
+ - `variables` => Use new styling system via `tokens` instead
66
+
67
+ ### Props no longer supported without an equivalent functionality in v9's Switch
68
+
69
+ - `design`
70
+
71
+ ## Propery mapping
72
+
73
+ | v8 `Toggle` | v0 `Checkbox` | v9 `Switch` |
74
+ | ---------------- | --------------- | ---------------- |
75
+ | | `accessibility` | |
76
+ | `arialabel` | `aria-label` | `aria-label` |
77
+ | `as` | `as` | `as` |
78
+ | `checked` | `checked` | `checked` |
79
+ | `className` | `className` | `className` |
80
+ | `componentRef` | | `ref` |
81
+ | `defaultChecked` | | |
82
+ | | `design` | |
83
+ | `disabled` | `disabled` | `disabled` |
84
+ | | `indicator` | `indicator` |
85
+ | `inlineLabel` | `labelPosition` | `labelPosition` |
86
+ | `label` | `label` | `label` |
87
+ | `offText` | | |
88
+ | `onChange` | `onChange` | `onChange` |
89
+ | `onClick` | `onClick` | `onClick` |
90
+ | `onText` | | |
91
+ | `role` | | `role` |
92
+ | `styles` | `styles` | |
93
+ | `theme` | | |
94
+ | Default behavior | `toggle` | Default behavior |
95
+ | | `variables` | |