@fluentui/react-button 9.75.0-experimental.css-modules.20261031-810ab07afb.0 → 9.75.1-experimental.positioning-engine.20261103-19efe125d1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -12
- package/README.md +0 -22
- package/package.json +10 -13
- package/lib/components/Button/Button.module.css +0 -401
- package/lib/components/Button/useButtonStyles.styles.css.js +0 -14
- package/lib/components/Button/useButtonStyles.styles.css.js.map +0 -1
- package/lib/components/Button/useButtonStyles.styles.raw.css.js +0 -14
- package/lib/components/Button/useButtonStyles.styles.raw.css.js.map +0 -1
- package/lib/components/CompoundButton/CompoundButton.module.css +0 -143
- package/lib/components/CompoundButton/useCompoundButtonStyles.styles.css.js +0 -27
- package/lib/components/CompoundButton/useCompoundButtonStyles.styles.css.js.map +0 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.styles.raw.css.js +0 -27
- package/lib/components/CompoundButton/useCompoundButtonStyles.styles.raw.css.js.map +0 -1
- package/lib/components/MenuButton/MenuButton.module.css +0 -75
- package/lib/components/MenuButton/useMenuButtonStyles.styles.css.js +0 -26
- package/lib/components/MenuButton/useMenuButtonStyles.styles.css.js.map +0 -1
- package/lib/components/MenuButton/useMenuButtonStyles.styles.raw.css.js +0 -26
- package/lib/components/MenuButton/useMenuButtonStyles.styles.raw.css.js.map +0 -1
- package/lib/components/SplitButton/SplitButton.module.css +0 -73
- package/lib/components/SplitButton/useSplitButtonStyles.styles.css.js +0 -17
- package/lib/components/SplitButton/useSplitButtonStyles.styles.css.js.map +0 -1
- package/lib/components/SplitButton/useSplitButtonStyles.styles.raw.css.js +0 -17
- package/lib/components/SplitButton/useSplitButtonStyles.styles.raw.css.js.map +0 -1
- package/lib/components/ToggleButton/ToggleButton.module.css +0 -234
- package/lib/components/ToggleButton/useToggleButtonStyles.styles.css.js +0 -18
- package/lib/components/ToggleButton/useToggleButtonStyles.styles.css.js.map +0 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.styles.raw.css.js +0 -18
- package/lib/components/ToggleButton/useToggleButtonStyles.styles.raw.css.js.map +0 -1
- package/lib-commonjs/components/Button/Button.module.css +0 -401
- package/lib-commonjs/components/Button/useButtonStyles.styles.css.cjs +0 -33
- package/lib-commonjs/components/Button/useButtonStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/Button/useButtonStyles.styles.raw.css.cjs +0 -33
- package/lib-commonjs/components/Button/useButtonStyles.styles.raw.css.cjs.map +0 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.module.css +0 -143
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.styles.css.cjs +0 -46
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.styles.raw.css.cjs +0 -46
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.styles.raw.css.cjs.map +0 -1
- package/lib-commonjs/components/MenuButton/MenuButton.module.css +0 -75
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.styles.css.cjs +0 -45
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.styles.raw.css.cjs +0 -45
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.styles.raw.css.cjs.map +0 -1
- package/lib-commonjs/components/SplitButton/SplitButton.module.css +0 -73
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.styles.css.cjs +0 -36
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.styles.raw.css.cjs +0 -36
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.styles.raw.css.cjs.map +0 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.module.css +0 -234
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.styles.css.cjs +0 -37
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.styles.raw.css.cjs +0 -37
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.styles.raw.css.cjs.map +0 -1
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
@layer fluentui {
|
|
2
|
-
.checked {
|
|
3
|
-
background-color: var(--colorNeutralBackground1Selected);
|
|
4
|
-
border-color: var(--colorNeutralStroke1);
|
|
5
|
-
border-width: var(--strokeWidthThin);
|
|
6
|
-
color: var(--colorNeutralForeground1Selected);
|
|
7
|
-
|
|
8
|
-
:global(.fui-Icon-filled) {
|
|
9
|
-
display: inline;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:global(.fui-Icon-regular) {
|
|
13
|
-
display: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&:hover {
|
|
17
|
-
background-color: var(--colorNeutralBackground1Hover);
|
|
18
|
-
border-color: var(--colorNeutralStroke1Hover);
|
|
19
|
-
color: var(--colorNeutralForeground1Hover);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&:hover:active,
|
|
23
|
-
&:active:focus-visible {
|
|
24
|
-
background-color: var(--colorNeutralBackground1Pressed);
|
|
25
|
-
border-color: var(--colorNeutralStroke1Pressed);
|
|
26
|
-
color: var(--colorNeutralForeground1Pressed);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.checked:where(.outline) {
|
|
31
|
-
background-color: var(--colorTransparentBackgroundSelected);
|
|
32
|
-
border-color: var(--colorNeutralStroke1);
|
|
33
|
-
border-width: var(--strokeWidthThicker);
|
|
34
|
-
|
|
35
|
-
&:hover {
|
|
36
|
-
background-color: var(--colorTransparentBackgroundHover);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:hover:active,
|
|
40
|
-
&:active:focus-visible {
|
|
41
|
-
background-color: var(--colorTransparentBackgroundPressed);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&[data-fui-focus-visible]:where(:not(:hover)) {
|
|
45
|
-
border-color: var(--colorNeutralStroke1);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.checked:where(.primary) {
|
|
50
|
-
background-color: var(--colorBrandBackgroundSelected);
|
|
51
|
-
border-color: transparent;
|
|
52
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
53
|
-
|
|
54
|
-
&:hover {
|
|
55
|
-
background-color: var(--colorBrandBackgroundHover);
|
|
56
|
-
border-color: transparent;
|
|
57
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&:hover:active,
|
|
61
|
-
&:active:focus-visible {
|
|
62
|
-
background-color: var(--colorBrandBackgroundPressed);
|
|
63
|
-
border-color: transparent;
|
|
64
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.checked:where(.subtle) {
|
|
69
|
-
background-color: var(--colorSubtleBackgroundSelected);
|
|
70
|
-
border-color: transparent;
|
|
71
|
-
color: var(--colorNeutralForeground2Selected);
|
|
72
|
-
|
|
73
|
-
&:hover {
|
|
74
|
-
background-color: var(--colorSubtleBackgroundHover);
|
|
75
|
-
border-color: transparent;
|
|
76
|
-
color: var(--colorNeutralForeground2Hover);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&:hover:active,
|
|
80
|
-
&:active:focus-visible {
|
|
81
|
-
background-color: var(--colorSubtleBackgroundPressed);
|
|
82
|
-
border-color: transparent;
|
|
83
|
-
color: var(--colorNeutralForeground2Pressed);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.checked:where(.transparent) {
|
|
88
|
-
background-color: var(--colorTransparentBackgroundSelected);
|
|
89
|
-
border-color: transparent;
|
|
90
|
-
color: var(--colorNeutralForeground2BrandSelected);
|
|
91
|
-
|
|
92
|
-
&:hover {
|
|
93
|
-
background-color: var(--colorTransparentBackgroundHover);
|
|
94
|
-
border-color: transparent;
|
|
95
|
-
color: var(--colorNeutralForeground2BrandHover);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&:hover:active,
|
|
99
|
-
&:active:focus-visible {
|
|
100
|
-
background-color: var(--colorTransparentBackgroundPressed);
|
|
101
|
-
border-color: transparent;
|
|
102
|
-
color: var(--colorNeutralForeground2BrandPressed);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:where(.checked:not(.isAccessible):is(.subtle, .transparent)) .icon {
|
|
107
|
-
color: var(--colorNeutralForeground2BrandSelected);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.checked:where(.isAccessible) {
|
|
111
|
-
&,
|
|
112
|
-
&:where(.secondary) {
|
|
113
|
-
background-color: var(--colorBrandBackground);
|
|
114
|
-
border-color: transparent;
|
|
115
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&:hover {
|
|
119
|
-
background-color: var(--colorBrandBackgroundHover);
|
|
120
|
-
border-color: transparent;
|
|
121
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&:hover:active,
|
|
125
|
-
&:active:focus-visible {
|
|
126
|
-
background-color: var(--colorBrandBackgroundPressed);
|
|
127
|
-
border-color: transparent;
|
|
128
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&:where(.outline) {
|
|
132
|
-
border-width: var(--strokeWidthThin);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&:where(.primary) {
|
|
136
|
-
outline: var(--strokeWidthThin) solid var(--colorNeutralForegroundOnBrand);
|
|
137
|
-
outline-offset: calc(var(--strokeWidthThicker) * -1);
|
|
138
|
-
|
|
139
|
-
&[data-fui-focus-visible] {
|
|
140
|
-
outline: var(--strokeWidthThin) solid var(--colorNeutralForegroundOnBrand);
|
|
141
|
-
outline-offset: calc(var(--strokeWidthThickest) * -1);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
@media (forced-colors: none) {
|
|
146
|
-
&:where(.subtle):hover :global(.fui-ToggleButton__icon) {
|
|
147
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.disabled {
|
|
153
|
-
&:where(.primary) {
|
|
154
|
-
&,
|
|
155
|
-
&:hover,
|
|
156
|
-
&:hover:active,
|
|
157
|
-
&:active:focus-visible {
|
|
158
|
-
border-color: transparent;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&:where(.subtle, .transparent) {
|
|
163
|
-
background-color: var(--colorTransparentBackground);
|
|
164
|
-
border-color: transparent;
|
|
165
|
-
|
|
166
|
-
&:hover {
|
|
167
|
-
background-color: var(--colorTransparentBackgroundHover);
|
|
168
|
-
border-color: transparent;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&:hover:active,
|
|
172
|
-
&:active:focus-visible {
|
|
173
|
-
background-color: var(--colorTransparentBackgroundPressed);
|
|
174
|
-
border-color: transparent;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
@media (forced-colors: active) {
|
|
180
|
-
.primary {
|
|
181
|
-
background-color: ButtonFace;
|
|
182
|
-
border-color: ButtonBorder;
|
|
183
|
-
color: ButtonText;
|
|
184
|
-
forced-color-adjust: auto;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.disabled:where(.primary) {
|
|
188
|
-
border-color: GrayText;
|
|
189
|
-
color: GrayText;
|
|
190
|
-
|
|
191
|
-
&:focus {
|
|
192
|
-
border-color: GrayText;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.checked {
|
|
197
|
-
background-color: Highlight;
|
|
198
|
-
border-color: Highlight;
|
|
199
|
-
color: HighlightText;
|
|
200
|
-
forced-color-adjust: none;
|
|
201
|
-
|
|
202
|
-
&:focus {
|
|
203
|
-
border: var(--strokeWidthThin) solid HighlightText;
|
|
204
|
-
outline-color: Highlight;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
&:hover {
|
|
208
|
-
background-color: HighlightText;
|
|
209
|
-
border-color: Highlight;
|
|
210
|
-
color: Highlight;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
&:hover:active,
|
|
214
|
-
&:active:focus-visible {
|
|
215
|
-
background-color: HighlightText;
|
|
216
|
-
border-color: Highlight;
|
|
217
|
-
color: Highlight;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.icon {
|
|
222
|
-
forced-color-adjust: auto;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
:where(.checked:not(.disabled)) .icon {
|
|
226
|
-
color: inherit;
|
|
227
|
-
forced-color-adjust: inherit;
|
|
228
|
-
|
|
229
|
-
svg {
|
|
230
|
-
forced-color-adjust: inherit;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { useButtonStyles_unstable } from "../Button/useButtonStyles.styles.css.js";
|
|
4
|
-
import styles from "./ToggleButton.module.css";
|
|
5
|
-
export const toggleButtonClassNames = {
|
|
6
|
-
root: 'fui-ToggleButton',
|
|
7
|
-
icon: 'fui-ToggleButton__icon'
|
|
8
|
-
};
|
|
9
|
-
export const useToggleButtonStyles_unstable = (state)=>{
|
|
10
|
-
// eslint-disable-next-line react-hooks/immutability
|
|
11
|
-
state.root.className = clsx(toggleButtonClassNames.root, styles[state.appearance], state.checked && styles.checked, state.isAccessible && styles.isAccessible, (state.disabled || state.disabledFocusable) && styles.disabled, state.root.className);
|
|
12
|
-
if (state.icon) {
|
|
13
|
-
// eslint-disable-next-line react-hooks/immutability
|
|
14
|
-
state.icon.className = clsx(toggleButtonClassNames.icon, styles.icon, state.icon.className);
|
|
15
|
-
}
|
|
16
|
-
useButtonStyles_unstable(state);
|
|
17
|
-
return state;
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ToggleButton/useToggleButtonStyles.styles.css.ts"],"sourcesContent":["'use client';\n\nimport { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useButtonStyles_unstable } from '../Button/useButtonStyles.styles.css';\nimport type { ButtonSlots } from '../Button/Button.types';\nimport type { ToggleButtonState } from './ToggleButton.types';\nimport styles from './ToggleButton.module.css';\n\nexport const toggleButtonClassNames: SlotClassNames<ButtonSlots> = {\n root: 'fui-ToggleButton',\n icon: 'fui-ToggleButton__icon',\n};\n\nexport const useToggleButtonStyles_unstable = (state: ToggleButtonState): ToggleButtonState => {\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = clsx(\n toggleButtonClassNames.root,\n styles[state.appearance],\n state.checked && styles.checked,\n state.isAccessible && styles.isAccessible,\n (state.disabled || state.disabledFocusable) && styles.disabled,\n state.root.className,\n );\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = clsx(toggleButtonClassNames.icon, styles.icon, state.icon.className);\n }\n\n useButtonStyles_unstable(state);\n return state;\n};\n"],"names":["clsx","useButtonStyles_unstable","styles","toggleButtonClassNames","root","icon","useToggleButtonStyles_unstable","state","className","appearance","checked","isAccessible","disabled","disabledFocusable"],"mappings":"AAAA;AAEA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,wBAAwB,QAAQ,0CAAuC;AAGhF,OAAOC,YAAY,4BAA4B;AAE/C,OAAO,MAAMC,yBAAsD;IACjEC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,iCAAiC,CAACC;IAC7C,oDAAoD;IACpDA,MAAMH,IAAI,CAACI,SAAS,GAAGR,KACrBG,uBAAuBC,IAAI,EAC3BF,MAAM,CAACK,MAAME,UAAU,CAAC,EACxBF,MAAMG,OAAO,IAAIR,OAAOQ,OAAO,EAC/BH,MAAMI,YAAY,IAAIT,OAAOS,YAAY,EACzC,AAACJ,CAAAA,MAAMK,QAAQ,IAAIL,MAAMM,iBAAiB,AAAD,KAAMX,OAAOU,QAAQ,EAC9DL,MAAMH,IAAI,CAACI,SAAS;IAEtB,IAAID,MAAMF,IAAI,EAAE;QACd,oDAAoD;QACpDE,MAAMF,IAAI,CAACG,SAAS,GAAGR,KAAKG,uBAAuBE,IAAI,EAAEH,OAAOG,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAC5F;IAEAP,yBAAyBM;IACzB,OAAOA;AACT,EAAE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { useButtonStyles_unstable } from "../Button/useButtonStyles.styles.css.js";
|
|
4
|
-
import styles from "./ToggleButton.module.css";
|
|
5
|
-
export const toggleButtonClassNames = {
|
|
6
|
-
root: 'fui-ToggleButton',
|
|
7
|
-
icon: 'fui-ToggleButton__icon'
|
|
8
|
-
};
|
|
9
|
-
export const useToggleButtonStyles_unstable = (state)=>{
|
|
10
|
-
// eslint-disable-next-line react-hooks/immutability
|
|
11
|
-
state.root.className = clsx(toggleButtonClassNames.root, styles[state.appearance], state.checked && styles.checked, state.isAccessible && styles.isAccessible, (state.disabled || state.disabledFocusable) && styles.disabled, state.root.className);
|
|
12
|
-
if (state.icon) {
|
|
13
|
-
// eslint-disable-next-line react-hooks/immutability
|
|
14
|
-
state.icon.className = clsx(toggleButtonClassNames.icon, styles.icon, state.icon.className);
|
|
15
|
-
}
|
|
16
|
-
useButtonStyles_unstable(state);
|
|
17
|
-
return state;
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ToggleButton/useToggleButtonStyles.styles.css.ts"],"sourcesContent":["'use client';\n\nimport { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useButtonStyles_unstable } from '../Button/useButtonStyles.styles.css';\nimport type { ButtonSlots } from '../Button/Button.types';\nimport type { ToggleButtonState } from './ToggleButton.types';\nimport styles from './ToggleButton.module.css';\n\nexport const toggleButtonClassNames: SlotClassNames<ButtonSlots> = {\n root: 'fui-ToggleButton',\n icon: 'fui-ToggleButton__icon',\n};\n\nexport const useToggleButtonStyles_unstable = (state: ToggleButtonState): ToggleButtonState => {\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = clsx(\n toggleButtonClassNames.root,\n styles[state.appearance],\n state.checked && styles.checked,\n state.isAccessible && styles.isAccessible,\n (state.disabled || state.disabledFocusable) && styles.disabled,\n state.root.className,\n );\n if (state.icon) {\n // eslint-disable-next-line react-hooks/immutability\n state.icon.className = clsx(toggleButtonClassNames.icon, styles.icon, state.icon.className);\n }\n\n useButtonStyles_unstable(state);\n return state;\n};\n"],"names":["clsx","useButtonStyles_unstable","styles","toggleButtonClassNames","root","icon","useToggleButtonStyles_unstable","state","className","appearance","checked","isAccessible","disabled","disabledFocusable"],"mappings":"AAAA;AAEA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,wBAAwB,QAAQ,0CAAuC;AAGhF,OAAOC,YAAY,4BAA4B;AAE/C,OAAO,MAAMC,yBAAsD;IACjEC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,iCAAiC,CAACC;IAC7C,oDAAoD;IACpDA,MAAMH,IAAI,CAACI,SAAS,GAAGR,KACrBG,uBAAuBC,IAAI,EAC3BF,MAAM,CAACK,MAAME,UAAU,CAAC,EACxBF,MAAMG,OAAO,IAAIR,OAAOQ,OAAO,EAC/BH,MAAMI,YAAY,IAAIT,OAAOS,YAAY,EACzC,AAACJ,CAAAA,MAAMK,QAAQ,IAAIL,MAAMM,iBAAiB,AAAD,KAAMX,OAAOU,QAAQ,EAC9DL,MAAMH,IAAI,CAACI,SAAS;IAEtB,IAAID,MAAMF,IAAI,EAAE;QACd,oDAAoD;QACpDE,MAAMF,IAAI,CAACG,SAAS,GAAGR,KAAKG,uBAAuBE,IAAI,EAAEH,OAAOG,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAC5F;IAEAP,yBAAyBM;IACzB,OAAOA;AACT,EAAE"}
|
|
@@ -1,401 +0,0 @@
|
|
|
1
|
-
@layer fluentui {
|
|
2
|
-
.root {
|
|
3
|
-
align-items: center;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
text-decoration-line: none;
|
|
8
|
-
vertical-align: middle;
|
|
9
|
-
margin: 0;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
background-color: var(--colorNeutralBackground1);
|
|
12
|
-
color: var(--colorNeutralForeground1);
|
|
13
|
-
border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
|
|
14
|
-
font-family: var(--fontFamilyBase);
|
|
15
|
-
outline-style: none;
|
|
16
|
-
transition-duration: var(--durationFaster);
|
|
17
|
-
transition-property: background, border, color;
|
|
18
|
-
transition-timing-function: var(--curveEasyEase);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.root:hover {
|
|
22
|
-
background-color: var(--colorNeutralBackground1Hover);
|
|
23
|
-
border-color: var(--colorNeutralStroke1Hover);
|
|
24
|
-
color: var(--colorNeutralForeground1Hover);
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.root:hover:active,
|
|
29
|
-
.root:active:focus-visible {
|
|
30
|
-
background-color: var(--colorNeutralBackground1Pressed);
|
|
31
|
-
border-color: var(--colorNeutralStroke1Pressed);
|
|
32
|
-
color: var(--colorNeutralForeground1Pressed);
|
|
33
|
-
outline-style: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
|
37
|
-
.root {
|
|
38
|
-
transition-duration: 0.01ms;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.root[data-fui-focus-visible] {
|
|
43
|
-
border-color: var(--colorStrokeFocus2);
|
|
44
|
-
border-radius: var(--borderRadiusMedium);
|
|
45
|
-
border-width: var(--strokeWidthThin);
|
|
46
|
-
outline: var(--strokeWidthThick) solid var(--colorTransparentStroke);
|
|
47
|
-
box-shadow: 0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;
|
|
48
|
-
z-index: 1;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.secondary {
|
|
52
|
-
background-color: var(--colorNeutralBackground1);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.outline {
|
|
56
|
-
background-color: var(--colorTransparentBackground);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.outline:hover {
|
|
60
|
-
background-color: var(--colorTransparentBackgroundHover);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.outline:hover:active,
|
|
64
|
-
.outline:active:focus-visible {
|
|
65
|
-
background-color: var(--colorTransparentBackgroundPressed);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.primary {
|
|
69
|
-
background-color: var(--colorBrandBackground);
|
|
70
|
-
border-color: transparent;
|
|
71
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.primary:hover {
|
|
75
|
-
background-color: var(--colorBrandBackgroundHover);
|
|
76
|
-
border-color: transparent;
|
|
77
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.primary:hover:active,
|
|
81
|
-
.primary:active:focus-visible {
|
|
82
|
-
background-color: var(--colorBrandBackgroundPressed);
|
|
83
|
-
border-color: transparent;
|
|
84
|
-
color: var(--colorNeutralForegroundOnBrand);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.subtle {
|
|
88
|
-
background-color: var(--colorSubtleBackground);
|
|
89
|
-
border-color: transparent;
|
|
90
|
-
color: var(--colorNeutralForeground2);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.subtle:hover {
|
|
94
|
-
background-color: var(--colorSubtleBackgroundHover);
|
|
95
|
-
border-color: transparent;
|
|
96
|
-
color: var(--colorNeutralForeground2Hover);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.subtle:hover:active,
|
|
100
|
-
.subtle:active:focus-visible {
|
|
101
|
-
background-color: var(--colorSubtleBackgroundPressed);
|
|
102
|
-
border-color: transparent;
|
|
103
|
-
color: var(--colorNeutralForeground2Pressed);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.subtle:hover :global(.fui-Button__icon) {
|
|
107
|
-
color: var(--colorNeutralForeground2BrandHover);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.subtle:hover:active :global(.fui-Button__icon),
|
|
111
|
-
.subtle:active:focus-visible :global(.fui-Button__icon) {
|
|
112
|
-
color: var(--colorNeutralForeground2BrandPressed);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.transparent {
|
|
116
|
-
background-color: var(--colorTransparentBackground);
|
|
117
|
-
border-color: transparent;
|
|
118
|
-
color: var(--colorNeutralForeground2);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.transparent:hover {
|
|
122
|
-
background-color: var(--colorTransparentBackgroundHover);
|
|
123
|
-
border-color: transparent;
|
|
124
|
-
color: var(--colorNeutralForeground2BrandHover);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.transparent:hover:active,
|
|
128
|
-
.transparent:active:focus-visible {
|
|
129
|
-
background-color: var(--colorTransparentBackgroundPressed);
|
|
130
|
-
border-color: transparent;
|
|
131
|
-
color: var(--colorNeutralForeground2BrandPressed);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.subtle:hover :global(.fui-Icon-filled),
|
|
135
|
-
.subtle:hover:active :global(.fui-Icon-filled),
|
|
136
|
-
.subtle:active:focus-visible :global(.fui-Icon-filled),
|
|
137
|
-
.transparent:hover :global(.fui-Icon-filled),
|
|
138
|
-
.transparent:hover:active :global(.fui-Icon-filled),
|
|
139
|
-
.transparent:active:focus-visible :global(.fui-Icon-filled) {
|
|
140
|
-
display: inline;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.subtle:hover :global(.fui-Icon-regular),
|
|
144
|
-
.subtle:hover:active :global(.fui-Icon-regular),
|
|
145
|
-
.subtle:active:focus-visible :global(.fui-Icon-regular),
|
|
146
|
-
.transparent:hover :global(.fui-Icon-regular),
|
|
147
|
-
.transparent:hover:active :global(.fui-Icon-regular),
|
|
148
|
-
.transparent:active:focus-visible :global(.fui-Icon-regular) {
|
|
149
|
-
display: none;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.small {
|
|
153
|
-
min-width: calc(var(--spacingHorizontalXXXL) * 2);
|
|
154
|
-
padding: calc(var(--spacingVerticalXS) - var(--strokeWidthThin)) var(--spacingHorizontalS);
|
|
155
|
-
font-size: var(--fontSizeBase200);
|
|
156
|
-
font-weight: var(--fontWeightRegular);
|
|
157
|
-
line-height: var(--lineHeightBase200);
|
|
158
|
-
|
|
159
|
-
.icon {
|
|
160
|
-
--fui-Button__icon--spacing: var(--spacingHorizontalXS);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&:where(.withIcon) {
|
|
164
|
-
padding-top: var(--strokeWidthThin);
|
|
165
|
-
padding-bottom: var(--strokeWidthThin);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.medium {
|
|
170
|
-
padding: calc(var(--spacingVerticalSNudge) - var(--strokeWidthThin)) var(--spacingHorizontalM);
|
|
171
|
-
min-width: calc(var(--spacingHorizontalXXXL) * 3);
|
|
172
|
-
font-size: var(--fontSizeBase300);
|
|
173
|
-
font-weight: var(--fontWeightSemibold);
|
|
174
|
-
line-height: var(--lineHeightBase300);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.large {
|
|
178
|
-
min-width: calc(var(--spacingHorizontalXXXL) * 3);
|
|
179
|
-
padding: var(--spacingVerticalS) var(--spacingHorizontalL);
|
|
180
|
-
font-size: var(--fontSizeBase400);
|
|
181
|
-
font-weight: var(--fontWeightSemibold);
|
|
182
|
-
line-height: var(--lineHeightBase400);
|
|
183
|
-
|
|
184
|
-
.icon {
|
|
185
|
-
font-size: var(--fontSizeBase600);
|
|
186
|
-
height: var(--fontSizeBase600);
|
|
187
|
-
width: var(--fontSizeBase600);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
&:where(.withIcon) {
|
|
191
|
-
padding-top: calc(var(--spacingVerticalS) - var(--strokeWidthThin));
|
|
192
|
-
padding-bottom: calc(var(--spacingVerticalS) - var(--strokeWidthThin));
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.rounded {
|
|
197
|
-
border-radius: var(--borderRadiusMedium);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.circular {
|
|
201
|
-
border-radius: var(--borderRadiusCircular);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.square {
|
|
205
|
-
border-radius: var(--borderRadiusNone);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.disabled,
|
|
209
|
-
.disabled:hover,
|
|
210
|
-
.disabled:hover:active,
|
|
211
|
-
.disabled:active:focus-visible {
|
|
212
|
-
background-color: var(--colorNeutralBackgroundDisabled);
|
|
213
|
-
border-color: var(--colorNeutralStrokeDisabled);
|
|
214
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
215
|
-
cursor: not-allowed;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.disabled :global(.fui-Button__icon),
|
|
219
|
-
.disabled:hover :global(.fui-Button__icon),
|
|
220
|
-
.disabled:hover:active :global(.fui-Button__icon),
|
|
221
|
-
.disabled:active:focus-visible :global(.fui-Button__icon) {
|
|
222
|
-
color: var(--colorNeutralForegroundDisabled);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.disabled:hover :global(.fui-Icon-filled),
|
|
226
|
-
.disabled:hover:active :global(.fui-Icon-filled),
|
|
227
|
-
.disabled:active:focus-visible :global(.fui-Icon-filled) {
|
|
228
|
-
display: none;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.disabled:hover :global(.fui-Icon-regular),
|
|
232
|
-
.disabled:hover:active :global(.fui-Icon-regular),
|
|
233
|
-
.disabled:active:focus-visible :global(.fui-Icon-regular) {
|
|
234
|
-
display: inline;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.disabled {
|
|
238
|
-
&:where(.outline, .subtle, .transparent) {
|
|
239
|
-
&,
|
|
240
|
-
&:hover,
|
|
241
|
-
&:hover:active,
|
|
242
|
-
&:active:focus-visible {
|
|
243
|
-
background-color: var(--colorTransparentBackground);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
&:where(.primary, .subtle, .transparent) {
|
|
248
|
-
&,
|
|
249
|
-
&:hover,
|
|
250
|
-
&:hover:active,
|
|
251
|
-
&:active:focus-visible {
|
|
252
|
-
border-color: transparent;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.primary[data-fui-focus-visible] {
|
|
258
|
-
border-color: var(--colorStrokeFocus2);
|
|
259
|
-
box-shadow: var(--shadow2), 0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,
|
|
260
|
-
0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.primary[data-fui-focus-visible]:hover {
|
|
264
|
-
border-color: var(--colorStrokeFocus2);
|
|
265
|
-
box-shadow: var(--shadow2), 0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/* Firefox needs an extra quarter of the default thin stroke at some zoom levels. */
|
|
269
|
-
@supports (-moz-appearance: button) {
|
|
270
|
-
.root[data-fui-focus-visible] {
|
|
271
|
-
box-shadow: 0 0 0 calc(var(--strokeWidthThin) * 1.25) var(--colorStrokeFocus2) inset;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.primary[data-fui-focus-visible] {
|
|
275
|
-
box-shadow: var(--shadow2), 0 0 0 calc(var(--strokeWidthThin) * 1.25) var(--colorStrokeFocus2) inset,
|
|
276
|
-
0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.primary[data-fui-focus-visible]:hover {
|
|
280
|
-
box-shadow: var(--shadow2), 0 0 0 calc(var(--strokeWidthThin) * 1.25) var(--colorStrokeFocus2) inset;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.small[data-fui-focus-visible] {
|
|
285
|
-
border-radius: var(--borderRadiusSmall);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.large[data-fui-focus-visible] {
|
|
289
|
-
border-radius: var(--borderRadiusLarge);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.circular[data-fui-focus-visible] {
|
|
293
|
-
border-radius: var(--borderRadiusCircular);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.square[data-fui-focus-visible] {
|
|
297
|
-
border-radius: var(--borderRadiusNone);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.iconOnly {
|
|
301
|
-
padding: calc(var(--spacingVerticalSNudge) - var(--strokeWidthThin));
|
|
302
|
-
min-width: var(--spacingHorizontalXXXL);
|
|
303
|
-
max-width: var(--spacingHorizontalXXXL);
|
|
304
|
-
|
|
305
|
-
&:where(.small) {
|
|
306
|
-
padding: var(--strokeWidthThin);
|
|
307
|
-
min-width: var(--spacingHorizontalXXL);
|
|
308
|
-
max-width: var(--spacingHorizontalXXL);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
&:where(.large) {
|
|
312
|
-
padding: calc(var(--spacingVerticalS) - var(--strokeWidthThin));
|
|
313
|
-
min-width: calc(var(--spacingHorizontalXL) * 2);
|
|
314
|
-
max-width: calc(var(--spacingHorizontalXL) * 2);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.icon {
|
|
319
|
-
align-items: center;
|
|
320
|
-
display: inline-flex;
|
|
321
|
-
justify-content: center;
|
|
322
|
-
font-size: var(--fontSizeBase500);
|
|
323
|
-
height: var(--fontSizeBase500);
|
|
324
|
-
width: var(--fontSizeBase500);
|
|
325
|
-
--fui-Button__icon--spacing: var(--spacingHorizontalSNudge);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.before {
|
|
329
|
-
margin-inline-end: var(--fui-Button__icon--spacing);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
.after {
|
|
333
|
-
margin-inline-start: var(--fui-Button__icon--spacing);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
@media (forced-colors: active) {
|
|
337
|
-
.root:focus {
|
|
338
|
-
border-color: ButtonText;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.root:hover,
|
|
342
|
-
.root:hover:active,
|
|
343
|
-
.root:active:focus-visible {
|
|
344
|
-
background-color: HighlightText;
|
|
345
|
-
border-color: Highlight;
|
|
346
|
-
color: Highlight;
|
|
347
|
-
forced-color-adjust: none;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.primary {
|
|
351
|
-
background-color: Highlight;
|
|
352
|
-
border-color: HighlightText;
|
|
353
|
-
color: HighlightText;
|
|
354
|
-
forced-color-adjust: none;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.primary:hover,
|
|
358
|
-
.primary:hover:active,
|
|
359
|
-
.primary:active:focus-visible {
|
|
360
|
-
background-color: HighlightText;
|
|
361
|
-
border-color: Highlight;
|
|
362
|
-
color: Highlight;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.subtle:hover,
|
|
366
|
-
.subtle:hover:active,
|
|
367
|
-
.subtle:active:focus-visible,
|
|
368
|
-
.subtle:hover :global(.fui-Button__icon),
|
|
369
|
-
.subtle:hover:active :global(.fui-Button__icon),
|
|
370
|
-
.subtle:active:focus-visible :global(.fui-Button__icon) {
|
|
371
|
-
color: Highlight;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.transparent:hover,
|
|
375
|
-
.transparent:hover:active,
|
|
376
|
-
.transparent:active:focus-visible {
|
|
377
|
-
background-color: var(--colorTransparentBackground);
|
|
378
|
-
color: Highlight;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.disabled,
|
|
382
|
-
.disabled:hover,
|
|
383
|
-
.disabled:hover:active,
|
|
384
|
-
.disabled:active:focus-visible {
|
|
385
|
-
background-color: ButtonFace;
|
|
386
|
-
border-color: GrayText;
|
|
387
|
-
color: GrayText;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.disabled:focus {
|
|
391
|
-
border-color: GrayText;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.disabled :global(.fui-Button__icon),
|
|
395
|
-
.disabled:hover :global(.fui-Button__icon),
|
|
396
|
-
.disabled:hover:active :global(.fui-Button__icon),
|
|
397
|
-
.disabled:active:focus-visible :global(.fui-Button__icon) {
|
|
398
|
-
color: GrayText;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
}
|