@fangzsx/component-library 0.0.7 → 0.0.9
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/dist/ButtonBase-CAtBagnK.js +4293 -0
- package/dist/Paper-CAUsv8qs.js +183 -0
- package/dist/colors-BYtTt7gN.js +18 -0
- package/dist/colors.json.d.ts +65 -2
- package/dist/components/AppBarPublic/index.js +245 -375
- package/dist/components/Banner/index.d.ts +10 -0
- package/dist/components/Banner/index.js +37 -0
- package/dist/components/Button/index.d.ts +5 -1
- package/dist/components/Button/index.js +3 -2
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.js +783 -0
- package/dist/components/FlatBanner/index.d.ts +9 -0
- package/dist/components/FlatBanner/index.js +32 -0
- package/dist/components/MediaCardWithAction/index.d.ts +10 -0
- package/dist/components/MediaCardWithAction/index.js +650 -0
- package/dist/createSvgIcon-DAI5icic.js +242 -0
- package/dist/index-DGepNtNg.js +971 -0
- package/dist/main.d.ts +4 -0
- package/dist/main.js +16 -8
- package/package.json +5 -3
- package/dist/index-DP5i7LPc.js +0 -5416
|
@@ -0,0 +1,971 @@
|
|
|
1
|
+
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { c as P } from "./colors-BYtTt7gN.js";
|
|
3
|
+
import * as f from "react";
|
|
4
|
+
import { g as A, a as H, u as K, s as y, c as O, b as e, d as Y, m as R, j as Z, P as t, i as co, r as po, B as uo, k as go } from "./ButtonBase-CAtBagnK.js";
|
|
5
|
+
import { css as q, keyframes as J } from "@mui/system";
|
|
6
|
+
let j = 0;
|
|
7
|
+
function vo(o) {
|
|
8
|
+
const [r, a] = f.useState(o), n = o || r;
|
|
9
|
+
return f.useEffect(() => {
|
|
10
|
+
r == null && (j += 1, a(`mui-${j}`));
|
|
11
|
+
}, [r]), n;
|
|
12
|
+
}
|
|
13
|
+
const fo = {
|
|
14
|
+
...f
|
|
15
|
+
}, U = fo.useId;
|
|
16
|
+
function yo(o) {
|
|
17
|
+
if (U !== void 0) {
|
|
18
|
+
const r = U();
|
|
19
|
+
return o ?? r;
|
|
20
|
+
}
|
|
21
|
+
return vo(o);
|
|
22
|
+
}
|
|
23
|
+
function bo(o) {
|
|
24
|
+
return A("MuiCircularProgress", o);
|
|
25
|
+
}
|
|
26
|
+
H("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
27
|
+
const l = 44, T = J`
|
|
28
|
+
0% {
|
|
29
|
+
transform: rotate(0deg);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
100% {
|
|
33
|
+
transform: rotate(360deg);
|
|
34
|
+
}
|
|
35
|
+
`, E = J`
|
|
36
|
+
0% {
|
|
37
|
+
stroke-dasharray: 1px, 200px;
|
|
38
|
+
stroke-dashoffset: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
50% {
|
|
42
|
+
stroke-dasharray: 100px, 200px;
|
|
43
|
+
stroke-dashoffset: -15px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
100% {
|
|
47
|
+
stroke-dasharray: 1px, 200px;
|
|
48
|
+
stroke-dashoffset: -126px;
|
|
49
|
+
}
|
|
50
|
+
`, xo = typeof T != "string" ? q`
|
|
51
|
+
animation: ${T} 1.4s linear infinite;
|
|
52
|
+
` : null, So = typeof E != "string" ? q`
|
|
53
|
+
animation: ${E} 1.4s ease-in-out infinite;
|
|
54
|
+
` : null, ho = (o) => {
|
|
55
|
+
const {
|
|
56
|
+
classes: r,
|
|
57
|
+
variant: a,
|
|
58
|
+
color: n,
|
|
59
|
+
disableShrink: i
|
|
60
|
+
} = o, s = {
|
|
61
|
+
root: ["root", a, `color${e(n)}`],
|
|
62
|
+
svg: ["svg"],
|
|
63
|
+
track: ["track"],
|
|
64
|
+
circle: ["circle", `circle${e(a)}`, i && "circleDisableShrink"]
|
|
65
|
+
};
|
|
66
|
+
return Y(s, bo, r);
|
|
67
|
+
}, Co = y("span", {
|
|
68
|
+
name: "MuiCircularProgress",
|
|
69
|
+
slot: "Root",
|
|
70
|
+
overridesResolver: (o, r) => {
|
|
71
|
+
const {
|
|
72
|
+
ownerState: a
|
|
73
|
+
} = o;
|
|
74
|
+
return [r.root, r[a.variant], r[`color${e(a.color)}`]];
|
|
75
|
+
}
|
|
76
|
+
})(R(({
|
|
77
|
+
theme: o
|
|
78
|
+
}) => ({
|
|
79
|
+
display: "inline-block",
|
|
80
|
+
variants: [{
|
|
81
|
+
props: {
|
|
82
|
+
variant: "determinate"
|
|
83
|
+
},
|
|
84
|
+
style: {
|
|
85
|
+
transition: o.transitions.create("transform")
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
props: {
|
|
89
|
+
variant: "indeterminate"
|
|
90
|
+
},
|
|
91
|
+
style: xo || {
|
|
92
|
+
animation: `${T} 1.4s linear infinite`
|
|
93
|
+
}
|
|
94
|
+
}, ...Object.entries(o.palette).filter(Z()).map(([r]) => ({
|
|
95
|
+
props: {
|
|
96
|
+
color: r
|
|
97
|
+
},
|
|
98
|
+
style: {
|
|
99
|
+
color: (o.vars || o).palette[r].main
|
|
100
|
+
}
|
|
101
|
+
}))]
|
|
102
|
+
}))), mo = y("svg", {
|
|
103
|
+
name: "MuiCircularProgress",
|
|
104
|
+
slot: "Svg"
|
|
105
|
+
})({
|
|
106
|
+
display: "block"
|
|
107
|
+
// Keeps the progress centered
|
|
108
|
+
}), Io = y("circle", {
|
|
109
|
+
name: "MuiCircularProgress",
|
|
110
|
+
slot: "Circle",
|
|
111
|
+
overridesResolver: (o, r) => {
|
|
112
|
+
const {
|
|
113
|
+
ownerState: a
|
|
114
|
+
} = o;
|
|
115
|
+
return [r.circle, r[`circle${e(a.variant)}`], a.disableShrink && r.circleDisableShrink];
|
|
116
|
+
}
|
|
117
|
+
})(R(({
|
|
118
|
+
theme: o
|
|
119
|
+
}) => ({
|
|
120
|
+
stroke: "currentColor",
|
|
121
|
+
variants: [{
|
|
122
|
+
props: {
|
|
123
|
+
variant: "determinate"
|
|
124
|
+
},
|
|
125
|
+
style: {
|
|
126
|
+
transition: o.transitions.create("stroke-dashoffset")
|
|
127
|
+
}
|
|
128
|
+
}, {
|
|
129
|
+
props: {
|
|
130
|
+
variant: "indeterminate"
|
|
131
|
+
},
|
|
132
|
+
style: {
|
|
133
|
+
// Some default value that looks fine waiting for the animation to kicks in.
|
|
134
|
+
strokeDasharray: "80px, 200px",
|
|
135
|
+
strokeDashoffset: 0
|
|
136
|
+
// Add the unit to fix a Edge 16 and below bug.
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
props: ({
|
|
140
|
+
ownerState: r
|
|
141
|
+
}) => r.variant === "indeterminate" && !r.disableShrink,
|
|
142
|
+
style: So || {
|
|
143
|
+
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
144
|
+
animation: `${E} 1.4s ease-in-out infinite`
|
|
145
|
+
}
|
|
146
|
+
}]
|
|
147
|
+
}))), Po = y("circle", {
|
|
148
|
+
name: "MuiCircularProgress",
|
|
149
|
+
slot: "Track"
|
|
150
|
+
})(R(({
|
|
151
|
+
theme: o
|
|
152
|
+
}) => ({
|
|
153
|
+
stroke: "currentColor",
|
|
154
|
+
opacity: (o.vars || o).palette.action.activatedOpacity
|
|
155
|
+
}))), Q = /* @__PURE__ */ f.forwardRef(function(r, a) {
|
|
156
|
+
const n = K({
|
|
157
|
+
props: r,
|
|
158
|
+
name: "MuiCircularProgress"
|
|
159
|
+
}), {
|
|
160
|
+
className: i,
|
|
161
|
+
color: s = "primary",
|
|
162
|
+
disableShrink: g = !1,
|
|
163
|
+
enableTrackSlot: d = !1,
|
|
164
|
+
size: b = 40,
|
|
165
|
+
style: C,
|
|
166
|
+
thickness: p = 3.6,
|
|
167
|
+
value: m = 0,
|
|
168
|
+
variant: w = "indeterminate",
|
|
169
|
+
...$
|
|
170
|
+
} = n, x = {
|
|
171
|
+
...n,
|
|
172
|
+
color: s,
|
|
173
|
+
disableShrink: g,
|
|
174
|
+
size: b,
|
|
175
|
+
thickness: p,
|
|
176
|
+
value: m,
|
|
177
|
+
variant: w,
|
|
178
|
+
enableTrackSlot: d
|
|
179
|
+
}, I = ho(x), k = {}, z = {}, u = {};
|
|
180
|
+
if (w === "determinate") {
|
|
181
|
+
const N = 2 * Math.PI * ((l - p) / 2);
|
|
182
|
+
k.strokeDasharray = N.toFixed(3), u["aria-valuenow"] = Math.round(m), k.strokeDashoffset = `${((100 - m) / 100 * N).toFixed(3)}px`, z.transform = "rotate(-90deg)";
|
|
183
|
+
}
|
|
184
|
+
return /* @__PURE__ */ c(Co, {
|
|
185
|
+
className: O(I.root, i),
|
|
186
|
+
style: {
|
|
187
|
+
width: b,
|
|
188
|
+
height: b,
|
|
189
|
+
...z,
|
|
190
|
+
...C
|
|
191
|
+
},
|
|
192
|
+
ownerState: x,
|
|
193
|
+
ref: a,
|
|
194
|
+
role: "progressbar",
|
|
195
|
+
...u,
|
|
196
|
+
...$,
|
|
197
|
+
children: /* @__PURE__ */ _(mo, {
|
|
198
|
+
className: I.svg,
|
|
199
|
+
ownerState: x,
|
|
200
|
+
viewBox: `${l / 2} ${l / 2} ${l} ${l}`,
|
|
201
|
+
children: [d ? /* @__PURE__ */ c(Po, {
|
|
202
|
+
className: I.track,
|
|
203
|
+
ownerState: x,
|
|
204
|
+
cx: l,
|
|
205
|
+
cy: l,
|
|
206
|
+
r: (l - p) / 2,
|
|
207
|
+
fill: "none",
|
|
208
|
+
strokeWidth: p,
|
|
209
|
+
"aria-hidden": "true"
|
|
210
|
+
}) : null, /* @__PURE__ */ c(Io, {
|
|
211
|
+
className: I.circle,
|
|
212
|
+
style: k,
|
|
213
|
+
ownerState: x,
|
|
214
|
+
cx: l,
|
|
215
|
+
cy: l,
|
|
216
|
+
r: (l - p) / 2,
|
|
217
|
+
fill: "none",
|
|
218
|
+
strokeWidth: p
|
|
219
|
+
})]
|
|
220
|
+
})
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
224
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
225
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
226
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
227
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
228
|
+
/**
|
|
229
|
+
* Override or extend the styles applied to the component.
|
|
230
|
+
*/
|
|
231
|
+
classes: t.object,
|
|
232
|
+
/**
|
|
233
|
+
* @ignore
|
|
234
|
+
*/
|
|
235
|
+
className: t.string,
|
|
236
|
+
/**
|
|
237
|
+
* The color of the component.
|
|
238
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
239
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
240
|
+
* @default 'primary'
|
|
241
|
+
*/
|
|
242
|
+
color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
|
|
243
|
+
/**
|
|
244
|
+
* If `true`, the shrink animation is disabled.
|
|
245
|
+
* This only works if variant is `indeterminate`.
|
|
246
|
+
* @default false
|
|
247
|
+
*/
|
|
248
|
+
disableShrink: co(t.bool, (o) => o.disableShrink && o.variant && o.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
249
|
+
/**
|
|
250
|
+
* If `true`, a track circle slot is mounted to show a subtle background for the progress.
|
|
251
|
+
* The `size` and `thickness` apply to the track slot to be consistent with the progress circle.
|
|
252
|
+
* @default false
|
|
253
|
+
*/
|
|
254
|
+
enableTrackSlot: t.bool,
|
|
255
|
+
/**
|
|
256
|
+
* The size of the component.
|
|
257
|
+
* If using a number, the pixel unit is assumed.
|
|
258
|
+
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
259
|
+
* @default 40
|
|
260
|
+
*/
|
|
261
|
+
size: t.oneOfType([t.number, t.string]),
|
|
262
|
+
/**
|
|
263
|
+
* @ignore
|
|
264
|
+
*/
|
|
265
|
+
style: t.object,
|
|
266
|
+
/**
|
|
267
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
268
|
+
*/
|
|
269
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
270
|
+
/**
|
|
271
|
+
* The thickness of the circle.
|
|
272
|
+
* @default 3.6
|
|
273
|
+
*/
|
|
274
|
+
thickness: t.number,
|
|
275
|
+
/**
|
|
276
|
+
* The value of the progress indicator for the determinate variant.
|
|
277
|
+
* Value between 0 and 100.
|
|
278
|
+
* @default 0
|
|
279
|
+
*/
|
|
280
|
+
value: t.number,
|
|
281
|
+
/**
|
|
282
|
+
* The variant to use.
|
|
283
|
+
* Use indeterminate when there is no progress value.
|
|
284
|
+
* @default 'indeterminate'
|
|
285
|
+
*/
|
|
286
|
+
variant: t.oneOf(["determinate", "indeterminate"])
|
|
287
|
+
});
|
|
288
|
+
function ko(o) {
|
|
289
|
+
return A("MuiButton", o);
|
|
290
|
+
}
|
|
291
|
+
const h = H("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), X = /* @__PURE__ */ f.createContext({});
|
|
292
|
+
process.env.NODE_ENV !== "production" && (X.displayName = "ButtonGroupContext");
|
|
293
|
+
const oo = /* @__PURE__ */ f.createContext(void 0);
|
|
294
|
+
process.env.NODE_ENV !== "production" && (oo.displayName = "ButtonGroupButtonContext");
|
|
295
|
+
const zo = (o) => {
|
|
296
|
+
const {
|
|
297
|
+
color: r,
|
|
298
|
+
disableElevation: a,
|
|
299
|
+
fullWidth: n,
|
|
300
|
+
size: i,
|
|
301
|
+
variant: s,
|
|
302
|
+
loading: g,
|
|
303
|
+
loadingPosition: d,
|
|
304
|
+
classes: b
|
|
305
|
+
} = o, C = {
|
|
306
|
+
root: ["root", g && "loading", s, `${s}${e(r)}`, `size${e(i)}`, `${s}Size${e(i)}`, `color${e(r)}`, a && "disableElevation", n && "fullWidth", g && `loadingPosition${e(d)}`],
|
|
307
|
+
startIcon: ["icon", "startIcon", `iconSize${e(i)}`],
|
|
308
|
+
endIcon: ["icon", "endIcon", `iconSize${e(i)}`],
|
|
309
|
+
loadingIndicator: ["loadingIndicator"],
|
|
310
|
+
loadingWrapper: ["loadingWrapper"]
|
|
311
|
+
}, p = Y(C, ko, b);
|
|
312
|
+
return {
|
|
313
|
+
...b,
|
|
314
|
+
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
315
|
+
...p
|
|
316
|
+
};
|
|
317
|
+
}, to = [{
|
|
318
|
+
props: {
|
|
319
|
+
size: "small"
|
|
320
|
+
},
|
|
321
|
+
style: {
|
|
322
|
+
"& > *:nth-of-type(1)": {
|
|
323
|
+
fontSize: 18
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}, {
|
|
327
|
+
props: {
|
|
328
|
+
size: "medium"
|
|
329
|
+
},
|
|
330
|
+
style: {
|
|
331
|
+
"& > *:nth-of-type(1)": {
|
|
332
|
+
fontSize: 20
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}, {
|
|
336
|
+
props: {
|
|
337
|
+
size: "large"
|
|
338
|
+
},
|
|
339
|
+
style: {
|
|
340
|
+
"& > *:nth-of-type(1)": {
|
|
341
|
+
fontSize: 22
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}], Bo = y(uo, {
|
|
345
|
+
shouldForwardProp: (o) => go(o) || o === "classes",
|
|
346
|
+
name: "MuiButton",
|
|
347
|
+
slot: "Root",
|
|
348
|
+
overridesResolver: (o, r) => {
|
|
349
|
+
const {
|
|
350
|
+
ownerState: a
|
|
351
|
+
} = o;
|
|
352
|
+
return [r.root, r[a.variant], r[`${a.variant}${e(a.color)}`], r[`size${e(a.size)}`], r[`${a.variant}Size${e(a.size)}`], a.color === "inherit" && r.colorInherit, a.disableElevation && r.disableElevation, a.fullWidth && r.fullWidth, a.loading && r.loading];
|
|
353
|
+
}
|
|
354
|
+
})(R(({
|
|
355
|
+
theme: o
|
|
356
|
+
}) => {
|
|
357
|
+
const r = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], a = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
358
|
+
return {
|
|
359
|
+
...o.typography.button,
|
|
360
|
+
minWidth: 64,
|
|
361
|
+
padding: "6px 16px",
|
|
362
|
+
border: 0,
|
|
363
|
+
borderRadius: (o.vars || o).shape.borderRadius,
|
|
364
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
365
|
+
duration: o.transitions.duration.short
|
|
366
|
+
}),
|
|
367
|
+
"&:hover": {
|
|
368
|
+
textDecoration: "none"
|
|
369
|
+
},
|
|
370
|
+
[`&.${h.disabled}`]: {
|
|
371
|
+
color: (o.vars || o).palette.action.disabled
|
|
372
|
+
},
|
|
373
|
+
variants: [{
|
|
374
|
+
props: {
|
|
375
|
+
variant: "contained"
|
|
376
|
+
},
|
|
377
|
+
style: {
|
|
378
|
+
color: "var(--variant-containedColor)",
|
|
379
|
+
backgroundColor: "var(--variant-containedBg)",
|
|
380
|
+
boxShadow: (o.vars || o).shadows[2],
|
|
381
|
+
"&:hover": {
|
|
382
|
+
boxShadow: (o.vars || o).shadows[4],
|
|
383
|
+
// Reset on touch devices, it doesn't add specificity
|
|
384
|
+
"@media (hover: none)": {
|
|
385
|
+
boxShadow: (o.vars || o).shadows[2]
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"&:active": {
|
|
389
|
+
boxShadow: (o.vars || o).shadows[8]
|
|
390
|
+
},
|
|
391
|
+
[`&.${h.focusVisible}`]: {
|
|
392
|
+
boxShadow: (o.vars || o).shadows[6]
|
|
393
|
+
},
|
|
394
|
+
[`&.${h.disabled}`]: {
|
|
395
|
+
color: (o.vars || o).palette.action.disabled,
|
|
396
|
+
boxShadow: (o.vars || o).shadows[0],
|
|
397
|
+
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}, {
|
|
401
|
+
props: {
|
|
402
|
+
variant: "outlined"
|
|
403
|
+
},
|
|
404
|
+
style: {
|
|
405
|
+
padding: "5px 15px",
|
|
406
|
+
border: "1px solid currentColor",
|
|
407
|
+
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
408
|
+
backgroundColor: "var(--variant-outlinedBg)",
|
|
409
|
+
color: "var(--variant-outlinedColor)",
|
|
410
|
+
[`&.${h.disabled}`]: {
|
|
411
|
+
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}, {
|
|
415
|
+
props: {
|
|
416
|
+
variant: "text"
|
|
417
|
+
},
|
|
418
|
+
style: {
|
|
419
|
+
padding: "6px 8px",
|
|
420
|
+
color: "var(--variant-textColor)",
|
|
421
|
+
backgroundColor: "var(--variant-textBg)"
|
|
422
|
+
}
|
|
423
|
+
}, ...Object.entries(o.palette).filter(Z()).map(([n]) => ({
|
|
424
|
+
props: {
|
|
425
|
+
color: n
|
|
426
|
+
},
|
|
427
|
+
style: {
|
|
428
|
+
"--variant-textColor": (o.vars || o).palette[n].main,
|
|
429
|
+
"--variant-outlinedColor": (o.vars || o).palette[n].main,
|
|
430
|
+
"--variant-outlinedBorder": o.alpha((o.vars || o).palette[n].main, 0.5),
|
|
431
|
+
"--variant-containedColor": (o.vars || o).palette[n].contrastText,
|
|
432
|
+
"--variant-containedBg": (o.vars || o).palette[n].main,
|
|
433
|
+
"@media (hover: hover)": {
|
|
434
|
+
"&:hover": {
|
|
435
|
+
"--variant-containedBg": (o.vars || o).palette[n].dark,
|
|
436
|
+
"--variant-textBg": o.alpha((o.vars || o).palette[n].main, (o.vars || o).palette.action.hoverOpacity),
|
|
437
|
+
"--variant-outlinedBorder": (o.vars || o).palette[n].main,
|
|
438
|
+
"--variant-outlinedBg": o.alpha((o.vars || o).palette[n].main, (o.vars || o).palette.action.hoverOpacity)
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
})), {
|
|
443
|
+
props: {
|
|
444
|
+
color: "inherit"
|
|
445
|
+
},
|
|
446
|
+
style: {
|
|
447
|
+
color: "inherit",
|
|
448
|
+
borderColor: "currentColor",
|
|
449
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : r,
|
|
450
|
+
"@media (hover: hover)": {
|
|
451
|
+
"&:hover": {
|
|
452
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : a,
|
|
453
|
+
"--variant-textBg": o.alpha((o.vars || o).palette.text.primary, (o.vars || o).palette.action.hoverOpacity),
|
|
454
|
+
"--variant-outlinedBg": o.alpha((o.vars || o).palette.text.primary, (o.vars || o).palette.action.hoverOpacity)
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}, {
|
|
459
|
+
props: {
|
|
460
|
+
size: "small",
|
|
461
|
+
variant: "text"
|
|
462
|
+
},
|
|
463
|
+
style: {
|
|
464
|
+
padding: "4px 5px",
|
|
465
|
+
fontSize: o.typography.pxToRem(13)
|
|
466
|
+
}
|
|
467
|
+
}, {
|
|
468
|
+
props: {
|
|
469
|
+
size: "large",
|
|
470
|
+
variant: "text"
|
|
471
|
+
},
|
|
472
|
+
style: {
|
|
473
|
+
padding: "8px 11px",
|
|
474
|
+
fontSize: o.typography.pxToRem(15)
|
|
475
|
+
}
|
|
476
|
+
}, {
|
|
477
|
+
props: {
|
|
478
|
+
size: "small",
|
|
479
|
+
variant: "outlined"
|
|
480
|
+
},
|
|
481
|
+
style: {
|
|
482
|
+
padding: "3px 9px",
|
|
483
|
+
fontSize: o.typography.pxToRem(13)
|
|
484
|
+
}
|
|
485
|
+
}, {
|
|
486
|
+
props: {
|
|
487
|
+
size: "large",
|
|
488
|
+
variant: "outlined"
|
|
489
|
+
},
|
|
490
|
+
style: {
|
|
491
|
+
padding: "7px 21px",
|
|
492
|
+
fontSize: o.typography.pxToRem(15)
|
|
493
|
+
}
|
|
494
|
+
}, {
|
|
495
|
+
props: {
|
|
496
|
+
size: "small",
|
|
497
|
+
variant: "contained"
|
|
498
|
+
},
|
|
499
|
+
style: {
|
|
500
|
+
padding: "4px 10px",
|
|
501
|
+
fontSize: o.typography.pxToRem(13)
|
|
502
|
+
}
|
|
503
|
+
}, {
|
|
504
|
+
props: {
|
|
505
|
+
size: "large",
|
|
506
|
+
variant: "contained"
|
|
507
|
+
},
|
|
508
|
+
style: {
|
|
509
|
+
padding: "8px 22px",
|
|
510
|
+
fontSize: o.typography.pxToRem(15)
|
|
511
|
+
}
|
|
512
|
+
}, {
|
|
513
|
+
props: {
|
|
514
|
+
disableElevation: !0
|
|
515
|
+
},
|
|
516
|
+
style: {
|
|
517
|
+
boxShadow: "none",
|
|
518
|
+
"&:hover": {
|
|
519
|
+
boxShadow: "none"
|
|
520
|
+
},
|
|
521
|
+
[`&.${h.focusVisible}`]: {
|
|
522
|
+
boxShadow: "none"
|
|
523
|
+
},
|
|
524
|
+
"&:active": {
|
|
525
|
+
boxShadow: "none"
|
|
526
|
+
},
|
|
527
|
+
[`&.${h.disabled}`]: {
|
|
528
|
+
boxShadow: "none"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}, {
|
|
532
|
+
props: {
|
|
533
|
+
fullWidth: !0
|
|
534
|
+
},
|
|
535
|
+
style: {
|
|
536
|
+
width: "100%"
|
|
537
|
+
}
|
|
538
|
+
}, {
|
|
539
|
+
props: {
|
|
540
|
+
loadingPosition: "center"
|
|
541
|
+
},
|
|
542
|
+
style: {
|
|
543
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
544
|
+
duration: o.transitions.duration.short
|
|
545
|
+
}),
|
|
546
|
+
[`&.${h.loading}`]: {
|
|
547
|
+
color: "transparent"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}]
|
|
551
|
+
};
|
|
552
|
+
})), wo = y("span", {
|
|
553
|
+
name: "MuiButton",
|
|
554
|
+
slot: "StartIcon",
|
|
555
|
+
overridesResolver: (o, r) => {
|
|
556
|
+
const {
|
|
557
|
+
ownerState: a
|
|
558
|
+
} = o;
|
|
559
|
+
return [r.startIcon, a.loading && r.startIconLoadingStart, r[`iconSize${e(a.size)}`]];
|
|
560
|
+
}
|
|
561
|
+
})(({
|
|
562
|
+
theme: o
|
|
563
|
+
}) => ({
|
|
564
|
+
display: "inherit",
|
|
565
|
+
marginRight: 8,
|
|
566
|
+
marginLeft: -4,
|
|
567
|
+
variants: [{
|
|
568
|
+
props: {
|
|
569
|
+
size: "small"
|
|
570
|
+
},
|
|
571
|
+
style: {
|
|
572
|
+
marginLeft: -2
|
|
573
|
+
}
|
|
574
|
+
}, {
|
|
575
|
+
props: {
|
|
576
|
+
loadingPosition: "start",
|
|
577
|
+
loading: !0
|
|
578
|
+
},
|
|
579
|
+
style: {
|
|
580
|
+
transition: o.transitions.create(["opacity"], {
|
|
581
|
+
duration: o.transitions.duration.short
|
|
582
|
+
}),
|
|
583
|
+
opacity: 0
|
|
584
|
+
}
|
|
585
|
+
}, {
|
|
586
|
+
props: {
|
|
587
|
+
loadingPosition: "start",
|
|
588
|
+
loading: !0,
|
|
589
|
+
fullWidth: !0
|
|
590
|
+
},
|
|
591
|
+
style: {
|
|
592
|
+
marginRight: -8
|
|
593
|
+
}
|
|
594
|
+
}, ...to]
|
|
595
|
+
})), $o = y("span", {
|
|
596
|
+
name: "MuiButton",
|
|
597
|
+
slot: "EndIcon",
|
|
598
|
+
overridesResolver: (o, r) => {
|
|
599
|
+
const {
|
|
600
|
+
ownerState: a
|
|
601
|
+
} = o;
|
|
602
|
+
return [r.endIcon, a.loading && r.endIconLoadingEnd, r[`iconSize${e(a.size)}`]];
|
|
603
|
+
}
|
|
604
|
+
})(({
|
|
605
|
+
theme: o
|
|
606
|
+
}) => ({
|
|
607
|
+
display: "inherit",
|
|
608
|
+
marginRight: -4,
|
|
609
|
+
marginLeft: 8,
|
|
610
|
+
variants: [{
|
|
611
|
+
props: {
|
|
612
|
+
size: "small"
|
|
613
|
+
},
|
|
614
|
+
style: {
|
|
615
|
+
marginRight: -2
|
|
616
|
+
}
|
|
617
|
+
}, {
|
|
618
|
+
props: {
|
|
619
|
+
loadingPosition: "end",
|
|
620
|
+
loading: !0
|
|
621
|
+
},
|
|
622
|
+
style: {
|
|
623
|
+
transition: o.transitions.create(["opacity"], {
|
|
624
|
+
duration: o.transitions.duration.short
|
|
625
|
+
}),
|
|
626
|
+
opacity: 0
|
|
627
|
+
}
|
|
628
|
+
}, {
|
|
629
|
+
props: {
|
|
630
|
+
loadingPosition: "end",
|
|
631
|
+
loading: !0,
|
|
632
|
+
fullWidth: !0
|
|
633
|
+
},
|
|
634
|
+
style: {
|
|
635
|
+
marginLeft: -8
|
|
636
|
+
}
|
|
637
|
+
}, ...to]
|
|
638
|
+
})), No = y("span", {
|
|
639
|
+
name: "MuiButton",
|
|
640
|
+
slot: "LoadingIndicator"
|
|
641
|
+
})(({
|
|
642
|
+
theme: o
|
|
643
|
+
}) => ({
|
|
644
|
+
display: "none",
|
|
645
|
+
position: "absolute",
|
|
646
|
+
visibility: "visible",
|
|
647
|
+
variants: [{
|
|
648
|
+
props: {
|
|
649
|
+
loading: !0
|
|
650
|
+
},
|
|
651
|
+
style: {
|
|
652
|
+
display: "flex"
|
|
653
|
+
}
|
|
654
|
+
}, {
|
|
655
|
+
props: {
|
|
656
|
+
loadingPosition: "start"
|
|
657
|
+
},
|
|
658
|
+
style: {
|
|
659
|
+
left: 14
|
|
660
|
+
}
|
|
661
|
+
}, {
|
|
662
|
+
props: {
|
|
663
|
+
loadingPosition: "start",
|
|
664
|
+
size: "small"
|
|
665
|
+
},
|
|
666
|
+
style: {
|
|
667
|
+
left: 10
|
|
668
|
+
}
|
|
669
|
+
}, {
|
|
670
|
+
props: {
|
|
671
|
+
variant: "text",
|
|
672
|
+
loadingPosition: "start"
|
|
673
|
+
},
|
|
674
|
+
style: {
|
|
675
|
+
left: 6
|
|
676
|
+
}
|
|
677
|
+
}, {
|
|
678
|
+
props: {
|
|
679
|
+
loadingPosition: "center"
|
|
680
|
+
},
|
|
681
|
+
style: {
|
|
682
|
+
left: "50%",
|
|
683
|
+
transform: "translate(-50%)",
|
|
684
|
+
color: (o.vars || o).palette.action.disabled
|
|
685
|
+
}
|
|
686
|
+
}, {
|
|
687
|
+
props: {
|
|
688
|
+
loadingPosition: "end"
|
|
689
|
+
},
|
|
690
|
+
style: {
|
|
691
|
+
right: 14
|
|
692
|
+
}
|
|
693
|
+
}, {
|
|
694
|
+
props: {
|
|
695
|
+
loadingPosition: "end",
|
|
696
|
+
size: "small"
|
|
697
|
+
},
|
|
698
|
+
style: {
|
|
699
|
+
right: 10
|
|
700
|
+
}
|
|
701
|
+
}, {
|
|
702
|
+
props: {
|
|
703
|
+
variant: "text",
|
|
704
|
+
loadingPosition: "end"
|
|
705
|
+
},
|
|
706
|
+
style: {
|
|
707
|
+
right: 6
|
|
708
|
+
}
|
|
709
|
+
}, {
|
|
710
|
+
props: {
|
|
711
|
+
loadingPosition: "start",
|
|
712
|
+
fullWidth: !0
|
|
713
|
+
},
|
|
714
|
+
style: {
|
|
715
|
+
position: "relative",
|
|
716
|
+
left: -10
|
|
717
|
+
}
|
|
718
|
+
}, {
|
|
719
|
+
props: {
|
|
720
|
+
loadingPosition: "end",
|
|
721
|
+
fullWidth: !0
|
|
722
|
+
},
|
|
723
|
+
style: {
|
|
724
|
+
position: "relative",
|
|
725
|
+
right: -10
|
|
726
|
+
}
|
|
727
|
+
}]
|
|
728
|
+
})), F = y("span", {
|
|
729
|
+
name: "MuiButton",
|
|
730
|
+
slot: "LoadingIconPlaceholder"
|
|
731
|
+
})({
|
|
732
|
+
display: "inline-block",
|
|
733
|
+
width: "1em",
|
|
734
|
+
height: "1em"
|
|
735
|
+
}), ro = /* @__PURE__ */ f.forwardRef(function(r, a) {
|
|
736
|
+
const n = f.useContext(X), i = f.useContext(oo), s = po(n, r), g = K({
|
|
737
|
+
props: s,
|
|
738
|
+
name: "MuiButton"
|
|
739
|
+
}), {
|
|
740
|
+
children: d,
|
|
741
|
+
color: b = "primary",
|
|
742
|
+
component: C = "button",
|
|
743
|
+
className: p,
|
|
744
|
+
disabled: m = !1,
|
|
745
|
+
disableElevation: w = !1,
|
|
746
|
+
disableFocusRipple: $ = !1,
|
|
747
|
+
endIcon: x,
|
|
748
|
+
focusVisibleClassName: I,
|
|
749
|
+
fullWidth: k = !1,
|
|
750
|
+
id: z,
|
|
751
|
+
loading: u = null,
|
|
752
|
+
loadingIndicator: N,
|
|
753
|
+
loadingPosition: B = "center",
|
|
754
|
+
size: ao = "medium",
|
|
755
|
+
startIcon: W,
|
|
756
|
+
type: M,
|
|
757
|
+
variant: no = "text",
|
|
758
|
+
...eo
|
|
759
|
+
} = g, D = yo(z), L = N ?? /* @__PURE__ */ c(Q, {
|
|
760
|
+
"aria-labelledby": D,
|
|
761
|
+
color: "inherit",
|
|
762
|
+
size: 16
|
|
763
|
+
}), S = {
|
|
764
|
+
...g,
|
|
765
|
+
color: b,
|
|
766
|
+
component: C,
|
|
767
|
+
disabled: m,
|
|
768
|
+
disableElevation: w,
|
|
769
|
+
disableFocusRipple: $,
|
|
770
|
+
fullWidth: k,
|
|
771
|
+
loading: u,
|
|
772
|
+
loadingIndicator: L,
|
|
773
|
+
loadingPosition: B,
|
|
774
|
+
size: ao,
|
|
775
|
+
type: M,
|
|
776
|
+
variant: no
|
|
777
|
+
}, v = zo(S), io = (W || u && B === "start") && /* @__PURE__ */ c(wo, {
|
|
778
|
+
className: v.startIcon,
|
|
779
|
+
ownerState: S,
|
|
780
|
+
children: W || /* @__PURE__ */ c(F, {
|
|
781
|
+
className: v.loadingIconPlaceholder,
|
|
782
|
+
ownerState: S
|
|
783
|
+
})
|
|
784
|
+
}), so = (x || u && B === "end") && /* @__PURE__ */ c($o, {
|
|
785
|
+
className: v.endIcon,
|
|
786
|
+
ownerState: S,
|
|
787
|
+
children: x || /* @__PURE__ */ c(F, {
|
|
788
|
+
className: v.loadingIconPlaceholder,
|
|
789
|
+
ownerState: S
|
|
790
|
+
})
|
|
791
|
+
}), lo = i || "", V = typeof u == "boolean" ? (
|
|
792
|
+
// use plain HTML span to minimize the runtime overhead
|
|
793
|
+
/* @__PURE__ */ c("span", {
|
|
794
|
+
className: v.loadingWrapper,
|
|
795
|
+
style: {
|
|
796
|
+
display: "contents"
|
|
797
|
+
},
|
|
798
|
+
children: u && /* @__PURE__ */ c(No, {
|
|
799
|
+
className: v.loadingIndicator,
|
|
800
|
+
ownerState: S,
|
|
801
|
+
children: L
|
|
802
|
+
})
|
|
803
|
+
})
|
|
804
|
+
) : null;
|
|
805
|
+
return /* @__PURE__ */ _(Bo, {
|
|
806
|
+
ownerState: S,
|
|
807
|
+
className: O(n.className, v.root, p, lo),
|
|
808
|
+
component: C,
|
|
809
|
+
disabled: m || u,
|
|
810
|
+
focusRipple: !$,
|
|
811
|
+
focusVisibleClassName: O(v.focusVisible, I),
|
|
812
|
+
ref: a,
|
|
813
|
+
type: M,
|
|
814
|
+
id: u ? D : z,
|
|
815
|
+
...eo,
|
|
816
|
+
classes: v,
|
|
817
|
+
children: [io, B !== "end" && V, d, B === "end" && V, so]
|
|
818
|
+
});
|
|
819
|
+
});
|
|
820
|
+
process.env.NODE_ENV !== "production" && (ro.propTypes = {
|
|
821
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
822
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
823
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
824
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
825
|
+
/**
|
|
826
|
+
* The content of the component.
|
|
827
|
+
*/
|
|
828
|
+
children: t.node,
|
|
829
|
+
/**
|
|
830
|
+
* Override or extend the styles applied to the component.
|
|
831
|
+
*/
|
|
832
|
+
classes: t.object,
|
|
833
|
+
/**
|
|
834
|
+
* @ignore
|
|
835
|
+
*/
|
|
836
|
+
className: t.string,
|
|
837
|
+
/**
|
|
838
|
+
* The color of the component.
|
|
839
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
840
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
841
|
+
* @default 'primary'
|
|
842
|
+
*/
|
|
843
|
+
color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
|
|
844
|
+
/**
|
|
845
|
+
* The component used for the root node.
|
|
846
|
+
* Either a string to use a HTML element or a component.
|
|
847
|
+
*/
|
|
848
|
+
component: t.elementType,
|
|
849
|
+
/**
|
|
850
|
+
* If `true`, the component is disabled.
|
|
851
|
+
* @default false
|
|
852
|
+
*/
|
|
853
|
+
disabled: t.bool,
|
|
854
|
+
/**
|
|
855
|
+
* If `true`, no elevation is used.
|
|
856
|
+
* @default false
|
|
857
|
+
*/
|
|
858
|
+
disableElevation: t.bool,
|
|
859
|
+
/**
|
|
860
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
861
|
+
* @default false
|
|
862
|
+
*/
|
|
863
|
+
disableFocusRipple: t.bool,
|
|
864
|
+
/**
|
|
865
|
+
* If `true`, the ripple effect is disabled.
|
|
866
|
+
*
|
|
867
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
868
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
869
|
+
* @default false
|
|
870
|
+
*/
|
|
871
|
+
disableRipple: t.bool,
|
|
872
|
+
/**
|
|
873
|
+
* Element placed after the children.
|
|
874
|
+
*/
|
|
875
|
+
endIcon: t.node,
|
|
876
|
+
/**
|
|
877
|
+
* @ignore
|
|
878
|
+
*/
|
|
879
|
+
focusVisibleClassName: t.string,
|
|
880
|
+
/**
|
|
881
|
+
* If `true`, the button will take up the full width of its container.
|
|
882
|
+
* @default false
|
|
883
|
+
*/
|
|
884
|
+
fullWidth: t.bool,
|
|
885
|
+
/**
|
|
886
|
+
* The URL to link to when the button is clicked.
|
|
887
|
+
* If defined, an `a` element will be used as the root node.
|
|
888
|
+
*/
|
|
889
|
+
href: t.string,
|
|
890
|
+
/**
|
|
891
|
+
* @ignore
|
|
892
|
+
*/
|
|
893
|
+
id: t.string,
|
|
894
|
+
/**
|
|
895
|
+
* If `true`, the loading indicator is visible and the button is disabled.
|
|
896
|
+
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
|
897
|
+
* @default null
|
|
898
|
+
*/
|
|
899
|
+
loading: t.bool,
|
|
900
|
+
/**
|
|
901
|
+
* Element placed before the children if the button is in loading state.
|
|
902
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
903
|
+
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
904
|
+
* @default <CircularProgress color="inherit" size={16} />
|
|
905
|
+
*/
|
|
906
|
+
loadingIndicator: t.node,
|
|
907
|
+
/**
|
|
908
|
+
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
909
|
+
* @default 'center'
|
|
910
|
+
*/
|
|
911
|
+
loadingPosition: t.oneOf(["center", "end", "start"]),
|
|
912
|
+
/**
|
|
913
|
+
* The size of the component.
|
|
914
|
+
* `small` is equivalent to the dense button styling.
|
|
915
|
+
* @default 'medium'
|
|
916
|
+
*/
|
|
917
|
+
size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
|
|
918
|
+
/**
|
|
919
|
+
* Element placed before the children.
|
|
920
|
+
*/
|
|
921
|
+
startIcon: t.node,
|
|
922
|
+
/**
|
|
923
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
924
|
+
*/
|
|
925
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
926
|
+
/**
|
|
927
|
+
* @ignore
|
|
928
|
+
*/
|
|
929
|
+
type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
|
|
930
|
+
/**
|
|
931
|
+
* The variant to use.
|
|
932
|
+
* @default 'text'
|
|
933
|
+
*/
|
|
934
|
+
variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
|
|
935
|
+
});
|
|
936
|
+
const G = {
|
|
937
|
+
blue: { backgroundColor: P.primary500, hoverColor: "#1f7eb1", textColor: "white" },
|
|
938
|
+
clear: { backgroundColor: "", hoverColor: "", textColor: "" },
|
|
939
|
+
gray: { backgroundColor: P.grey50, hoverColor: P.primary50, textColor: P.grey800 }
|
|
940
|
+
};
|
|
941
|
+
function Wo(o) {
|
|
942
|
+
const { className: r, children: a, sx: n, disabled: i, color: s = "blue", ...g } = o, d = G[s] || G.blue;
|
|
943
|
+
return /* @__PURE__ */ c(
|
|
944
|
+
ro,
|
|
945
|
+
{
|
|
946
|
+
className: r,
|
|
947
|
+
variant: "text",
|
|
948
|
+
disabled: i,
|
|
949
|
+
...g,
|
|
950
|
+
sx: {
|
|
951
|
+
px: "24px",
|
|
952
|
+
py: "12px",
|
|
953
|
+
letterSpacing: "1.25px",
|
|
954
|
+
height: "38px",
|
|
955
|
+
fontWeight: 600,
|
|
956
|
+
color: i ? P.grey100 : d.textColor,
|
|
957
|
+
backgroundColor: i ? P.grey100 : d.backgroundColor,
|
|
958
|
+
"&:hover": {
|
|
959
|
+
backgroundColor: i ? "none" : d.hoverColor
|
|
960
|
+
},
|
|
961
|
+
...n
|
|
962
|
+
},
|
|
963
|
+
children: a
|
|
964
|
+
}
|
|
965
|
+
);
|
|
966
|
+
}
|
|
967
|
+
export {
|
|
968
|
+
Wo as B,
|
|
969
|
+
Q as C,
|
|
970
|
+
yo as u
|
|
971
|
+
};
|