@fluentui/react-button 9.3.4 → 9.3.5
Sign up to get free protection for your applications and to get access to all the features.
- package/.swcrc +30 -0
- package/CHANGELOG.json +70 -1
- package/CHANGELOG.md +20 -2
- package/lib/Button.js.map +1 -1
- package/lib/CompoundButton.js.map +1 -1
- package/lib/MenuButton.js.map +1 -1
- package/lib/SplitButton.js.map +1 -1
- package/lib/ToggleButton.js.map +1 -1
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.types.js.map +1 -1
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/renderButton.js +1 -7
- package/lib/components/Button/renderButton.js.map +1 -1
- package/lib/components/Button/useButton.js +1 -0
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib/components/CompoundButton/index.js.map +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.js +1 -11
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js +3 -2
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.types.js.map +1 -1
- package/lib/components/MenuButton/index.js.map +1 -1
- package/lib/components/MenuButton/renderMenuButton.js +1 -7
- package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButton.js +2 -2
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib/components/SplitButton/index.js.map +1 -1
- package/lib/components/SplitButton/renderSplitButton.js +1 -7
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.js +1 -0
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.types.js.map +1 -1
- package/lib/components/ToggleButton/index.js.map +1 -1
- package/lib/components/ToggleButton/renderToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButton.js +1 -0
- package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib/contexts/ButtonContext.js +2 -4
- package/lib/contexts/ButtonContext.js.map +1 -1
- package/lib/contexts/index.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/useToggleState.js.map +1 -1
- package/lib-commonjs/Button.js +5 -4
- package/lib-commonjs/Button.js.map +1 -1
- package/lib-commonjs/CompoundButton.js +5 -4
- package/lib-commonjs/CompoundButton.js.map +1 -1
- package/lib-commonjs/MenuButton.js +5 -4
- package/lib-commonjs/MenuButton.js.map +1 -1
- package/lib-commonjs/SplitButton.js +5 -4
- package/lib-commonjs/SplitButton.js.map +1 -1
- package/lib-commonjs/ToggleButton.js +5 -4
- package/lib-commonjs/ToggleButton.js.map +1 -1
- package/lib-commonjs/components/Button/Button.js +19 -21
- package/lib-commonjs/components/Button/Button.js.map +1 -1
- package/lib-commonjs/components/Button/Button.types.js +3 -2
- package/lib-commonjs/components/Button/Button.types.js.map +1 -1
- package/lib-commonjs/components/Button/index.js +17 -19
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/renderButton.js +14 -26
- package/lib-commonjs/components/Button/renderButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.js +40 -52
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.js +1129 -471
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.js +19 -21
- package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.js +3 -2
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.js +18 -20
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +14 -30
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js +31 -36
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +315 -184
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.js +19 -22
- package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.types.js +3 -2
- package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -1
- package/lib-commonjs/components/MenuButton/index.js +18 -20
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js +14 -26
- package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.js +34 -37
- package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +166 -106
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.js +19 -22
- package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.js +3 -2
- package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib-commonjs/components/SplitButton/index.js +18 -20
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js +13 -22
- package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.js +66 -79
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +263 -106
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.js +19 -21
- package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.types.js +3 -2
- package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/index.js +18 -20
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js +6 -8
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.js +14 -16
- package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +897 -380
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/contexts/ButtonContext.js +18 -19
- package/lib-commonjs/contexts/ButtonContext.js.map +1 -1
- package/lib-commonjs/contexts/index.js +5 -4
- package/lib-commonjs/contexts/index.js.map +1 -1
- package/lib-commonjs/index.js +47 -179
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/index.js +5 -4
- package/lib-commonjs/utils/index.js.map +1 -1
- package/lib-commonjs/utils/useToggleState.js +40 -40
- package/lib-commonjs/utils/useToggleState.js.map +1 -1
- package/package.json +12 -11
- package/lib-amd/Button.js +0 -6
- package/lib-amd/Button.js.map +0 -1
- package/lib-amd/CompoundButton.js +0 -6
- package/lib-amd/CompoundButton.js.map +0 -1
- package/lib-amd/MenuButton.js +0 -6
- package/lib-amd/MenuButton.js.map +0 -1
- package/lib-amd/SplitButton.js +0 -6
- package/lib-amd/SplitButton.js.map +0 -1
- package/lib-amd/ToggleButton.js +0 -6
- package/lib-amd/ToggleButton.js.map +0 -1
- package/lib-amd/components/Button/Button.js +0 -18
- package/lib-amd/components/Button/Button.js.map +0 -1
- package/lib-amd/components/Button/Button.types.js +0 -5
- package/lib-amd/components/Button/Button.types.js.map +0 -1
- package/lib-amd/components/Button/index.js +0 -11
- package/lib-amd/components/Button/index.js.map +0 -1
- package/lib-amd/components/Button/renderButton.js +0 -18
- package/lib-amd/components/Button/renderButton.js.map +0 -1
- package/lib-amd/components/Button/useButton.js +0 -41
- package/lib-amd/components/Button/useButton.js.map +0 -1
- package/lib-amd/components/Button/useButtonStyles.js +0 -227
- package/lib-amd/components/Button/useButtonStyles.js.map +0 -1
- package/lib-amd/components/CompoundButton/CompoundButton.js +0 -18
- package/lib-amd/components/CompoundButton/CompoundButton.js.map +0 -1
- package/lib-amd/components/CompoundButton/CompoundButton.types.js +0 -5
- package/lib-amd/components/CompoundButton/CompoundButton.types.js.map +0 -1
- package/lib-amd/components/CompoundButton/index.js +0 -12
- package/lib-amd/components/CompoundButton/index.js.map +0 -1
- package/lib-amd/components/CompoundButton/renderCompoundButton.js +0 -20
- package/lib-amd/components/CompoundButton/renderCompoundButton.js.map +0 -1
- package/lib-amd/components/CompoundButton/useCompoundButton.js +0 -27
- package/lib-amd/components/CompoundButton/useCompoundButton.js.map +0 -1
- package/lib-amd/components/CompoundButton/useCompoundButtonStyles.js +0 -216
- package/lib-amd/components/CompoundButton/useCompoundButtonStyles.js.map +0 -1
- package/lib-amd/components/MenuButton/MenuButton.js +0 -19
- package/lib-amd/components/MenuButton/MenuButton.js.map +0 -1
- package/lib-amd/components/MenuButton/MenuButton.types.js +0 -5
- package/lib-amd/components/MenuButton/MenuButton.types.js.map +0 -1
- package/lib-amd/components/MenuButton/index.js +0 -12
- package/lib-amd/components/MenuButton/index.js.map +0 -1
- package/lib-amd/components/MenuButton/renderMenuButton.js +0 -18
- package/lib-amd/components/MenuButton/renderMenuButton.js.map +0 -1
- package/lib-amd/components/MenuButton/useMenuButton.js +0 -30
- package/lib-amd/components/MenuButton/useMenuButton.js.map +0 -1
- package/lib-amd/components/MenuButton/useMenuButtonStyles.js +0 -97
- package/lib-amd/components/MenuButton/useMenuButtonStyles.js.map +0 -1
- package/lib-amd/components/SplitButton/SplitButton.js +0 -19
- package/lib-amd/components/SplitButton/SplitButton.js.map +0 -1
- package/lib-amd/components/SplitButton/SplitButton.types.js +0 -5
- package/lib-amd/components/SplitButton/SplitButton.types.js.map +0 -1
- package/lib-amd/components/SplitButton/index.js +0 -12
- package/lib-amd/components/SplitButton/index.js.map +0 -1
- package/lib-amd/components/SplitButton/renderSplitButton.js +0 -16
- package/lib-amd/components/SplitButton/renderSplitButton.js.map +0 -1
- package/lib-amd/components/SplitButton/useSplitButton.js +0 -67
- package/lib-amd/components/SplitButton/useSplitButton.js.map +0 -1
- package/lib-amd/components/SplitButton/useSplitButtonStyles.js +0 -162
- package/lib-amd/components/SplitButton/useSplitButtonStyles.js.map +0 -1
- package/lib-amd/components/ToggleButton/ToggleButton.js +0 -18
- package/lib-amd/components/ToggleButton/ToggleButton.js.map +0 -1
- package/lib-amd/components/ToggleButton/ToggleButton.types.js +0 -5
- package/lib-amd/components/ToggleButton/ToggleButton.types.js.map +0 -1
- package/lib-amd/components/ToggleButton/index.js +0 -12
- package/lib-amd/components/ToggleButton/index.js.map +0 -1
- package/lib-amd/components/ToggleButton/renderToggleButton.js +0 -7
- package/lib-amd/components/ToggleButton/renderToggleButton.js.map +0 -1
- package/lib-amd/components/ToggleButton/useToggleButton.js +0 -17
- package/lib-amd/components/ToggleButton/useToggleButton.js.map +0 -1
- package/lib-amd/components/ToggleButton/useToggleButtonStyles.js +0 -87
- package/lib-amd/components/ToggleButton/useToggleButtonStyles.js.map +0 -1
- package/lib-amd/contexts/ButtonContext.js +0 -19
- package/lib-amd/contexts/ButtonContext.js.map +0 -1
- package/lib-amd/contexts/index.js +0 -6
- package/lib-amd/contexts/index.js.map +0 -1
- package/lib-amd/index.js +0 -34
- package/lib-amd/index.js.map +0 -1
- package/lib-amd/utils/index.js +0 -6
- package/lib-amd/utils/index.js.map +0 -1
- package/lib-amd/utils/useToggleState.js +0 -27
- package/lib-amd/utils/useToggleState.js.map +0 -1
@@ -1,199 +1,330 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
compoundButtonClassNames: ()=>compoundButtonClassNames,
|
13
|
+
useCompoundButtonStyles_unstable: ()=>useCompoundButtonStyles_unstable
|
5
14
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
contentContainer: 'fui-CompoundButton__contentContainer',
|
14
|
-
secondaryContent: 'fui-CompoundButton__secondaryContent'
|
15
|
+
const _react = require("@griffel/react");
|
16
|
+
const _useButtonStyles = require("../Button/useButtonStyles");
|
17
|
+
const compoundButtonClassNames = {
|
18
|
+
root: 'fui-CompoundButton',
|
19
|
+
icon: 'fui-CompoundButton__icon',
|
20
|
+
contentContainer: 'fui-CompoundButton__contentContainer',
|
21
|
+
secondaryContent: 'fui-CompoundButton__secondaryContent'
|
15
22
|
};
|
16
|
-
const useRootStyles = /*#__PURE__*/
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
23
|
+
const useRootStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
24
|
+
base: {
|
25
|
+
Bqenvij: "f11ysow2",
|
26
|
+
J657lq: "f1um431h",
|
27
|
+
Jlnjib: "fte7hqw",
|
28
|
+
Bc29nj9: "f1yh8ef3"
|
29
|
+
},
|
30
|
+
highContrast: {
|
31
|
+
pu7qz5: "fi3u9nm",
|
32
|
+
B10010i: "f1tdgb9w"
|
33
|
+
},
|
34
|
+
outline: {},
|
35
|
+
primary: {
|
36
|
+
J657lq: "foe7gw6",
|
37
|
+
Jlnjib: "fvxlz81",
|
38
|
+
Bc29nj9: "f1c2mdy",
|
39
|
+
B8ia98v: "f1r39r2s"
|
40
|
+
},
|
41
|
+
secondary: {},
|
42
|
+
subtle: {
|
43
|
+
J657lq: "f1um431h",
|
44
|
+
Jlnjib: "fte7hqw",
|
45
|
+
Bc29nj9: "f1yh8ef3"
|
46
|
+
},
|
47
|
+
transparent: {
|
48
|
+
J657lq: "f1um431h",
|
49
|
+
Jlnjib: "f1wn9xqz",
|
50
|
+
Bc29nj9: "f1a8q4d0"
|
51
|
+
},
|
52
|
+
small: {
|
53
|
+
z8tnut: "f17mpqex",
|
54
|
+
z189sj: [
|
55
|
+
"f1vdfbxk",
|
56
|
+
"f1f5gg8d"
|
57
|
+
],
|
58
|
+
Byoj8tv: "f1quwm26",
|
59
|
+
uwmqm3: [
|
60
|
+
"f1f5gg8d",
|
61
|
+
"f1vdfbxk"
|
62
|
+
],
|
63
|
+
Be2twd7: "fkhj508",
|
64
|
+
Bg96gwp: "f1i3iumi"
|
65
|
+
},
|
66
|
+
medium: {
|
67
|
+
z8tnut: "fbtff6s",
|
68
|
+
z189sj: [
|
69
|
+
"fw5db7e",
|
70
|
+
"f1uw59to"
|
71
|
+
],
|
72
|
+
Byoj8tv: "flw3t2g",
|
73
|
+
uwmqm3: [
|
74
|
+
"f1uw59to",
|
75
|
+
"fw5db7e"
|
76
|
+
],
|
77
|
+
Be2twd7: "fkhj508",
|
78
|
+
Bg96gwp: "f1i3iumi"
|
79
|
+
},
|
80
|
+
large: {
|
81
|
+
z8tnut: "fm4bm3s",
|
82
|
+
z189sj: [
|
83
|
+
"fjodcmx",
|
84
|
+
"fhx4nu"
|
85
|
+
],
|
86
|
+
Byoj8tv: "fdt8xvx",
|
87
|
+
uwmqm3: [
|
88
|
+
"fhx4nu",
|
89
|
+
"fjodcmx"
|
90
|
+
],
|
91
|
+
Be2twd7: "fod5ikn",
|
92
|
+
Bg96gwp: "faaz57k"
|
93
|
+
},
|
94
|
+
disabled: {
|
95
|
+
J657lq: "f1rlv8bf",
|
96
|
+
Jlnjib: "fd1dbtm",
|
97
|
+
Bc29nj9: "f1vqmdmi"
|
98
|
+
},
|
99
|
+
disabledHighContrast: {
|
100
|
+
B8ia98v: "f1csacz4",
|
101
|
+
pu7qz5: "f1s5tkfe",
|
102
|
+
B10010i: "fs0rda3"
|
103
|
+
}
|
79
104
|
}, {
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
105
|
+
d: [
|
106
|
+
".f11ysow2{height:auto;}",
|
107
|
+
".f1um431h .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForeground2);}",
|
108
|
+
".foe7gw6 .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundOnBrand);}",
|
109
|
+
".f17mpqex{padding-top:var(--spacingHorizontalS);}",
|
110
|
+
".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",
|
111
|
+
".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",
|
112
|
+
".f1quwm26{padding-bottom:var(--spacingHorizontalMNudge);}",
|
113
|
+
".fkhj508{font-size:var(--fontSizeBase300);}",
|
114
|
+
".f1i3iumi{line-height:var(--lineHeightBase300);}",
|
115
|
+
".fbtff6s{padding-top:14px;}",
|
116
|
+
".fw5db7e{padding-right:var(--spacingHorizontalM);}",
|
117
|
+
".f1uw59to{padding-left:var(--spacingHorizontalM);}",
|
118
|
+
".flw3t2g{padding-bottom:var(--spacingHorizontalL);}",
|
119
|
+
".fm4bm3s{padding-top:18px;}",
|
120
|
+
".fjodcmx{padding-right:var(--spacingHorizontalL);}",
|
121
|
+
".fhx4nu{padding-left:var(--spacingHorizontalL);}",
|
122
|
+
".fdt8xvx{padding-bottom:var(--spacingHorizontalXL);}",
|
123
|
+
".fod5ikn{font-size:var(--fontSizeBase400);}",
|
124
|
+
".faaz57k{line-height:var(--lineHeightBase400);}",
|
125
|
+
".f1rlv8bf .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundDisabled);}"
|
126
|
+
],
|
127
|
+
h: [
|
128
|
+
".fte7hqw:hover .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForeground2Hover);}",
|
129
|
+
".f1yh8ef3:hover:active .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForeground2Pressed);}",
|
130
|
+
".fvxlz81:hover .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundOnBrand);}",
|
131
|
+
".f1c2mdy:hover:active .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundOnBrand);}",
|
132
|
+
".f1wn9xqz:hover .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForeground2BrandHover);}",
|
133
|
+
".f1a8q4d0:hover:active .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForeground2BrandPressed);}",
|
134
|
+
".fd1dbtm:hover .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundDisabled);}",
|
135
|
+
".f1vqmdmi:hover:active .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundDisabled);}"
|
136
|
+
],
|
137
|
+
m: [
|
138
|
+
[
|
139
|
+
"@media (forced-colors: active){.fi3u9nm:hover .fui-CompoundButton__secondaryContent{color:Highlight;}}",
|
140
|
+
{
|
141
|
+
m: "(forced-colors: active)"
|
142
|
+
}
|
143
|
+
],
|
144
|
+
[
|
145
|
+
"@media (forced-colors: active){.f1tdgb9w:hover:active .fui-CompoundButton__secondaryContent{color:Highlight;}}",
|
146
|
+
{
|
147
|
+
m: "(forced-colors: active)"
|
148
|
+
}
|
149
|
+
],
|
150
|
+
[
|
151
|
+
"@media (forced-colors: active){.f1r39r2s .fui-CompoundButton__secondaryContent{color:HighlightText;}}",
|
152
|
+
{
|
153
|
+
m: "(forced-colors: active)"
|
154
|
+
}
|
155
|
+
],
|
156
|
+
[
|
157
|
+
"@media (forced-colors: active){.f1csacz4 .fui-CompoundButton__secondaryContent{color:GrayText;}}",
|
158
|
+
{
|
159
|
+
m: "(forced-colors: active)"
|
160
|
+
}
|
161
|
+
],
|
162
|
+
[
|
163
|
+
"@media (forced-colors: active){.f1s5tkfe:hover .fui-CompoundButton__secondaryContent{color:GrayText;}}",
|
164
|
+
{
|
165
|
+
m: "(forced-colors: active)"
|
166
|
+
}
|
167
|
+
],
|
168
|
+
[
|
169
|
+
"@media (forced-colors: active){.fs0rda3:hover:active .fui-CompoundButton__secondaryContent{color:GrayText;}}",
|
170
|
+
{
|
171
|
+
m: "(forced-colors: active)"
|
172
|
+
}
|
173
|
+
]
|
174
|
+
]
|
95
175
|
});
|
96
|
-
const useRootIconOnlyStyles = /*#__PURE__*/
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
176
|
+
const useRootIconOnlyStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
177
|
+
small: {
|
178
|
+
z8tnut: "f1x4af0m",
|
179
|
+
z189sj: [
|
180
|
+
"f7x41pl",
|
181
|
+
"fruq291"
|
182
|
+
],
|
183
|
+
Byoj8tv: "fd55psn",
|
184
|
+
uwmqm3: [
|
185
|
+
"fruq291",
|
186
|
+
"f7x41pl"
|
187
|
+
],
|
188
|
+
B2u0y6b: "ft5vyj6",
|
189
|
+
Bf4jedk: "f17suaiq"
|
190
|
+
},
|
191
|
+
medium: {
|
192
|
+
z8tnut: "f16k8034",
|
193
|
+
z189sj: [
|
194
|
+
"fdw0yi8",
|
195
|
+
"fk8j09s"
|
196
|
+
],
|
197
|
+
Byoj8tv: "f1angvds",
|
198
|
+
uwmqm3: [
|
199
|
+
"fk8j09s",
|
200
|
+
"fdw0yi8"
|
201
|
+
],
|
202
|
+
B2u0y6b: "fdczgix",
|
203
|
+
Bf4jedk: "fjdcg9m"
|
204
|
+
},
|
205
|
+
large: {
|
206
|
+
z8tnut: "f17mpqex",
|
207
|
+
z189sj: [
|
208
|
+
"f1vdfbxk",
|
209
|
+
"f1f5gg8d"
|
210
|
+
],
|
211
|
+
Byoj8tv: "fdvome7",
|
212
|
+
uwmqm3: [
|
213
|
+
"f1f5gg8d",
|
214
|
+
"f1vdfbxk"
|
215
|
+
],
|
216
|
+
B2u0y6b: "fww51uw",
|
217
|
+
Bf4jedk: "f1qhsl2h"
|
218
|
+
}
|
121
219
|
}, {
|
122
|
-
|
220
|
+
d: [
|
221
|
+
".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",
|
222
|
+
".f7x41pl{padding-right:var(--spacingHorizontalXS);}",
|
223
|
+
".fruq291{padding-left:var(--spacingHorizontalXS);}",
|
224
|
+
".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",
|
225
|
+
".ft5vyj6{max-width:48px;}",
|
226
|
+
".f17suaiq{min-width:48px;}",
|
227
|
+
".f16k8034{padding-top:var(--spacingHorizontalSNudge);}",
|
228
|
+
".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",
|
229
|
+
".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",
|
230
|
+
".f1angvds{padding-bottom:var(--spacingHorizontalSNudge);}",
|
231
|
+
".fdczgix{max-width:52px;}",
|
232
|
+
".fjdcg9m{min-width:52px;}",
|
233
|
+
".f17mpqex{padding-top:var(--spacingHorizontalS);}",
|
234
|
+
".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",
|
235
|
+
".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",
|
236
|
+
".fdvome7{padding-bottom:var(--spacingHorizontalS);}",
|
237
|
+
".fww51uw{max-width:56px;}",
|
238
|
+
".f1qhsl2h{min-width:56px;}"
|
239
|
+
]
|
123
240
|
});
|
124
|
-
const useIconStyles = /*#__PURE__*/
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
241
|
+
const useIconStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
242
|
+
base: {
|
243
|
+
Be2twd7: "fndrnj9",
|
244
|
+
Bqenvij: "fbhnoac",
|
245
|
+
a9b677: "feqmc2u"
|
246
|
+
},
|
247
|
+
before: {
|
248
|
+
t21cq0: [
|
249
|
+
"fkujibs",
|
250
|
+
"f199hnxi"
|
251
|
+
]
|
252
|
+
},
|
253
|
+
after: {
|
254
|
+
Frg6f3: [
|
255
|
+
"f199hnxi",
|
256
|
+
"fkujibs"
|
257
|
+
]
|
258
|
+
}
|
136
259
|
}, {
|
137
|
-
|
260
|
+
d: [
|
261
|
+
".fndrnj9{font-size:40px;}",
|
262
|
+
".fbhnoac{height:40px;}",
|
263
|
+
".feqmc2u{width:40px;}",
|
264
|
+
".fkujibs{margin-right:var(--spacingHorizontalM);}",
|
265
|
+
".f199hnxi{margin-left:var(--spacingHorizontalM);}"
|
266
|
+
]
|
138
267
|
});
|
139
|
-
const useContentContainerStyles = /*#__PURE__*/
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
268
|
+
const useContentContainerStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
269
|
+
base: {
|
270
|
+
mc9l5x: "f22iagw",
|
271
|
+
Beiy3e4: "f1vx9l62",
|
272
|
+
fsow6f: [
|
273
|
+
"f1o700av",
|
274
|
+
"fes3tcz"
|
275
|
+
]
|
276
|
+
}
|
145
277
|
}, {
|
146
|
-
|
278
|
+
d: [
|
279
|
+
".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",
|
280
|
+
".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",
|
281
|
+
".f1o700av{text-align:left;}",
|
282
|
+
".fes3tcz{text-align:right;}"
|
283
|
+
]
|
147
284
|
});
|
148
|
-
const useSecondaryContentStyles = /*#__PURE__*/
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
285
|
+
const useSecondaryContentStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
286
|
+
base: {
|
287
|
+
Bg96gwp: "flkuc6h",
|
288
|
+
Bhrd7zp: "figsok6"
|
289
|
+
},
|
290
|
+
small: {
|
291
|
+
Be2twd7: "fy9rknc"
|
292
|
+
},
|
293
|
+
medium: {
|
294
|
+
Be2twd7: "fy9rknc"
|
295
|
+
},
|
296
|
+
large: {
|
297
|
+
Be2twd7: "fkhj508"
|
298
|
+
}
|
162
299
|
}, {
|
163
|
-
|
300
|
+
d: [
|
301
|
+
".flkuc6h{line-height:100%;}",
|
302
|
+
".figsok6{font-weight:var(--fontWeightRegular);}",
|
303
|
+
".fy9rknc{font-size:var(--fontSizeBase200);}",
|
304
|
+
".fkhj508{font-size:var(--fontSizeBase300);}"
|
305
|
+
]
|
164
306
|
});
|
165
|
-
const useCompoundButtonStyles_unstable = state
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
disabledFocusable,
|
175
|
-
iconOnly,
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
state.contentContainer.className = react_1.mergeClasses(exports.compoundButtonClassNames.contentContainer, contentContainerStyles.base, state.contentContainer.className);
|
189
|
-
if (state.icon) {
|
190
|
-
state.icon.className = react_1.mergeClasses(exports.compoundButtonClassNames.icon, iconStyles.base, state.root.children !== undefined && state.root.children !== null && iconStyles[iconPosition], state.icon.className);
|
191
|
-
}
|
192
|
-
if (state.secondaryContent) {
|
193
|
-
state.secondaryContent.className = react_1.mergeClasses(exports.compoundButtonClassNames.secondaryContent, secondaryContentStyles.base, secondaryContentStyles[size], state.secondaryContent.className);
|
194
|
-
}
|
195
|
-
useButtonStyles_1.useButtonStyles_unstable(state);
|
196
|
-
return state;
|
197
|
-
};
|
198
|
-
exports.useCompoundButtonStyles_unstable = useCompoundButtonStyles_unstable;
|
307
|
+
const useCompoundButtonStyles_unstable = (state)=>{
|
308
|
+
const rootStyles = useRootStyles();
|
309
|
+
const rootIconOnlyStyles = useRootIconOnlyStyles();
|
310
|
+
const iconStyles = useIconStyles();
|
311
|
+
const contentContainerStyles = useContentContainerStyles();
|
312
|
+
const secondaryContentStyles = useSecondaryContentStyles();
|
313
|
+
const { appearance , disabled , disabledFocusable , iconOnly , iconPosition , size } = state;
|
314
|
+
state.root.className = (0, _react.mergeClasses)(compoundButtonClassNames.root, // Root styles
|
315
|
+
rootStyles.base, rootStyles.highContrast, appearance && rootStyles[appearance], rootStyles[size], // Disabled styles
|
316
|
+
(disabled || disabledFocusable) && rootStyles.disabled, (disabled || disabledFocusable) && rootStyles.disabledHighContrast, // Icon-only styles
|
317
|
+
iconOnly && rootIconOnlyStyles[size], // User provided class name
|
318
|
+
state.root.className);
|
319
|
+
state.contentContainer.className = (0, _react.mergeClasses)(compoundButtonClassNames.contentContainer, contentContainerStyles.base, state.contentContainer.className);
|
320
|
+
if (state.icon) {
|
321
|
+
state.icon.className = (0, _react.mergeClasses)(compoundButtonClassNames.icon, iconStyles.base, state.root.children !== undefined && state.root.children !== null && iconStyles[iconPosition], state.icon.className);
|
322
|
+
}
|
323
|
+
if (state.secondaryContent) {
|
324
|
+
state.secondaryContent.className = (0, _react.mergeClasses)(compoundButtonClassNames.secondaryContent, secondaryContentStyles.base, secondaryContentStyles[size], state.secondaryContent.className);
|
325
|
+
}
|
326
|
+
(0, _useButtonStyles.useButtonStyles_unstable)(state);
|
327
|
+
return state;
|
328
|
+
}; //# sourceMappingURL=useCompoundButtonStyles.js.map
|
329
|
+
|
199
330
|
//# sourceMappingURL=useCompoundButtonStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["react_theme_1","require","react_1","useButtonStyles_1","exports","compoundButtonClassNames","root","icon","contentContainer","secondaryContent","useRootStyles","__styles","base","Bqenvij","J657lq","Jlnjib","Bc29nj9","highContrast","pu7qz5","B10010i","outline","primary","B8ia98v","secondary","subtle","transparent","small","z8tnut","z189sj","Byoj8tv","uwmqm3","Be2twd7","Bg96gwp","medium","large","disabled","disabledHighContrast","d","h","m","useRootIconOnlyStyles","B2u0y6b","Bf4jedk","useIconStyles","a9b677","before","t21cq0","after","Frg6f3","useContentContainerStyles","mc9l5x","Beiy3e4","fsow6f","useSecondaryContentStyles","Bhrd7zp","useCompoundButtonStyles_unstable","state","rootStyles","rootIconOnlyStyles","iconStyles","contentContainerStyles","secondaryContentStyles","appearance","disabledFocusable","iconOnly","iconPosition","size","className","mergeClasses","children","undefined","useButtonStyles_unstable"],"sources":["../src/packages/react-components/react-button/src/components/CompoundButton/useCompoundButtonStyles.ts"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport { shorthands, mergeClasses, makeStyles } from '@griffel/react';\nimport { useButtonStyles_unstable } from '../Button/useButtonStyles';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { CompoundButtonSlots, CompoundButtonState } from './CompoundButton.types';\n\nexport const compoundButtonClassNames: SlotClassNames<CompoundButtonSlots> = {\n root: 'fui-CompoundButton',\n icon: 'fui-CompoundButton__icon',\n contentContainer: 'fui-CompoundButton__contentContainer',\n secondaryContent: 'fui-CompoundButton__secondaryContent',\n};\n\nconst useRootStyles = makeStyles({\n // Base styles\n base: {\n height: 'auto',\n\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForeground2,\n },\n\n ':hover': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForeground2Hover,\n },\n },\n\n ':hover:active': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForeground2Pressed,\n },\n },\n },\n\n // High contrast styles\n highContrast: {\n '@media (forced-colors: active)': {\n ':hover': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: 'Highlight',\n },\n },\n\n ':hover:active': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: 'Highlight',\n },\n },\n },\n },\n\n // Appearance variations\n outline: {\n /* No styles */\n },\n primary: {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForegroundOnBrand,\n },\n\n ':hover': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForegroundOnBrand,\n },\n },\n\n ':hover:active': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForegroundOnBrand,\n },\n },\n\n '@media (forced-colors: active)': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: 'HighlightText',\n },\n },\n },\n secondary: {\n /* The secondary styles are exactly the same as the base styles. */\n },\n subtle: {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForeground2,\n },\n\n ':hover': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForeground2Hover,\n },\n },\n\n ':hover:active': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForeground2Pressed,\n },\n },\n },\n transparent: {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForeground2,\n },\n\n ':hover': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForeground2BrandHover,\n },\n },\n\n ':hover:active': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n },\n\n // Size variations\n small: {\n ...shorthands.padding(\n tokens.spacingHorizontalS,\n tokens.spacingHorizontalS,\n tokens.spacingHorizontalMNudge,\n tokens.spacingHorizontalS,\n ),\n\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n },\n medium: {\n ...shorthands.padding('14px', tokens.spacingHorizontalM, tokens.spacingHorizontalL, tokens.spacingHorizontalM),\n\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n },\n large: {\n ...shorthands.padding('18px', tokens.spacingHorizontalL, tokens.spacingHorizontalXL, tokens.spacingHorizontalL),\n\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n },\n\n // Disabled styles\n disabled: {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForegroundDisabled,\n },\n\n ':hover': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForegroundDisabled,\n },\n },\n\n ':hover:active': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: tokens.colorNeutralForegroundDisabled,\n },\n },\n },\n\n // Disabled high contrast styles\n disabledHighContrast: {\n '@media (forced-colors: active)': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: 'GrayText',\n },\n\n ':hover': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: 'GrayText',\n },\n },\n\n ':hover:active': {\n [`& .${compoundButtonClassNames.secondaryContent}`]: {\n color: 'GrayText',\n },\n },\n },\n },\n});\n\nconst useRootIconOnlyStyles = makeStyles({\n // Size variations\n small: {\n ...shorthands.padding(tokens.spacingHorizontalXS),\n\n maxWidth: '48px',\n minWidth: '48px',\n },\n medium: {\n ...shorthands.padding(tokens.spacingHorizontalSNudge),\n\n maxWidth: '52px',\n minWidth: '52px',\n },\n large: {\n ...shorthands.padding(tokens.spacingHorizontalS),\n\n maxWidth: '56px',\n minWidth: '56px',\n },\n});\n\nconst useIconStyles = makeStyles({\n // Base styles\n base: {\n fontSize: '40px',\n height: '40px',\n width: '40px',\n },\n\n // Icon position variations\n before: {\n marginRight: tokens.spacingHorizontalM,\n },\n after: {\n marginLeft: tokens.spacingHorizontalM,\n },\n});\n\nconst useContentContainerStyles = makeStyles({\n // Base styles\n base: {\n display: 'flex',\n flexDirection: 'column',\n textAlign: 'left',\n },\n});\n\nconst useSecondaryContentStyles = makeStyles({\n // Base styles\n base: {\n lineHeight: '100%',\n fontWeight: tokens.fontWeightRegular,\n },\n\n // Size variations\n small: {\n fontSize: tokens.fontSizeBase200,\n },\n medium: {\n fontSize: tokens.fontSizeBase200,\n },\n large: {\n fontSize: tokens.fontSizeBase300,\n },\n});\n\nexport const useCompoundButtonStyles_unstable = (state: CompoundButtonState): CompoundButtonState => {\n const rootStyles = useRootStyles();\n const rootIconOnlyStyles = useRootIconOnlyStyles();\n const iconStyles = useIconStyles();\n const contentContainerStyles = useContentContainerStyles();\n const secondaryContentStyles = useSecondaryContentStyles();\n\n const { appearance, disabled, disabledFocusable, iconOnly, iconPosition, size } = state;\n\n state.root.className = mergeClasses(\n compoundButtonClassNames.root,\n\n // Root styles\n rootStyles.base,\n rootStyles.highContrast,\n appearance && rootStyles[appearance],\n rootStyles[size],\n\n // Disabled styles\n (disabled || disabledFocusable) && rootStyles.disabled,\n (disabled || disabledFocusable) && rootStyles.disabledHighContrast,\n\n // Icon-only styles\n iconOnly && rootIconOnlyStyles[size],\n\n // User provided class name\n state.root.className,\n );\n\n state.contentContainer.className = mergeClasses(\n compoundButtonClassNames.contentContainer,\n contentContainerStyles.base,\n state.contentContainer.className,\n );\n\n if (state.icon) {\n state.icon.className = mergeClasses(\n compoundButtonClassNames.icon,\n iconStyles.base,\n state.root.children !== undefined && state.root.children !== null && iconStyles[iconPosition],\n state.icon.className,\n );\n }\n\n if (state.secondaryContent) {\n state.secondaryContent.className = mergeClasses(\n compoundButtonClassNames.secondaryContent,\n secondaryContentStyles.base,\n secondaryContentStyles[size],\n state.secondaryContent.className,\n );\n }\n\n useButtonStyles_unstable(state);\n\n return state;\n};\n"],"mappings":";;;;;;AAAA,MAAAA,aAAA,gBAAAC,OAAA;AACA,MAAAC,OAAA,gBAAAD,OAAA;AACA,MAAAE,iBAAA,gBAAAF,OAAA;AAIaG,OAAA,CAAAC,wBAAwB,GAAwC;EAC3EC,IAAI,EAAE,oBAAoB;EAC1BC,IAAI,EAAE,0BAA0B;EAChCC,gBAAgB,EAAE,sCAAsC;EACxDC,gBAAgB,EAAE;CACnB;AAED,MAAMC,aAAa,gBAAGR,OAAA,CAAAS,QAAU;EAAAC,IAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAC,YAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAC,OAAA;EAAAC,OAAA;IAAAP,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAM,OAAA;EAAA;EAAAC,SAAA;EAAAC,MAAA;IAAAV,MA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AI,CAAC;EAEpC;EACAV,KAAK,CAAClD,IAAI,CAAC6D,SAAS,CACrB;EAEDX,KAAK,CAAChD,gBAAgB,CAAC2D,SAAS,GAAGjE,OAAA,CAAAkE,YAAY,CAC7ChE,OAAA,CAAAC,wBAAwB,CAACG,gBAAgB,EACzCoD,sBAAsB,CAAChD,IAAI,EAC3B4C,KAAK,CAAChD,gBAAgB,CAAC2D,SAAS,CACjC;EAED,IAAIX,KAAK,CAACjD,IAAI,EAAE;IACdiD,KAAK,CAACjD,IAAI,CAAC4D,SAAS,GAAGjE,OAAA,CAAAkE,YAAY,CACjChE,OAAA,CAAAC,wBAAwB,CAACE,IAAI,EAC7BoD,UAAU,CAAC/C,IAAI,EACf4C,KAAK,CAAClD,IAAI,CAAC+D,QAAQ,KAAKC,SAAS,IAAId,KAAK,CAAClD,IAAI,CAAC+D,QAAQ,KAAK,IAAI,IAAIV,UAAU,CAACM,YAAY,CAAC,EAC7FT,KAAK,CAACjD,IAAI,CAAC4D,SAAS,CACrB;;EAGH,IAAIX,KAAK,CAAC/C,gBAAgB,EAAE;IAC1B+C,KAAK,CAAC/C,gBAAgB,CAAC0D,SAAS,GAAGjE,OAAA,CAAAkE,YAAY,CAC7ChE,OAAA,CAAAC,wBAAwB,CAACI,gBAAgB,EACzCoD,sBAAsB,CAACjD,IAAI,EAC3BiD,sBAAsB,CAACK,IAAI,CAAC,EAC5BV,KAAK,CAAC/C,gBAAgB,CAAC0D,SAAS,CACjC;;EAGHhE,iBAAA,CAAAoE,wBAAwB,CAACf,KAAK,CAAC;EAE/B,OAAOA,KAAK;AACd,CAAC;AAxDYpD,OAAA,CAAAmD,gCAAgC,GAAAA,gCAAA"}
|
1
|
+
{"version":3,"sources":["../../../lib/components/CompoundButton/useCompoundButtonStyles.js"],"sourcesContent":["import { tokens } from '@fluentui/react-theme';\nimport { shorthands, mergeClasses, __styles } from '@griffel/react';\nimport { useButtonStyles_unstable } from '../Button/useButtonStyles';\nexport const compoundButtonClassNames = {\n root: 'fui-CompoundButton',\n icon: 'fui-CompoundButton__icon',\n contentContainer: 'fui-CompoundButton__contentContainer',\n secondaryContent: 'fui-CompoundButton__secondaryContent'\n};\nconst useRootStyles = /*#__PURE__*/__styles({\n base: {\n Bqenvij: \"f11ysow2\",\n J657lq: \"f1um431h\",\n Jlnjib: \"fte7hqw\",\n Bc29nj9: \"f1yh8ef3\"\n },\n highContrast: {\n pu7qz5: \"fi3u9nm\",\n B10010i: \"f1tdgb9w\"\n },\n outline: {},\n primary: {\n J657lq: \"foe7gw6\",\n Jlnjib: \"fvxlz81\",\n Bc29nj9: \"f1c2mdy\",\n B8ia98v: \"f1r39r2s\"\n },\n secondary: {},\n subtle: {\n J657lq: \"f1um431h\",\n Jlnjib: \"fte7hqw\",\n Bc29nj9: \"f1yh8ef3\"\n },\n transparent: {\n J657lq: \"f1um431h\",\n Jlnjib: \"f1wn9xqz\",\n Bc29nj9: \"f1a8q4d0\"\n },\n small: {\n z8tnut: \"f17mpqex\",\n z189sj: [\"f1vdfbxk\", \"f1f5gg8d\"],\n Byoj8tv: \"f1quwm26\",\n uwmqm3: [\"f1f5gg8d\", \"f1vdfbxk\"],\n Be2twd7: \"fkhj508\",\n Bg96gwp: \"f1i3iumi\"\n },\n medium: {\n z8tnut: \"fbtff6s\",\n z189sj: [\"fw5db7e\", \"f1uw59to\"],\n Byoj8tv: \"flw3t2g\",\n uwmqm3: [\"f1uw59to\", \"fw5db7e\"],\n Be2twd7: \"fkhj508\",\n Bg96gwp: \"f1i3iumi\"\n },\n large: {\n z8tnut: \"fm4bm3s\",\n z189sj: [\"fjodcmx\", \"fhx4nu\"],\n Byoj8tv: \"fdt8xvx\",\n uwmqm3: [\"fhx4nu\", \"fjodcmx\"],\n Be2twd7: \"fod5ikn\",\n Bg96gwp: \"faaz57k\"\n },\n disabled: {\n J657lq: \"f1rlv8bf\",\n Jlnjib: \"fd1dbtm\",\n Bc29nj9: \"f1vqmdmi\"\n },\n disabledHighContrast: {\n B8ia98v: \"f1csacz4\",\n pu7qz5: \"f1s5tkfe\",\n B10010i: \"fs0rda3\"\n }\n}, {\n d: [\".f11ysow2{height:auto;}\", \".f1um431h .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForeground2);}\", \".foe7gw6 .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundOnBrand);}\", \".f17mpqex{padding-top:var(--spacingHorizontalS);}\", \".f1vdfbxk{padding-right:var(--spacingHorizontalS);}\", \".f1f5gg8d{padding-left:var(--spacingHorizontalS);}\", \".f1quwm26{padding-bottom:var(--spacingHorizontalMNudge);}\", \".fkhj508{font-size:var(--fontSizeBase300);}\", \".f1i3iumi{line-height:var(--lineHeightBase300);}\", \".fbtff6s{padding-top:14px;}\", \".fw5db7e{padding-right:var(--spacingHorizontalM);}\", \".f1uw59to{padding-left:var(--spacingHorizontalM);}\", \".flw3t2g{padding-bottom:var(--spacingHorizontalL);}\", \".fm4bm3s{padding-top:18px;}\", \".fjodcmx{padding-right:var(--spacingHorizontalL);}\", \".fhx4nu{padding-left:var(--spacingHorizontalL);}\", \".fdt8xvx{padding-bottom:var(--spacingHorizontalXL);}\", \".fod5ikn{font-size:var(--fontSizeBase400);}\", \".faaz57k{line-height:var(--lineHeightBase400);}\", \".f1rlv8bf .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundDisabled);}\"],\n h: [\".fte7hqw:hover .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForeground2Hover);}\", \".f1yh8ef3:hover:active .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForeground2Pressed);}\", \".fvxlz81:hover .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundOnBrand);}\", \".f1c2mdy:hover:active .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundOnBrand);}\", \".f1wn9xqz:hover .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForeground2BrandHover);}\", \".f1a8q4d0:hover:active .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForeground2BrandPressed);}\", \".fd1dbtm:hover .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundDisabled);}\", \".f1vqmdmi:hover:active .fui-CompoundButton__secondaryContent{color:var(--colorNeutralForegroundDisabled);}\"],\n m: [[\"@media (forced-colors: active){.fi3u9nm:hover .fui-CompoundButton__secondaryContent{color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1tdgb9w:hover:active .fui-CompoundButton__secondaryContent{color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1r39r2s .fui-CompoundButton__secondaryContent{color:HighlightText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1csacz4 .fui-CompoundButton__secondaryContent{color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1s5tkfe:hover .fui-CompoundButton__secondaryContent{color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fs0rda3:hover:active .fui-CompoundButton__secondaryContent{color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\nconst useRootIconOnlyStyles = /*#__PURE__*/__styles({\n small: {\n z8tnut: \"f1x4af0m\",\n z189sj: [\"f7x41pl\", \"fruq291\"],\n Byoj8tv: \"fd55psn\",\n uwmqm3: [\"fruq291\", \"f7x41pl\"],\n B2u0y6b: \"ft5vyj6\",\n Bf4jedk: \"f17suaiq\"\n },\n medium: {\n z8tnut: \"f16k8034\",\n z189sj: [\"fdw0yi8\", \"fk8j09s\"],\n Byoj8tv: \"f1angvds\",\n uwmqm3: [\"fk8j09s\", \"fdw0yi8\"],\n B2u0y6b: \"fdczgix\",\n Bf4jedk: \"fjdcg9m\"\n },\n large: {\n z8tnut: \"f17mpqex\",\n z189sj: [\"f1vdfbxk\", \"f1f5gg8d\"],\n Byoj8tv: \"fdvome7\",\n uwmqm3: [\"f1f5gg8d\", \"f1vdfbxk\"],\n B2u0y6b: \"fww51uw\",\n Bf4jedk: \"f1qhsl2h\"\n }\n}, {\n d: [\".f1x4af0m{padding-top:var(--spacingHorizontalXS);}\", \".f7x41pl{padding-right:var(--spacingHorizontalXS);}\", \".fruq291{padding-left:var(--spacingHorizontalXS);}\", \".fd55psn{padding-bottom:var(--spacingHorizontalXS);}\", \".ft5vyj6{max-width:48px;}\", \".f17suaiq{min-width:48px;}\", \".f16k8034{padding-top:var(--spacingHorizontalSNudge);}\", \".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}\", \".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}\", \".f1angvds{padding-bottom:var(--spacingHorizontalSNudge);}\", \".fdczgix{max-width:52px;}\", \".fjdcg9m{min-width:52px;}\", \".f17mpqex{padding-top:var(--spacingHorizontalS);}\", \".f1vdfbxk{padding-right:var(--spacingHorizontalS);}\", \".f1f5gg8d{padding-left:var(--spacingHorizontalS);}\", \".fdvome7{padding-bottom:var(--spacingHorizontalS);}\", \".fww51uw{max-width:56px;}\", \".f1qhsl2h{min-width:56px;}\"]\n});\nconst useIconStyles = /*#__PURE__*/__styles({\n base: {\n Be2twd7: \"fndrnj9\",\n Bqenvij: \"fbhnoac\",\n a9b677: \"feqmc2u\"\n },\n before: {\n t21cq0: [\"fkujibs\", \"f199hnxi\"]\n },\n after: {\n Frg6f3: [\"f199hnxi\", \"fkujibs\"]\n }\n}, {\n d: [\".fndrnj9{font-size:40px;}\", \".fbhnoac{height:40px;}\", \".feqmc2u{width:40px;}\", \".fkujibs{margin-right:var(--spacingHorizontalM);}\", \".f199hnxi{margin-left:var(--spacingHorizontalM);}\"]\n});\nconst useContentContainerStyles = /*#__PURE__*/__styles({\n base: {\n mc9l5x: \"f22iagw\",\n Beiy3e4: \"f1vx9l62\",\n fsow6f: [\"f1o700av\", \"fes3tcz\"]\n }\n}, {\n d: [\".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}\", \".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}\", \".f1o700av{text-align:left;}\", \".fes3tcz{text-align:right;}\"]\n});\nconst useSecondaryContentStyles = /*#__PURE__*/__styles({\n base: {\n Bg96gwp: \"flkuc6h\",\n Bhrd7zp: \"figsok6\"\n },\n small: {\n Be2twd7: \"fy9rknc\"\n },\n medium: {\n Be2twd7: \"fy9rknc\"\n },\n large: {\n Be2twd7: \"fkhj508\"\n }\n}, {\n d: [\".flkuc6h{line-height:100%;}\", \".figsok6{font-weight:var(--fontWeightRegular);}\", \".fy9rknc{font-size:var(--fontSizeBase200);}\", \".fkhj508{font-size:var(--fontSizeBase300);}\"]\n});\nexport const useCompoundButtonStyles_unstable = state => {\n const rootStyles = useRootStyles();\n const rootIconOnlyStyles = useRootIconOnlyStyles();\n const iconStyles = useIconStyles();\n const contentContainerStyles = useContentContainerStyles();\n const secondaryContentStyles = useSecondaryContentStyles();\n const {\n appearance,\n disabled,\n disabledFocusable,\n iconOnly,\n iconPosition,\n size\n } = state;\n state.root.className = mergeClasses(compoundButtonClassNames.root,\n // Root styles\n rootStyles.base, rootStyles.highContrast, appearance && rootStyles[appearance], rootStyles[size],\n // Disabled styles\n (disabled || disabledFocusable) && rootStyles.disabled, (disabled || disabledFocusable) && rootStyles.disabledHighContrast,\n // Icon-only styles\n iconOnly && rootIconOnlyStyles[size],\n // User provided class name\n state.root.className);\n state.contentContainer.className = mergeClasses(compoundButtonClassNames.contentContainer, contentContainerStyles.base, state.contentContainer.className);\n if (state.icon) {\n state.icon.className = mergeClasses(compoundButtonClassNames.icon, iconStyles.base, state.root.children !== undefined && state.root.children !== null && iconStyles[iconPosition], state.icon.className);\n }\n if (state.secondaryContent) {\n state.secondaryContent.className = mergeClasses(compoundButtonClassNames.secondaryContent, secondaryContentStyles.base, secondaryContentStyles[size], state.secondaryContent.className);\n }\n useButtonStyles_unstable(state);\n return state;\n};\n//# sourceMappingURL=useCompoundButtonStyles.js.map"],"names":["compoundButtonClassNames","useCompoundButtonStyles_unstable","root","icon","contentContainer","secondaryContent","useRootStyles","__styles","base","Bqenvij","J657lq","Jlnjib","Bc29nj9","highContrast","pu7qz5","B10010i","outline","primary","B8ia98v","secondary","subtle","transparent","small","z8tnut","z189sj","Byoj8tv","uwmqm3","Be2twd7","Bg96gwp","medium","large","disabled","disabledHighContrast","d","h","m","useRootIconOnlyStyles","B2u0y6b","Bf4jedk","useIconStyles","a9b677","before","t21cq0","after","Frg6f3","useContentContainerStyles","mc9l5x","Beiy3e4","fsow6f","useSecondaryContentStyles","Bhrd7zp","state","rootStyles","rootIconOnlyStyles","iconStyles","contentContainerStyles","secondaryContentStyles","appearance","disabledFocusable","iconOnly","iconPosition","size","className","mergeClasses","children","undefined","useButtonStyles_unstable"],"mappings":";;;;;;;;;;;IAGaA,wBAAwB,MAAxBA;IA2JAC,gCAAgC,MAAhCA;;uBA7JsC;iCACV;AAClC,MAAMD,2BAA2B;IACtCE,MAAM;IACNC,MAAM;IACNC,kBAAkB;IAClBC,kBAAkB;AACpB;AACA,MAAMC,gBAAgB,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IAC1CC,MAAM;QACJC,SAAS;QACTC,QAAQ;QACRC,QAAQ;QACRC,SAAS;IACX;IACAC,cAAc;QACZC,QAAQ;QACRC,SAAS;IACX;IACAC,SAAS,CAAC;IACVC,SAAS;QACPP,QAAQ;QACRC,QAAQ;QACRC,SAAS;QACTM,SAAS;IACX;IACAC,WAAW,CAAC;IACZC,QAAQ;QACNV,QAAQ;QACRC,QAAQ;QACRC,SAAS;IACX;IACAS,aAAa;QACXX,QAAQ;QACRC,QAAQ;QACRC,SAAS;IACX;IACAU,OAAO;QACLC,QAAQ;QACRC,QAAQ;YAAC;YAAY;SAAW;QAChCC,SAAS;QACTC,QAAQ;YAAC;YAAY;SAAW;QAChCC,SAAS;QACTC,SAAS;IACX;IACAC,QAAQ;QACNN,QAAQ;QACRC,QAAQ;YAAC;YAAW;SAAW;QAC/BC,SAAS;QACTC,QAAQ;YAAC;YAAY;SAAU;QA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
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
Object.defineProperty(exports, "MenuButton", {
|
6
|
+
enumerable: true,
|
7
|
+
get: ()=>MenuButton
|
5
8
|
});
|
6
|
-
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const
|
10
|
-
const
|
11
|
-
const
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
const {
|
20
|
-
useMenuButtonStyles_unstable: useCustomStyles
|
21
|
-
} = react_shared_contexts_1.useCustomStyleHooks_unstable();
|
22
|
-
useCustomStyles(state);
|
23
|
-
return renderMenuButton_1.renderMenuButton_unstable(state);
|
24
|
-
// Casting is required due to lack of distributive union to support unions on @types/react
|
9
|
+
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
10
|
+
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
11
|
+
const _renderMenuButton = require("./renderMenuButton");
|
12
|
+
const _useMenuButton = require("./useMenuButton");
|
13
|
+
const _useMenuButtonStyles = require("./useMenuButtonStyles");
|
14
|
+
const _reactSharedContexts = require("@fluentui/react-shared-contexts");
|
15
|
+
const MenuButton = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
16
|
+
const state = (0, _useMenuButton.useMenuButton_unstable)(props, ref);
|
17
|
+
(0, _useMenuButtonStyles.useMenuButtonStyles_unstable)(state);
|
18
|
+
const { useMenuButtonStyles_unstable: useCustomStyles } = (0, _reactSharedContexts.useCustomStyleHooks_unstable)();
|
19
|
+
useCustomStyles(state);
|
20
|
+
return (0, _renderMenuButton.renderMenuButton_unstable)(state);
|
21
|
+
// Casting is required due to lack of distributive union to support unions on @types/react
|
25
22
|
});
|
23
|
+
MenuButton.displayName = 'MenuButton'; //# sourceMappingURL=MenuButton.js.map
|
26
24
|
|
27
|
-
exports.MenuButton.displayName = 'MenuButton';
|
28
25
|
//# sourceMappingURL=MenuButton.js.map
|