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