@fluentui/react-button 9.1.12 → 9.1.14
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +81 -1
- package/CHANGELOG.md +26 -2
- package/lib/components/Button/Button.js +3 -2
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/renderButton.js +6 -4
- package/lib/components/Button/renderButton.js.map +1 -1
- package/lib/components/Button/useButton.js +0 -1
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.js +309 -315
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.js +3 -2
- package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.js +10 -6
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js +4 -5
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +124 -129
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.js +3 -2
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/MenuButton/renderMenuButton.js +6 -4
- package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButton.js +2 -3
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.js +61 -67
- package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.js +3 -2
- package/lib/components/SplitButton/SplitButton.js.map +1 -1
- package/lib/components/SplitButton/renderSplitButton.js +6 -4
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.js +2 -4
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.js +56 -62
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.js +3 -2
- package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButton.js +0 -1
- package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.js +246 -249
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/useToggleState.js +4 -3
- package/lib/utils/useToggleState.js.map +1 -1
- package/lib-commonjs/Button.js +0 -2
- package/lib-commonjs/Button.js.map +1 -1
- package/lib-commonjs/CompoundButton.js +0 -2
- package/lib-commonjs/CompoundButton.js.map +1 -1
- package/lib-commonjs/MenuButton.js +0 -2
- package/lib-commonjs/MenuButton.js.map +1 -1
- package/lib-commonjs/SplitButton.js +0 -2
- package/lib-commonjs/SplitButton.js.map +1 -1
- package/lib-commonjs/ToggleButton.js +0 -2
- package/lib-commonjs/ToggleButton.js.map +1 -1
- package/lib-commonjs/components/Button/Button.js +3 -7
- package/lib-commonjs/components/Button/Button.js.map +1 -1
- package/lib-commonjs/components/Button/Button.types.js.map +1 -1
- package/lib-commonjs/components/Button/index.js +0 -6
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/renderButton.js +6 -8
- package/lib-commonjs/components/Button/renderButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.js +0 -5
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.js +309 -321
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.js +3 -7
- package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.js +0 -7
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +10 -10
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js +4 -9
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +124 -134
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.js +3 -7
- package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -1
- package/lib-commonjs/components/MenuButton/index.js +0 -7
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js +6 -8
- package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.js +2 -9
- package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +61 -73
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.js +3 -7
- package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib-commonjs/components/SplitButton/index.js +0 -7
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js +6 -8
- package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.js +2 -9
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +56 -67
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.js +3 -7
- package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/index.js +0 -7
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js +0 -2
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.js +0 -5
- package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +246 -256
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/index.js +0 -12
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/index.js +0 -2
- package/lib-commonjs/utils/index.js.map +1 -1
- package/lib-commonjs/utils/useToggleState.js +4 -7
- package/lib-commonjs/utils/useToggleState.js.map +1 -1
- package/package.json +7 -7
@@ -7,294 +7,290 @@ export const toggleButtonClassNames = {
|
|
7
7
|
root: 'fui-ToggleButton',
|
8
8
|
icon: 'fui-ToggleButton__icon'
|
9
9
|
};
|
10
|
-
|
11
10
|
const useRootCheckedStyles = /*#__PURE__*/__styles({
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
11
|
+
base: {
|
12
|
+
De3pzq: "f1nfm20t",
|
13
|
+
g2u3we: "fj3muxo",
|
14
|
+
h3c5rm: ["f1akhkt", "f1lxtadh"],
|
15
|
+
B9xav0g: "f1aperda",
|
16
|
+
zhjwy3: ["f1lxtadh", "f1akhkt"],
|
17
|
+
sj55zd: "f14nttnl",
|
18
|
+
B4j52fo: "f192inf7",
|
19
|
+
Bekrc4i: ["f5tn483", "f1ojsxk5"],
|
20
|
+
Bn0qgzm: "f1vxd6vx",
|
21
|
+
ibv6hh: ["f1ojsxk5", "f5tn483"],
|
22
|
+
D0sxk3: "fxoiby5",
|
23
|
+
t6yez3: "f15q0o9g",
|
24
|
+
Jwef8y: "f1knas48",
|
25
|
+
Bgoe8wy: "fvcxoqz",
|
26
|
+
Bwzppfd: ["f1ub3y4t", "f1m52nbi"],
|
27
|
+
oetu4i: "f1xlaoq0",
|
28
|
+
gg5e9n: ["f1m52nbi", "f1ub3y4t"],
|
29
|
+
Bi91k9c: "feu1g3u",
|
30
|
+
iro3zm: "f141de4g",
|
31
|
+
b661bw: "f11v6sdu",
|
32
|
+
Bk6r4ia: ["f9yn8i4", "f1ajwf28"],
|
33
|
+
B9zn80p: "f1uwu36w",
|
34
|
+
Bpld233: ["f1ajwf28", "f9yn8i4"],
|
35
|
+
B2d53fq: "f9olfzr"
|
37
36
|
},
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
37
|
+
highContrast: {
|
38
|
+
Bsw6fvg: "f1rirnrt",
|
39
|
+
Bjwas2f: "f132fbg1",
|
40
|
+
Bn1d65q: ["f1ene5x0", "fzbc999"],
|
41
|
+
Bxeuatn: "f6jgcol",
|
42
|
+
n51gp8: ["fzbc999", "f1ene5x0"],
|
43
|
+
Bbusuzp: "f1lkg8j3",
|
44
|
+
ycbfsm: "fkc42ay",
|
45
|
+
Bqrx1nm: "fq7113v",
|
46
|
+
pgvf35: "ff1wgvm",
|
47
|
+
Bh7lczh: ["fiob0tu", "f1x4h75k"],
|
48
|
+
dpv3f4: "f1j6scgf",
|
49
|
+
Bpnjhaq: ["f1x4h75k", "fiob0tu"],
|
50
|
+
ze5xyy: "f4xjyn1",
|
51
|
+
g2kj27: "fbgcvur",
|
52
|
+
Bf756sw: "f1ks1yx8",
|
53
|
+
Bow2dr7: ["f1o6qegi", "fmxjhhp"],
|
54
|
+
Bvhedfk: "fcnxywj",
|
55
|
+
Gye4lf: ["fmxjhhp", "f1o6qegi"],
|
56
|
+
pc6evw: "f9ddjv3",
|
57
|
+
G867l3: "fr7nen4",
|
58
|
+
gdbnj: ["f10aq6ld", "fq8rgo9"],
|
59
|
+
mxns5l: "f1md2qq2",
|
60
|
+
o3nasb: ["fq8rgo9", "f10aq6ld"]
|
62
61
|
},
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
62
|
+
highContrastFocusStyles: {
|
63
|
+
Brovlpu: "ftqa4ok",
|
64
|
+
B486eqv: "f2hkw1w",
|
65
|
+
Bbcte9g: "f32ycxt",
|
66
|
+
Bn40d3w: ["fuu6eli", "f16i5y2f"],
|
67
|
+
i2cumq: "flw28fq",
|
68
|
+
lbo84a: ["f16i5y2f", "fuu6eli"],
|
69
|
+
B5gfjzb: "ff4w5z6",
|
70
|
+
u5e7qz: ["f1slf1ze", "f33ndkz"],
|
71
|
+
Bbjhlyh: "fsap1ud",
|
72
|
+
mqozju: ["f33ndkz", "f1slf1ze"],
|
73
|
+
B8q5s1w: "f1kmh701",
|
74
|
+
Bci5o5g: ["f1vvjzrb", "f14lucfs"],
|
75
|
+
n8qw10: "fnb12cg",
|
76
|
+
Bdrgwmp: ["f14lucfs", "f1vvjzrb"],
|
77
|
+
Bfpq7zp: "fae4ysc"
|
79
78
|
},
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
79
|
+
outline: {
|
80
|
+
De3pzq: "f1q9pm1r",
|
81
|
+
g2u3we: "fj3muxo",
|
82
|
+
h3c5rm: ["f1akhkt", "f1lxtadh"],
|
83
|
+
B9xav0g: "f1aperda",
|
84
|
+
zhjwy3: ["f1lxtadh", "f1akhkt"],
|
85
|
+
B4j52fo: "fgx37oo",
|
86
|
+
Bekrc4i: ["f130t4y6", "f1efpmoh"],
|
87
|
+
Bn0qgzm: "fv51ejd",
|
88
|
+
ibv6hh: ["f1efpmoh", "f130t4y6"],
|
89
|
+
Jwef8y: "fjxutwb",
|
90
|
+
iro3zm: "fwiml72",
|
91
|
+
Brovlpu: "ftqa4ok",
|
92
|
+
B486eqv: "f2hkw1w",
|
93
|
+
B8q5s1w: "fcaw57c",
|
94
|
+
Bci5o5g: ["fpwd27e", "f1999bjr"],
|
95
|
+
n8qw10: "f1hi52o4",
|
96
|
+
Bdrgwmp: ["f1999bjr", "fpwd27e"]
|
98
97
|
},
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
98
|
+
primary: {
|
99
|
+
De3pzq: "f8w4g0q",
|
100
|
+
g2u3we: "f1p3nwhy",
|
101
|
+
h3c5rm: ["f11589ue", "f1pdflbu"],
|
102
|
+
B9xav0g: "f1q5o8ev",
|
103
|
+
zhjwy3: ["f1pdflbu", "f11589ue"],
|
104
|
+
sj55zd: "f1phragk",
|
105
|
+
Jwef8y: "f15wkkf3",
|
106
|
+
Bgoe8wy: "f1s2uweq",
|
107
|
+
Bwzppfd: ["fr80ssc", "fecsdlb"],
|
108
|
+
oetu4i: "f1ukrpxl",
|
109
|
+
gg5e9n: ["fecsdlb", "fr80ssc"],
|
110
|
+
Bi91k9c: "f1rq72xc",
|
111
|
+
iro3zm: "fnp9lpt",
|
112
|
+
b661bw: "f1h0usnq",
|
113
|
+
Bk6r4ia: ["fs4ktlq", "fx2bmrt"],
|
114
|
+
B9zn80p: "f16h9ulv",
|
115
|
+
Bpld233: ["fx2bmrt", "fs4ktlq"],
|
116
|
+
B2d53fq: "f1d6v5y2"
|
118
117
|
},
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
118
|
+
secondary: {},
|
119
|
+
subtle: {
|
120
|
+
De3pzq: "fq5gl1p",
|
121
|
+
g2u3we: "f1p3nwhy",
|
122
|
+
h3c5rm: ["f11589ue", "f1pdflbu"],
|
123
|
+
B9xav0g: "f1q5o8ev",
|
124
|
+
zhjwy3: ["f1pdflbu", "f11589ue"],
|
125
|
+
sj55zd: "f1eryozh",
|
126
|
+
Jwef8y: "f1t94bn6",
|
127
|
+
Bgoe8wy: "f1s2uweq",
|
128
|
+
Bwzppfd: ["fr80ssc", "fecsdlb"],
|
129
|
+
oetu4i: "f1ukrpxl",
|
130
|
+
gg5e9n: ["fecsdlb", "fr80ssc"],
|
131
|
+
Bi91k9c: "fnwyq0v",
|
132
|
+
iro3zm: "fsv2rcd",
|
133
|
+
b661bw: "f1h0usnq",
|
134
|
+
Bk6r4ia: ["fs4ktlq", "fx2bmrt"],
|
135
|
+
B9zn80p: "f16h9ulv",
|
136
|
+
Bpld233: ["fx2bmrt", "fs4ktlq"],
|
137
|
+
B2d53fq: "f1omzyqd"
|
139
138
|
},
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
139
|
+
transparent: {
|
140
|
+
De3pzq: "f1q9pm1r",
|
141
|
+
g2u3we: "f1p3nwhy",
|
142
|
+
h3c5rm: ["f11589ue", "f1pdflbu"],
|
143
|
+
B9xav0g: "f1q5o8ev",
|
144
|
+
zhjwy3: ["f1pdflbu", "f11589ue"],
|
145
|
+
sj55zd: "f1qj7y59",
|
146
|
+
Jwef8y: "fjxutwb",
|
147
|
+
Bgoe8wy: "f1s2uweq",
|
148
|
+
Bwzppfd: ["fr80ssc", "fecsdlb"],
|
149
|
+
oetu4i: "f1ukrpxl",
|
150
|
+
gg5e9n: ["fecsdlb", "fr80ssc"],
|
151
|
+
Bi91k9c: "f139oj5f",
|
152
|
+
iro3zm: "fwiml72",
|
153
|
+
b661bw: "f1h0usnq",
|
154
|
+
Bk6r4ia: ["fs4ktlq", "fx2bmrt"],
|
155
|
+
B9zn80p: "f16h9ulv",
|
156
|
+
Bpld233: ["fx2bmrt", "fs4ktlq"],
|
157
|
+
B2d53fq: "f1fg1p5m"
|
159
158
|
}
|
160
159
|
}, {
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
160
|
+
d: [".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}", ".fj3muxo{border-top-color:var(--colorNeutralStroke1);}", ".f1akhkt{border-right-color:var(--colorNeutralStroke1);}", ".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}", ".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}", ".f14nttnl{color:var(--colorNeutralForeground1Selected);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fxoiby5 .fui-Icon-filled{display:inline;}", ".f15q0o9g .fui-Icon-regular{display:none;}", ".f32ycxt[data-fui-focus-visible]{border-top-width:1px;}", ".fuu6eli[data-fui-focus-visible]{border-right-width:1px;}", ".f16i5y2f[data-fui-focus-visible]{border-left-width:1px;}", ".flw28fq[data-fui-focus-visible]{border-bottom-width:1px;}", ".ff4w5z6[data-fui-focus-visible]{border-top-style:solid;}", ".f1slf1ze[data-fui-focus-visible]{border-right-style:solid;}", ".f33ndkz[data-fui-focus-visible]{border-left-style:solid;}", ".fsap1ud[data-fui-focus-visible]{border-bottom-style:solid;}", ".f1kmh701[data-fui-focus-visible]{border-top-color:HighlightText;}", ".f1vvjzrb[data-fui-focus-visible]{border-right-color:HighlightText;}", ".f14lucfs[data-fui-focus-visible]{border-left-color:HighlightText;}", ".fnb12cg[data-fui-focus-visible]{border-bottom-color:HighlightText;}", ".fae4ysc[data-fui-focus-visible]{outline-color:Highlight;}", ".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}", ".fgx37oo{border-top-width:var(--strokeWidthThicker);}", ".f130t4y6{border-right-width:var(--strokeWidthThicker);}", ".f1efpmoh{border-left-width:var(--strokeWidthThicker);}", ".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}", ".fcaw57c[data-fui-focus-visible]{border-top-color:var(--colorNeutralStroke1);}", ".fpwd27e[data-fui-focus-visible]{border-right-color:var(--colorNeutralStroke1);}", ".f1999bjr[data-fui-focus-visible]{border-left-color:var(--colorNeutralStroke1);}", ".f1hi52o4[data-fui-focus-visible]{border-bottom-color:var(--colorNeutralStroke1);}", ".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}", ".f1eryozh{color:var(--colorNeutralForeground2Selected);}", ".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],
|
161
|
+
h: [".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}", ".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}", ".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}", ".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}", ".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}", ".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}", ".f141de4g:hover:active{background-color:var(--colorNeutralBackground1Pressed);}", ".f11v6sdu:hover:active{border-top-color:var(--colorNeutralStroke1Pressed);}", ".f9yn8i4:hover:active{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f1ajwf28:hover:active{border-left-color:var(--colorNeutralStroke1Pressed);}", ".f1uwu36w:hover:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}", ".f9olfzr:hover:active{color:var(--colorNeutralForeground1Pressed);}", ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}", ".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}", ".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}", ".f1h0usnq:hover:active{border-top-color:transparent;}", ".fs4ktlq:hover:active{border-right-color:transparent;}", ".fx2bmrt:hover:active{border-left-color:transparent;}", ".f16h9ulv:hover:active{border-bottom-color:transparent;}", ".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}", ".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}", ".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}", ".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}", ".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}", ".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}", ".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],
|
162
|
+
m: [["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}", {
|
163
|
+
m: "(forced-colors: active)"
|
165
164
|
}], ["@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}", {
|
166
|
-
|
165
|
+
m: "(forced-colors: active)"
|
167
166
|
}], ["@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}", {
|
168
|
-
|
167
|
+
m: "(forced-colors: active)"
|
169
168
|
}], ["@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}", {
|
170
|
-
|
169
|
+
m: "(forced-colors: active)"
|
171
170
|
}], ["@media (forced-colors: active){.fzbc999{border-left-color:Highlight;}.f1ene5x0{border-right-color:Highlight;}}", {
|
172
|
-
|
171
|
+
m: "(forced-colors: active)"
|
173
172
|
}], ["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}", {
|
174
|
-
|
173
|
+
m: "(forced-colors: active)"
|
175
174
|
}], ["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}", {
|
176
|
-
|
175
|
+
m: "(forced-colors: active)"
|
177
176
|
}], ["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}", {
|
178
|
-
|
177
|
+
m: "(forced-colors: active)"
|
179
178
|
}], ["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}", {
|
180
|
-
|
179
|
+
m: "(forced-colors: active)"
|
181
180
|
}], ["@media (forced-colors: active){.fiob0tu:hover{border-right-color:Highlight;}.f1x4h75k:hover{border-left-color:Highlight;}}", {
|
182
|
-
|
181
|
+
m: "(forced-colors: active)"
|
183
182
|
}], ["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}", {
|
184
|
-
|
183
|
+
m: "(forced-colors: active)"
|
185
184
|
}], ["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}", {
|
186
|
-
|
185
|
+
m: "(forced-colors: active)"
|
187
186
|
}], ["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}", {
|
188
|
-
|
187
|
+
m: "(forced-colors: active)"
|
189
188
|
}], ["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}", {
|
190
|
-
|
189
|
+
m: "(forced-colors: active)"
|
191
190
|
}], ["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}", {
|
192
|
-
|
191
|
+
m: "(forced-colors: active)"
|
193
192
|
}], ["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}", {
|
194
|
-
|
193
|
+
m: "(forced-colors: active)"
|
195
194
|
}], ["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}", {
|
196
|
-
|
195
|
+
m: "(forced-colors: active)"
|
197
196
|
}], ["@media (forced-colors: active){.fmxjhhp:hover:active{border-left-color:Highlight;}.f1o6qegi:hover:active{border-right-color:Highlight;}}", {
|
198
|
-
|
197
|
+
m: "(forced-colors: active)"
|
199
198
|
}], ["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}", {
|
200
|
-
|
199
|
+
m: "(forced-colors: active)"
|
201
200
|
}], ["@media (forced-colors: active){.fr7nen4:focus{border-top-color:Highlight;}}", {
|
202
|
-
|
201
|
+
m: "(forced-colors: active)"
|
203
202
|
}], ["@media (forced-colors: active){.f10aq6ld:focus{border-right-color:Highlight;}.fq8rgo9:focus{border-left-color:Highlight;}}", {
|
204
|
-
|
203
|
+
m: "(forced-colors: active)"
|
205
204
|
}], ["@media (forced-colors: active){.f1md2qq2:focus{border-bottom-color:Highlight;}}", {
|
206
|
-
|
205
|
+
m: "(forced-colors: active)"
|
207
206
|
}], ["@media (forced-colors: active){.fq8rgo9:focus{border-left-color:Highlight;}.f10aq6ld:focus{border-right-color:Highlight;}}", {
|
208
|
-
|
207
|
+
m: "(forced-colors: active)"
|
209
208
|
}]],
|
210
|
-
|
211
|
-
|
209
|
+
f: [".ftqa4ok:focus{outline-style:none;}"],
|
210
|
+
i: [".f2hkw1w:focus-visible{outline-style:none;}"]
|
212
211
|
});
|
213
|
-
|
214
212
|
const useRootDisabledStyles = /*#__PURE__*/__styles({
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
213
|
+
base: {
|
214
|
+
De3pzq: "f1bg9a2p",
|
215
|
+
g2u3we: "f1jj8ep1",
|
216
|
+
h3c5rm: ["f15xbau", "fy0fskl"],
|
217
|
+
B9xav0g: "f4ikngz",
|
218
|
+
zhjwy3: ["fy0fskl", "f15xbau"],
|
219
|
+
sj55zd: "f1s2aq7o",
|
220
|
+
Jwef8y: "f1falr9n",
|
221
|
+
Bgoe8wy: "f12mpcsy",
|
222
|
+
Bwzppfd: ["f1gwvigk", "f18rmfxp"],
|
223
|
+
oetu4i: "f1jnshp0",
|
224
|
+
gg5e9n: ["f18rmfxp", "f1gwvigk"],
|
225
|
+
Bi91k9c: "fvgxktp",
|
226
|
+
iro3zm: "f1t6o4dc",
|
227
|
+
b661bw: "f10ztigi",
|
228
|
+
Bk6r4ia: ["f1ft5sdu", "f1gzf82w"],
|
229
|
+
B9zn80p: "f12zbtn2",
|
230
|
+
Bpld233: ["f1gzf82w", "f1ft5sdu"],
|
231
|
+
B2d53fq: "fcvwxyo"
|
234
232
|
},
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
233
|
+
outline: {},
|
234
|
+
primary: {
|
235
|
+
g2u3we: "f1p3nwhy",
|
236
|
+
h3c5rm: ["f11589ue", "f1pdflbu"],
|
237
|
+
B9xav0g: "f1q5o8ev",
|
238
|
+
zhjwy3: ["f1pdflbu", "f11589ue"],
|
239
|
+
Bgoe8wy: "f1s2uweq",
|
240
|
+
Bwzppfd: ["fr80ssc", "fecsdlb"],
|
241
|
+
oetu4i: "f1ukrpxl",
|
242
|
+
gg5e9n: ["fecsdlb", "fr80ssc"],
|
243
|
+
b661bw: "f1h0usnq",
|
244
|
+
Bk6r4ia: ["fs4ktlq", "fx2bmrt"],
|
245
|
+
B9zn80p: "f16h9ulv",
|
246
|
+
Bpld233: ["fx2bmrt", "fs4ktlq"]
|
249
247
|
},
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
248
|
+
secondary: {},
|
249
|
+
subtle: {
|
250
|
+
De3pzq: "f1c21dwh",
|
251
|
+
g2u3we: "f1p3nwhy",
|
252
|
+
h3c5rm: ["f11589ue", "f1pdflbu"],
|
253
|
+
B9xav0g: "f1q5o8ev",
|
254
|
+
zhjwy3: ["f1pdflbu", "f11589ue"],
|
255
|
+
Jwef8y: "fjxutwb",
|
256
|
+
Bgoe8wy: "f1s2uweq",
|
257
|
+
Bwzppfd: ["fr80ssc", "fecsdlb"],
|
258
|
+
oetu4i: "f1ukrpxl",
|
259
|
+
gg5e9n: ["fecsdlb", "fr80ssc"],
|
260
|
+
iro3zm: "fwiml72",
|
261
|
+
b661bw: "f1h0usnq",
|
262
|
+
Bk6r4ia: ["fs4ktlq", "fx2bmrt"],
|
263
|
+
B9zn80p: "f16h9ulv",
|
264
|
+
Bpld233: ["fx2bmrt", "fs4ktlq"]
|
267
265
|
},
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
266
|
+
transparent: {
|
267
|
+
De3pzq: "f1c21dwh",
|
268
|
+
g2u3we: "f1p3nwhy",
|
269
|
+
h3c5rm: ["f11589ue", "f1pdflbu"],
|
270
|
+
B9xav0g: "f1q5o8ev",
|
271
|
+
zhjwy3: ["f1pdflbu", "f11589ue"],
|
272
|
+
Jwef8y: "fjxutwb",
|
273
|
+
Bgoe8wy: "f1s2uweq",
|
274
|
+
Bwzppfd: ["fr80ssc", "fecsdlb"],
|
275
|
+
oetu4i: "f1ukrpxl",
|
276
|
+
gg5e9n: ["fecsdlb", "fr80ssc"],
|
277
|
+
iro3zm: "fwiml72",
|
278
|
+
b661bw: "f1h0usnq",
|
279
|
+
Bk6r4ia: ["fs4ktlq", "fx2bmrt"],
|
280
|
+
B9zn80p: "f16h9ulv",
|
281
|
+
Bpld233: ["fx2bmrt", "fs4ktlq"]
|
284
282
|
}
|
285
283
|
}, {
|
286
|
-
|
287
|
-
|
284
|
+
d: [".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}", ".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1c21dwh{background-color:var(--colorTransparentBackground);}"],
|
285
|
+
h: [".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}", ".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}", ".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}", ".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1h0usnq:hover:active{border-top-color:transparent;}", ".fs4ktlq:hover:active{border-right-color:transparent;}", ".fx2bmrt:hover:active{border-left-color:transparent;}", ".f16h9ulv:hover:active{border-bottom-color:transparent;}", ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}"]
|
288
286
|
});
|
289
|
-
|
290
287
|
const useIconCheckedStyles = /*#__PURE__*/__styles({
|
291
|
-
|
292
|
-
|
288
|
+
subtleOrTransparent: {
|
289
|
+
sj55zd: "f1qj7y59"
|
293
290
|
}
|
294
291
|
}, {
|
295
|
-
|
292
|
+
d: [".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"]
|
296
293
|
});
|
297
|
-
|
298
294
|
export const useToggleButtonStyles_unstable = state => {
|
299
295
|
const rootCheckedStyles = useRootCheckedStyles();
|
300
296
|
const rootDisabledStyles = useRootDisabledStyles();
|
@@ -305,15 +301,16 @@ export const useToggleButtonStyles_unstable = state => {
|
|
305
301
|
disabled,
|
306
302
|
disabledFocusable
|
307
303
|
} = state;
|
308
|
-
state.root.className = mergeClasses(toggleButtonClassNames.root,
|
309
|
-
|
310
|
-
|
304
|
+
state.root.className = mergeClasses(toggleButtonClassNames.root,
|
305
|
+
// Checked styles
|
306
|
+
checked && rootCheckedStyles.base, checked && rootCheckedStyles.highContrast, appearance && checked && rootCheckedStyles[appearance],
|
307
|
+
// Disabled styles
|
308
|
+
(disabled || disabledFocusable) && rootDisabledStyles.base, appearance && (disabled || disabledFocusable) && rootDisabledStyles[appearance],
|
309
|
+
// User provided class name
|
311
310
|
state.root.className);
|
312
|
-
|
313
311
|
if (state.icon) {
|
314
312
|
state.icon.className = mergeClasses(toggleButtonClassNames.icon, (appearance === 'subtle' || appearance === 'transparent') && iconCheckedStyles.subtleOrTransparent, state.icon.className);
|
315
313
|
}
|
316
|
-
|
317
314
|
useButtonStyles_unstable(state);
|
318
315
|
return state;
|
319
316
|
};
|