@fluentui/react-button 0.0.0-nightlyed2d7c8d6320211111.1 → 0.0.0-nightlyf1be0a972820211214.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +166 -26
- package/CHANGELOG.md +48 -14
- package/dist/react-button.d.ts +4 -1
- package/lib/components/Button/renderButton.js +4 -1
- package/lib/components/Button/renderButton.js.map +1 -1
- package/lib/components/Button/useButton.js +2 -1
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.js +94 -60
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.js +6 -1
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +4 -3
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.types.d.ts +5 -1
- package/lib/components/MenuButton/renderMenuButton.js +4 -1
- package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib/components/SplitButton/renderSplitButton.js +4 -1
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.js +31 -31
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/components/Button/renderButton.js +4 -1
- package/lib-commonjs/components/Button/renderButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.js +2 -1
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.js +93 -59
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +6 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +3 -2
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +5 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js +4 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js +4 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +30 -30
- package/package.json +14 -15
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -13
- package/lib/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -24
- package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __styles, mergeClasses } from '@fluentui/react-make-styles';
|
1
|
+
import { shorthands, __styles, mergeClasses } from '@fluentui/react-make-styles';
|
2
2
|
import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';
|
3
3
|
export const buttonClassName = 'fui-Button'; // TODO: These are named in design specs but not hoisted to global/alias yet.
|
4
4
|
// We're tracking these here to determine how we can hoist them.
|
@@ -23,33 +23,34 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
23
23
|
"jrapky": "f19f4twv",
|
24
24
|
"Frg6f3": ["f1tyq0we", "f11qmguv"],
|
25
25
|
"B2u0y6b": "f1n52uh2",
|
26
|
-
"
|
26
|
+
"B68tc82": "f1p9o1ba",
|
27
|
+
"Bmxbyg5": "f1sil6mw",
|
27
28
|
"ygn44y": "f1cmbuwj",
|
28
29
|
"Huce71": "fz5stix",
|
29
|
-
"
|
30
|
+
"De3pzq": "fxugw4r",
|
30
31
|
"sj55zd": "f19n0e5",
|
31
|
-
"g2u3we": "fj3muxo",
|
32
|
-
"h3c5rm": ["f1akhkt", "f1lxtadh"],
|
33
|
-
"B9xav0g": "f1aperda",
|
34
|
-
"zhjwy3": ["f1lxtadh", "f1akhkt"],
|
35
|
-
"icvyot": "fzkkow9",
|
36
|
-
"vrafjx": ["fcdblym", "fjik90z"],
|
37
|
-
"oivjwe": "fg706s2",
|
38
|
-
"wvpqe5": ["fjik90z", "fcdblym"],
|
39
32
|
"B4j52fo": "f192inf7",
|
40
33
|
"Bekrc4i": ["f5tn483", "f1ojsxk5"],
|
41
34
|
"Bn0qgzm": "f1vxd6vx",
|
42
35
|
"ibv6hh": ["f1ojsxk5", "f5tn483"],
|
36
|
+
"icvyot": "fzkkow9",
|
37
|
+
"vrafjx": ["fcdblym", "fjik90z"],
|
38
|
+
"oivjwe": "fg706s2",
|
39
|
+
"wvpqe5": ["fjik90z", "fcdblym"],
|
40
|
+
"g2u3we": "fj3muxo",
|
41
|
+
"h3c5rm": ["f1akhkt", "f1lxtadh"],
|
42
|
+
"B9xav0g": "f1aperda",
|
43
|
+
"zhjwy3": ["f1lxtadh", "f1akhkt"],
|
43
44
|
"Bahqtrf": "fk6fouc",
|
44
45
|
"oeaueh": "f1s6fcnf",
|
45
|
-
"
|
46
|
+
"Jwef8y": "f1knas48",
|
46
47
|
"Bgoe8wy": "fvcxoqz",
|
47
48
|
"Bwzppfd": ["f1ub3y4t", "f1m52nbi"],
|
48
49
|
"oetu4i": "f1xlaoq0",
|
49
50
|
"gg5e9n": ["f1m52nbi", "f1ub3y4t"],
|
50
51
|
"Bi91k9c": "fax3udt",
|
51
52
|
"eoavqd": "f8491dx",
|
52
|
-
"
|
53
|
+
"ecr2s2": "fb40n2d",
|
53
54
|
"B6oc9vd": "fvs00aa",
|
54
55
|
"ak43y8": ["f1assf6x", "f4ruux4"],
|
55
56
|
"wmxk5l": "fumykes",
|
@@ -62,24 +63,24 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
62
63
|
"a9b677": "fly5x3f"
|
63
64
|
},
|
64
65
|
"outline": {
|
65
|
-
"
|
66
|
-
"
|
67
|
-
"
|
66
|
+
"De3pzq": "f1c21dwh",
|
67
|
+
"Jwef8y": "fjxutwb",
|
68
|
+
"ecr2s2": "fophhak"
|
68
69
|
},
|
69
70
|
"primary": {
|
70
|
-
"
|
71
|
+
"De3pzq": "ffp7eso",
|
71
72
|
"g2u3we": "f1p3nwhy",
|
72
73
|
"h3c5rm": ["f11589ue", "f1pdflbu"],
|
73
74
|
"B9xav0g": "f1q5o8ev",
|
74
75
|
"zhjwy3": ["f1pdflbu", "f11589ue"],
|
75
76
|
"sj55zd": "f1phragk",
|
76
|
-
"
|
77
|
+
"Jwef8y": "f15wkkf3",
|
77
78
|
"Bgoe8wy": "f1s2uweq",
|
78
79
|
"Bwzppfd": ["fr80ssc", "fecsdlb"],
|
79
80
|
"oetu4i": "f1ukrpxl",
|
80
81
|
"gg5e9n": ["fecsdlb", "fr80ssc"],
|
81
82
|
"Bi91k9c": "f1rq72xc",
|
82
|
-
"
|
83
|
+
"ecr2s2": "fsp1bjw",
|
83
84
|
"B6oc9vd": "ff472gp",
|
84
85
|
"ak43y8": ["f4yyc7m", "ft2aflc"],
|
85
86
|
"wmxk5l": "fggejwh",
|
@@ -87,19 +88,19 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
87
88
|
"lj723h": "f18otbis"
|
88
89
|
},
|
89
90
|
"subtle": {
|
90
|
-
"
|
91
|
+
"De3pzq": "fhovq9v",
|
91
92
|
"g2u3we": "f1p3nwhy",
|
92
93
|
"h3c5rm": ["f11589ue", "f1pdflbu"],
|
93
94
|
"B9xav0g": "f1q5o8ev",
|
94
95
|
"zhjwy3": ["f1pdflbu", "f11589ue"],
|
95
96
|
"sj55zd": "fkfq4zb",
|
96
|
-
"
|
97
|
+
"Jwef8y": "f1t94bn6",
|
97
98
|
"Bgoe8wy": "f1s2uweq",
|
98
99
|
"Bwzppfd": ["fr80ssc", "fecsdlb"],
|
99
100
|
"oetu4i": "f1ukrpxl",
|
100
101
|
"gg5e9n": ["fecsdlb", "fr80ssc"],
|
101
102
|
"Bi91k9c": "f139oj5f",
|
102
|
-
"
|
103
|
+
"ecr2s2": "f1wfn5kd",
|
103
104
|
"B6oc9vd": "ff472gp",
|
104
105
|
"ak43y8": ["f4yyc7m", "ft2aflc"],
|
105
106
|
"wmxk5l": "fggejwh",
|
@@ -107,19 +108,19 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
107
108
|
"lj723h": "f19au66r"
|
108
109
|
},
|
109
110
|
"transparent": {
|
110
|
-
"
|
111
|
+
"De3pzq": "f1c21dwh",
|
111
112
|
"g2u3we": "f1p3nwhy",
|
112
113
|
"h3c5rm": ["f11589ue", "f1pdflbu"],
|
113
114
|
"B9xav0g": "f1q5o8ev",
|
114
115
|
"zhjwy3": ["f1pdflbu", "f11589ue"],
|
115
116
|
"sj55zd": "fkfq4zb",
|
116
|
-
"
|
117
|
+
"Jwef8y": "fjxutwb",
|
117
118
|
"Bgoe8wy": "f1s2uweq",
|
118
119
|
"Bwzppfd": ["fr80ssc", "fecsdlb"],
|
119
120
|
"oetu4i": "f1ukrpxl",
|
120
121
|
"gg5e9n": ["fecsdlb", "fr80ssc"],
|
121
122
|
"Bi91k9c": "f139oj5f",
|
122
|
-
"
|
123
|
+
"ecr2s2": "fophhak",
|
123
124
|
"B6oc9vd": "ff472gp",
|
124
125
|
"ak43y8": ["f4yyc7m", "ft2aflc"],
|
125
126
|
"wmxk5l": "fggejwh",
|
@@ -127,74 +128,92 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
127
128
|
"lj723h": "f19au66r"
|
128
129
|
},
|
129
130
|
"circular": {
|
130
|
-
"
|
131
|
+
"Bbmb7ep": ["f8fbkgy", "f1nfllo7"],
|
132
|
+
"Beyfa6y": ["f1nfllo7", "f8fbkgy"],
|
133
|
+
"B7oj6ja": ["f1djnp8u", "f1s8kh49"],
|
134
|
+
"Btl43ni": ["f1s8kh49", "f1djnp8u"]
|
131
135
|
},
|
132
136
|
"rounded": {},
|
133
137
|
"square": {
|
134
|
-
"
|
138
|
+
"Bbmb7ep": ["fzi6hpg", "fyowgf4"],
|
139
|
+
"Beyfa6y": ["fyowgf4", "fzi6hpg"],
|
140
|
+
"B7oj6ja": ["f3fg2lr", "f13av6d4"],
|
141
|
+
"Btl43ni": ["f13av6d4", "f3fg2lr"]
|
135
142
|
},
|
136
143
|
"small": {
|
137
|
-
"
|
144
|
+
"i8kkvl": "f1q8lukm",
|
145
|
+
"Belr9w4": "f1ma2n7n",
|
138
146
|
"z8tnut": "f1g0x7ka",
|
139
147
|
"z189sj": ["f19lj068", "f177v4lu"],
|
140
148
|
"Byoj8tv": "f1qch9an",
|
141
149
|
"uwmqm3": ["f177v4lu", "f19lj068"],
|
142
150
|
"Bqenvij": "frvgh55",
|
143
151
|
"Bf4jedk": "fh7ncta",
|
144
|
-
"
|
152
|
+
"Bbmb7ep": ["f1g3puop", "fi2rrw2"],
|
153
|
+
"Beyfa6y": ["fi2rrw2", "f1g3puop"],
|
154
|
+
"B7oj6ja": ["f1rstyi9", "f1s4nn1u"],
|
155
|
+
"Btl43ni": ["f1s4nn1u", "f1rstyi9"],
|
145
156
|
"Be2twd7": "fy9rknc",
|
146
157
|
"Bhrd7zp": "figsok6",
|
147
158
|
"Bg96gwp": "fwrc4pm"
|
148
159
|
},
|
149
160
|
"medium": {
|
150
|
-
"
|
161
|
+
"i8kkvl": "fgfbwa2",
|
162
|
+
"Belr9w4": "f1y3hx6l",
|
151
163
|
"z8tnut": "f1g0x7ka",
|
152
164
|
"z189sj": ["f11qrl6u", "fjlbh76"],
|
153
165
|
"Byoj8tv": "f1qch9an",
|
154
166
|
"uwmqm3": ["fjlbh76", "f11qrl6u"],
|
155
167
|
"Bqenvij": "f1d2rq10",
|
156
168
|
"Bf4jedk": "f14es27b",
|
157
|
-
"
|
169
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
170
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
171
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
172
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
158
173
|
"Be2twd7": "fkhj508",
|
159
174
|
"Bhrd7zp": "fl43uef",
|
160
175
|
"Bg96gwp": "f1i3iumi"
|
161
176
|
},
|
162
177
|
"large": {
|
163
|
-
"
|
178
|
+
"i8kkvl": "fgfbwa2",
|
179
|
+
"Belr9w4": "f1y3hx6l",
|
164
180
|
"z8tnut": "f1g0x7ka",
|
165
181
|
"z189sj": ["f1gbmcue", "f1rh9g5y"],
|
166
182
|
"Byoj8tv": "f1qch9an",
|
167
183
|
"uwmqm3": ["f1rh9g5y", "f1gbmcue"],
|
168
184
|
"Bqenvij": "fbhnoac",
|
169
185
|
"Bf4jedk": "f14es27b",
|
170
|
-
"
|
186
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
187
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
188
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
189
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
171
190
|
"Be2twd7": "fod5ikn",
|
172
191
|
"Bhrd7zp": "fl43uef",
|
173
192
|
"Bg96gwp": "faaz57k"
|
174
193
|
}
|
175
194
|
}, {
|
176
|
-
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fmrv4ls{vertical-align:middle;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".f1n52uh2{max-width:280px;}", ".
|
177
|
-
"h": [".
|
178
|
-
"a": [".
|
195
|
+
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fmrv4ls{vertical-align:middle;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".f1n52uh2{max-width:280px;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f1cmbuwj{text-overflow:ellipsis;}", ".fz5stix{white-space:nowrap;}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fj3muxo{border-top-color:var(--colorNeutralStroke1);}", ".f1akhkt{border-right-color:var(--colorNeutralStroke1);}", ".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}", ".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".f1s6fcnf{outline-style:none;}", ".f6dzj5z{max-width:100%;}", ".fly5x3f{width:100%;}", ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f1phragk{color:var(--colorNeutralForegroundOnBrand);}", ".fhovq9v{background-color:var(--colorSubtleBackground);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}", ".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}", ".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}", ".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}", ".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}", ".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}", ".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}", ".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}", ".f1q8lukm{-webkit-column-gap:4px;column-gap:4px;}", ".f1ma2n7n{row-gap:4px;}", ".f1g0x7ka{padding-top:0;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f1qch9an{padding-bottom:0;}", ".frvgh55{height:24px;}", ".fh7ncta{min-width:64px;}", ".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}", ".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}", ".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}", ".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fgfbwa2{-webkit-column-gap:6px;column-gap:6px;}", ".f1y3hx6l{row-gap:6px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".f1d2rq10{height:32px;}", ".f14es27b{min-width:96px;}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fbhnoac{height:40px;}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}"],
|
196
|
+
"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);}", ".fax3udt:hover{color:var(--colorNeutralForeground1);}", ".f8491dx:hover{cursor:pointer;}", ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".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);}", ".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}", ".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}"],
|
197
|
+
"a": [".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}", ".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}", ".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}", ".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}", ".fumykes:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}", ".f1r2dosr:active{color:var(--colorNeutralForeground1);}", ".fb0xa7e:active{outline-style:none;}", ".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}", ".fsp1bjw:active{background-color:var(--colorBrandBackgroundPressed);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}", ".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}", ".f19au66r:active{color:var(--colorNeutralForeground2BrandPressed);}"]
|
179
198
|
});
|
180
199
|
|
181
200
|
const useRootDisabledStyles = /*#__PURE__*/__styles({
|
182
201
|
"base": {
|
183
|
-
"
|
202
|
+
"De3pzq": "f1bg9a2p",
|
184
203
|
"g2u3we": "f1jj8ep1",
|
185
204
|
"h3c5rm": ["f15xbau", "fy0fskl"],
|
186
205
|
"B9xav0g": "f4ikngz",
|
187
206
|
"zhjwy3": ["fy0fskl", "f15xbau"],
|
188
207
|
"sj55zd": "f1s2aq7o",
|
189
208
|
"Bceei9c": "fdrzuqr",
|
190
|
-
"
|
209
|
+
"Jwef8y": "f1falr9n",
|
191
210
|
"Bgoe8wy": "f12mpcsy",
|
192
211
|
"Bwzppfd": ["f1gwvigk", "f18rmfxp"],
|
193
212
|
"oetu4i": "f1jnshp0",
|
194
213
|
"gg5e9n": ["f18rmfxp", "f1gwvigk"],
|
195
214
|
"Bi91k9c": "fvgxktp",
|
196
215
|
"eoavqd": "fphbwmw",
|
197
|
-
"
|
216
|
+
"ecr2s2": "f1ryyzvn",
|
198
217
|
"B6oc9vd": "fdi4vxw",
|
199
218
|
"ak43y8": ["f4ryxzl", "fkdgpbx"],
|
200
219
|
"wmxk5l": "fcmhn06",
|
@@ -203,9 +222,9 @@ const useRootDisabledStyles = /*#__PURE__*/__styles({
|
|
203
222
|
"Bwh3duv": "fq67hom"
|
204
223
|
},
|
205
224
|
"outline": {
|
206
|
-
"
|
207
|
-
"
|
208
|
-
"
|
225
|
+
"De3pzq": "f1c21dwh",
|
226
|
+
"Jwef8y": "fjxutwb",
|
227
|
+
"ecr2s2": "fophhak"
|
209
228
|
},
|
210
229
|
"primary": {
|
211
230
|
"g2u3we": "f1p3nwhy",
|
@@ -222,43 +241,43 @@ const useRootDisabledStyles = /*#__PURE__*/__styles({
|
|
222
241
|
"B50zh58": ["ft2aflc", "f4yyc7m"]
|
223
242
|
},
|
224
243
|
"subtle": {
|
225
|
-
"
|
244
|
+
"De3pzq": "f3rmtva",
|
226
245
|
"g2u3we": "f1p3nwhy",
|
227
246
|
"h3c5rm": ["f11589ue", "f1pdflbu"],
|
228
247
|
"B9xav0g": "f1q5o8ev",
|
229
248
|
"zhjwy3": ["f1pdflbu", "f11589ue"],
|
230
|
-
"
|
249
|
+
"Jwef8y": "f1cio4g9",
|
231
250
|
"Bgoe8wy": "f1s2uweq",
|
232
251
|
"Bwzppfd": ["fr80ssc", "fecsdlb"],
|
233
252
|
"oetu4i": "f1ukrpxl",
|
234
253
|
"gg5e9n": ["fecsdlb", "fr80ssc"],
|
235
|
-
"
|
254
|
+
"ecr2s2": "f1rot6hk",
|
236
255
|
"B6oc9vd": "ff472gp",
|
237
256
|
"ak43y8": ["f4yyc7m", "ft2aflc"],
|
238
257
|
"wmxk5l": "fggejwh",
|
239
258
|
"B50zh58": ["ft2aflc", "f4yyc7m"]
|
240
259
|
},
|
241
260
|
"transparent": {
|
242
|
-
"
|
261
|
+
"De3pzq": "f3rmtva",
|
243
262
|
"g2u3we": "f1p3nwhy",
|
244
263
|
"h3c5rm": ["f11589ue", "f1pdflbu"],
|
245
264
|
"B9xav0g": "f1q5o8ev",
|
246
265
|
"zhjwy3": ["f1pdflbu", "f11589ue"],
|
247
|
-
"
|
266
|
+
"Jwef8y": "f1cio4g9",
|
248
267
|
"Bgoe8wy": "f1s2uweq",
|
249
268
|
"Bwzppfd": ["fr80ssc", "fecsdlb"],
|
250
269
|
"oetu4i": "f1ukrpxl",
|
251
270
|
"gg5e9n": ["fecsdlb", "fr80ssc"],
|
252
|
-
"
|
271
|
+
"ecr2s2": "f1rot6hk",
|
253
272
|
"B6oc9vd": "ff472gp",
|
254
273
|
"ak43y8": ["f4yyc7m", "ft2aflc"],
|
255
274
|
"wmxk5l": "fggejwh",
|
256
275
|
"B50zh58": ["ft2aflc", "f4yyc7m"]
|
257
276
|
}
|
258
277
|
}, {
|
259
|
-
"d": [".
|
260
|
-
"h": [".
|
261
|
-
"a": [".
|
278
|
+
"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);}", ".fdrzuqr{cursor:not-allowed;}", ".f1c21dwh{background-color:var(--colorTransparentBackground);}", ".f1p3nwhy{border-top-color:transparent;}", ".f11589ue{border-right-color:transparent;}", ".f1pdflbu{border-left-color:transparent;}", ".f1q5o8ev{border-bottom-color:transparent;}", ".f3rmtva{background-color:transparent;}"],
|
279
|
+
"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);}", ".fphbwmw:hover{cursor:not-allowed;}", ".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}", ".f1s2uweq:hover{border-top-color:transparent;}", ".fr80ssc:hover{border-right-color:transparent;}", ".fecsdlb:hover{border-left-color:transparent;}", ".f1ukrpxl:hover{border-bottom-color:transparent;}", ".f1cio4g9:hover{background-color:transparent;}"],
|
280
|
+
"a": [".f1ryyzvn:active{background-color:var(--colorNeutralBackgroundDisabled);}", ".fdi4vxw:active{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f4ryxzl:active{border-right-color:var(--colorNeutralStrokeDisabled);}", ".fkdgpbx:active{border-left-color:var(--colorNeutralStrokeDisabled);}", ".fcmhn06:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}", ".fq67hom:active{cursor:not-allowed;}", ".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}", ".ff472gp:active{border-top-color:transparent;}", ".f4yyc7m:active{border-right-color:transparent;}", ".ft2aflc:active{border-left-color:transparent;}", ".fggejwh:active{border-bottom-color:transparent;}", ".f1rot6hk:active{background-color:transparent;}"]
|
262
281
|
});
|
263
282
|
|
264
283
|
const useRootFocusStyles = /*#__PURE__*/__styles({
|
@@ -268,15 +287,18 @@ const useRootFocusStyles = /*#__PURE__*/__styles({
|
|
268
287
|
"Jopkrh": ["f1781m5e", "flvaaa9"],
|
269
288
|
"hhrs2v": "f50u1b5",
|
270
289
|
"B7jbng7": ["flvaaa9", "f1781m5e"],
|
290
|
+
"Bh48x57": "f19j8a82",
|
271
291
|
"B32s92o": "f4mghqd",
|
272
292
|
"B5hngm5": "fhcq1yo",
|
273
|
-
"
|
274
|
-
"D4py6b": ["f9ycirn", "fj27422"],
|
293
|
+
"D4py6b": "f9ycirn",
|
275
294
|
"Bgwpjed": "fpt6wn7"
|
276
295
|
},
|
277
296
|
"circular": {
|
278
297
|
"B486eqv": "f2hkw1w",
|
279
|
-
"
|
298
|
+
"B8j0l6": ["f11yy61d", "f5edc3x"],
|
299
|
+
"Ekyhi": ["f5edc3x", "f11yy61d"],
|
300
|
+
"Bmrpcm6": ["f1aea4n", "f4jo73o"],
|
301
|
+
"Beswxhl": ["f4jo73o", "f1aea4n"]
|
280
302
|
},
|
281
303
|
"rounded": {},
|
282
304
|
"primary": {
|
@@ -285,27 +307,39 @@ const useRootFocusStyles = /*#__PURE__*/__styles({
|
|
285
307
|
"Jopkrh": ["fhoxsto", "f19qf7vm"],
|
286
308
|
"hhrs2v": "f1tl0rof",
|
287
309
|
"B7jbng7": ["f19qf7vm", "fhoxsto"],
|
288
|
-
"D4py6b":
|
310
|
+
"D4py6b": "f15m8qn2"
|
289
311
|
},
|
290
312
|
"square": {
|
291
313
|
"B486eqv": "f2hkw1w",
|
292
|
-
"
|
314
|
+
"B8j0l6": ["f5oco9f", "fiz44lb"],
|
315
|
+
"Ekyhi": ["fiz44lb", "f5oco9f"],
|
316
|
+
"Bmrpcm6": ["f1d1ywej", "flv4e1y"],
|
317
|
+
"Beswxhl": ["flv4e1y", "f1d1ywej"]
|
293
318
|
},
|
294
319
|
"small": {
|
295
320
|
"B486eqv": "f2hkw1w",
|
296
|
-
"
|
321
|
+
"B8j0l6": ["f1dzjeht", "f1fw97sp"],
|
322
|
+
"Ekyhi": ["f1fw97sp", "f1dzjeht"],
|
323
|
+
"Bmrpcm6": ["f1hr3vfr", "f1fepg9x"],
|
324
|
+
"Beswxhl": ["f1fepg9x", "f1hr3vfr"]
|
297
325
|
},
|
298
326
|
"medium": {
|
299
327
|
"B486eqv": "f2hkw1w",
|
300
|
-
"
|
328
|
+
"B8j0l6": ["f1ezw2km", "f18buiid"],
|
329
|
+
"Ekyhi": ["f18buiid", "f1ezw2km"],
|
330
|
+
"Bmrpcm6": ["f1hat8c3", "f10ee3ek"],
|
331
|
+
"Beswxhl": ["f10ee3ek", "f1hat8c3"]
|
301
332
|
},
|
302
333
|
"large": {
|
303
334
|
"B486eqv": "f2hkw1w",
|
304
|
-
"
|
335
|
+
"B8j0l6": ["f8iz5lg", "fzmqelg"],
|
336
|
+
"Ekyhi": ["fzmqelg", "f8iz5lg"],
|
337
|
+
"Bmrpcm6": ["f1ywuu4l", "f721nif"],
|
338
|
+
"Beswxhl": ["f721nif", "f1ywuu4l"]
|
305
339
|
}
|
306
340
|
}, {
|
307
341
|
"i": [".f2hkw1w:focus-visible{outline-style:none;}"],
|
308
|
-
"d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .
|
342
|
+
"d": ["[data-keyboard-nav] .flfsvnh:focus{border-top-color:transparent;}", "[data-keyboard-nav] .f1781m5e:focus{border-right-color:transparent;}", "[data-keyboard-nav] .flvaaa9:focus{border-left-color:transparent;}", "[data-keyboard-nav] .f50u1b5:focus{border-bottom-color:transparent;}", "[data-keyboard-nav] .f19j8a82:focus{outline-color:transparent;}", "[data-keyboard-nav] .f4mghqd:focus{outline-width:2px;}", "[data-keyboard-nav] .fhcq1yo:focus{outline-style:solid;}", "[data-keyboard-nav] .f9ycirn:focus{box-shadow:var(--shadow4),0 0 0 2px var(--colorStrokeFocus2);}", "[data-keyboard-nav] .fpt6wn7:focus{z-index:1;}", "[data-keyboard-nav] .f11yy61d:focus{border-bottom-right-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .f5edc3x:focus{border-bottom-left-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .f1aea4n:focus{border-top-right-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .f4jo73o:focus{border-top-left-radius:var(--borderRadiusCircular);}", "[data-keyboard-nav] .fbugrqt:focus{border-top-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .fhoxsto:focus{border-right-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f19qf7vm:focus{border-left-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f1tl0rof:focus{border-bottom-color:var(--colorNeutralForegroundOnBrand);}", "[data-keyboard-nav] .f15m8qn2:focus{box-shadow:var(--shadow2),0 0 0 2px var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f5oco9f:focus{border-bottom-right-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .fiz44lb:focus{border-bottom-left-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .f1d1ywej:focus{border-top-right-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .flv4e1y:focus{border-top-left-radius:var(--borderRadiusNone);}", "[data-keyboard-nav] .f1dzjeht:focus{border-bottom-right-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1fw97sp:focus{border-bottom-left-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1hr3vfr:focus{border-top-right-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1fepg9x:focus{border-top-left-radius:var(--borderRadiusSmall);}", "[data-keyboard-nav] .f1ezw2km:focus{border-bottom-right-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f18buiid:focus{border-bottom-left-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f1hat8c3:focus{border-top-right-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f10ee3ek:focus{border-top-left-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f8iz5lg:focus{border-bottom-right-radius:var(--borderRadiusLarge);}", "[data-keyboard-nav] .fzmqelg:focus{border-bottom-left-radius:var(--borderRadiusLarge);}", "[data-keyboard-nav] .f1ywuu4l:focus{border-top-right-radius:var(--borderRadiusLarge);}", "[data-keyboard-nav] .f721nif:focus{border-top-left-radius:var(--borderRadiusLarge);}"]
|
309
343
|
});
|
310
344
|
|
311
345
|
const useRootIconOnlyStyles = /*#__PURE__*/__styles({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,YAAiC,YAAjC,QAAqD,6BAArD;AACA,SAAS,+BAAT,QAAgD,yBAAhD;AAGA,OAAO,MAAM,eAAe,GAAG,YAAxB,C,CAEP;AACA;;AACA,OAAO,MAAM,aAAa,GAAG;AAC3B,EAAA,QAAQ,EAAE,KADiB;AAE3B,EAAA,OAAO,EAAE,KAFkB;AAG3B,EAAA,KAAK,EAAE,KAHoB;AAI3B,EAAA,MAAM,EAAE,KAJmB;AAK3B,EAAA,KAAK,EAAE,MALoB;AAM3B,EAAA,MAAM,EAAE;AANmB,CAAtB;;AASP,MAAM,aAAa,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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Only,
|
14
14
|
iconPosition
|
15
15
|
} = state;
|
16
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
16
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
17
|
+
}, iconPosition !== 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
18
|
+
}), !iconOnly && /*#__PURE__*/React.createElement(slots.contentContainer, { ...slotProps.contentContainer
|
19
|
+
}, slotProps.root.children, /*#__PURE__*/React.createElement(slots.secondaryContent, { ...slotProps.secondaryContent
|
20
|
+
})), iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
21
|
+
}));
|
17
22
|
};
|
18
23
|
//# sourceMappingURL=renderCompoundButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CompoundButton/renderCompoundButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,EAA6B,CAChE,MADgE,EAEhE,kBAFgE,EAGhE,MAHgE,EAIhE,kBAJgE,CAA7B,CAArC;AAMA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,
|
1
|
+
{"version":3,"sources":["../../../src/components/CompoundButton/renderCompoundButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,EAA6B,CAChE,MADgE,EAEhE,kBAFgE,EAGhE,MAHgE,EAIhE,kBAJgE,CAA7B,CAArC;AAMA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAD/B,EAEG,CAAC,QAAD,iBACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,EACG,SAAS,CAAC,IAAV,CAAe,QADlB,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAP,EAAuB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAvB,CAFF,CAHJ,EAQG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAR/B,CADF;AAYD,CArBM","sourceRoot":""}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { mergeClasses, __styles } from '@fluentui/react-make-styles';
|
1
|
+
import { shorthands, mergeClasses, __styles } from '@fluentui/react-make-styles';
|
2
2
|
import { buttonSpacing, useButtonStyles } from '../Button/useButtonStyles';
|
3
3
|
export const compoundButtonClassName = 'fui-CompoundButton';
|
4
4
|
const CompoundButtonClassNames = {
|
@@ -7,7 +7,8 @@ const CompoundButtonClassNames = {
|
|
7
7
|
|
8
8
|
const useRootStyles = /*#__PURE__*/__styles({
|
9
9
|
"base": {
|
10
|
-
"
|
10
|
+
"i8kkvl": "f4akndk",
|
11
|
+
"Belr9w4": "fe5j3v",
|
11
12
|
"Bqenvij": "f11ysow2",
|
12
13
|
"Bma4kx5": "f900oq5",
|
13
14
|
"l15nfm": "f8rpug0",
|
@@ -59,7 +60,7 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
59
60
|
"n4n7rj": "f1xrf5v0"
|
60
61
|
}
|
61
62
|
}, {
|
62
|
-
"d": [".
|
63
|
+
"d": [".f4akndk{-webkit-column-gap:12px;column-gap:12px;}", ".fe5j3v{row-gap:12px;}", ".f11ysow2{height:auto;}", ".f900oq5 .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForeground2);}", ".f1ur7rb7 .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundOnBrand);}", ".fp9bwmr{padding-top:8px;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f150uoa4{padding-bottom:8px;}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".fj9njph .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundDisabled);}"],
|
63
64
|
"h": [".f8rpug0:hover .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForeground2Hover);}", ".f1itoici:hover .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundOnBrand);}", ".f1l9nom2:hover .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForeground2BrandHover);}", ".fr13fpv:hover .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundDisabled);}"],
|
64
65
|
"a": [".fre7xro:active .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForeground2Pressed);}", ".f1uen3ov:active .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundOnBrand);}", ".fvjq8kx:active .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForeground2BrandPressed);}", ".f1xrf5v0:active .fui-CompoundButton-secondaryContent{color:var(--colorNeutralForegroundDisabled);}"]
|
65
66
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CompoundButton/useCompoundButtonStyles.ts"],"names":[],"mappings":"AAAA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/CompoundButton/useCompoundButtonStyles.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,EAAqB,YAArB,kBAAqD,6BAArD;AACA,SAAS,aAAT,EAAwB,eAAxB,QAA+C,2BAA/C;AAGA,OAAO,MAAM,uBAAuB,GAAG,oBAAhC;AAEP,MAAM,wBAAwB,GAAG;AAC/B,EAAA,gBAAgB,EAAE,GAAG,uBAAuB;AADb,CAAjC;;AAIA,MAAM,aAAa,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAtB;;AAwHA,MAAM,qBAAqB,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAA9B;;AAsBA,MAAM,aAAa,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAtB;;AASA,MAAM,yB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;AAEA,MAAI,KAAK,CAAC,gBAAV,EAA4B;AAC1B,IAAA,KAAK,CAAC,gBAAN,CAAuB,SAAvB,GAAmC,YAAY,CAC7C,wBAAwB,CAAC,gBADoB,EAE7C,sBAAsB,CAAC,IAFsB,EAG7C,sBAAsB,CAAC,IAAD,CAHuB,EAI7C,KAAK,CAAC,gBAAN,CAAuB,SAJsB,CAA/C;AAMD;;AAED,EAAA,eAAe,CAAC,KAAD,CAAf;AAEA,SAAO,KAAP;AACD,CA7CM","sourceRoot":""}
|
@@ -1,6 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import * as React from 'react';
|
2
2
|
import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
3
3
|
import type { ButtonCommons, ButtonSlots, ButtonState } from '../Button/Button.types';
|
4
|
+
declare type MenuTriggerChildProps = Pick<React.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'id'> & {
|
5
|
+
ref?: React.Ref<never>;
|
6
|
+
};
|
4
7
|
export declare type MenuButtonSlots = ButtonSlots & {
|
5
8
|
/**
|
6
9
|
* Menu icon that indicates that this button has a menu that can be expanded.
|
@@ -9,3 +12,4 @@ export declare type MenuButtonSlots = ButtonSlots & {
|
|
9
12
|
};
|
10
13
|
export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Partial<Omit<ButtonCommons, 'iconPosition'>> & Partial<MenuTriggerChildProps>;
|
11
14
|
export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
|
15
|
+
export {};
|
@@ -13,6 +13,9 @@ export const renderMenuButton = state => {
|
|
13
13
|
icon,
|
14
14
|
iconOnly
|
15
15
|
} = state;
|
16
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
16
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
17
|
+
}, /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
18
|
+
}), !iconOnly && slotProps.root.children, (!iconOnly || !(icon === null || icon === void 0 ? void 0 : icon.children)) && /*#__PURE__*/React.createElement(slots.menuIcon, { ...slotProps.menuIcon
|
19
|
+
}));
|
17
20
|
};
|
18
21
|
//# sourceMappingURL=renderMenuButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/MenuButton/renderMenuButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,gBAAgB,GAAI,KAAD,IAA2B;AACzD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAkB,KAAlB,EAAyB,CAAC,MAAD,EAAS,MAAT,EAAiB,UAAjB,CAAzB,CAArC;AACA,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA;AAAR,MAAqB,KAA3B;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,
|
1
|
+
{"version":3,"sources":["../../../src/components/MenuButton/renderMenuButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,gBAAgB,GAAI,KAAD,IAA2B;AACzD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAkB,KAAlB,EAAyB,CAAC,MAAD,EAAS,MAAT,EAAiB,UAAjB,CAAzB,CAArC;AACA,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA;AAAR,MAAqB,KAA3B;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADF,EAEG,CAAC,QAAD,IAAa,SAAS,CAAC,IAAV,CAAe,QAF/B,EAGG,CAAC,CAAC,QAAD,IAAa,EAAC,IAAI,KAAA,IAAJ,IAAA,IAAI,KAAA,KAAA,CAAJ,GAAI,KAAA,CAAJ,GAAA,IAAI,CAAE,QAAP,CAAd,kBAAkC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAP,EAAe,EAAA,GAAK,SAAS,CAAC;AAAf,GAAf,CAHrC,CADF;AAOD,CAXM","sourceRoot":""}
|
@@ -9,6 +9,9 @@ export const renderSplitButton = state => {
|
|
9
9
|
slots,
|
10
10
|
slotProps
|
11
11
|
} = getSlots(state, ['root', 'menuButton', 'primaryActionButton']);
|
12
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
12
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
13
|
+
}, /*#__PURE__*/React.createElement(slots.primaryActionButton, { ...slotProps.primaryActionButton
|
14
|
+
}), /*#__PURE__*/React.createElement(slots.menuButton, { ...slotProps.menuButton
|
15
|
+
}));
|
13
16
|
};
|
14
17
|
//# sourceMappingURL=renderSplitButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/SplitButton/renderSplitButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,EAA0B,CAAC,MAAD,EAAS,YAAT,EAAuB,qBAAvB,CAA1B,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,
|
1
|
+
{"version":3,"sources":["../../../src/components/SplitButton/renderSplitButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,iBAAiB,GAAI,KAAD,IAA4B;AAC3D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAmB,KAAnB,EAA0B,CAAC,MAAD,EAAS,YAAT,EAAuB,qBAAvB,CAA1B,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,mBAAP,EAA0B,EAAA,GAAK,SAAS,CAAC;AAAf,GAA1B,CADF,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,UAAP,EAAiB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAjB,CAFF,CADF;AAMD,CATM","sourceRoot":""}
|