@fluentui/react-switch 9.0.0-nightly.f81b28ceb3.1 → 9.0.0-rc.11
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 +695 -27
- package/CHANGELOG.md +221 -42
- 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 +8 -8
- 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 +15 -9
- package/lib/components/Switch/renderSwitch.js.map +1 -1
- package/lib/components/Switch/useSwitch.js +70 -54
- package/lib/components/Switch/useSwitch.js.map +1 -1
- package/lib/components/Switch/useSwitchStyles.js +156 -248
- 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 +1 -1
- package/lib-commonjs/Switch.js.map +1 -1
- package/lib-commonjs/components/Switch/Switch.js +9 -9
- 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 +1 -1
- package/lib-commonjs/components/Switch/index.js.map +1 -1
- package/lib-commonjs/components/Switch/renderSwitch.js +19 -15
- package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitch.js +73 -56
- package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitchStyles.js +161 -252
- 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 +21 -27
- package/dist/react-switch.d.ts +0 -92
- package/lib/Switch.d.ts +0 -1
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -12
- package/lib/common/isConformant.js.map +0 -1
- package/lib/components/Switch/Switch.d.ts +0 -6
- package/lib/components/Switch/Switch.types.d.ts +0 -58
- 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 -10
- package/lib/components/Switch/useSwitchState.d.ts +0 -2
- package/lib/components/Switch/useSwitchState.js +0 -152
- package/lib/components/Switch/useSwitchState.js.map +0 -1
- package/lib/components/Switch/useSwitchStyles.d.ts +0 -5
- package/lib/index.d.ts +0 -2
- package/lib-commonjs/Switch.d.ts +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -23
- package/lib-commonjs/common/isConformant.js.map +0 -1
- package/lib-commonjs/components/Switch/Switch.d.ts +0 -6
- package/lib-commonjs/components/Switch/Switch.types.d.ts +0 -58
- 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 -10
- package/lib-commonjs/components/Switch/useSwitchState.d.ts +0 -2
- package/lib-commonjs/components/Switch/useSwitchState.js +0 -164
- package/lib-commonjs/components/Switch/useSwitchState.js.map +0 -1
- package/lib-commonjs/components/Switch/useSwitchStyles.d.ts +0 -5
- package/lib-commonjs/index.d.ts +0 -2
package/CHANGELOG.md
CHANGED
@@ -1,32 +1,211 @@
|
|
1
1
|
# Change Log - @fluentui/react-switch
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Mon, 23 May 2022 18:54:56 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [9.0.0-
|
7
|
+
## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.11)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-
|
9
|
+
Mon, 23 May 2022 18:54:56 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.10..@fluentui/react-switch_v9.0.0-rc.11)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
-
|
15
|
-
-
|
16
|
-
- Bump @fluentui/react-
|
17
|
-
- Bump @fluentui/react-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
14
|
+
- Bump @fluentui/react-label to v9.0.0-rc.3 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
15
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.11 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
16
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
17
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
18
|
+
|
19
|
+
## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.10)
|
20
|
+
|
21
|
+
Mon, 23 May 2022 12:13:46 GMT
|
22
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.9..@fluentui/react-switch_v9.0.0-rc.10)
|
23
|
+
|
24
|
+
### Changes
|
25
|
+
|
26
|
+
- chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
|
27
|
+
- Replace hardcoded padding with spacing tokens ([PR #22982](https://github.com/microsoft/fluentui/pull/22982) by behowell@microsoft.com)
|
28
|
+
- Refactor styles to remove usage of flex gap ([PR #22976](https://github.com/microsoft/fluentui/pull/22976) by behowell@microsoft.com)
|
29
|
+
- Updated react-label package version to RC. ([PR #22865](https://github.com/microsoft/fluentui/pull/22865) by esteban.230@hotmail.com)
|
30
|
+
- feat: ship rolluped only dts ([PR #22874](https://github.com/microsoft/fluentui/pull/22874) by martinhochel@microsoft.com)
|
31
|
+
- Removing SwitchCommons type in @fluentui/react-switch. ([PR #22943](https://github.com/microsoft/fluentui/pull/22943) by Humberto.Morimoto@microsoft.com)
|
32
|
+
- chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
|
33
|
+
- Bump @fluentui/react-label to v9.0.0-rc.2 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
34
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.10 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
35
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
36
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
37
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
38
|
+
|
39
|
+
## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.9)
|
40
|
+
|
41
|
+
Thu, 05 May 2022 18:26:26 GMT
|
42
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.8..@fluentui/react-switch_v9.0.0-rc.9)
|
43
|
+
|
44
|
+
### Changes
|
45
|
+
|
46
|
+
- Bump @fluentui/react-label to v9.0.0-beta.12 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
47
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.9 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
48
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.7 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
49
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
50
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.5 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
51
|
+
|
52
|
+
## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.8)
|
53
|
+
|
54
|
+
Wed, 04 May 2022 13:26:51 GMT
|
55
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.7..@fluentui/react-switch_v9.0.0-rc.8)
|
56
|
+
|
57
|
+
### Changes
|
58
|
+
|
59
|
+
- Switch: Fixing disabled styles in high contrast mode. ([PR #22817](https://github.com/microsoft/fluentui/pull/22817) by humberto_makoto@hotmail.com)
|
60
|
+
- Bump @fluentui/react-label to v9.0.0-beta.11 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
61
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.8 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
62
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.6 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
63
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.7 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
64
|
+
|
65
|
+
## [9.0.0-rc.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.7)
|
66
|
+
|
67
|
+
Mon, 25 Apr 2022 09:32:19 GMT
|
68
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.6..@fluentui/react-switch_v9.0.0-rc.7)
|
69
|
+
|
70
|
+
### Changes
|
71
|
+
|
72
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.7 ([PR #22601](https://github.com/microsoft/fluentui/pull/22601) by beachball)
|
73
|
+
|
74
|
+
## [9.0.0-rc.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.6)
|
75
|
+
|
76
|
+
Tue, 19 Apr 2022 19:16:54 GMT
|
77
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.5..@fluentui/react-switch_v9.0.0-rc.6)
|
78
|
+
|
79
|
+
### Changes
|
80
|
+
|
81
|
+
- Add deprecation messages to react-switch ([PR #21960](https://github.com/microsoft/fluentui/pull/21960) by seanmonahan@microsoft.com)
|
82
|
+
- chore: Update Griffel to latest version ([PR #21976](https://github.com/microsoft/fluentui/pull/21976) by olfedias@microsoft.com)
|
83
|
+
- 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)
|
84
|
+
- Removing star exports. ([PR #22139](https://github.com/microsoft/fluentui/pull/22139) by Humberto.Morimoto@microsoft.com)
|
85
|
+
- 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)
|
86
|
+
- Bump @fluentui/react-label to v9.0.0-beta.10 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
87
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
88
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.5 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
89
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
90
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
91
|
+
|
92
|
+
## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.5)
|
93
|
+
|
94
|
+
Fri, 04 Mar 2022 05:17:30 GMT
|
95
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.4..@fluentui/react-switch_v9.0.0-rc.5)
|
96
|
+
|
97
|
+
### Changes
|
98
|
+
|
99
|
+
- 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)
|
100
|
+
- Updating class names to use slot class names helper type. ([PR #21933](https://github.com/microsoft/fluentui/pull/21933) by email not defined)
|
101
|
+
- Bump @fluentui/react-label to v9.0.0-beta.9 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
|
102
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
|
103
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
|
104
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
|
105
|
+
|
106
|
+
## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.4)
|
107
|
+
|
108
|
+
Tue, 01 Mar 2022 02:17:38 GMT
|
109
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.3..@fluentui/react-switch_v9.0.0-rc.4)
|
110
|
+
|
111
|
+
### Changes
|
112
|
+
|
113
|
+
- 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)
|
114
|
+
- fix: Add react-theme as dependency ([PR #21825](https://github.com/microsoft/fluentui/pull/21825) by olfedias@microsoft.com)
|
115
|
+
- Bump @fluentui/react-label to v9.0.0-beta.8 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
|
116
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
|
117
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
|
118
|
+
|
119
|
+
## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.3)
|
120
|
+
|
121
|
+
Fri, 18 Feb 2022 13:35:34 GMT
|
122
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.1..@fluentui/react-switch_v9.0.0-rc.3)
|
123
|
+
|
124
|
+
### Changes
|
125
|
+
|
126
|
+
- fix visual display of controlled switches ([PR #21704](https://github.com/microsoft/fluentui/pull/21704) by mgodbolt@microsoft.com)
|
127
|
+
- fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
|
128
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
129
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
130
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
131
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
132
|
+
|
133
|
+
## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.1)
|
134
|
+
|
135
|
+
Thu, 10 Feb 2022 08:50:51 GMT
|
136
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.5..@fluentui/react-switch_v9.0.0-rc.1)
|
137
|
+
|
138
|
+
### Changes
|
139
|
+
|
140
|
+
- Replace make-styles packages with griffel equivalents. ([PR #21424](https://github.com/microsoft/fluentui/pull/21424) by olfedias@microsoft.com)
|
141
|
+
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
142
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
143
|
+
- Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
|
144
|
+
- remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
|
145
|
+
- update styles to not use CSS shorthands ([PR #20844](https://github.com/microsoft/fluentui/pull/20844) by olfedias@microsoft.com)
|
146
|
+
- Replacing use of functions in makeStyles with direct use of tokens. ([PR #21056](https://github.com/microsoft/fluentui/pull/21056) by Humberto.Morimoto@microsoft.com)
|
147
|
+
- Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster. ([PR #21035](https://github.com/microsoft/fluentui/pull/21035) by Humberto.Morimoto@microsoft.com)
|
148
|
+
- BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
|
149
|
+
- Bump Fluent UI dependencies to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
|
150
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
151
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
152
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
153
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
154
|
+
|
155
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.5)
|
156
|
+
|
157
|
+
Thu, 25 Nov 2021 08:34:17 GMT
|
158
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.4..@fluentui/react-switch_v9.0.0-beta.5)
|
159
|
+
|
160
|
+
### Changes
|
161
|
+
|
162
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
163
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
164
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
165
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
166
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
167
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
168
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
169
|
+
|
170
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.4)
|
171
|
+
|
172
|
+
Fri, 12 Nov 2021 13:25:33 GMT
|
173
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.3..@fluentui/react-switch_v9.0.0-beta.4)
|
174
|
+
|
175
|
+
### Changes
|
176
|
+
|
177
|
+
- export static classes for components ([PR #20456](https://github.com/microsoft/fluentui/pull/20456) by olfedias@microsoft.com)
|
178
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
179
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
180
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
181
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
182
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
183
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
184
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
185
|
+
|
186
|
+
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.3)
|
187
|
+
|
188
|
+
Wed, 27 Oct 2021 12:14:22 GMT
|
189
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.2..@fluentui/react-switch_v9.0.0-beta.3)
|
190
|
+
|
191
|
+
### Changes
|
192
|
+
|
193
|
+
- Changing the Switch's onKeyDown event to onKeyUp. ([PR #20217](https://github.com/microsoft/fluentui/pull/20217) by czearing@outlook.com)
|
194
|
+
- added styling of documentation ([PR #20193](https://github.com/microsoft/fluentui/pull/20193) by peter@draxler.ml)
|
195
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
196
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
197
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.3 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
198
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
199
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
200
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
201
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
202
|
+
- Bump @fluentui/react-label to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
203
|
+
- Bump @fluentui/react-provider to v9.0.0-beta.3 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
204
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
26
205
|
|
27
206
|
## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.2)
|
28
207
|
|
29
|
-
Tue, 12 Oct 2021 19:45:58 GMT
|
208
|
+
Tue, 12 Oct 2021 19:45:58 GMT
|
30
209
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-beta.1..@fluentui/react-switch_v9.0.0-beta.2)
|
31
210
|
|
32
211
|
### Changes
|
@@ -36,7 +215,7 @@ Tue, 12 Oct 2021 19:45:58 GMT
|
|
36
215
|
|
37
216
|
## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-beta.1)
|
38
217
|
|
39
|
-
Wed, 06 Oct 2021 10:37:22 GMT
|
218
|
+
Wed, 06 Oct 2021 10:37:22 GMT
|
40
219
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.17..@fluentui/react-switch_v9.0.0-beta.1)
|
41
220
|
|
42
221
|
### Changes
|
@@ -55,7 +234,7 @@ Wed, 06 Oct 2021 10:37:22 GMT
|
|
55
234
|
|
56
235
|
## [9.0.0-alpha.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.17)
|
57
236
|
|
58
|
-
Tue, 05 Oct 2021 12:47:58 GMT
|
237
|
+
Tue, 05 Oct 2021 12:47:58 GMT
|
59
238
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.16..@fluentui/react-switch_v9.0.0-alpha.17)
|
60
239
|
|
61
240
|
### Changes
|
@@ -70,7 +249,7 @@ Tue, 05 Oct 2021 12:47:58 GMT
|
|
70
249
|
|
71
250
|
## [9.0.0-alpha.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.16)
|
72
251
|
|
73
|
-
Tue, 05 Oct 2021 09:28:07 GMT
|
252
|
+
Tue, 05 Oct 2021 09:28:07 GMT
|
74
253
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.15..@fluentui/react-switch_v9.0.0-alpha.16)
|
75
254
|
|
76
255
|
### Changes
|
@@ -87,7 +266,7 @@ Tue, 05 Oct 2021 09:28:07 GMT
|
|
87
266
|
|
88
267
|
## [9.0.0-alpha.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.15)
|
89
268
|
|
90
|
-
Fri, 01 Oct 2021 14:13:08 GMT
|
269
|
+
Fri, 01 Oct 2021 14:13:08 GMT
|
91
270
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.13..@fluentui/react-switch_v9.0.0-alpha.15)
|
92
271
|
|
93
272
|
### Changes
|
@@ -106,7 +285,7 @@ Fri, 01 Oct 2021 14:13:08 GMT
|
|
106
285
|
|
107
286
|
## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.13)
|
108
287
|
|
109
|
-
Fri, 01 Oct 2021 09:44:56 GMT
|
288
|
+
Fri, 01 Oct 2021 09:44:56 GMT
|
110
289
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.12..@fluentui/react-switch_v9.0.0-alpha.13)
|
111
290
|
|
112
291
|
### Changes
|
@@ -117,7 +296,7 @@ Fri, 01 Oct 2021 09:44:56 GMT
|
|
117
296
|
|
118
297
|
## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.12)
|
119
298
|
|
120
|
-
Wed, 29 Sep 2021 08:06:11 GMT
|
299
|
+
Wed, 29 Sep 2021 08:06:11 GMT
|
121
300
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.11..@fluentui/react-switch_v9.0.0-alpha.12)
|
122
301
|
|
123
302
|
### Changes
|
@@ -134,7 +313,7 @@ Wed, 29 Sep 2021 08:06:11 GMT
|
|
134
313
|
|
135
314
|
## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.11)
|
136
315
|
|
137
|
-
Mon, 27 Sep 2021 08:06:00 GMT
|
316
|
+
Mon, 27 Sep 2021 08:06:00 GMT
|
138
317
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.10..@fluentui/react-switch_v9.0.0-alpha.11)
|
139
318
|
|
140
319
|
### Changes
|
@@ -150,7 +329,7 @@ Mon, 27 Sep 2021 08:06:00 GMT
|
|
150
329
|
|
151
330
|
## [9.0.0-alpha.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.10)
|
152
331
|
|
153
|
-
Fri, 24 Sep 2021 09:17:17 GMT
|
332
|
+
Fri, 24 Sep 2021 09:17:17 GMT
|
154
333
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.9..@fluentui/react-switch_v9.0.0-alpha.10)
|
155
334
|
|
156
335
|
### Changes
|
@@ -166,7 +345,7 @@ Fri, 24 Sep 2021 09:17:17 GMT
|
|
166
345
|
|
167
346
|
## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.9)
|
168
347
|
|
169
|
-
Thu, 23 Sep 2021 08:21:34 GMT
|
348
|
+
Thu, 23 Sep 2021 08:21:34 GMT
|
170
349
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.8..@fluentui/react-switch_v9.0.0-alpha.9)
|
171
350
|
|
172
351
|
### Changes
|
@@ -183,7 +362,7 @@ Thu, 23 Sep 2021 08:21:34 GMT
|
|
183
362
|
|
184
363
|
## [9.0.0-alpha.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.8)
|
185
364
|
|
186
|
-
Wed, 22 Sep 2021 10:10:07 GMT
|
365
|
+
Wed, 22 Sep 2021 10:10:07 GMT
|
187
366
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.7..@fluentui/react-switch_v9.0.0-alpha.8)
|
188
367
|
|
189
368
|
### Changes
|
@@ -200,7 +379,7 @@ Wed, 22 Sep 2021 10:10:07 GMT
|
|
200
379
|
|
201
380
|
## [9.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.7)
|
202
381
|
|
203
|
-
Tue, 21 Sep 2021 07:42:34 GMT
|
382
|
+
Tue, 21 Sep 2021 07:42:34 GMT
|
204
383
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.6..@fluentui/react-switch_v9.0.0-alpha.7)
|
205
384
|
|
206
385
|
### Changes
|
@@ -217,7 +396,7 @@ Tue, 21 Sep 2021 07:42:34 GMT
|
|
217
396
|
|
218
397
|
## [9.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.6)
|
219
398
|
|
220
|
-
Mon, 20 Sep 2021 07:36:26 GMT
|
399
|
+
Mon, 20 Sep 2021 07:36:26 GMT
|
221
400
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.5..@fluentui/react-switch_v9.0.0-alpha.6)
|
222
401
|
|
223
402
|
### Changes
|
@@ -226,7 +405,7 @@ Mon, 20 Sep 2021 07:36:26 GMT
|
|
226
405
|
|
227
406
|
## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.5)
|
228
407
|
|
229
|
-
Fri, 17 Sep 2021 07:35:26 GMT
|
408
|
+
Fri, 17 Sep 2021 07:35:26 GMT
|
230
409
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.4..@fluentui/react-switch_v9.0.0-alpha.5)
|
231
410
|
|
232
411
|
### Changes
|
@@ -235,7 +414,7 @@ Fri, 17 Sep 2021 07:35:26 GMT
|
|
235
414
|
|
236
415
|
## [9.0.0-alpha.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.4)
|
237
416
|
|
238
|
-
Thu, 16 Sep 2021 07:38:39 GMT
|
417
|
+
Thu, 16 Sep 2021 07:38:39 GMT
|
239
418
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.3..@fluentui/react-switch_v9.0.0-alpha.4)
|
240
419
|
|
241
420
|
### Changes
|
@@ -245,7 +424,7 @@ Thu, 16 Sep 2021 07:38:39 GMT
|
|
245
424
|
|
246
425
|
## [9.0.0-alpha.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.3)
|
247
426
|
|
248
|
-
Tue, 14 Sep 2021 20:09:02 GMT
|
427
|
+
Tue, 14 Sep 2021 20:09:02 GMT
|
249
428
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.2..@fluentui/react-switch_v9.0.0-alpha.3)
|
250
429
|
|
251
430
|
### Changes
|
@@ -254,7 +433,7 @@ Tue, 14 Sep 2021 20:09:02 GMT
|
|
254
433
|
|
255
434
|
## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.2)
|
256
435
|
|
257
|
-
Fri, 10 Sep 2021 16:31:53 GMT
|
436
|
+
Fri, 10 Sep 2021 16:31:53 GMT
|
258
437
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.1..@fluentui/react-switch_v9.0.0-alpha.2)
|
259
438
|
|
260
439
|
### Changes
|
@@ -264,7 +443,7 @@ Fri, 10 Sep 2021 16:31:53 GMT
|
|
264
443
|
|
265
444
|
## [9.0.0-alpha.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.1)
|
266
445
|
|
267
|
-
Fri, 10 Sep 2021 07:39:51 GMT
|
446
|
+
Fri, 10 Sep 2021 07:39:51 GMT
|
268
447
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.1)
|
269
448
|
|
270
449
|
### Changes
|
@@ -273,7 +452,7 @@ Fri, 10 Sep 2021 07:39:51 GMT
|
|
273
452
|
|
274
453
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
275
454
|
|
276
|
-
Mon, 06 Sep 2021 07:34:53 GMT
|
455
|
+
Mon, 06 Sep 2021 07:34:53 GMT
|
277
456
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
|
278
457
|
|
279
458
|
### Changes
|
@@ -282,7 +461,7 @@ Mon, 06 Sep 2021 07:34:53 GMT
|
|
282
461
|
|
283
462
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
284
463
|
|
285
|
-
Thu, 02 Sep 2021 07:36:46 GMT
|
464
|
+
Thu, 02 Sep 2021 07:36:46 GMT
|
286
465
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
|
287
466
|
|
288
467
|
### Patches
|
@@ -295,7 +474,7 @@ Thu, 02 Sep 2021 07:36:46 GMT
|
|
295
474
|
|
296
475
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
297
476
|
|
298
|
-
Wed, 01 Sep 2021 07:39:56 GMT
|
477
|
+
Wed, 01 Sep 2021 07:39:56 GMT
|
299
478
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
|
300
479
|
|
301
480
|
### Changes
|
@@ -304,7 +483,7 @@ Wed, 01 Sep 2021 07:39:56 GMT
|
|
304
483
|
|
305
484
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
306
485
|
|
307
|
-
Tue, 31 Aug 2021 07:37:47 GMT
|
486
|
+
Tue, 31 Aug 2021 07:37:47 GMT
|
308
487
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
|
309
488
|
|
310
489
|
### Changes
|
@@ -313,7 +492,7 @@ Tue, 31 Aug 2021 07:37:47 GMT
|
|
313
492
|
|
314
493
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
315
494
|
|
316
|
-
Fri, 27 Aug 2021 07:33:32 GMT
|
495
|
+
Fri, 27 Aug 2021 07:33:32 GMT
|
317
496
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
|
318
497
|
|
319
498
|
### Changes
|
@@ -322,7 +501,7 @@ Fri, 27 Aug 2021 07:33:32 GMT
|
|
322
501
|
|
323
502
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
324
503
|
|
325
|
-
Thu, 26 Aug 2021 07:35:43 GMT
|
504
|
+
Thu, 26 Aug 2021 07:35:43 GMT
|
326
505
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
|
327
506
|
|
328
507
|
### Changes
|
@@ -331,7 +510,7 @@ Thu, 26 Aug 2021 07:35:43 GMT
|
|
331
510
|
|
332
511
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
333
512
|
|
334
|
-
Fri, 20 Aug 2021 07:37:28 GMT
|
513
|
+
Fri, 20 Aug 2021 07:37:28 GMT
|
335
514
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
|
336
515
|
|
337
516
|
### Changes
|
@@ -340,7 +519,7 @@ Fri, 20 Aug 2021 07:37:28 GMT
|
|
340
519
|
|
341
520
|
## [9.0.0-alpha.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-alpha.0)
|
342
521
|
|
343
|
-
Thu, 19 Aug 2021 07:41:35 GMT
|
522
|
+
Thu, 19 Aug 2021 07:41:35 GMT
|
344
523
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-alpha.0..@fluentui/react-switch_v9.0.0-alpha.0)
|
345
524
|
|
346
525
|
### 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` | |
|