@react-spectrum/switch 3.5.7 → 3.5.8
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/dist/Switch.main.js +1 -1
- package/dist/Switch.mjs +1 -1
- package/dist/Switch.module.js +1 -1
- package/dist/toggle_vars_css.main.js +12 -12
- package/dist/toggle_vars_css.mjs +12 -12
- package/dist/toggle_vars_css.module.js +12 -12
- package/dist/{vars.f7257b6a.css → vars.ee098a37.css} +82 -82
- package/dist/{vars.f7257b6a.css.map → vars.ee098a37.css.map} +1 -1
- package/package.json +10 -11
- package/LICENSE +0 -201
package/dist/Switch.main.js
CHANGED
package/dist/Switch.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./vars.
|
|
1
|
+
import "./vars.ee098a37.css";
|
|
2
2
|
import $cEq2J$toggle_vars_cssmodulejs from "./toggle_vars_css.mjs";
|
|
3
3
|
import {useStyleProps as $cEq2J$useStyleProps, useFocusableRef as $cEq2J$useFocusableRef, classNames as $cEq2J$classNames} from "@react-spectrum/utils";
|
|
4
4
|
import {FocusRing as $cEq2J$FocusRing} from "@react-aria/focus";
|
package/dist/Switch.module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./vars.
|
|
1
|
+
import "./vars.ee098a37.css";
|
|
2
2
|
import $cEq2J$toggle_vars_cssmodulejs from "./toggle_vars_css.module.js";
|
|
3
3
|
import {useStyleProps as $cEq2J$useStyleProps, useFocusableRef as $cEq2J$useFocusableRef, classNames as $cEq2J$classNames} from "@react-spectrum/utils";
|
|
4
4
|
import {FocusRing as $cEq2J$FocusRing} from "@react-aria/focus";
|
|
@@ -27,18 +27,18 @@ var $faeb9d1b92049ba7$export$ce1b1dcfc10f3df4;
|
|
|
27
27
|
var $faeb9d1b92049ba7$export$38df7ea4ffef819a;
|
|
28
28
|
var $faeb9d1b92049ba7$export$8f1a69021a3897b2;
|
|
29
29
|
var $faeb9d1b92049ba7$export$b82d06d1b520a22f;
|
|
30
|
-
$faeb9d1b92049ba7$export$f39a09f249340e2a = `
|
|
31
|
-
$faeb9d1b92049ba7$export$8c4ee2c50c22c514 = `
|
|
32
|
-
$faeb9d1b92049ba7$export$b8813cd5d7824ce7 = `
|
|
33
|
-
$faeb9d1b92049ba7$export$4109102f950813a6 = `
|
|
34
|
-
$faeb9d1b92049ba7$export$24c7f46a6e3605dd = `
|
|
35
|
-
$faeb9d1b92049ba7$export$2927016961429360 = `
|
|
36
|
-
$faeb9d1b92049ba7$export$89a9162656c0c38c = `
|
|
37
|
-
$faeb9d1b92049ba7$export$dc5a33fddabf5882 = `
|
|
38
|
-
$faeb9d1b92049ba7$export$ce1b1dcfc10f3df4 = `
|
|
39
|
-
$faeb9d1b92049ba7$export$38df7ea4ffef819a = `
|
|
40
|
-
$faeb9d1b92049ba7$export$8f1a69021a3897b2 = `
|
|
41
|
-
$faeb9d1b92049ba7$export$b82d06d1b520a22f = `
|
|
30
|
+
$faeb9d1b92049ba7$export$f39a09f249340e2a = `TIUVWG_focus-ring`;
|
|
31
|
+
$faeb9d1b92049ba7$export$8c4ee2c50c22c514 = `TIUVWG_i18nFontFamily`;
|
|
32
|
+
$faeb9d1b92049ba7$export$b8813cd5d7824ce7 = `TIUVWG_is-hovered`;
|
|
33
|
+
$faeb9d1b92049ba7$export$4109102f950813a6 = `TIUVWG_spectrum-FocusRing-ring`;
|
|
34
|
+
$faeb9d1b92049ba7$export$24c7f46a6e3605dd = `TIUVWG_spectrum-FocusRing ${$faeb9d1b92049ba7$export$4109102f950813a6}`;
|
|
35
|
+
$faeb9d1b92049ba7$export$2927016961429360 = `TIUVWG_spectrum-FocusRing--quiet`;
|
|
36
|
+
$faeb9d1b92049ba7$export$89a9162656c0c38c = `TIUVWG_spectrum-ToggleSwitch`;
|
|
37
|
+
$faeb9d1b92049ba7$export$dc5a33fddabf5882 = `TIUVWG_spectrum-ToggleSwitch--ab`;
|
|
38
|
+
$faeb9d1b92049ba7$export$ce1b1dcfc10f3df4 = `TIUVWG_spectrum-ToggleSwitch--quiet`;
|
|
39
|
+
$faeb9d1b92049ba7$export$38df7ea4ffef819a = `TIUVWG_spectrum-ToggleSwitch-input`;
|
|
40
|
+
$faeb9d1b92049ba7$export$8f1a69021a3897b2 = `TIUVWG_spectrum-ToggleSwitch-label`;
|
|
41
|
+
$faeb9d1b92049ba7$export$b82d06d1b520a22f = `TIUVWG_spectrum-ToggleSwitch-switch`;
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
//# sourceMappingURL=toggle_vars_css.main.js.map
|
package/dist/toggle_vars_css.mjs
CHANGED
|
@@ -28,18 +28,18 @@ var $dfcff93ab25bb9b3$export$ce1b1dcfc10f3df4;
|
|
|
28
28
|
var $dfcff93ab25bb9b3$export$38df7ea4ffef819a;
|
|
29
29
|
var $dfcff93ab25bb9b3$export$8f1a69021a3897b2;
|
|
30
30
|
var $dfcff93ab25bb9b3$export$b82d06d1b520a22f;
|
|
31
|
-
$dfcff93ab25bb9b3$export$f39a09f249340e2a = `
|
|
32
|
-
$dfcff93ab25bb9b3$export$8c4ee2c50c22c514 = `
|
|
33
|
-
$dfcff93ab25bb9b3$export$b8813cd5d7824ce7 = `
|
|
34
|
-
$dfcff93ab25bb9b3$export$4109102f950813a6 = `
|
|
35
|
-
$dfcff93ab25bb9b3$export$24c7f46a6e3605dd = `
|
|
36
|
-
$dfcff93ab25bb9b3$export$2927016961429360 = `
|
|
37
|
-
$dfcff93ab25bb9b3$export$89a9162656c0c38c = `
|
|
38
|
-
$dfcff93ab25bb9b3$export$dc5a33fddabf5882 = `
|
|
39
|
-
$dfcff93ab25bb9b3$export$ce1b1dcfc10f3df4 = `
|
|
40
|
-
$dfcff93ab25bb9b3$export$38df7ea4ffef819a = `
|
|
41
|
-
$dfcff93ab25bb9b3$export$8f1a69021a3897b2 = `
|
|
42
|
-
$dfcff93ab25bb9b3$export$b82d06d1b520a22f = `
|
|
31
|
+
$dfcff93ab25bb9b3$export$f39a09f249340e2a = `TIUVWG_focus-ring`;
|
|
32
|
+
$dfcff93ab25bb9b3$export$8c4ee2c50c22c514 = `TIUVWG_i18nFontFamily`;
|
|
33
|
+
$dfcff93ab25bb9b3$export$b8813cd5d7824ce7 = `TIUVWG_is-hovered`;
|
|
34
|
+
$dfcff93ab25bb9b3$export$4109102f950813a6 = `TIUVWG_spectrum-FocusRing-ring`;
|
|
35
|
+
$dfcff93ab25bb9b3$export$24c7f46a6e3605dd = `TIUVWG_spectrum-FocusRing ${$dfcff93ab25bb9b3$export$4109102f950813a6}`;
|
|
36
|
+
$dfcff93ab25bb9b3$export$2927016961429360 = `TIUVWG_spectrum-FocusRing--quiet`;
|
|
37
|
+
$dfcff93ab25bb9b3$export$89a9162656c0c38c = `TIUVWG_spectrum-ToggleSwitch`;
|
|
38
|
+
$dfcff93ab25bb9b3$export$dc5a33fddabf5882 = `TIUVWG_spectrum-ToggleSwitch--ab`;
|
|
39
|
+
$dfcff93ab25bb9b3$export$ce1b1dcfc10f3df4 = `TIUVWG_spectrum-ToggleSwitch--quiet`;
|
|
40
|
+
$dfcff93ab25bb9b3$export$38df7ea4ffef819a = `TIUVWG_spectrum-ToggleSwitch-input`;
|
|
41
|
+
$dfcff93ab25bb9b3$export$8f1a69021a3897b2 = `TIUVWG_spectrum-ToggleSwitch-label`;
|
|
42
|
+
$dfcff93ab25bb9b3$export$b82d06d1b520a22f = `TIUVWG_spectrum-ToggleSwitch-switch`;
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
export {$dfcff93ab25bb9b3$exports as default};
|
|
@@ -28,18 +28,18 @@ var $dfcff93ab25bb9b3$export$ce1b1dcfc10f3df4;
|
|
|
28
28
|
var $dfcff93ab25bb9b3$export$38df7ea4ffef819a;
|
|
29
29
|
var $dfcff93ab25bb9b3$export$8f1a69021a3897b2;
|
|
30
30
|
var $dfcff93ab25bb9b3$export$b82d06d1b520a22f;
|
|
31
|
-
$dfcff93ab25bb9b3$export$f39a09f249340e2a = `
|
|
32
|
-
$dfcff93ab25bb9b3$export$8c4ee2c50c22c514 = `
|
|
33
|
-
$dfcff93ab25bb9b3$export$b8813cd5d7824ce7 = `
|
|
34
|
-
$dfcff93ab25bb9b3$export$4109102f950813a6 = `
|
|
35
|
-
$dfcff93ab25bb9b3$export$24c7f46a6e3605dd = `
|
|
36
|
-
$dfcff93ab25bb9b3$export$2927016961429360 = `
|
|
37
|
-
$dfcff93ab25bb9b3$export$89a9162656c0c38c = `
|
|
38
|
-
$dfcff93ab25bb9b3$export$dc5a33fddabf5882 = `
|
|
39
|
-
$dfcff93ab25bb9b3$export$ce1b1dcfc10f3df4 = `
|
|
40
|
-
$dfcff93ab25bb9b3$export$38df7ea4ffef819a = `
|
|
41
|
-
$dfcff93ab25bb9b3$export$8f1a69021a3897b2 = `
|
|
42
|
-
$dfcff93ab25bb9b3$export$b82d06d1b520a22f = `
|
|
31
|
+
$dfcff93ab25bb9b3$export$f39a09f249340e2a = `TIUVWG_focus-ring`;
|
|
32
|
+
$dfcff93ab25bb9b3$export$8c4ee2c50c22c514 = `TIUVWG_i18nFontFamily`;
|
|
33
|
+
$dfcff93ab25bb9b3$export$b8813cd5d7824ce7 = `TIUVWG_is-hovered`;
|
|
34
|
+
$dfcff93ab25bb9b3$export$4109102f950813a6 = `TIUVWG_spectrum-FocusRing-ring`;
|
|
35
|
+
$dfcff93ab25bb9b3$export$24c7f46a6e3605dd = `TIUVWG_spectrum-FocusRing ${$dfcff93ab25bb9b3$export$4109102f950813a6}`;
|
|
36
|
+
$dfcff93ab25bb9b3$export$2927016961429360 = `TIUVWG_spectrum-FocusRing--quiet`;
|
|
37
|
+
$dfcff93ab25bb9b3$export$89a9162656c0c38c = `TIUVWG_spectrum-ToggleSwitch`;
|
|
38
|
+
$dfcff93ab25bb9b3$export$dc5a33fddabf5882 = `TIUVWG_spectrum-ToggleSwitch--ab`;
|
|
39
|
+
$dfcff93ab25bb9b3$export$ce1b1dcfc10f3df4 = `TIUVWG_spectrum-ToggleSwitch--quiet`;
|
|
40
|
+
$dfcff93ab25bb9b3$export$38df7ea4ffef819a = `TIUVWG_spectrum-ToggleSwitch-input`;
|
|
41
|
+
$dfcff93ab25bb9b3$export$8f1a69021a3897b2 = `TIUVWG_spectrum-ToggleSwitch-label`;
|
|
42
|
+
$dfcff93ab25bb9b3$export$b82d06d1b520a22f = `TIUVWG_spectrum-ToggleSwitch-switch`;
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
export {$dfcff93ab25bb9b3$exports as default};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
.
|
|
1
|
+
.TIUVWG_i18nFontFamily {
|
|
2
2
|
font-synthesis: weight;
|
|
3
3
|
font-family: adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
6
|
+
.TIUVWG_i18nFontFamily:lang(ar) {
|
|
7
7
|
font-family: myriad-arabic, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.
|
|
10
|
+
.TIUVWG_i18nFontFamily:lang(he) {
|
|
11
11
|
font-family: myriad-hebrew, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.
|
|
14
|
+
.TIUVWG_i18nFontFamily:lang(zh) {
|
|
15
15
|
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.
|
|
18
|
+
.TIUVWG_i18nFontFamily:lang(zh-Hans) {
|
|
19
19
|
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
22
|
+
.TIUVWG_i18nFontFamily:lang(zh-Hant) {
|
|
23
23
|
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.
|
|
26
|
+
.TIUVWG_i18nFontFamily:lang(zh-SG), .TIUVWG_i18nFontFamily:lang(zh-CN) {
|
|
27
27
|
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
.TIUVWG_i18nFontFamily:lang(ko) {
|
|
31
31
|
font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.
|
|
34
|
+
.TIUVWG_i18nFontFamily:lang(ja) {
|
|
35
35
|
font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.
|
|
38
|
+
.TIUVWG_spectrum-FocusRing-ring {
|
|
39
39
|
--spectrum-focus-ring-border-radius: var(--spectrum-textfield-border-radius, var(--spectrum-alias-border-radius-regular));
|
|
40
40
|
--spectrum-focus-ring-gap: var(--spectrum-alias-input-focusring-gap);
|
|
41
41
|
--spectrum-focus-ring-size: var(--spectrum-alias-input-focusring-size);
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
--spectrum-focus-ring-color: var(--spectrum-high-contrast-focus-ring-color, var(--spectrum-alias-focus-ring-color, var(--spectrum-alias-focus-color)));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.
|
|
46
|
+
.TIUVWG_spectrum-FocusRing-ring:after {
|
|
47
47
|
border-radius: calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));
|
|
48
48
|
content: "";
|
|
49
49
|
margin: calc(-1 * var(--spectrum-focus-ring-border-size));
|
|
@@ -54,31 +54,31 @@
|
|
|
54
54
|
inset: 0;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.
|
|
57
|
+
.TIUVWG_spectrum-FocusRing.TIUVWG_focus-ring:after {
|
|
58
58
|
margin: calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size));
|
|
59
59
|
box-shadow: 0 0 0 var(--spectrum-focus-ring-size) var(--spectrum-focus-ring-color);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.
|
|
62
|
+
.TIUVWG_spectrum-FocusRing--quiet:after {
|
|
63
63
|
border-radius: 0;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.
|
|
66
|
+
.TIUVWG_spectrum-FocusRing--quiet.TIUVWG_focus-ring:after {
|
|
67
67
|
margin: 0 0 calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size)) 0;
|
|
68
68
|
box-shadow: 0 var(--spectrum-focus-ring-size) 0 var(--spectrum-focus-ring-color);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
@media (forced-colors: active) {
|
|
72
|
-
.
|
|
72
|
+
.TIUVWG_spectrum-FocusRing, .TIUVWG_spectrum-FocusRing-ring, .TIUVWG_spectrum-FocusRing--quiet {
|
|
73
73
|
--spectrum-high-contrast-focus-ring-color: Highlight;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
:is(.
|
|
76
|
+
:is(.TIUVWG_spectrum-FocusRing, .TIUVWG_spectrum-FocusRing-ring, .TIUVWG_spectrum-FocusRing--quiet):after {
|
|
77
77
|
forced-color-adjust: none;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.
|
|
81
|
+
.TIUVWG_spectrum-ToggleSwitch {
|
|
82
82
|
min-block-size: var(--spectrum-switch-height, var(--spectrum-global-dimension-size-400));
|
|
83
83
|
vertical-align: top;
|
|
84
84
|
isolation: isolate;
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
position: relative;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.
|
|
92
|
+
.TIUVWG_spectrum-ToggleSwitch-input {
|
|
93
93
|
box-sizing: border-box;
|
|
94
94
|
opacity: .0001;
|
|
95
95
|
z-index: 1;
|
|
@@ -102,39 +102,39 @@
|
|
|
102
102
|
top: 0;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
.
|
|
105
|
+
.TIUVWG_spectrum-ToggleSwitch-input:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
106
106
|
left: 0;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.
|
|
109
|
+
.TIUVWG_spectrum-ToggleSwitch-input:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
110
110
|
left: 0;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
.
|
|
113
|
+
.TIUVWG_spectrum-ToggleSwitch-input:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
114
114
|
right: 0;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
.
|
|
117
|
+
.TIUVWG_spectrum-ToggleSwitch-input:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
118
118
|
right: 0;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
[dir="ltr"] :is(.
|
|
121
|
+
[dir="ltr"] :is(.TIUVWG_spectrum-ToggleSwitch-input:checked + .TIUVWG_spectrum-ToggleSwitch-switch):before {
|
|
122
122
|
transform: translateX(calc(var(--spectrum-switch-track-width) - 100%));
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
[dir="rtl"] :is(.
|
|
125
|
+
[dir="rtl"] :is(.TIUVWG_spectrum-ToggleSwitch-input:checked + .TIUVWG_spectrum-ToggleSwitch-switch):before {
|
|
126
126
|
transform: translateX(calc(100% - var(--spectrum-switch-track-width)));
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
.
|
|
129
|
+
.TIUVWG_spectrum-ToggleSwitch-input:disabled, .TIUVWG_spectrum-ToggleSwitch-input[disabled] {
|
|
130
130
|
cursor: default;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
.
|
|
133
|
+
.TIUVWG_spectrum-ToggleSwitch-input.TIUVWG_focus-ring + .TIUVWG_spectrum-ToggleSwitch-switch:after {
|
|
134
134
|
margin: calc(var(--spectrum-alias-focus-ring-gap, var(--spectrum-global-dimension-static-size-25)) * -1);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.
|
|
137
|
+
.TIUVWG_spectrum-ToggleSwitch-label {
|
|
138
138
|
text-align: start;
|
|
139
139
|
margin: 0 var(--spectrum-switch-text-gap, var(--spectrum-global-dimension-size-125));
|
|
140
140
|
font-size: var(--spectrum-switch-text-size, var(--spectrum-alias-font-size-default));
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
line-height: 1.49;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
.
|
|
146
|
+
.TIUVWG_spectrum-ToggleSwitch-switch {
|
|
147
147
|
box-sizing: border-box;
|
|
148
148
|
inline-size: var(--spectrum-switch-track-width);
|
|
149
149
|
margin: calc((var(--spectrum-switch-height, var(--spectrum-global-dimension-size-400)) - var(--spectrum-switch-track-height, var(--spectrum-global-dimension-size-175))) / 2) 0;
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
right: 0;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
.
|
|
163
|
+
.TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
164
164
|
content: "";
|
|
165
165
|
box-sizing: border-box;
|
|
166
166
|
transition: background var(--spectrum-global-animation-duration-100, .13s) ease-in-out, border var(--spectrum-global-animation-duration-100, .13s) ease-in-out, transform var(--spectrum-global-animation-duration-100, .13s) ease-in-out, box-shadow var(--spectrum-global-animation-duration-100, .13s) ease-in-out;
|
|
@@ -174,23 +174,23 @@
|
|
|
174
174
|
top: 0;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
.
|
|
177
|
+
.TIUVWG_spectrum-ToggleSwitch-switch:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))):before {
|
|
178
178
|
left: 0;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
.
|
|
181
|
+
.TIUVWG_spectrum-ToggleSwitch-switch:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))):before {
|
|
182
182
|
left: 0;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
.
|
|
185
|
+
.TIUVWG_spectrum-ToggleSwitch-switch:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)):before {
|
|
186
186
|
right: 0;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
.
|
|
189
|
+
.TIUVWG_spectrum-ToggleSwitch-switch:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)):before {
|
|
190
190
|
right: 0;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
.
|
|
193
|
+
.TIUVWG_spectrum-ToggleSwitch-switch:after {
|
|
194
194
|
border-radius: calc(calc(var(--spectrum-switch-track-height, var(--spectrum-global-dimension-size-175)) / 2) + var(--spectrum-alias-focus-ring-gap, var(--spectrum-global-dimension-static-size-25)) * 2);
|
|
195
195
|
content: "";
|
|
196
196
|
transition: box-shadow var(--spectrum-global-animation-duration-100, .13s) ease-out, margin var(--spectrum-global-animation-duration-100, .13s) ease-out;
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
transform: translateX(0);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
.
|
|
204
|
+
.TIUVWG_spectrum-ToggleSwitch {
|
|
205
205
|
--spectrum-switch-emphasized-handle-border-color: var(--spectrum-alias-toggle-color-default);
|
|
206
206
|
--spectrum-switch-emphasized-handle-border-color-hover: var(--spectrum-alias-toggle-color-hover);
|
|
207
207
|
--spectrum-switch-emphasized-handle-border-color-key-focus: var(--spectrum-alias-toggle-color-key-focus);
|
|
@@ -221,174 +221,174 @@
|
|
|
221
221
|
--spectrum-switch-emphasized-handle-border-color-selected-down: var(--spectrum-accent-color-1100);
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
.
|
|
224
|
+
.TIUVWG_spectrum-ToggleSwitch-switch {
|
|
225
225
|
background-color: var(--spectrum-switch-emphasized-track-color, var(--spectrum-global-color-gray-300));
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
.
|
|
228
|
+
.TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
229
229
|
background-color: var(--spectrum-switch-emphasized-handle-background-color, var(--spectrum-global-color-gray-75));
|
|
230
230
|
border-color: var(--spectrum-switch-emphasized-handle-border-color, var(--spectrum-global-color-gray-600));
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
.
|
|
233
|
+
.TIUVWG_spectrum-ToggleSwitch-input ~ .TIUVWG_spectrum-ToggleSwitch-label {
|
|
234
234
|
color: var(--spectrum-switch-emphasized-text-color, var(--spectrum-alias-text-color));
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
.
|
|
237
|
+
.TIUVWG_spectrum-ToggleSwitch-input:checked + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
238
238
|
background-color: var(--spectrum-switch-emphasized-track-color-selected, var(--spectrum-global-color-blue-500));
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
.
|
|
241
|
+
.TIUVWG_spectrum-ToggleSwitch-input:checked + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
242
242
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-selected, var(--spectrum-global-color-blue-500));
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
.
|
|
245
|
+
.TIUVWG_spectrum-ToggleSwitch.TIUVWG_is-hovered .TIUVWG_spectrum-ToggleSwitch-input + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
246
246
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-hover, var(--spectrum-global-color-gray-700));
|
|
247
247
|
box-shadow: none;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
.
|
|
250
|
+
.TIUVWG_spectrum-ToggleSwitch.TIUVWG_is-hovered .TIUVWG_spectrum-ToggleSwitch-input ~ .TIUVWG_spectrum-ToggleSwitch-label {
|
|
251
251
|
color: var(--spectrum-switch-emphasized-text-color-hover, var(--spectrum-alias-text-color-hover));
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
.
|
|
254
|
+
.TIUVWG_spectrum-ToggleSwitch.TIUVWG_is-hovered .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
255
255
|
background-color: var(--spectrum-switch-emphasized-track-color-selected-hover, var(--spectrum-global-color-blue-600));
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
.
|
|
258
|
+
.TIUVWG_spectrum-ToggleSwitch.TIUVWG_is-hovered .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
259
259
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-selected-hover, var(--spectrum-global-color-blue-600));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
.
|
|
262
|
+
.TIUVWG_spectrum-ToggleSwitch:active .TIUVWG_spectrum-ToggleSwitch-input + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
263
263
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-down, var(--spectrum-global-color-gray-800));
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
.
|
|
266
|
+
.TIUVWG_spectrum-ToggleSwitch:active .TIUVWG_spectrum-ToggleSwitch-input ~ .TIUVWG_spectrum-ToggleSwitch-label {
|
|
267
267
|
color: var(--spectrum-switch-emphasized-text-color-down, var(--spectrum-alias-text-color-down));
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
.
|
|
270
|
+
.TIUVWG_spectrum-ToggleSwitch:active .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
271
271
|
background-color: var(--spectrum-switch-emphasized-track-color-selected-down, var(--spectrum-global-color-blue-700));
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
.
|
|
274
|
+
.TIUVWG_spectrum-ToggleSwitch:active .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
275
275
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-selected-down, var(--spectrum-global-color-blue-700));
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
.
|
|
278
|
+
.TIUVWG_spectrum-ToggleSwitch .TIUVWG_spectrum-ToggleSwitch-input:disabled + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
279
279
|
background-color: var(--spectrum-switch-emphasized-track-color-disabled, var(--spectrum-global-color-gray-300));
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
.
|
|
282
|
+
.TIUVWG_spectrum-ToggleSwitch .TIUVWG_spectrum-ToggleSwitch-input:disabled + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
283
283
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-disabled, var(--spectrum-global-color-gray-400));
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
.
|
|
286
|
+
.TIUVWG_spectrum-ToggleSwitch .TIUVWG_spectrum-ToggleSwitch-input:disabled ~ .TIUVWG_spectrum-ToggleSwitch-label {
|
|
287
287
|
color: var(--spectrum-switch-emphasized-text-color-disabled, var(--spectrum-alias-text-color-disabled));
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
.
|
|
290
|
+
.TIUVWG_spectrum-ToggleSwitch .TIUVWG_spectrum-ToggleSwitch-input:disabled:checked + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
291
291
|
background-color: var(--spectrum-switch-emphasized-track-color-selected-disabled, var(--spectrum-global-color-gray-400));
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
.
|
|
294
|
+
.TIUVWG_spectrum-ToggleSwitch .TIUVWG_spectrum-ToggleSwitch-input:disabled:checked + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
295
295
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-selected-disabled, var(--spectrum-global-color-gray-400));
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
.
|
|
298
|
+
.TIUVWG_spectrum-ToggleSwitch .TIUVWG_spectrum-ToggleSwitch-input:disabled:checked ~ .TIUVWG_spectrum-ToggleSwitch-label {
|
|
299
299
|
color: var(--spectrum-switch-emphasized-text-color-selected-disabled, var(--spectrum-alias-text-color-disabled));
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
.
|
|
302
|
+
.TIUVWG_spectrum-ToggleSwitch--quiet .TIUVWG_spectrum-ToggleSwitch-input:checked + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
303
303
|
background-color: var(--spectrum-switch-quiet-track-color-selected, var(--spectrum-global-color-gray-700));
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
.
|
|
306
|
+
.TIUVWG_spectrum-ToggleSwitch--quiet .TIUVWG_spectrum-ToggleSwitch-input:checked + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
307
307
|
border-color: var(--spectrum-switch-quiet-handle-border-color-selected, var(--spectrum-global-color-gray-700));
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
.
|
|
310
|
+
.TIUVWG_spectrum-ToggleSwitch--quiet.TIUVWG_is-hovered .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
311
311
|
background-color: var(--spectrum-switch-quiet-track-color-selected-hover, var(--spectrum-global-color-gray-800));
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
-
.
|
|
314
|
+
.TIUVWG_spectrum-ToggleSwitch--quiet.TIUVWG_is-hovered .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
315
315
|
border-color: var(--spectrum-switch-quiet-handle-border-color-selected-hover, var(--spectrum-global-color-gray-800));
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
.
|
|
318
|
+
.TIUVWG_spectrum-ToggleSwitch.TIUVWG_spectrum-ToggleSwitch--quiet:active .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
319
319
|
background-color: var(--spectrum-switch-quiet-track-color-selected-down, var(--spectrum-global-color-gray-900));
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
.
|
|
322
|
+
.TIUVWG_spectrum-ToggleSwitch.TIUVWG_spectrum-ToggleSwitch--quiet:active .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
323
323
|
border-color: var(--spectrum-switch-quiet-handle-border-color-selected-down, var(--spectrum-global-color-gray-900));
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
:is(.
|
|
326
|
+
:is(.TIUVWG_spectrum-ToggleSwitch, .TIUVWG_spectrum-ToggleSwitch.TIUVWG_is-hovered) .TIUVWG_spectrum-ToggleSwitch-input.TIUVWG_focus-ring + .TIUVWG_spectrum-ToggleSwitch-switch:after {
|
|
327
327
|
box-shadow: 0 0 0 var(--spectrum-switch-focus-ring-size-key-focus, var(--spectrum-alias-focus-ring-size)) var(--spectrum-switch-focus-ring-color-key-focus, var(--spectrum-alias-focus-ring-color));
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
:is(.
|
|
330
|
+
:is(.TIUVWG_spectrum-ToggleSwitch, .TIUVWG_spectrum-ToggleSwitch.TIUVWG_is-hovered) .TIUVWG_spectrum-ToggleSwitch-input.TIUVWG_focus-ring + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
331
331
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-key-focus, var(--spectrum-global-color-gray-700));
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
:is(.
|
|
334
|
+
:is(.TIUVWG_spectrum-ToggleSwitch, .TIUVWG_spectrum-ToggleSwitch.TIUVWG_is-hovered) .TIUVWG_spectrum-ToggleSwitch-input.TIUVWG_focus-ring:checked + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
335
335
|
background-color: var(--spectrum-switch-emphasized-track-color-selected-key-focus, var(--spectrum-global-color-blue-600));
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
:is(.
|
|
338
|
+
:is(.TIUVWG_spectrum-ToggleSwitch, .TIUVWG_spectrum-ToggleSwitch.TIUVWG_is-hovered) .TIUVWG_spectrum-ToggleSwitch-input.TIUVWG_focus-ring:checked + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
339
339
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-selected-key-focus, var(--spectrum-global-color-blue-600));
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
:is(.
|
|
342
|
+
:is(.TIUVWG_spectrum-ToggleSwitch--quiet, .TIUVWG_spectrum-ToggleSwitch--quiet.TIUVWG_is-hovered) .TIUVWG_spectrum-ToggleSwitch-input.TIUVWG_focus-ring:checked + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
343
343
|
background-color: var(--spectrum-switch-quiet-track-color-selected-key-focus, var(--spectrum-global-color-gray-800));
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
:is(.
|
|
346
|
+
:is(.TIUVWG_spectrum-ToggleSwitch--quiet, .TIUVWG_spectrum-ToggleSwitch--quiet.TIUVWG_is-hovered) .TIUVWG_spectrum-ToggleSwitch-input.TIUVWG_focus-ring:checked + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
347
347
|
border-color: var(--spectrum-switch-quiet-handle-border-color-selected-key-focus, var(--spectrum-global-color-gray-800));
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
.
|
|
350
|
+
.TIUVWG_spectrum-ToggleSwitch--ab .TIUVWG_spectrum-ToggleSwitch-input:checked + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
351
351
|
background-color: var(--spectrum-switch-track-color, var(--spectrum-global-color-gray-300));
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
.
|
|
354
|
+
.TIUVWG_spectrum-ToggleSwitch--ab .TIUVWG_spectrum-ToggleSwitch-input:checked + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
355
355
|
border-color: var(--spectrum-switch-handle-border-color, var(--spectrum-global-color-gray-600));
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
.
|
|
358
|
+
.TIUVWG_spectrum-ToggleSwitch--ab .TIUVWG_spectrum-ToggleSwitch-input.TIUVWG_focus-ring:checked + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
359
359
|
background-color: var(--spectrum-switch-track-color, var(--spectrum-global-color-gray-300));
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
.
|
|
362
|
+
.TIUVWG_spectrum-ToggleSwitch--ab .TIUVWG_spectrum-ToggleSwitch-input.TIUVWG_focus-ring:checked + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
363
363
|
border-color: var(--spectrum-switch-handle-border-color-selected, var(--spectrum-global-color-gray-700));
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
.
|
|
366
|
+
.TIUVWG_spectrum-ToggleSwitch--ab .TIUVWG_spectrum-ToggleSwitch-input:disabled:checked + .TIUVWG_spectrum-ToggleSwitch-switch, .TIUVWG_spectrum-ToggleSwitch--ab .TIUVWG_spectrum-ToggleSwitch-input:disabled + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
367
367
|
background-color: var(--spectrum-switch-emphasized-track-color-disabled, var(--spectrum-global-color-gray-300));
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
.
|
|
370
|
+
.TIUVWG_spectrum-ToggleSwitch--ab .TIUVWG_spectrum-ToggleSwitch-input:disabled + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
371
371
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-disabled, var(--spectrum-global-color-gray-400));
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
.
|
|
374
|
+
.TIUVWG_spectrum-ToggleSwitch--ab.TIUVWG_is-hovered .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
375
375
|
background-color: var(--spectrum-switch-emphasized-track-color, var(--spectrum-global-color-gray-300));
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
.
|
|
378
|
+
.TIUVWG_spectrum-ToggleSwitch--ab.TIUVWG_is-hovered .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
379
379
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-hover, var(--spectrum-global-color-gray-700));
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
.
|
|
382
|
+
.TIUVWG_spectrum-ToggleSwitch--ab:active .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
383
383
|
background-color: var(--spectrum-switch-emphasized-track-color, var(--spectrum-global-color-gray-300));
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
.
|
|
386
|
+
.TIUVWG_spectrum-ToggleSwitch--ab:active .TIUVWG_spectrum-ToggleSwitch-input:checked:enabled + .TIUVWG_spectrum-ToggleSwitch-switch:before {
|
|
387
387
|
border-color: var(--spectrum-switch-emphasized-handle-border-color-down, var(--spectrum-global-color-gray-800));
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
@media (forced-colors: active) {
|
|
391
|
-
.
|
|
391
|
+
.TIUVWG_spectrum-ToggleSwitch {
|
|
392
392
|
forced-color-adjust: none;
|
|
393
393
|
--spectrum-switch-emphasized-handle-background-color: ButtonFace;
|
|
394
394
|
--spectrum-switch-emphasized-handle-border-color: ButtonText;
|
|
@@ -428,20 +428,20 @@
|
|
|
428
428
|
--spectrum-switch-track-color-disabled: ButtonFace;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
.
|
|
431
|
+
.TIUVWG_spectrum-ToggleSwitch .TIUVWG_spectrum-ToggleSwitch-input:not(:checked) + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
432
432
|
box-shadow: inset 0 0 0 1px var(--spectrum-switch-handle-border-color, var(--spectrum-global-color-gray-600));
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
.
|
|
435
|
+
.TIUVWG_spectrum-ToggleSwitch.TIUVWG_is-hovered .TIUVWG_spectrum-ToggleSwitch-input:not(:checked) + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
436
436
|
box-shadow: inset 0 0 0 1px var(--spectrum-switch-emphasized-handle-border-color-hover, var(--spectrum-global-color-gray-700));
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
.
|
|
439
|
+
.TIUVWG_spectrum-ToggleSwitch .TIUVWG_spectrum-ToggleSwitch-input:not(:checked):focus + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
440
440
|
box-shadow: inset 0 0 0 1px var(--spectrum-switch-emphasized-handle-border-color-key-focus, var(--spectrum-global-color-gray-700));
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
.
|
|
443
|
+
.TIUVWG_spectrum-ToggleSwitch .TIUVWG_spectrum-ToggleSwitch-input:disabled + .TIUVWG_spectrum-ToggleSwitch-switch {
|
|
444
444
|
box-shadow: inset 0 0 0 1px var(--spectrum-switch-emphasized-handle-border-color-disabled, var(--spectrum-global-color-gray-400));
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
/*# sourceMappingURL=vars.
|
|
447
|
+
/*# sourceMappingURL=vars.ee098a37.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;;;;;AAgBA;;;;;;;;;;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAqBI;;;;AAGA;;;;AAKF;;;;AAOI;;;;AAON;;;;;;;;;AASA;;;;;;;;;;;;;;;;;AA6BE;;;;;;;;;;;;;;AAQA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAeA;;;;;;;;;;;AA6BF;;;;;;;;;;;;;;;;;;;;AAuBA;;;;AAIE;;;;;AAMF;;;;AAOE;;;;AAEE;;;;AAWE;;;;;AAKF;;;;AAIA;;;;AAEE;;;;AAYA;;;;AAIF;;;;AAIA;;;;AAEE;;;;AAUJ;;;;AAEE;;;;AAIF;;;;AAKE;;;;AAEE;;;;AAIF;;;;AAWF;;;;AAEE;;;;AASF;;;;AAEE;;;;AASF;;;;AAEE;;;;AAYE;;;;AAGA;;;;AAMA;;;;AAEE;;;;AAaF;;;;AAEE;;;;AAUJ;;;;AAKE;;;;AAOA;;;;AAGE;;;;AAOF;;;;AAOE;;;;AASF;;;;AAEE;;;;AASF;;;;AAEE;;;;AAQR;EACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCE;;;;EAIE;;;;EAIF;;;;EAIA","sources":["packages/@adobe/spectrum-css-temp/components/toggle/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.
|
|
1
|
+
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;;;;;AAgBA;;;;;;;;;;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAqBI;;;;AAGA;;;;AAKF;;;;AAOI;;;;AAON;;;;;;;;;AASA;;;;;;;;;;;;;;;;;AA6BE;;;;;;;;;;;;;;AAQA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAeA;;;;;;;;;;;AA6BF;;;;;;;;;;;;;;;;;;;;AAuBA;;;;AAIE;;;;;AAMF;;;;AAOE;;;;AAEE;;;;AAWE;;;;;AAKF;;;;AAIA;;;;AAEE;;;;AAYA;;;;AAIF;;;;AAIA;;;;AAEE;;;;AAUJ;;;;AAEE;;;;AAIF;;;;AAKE;;;;AAEE;;;;AAIF;;;;AAWF;;;;AAEE;;;;AASF;;;;AAEE;;;;AASF;;;;AAEE;;;;AAYE;;;;AAGA;;;;AAMA;;;;AAEE;;;;AAaF;;;;AAEE;;;;AAUJ;;;;AAKE;;;;AAOA;;;;AAGE;;;;AAOF;;;;AAOE;;;;AASF;;;;AAEE;;;;AASF;;;;AAEE;;;;AAQR;EACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCE;;;;EAIE;;;;EAIF;;;;EAIA","sources":["packages/@adobe/spectrum-css-temp/components/toggle/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.ee098a37.css.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/switch",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.8",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/focus": "^3.18.
|
|
40
|
-
"@react-aria/interactions": "^3.22.
|
|
41
|
-
"@react-aria/switch": "^3.6.
|
|
42
|
-
"@react-spectrum/utils": "^3.11.
|
|
43
|
-
"@react-stately/toggle": "^3.7.
|
|
44
|
-
"@react-types/shared": "^3.
|
|
45
|
-
"@react-types/switch": "^3.5.
|
|
39
|
+
"@react-aria/focus": "^3.18.3",
|
|
40
|
+
"@react-aria/interactions": "^3.22.3",
|
|
41
|
+
"@react-aria/switch": "^3.6.8",
|
|
42
|
+
"@react-spectrum/utils": "^3.11.11",
|
|
43
|
+
"@react-stately/toggle": "^3.7.8",
|
|
44
|
+
"@react-types/shared": "^3.25.0",
|
|
45
|
+
"@react-types/switch": "^3.5.6",
|
|
46
46
|
"@swc/helpers": "^0.5.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -54,6 +54,5 @@
|
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
}
|
|
57
|
+
}
|
|
58
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2019 Adobe
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|