@fluentui/react-switch 9.0.0-nightly.f81b28ceb3.1 → 9.0.0-rc.4

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 (54) hide show
  1. package/CHANGELOG.json +353 -28
  2. package/CHANGELOG.md +96 -16
  3. package/Spec.md +4 -4
  4. package/dist/react-switch.d.ts +60 -46
  5. package/lib/Switch.js.map +1 -1
  6. package/lib/components/Switch/Switch.d.ts +1 -1
  7. package/lib/components/Switch/Switch.js +8 -8
  8. package/lib/components/Switch/Switch.js.map +1 -1
  9. package/lib/components/Switch/Switch.types.d.ts +44 -37
  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.d.ts +2 -2
  13. package/lib/components/Switch/renderSwitch.js +15 -9
  14. package/lib/components/Switch/renderSwitch.js.map +1 -1
  15. package/lib/components/Switch/useSwitch.d.ts +9 -7
  16. package/lib/components/Switch/useSwitch.js +70 -54
  17. package/lib/components/Switch/useSwitch.js.map +1 -1
  18. package/lib/components/Switch/useSwitchStyles.d.ts +6 -2
  19. package/lib/components/Switch/useSwitchStyles.js +155 -267
  20. package/lib/components/Switch/useSwitchStyles.js.map +1 -1
  21. package/lib/index.js.map +1 -1
  22. package/lib-commonjs/Switch.js +1 -1
  23. package/lib-commonjs/Switch.js.map +1 -1
  24. package/lib-commonjs/components/Switch/Switch.d.ts +1 -1
  25. package/lib-commonjs/components/Switch/Switch.js +9 -9
  26. package/lib-commonjs/components/Switch/Switch.js.map +1 -1
  27. package/lib-commonjs/components/Switch/Switch.types.d.ts +44 -37
  28. package/lib-commonjs/components/Switch/Switch.types.js.map +1 -1
  29. package/lib-commonjs/components/Switch/index.js +1 -1
  30. package/lib-commonjs/components/Switch/index.js.map +1 -1
  31. package/lib-commonjs/components/Switch/renderSwitch.d.ts +2 -2
  32. package/lib-commonjs/components/Switch/renderSwitch.js +19 -15
  33. package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
  34. package/lib-commonjs/components/Switch/useSwitch.d.ts +9 -7
  35. package/lib-commonjs/components/Switch/useSwitch.js +73 -56
  36. package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
  37. package/lib-commonjs/components/Switch/useSwitchStyles.d.ts +6 -2
  38. package/lib-commonjs/components/Switch/useSwitchStyles.js +159 -270
  39. package/lib-commonjs/components/Switch/useSwitchStyles.js.map +1 -1
  40. package/lib-commonjs/index.js +1 -1
  41. package/lib-commonjs/index.js.map +1 -1
  42. package/package.json +12 -15
  43. package/lib/common/isConformant.d.ts +0 -4
  44. package/lib/common/isConformant.js +0 -12
  45. package/lib/common/isConformant.js.map +0 -1
  46. package/lib/components/Switch/useSwitchState.d.ts +0 -2
  47. package/lib/components/Switch/useSwitchState.js +0 -152
  48. package/lib/components/Switch/useSwitchState.js.map +0 -1
  49. package/lib-commonjs/common/isConformant.d.ts +0 -4
  50. package/lib-commonjs/common/isConformant.js +0 -23
  51. package/lib-commonjs/common/isConformant.js.map +0 -1
  52. package/lib-commonjs/components/Switch/useSwitchState.d.ts +0 -2
  53. package/lib-commonjs/components/Switch/useSwitchState.js +0 -164
  54. package/lib-commonjs/components/Switch/useSwitchState.js.map +0 -1
@@ -3,315 +3,204 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useSwitchStyles = void 0;
6
+ exports.useSwitchStyles_unstable = exports.switchClassName = exports.switchClassNames = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
9
9
 
10
- var react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
10
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
11
 
12
- var rootClassName = 'ms-Switch-root';
13
- var trackClassName = 'ms-Switch-track';
14
- var thumbClassName = 'ms-Switch-thumb';
15
- /**
16
- * Styles for the root slot
17
- */
12
+ const react_1 = /*#__PURE__*/require("@griffel/react");
13
+
14
+ exports.switchClassNames = {
15
+ root: 'fui-Switch',
16
+ indicator: 'fui-Switch__indicator',
17
+ input: 'fui-Switch__input',
18
+ label: 'fui-Switch__label'
19
+ }; // TODO temporary export to pass conformance test.
20
+
21
+ exports.switchClassName = exports.switchClassNames.root; // TODO replace these spacing constants with theme values once they're on the theme.
22
+
23
+ const spacingXS = 4;
24
+ const spacingS = 8;
25
+ const spacingM = 12; // Thumb and track sizes used by the component.
18
26
 
19
- var useRootStyles = /*#__PURE__*/react_make_styles_1.__styles({
20
- "root": {
21
- "B64q66w": "frxo1y7",
22
- "yvbau0": "fe5s2ct",
23
- "k3w5al": "f1n6k660",
24
- "mt6sm6": "f17m95gg",
25
- "Bjtifd4": "fp7zjh8",
27
+ const spaceBetweenThumbAndTrack = 2;
28
+ const thumbSize = 14;
29
+ const trackHeight = 20;
30
+ const trackWidth = 40;
31
+
32
+ const useRootStyles = /*#__PURE__*/react_1.__styles({
33
+ "base": {
34
+ "B7ck84d": "f1ewtqcl",
35
+ "i8kkvl": "f4akndk",
36
+ "mc9l5x": "ftuwxu6",
37
+ "z8tnut": "fp9bwmr",
38
+ "z189sj": ["f19lj068", "f177v4lu"],
39
+ "Byoj8tv": "f150uoa4",
40
+ "uwmqm3": ["f177v4lu", "f19lj068"],
26
41
  "qhf8xq": "f10pi13n",
27
- "a9b677": "fnceurk",
28
- "Bqenvij": "f15da5dy",
29
- "mc9l5x": "f14t3ns0",
30
- "famaaq": "f1xqy1su",
31
- "lpbzjs": "f1sdsnyy",
32
- "ha4doy": "f1qdqbpl"
33
- },
34
- "unchecked": {
35
- "Blms9gb": "f5twets",
36
- "B786czj": "f1dad01o",
37
- "Bjuc0nl": ["f687y2r", "f1edjd92"],
38
- "B5yqodl": "f1f3tlu1",
39
- "kjlpdb": ["f1edjd92", "f687y2r"]
40
- },
41
- "checked": {
42
- "B4o7b9o": "fnm6wgb",
43
- "puz9ln": "fi8bwd9"
44
- },
45
- "enabled": {
46
- "H36rlo": "felqjlh",
47
- "Bceei9c": "f1k6fduh"
48
- },
49
- "disabled": {
50
- "Bceei9c": "fdrzuqr",
51
- "Bkecrkj": "f1aehjj5"
52
- },
53
- "focusIndicator": {
54
42
  "B486eqv": "f2hkw1w",
55
- "vchsgm": "fbiesyy",
56
- "ozrjjd": ["fq2kn9", "f1jxwnad"],
57
- "B7lelfh": "f1il7mou",
58
- "Bp3tz3o": ["f1jxwnad", "fq2kn9"],
43
+ "c2y4jd": "fsofd9k",
59
44
  "B8vm7ur": "f12sql3b",
60
45
  "f4hv8x": "f1i4q40k",
61
46
  "Gpan81": "fcrbge9",
62
47
  "z7afg": "ft464mn",
63
48
  "rsjj6t": "fskqmiq",
64
- "E86f5s": "f1kbdjx9",
65
- "f5nhos": ["fw1d893", "fpuz8dn"],
66
- "Bhtq6h7": "f14hlsw1",
67
- "Bubk9yy": ["fpuz8dn", "fw1d893"],
68
- "dzajus": "f1bkt4b4",
69
- "B8gmrwi": ["f16hf5f2", "f1qhqcal"],
70
- "Byq6oy9": "fyyqeim",
71
- "Bdy2j38": ["f1qhqcal", "f16hf5f2"],
49
+ "Bqsd8kq": "f2gy8jn",
50
+ "sfhsbh": "f1pke3uf",
72
51
  "Bugh3ej": "f18xdlq9",
73
- "epcuuz": "filx0we",
74
- "Ba33l6n": ["f1horip2", "fgnx9ah"],
75
- "va7z1g": "fkii2tb",
76
- "Bmi6mq9": ["fgnx9ah", "f1horip2"],
77
- "Bjkpy09": "f1rh66yx",
78
- "Jxg1p8": "f19ibq92",
79
- "Bc94xmo": ["fc3tncn", "f1veb610"],
80
- "Bj23z95": ["f1veb610", "fc3tncn"]
81
- }
82
- }, {
83
- "d": [".frxo1y7{--switch-width:40px;}", ".fe5s2ct{--switch-height:20px;}", ".f1n6k660{--switch-thumb-size:14px;}", ".f17m95gg{--switch-checked-opacity:0;}", ".fp7zjh8{--switch-unchecked-opacity:0;}", ".f10pi13n{position:relative;}", ".fnceurk{width:var(--switch-width);}", ".f15da5dy{height:var(--switch-height);}", ".f14t3ns0{display:inline-block;}", ".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".f1sdsnyy{touch-action:none;}", ".f1qdqbpl{vertical-align:bottom;}", ".felqjlh{-webkit-tap-highlight-color:rgba(0,0,0,0);}", ".f1k6fduh{cursor:pointer;}", ".fdrzuqr{cursor:not-allowed;}", ".f1aehjj5{pointer-events:none;}", "[data-keyboard-nav] .fbiesyy:focus-within{border-top-color:transparent;}", "[data-keyboard-nav] .fq2kn9:focus-within{border-right-color:transparent;}", "[data-keyboard-nav] .f1jxwnad:focus-within{border-left-color:transparent;}", "[data-keyboard-nav] .f1il7mou:focus-within{border-bottom-color:transparent;}", "[data-keyboard-nav] .f12sql3b:focus-within:after{content:\"\";}", "[data-keyboard-nav] .f1i4q40k:focus-within:after{position:absolute;}", "[data-keyboard-nav] .fcrbge9:focus-within:after{pointer-events:none;}", "[data-keyboard-nav] .ft464mn:focus-within:after{box-sizing:outline-box;}", "[data-keyboard-nav] .fskqmiq:focus-within:after{z-index:1;}", "[data-keyboard-nav] .f1kbdjx9:focus-within:after{border-top-style:solid;}", "[data-keyboard-nav] .fw1d893:focus-within:after{border-right-style:solid;}", "[data-keyboard-nav] .fpuz8dn:focus-within:after{border-left-style:solid;}", "[data-keyboard-nav] .f14hlsw1:focus-within:after{border-bottom-style:solid;}", "[data-keyboard-nav] .f1bkt4b4:focus-within:after{border-top-width:2px;}", "[data-keyboard-nav] .f16hf5f2:focus-within:after{border-right-width:2px;}", "[data-keyboard-nav] .f1qhqcal:focus-within:after{border-left-width:2px;}", "[data-keyboard-nav] .fyyqeim:focus-within:after{border-bottom-width:2px;}", "[data-keyboard-nav] .f18xdlq9:focus-within:after{border-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .filx0we:focus-within:after{border-top-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1horip2:focus-within:after{border-right-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .fgnx9ah:focus-within:after{border-left-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .fkii2tb:focus-within:after{border-bottom-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1rh66yx:focus-within:after{top:calc(0px - 2px - 8px);}", "[data-keyboard-nav] .f19ibq92:focus-within:after{bottom:calc(0px - 2px - 8px);}", "[data-keyboard-nav] .fc3tncn:focus-within:after{left:calc(0px - 2px - 8px);}", "[data-keyboard-nav] .f1veb610:focus-within:after{right:calc(0px - 2px - 8px);}"],
84
- "h": [".f5twets:hover .ms-Switch-thumb:before{background:var(--colorNeutralStrokeAccessibleHover);}", ".f1dad01o:hover .ms-Switch-track:before{border-top-color:var(--colorNeutralStrokeAccessibleHover);}", ".f687y2r:hover .ms-Switch-track:before{border-right-color:var(--colorNeutralStrokeAccessibleHover);}", ".f1edjd92:hover .ms-Switch-track:before{border-left-color:var(--colorNeutralStrokeAccessibleHover);}", ".f1f3tlu1:hover .ms-Switch-track:before{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}", ".fnm6wgb:hover .ms-Switch-track:after{background:var(--colorBrandBackgroundHover);}"],
85
- "a": [".fi8bwd9:active .ms-Switch-track:after{background:var(--colorBrandBackgroundPressed);}"],
86
- "i": [".f2hkw1w:focus-visible{outline-style:none;}"]
87
- });
88
- /**
89
- * Styles for the track slot
90
- */
91
-
92
-
93
- var useTrackStyles = /*#__PURE__*/react_make_styles_1.__styles({
94
- "track": {
95
- "qhf8xq": "f1euv43f",
96
- "a9b677": "fly5x3f",
97
- "Bqenvij": "f1l02sjl",
98
- "Bi2q7bf": "f11zxivh",
99
- "lpbzjs": "f1sdsnyy",
100
- "Bkecrkj": "f1aehjj5",
101
- "xx9plb": "fxf9f1y",
102
- "Bf8kmfk": "frdto5n",
103
- "Byque4d": ["f8g0ba1", "ff0gctb"],
104
- "Bj2wrql": "f3zr33r",
105
- "qd6xl9": ["ff0gctb", "f8g0ba1"],
106
- "Bmqnesq": "f170vdtw",
107
- "zf3lio": "f1jua1m0",
108
- "rurcny": "f99sooz",
109
- "ngabwx": "f1uhpfti",
110
- "Hdbjpj": "f11ef69",
111
- "u6d25": "f1yuyem3",
112
- "jc51t6": ["f1bp8q63", "f1oarbwq"],
113
- "Bj55yzk": "f13gddrr",
114
- "cnmfks": ["f1oarbwq", "f1bp8q63"],
115
- "oqd9ik": "ffdc0f3",
116
- "c4kunb": "fsn1tsw",
117
- "Bs6t6z0": "f77y9vx",
118
- "Bmyypfa": "frd86tk"
52
+ "hpanx6": "f1114nks",
53
+ "Bjkpy09": "f1unftzx",
54
+ "Jxg1p8": "f8rjbh6",
55
+ "Bc94xmo": ["fxfgh6q", "f8l10fm"],
56
+ "Bj23z95": ["f8l10fm", "fxfgh6q"]
119
57
  },
120
- "unchecked": {
121
- "dj0dih": "f199l62q",
122
- "D4ky5z": ["f1pa2qi2", "f1ooiv2t"],
123
- "k1i1uq": "fyqop9u",
124
- "Bcasopp": ["f1ooiv2t", "f1pa2qi2"],
125
- "Bdixowu": "f1bwkb58",
126
- "cqycoz": ["fiio4mc", "fc8z0qo"],
127
- "Epwjcz": "f1m5ya7j",
128
- "Bwdktmn": ["fc8z0qo", "fiio4mc"],
129
- "ijj6k": "f1gqzwee",
130
- "I89eb": ["f149mt9j", "fs3bzhx"],
131
- "Bp1vogq": "f14z72z2",
132
- "Bohd3ja": ["fs3bzhx", "f149mt9j"],
133
- "B4zgs9e": "f1ntlsrl"
58
+ "above": {
59
+ "Beiy3e4": "f1vx9l62",
60
+ "z8tnut": "f10ra9hq",
61
+ "Belr9w4": "f1ma2n7n"
134
62
  },
135
- "checked": {
136
- "Bpudnjh": "f1lhwn2z",
137
- "rskduk": "f1so6udy",
138
- "Dctjco": ["f1faxgr0", "f1wf3et7"],
139
- "J4s2b0": "f124kgxn",
140
- "svcy3r": ["f1wf3et7", "f1faxgr0"]
63
+ "after": {
64
+ "Bt984gj": "f6jr5hl",
65
+ "i8kkvl": "f4akndk",
66
+ "Beiy3e4": "f1063pyq"
141
67
  },
142
- "disabledUnchecked": {
143
- "dj0dih": "f199l62q",
144
- "D4ky5z": ["f1pa2qi2", "f1ooiv2t"],
145
- "k1i1uq": "fyqop9u",
146
- "Bcasopp": ["f1ooiv2t", "f1pa2qi2"],
147
- "Bdixowu": "f1bwkb58",
148
- "cqycoz": ["fiio4mc", "fc8z0qo"],
149
- "Epwjcz": "f1m5ya7j",
150
- "Bwdktmn": ["fc8z0qo", "fiio4mc"],
151
- "ijj6k": "fntj282",
152
- "I89eb": ["fzta9nb", "f17m9iy5"],
153
- "Bp1vogq": "f1k4exvn",
154
- "Bohd3ja": ["f17m9iy5", "fzta9nb"]
155
- },
156
- "disabledChecked": {
157
- "Bouo9z4": "f1l5cenb",
158
- "Bjz4wo8": ["f1jvubu3", "f1q1uvzd"],
159
- "B3zxwmv": "f2fxry3",
160
- "exdlgl": ["f1q1uvzd", "f1jvubu3"],
161
- "rskduk": "f1iq3fds",
162
- "Dctjco": ["f1r2jemi", "f11olovk"],
163
- "J4s2b0": "fd0py6g",
164
- "svcy3r": ["f11olovk", "f1r2jemi"],
165
- "F7kzw7": "f2uxs13",
166
- "B13j16c": ["f11zx3qq", "fqewq1t"],
167
- "Bk8j60v": "fmewjpk",
168
- "Bpbi4o9": ["fqewq1t", "f11zx3qq"],
169
- "Bpudnjh": "fq2pbzm"
170
- }
171
- }, {
172
- "d": [".f1euv43f{position:absolute;}", ".fly5x3f{width:100%;}", ".f1l02sjl{height:100%;}", ".f11zxivh{-webkit-transition:background .1s cubic-bezier(0.33, 0.0, 0.67, 1);transition:background .1s cubic-bezier(0.33, 0.0, 0.67, 1);}", ".f1sdsnyy{touch-action:none;}", ".f1aehjj5{pointer-events:none;}", ".fxf9f1y:before{position:absolute;}", ".frdto5n:before{top:0px;}", ".f8g0ba1:before{left:0px;}", ".ff0gctb:before{right:0px;}", ".f3zr33r:before{bottom:0px;}", ".f170vdtw:before{box-sizing:border-box;}", ".f1jua1m0:before{border-radius:999px;}", ".f99sooz:before{content:'';}", ".f1uhpfti:before{opacity:var(--switch-unchecked-opacity);}", ".f11ef69:after{position:absolute;}", ".f1yuyem3:after{top:0px;}", ".f1bp8q63:after{left:0px;}", ".f1oarbwq:after{right:0px;}", ".f13gddrr:after{bottom:0px;}", ".ffdc0f3:after{box-sizing:border-box;}", ".fsn1tsw:after{border-radius:999px;}", ".f77y9vx:after{content:'';}", ".frd86tk:after{opacity:var(--switch-checked-opacity);}", ".f199l62q:before{border-top-width:1px;}", ".f1pa2qi2:before{border-right-width:1px;}", ".f1ooiv2t:before{border-left-width:1px;}", ".fyqop9u:before{border-bottom-width:1px;}", ".f1bwkb58:before{border-top-style:solid;}", ".fiio4mc:before{border-right-style:solid;}", ".fc8z0qo:before{border-left-style:solid;}", ".f1m5ya7j:before{border-bottom-style:solid;}", ".f1gqzwee:before{border-top-color:var(--colorNeutralStrokeAccessible);}", ".f149mt9j:before{border-right-color:var(--colorNeutralStrokeAccessible);}", ".fs3bzhx:before{border-left-color:var(--colorNeutralStrokeAccessible);}", ".f14z72z2:before{border-bottom-color:var(--colorNeutralStrokeAccessible);}", ".f1ntlsrl:before{background:none;}", ".f1lhwn2z:after{background:var(--colorBrandBackground);}", ".f1so6udy:after{border-top-style:none;}", ".f1faxgr0:after{border-right-style:none;}", ".f1wf3et7:after{border-left-style:none;}", ".f124kgxn:after{border-bottom-style:none;}", ".fntj282:before{border-top-color:var(--colorNeutralStrokeDisabled);}", ".fzta9nb:before{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f17m9iy5:before{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f1k4exvn:before{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f1l5cenb:after{border-top-width:1px;}", ".f1jvubu3:after{border-right-width:1px;}", ".f1q1uvzd:after{border-left-width:1px;}", ".f2fxry3:after{border-bottom-width:1px;}", ".f1iq3fds:after{border-top-style:solid;}", ".f1r2jemi:after{border-right-style:solid;}", ".f11olovk:after{border-left-style:solid;}", ".fd0py6g:after{border-bottom-style:solid;}", ".f2uxs13:after{border-top-color:var(--colorTransparentStrokeDisabled);}", ".f11zx3qq:after{border-right-color:var(--colorTransparentStrokeDisabled);}", ".fqewq1t:after{border-left-color:var(--colorTransparentStrokeDisabled);}", ".fmewjpk:after{border-bottom-color:var(--colorTransparentStrokeDisabled);}", ".fq2pbzm:after{background:var(--colorNeutralBackgroundDisabled);}"]
173
- });
174
- /**
175
- * Styles for the thumb wrapper slot
176
- */
177
-
178
-
179
- var useThumbWrapperStyles = /*#__PURE__*/react_make_styles_1.__styles({
180
- "thumbWrapper": {
181
- "qhf8xq": "f1euv43f",
182
- "Bhzewxz": "f15twtuk",
183
- "B5kzvoi": "f1yab3r1",
184
- "oyh7mz": ["fhpx7ww", "f1kctpth"],
185
- "j35jbq": ["f1kctpth", "fhpx7ww"],
186
- "lpbzjs": "f1sdsnyy",
187
- "Bkecrkj": "f1aehjj5"
68
+ "before": {
69
+ "Bt984gj": "f6jr5hl",
70
+ "i8kkvl": "f4akndk",
71
+ "Beiy3e4": "f1063pyq"
188
72
  }
189
73
  }, {
190
- "d": [".f1euv43f{position:absolute;}", ".f15twtuk{top:0;}", ".f1yab3r1{bottom:0;}", ".fhpx7ww{left:calc(var(--switch-thumb-size) * .7);}", ".f1kctpth{right:calc(var(--switch-thumb-size) * .7);}", ".f1sdsnyy{touch-action:none;}", ".f1aehjj5{pointer-events:none;}"]
74
+ "d": [".f1ewtqcl{box-sizing:border-box;}", ".f4akndk{-webkit-column-gap:12px;column-gap:12px;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".fp9bwmr{padding-top:8px;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f150uoa4{padding-bottom:8px;}", ".f10pi13n{position:relative;}", "[data-keyboard-nav] .fsofd9k:focus-within{border-color:transparent;}", "[data-keyboard-nav] .f12sql3b:focus-within:after{content:\"\";}", "[data-keyboard-nav] .f1i4q40k:focus-within:after{position:absolute;}", "[data-keyboard-nav] .fcrbge9:focus-within:after{pointer-events:none;}", "[data-keyboard-nav] .ft464mn:focus-within:after{box-sizing:outline-box;}", "[data-keyboard-nav] .fskqmiq:focus-within:after{z-index:1;}", "[data-keyboard-nav] .f2gy8jn:focus-within:after{border-style:solid;}", "[data-keyboard-nav] .f1pke3uf:focus-within:after{border-width:2px;}", "[data-keyboard-nav] .f18xdlq9:focus-within:after{border-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1114nks:focus-within:after{border-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1unftzx:focus-within:after{top:-2px;}", "[data-keyboard-nav] .f8rjbh6:focus-within:after{bottom:-2px;}", "[data-keyboard-nav] .fxfgh6q:focus-within:after{left:-2px;}", "[data-keyboard-nav] .f8l10fm:focus-within:after{right:-2px;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f10ra9hq{padding-top:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f6jr5hl{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}", ".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}"],
75
+ "i": [".f2hkw1w:focus-visible{outline-style:none;}"]
191
76
  });
192
- /**
193
- * Styles for the thumb slot
194
- */
195
77
 
196
-
197
- var useThumbStyles = /*#__PURE__*/react_make_styles_1.__styles({
198
- "thumb": {
199
- "qhf8xq": "f1euv43f",
200
- "a9b677": "fcjrtee",
201
- "Bqenvij": "fili5n9",
78
+ const useIndicatorStyles = /*#__PURE__*/react_1.__styles({
79
+ "base": {
80
+ "Bbmb7ep": ["f8fbkgy", "f1nfllo7"],
81
+ "Beyfa6y": ["f1nfllo7", "f8fbkgy"],
82
+ "B7oj6ja": ["f1djnp8u", "f1s8kh49"],
83
+ "Btl43ni": ["f1s8kh49", "f1djnp8u"],
84
+ "icvyot": "fzkkow9",
85
+ "vrafjx": ["fcdblym", "fjik90z"],
86
+ "oivjwe": "fg706s2",
87
+ "wvpqe5": ["fjik90z", "fcdblym"],
88
+ "B4j52fo": "f5ogflp",
89
+ "Bekrc4i": ["f1hqa2wf", "finvdd3"],
90
+ "Bn0qgzm": "f1f09k3d",
91
+ "ibv6hh": ["finvdd3", "f1hqa2wf"],
202
92
  "B7ck84d": "f1ewtqcl",
203
- "Dimara": "f44lkw9",
204
- "Bhzewxz": "f1i1t8d1",
205
- "Bz10aip": ["foouk8k", "fd9rb4b"],
206
- "Bi2q7bf": "f11zxivh",
207
- "lpbzjs": "f1sdsnyy",
93
+ "Bkfmm31": "f1w9h62z",
94
+ "Bnnss6s": "fi64zpg",
95
+ "Be2twd7": "f4ybsrx",
96
+ "Bqenvij": "fjamq6b",
208
97
  "Bkecrkj": "f1aehjj5",
209
- "xx9plb": "fxf9f1y",
210
- "Bf8kmfk": "frdto5n",
211
- "Byque4d": ["f8g0ba1", "ff0gctb"],
212
- "Bj2wrql": "f3zr33r",
213
- "qd6xl9": ["ff0gctb", "f8g0ba1"],
214
- "zf3lio": "fmrqcwg",
215
- "rurcny": "f99sooz",
216
- "ngabwx": "f1uhpfti",
217
- "Hdbjpj": "f11ef69",
218
- "u6d25": "f1yuyem3",
219
- "jc51t6": ["f1bp8q63", "f1oarbwq"],
220
- "Bj55yzk": "f13gddrr",
221
- "cnmfks": ["f1oarbwq", "f1bp8q63"],
222
- "c4kunb": "f1y5o2fm",
223
- "Bs6t6z0": "f77y9vx",
224
- "Bmyypfa": "frd86tk"
225
- },
226
- "unchecked": {
227
- "B4zgs9e": "f1imqj0g"
228
- },
229
- "checked": {
230
- "Bpudnjh": "fe3g45j"
231
- },
232
- "disabledUnchecked": {
233
- "dj0dih": "f199l62q",
234
- "D4ky5z": ["f1pa2qi2", "f1ooiv2t"],
235
- "k1i1uq": "fyqop9u",
236
- "Bcasopp": ["f1ooiv2t", "f1pa2qi2"],
237
- "Bdixowu": "f1bwkb58",
238
- "cqycoz": ["fiio4mc", "fc8z0qo"],
239
- "Epwjcz": "f1m5ya7j",
240
- "Bwdktmn": ["fc8z0qo", "fiio4mc"],
241
- "ijj6k": "f1k21dld",
242
- "I89eb": ["f1yueqd5", "f16ep8jm"],
243
- "Bp1vogq": "flh92r5",
244
- "Bohd3ja": ["f16ep8jm", "f1yueqd5"],
245
- "B4zgs9e": "fer8lxq"
246
- },
247
- "disabledChecked": {
248
- "Bpudnjh": "fz051tx"
249
- }
250
- }, {
251
- "d": [".f1euv43f{position:absolute;}", ".fcjrtee{width:var(--switch-thumb-size);}", ".fili5n9{height:var(--switch-thumb-size);}", ".f1ewtqcl{box-sizing:border-box;}", ".f44lkw9{border-radius:var(--borderRadiusCircular);}", ".f1i1t8d1{top:50%;}", ".foouk8k{-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);}", ".fd9rb4b{-webkit-transform:translate(50%, -50%);-moz-transform:translate(50%, -50%);-ms-transform:translate(50%, -50%);transform:translate(50%, -50%);}", ".f11zxivh{-webkit-transition:background .1s cubic-bezier(0.33, 0.0, 0.67, 1);transition:background .1s cubic-bezier(0.33, 0.0, 0.67, 1);}", ".f1sdsnyy{touch-action:none;}", ".f1aehjj5{pointer-events:none;}", ".fxf9f1y:before{position:absolute;}", ".frdto5n:before{top:0px;}", ".f8g0ba1:before{left:0px;}", ".ff0gctb:before{right:0px;}", ".f3zr33r:before{bottom:0px;}", ".fmrqcwg:before{border-radius:var(--borderRadiusCircular);}", ".f99sooz:before{content:'';}", ".f1uhpfti:before{opacity:var(--switch-unchecked-opacity);}", ".f11ef69:after{position:absolute;}", ".f1yuyem3:after{top:0px;}", ".f1bp8q63:after{left:0px;}", ".f1oarbwq:after{right:0px;}", ".f13gddrr:after{bottom:0px;}", ".f1y5o2fm:after{border-radius:var(--borderRadiusCircular);}", ".f77y9vx:after{content:'';}", ".frd86tk:after{opacity:var(--switch-checked-opacity);}", ".f1imqj0g:before{background:var(--colorNeutralStrokeAccessible);}", ".fe3g45j:after{background:var(--colorNeutralForegroundOnBrand);}", ".f199l62q:before{border-top-width:1px;}", ".f1pa2qi2:before{border-right-width:1px;}", ".f1ooiv2t:before{border-left-width:1px;}", ".fyqop9u:before{border-bottom-width:1px;}", ".f1bwkb58:before{border-top-style:solid;}", ".fiio4mc:before{border-right-style:solid;}", ".fc8z0qo:before{border-left-style:solid;}", ".f1m5ya7j:before{border-bottom-style:solid;}", ".f1k21dld:before{border-top-color:var(--colorNeutralForegroundDisabled);}", ".f1yueqd5:before{border-right-color:var(--colorNeutralForegroundDisabled);}", ".f16ep8jm:before{border-left-color:var(--colorNeutralForegroundDisabled);}", ".flh92r5:before{border-bottom-color:var(--colorNeutralForegroundDisabled);}", ".fer8lxq:before{background:var(--colorNeutralBackground1);}", ".fz051tx:after{background:var(--colorNeutralForegroundDisabled);}"]
252
- });
253
- /**
254
- * Styles for the activeRail slot
255
- */
256
-
257
-
258
- var useActiveRailStyles = /*#__PURE__*/react_make_styles_1.__styles({
259
- "activeRail": {
260
- "qhf8xq": "f1euv43f",
261
- "oyh7mz": ["fhpx7ww", "f1kctpth"],
262
- "j35jbq": ["f1kctpth", "fhpx7ww"]
98
+ "B3o57yi": "f1bnoopa",
99
+ "Bkqvd7p": "f1e1a42z",
100
+ "Bmy1vo4": "fo99fu7",
101
+ "a9b677": "feqmc2u",
102
+ "Hkqiji": "f1wkgtgk",
103
+ "Bgrs90m": "f17f8g0y",
104
+ "B0zx559": "f1uwej41"
263
105
  }
264
106
  }, {
265
- "d": [".f1euv43f{position:absolute;}", ".fhpx7ww{left:calc(var(--switch-thumb-size) * .7);}", ".f1kctpth{right:calc(var(--switch-thumb-size) * .7);}"]
107
+ "d": [".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}", ".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}", ".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}", ".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".f1ewtqcl{box-sizing:border-box;}", ".f1w9h62z{fill:currentColor;}", ".fi64zpg{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}", ".f4ybsrx{font-size:16px;}", ".fjamq6b{height:20px;}", ".f1aehjj5{pointer-events:none;}", ".f1bnoopa{transition-duration:200ms;}", ".f1e1a42z{transition-timing-function:cubic-bezier(0.33, 0, 0.67, 1);}", ".fo99fu7{transition-property:background,border,color;}", ".feqmc2u{width:40px;}", ".f1wkgtgk>*{transition-duration:200ms;}", ".f17f8g0y>*{transition-timing-function:cubic-bezier(0.33, 0, 0.67, 1);}", ".f1uwej41>*{transition-property:transform;}"]
266
108
  });
267
- /**
268
- * Styles for the hidden input slot
269
- */
270
-
271
109
 
272
- var useInputStyle = /*#__PURE__*/react_make_styles_1.__styles({
273
- "input": {
274
- "abs64n": "fk73vx1",
275
- "qhf8xq": "f1euv43f",
276
- "z8tnut": "f1g0x7ka",
277
- "z189sj": ["fhxju0i", "f1cnd47f"],
278
- "Byoj8tv": "f1qch9an",
279
- "uwmqm3": ["f1cnd47f", "fhxju0i"],
110
+ const useInputStyles = /*#__PURE__*/react_1.__styles({
111
+ "base": {
112
+ "B7ck84d": "f1ewtqcl",
113
+ "Bceei9c": "f1k6fduh",
114
+ "Bqenvij": "f1l02sjl",
115
+ "oyh7mz": ["f1vgc2s3", "f1e31b4d"],
280
116
  "B6of3ja": "f1hu3pq6",
281
117
  "t21cq0": ["f11qmguv", "f1tyq0we"],
282
118
  "jrapky": "f19f4twv",
283
119
  "Frg6f3": ["f1tyq0we", "f11qmguv"],
120
+ "abs64n": "fk73vx1",
121
+ "qhf8xq": "f1euv43f",
122
+ "Bhzewxz": "f15twtuk",
284
123
  "a9b677": "fly5x3f",
285
- "Bqenvij": "f1l02sjl",
286
- "lpbzjs": "f1sdsnyy",
287
- "Bkecrkj": "f1aehjj5"
124
+ "fv8x6k": ["f1owqbgs", "f1a7g3i4"],
125
+ "ezr58z": "fvxnmui",
126
+ "Blezdol": "f1cxq9o1",
127
+ "B8f96ig": "f1ks1zsm",
128
+ "po7uxr": "fiqfi0i",
129
+ "inq7wv": "f9aagkg",
130
+ "Cdugon": ["fgv8l18", "f1p3jmxb"],
131
+ "ptsei1": "f11yi64e",
132
+ "bl04ud": ["f1p3jmxb", "fgv8l18"],
133
+ "Bu7dm46": "fthrly9",
134
+ "Gwwlnz": "fhdp2ht",
135
+ "wb1her": "f1rzj6jj",
136
+ "Bmieemq": ["f1jywl1l", "f13d626x"],
137
+ "Bdgjgzg": "f1ivtmze",
138
+ "B05cvx7": ["f13d626x", "f1jywl1l"],
139
+ "Bx4eqiv": "f1uvnr57",
140
+ "xhnoxe": "frhcydi",
141
+ "Hnmc4c": ["f1pvt3n7", "f14i0clv"],
142
+ "By8gkvz": "fq9gcw4",
143
+ "lekrm4": ["f14i0clv", "f1pvt3n7"],
144
+ "Bei91sp": "fft44l1",
145
+ "Bksztz9": "fwlrvmy",
146
+ "h3gz1v": "f1c4gun2",
147
+ "Cw6427": ["flhgtcm", "fx1zdd8"],
148
+ "Bpbd9g9": "fayrp2e",
149
+ "ssulyh": ["fx1zdd8", "flhgtcm"],
150
+ "vq7rp1": "f1vk2knj",
151
+ "ynrfiu": "firogjh",
152
+ "Bf5tpyt": ["f1crd6p1", "for8100"],
153
+ "Brhic7g": "f1v5j4zb",
154
+ "Cqvc5u": ["for8100", "f1crd6p1"],
155
+ "B4e80u0": "f1rt7qcq",
156
+ "Bwj41i9": "fxvotg6",
157
+ "B2iiaa1": ["fk9ur30", "f3u5smv"],
158
+ "Bejmxmv": "fdtj07x",
159
+ "rqauf5": ["f3u5smv", "fk9ur30"],
160
+ "wo5z87": "fv5mb1o",
161
+ "B50joxe": ["f1i2l8ou", "fxj1kmv"],
162
+ "Bmuizf1": "fku528b",
163
+ "f4urji": ["fxj1kmv", "f1i2l8ou"],
164
+ "Bxiq1ly": "fabcpc0",
165
+ "vbmdq8": "f17xwy6w",
166
+ "u4vbwo": ["fipwscc", "fab39iv"],
167
+ "Bfjga03": "f1th5z1l",
168
+ "F0s3py": ["fab39iv", "fipwscc"]
169
+ }
170
+ }, {
171
+ "d": [".f1ewtqcl{box-sizing:border-box;}", ".f1k6fduh{cursor:pointer;}", ".f1l02sjl{height:100%;}", ".f1vgc2s3{left:0;}", ".f1e31b4d{right:0;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".fk73vx1{opacity:0;}", ".f1euv43f{position:absolute;}", ".f15twtuk{top:0;}", ".fly5x3f{width:100%;}", ".f1owqbgs:checked~.fui-Switch__indicator>*{-webkit-transform:translateX(22px);-moz-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px);}", ".f1a7g3i4:checked~.fui-Switch__indicator>*{-webkit-transform:translateX(-22px);-moz-transform:translateX(-22px);-ms-transform:translateX(-22px);transform:translateX(-22px);}", ".fvxnmui:disabled{cursor:default;}", ".f1cxq9o1:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}", ".f1ks1zsm:disabled~.fui-Switch__label{color:var(--colorNeutralForegroundDisabled);}", ".fiqfi0i:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);}", ".f9aagkg:enabled:not(:checked)~.fui-Switch__indicator{border-top-color:var(--colorNeutralStrokeAccessible);}", ".fgv8l18:enabled:not(:checked)~.fui-Switch__indicator{border-right-color:var(--colorNeutralStrokeAccessible);}", ".f1p3jmxb:enabled:not(:checked)~.fui-Switch__indicator{border-left-color:var(--colorNeutralStrokeAccessible);}", ".f11yi64e:enabled:not(:checked)~.fui-Switch__indicator{border-bottom-color:var(--colorNeutralStrokeAccessible);}", ".fthrly9:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}", ".fhdp2ht:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);}", ".f1rzj6jj:enabled:not(:checked):hover~.fui-Switch__indicator{border-top-color:var(--colorNeutralStrokeAccessibleHover);}", ".f1jywl1l:enabled:not(:checked):hover~.fui-Switch__indicator{border-right-color:var(--colorNeutralStrokeAccessibleHover);}", ".f13d626x:enabled:not(:checked):hover~.fui-Switch__indicator{border-left-color:var(--colorNeutralStrokeAccessibleHover);}", ".f1ivtmze:enabled:not(:checked):hover~.fui-Switch__indicator{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}", ".f1uvnr57:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);}", ".frhcydi:enabled:not(:checked):hover:active~.fui-Switch__indicator{border-top-color:var(--colorNeutralStrokeAccessiblePressed);}", ".f1pvt3n7:enabled:not(:checked):hover:active~.fui-Switch__indicator{border-right-color:var(--colorNeutralStrokeAccessiblePressed);}", ".f14i0clv:enabled:not(:checked):hover:active~.fui-Switch__indicator{border-left-color:var(--colorNeutralStrokeAccessiblePressed);}", ".fq9gcw4:enabled:not(:checked):hover:active~.fui-Switch__indicator{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}", ".fft44l1:enabled:checked~.fui-Switch__indicator{background-color:var(--colorBrandBackground);}", ".fwlrvmy:enabled:checked~.fui-Switch__indicator{color:var(--colorNeutralForegroundOnBrand);}", ".f1c4gun2:enabled:checked~.fui-Switch__indicator{border-top-color:var(--colorTransparentStroke);}", ".flhgtcm:enabled:checked~.fui-Switch__indicator{border-right-color:var(--colorTransparentStroke);}", ".fx1zdd8:enabled:checked~.fui-Switch__indicator{border-left-color:var(--colorTransparentStroke);}", ".fayrp2e:enabled:checked~.fui-Switch__indicator{border-bottom-color:var(--colorTransparentStroke);}", ".f1vk2knj:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorBrandBackgroundHover);}", ".firogjh:enabled:checked:hover~.fui-Switch__indicator{border-top-color:var(--colorTransparentStrokeInteractive);}", ".f1crd6p1:enabled:checked:hover~.fui-Switch__indicator{border-right-color:var(--colorTransparentStrokeInteractive);}", ".for8100:enabled:checked:hover~.fui-Switch__indicator{border-left-color:var(--colorTransparentStrokeInteractive);}", ".f1v5j4zb:enabled:checked:hover~.fui-Switch__indicator{border-bottom-color:var(--colorTransparentStrokeInteractive);}", ".f1rt7qcq:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorBrandBackgroundPressed);}", ".fxvotg6:enabled:checked:hover:active~.fui-Switch__indicator{border-top-color:var(--colorTransparentStrokeInteractive);}", ".fk9ur30:enabled:checked:hover:active~.fui-Switch__indicator{border-right-color:var(--colorTransparentStrokeInteractive);}", ".f3u5smv:enabled:checked:hover:active~.fui-Switch__indicator{border-left-color:var(--colorTransparentStrokeInteractive);}", ".fdtj07x:enabled:checked:hover:active~.fui-Switch__indicator{border-bottom-color:var(--colorTransparentStrokeInteractive);}", ".fv5mb1o:disabled:not(:checked)~.fui-Switch__indicator{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1i2l8ou:disabled:not(:checked)~.fui-Switch__indicator{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fxj1kmv:disabled:not(:checked)~.fui-Switch__indicator{border-left-color:var(--colorNeutralStrokeDisabled);}", ".fku528b:disabled:not(:checked)~.fui-Switch__indicator{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".fabcpc0:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);}", ".f17xwy6w:disabled:checked~.fui-Switch__indicator{border-top-color:var(--colorTransparentStrokeDisabled);}", ".fipwscc:disabled:checked~.fui-Switch__indicator{border-right-color:var(--colorTransparentStrokeDisabled);}", ".fab39iv:disabled:checked~.fui-Switch__indicator{border-left-color:var(--colorTransparentStrokeDisabled);}", ".f1th5z1l:disabled:checked~.fui-Switch__indicator{border-bottom-color:var(--colorTransparentStrokeDisabled);}"]
172
+ });
173
+
174
+ const useLabelStyles = /*#__PURE__*/react_1.__styles({
175
+ "base": {
176
+ "famaaq": "f1xqy1su"
288
177
  }
289
178
  }, {
290
- "d": [".fk73vx1{opacity:0;}", ".f1euv43f{position:absolute;}", ".f1g0x7ka{padding-top:0;}", ".fhxju0i{padding-right:0;}", ".f1cnd47f{padding-left:0;}", ".f1qch9an{padding-bottom:0;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".fly5x3f{width:100%;}", ".f1l02sjl{height:100%;}", ".f1sdsnyy{touch-action:none;}", ".f1aehjj5{pointer-events:none;}"]
179
+ "d": [".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"]
291
180
  });
292
181
  /**
293
182
  * Apply styling to the Switch slots based on the state
294
183
  */
295
184
 
296
185
 
297
- var useSwitchStyles = function (state) {
298
- var _a = state.input,
299
- checked = _a.checked,
300
- disabled = _a.disabled;
301
- var rootStyles = useRootStyles();
302
- var trackStyles = useTrackStyles();
303
- var thumbWrapperStyles = useThumbWrapperStyles();
304
- var thumbStyles = useThumbStyles();
305
- var activeRailStyles = useActiveRailStyles();
306
- var inputStyles = useInputStyle();
307
- state.root.className = react_make_styles_1.mergeClasses(rootClassName + (checked ? ' checked' : ''), rootStyles.root, rootStyles.focusIndicator, !disabled && rootStyles.checked, !disabled && rootStyles.unchecked, disabled ? rootStyles.disabled : rootStyles.enabled, state.root.className);
308
- state.track.className = react_make_styles_1.mergeClasses(trackClassName, trackStyles.track, !disabled && trackStyles.checked, !disabled && trackStyles.unchecked, disabled && trackStyles.disabledChecked, disabled && trackStyles.disabledUnchecked, state.track.className);
309
- state.thumbWrapper.className = react_make_styles_1.mergeClasses(thumbWrapperStyles.thumbWrapper, state.thumbWrapper.className);
310
- state.thumb.className = react_make_styles_1.mergeClasses(thumbClassName, thumbStyles.thumb, !disabled && thumbStyles.checked, !disabled && thumbStyles.unchecked, disabled && thumbStyles.disabledChecked, disabled && thumbStyles.disabledUnchecked, state.thumb.className);
311
- state.activeRail.className = react_make_styles_1.mergeClasses(activeRailStyles.activeRail, state.activeRail.className);
312
- state.input.className = react_make_styles_1.mergeClasses(inputStyles.input, state.input.className);
186
+ const useSwitchStyles_unstable = state => {
187
+ const rootStyles = useRootStyles();
188
+ const indicatorStyles = useIndicatorStyles();
189
+ const inputStyles = useInputStyles();
190
+ const labelStyles = useLabelStyles();
191
+ const {
192
+ labelPosition
193
+ } = state;
194
+ state.root.className = react_1.mergeClasses(exports.switchClassNames.root, rootStyles.base, rootStyles[labelPosition], state.root.className);
195
+ state.indicator.className = react_1.mergeClasses(exports.switchClassNames.indicator, indicatorStyles.base, state.indicator.className);
196
+ state.input.className = react_1.mergeClasses(exports.switchClassNames.input, inputStyles.base, state.input.className);
197
+
198
+ if (state.label) {
199
+ state.label.className = react_1.mergeClasses(exports.switchClassNames.label, labelStyles.base, state.label.className);
200
+ }
201
+
313
202
  return state;
314
203
  };
315
204
 
316
- exports.useSwitchStyles = useSwitchStyles;
205
+ exports.useSwitchStyles_unstable = useSwitchStyles_unstable;
317
206
  //# sourceMappingURL=useSwitchStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Switch/useSwitchStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AAGA,IAAM,aAAa,GAAG,gBAAtB;AACA,IAAM,cAAc,GAAG,iBAAvB;AACA,IAAM,cAAc,GAAG,iBAAvB;AAEA;;AAEG;;AACH,IAAM,aAAa,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AA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AAuD,KAAK,CAAC,KAAN,CAAY,SAAnE,CAAxB;;AAEA,MAAI,KAAK,CAAC,KAAV,EAAiB;AACf,IAAA,KAAK,CAAC,KAAN,CAAY,SAAZ,GAAwB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,gBAAA,CAAiB,KAA9B,EAAqC,WAAW,CAAC,IAAjD,EAAuD,KAAK,CAAC,KAAN,CAAY,SAAnE,CAAxB;AACD;;AAED,SAAO,KAAP;AACD,CAxBM;;AAAM,OAAA,CAAA,wBAAA,GAAwB,wBAAxB","sourcesContent":["import { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport type { SwitchSlots, SwitchState } from './Switch.types';\n\nexport const switchClassNames: {\n [SlotName in keyof SwitchSlots]-?: string;\n} = {\n root: 'fui-Switch',\n indicator: 'fui-Switch__indicator',\n input: 'fui-Switch__input',\n label: 'fui-Switch__label',\n};\n\n// TODO temporary export to pass conformance test.\nexport const switchClassName = switchClassNames.root;\n\n// TODO replace these spacing constants with theme values once they're on the theme.\nconst spacingXS = 4;\nconst spacingS = 8;\nconst spacingM = 12;\n\n// Thumb and track sizes used by the component.\nconst spaceBetweenThumbAndTrack = 2;\nconst thumbSize = 14;\nconst trackHeight = 20;\nconst trackWidth = 40;\n\nconst useRootStyles = makeStyles({\n base: {\n boxSizing: 'border-box',\n columnGap: `${spacingM}px`,\n display: 'inline-flex',\n ...shorthands.padding(`${spacingS}px`),\n position: 'relative',\n\n ...createFocusOutlineStyle({ style: {}, selector: 'focus-within' }),\n },\n\n // Label position variations\n above: {\n flexDirection: 'column',\n paddingTop: `${spacingXS}px`,\n rowGap: `${spacingXS}px`,\n },\n after: {\n alignItems: 'flex-start',\n columnGap: `${spacingM}px`,\n flexDirection: 'row',\n },\n before: {\n alignItems: 'flex-start',\n columnGap: `${spacingM}px`,\n flexDirection: 'row',\n },\n});\n\nconst useIndicatorStyles = makeStyles({\n base: {\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n ...shorthands.borderStyle('solid'),\n ...shorthands.borderWidth('1px'),\n boxSizing: 'border-box',\n fill: 'currentColor',\n flexShrink: 0,\n fontSize: `${thumbSize + spaceBetweenThumbAndTrack}px`,\n height: `${trackHeight}px`,\n pointerEvents: 'none',\n transitionDuration: '200ms',\n transitionTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)',\n transitionProperty: 'background, border, color',\n width: `${trackWidth}px`,\n\n '> *': {\n transitionDuration: '200ms',\n transitionTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)',\n transitionProperty: 'transform',\n },\n },\n});\n\nconst useInputStyles = makeStyles({\n base: {\n boxSizing: 'border-box',\n cursor: 'pointer',\n height: '100%',\n left: 0,\n ...shorthands.margin(0),\n opacity: 0,\n position: 'absolute',\n top: 0,\n width: '100%',\n\n // Checked (both enabled and disabled)\n ':checked': {\n [`& ~ .${switchClassNames.indicator}`]: {\n '> *': {\n transform: `translateX(${trackWidth - thumbSize - spaceBetweenThumbAndTrack * 2}px)`,\n },\n },\n },\n\n // Disabled (both checked and unchecked)\n ':disabled': {\n cursor: 'default',\n\n [`& ~ .${switchClassNames.indicator}`]: {\n color: tokens.colorNeutralForegroundDisabled,\n },\n\n [`& ~ .${switchClassNames.label}`]: {\n color: tokens.colorNeutralForegroundDisabled,\n },\n },\n\n // Enabled and unchecked\n ':enabled:not(:checked)': {\n [`& ~ .${switchClassNames.indicator}`]: {\n color: tokens.colorNeutralStrokeAccessible,\n ...shorthands.borderColor(tokens.colorNeutralStrokeAccessible),\n },\n\n [`& ~ .${switchClassNames.label}`]: {\n color: tokens.colorNeutralForeground1,\n },\n\n ':hover': {\n [`& ~ .${switchClassNames.indicator}`]: {\n color: tokens.colorNeutralStrokeAccessibleHover,\n ...shorthands.borderColor(tokens.colorNeutralStrokeAccessibleHover),\n },\n },\n\n ':hover:active': {\n [`& ~ .${switchClassNames.indicator}`]: {\n color: tokens.colorNeutralStrokeAccessiblePressed,\n ...shorthands.borderColor(tokens.colorNeutralStrokeAccessiblePressed),\n },\n },\n },\n\n // Enabled and checked\n ':enabled:checked': {\n [`& ~ .${switchClassNames.indicator}`]: {\n backgroundColor: tokens.colorBrandBackground,\n color: tokens.colorNeutralForegroundOnBrand,\n ...shorthands.borderColor(tokens.colorTransparentStroke),\n },\n\n ':hover': {\n [`& ~ .${switchClassNames.indicator}`]: {\n backgroundColor: tokens.colorBrandBackgroundHover,\n ...shorthands.borderColor(tokens.colorTransparentStrokeInteractive),\n },\n },\n\n ':hover:active': {\n [`& ~ .${switchClassNames.indicator}`]: {\n backgroundColor: tokens.colorBrandBackgroundPressed,\n ...shorthands.borderColor(tokens.colorTransparentStrokeInteractive),\n },\n },\n },\n\n // Disabled and unchecked\n ':disabled:not(:checked)': {\n [`& ~ .${switchClassNames.indicator}`]: {\n ...shorthands.borderColor(tokens.colorNeutralStrokeDisabled),\n },\n },\n\n // Disabled and checked\n ':disabled:checked': {\n [`& ~ .${switchClassNames.indicator}`]: {\n backgroundColor: tokens.colorNeutralBackgroundDisabled,\n ...shorthands.borderColor(tokens.colorTransparentStrokeDisabled),\n },\n },\n },\n});\n\nconst useLabelStyles = makeStyles({\n base: {\n userSelect: 'none',\n },\n});\n\n/**\n * Apply styling to the Switch slots based on the state\n */\nexport const useSwitchStyles_unstable = (state: SwitchState): SwitchState => {\n const rootStyles = useRootStyles();\n const indicatorStyles = useIndicatorStyles();\n const inputStyles = useInputStyles();\n const labelStyles = useLabelStyles();\n\n const { labelPosition } = state;\n\n state.root.className = mergeClasses(\n switchClassNames.root,\n rootStyles.base,\n rootStyles[labelPosition],\n state.root.className,\n );\n\n state.indicator.className = mergeClasses(switchClassNames.indicator, indicatorStyles.base, state.indicator.className);\n\n state.input.className = mergeClasses(switchClassNames.input, inputStyles.base, state.input.className);\n\n if (state.label) {\n state.label.className = mergeClasses(switchClassNames.label, labelStyles.base, state.label.className);\n }\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Switch"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,UAAA,CAAA,EAAA,OAAA","sourcesContent":["export {};\nexport * from './Switch';\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-switch",
3
- "version": "9.0.0-nightly.f81b28ceb3.1",
3
+ "version": "9.0.0-rc.4",
4
4
  "description": "Fluent UI React Switch component.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -19,20 +19,16 @@
19
19
  "just": "just-scripts",
20
20
  "lint": "just-scripts lint",
21
21
  "start": "yarn storybook",
22
- "test": "jest",
22
+ "test": "jest --passWithNoTests",
23
23
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
24
- "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-switch/src && yarn docs",
25
- "storybook": "start-storybook"
24
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-switch/src && yarn docs",
25
+ "storybook": "node ../../scripts/storybook/runner",
26
+ "type-check": "tsc -b tsconfig.json"
26
27
  },
27
28
  "devDependencies": {
28
- "@fluentui/babel-make-styles": "9.0.0-nightly.f81b28ceb3.1",
29
29
  "@fluentui/eslint-plugin": "*",
30
- "@fluentui/jest-serializer-make-styles": "9.0.0-nightly.f81b28ceb3.1",
31
30
  "@fluentui/react-conformance": "*",
32
- "@fluentui/react-conformance-make-styles": "9.0.0-nightly.f81b28ceb3.1",
33
- "@fluentui/react-label": "9.0.0-nightly.f81b28ceb3.1",
34
- "@fluentui/react-provider": "9.0.0-nightly.f81b28ceb3.1",
35
- "@fluentui/react-theme": "9.0.0-nightly.f81b28ceb3.1",
31
+ "@fluentui/react-conformance-griffel": "9.0.0-beta.3",
36
32
  "@fluentui/scripts": "^1.0.0",
37
33
  "@types/enzyme": "3.10.3",
38
34
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -46,10 +42,12 @@
46
42
  "react-test-renderer": "^16.3.0"
47
43
  },
48
44
  "dependencies": {
49
- "@fluentui/react-make-styles": "9.0.0-nightly.f81b28ceb3.1",
50
- "@fluentui/react-shared-contexts": "9.0.0-nightly.f81b28ceb3.1",
51
- "@fluentui/react-tabster": "9.0.0-nightly.f81b28ceb3.1",
52
- "@fluentui/react-utilities": "9.0.0-nightly.f81b28ceb3.1",
45
+ "@fluentui/react-icons": "^2.0.159-beta.10",
46
+ "@fluentui/react-label": "9.0.0-beta.8",
47
+ "@fluentui/react-tabster": "9.0.0-rc.4",
48
+ "@fluentui/react-theme": "9.0.0-rc.3",
49
+ "@fluentui/react-utilities": "9.0.0-rc.4",
50
+ "@griffel/react": "1.0.0",
53
51
  "tslib": "^2.1.0"
54
52
  },
55
53
  "peerDependencies": {
@@ -59,7 +57,6 @@
59
57
  "react-dom": ">=16.8.0 <18.0.0"
60
58
  },
61
59
  "beachball": {
62
- "tag": "beta",
63
60
  "disallowedChangeTypes": [
64
61
  "major",
65
62
  "minor",
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;