@fluentui/react-switch 9.0.0-rc.1 → 9.0.0-rc.12
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 +457 -1
- package/CHANGELOG.md +167 -31
- package/MIGRATION.md +89 -22
- package/Spec.md +179 -84
- package/dist/index.d.ts +107 -0
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/Switch.js.map +1 -1
- package/lib/components/Switch/Switch.js +1 -1
- package/lib/components/Switch/Switch.js.map +1 -1
- package/lib/components/Switch/Switch.types.js.map +1 -1
- package/lib/components/Switch/index.js.map +1 -1
- package/lib/components/Switch/renderSwitch.js +8 -6
- package/lib/components/Switch/renderSwitch.js.map +1 -1
- package/lib/components/Switch/useSwitch.js +63 -43
- package/lib/components/Switch/useSwitch.js.map +1 -1
- package/lib/components/Switch/useSwitchStyles.js +171 -269
- package/lib/components/Switch/useSwitchStyles.js.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Switch.js.map +1 -1
- package/lib-commonjs/components/Switch/Switch.js +1 -1
- package/lib-commonjs/components/Switch/Switch.js.map +1 -1
- package/lib-commonjs/components/Switch/Switch.types.js.map +1 -1
- package/lib-commonjs/components/Switch/index.js.map +1 -1
- package/lib-commonjs/components/Switch/renderSwitch.js +8 -6
- package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitch.js +65 -43
- package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitchStyles.js +173 -271
- package/lib-commonjs/components/Switch/useSwitchStyles.js.map +1 -1
- package/lib-commonjs/index.js +39 -2
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +19 -20
- package/dist/react-switch.d.ts +0 -89
- 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 -59
- 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 -6
- package/lib/components/Switch/useSwitchState.d.ts +0 -2
- package/lib/components/Switch/useSwitchState.js +0 -144
- package/lib/components/Switch/useSwitchState.js.map +0 -1
- package/lib/components/Switch/useSwitchStyles.d.ts +0 -6
- 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 -59
- 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 -6
- package/lib-commonjs/components/Switch/useSwitchState.d.ts +0 -2
- package/lib-commonjs/components/Switch/useSwitchState.js +0 -156
- package/lib-commonjs/components/Switch/useSwitchState.js.map +0 -1
- package/lib-commonjs/components/Switch/useSwitchStyles.d.ts +0 -6
- package/lib-commonjs/index.d.ts +0 -2
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,148 @@
|
|
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, 26 May 2022 21:00:06 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.0-rc.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.12)
|
8
|
+
|
9
|
+
Thu, 26 May 2022 21:00:06 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.11..@fluentui/react-switch_v9.0.0-rc.12)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Bump @fluentui/react-label to v9.0.0-rc.4 ([PR #23267](https://github.com/microsoft/fluentui/pull/23267) by beachball)
|
15
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.12 ([PR #23267](https://github.com/microsoft/fluentui/pull/23267) by beachball)
|
16
|
+
|
17
|
+
## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.11)
|
18
|
+
|
19
|
+
Mon, 23 May 2022 18:56:51 GMT
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.10..@fluentui/react-switch_v9.0.0-rc.11)
|
21
|
+
|
22
|
+
### Changes
|
23
|
+
|
24
|
+
- Bump @fluentui/react-label to v9.0.0-rc.3 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
25
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.11 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
26
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
27
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
28
|
+
|
29
|
+
## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.10)
|
30
|
+
|
31
|
+
Mon, 23 May 2022 12:13:46 GMT
|
32
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.9..@fluentui/react-switch_v9.0.0-rc.10)
|
33
|
+
|
34
|
+
### Changes
|
35
|
+
|
36
|
+
- chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
|
37
|
+
- Replace hardcoded padding with spacing tokens ([PR #22982](https://github.com/microsoft/fluentui/pull/22982) by behowell@microsoft.com)
|
38
|
+
- Refactor styles to remove usage of flex gap ([PR #22976](https://github.com/microsoft/fluentui/pull/22976) by behowell@microsoft.com)
|
39
|
+
- Updated react-label package version to RC. ([PR #22865](https://github.com/microsoft/fluentui/pull/22865) by esteban.230@hotmail.com)
|
40
|
+
- feat: ship rolluped only dts ([PR #22874](https://github.com/microsoft/fluentui/pull/22874) by martinhochel@microsoft.com)
|
41
|
+
- Removing SwitchCommons type in @fluentui/react-switch. ([PR #22943](https://github.com/microsoft/fluentui/pull/22943) by Humberto.Morimoto@microsoft.com)
|
42
|
+
- chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
|
43
|
+
- Bump @fluentui/react-label to v9.0.0-rc.2 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
44
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.10 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
45
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
46
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
47
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
48
|
+
|
49
|
+
## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.9)
|
50
|
+
|
51
|
+
Thu, 05 May 2022 18:26:26 GMT
|
52
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.8..@fluentui/react-switch_v9.0.0-rc.9)
|
53
|
+
|
54
|
+
### Changes
|
55
|
+
|
56
|
+
- Bump @fluentui/react-label to v9.0.0-beta.12 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
57
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.9 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
58
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.7 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
59
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
60
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
61
|
+
|
62
|
+
## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.8)
|
63
|
+
|
64
|
+
Wed, 04 May 2022 13:26:51 GMT
|
65
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.7..@fluentui/react-switch_v9.0.0-rc.8)
|
66
|
+
|
67
|
+
### Changes
|
68
|
+
|
69
|
+
- Switch: Fixing disabled styles in high contrast mode. ([PR #22817](https://github.com/microsoft/fluentui/pull/22817) by humberto_makoto@hotmail.com)
|
70
|
+
- Bump @fluentui/react-label to v9.0.0-beta.11 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
71
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.8 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
72
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.6 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
73
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.7 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
74
|
+
|
75
|
+
## [9.0.0-rc.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.7)
|
76
|
+
|
77
|
+
Mon, 25 Apr 2022 09:32:19 GMT
|
78
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.6..@fluentui/react-switch_v9.0.0-rc.7)
|
79
|
+
|
80
|
+
### Changes
|
81
|
+
|
82
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.7 ([PR #22601](https://github.com/microsoft/fluentui/pull/22601) by beachball)
|
83
|
+
|
84
|
+
## [9.0.0-rc.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.6)
|
85
|
+
|
86
|
+
Tue, 19 Apr 2022 19:16:54 GMT
|
87
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.5..@fluentui/react-switch_v9.0.0-rc.6)
|
88
|
+
|
89
|
+
### Changes
|
90
|
+
|
91
|
+
- Add deprecation messages to react-switch ([PR #21960](https://github.com/microsoft/fluentui/pull/21960) by seanmonahan@microsoft.com)
|
92
|
+
- chore: Update Griffel to latest version ([PR #21976](https://github.com/microsoft/fluentui/pull/21976) by olfedias@microsoft.com)
|
93
|
+
- 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)
|
94
|
+
- Removing star exports. ([PR #22139](https://github.com/microsoft/fluentui/pull/22139) by Humberto.Morimoto@microsoft.com)
|
95
|
+
- 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)
|
96
|
+
- Bump @fluentui/react-label to v9.0.0-beta.10 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
97
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
98
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.5 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
99
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
100
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
101
|
+
|
102
|
+
## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.5)
|
103
|
+
|
104
|
+
Fri, 04 Mar 2022 05:17:30 GMT
|
105
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.4..@fluentui/react-switch_v9.0.0-rc.5)
|
106
|
+
|
107
|
+
### Changes
|
108
|
+
|
109
|
+
- 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)
|
110
|
+
- Updating class names to use slot class names helper type. ([PR #21933](https://github.com/microsoft/fluentui/pull/21933) by email not defined)
|
111
|
+
- Bump @fluentui/react-label to v9.0.0-beta.9 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
|
112
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
|
113
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
|
114
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
|
115
|
+
|
116
|
+
## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.4)
|
117
|
+
|
118
|
+
Tue, 01 Mar 2022 02:17:38 GMT
|
119
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.3..@fluentui/react-switch_v9.0.0-rc.4)
|
120
|
+
|
121
|
+
### Changes
|
122
|
+
|
123
|
+
- 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)
|
124
|
+
- fix: Add react-theme as dependency ([PR #21825](https://github.com/microsoft/fluentui/pull/21825) by olfedias@microsoft.com)
|
125
|
+
- Bump @fluentui/react-label to v9.0.0-beta.8 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
|
126
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
|
127
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
|
128
|
+
|
129
|
+
## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.3)
|
130
|
+
|
131
|
+
Fri, 18 Feb 2022 13:35:34 GMT
|
132
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.1..@fluentui/react-switch_v9.0.0-rc.3)
|
133
|
+
|
134
|
+
### Changes
|
135
|
+
|
136
|
+
- fix visual display of controlled switches ([PR #21704](https://github.com/microsoft/fluentui/pull/21704) by mgodbolt@microsoft.com)
|
137
|
+
- fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
|
138
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
139
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
140
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
141
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
142
|
+
|
7
143
|
## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.1)
|
8
144
|
|
9
|
-
Thu, 10 Feb 2022 08:
|
145
|
+
Thu, 10 Feb 2022 08:50:51 GMT
|
10
146
|
[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
147
|
|
12
148
|
### Changes
|
@@ -28,7 +164,7 @@ Thu, 10 Feb 2022 08:44:05 GMT
|
|
28
164
|
|
29
165
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.5)
|
30
166
|
|
31
|
-
Thu, 25 Nov 2021 08:34:17 GMT
|
167
|
+
Thu, 25 Nov 2021 08:34:17 GMT
|
32
168
|
[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
169
|
|
34
170
|
### Changes
|
@@ -43,7 +179,7 @@ Thu, 25 Nov 2021 08:34:17 GMT
|
|
43
179
|
|
44
180
|
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.4)
|
45
181
|
|
46
|
-
Fri, 12 Nov 2021 13:25:33 GMT
|
182
|
+
Fri, 12 Nov 2021 13:25:33 GMT
|
47
183
|
[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
184
|
|
49
185
|
### Changes
|
@@ -59,7 +195,7 @@ Fri, 12 Nov 2021 13:25:33 GMT
|
|
59
195
|
|
60
196
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.3)
|
61
197
|
|
62
|
-
Wed, 27 Oct 2021 12:14:22 GMT
|
198
|
+
Wed, 27 Oct 2021 12:14:22 GMT
|
63
199
|
[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
200
|
|
65
201
|
### Changes
|
@@ -79,7 +215,7 @@ Wed, 27 Oct 2021 12:14:22 GMT
|
|
79
215
|
|
80
216
|
## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.2)
|
81
217
|
|
82
|
-
Tue, 12 Oct 2021 19:45:58 GMT
|
218
|
+
Tue, 12 Oct 2021 19:45:58 GMT
|
83
219
|
[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
220
|
|
85
221
|
### Changes
|
@@ -89,7 +225,7 @@ Tue, 12 Oct 2021 19:45:58 GMT
|
|
89
225
|
|
90
226
|
## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.1)
|
91
227
|
|
92
|
-
Wed, 06 Oct 2021 10:37:22 GMT
|
228
|
+
Wed, 06 Oct 2021 10:37:22 GMT
|
93
229
|
[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
230
|
|
95
231
|
### Changes
|
@@ -108,7 +244,7 @@ Wed, 06 Oct 2021 10:37:22 GMT
|
|
108
244
|
|
109
245
|
## [9.0.0-alpha.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.17)
|
110
246
|
|
111
|
-
Tue, 05 Oct 2021 12:47:58 GMT
|
247
|
+
Tue, 05 Oct 2021 12:47:58 GMT
|
112
248
|
[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
249
|
|
114
250
|
### Changes
|
@@ -123,7 +259,7 @@ Tue, 05 Oct 2021 12:47:58 GMT
|
|
123
259
|
|
124
260
|
## [9.0.0-alpha.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.16)
|
125
261
|
|
126
|
-
Tue, 05 Oct 2021 09:28:07 GMT
|
262
|
+
Tue, 05 Oct 2021 09:28:07 GMT
|
127
263
|
[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
264
|
|
129
265
|
### Changes
|
@@ -140,7 +276,7 @@ Tue, 05 Oct 2021 09:28:07 GMT
|
|
140
276
|
|
141
277
|
## [9.0.0-alpha.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.15)
|
142
278
|
|
143
|
-
Fri, 01 Oct 2021 14:13:08 GMT
|
279
|
+
Fri, 01 Oct 2021 14:13:08 GMT
|
144
280
|
[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
281
|
|
146
282
|
### Changes
|
@@ -159,7 +295,7 @@ Fri, 01 Oct 2021 14:13:08 GMT
|
|
159
295
|
|
160
296
|
## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.13)
|
161
297
|
|
162
|
-
Fri, 01 Oct 2021 09:44:56 GMT
|
298
|
+
Fri, 01 Oct 2021 09:44:56 GMT
|
163
299
|
[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
300
|
|
165
301
|
### Changes
|
@@ -170,7 +306,7 @@ Fri, 01 Oct 2021 09:44:56 GMT
|
|
170
306
|
|
171
307
|
## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.12)
|
172
308
|
|
173
|
-
Wed, 29 Sep 2021 08:06:11 GMT
|
309
|
+
Wed, 29 Sep 2021 08:06:11 GMT
|
174
310
|
[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
311
|
|
176
312
|
### Changes
|
@@ -187,7 +323,7 @@ Wed, 29 Sep 2021 08:06:11 GMT
|
|
187
323
|
|
188
324
|
## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.11)
|
189
325
|
|
190
|
-
Mon, 27 Sep 2021 08:06:00 GMT
|
326
|
+
Mon, 27 Sep 2021 08:06:00 GMT
|
191
327
|
[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
328
|
|
193
329
|
### Changes
|
@@ -203,7 +339,7 @@ Mon, 27 Sep 2021 08:06:00 GMT
|
|
203
339
|
|
204
340
|
## [9.0.0-alpha.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.10)
|
205
341
|
|
206
|
-
Fri, 24 Sep 2021 09:17:17 GMT
|
342
|
+
Fri, 24 Sep 2021 09:17:17 GMT
|
207
343
|
[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
344
|
|
209
345
|
### Changes
|
@@ -219,7 +355,7 @@ Fri, 24 Sep 2021 09:17:17 GMT
|
|
219
355
|
|
220
356
|
## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.9)
|
221
357
|
|
222
|
-
Thu, 23 Sep 2021 08:21:34 GMT
|
358
|
+
Thu, 23 Sep 2021 08:21:34 GMT
|
223
359
|
[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
360
|
|
225
361
|
### Changes
|
@@ -236,7 +372,7 @@ Thu, 23 Sep 2021 08:21:34 GMT
|
|
236
372
|
|
237
373
|
## [9.0.0-alpha.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.8)
|
238
374
|
|
239
|
-
Wed, 22 Sep 2021 10:10:07 GMT
|
375
|
+
Wed, 22 Sep 2021 10:10:07 GMT
|
240
376
|
[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
377
|
|
242
378
|
### Changes
|
@@ -253,7 +389,7 @@ Wed, 22 Sep 2021 10:10:07 GMT
|
|
253
389
|
|
254
390
|
## [9.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.7)
|
255
391
|
|
256
|
-
Tue, 21 Sep 2021 07:42:34 GMT
|
392
|
+
Tue, 21 Sep 2021 07:42:34 GMT
|
257
393
|
[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
394
|
|
259
395
|
### Changes
|
@@ -270,7 +406,7 @@ Tue, 21 Sep 2021 07:42:34 GMT
|
|
270
406
|
|
271
407
|
## [9.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.6)
|
272
408
|
|
273
|
-
Mon, 20 Sep 2021 07:36:26 GMT
|
409
|
+
Mon, 20 Sep 2021 07:36:26 GMT
|
274
410
|
[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
411
|
|
276
412
|
### Changes
|
@@ -279,7 +415,7 @@ Mon, 20 Sep 2021 07:36:26 GMT
|
|
279
415
|
|
280
416
|
## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.5)
|
281
417
|
|
282
|
-
Fri, 17 Sep 2021 07:35:26 GMT
|
418
|
+
Fri, 17 Sep 2021 07:35:26 GMT
|
283
419
|
[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
420
|
|
285
421
|
### Changes
|
@@ -288,7 +424,7 @@ Fri, 17 Sep 2021 07:35:26 GMT
|
|
288
424
|
|
289
425
|
## [9.0.0-alpha.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.4)
|
290
426
|
|
291
|
-
Thu, 16 Sep 2021 07:38:39 GMT
|
427
|
+
Thu, 16 Sep 2021 07:38:39 GMT
|
292
428
|
[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
429
|
|
294
430
|
### Changes
|
@@ -298,7 +434,7 @@ Thu, 16 Sep 2021 07:38:39 GMT
|
|
298
434
|
|
299
435
|
## [9.0.0-alpha.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.3)
|
300
436
|
|
301
|
-
Tue, 14 Sep 2021 20:09:02 GMT
|
437
|
+
Tue, 14 Sep 2021 20:09:02 GMT
|
302
438
|
[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
439
|
|
304
440
|
### Changes
|
@@ -307,7 +443,7 @@ Tue, 14 Sep 2021 20:09:02 GMT
|
|
307
443
|
|
308
444
|
## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.2)
|
309
445
|
|
310
|
-
Fri, 10 Sep 2021 16:31:53 GMT
|
446
|
+
Fri, 10 Sep 2021 16:31:53 GMT
|
311
447
|
[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
448
|
|
313
449
|
### Changes
|
@@ -317,7 +453,7 @@ Fri, 10 Sep 2021 16:31:53 GMT
|
|
317
453
|
|
318
454
|
## [9.0.0-alpha.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.1)
|
319
455
|
|
320
|
-
Fri, 10 Sep 2021 07:39:51 GMT
|
456
|
+
Fri, 10 Sep 2021 07:39:51 GMT
|
321
457
|
[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
458
|
|
323
459
|
### Changes
|
@@ -326,7 +462,7 @@ Fri, 10 Sep 2021 07:39:51 GMT
|
|
326
462
|
|
327
463
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
328
464
|
|
329
|
-
Mon, 06 Sep 2021 07:34:53 GMT
|
465
|
+
Mon, 06 Sep 2021 07:34:53 GMT
|
330
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)
|
331
467
|
|
332
468
|
### Changes
|
@@ -335,7 +471,7 @@ Mon, 06 Sep 2021 07:34:53 GMT
|
|
335
471
|
|
336
472
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
337
473
|
|
338
|
-
Thu, 02 Sep 2021 07:36:46 GMT
|
474
|
+
Thu, 02 Sep 2021 07:36:46 GMT
|
339
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)
|
340
476
|
|
341
477
|
### Patches
|
@@ -348,7 +484,7 @@ Thu, 02 Sep 2021 07:36:46 GMT
|
|
348
484
|
|
349
485
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
350
486
|
|
351
|
-
Wed, 01 Sep 2021 07:39:56 GMT
|
487
|
+
Wed, 01 Sep 2021 07:39:56 GMT
|
352
488
|
[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
489
|
|
354
490
|
### Changes
|
@@ -357,7 +493,7 @@ Wed, 01 Sep 2021 07:39:56 GMT
|
|
357
493
|
|
358
494
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
359
495
|
|
360
|
-
Tue, 31 Aug 2021 07:37:47 GMT
|
496
|
+
Tue, 31 Aug 2021 07:37:47 GMT
|
361
497
|
[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
498
|
|
363
499
|
### Changes
|
@@ -366,7 +502,7 @@ Tue, 31 Aug 2021 07:37:47 GMT
|
|
366
502
|
|
367
503
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
368
504
|
|
369
|
-
Fri, 27 Aug 2021 07:33:32 GMT
|
505
|
+
Fri, 27 Aug 2021 07:33:32 GMT
|
370
506
|
[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
507
|
|
372
508
|
### Changes
|
@@ -375,7 +511,7 @@ Fri, 27 Aug 2021 07:33:32 GMT
|
|
375
511
|
|
376
512
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
377
513
|
|
378
|
-
Thu, 26 Aug 2021 07:35:43 GMT
|
514
|
+
Thu, 26 Aug 2021 07:35:43 GMT
|
379
515
|
[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
516
|
|
381
517
|
### Changes
|
@@ -384,7 +520,7 @@ Thu, 26 Aug 2021 07:35:43 GMT
|
|
384
520
|
|
385
521
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
386
522
|
|
387
|
-
Fri, 20 Aug 2021 07:37:28 GMT
|
523
|
+
Fri, 20 Aug 2021 07:37:28 GMT
|
388
524
|
[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
525
|
|
390
526
|
### Changes
|
@@ -393,7 +529,7 @@ Fri, 20 Aug 2021 07:37:28 GMT
|
|
393
529
|
|
394
530
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
395
531
|
|
396
|
-
Thu, 19 Aug 2021 07:41:35 GMT
|
532
|
+
Thu, 19 Aug 2021 07:41:35 GMT
|
397
533
|
[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
534
|
|
399
535
|
### 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
|
-
|
10
|
-
|
11
|
-
- `
|
12
|
-
- `
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
- `
|
17
|
-
- `
|
18
|
-
- `
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- `
|
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` | |
|