@cgi-learning-hub/ui 0.0.1-dev.1708964890 → 0.0.1-dev.1708990372
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/Button-Tkz5NkF_.cjs +1 -0
- package/dist/Button-X7eWZQfX.js +356 -0
- package/dist/ButtonBase-CKfcGhaU.js +892 -0
- package/dist/ButtonBase-Cg8cBMzO.cjs +75 -0
- package/dist/Input-CAb0EFzc.cjs +1 -0
- package/dist/Input-CbYjsRHK.js +322 -0
- package/dist/{InputBase-C_yPRkam.js → InputBase-B13Nzzhk.js} +215 -193
- package/dist/InputBase-CKlCw9fj.cjs +4 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -0
- package/dist/components/AnotherComponent/AnotherComponent.d.ts +2 -0
- package/dist/components/AnotherComponent/AnotherComponent.es.js +15 -0
- package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +1 -0
- package/dist/components/{Dropzone/Dropzone.stories.d.ts → AnotherComponent/AnotherComponent.stories.d.ts} +2 -1
- package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +22 -0
- package/dist/components/AnotherComponent/index.cjs.js +1 -0
- package/dist/components/AnotherComponent/index.d.ts +2 -0
- package/dist/components/AnotherComponent/index.es.js +4 -0
- package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -0
- package/dist/components/BasicButtons/BasicButtons.d.ts +2 -0
- package/dist/components/BasicButtons/BasicButtons.es.js +189 -0
- package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -0
- package/dist/components/BasicButtons/BasicButtons.stories.d.ts +5 -0
- package/dist/components/BasicButtons/BasicButtons.stories.es.js +22 -0
- package/dist/components/BasicButtons/index.cjs.js +1 -0
- package/dist/components/BasicButtons/index.d.ts +2 -0
- package/dist/components/BasicButtons/index.es.js +4 -0
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +267 -408
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +5 -5
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +7 -8
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +9 -10
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +2 -4
- package/dist/components/index.es.js +14 -18
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
- package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
- package/dist/components/inputs/TextInput/TextInput.es.js +1631 -1844
- package/dist/{createSvgIcon-B6bZPuto.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
- package/dist/{createSvgIcon-KaSN8JhZ.js → createSvgIcon-qXNZi4k1.js} +8 -8
- package/dist/extendSxProp-BRHiEwyk.js +29 -0
- package/dist/extendSxProp-CvhhU9Vb.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +12 -16
- package/dist/useForkRef-82uiK71d.cjs +1 -0
- package/dist/useForkRef-CLcOhrzI.js +44 -0
- package/dist/useTheme-BWRyHzdn.js +65 -0
- package/dist/useTheme-BpLcDNG1.cjs +1 -0
- package/dist/{useThemeProps-Dg9Uoq7q.js → useThemeProps-B6yTTpAe.js} +1024 -1018
- package/dist/useThemeProps-CDriK9TK.cjs +65 -0
- package/package.json +1 -2
- package/dist/Box-7uR7JZiM.cjs +0 -1
- package/dist/Box-CPGTKTgx.js +0 -56
- package/dist/ButtonBase-B0tkJ9zf.js +0 -831
- package/dist/ButtonBase-DCL6Xlnm.cjs +0 -75
- package/dist/CircularProgress-CZX5SfKt.cjs +0 -28
- package/dist/CircularProgress-CguDBnxV.js +0 -215
- package/dist/IconButton-CJ1Nt-jf.js +0 -182
- package/dist/IconButton-De7ZdW2q.cjs +0 -2
- package/dist/InputBase-Dvr5GnwD.cjs +0 -4
- package/dist/Tab-Bhm9hCrX.cjs +0 -1
- package/dist/Tab-C4l6V01S.js +0 -237
- package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
- package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
- package/dist/Typography-CyFLZjnE.js +0 -202
- package/dist/Typography-DwsN2Ttm.cjs +0 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
- package/dist/components/Dropzone/Dropzone.d.ts +0 -9
- package/dist/components/Dropzone/Dropzone.es.js +0 -1210
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
- package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
- package/dist/components/Dropzone/index.cjs.js +0 -1
- package/dist/components/Dropzone/index.d.ts +0 -2
- package/dist/components/Dropzone/index.es.js +0 -4
- package/dist/components/buttons/IconButton.stories.cjs.js +0 -1
- package/dist/components/buttons/IconButton.stories.d.ts +0 -4
- package/dist/components/buttons/IconButton.stories.es.js +0 -27
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +0 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +0 -4
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +0 -16
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +0 -1
- package/dist/components/inputs/TextInput/TextInput.stories.d.ts +0 -4
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +0 -17
- package/dist/components/lists/FileList/FileList.cjs.js +0 -1
- package/dist/components/lists/FileList/FileList.d.ts +0 -7
- package/dist/components/lists/FileList/FileList.es.js +0 -19
- package/dist/components/lists/FileList/FileList.stories.cjs.js +0 -1
- package/dist/components/lists/FileList/FileList.stories.d.ts +0 -4
- package/dist/components/lists/FileList/FileList.stories.es.js +0 -28
- package/dist/components/lists/FileList/FileListItem.cjs.js +0 -1
- package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
- package/dist/components/lists/FileList/FileListItem.es.js +0 -41
- package/dist/components/lists/FileList/index.cjs.js +0 -1
- package/dist/components/lists/FileList/index.d.ts +0 -4
- package/dist/components/lists/FileList/index.es.js +0 -6
- package/dist/components/lists/TabList.stories.cjs.js +0 -4
- package/dist/components/lists/TabList.stories.d.ts +0 -4
- package/dist/components/lists/TabList.stories.es.js +0 -1027
- package/dist/components/lists/index.cjs.js +0 -1
- package/dist/components/lists/index.d.ts +0 -1
- package/dist/components/lists/index.es.js +0 -6
- package/dist/createSvgIcon-BX8WQ5r-.cjs +0 -2
- package/dist/createSvgIcon-m_wsenOJ.js +0 -84
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/ownerWindow-C7EH1lr6.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-CHSN6ysS.cjs +0 -1
- package/dist/refType-Hh9tfnoF.js +0 -29
- package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useControlled-BsLcOmhe.js +0 -48
- package/dist/useControlled-jN3fqFfv.cjs +0 -3
- package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
- package/dist/useForkRef-DwN_Iz9R.js +0 -17
- package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
- package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
- package/dist/useSlotProps-MoAYME1z.js +0 -70
- package/dist/useSlotProps-R4s13HHI.cjs +0 -1
- package/dist/useTheme-BDPYLOoP.cjs +0 -1
- package/dist/useTheme-DJEDOopE.js +0 -9
- package/dist/useThemeProps-jkB5q9ie.cjs +0 -65
- package/dist/useTimeout-KN97abZR.js +0 -47
- package/dist/useTimeout-qjxkiZZn.cjs +0 -1
|
@@ -1,490 +1,349 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { B as
|
|
6
|
-
import { u as
|
|
7
|
-
import { c as
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
function
|
|
11
|
-
return
|
|
1
|
+
import { jsx as f, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import * as B from "react";
|
|
3
|
+
import T from "./DefaultButtonIcon.es.js";
|
|
4
|
+
import { b as D, g as _, s as I, f as g, a as e, u as j, _ as N, h as V, P as n, e as U, v as K } from "../../../useThemeProps-B6yTTpAe.js";
|
|
5
|
+
import { B as H, a as Y } from "../../../Button-X7eWZQfX.js";
|
|
6
|
+
import { u as Z } from "../../../useId-BW-oWmul.js";
|
|
7
|
+
import { c as W } from "../../../useForkRef-CLcOhrzI.js";
|
|
8
|
+
import { keyframes as z, css as w } from "@emotion/react";
|
|
9
|
+
import { u as q } from "../../../useTheme-BWRyHzdn.js";
|
|
10
|
+
function A(o) {
|
|
11
|
+
return D("MuiCircularProgress", o);
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
color: n,
|
|
20
|
-
disableElevation: t,
|
|
21
|
-
fullWidth: s,
|
|
22
|
-
size: r,
|
|
23
|
-
variant: e,
|
|
24
|
-
classes: d
|
|
25
|
-
} = o, g = {
|
|
26
|
-
root: ["root", e, `${e}${l(n)}`, `size${l(r)}`, `${e}Size${l(r)}`, n === "inherit" && "colorInherit", t && "disableElevation", s && "fullWidth"],
|
|
27
|
-
label: ["label"],
|
|
28
|
-
startIcon: ["startIcon", `iconSize${l(r)}`],
|
|
29
|
-
endIcon: ["endIcon", `iconSize${l(r)}`]
|
|
30
|
-
}, x = F(g, to, d);
|
|
31
|
-
return a({}, d, x);
|
|
32
|
-
}, S = (o) => a({}, o.size === "small" && {
|
|
33
|
-
"& > *:nth-of-type(1)": {
|
|
34
|
-
fontSize: 18
|
|
13
|
+
_("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
14
|
+
const J = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
15
|
+
let k = (o) => o, E, M, R, O;
|
|
16
|
+
const u = 44, Q = z(E || (E = k`
|
|
17
|
+
0% {
|
|
18
|
+
transform: rotate(0deg);
|
|
35
19
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
20
|
+
|
|
21
|
+
100% {
|
|
22
|
+
transform: rotate(360deg);
|
|
39
23
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
24
|
+
`)), X = z(M || (M = k`
|
|
25
|
+
0% {
|
|
26
|
+
stroke-dasharray: 1px, 200px;
|
|
27
|
+
stroke-dashoffset: 0;
|
|
43
28
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
overridesResolver: (o, n) => {
|
|
49
|
-
const {
|
|
50
|
-
ownerState: t
|
|
51
|
-
} = o;
|
|
52
|
-
return [n.root, n[t.variant], n[`${t.variant}${l(t.color)}`], n[`size${l(t.size)}`], n[`${t.variant}Size${l(t.size)}`], t.color === "inherit" && n.colorInherit, t.disableElevation && n.disableElevation, t.fullWidth && n.fullWidth];
|
|
29
|
+
|
|
30
|
+
50% {
|
|
31
|
+
stroke-dasharray: 100px, 200px;
|
|
32
|
+
stroke-dashoffset: -15px;
|
|
53
33
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var t, s;
|
|
59
|
-
const r = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], e = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
60
|
-
return a({}, o.typography.button, {
|
|
61
|
-
minWidth: 64,
|
|
62
|
-
padding: "6px 16px",
|
|
63
|
-
borderRadius: (o.vars || o).shape.borderRadius,
|
|
64
|
-
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
65
|
-
duration: o.transitions.duration.short
|
|
66
|
-
}),
|
|
67
|
-
"&:hover": a({
|
|
68
|
-
textDecoration: "none",
|
|
69
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
70
|
-
// Reset on touch devices, it doesn't add specificity
|
|
71
|
-
"@media (hover: none)": {
|
|
72
|
-
backgroundColor: "transparent"
|
|
73
|
-
}
|
|
74
|
-
}, n.variant === "text" && n.color !== "inherit" && {
|
|
75
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette[n.color].main, o.palette.action.hoverOpacity),
|
|
76
|
-
// Reset on touch devices, it doesn't add specificity
|
|
77
|
-
"@media (hover: none)": {
|
|
78
|
-
backgroundColor: "transparent"
|
|
79
|
-
}
|
|
80
|
-
}, n.variant === "outlined" && n.color !== "inherit" && {
|
|
81
|
-
border: `1px solid ${(o.vars || o).palette[n.color].main}`,
|
|
82
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette[n.color].main, o.palette.action.hoverOpacity),
|
|
83
|
-
// Reset on touch devices, it doesn't add specificity
|
|
84
|
-
"@media (hover: none)": {
|
|
85
|
-
backgroundColor: "transparent"
|
|
86
|
-
}
|
|
87
|
-
}, n.variant === "contained" && {
|
|
88
|
-
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : e,
|
|
89
|
-
boxShadow: (o.vars || o).shadows[4],
|
|
90
|
-
// Reset on touch devices, it doesn't add specificity
|
|
91
|
-
"@media (hover: none)": {
|
|
92
|
-
boxShadow: (o.vars || o).shadows[2],
|
|
93
|
-
backgroundColor: (o.vars || o).palette.grey[300]
|
|
94
|
-
}
|
|
95
|
-
}, n.variant === "contained" && n.color !== "inherit" && {
|
|
96
|
-
backgroundColor: (o.vars || o).palette[n.color].dark,
|
|
97
|
-
// Reset on touch devices, it doesn't add specificity
|
|
98
|
-
"@media (hover: none)": {
|
|
99
|
-
backgroundColor: (o.vars || o).palette[n.color].main
|
|
100
|
-
}
|
|
101
|
-
}),
|
|
102
|
-
"&:active": a({}, n.variant === "contained" && {
|
|
103
|
-
boxShadow: (o.vars || o).shadows[8]
|
|
104
|
-
}),
|
|
105
|
-
[`&.${R.focusVisible}`]: a({}, n.variant === "contained" && {
|
|
106
|
-
boxShadow: (o.vars || o).shadows[6]
|
|
107
|
-
}),
|
|
108
|
-
[`&.${R.disabled}`]: a({
|
|
109
|
-
color: (o.vars || o).palette.action.disabled
|
|
110
|
-
}, n.variant === "outlined" && {
|
|
111
|
-
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
112
|
-
}, n.variant === "contained" && {
|
|
113
|
-
color: (o.vars || o).palette.action.disabled,
|
|
114
|
-
boxShadow: (o.vars || o).shadows[0],
|
|
115
|
-
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
116
|
-
})
|
|
117
|
-
}, n.variant === "text" && {
|
|
118
|
-
padding: "6px 8px"
|
|
119
|
-
}, n.variant === "text" && n.color !== "inherit" && {
|
|
120
|
-
color: (o.vars || o).palette[n.color].main
|
|
121
|
-
}, n.variant === "outlined" && {
|
|
122
|
-
padding: "5px 15px",
|
|
123
|
-
border: "1px solid currentColor"
|
|
124
|
-
}, n.variant === "outlined" && n.color !== "inherit" && {
|
|
125
|
-
color: (o.vars || o).palette[n.color].main,
|
|
126
|
-
border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${E(o.palette[n.color].main, 0.5)}`
|
|
127
|
-
}, n.variant === "contained" && {
|
|
128
|
-
color: o.vars ? (
|
|
129
|
-
// this is safe because grey does not change between default light/dark mode
|
|
130
|
-
o.vars.palette.text.primary
|
|
131
|
-
) : (t = (s = o.palette).getContrastText) == null ? void 0 : t.call(s, o.palette.grey[300]),
|
|
132
|
-
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : r,
|
|
133
|
-
boxShadow: (o.vars || o).shadows[2]
|
|
134
|
-
}, n.variant === "contained" && n.color !== "inherit" && {
|
|
135
|
-
color: (o.vars || o).palette[n.color].contrastText,
|
|
136
|
-
backgroundColor: (o.vars || o).palette[n.color].main
|
|
137
|
-
}, n.color === "inherit" && {
|
|
138
|
-
color: "inherit",
|
|
139
|
-
borderColor: "currentColor"
|
|
140
|
-
}, n.size === "small" && n.variant === "text" && {
|
|
141
|
-
padding: "4px 5px",
|
|
142
|
-
fontSize: o.typography.pxToRem(13)
|
|
143
|
-
}, n.size === "large" && n.variant === "text" && {
|
|
144
|
-
padding: "8px 11px",
|
|
145
|
-
fontSize: o.typography.pxToRem(15)
|
|
146
|
-
}, n.size === "small" && n.variant === "outlined" && {
|
|
147
|
-
padding: "3px 9px",
|
|
148
|
-
fontSize: o.typography.pxToRem(13)
|
|
149
|
-
}, n.size === "large" && n.variant === "outlined" && {
|
|
150
|
-
padding: "7px 21px",
|
|
151
|
-
fontSize: o.typography.pxToRem(15)
|
|
152
|
-
}, n.size === "small" && n.variant === "contained" && {
|
|
153
|
-
padding: "4px 10px",
|
|
154
|
-
fontSize: o.typography.pxToRem(13)
|
|
155
|
-
}, n.size === "large" && n.variant === "contained" && {
|
|
156
|
-
padding: "8px 22px",
|
|
157
|
-
fontSize: o.typography.pxToRem(15)
|
|
158
|
-
}, n.fullWidth && {
|
|
159
|
-
width: "100%"
|
|
160
|
-
});
|
|
161
|
-
}, ({
|
|
162
|
-
ownerState: o
|
|
163
|
-
}) => o.disableElevation && {
|
|
164
|
-
boxShadow: "none",
|
|
165
|
-
"&:hover": {
|
|
166
|
-
boxShadow: "none"
|
|
167
|
-
},
|
|
168
|
-
[`&.${R.focusVisible}`]: {
|
|
169
|
-
boxShadow: "none"
|
|
170
|
-
},
|
|
171
|
-
"&:active": {
|
|
172
|
-
boxShadow: "none"
|
|
173
|
-
},
|
|
174
|
-
[`&.${R.disabled}`]: {
|
|
175
|
-
boxShadow: "none"
|
|
34
|
+
|
|
35
|
+
100% {
|
|
36
|
+
stroke-dasharray: 100px, 200px;
|
|
37
|
+
stroke-dashoffset: -125px;
|
|
176
38
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
39
|
+
`)), oo = (o) => {
|
|
40
|
+
const {
|
|
41
|
+
classes: t,
|
|
42
|
+
variant: r,
|
|
43
|
+
color: i,
|
|
44
|
+
disableShrink: a
|
|
45
|
+
} = o, s = {
|
|
46
|
+
root: ["root", r, `color${g(i)}`],
|
|
47
|
+
svg: ["svg"],
|
|
48
|
+
circle: ["circle", `circle${g(r)}`, a && "circleDisableShrink"]
|
|
49
|
+
};
|
|
50
|
+
return U(s, A, t);
|
|
51
|
+
}, to = I("span", {
|
|
52
|
+
name: "MuiCircularProgress",
|
|
53
|
+
slot: "Root",
|
|
54
|
+
overridesResolver: (o, t) => {
|
|
181
55
|
const {
|
|
182
|
-
ownerState:
|
|
56
|
+
ownerState: r
|
|
183
57
|
} = o;
|
|
184
|
-
return [
|
|
58
|
+
return [t.root, t[r.variant], t[`color${g(r.color)}`]];
|
|
185
59
|
}
|
|
186
60
|
})(({
|
|
61
|
+
ownerState: o,
|
|
62
|
+
theme: t
|
|
63
|
+
}) => e({
|
|
64
|
+
display: "inline-block"
|
|
65
|
+
}, o.variant === "determinate" && {
|
|
66
|
+
transition: t.transitions.create("transform")
|
|
67
|
+
}, o.color !== "inherit" && {
|
|
68
|
+
color: (t.vars || t).palette[o.color].main
|
|
69
|
+
}), ({
|
|
187
70
|
ownerState: o
|
|
188
|
-
}) =>
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
71
|
+
}) => o.variant === "indeterminate" && w(R || (R = k`
|
|
72
|
+
animation: ${0} 1.4s linear infinite;
|
|
73
|
+
`), Q)), no = I("svg", {
|
|
74
|
+
name: "MuiCircularProgress",
|
|
75
|
+
slot: "Svg",
|
|
76
|
+
overridesResolver: (o, t) => t.svg
|
|
77
|
+
})({
|
|
78
|
+
display: "block"
|
|
79
|
+
// Keeps the progress centered
|
|
80
|
+
}), ro = I("circle", {
|
|
81
|
+
name: "MuiCircularProgress",
|
|
82
|
+
slot: "Circle",
|
|
83
|
+
overridesResolver: (o, t) => {
|
|
198
84
|
const {
|
|
199
|
-
ownerState:
|
|
85
|
+
ownerState: r
|
|
200
86
|
} = o;
|
|
201
|
-
return [
|
|
87
|
+
return [t.circle, t[`circle${g(r.variant)}`], r.disableShrink && t.circleDisableShrink];
|
|
202
88
|
}
|
|
203
89
|
})(({
|
|
90
|
+
ownerState: o,
|
|
91
|
+
theme: t
|
|
92
|
+
}) => e({
|
|
93
|
+
stroke: "currentColor"
|
|
94
|
+
}, o.variant === "determinate" && {
|
|
95
|
+
transition: t.transitions.create("stroke-dashoffset")
|
|
96
|
+
}, o.variant === "indeterminate" && {
|
|
97
|
+
// Some default value that looks fine waiting for the animation to kicks in.
|
|
98
|
+
strokeDasharray: "80px, 200px",
|
|
99
|
+
strokeDashoffset: 0
|
|
100
|
+
// Add the unit to fix a Edge 16 and below bug.
|
|
101
|
+
}), ({
|
|
204
102
|
ownerState: o
|
|
205
|
-
}) =>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}, S(o))), H = /* @__PURE__ */ p.forwardRef(function(n, t) {
|
|
212
|
-
const s = p.useContext(U), r = p.useContext(ro), e = V(s, n), d = _({
|
|
213
|
-
props: e,
|
|
214
|
-
name: "MuiButton"
|
|
103
|
+
}) => o.variant === "indeterminate" && !o.disableShrink && w(O || (O = k`
|
|
104
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
105
|
+
`), X)), F = /* @__PURE__ */ B.forwardRef(function(t, r) {
|
|
106
|
+
const i = j({
|
|
107
|
+
props: t,
|
|
108
|
+
name: "MuiCircularProgress"
|
|
215
109
|
}), {
|
|
216
|
-
|
|
217
|
-
color:
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
ownerState:
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
110
|
+
className: a,
|
|
111
|
+
color: s = "primary",
|
|
112
|
+
disableShrink: C = !1,
|
|
113
|
+
size: h = 40,
|
|
114
|
+
style: $,
|
|
115
|
+
thickness: l = 3.6,
|
|
116
|
+
value: p = 0,
|
|
117
|
+
variant: x = "indeterminate"
|
|
118
|
+
} = i, L = N(i, J), m = e({}, i, {
|
|
119
|
+
color: s,
|
|
120
|
+
disableShrink: C,
|
|
121
|
+
size: h,
|
|
122
|
+
thickness: l,
|
|
123
|
+
value: p,
|
|
124
|
+
variant: x
|
|
125
|
+
}), v = oo(m), b = {}, c = {}, P = {};
|
|
126
|
+
if (x === "determinate") {
|
|
127
|
+
const y = 2 * Math.PI * ((u - l) / 2);
|
|
128
|
+
b.strokeDasharray = y.toFixed(3), P["aria-valuenow"] = Math.round(p), b.strokeDashoffset = `${((100 - p) / 100 * y).toFixed(3)}px`, c.transform = "rotate(-90deg)";
|
|
129
|
+
}
|
|
130
|
+
return /* @__PURE__ */ f(to, e({
|
|
131
|
+
className: V(v.root, a),
|
|
132
|
+
style: e({
|
|
133
|
+
width: h,
|
|
134
|
+
height: h
|
|
135
|
+
}, c, $),
|
|
136
|
+
ownerState: m,
|
|
137
|
+
ref: r,
|
|
138
|
+
role: "progressbar"
|
|
139
|
+
}, P, L, {
|
|
140
|
+
children: /* @__PURE__ */ f(no, {
|
|
141
|
+
className: v.svg,
|
|
142
|
+
ownerState: m,
|
|
143
|
+
viewBox: `${u / 2} ${u / 2} ${u} ${u}`,
|
|
144
|
+
children: /* @__PURE__ */ f(ro, {
|
|
145
|
+
className: v.circle,
|
|
146
|
+
style: b,
|
|
147
|
+
ownerState: m,
|
|
148
|
+
cx: u,
|
|
149
|
+
cy: u,
|
|
150
|
+
r: (u - l) / 2,
|
|
151
|
+
fill: "none",
|
|
152
|
+
strokeWidth: l
|
|
153
|
+
})
|
|
154
|
+
})
|
|
261
155
|
}));
|
|
262
156
|
});
|
|
263
|
-
process.env.NODE_ENV !== "production" && (
|
|
157
|
+
process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
264
158
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
265
159
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
266
160
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
267
161
|
// └─────────────────────────────────────────────────────────────────────┘
|
|
268
|
-
/**
|
|
269
|
-
* The content of the component.
|
|
270
|
-
*/
|
|
271
|
-
children: i.node,
|
|
272
162
|
/**
|
|
273
163
|
* Override or extend the styles applied to the component.
|
|
274
164
|
*/
|
|
275
|
-
classes:
|
|
165
|
+
classes: n.object,
|
|
276
166
|
/**
|
|
277
167
|
* @ignore
|
|
278
168
|
*/
|
|
279
|
-
className:
|
|
169
|
+
className: n.string,
|
|
280
170
|
/**
|
|
281
171
|
* The color of the component.
|
|
282
172
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
283
173
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
284
174
|
* @default 'primary'
|
|
285
175
|
*/
|
|
286
|
-
color:
|
|
176
|
+
color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), n.string]),
|
|
287
177
|
/**
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*/
|
|
291
|
-
component: i.elementType,
|
|
292
|
-
/**
|
|
293
|
-
* If `true`, the component is disabled.
|
|
294
|
-
* @default false
|
|
295
|
-
*/
|
|
296
|
-
disabled: i.bool,
|
|
297
|
-
/**
|
|
298
|
-
* If `true`, no elevation is used.
|
|
299
|
-
* @default false
|
|
300
|
-
*/
|
|
301
|
-
disableElevation: i.bool,
|
|
302
|
-
/**
|
|
303
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
304
|
-
* @default false
|
|
305
|
-
*/
|
|
306
|
-
disableFocusRipple: i.bool,
|
|
307
|
-
/**
|
|
308
|
-
* If `true`, the ripple effect is disabled.
|
|
309
|
-
*
|
|
310
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
311
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
178
|
+
* If `true`, the shrink animation is disabled.
|
|
179
|
+
* This only works if variant is `indeterminate`.
|
|
312
180
|
* @default false
|
|
313
181
|
*/
|
|
314
|
-
|
|
182
|
+
disableShrink: W(n.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),
|
|
315
183
|
/**
|
|
316
|
-
*
|
|
184
|
+
* The size of the component.
|
|
185
|
+
* If using a number, the pixel unit is assumed.
|
|
186
|
+
* If using a string, you need to provide the CSS unit, e.g. '3rem'.
|
|
187
|
+
* @default 40
|
|
317
188
|
*/
|
|
318
|
-
|
|
189
|
+
size: n.oneOfType([n.number, n.string]),
|
|
319
190
|
/**
|
|
320
191
|
* @ignore
|
|
321
192
|
*/
|
|
322
|
-
|
|
193
|
+
style: n.object,
|
|
323
194
|
/**
|
|
324
|
-
*
|
|
325
|
-
* @default false
|
|
326
|
-
*/
|
|
327
|
-
fullWidth: i.bool,
|
|
328
|
-
/**
|
|
329
|
-
* The URL to link to when the button is clicked.
|
|
330
|
-
* If defined, an `a` element will be used as the root node.
|
|
331
|
-
*/
|
|
332
|
-
href: i.string,
|
|
333
|
-
/**
|
|
334
|
-
* The size of the component.
|
|
335
|
-
* `small` is equivalent to the dense button styling.
|
|
336
|
-
* @default 'medium'
|
|
337
|
-
*/
|
|
338
|
-
size: i.oneOfType([i.oneOf(["small", "medium", "large"]), i.string]),
|
|
339
|
-
/**
|
|
340
|
-
* Element placed before the children.
|
|
195
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
341
196
|
*/
|
|
342
|
-
|
|
197
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
343
198
|
/**
|
|
344
|
-
* The
|
|
199
|
+
* The thickness of the circle.
|
|
200
|
+
* @default 3.6
|
|
345
201
|
*/
|
|
346
|
-
|
|
202
|
+
thickness: n.number,
|
|
347
203
|
/**
|
|
348
|
-
*
|
|
204
|
+
* The value of the progress indicator for the determinate variant.
|
|
205
|
+
* Value between 0 and 100.
|
|
206
|
+
* @default 0
|
|
349
207
|
*/
|
|
350
|
-
|
|
208
|
+
value: n.number,
|
|
351
209
|
/**
|
|
352
210
|
* The variant to use.
|
|
353
|
-
*
|
|
211
|
+
* Use indeterminate when there is no progress value.
|
|
212
|
+
* @default 'indeterminate'
|
|
354
213
|
*/
|
|
355
|
-
variant:
|
|
214
|
+
variant: n.oneOf(["determinate", "indeterminate"])
|
|
356
215
|
});
|
|
357
|
-
const
|
|
358
|
-
function
|
|
359
|
-
return
|
|
216
|
+
const io = F;
|
|
217
|
+
function ao(o) {
|
|
218
|
+
return D("MuiLoadingButton", o);
|
|
360
219
|
}
|
|
361
|
-
const
|
|
220
|
+
const eo = _("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), d = eo, so = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"], lo = (o) => {
|
|
362
221
|
const {
|
|
363
|
-
loading:
|
|
364
|
-
loadingPosition:
|
|
365
|
-
classes:
|
|
366
|
-
} = o,
|
|
367
|
-
root: ["root",
|
|
368
|
-
startIcon: [
|
|
369
|
-
endIcon: [
|
|
370
|
-
loadingIndicator: ["loadingIndicator",
|
|
371
|
-
},
|
|
372
|
-
return
|
|
373
|
-
},
|
|
374
|
-
shouldForwardProp: (o) =>
|
|
222
|
+
loading: t,
|
|
223
|
+
loadingPosition: r,
|
|
224
|
+
classes: i
|
|
225
|
+
} = o, a = {
|
|
226
|
+
root: ["root", t && "loading"],
|
|
227
|
+
startIcon: [t && `startIconLoading${g(r)}`],
|
|
228
|
+
endIcon: [t && `endIconLoading${g(r)}`],
|
|
229
|
+
loadingIndicator: ["loadingIndicator", t && `loadingIndicator${g(r)}`]
|
|
230
|
+
}, s = U(a, ao, i);
|
|
231
|
+
return e({}, i, s);
|
|
232
|
+
}, co = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", uo = I(H, {
|
|
233
|
+
shouldForwardProp: (o) => co(o) || o === "classes",
|
|
375
234
|
name: "MuiLoadingButton",
|
|
376
235
|
slot: "Root",
|
|
377
|
-
overridesResolver: (o,
|
|
378
|
-
[`& .${
|
|
379
|
-
},
|
|
380
|
-
[`& .${
|
|
236
|
+
overridesResolver: (o, t) => [t.root, t.startIconLoadingStart && {
|
|
237
|
+
[`& .${d.startIconLoadingStart}`]: t.startIconLoadingStart
|
|
238
|
+
}, t.endIconLoadingEnd && {
|
|
239
|
+
[`& .${d.endIconLoadingEnd}`]: t.endIconLoadingEnd
|
|
381
240
|
}]
|
|
382
241
|
})(({
|
|
383
242
|
ownerState: o,
|
|
384
|
-
theme:
|
|
385
|
-
}) =>
|
|
386
|
-
[`& .${
|
|
387
|
-
transition:
|
|
388
|
-
duration:
|
|
243
|
+
theme: t
|
|
244
|
+
}) => e({
|
|
245
|
+
[`& .${d.startIconLoadingStart}, & .${d.endIconLoadingEnd}`]: {
|
|
246
|
+
transition: t.transitions.create(["opacity"], {
|
|
247
|
+
duration: t.transitions.duration.short
|
|
389
248
|
}),
|
|
390
249
|
opacity: 0
|
|
391
250
|
}
|
|
392
251
|
}, o.loadingPosition === "center" && {
|
|
393
|
-
transition:
|
|
394
|
-
duration:
|
|
252
|
+
transition: t.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
253
|
+
duration: t.transitions.duration.short
|
|
395
254
|
}),
|
|
396
|
-
[`&.${
|
|
255
|
+
[`&.${d.loading}`]: {
|
|
397
256
|
color: "transparent"
|
|
398
257
|
}
|
|
399
258
|
}, o.loadingPosition === "start" && o.fullWidth && {
|
|
400
|
-
[`& .${
|
|
401
|
-
transition:
|
|
402
|
-
duration:
|
|
259
|
+
[`& .${d.startIconLoadingStart}, & .${d.endIconLoadingEnd}`]: {
|
|
260
|
+
transition: t.transitions.create(["opacity"], {
|
|
261
|
+
duration: t.transitions.duration.short
|
|
403
262
|
}),
|
|
404
263
|
opacity: 0,
|
|
405
264
|
marginRight: -8
|
|
406
265
|
}
|
|
407
266
|
}, o.loadingPosition === "end" && o.fullWidth && {
|
|
408
|
-
[`& .${
|
|
409
|
-
transition:
|
|
410
|
-
duration:
|
|
267
|
+
[`& .${d.startIconLoadingStart}, & .${d.endIconLoadingEnd}`]: {
|
|
268
|
+
transition: t.transitions.create(["opacity"], {
|
|
269
|
+
duration: t.transitions.duration.short
|
|
411
270
|
}),
|
|
412
271
|
opacity: 0,
|
|
413
272
|
marginLeft: -8
|
|
414
273
|
}
|
|
415
|
-
})),
|
|
274
|
+
})), go = I("span", {
|
|
416
275
|
name: "MuiLoadingButton",
|
|
417
276
|
slot: "LoadingIndicator",
|
|
418
|
-
overridesResolver: (o,
|
|
277
|
+
overridesResolver: (o, t) => {
|
|
419
278
|
const {
|
|
420
|
-
ownerState:
|
|
279
|
+
ownerState: r
|
|
421
280
|
} = o;
|
|
422
|
-
return [
|
|
281
|
+
return [t.loadingIndicator, t[`loadingIndicator${g(r.loadingPosition)}`]];
|
|
423
282
|
}
|
|
424
283
|
})(({
|
|
425
284
|
theme: o,
|
|
426
|
-
ownerState:
|
|
427
|
-
}) =>
|
|
285
|
+
ownerState: t
|
|
286
|
+
}) => e({
|
|
428
287
|
position: "absolute",
|
|
429
288
|
visibility: "visible",
|
|
430
289
|
display: "flex"
|
|
431
|
-
},
|
|
432
|
-
left:
|
|
433
|
-
},
|
|
290
|
+
}, t.loadingPosition === "start" && (t.variant === "outlined" || t.variant === "contained") && {
|
|
291
|
+
left: t.size === "small" ? 10 : 14
|
|
292
|
+
}, t.loadingPosition === "start" && t.variant === "text" && {
|
|
434
293
|
left: 6
|
|
435
|
-
},
|
|
294
|
+
}, t.loadingPosition === "center" && {
|
|
436
295
|
left: "50%",
|
|
437
296
|
transform: "translate(-50%)",
|
|
438
297
|
color: (o.vars || o).palette.action.disabled
|
|
439
|
-
},
|
|
440
|
-
right:
|
|
441
|
-
},
|
|
298
|
+
}, t.loadingPosition === "end" && (t.variant === "outlined" || t.variant === "contained") && {
|
|
299
|
+
right: t.size === "small" ? 10 : 14
|
|
300
|
+
}, t.loadingPosition === "end" && t.variant === "text" && {
|
|
442
301
|
right: 6
|
|
443
|
-
},
|
|
302
|
+
}, t.loadingPosition === "start" && t.fullWidth && {
|
|
444
303
|
position: "relative",
|
|
445
304
|
left: -10
|
|
446
|
-
},
|
|
305
|
+
}, t.loadingPosition === "end" && t.fullWidth && {
|
|
447
306
|
position: "relative",
|
|
448
307
|
right: -10
|
|
449
|
-
})),
|
|
450
|
-
const
|
|
451
|
-
props:
|
|
308
|
+
})), G = /* @__PURE__ */ B.forwardRef(function(t, r) {
|
|
309
|
+
const i = B.useContext(Y), a = K(i, t), s = j({
|
|
310
|
+
props: a,
|
|
452
311
|
name: "MuiLoadingButton"
|
|
453
312
|
}), {
|
|
454
|
-
children:
|
|
455
|
-
disabled:
|
|
456
|
-
id:
|
|
457
|
-
loading:
|
|
458
|
-
loadingIndicator:
|
|
459
|
-
loadingPosition:
|
|
460
|
-
variant:
|
|
461
|
-
} =
|
|
462
|
-
"aria-labelledby":
|
|
313
|
+
children: C,
|
|
314
|
+
disabled: h = !1,
|
|
315
|
+
id: $,
|
|
316
|
+
loading: l = !1,
|
|
317
|
+
loadingIndicator: p,
|
|
318
|
+
loadingPosition: x = "center",
|
|
319
|
+
variant: L = "text"
|
|
320
|
+
} = s, m = N(s, so), v = Z($), b = p ?? /* @__PURE__ */ f(io, {
|
|
321
|
+
"aria-labelledby": v,
|
|
463
322
|
color: "inherit",
|
|
464
323
|
size: 16
|
|
465
|
-
}),
|
|
466
|
-
disabled:
|
|
467
|
-
loading:
|
|
468
|
-
loadingIndicator:
|
|
469
|
-
loadingPosition:
|
|
470
|
-
variant:
|
|
471
|
-
}), P =
|
|
324
|
+
}), c = e({}, s, {
|
|
325
|
+
disabled: h,
|
|
326
|
+
loading: l,
|
|
327
|
+
loadingIndicator: b,
|
|
328
|
+
loadingPosition: x,
|
|
329
|
+
variant: L
|
|
330
|
+
}), P = lo(c), y = l ? /* @__PURE__ */ f(go, {
|
|
472
331
|
className: P.loadingIndicator,
|
|
473
|
-
ownerState:
|
|
474
|
-
children:
|
|
332
|
+
ownerState: c,
|
|
333
|
+
children: b
|
|
475
334
|
}) : null;
|
|
476
|
-
return /* @__PURE__ */
|
|
477
|
-
disabled:
|
|
478
|
-
id:
|
|
479
|
-
ref:
|
|
480
|
-
},
|
|
481
|
-
variant:
|
|
335
|
+
return /* @__PURE__ */ S(uo, e({
|
|
336
|
+
disabled: h || l,
|
|
337
|
+
id: v,
|
|
338
|
+
ref: r
|
|
339
|
+
}, m, {
|
|
340
|
+
variant: L,
|
|
482
341
|
classes: P,
|
|
483
|
-
ownerState:
|
|
484
|
-
children: [
|
|
342
|
+
ownerState: c,
|
|
343
|
+
children: [c.loadingPosition === "end" ? C : y, c.loadingPosition === "end" ? y : C]
|
|
485
344
|
}));
|
|
486
345
|
});
|
|
487
|
-
process.env.NODE_ENV !== "production" && (
|
|
346
|
+
process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
488
347
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
489
348
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
490
349
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -492,50 +351,50 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
|
492
351
|
/**
|
|
493
352
|
* The content of the component.
|
|
494
353
|
*/
|
|
495
|
-
children:
|
|
354
|
+
children: n.node,
|
|
496
355
|
/**
|
|
497
356
|
* Override or extend the styles applied to the component.
|
|
498
357
|
*/
|
|
499
|
-
classes:
|
|
358
|
+
classes: n.object,
|
|
500
359
|
/**
|
|
501
360
|
* If `true`, the component is disabled.
|
|
502
361
|
* @default false
|
|
503
362
|
*/
|
|
504
|
-
disabled:
|
|
363
|
+
disabled: n.bool,
|
|
505
364
|
/**
|
|
506
365
|
* @ignore
|
|
507
366
|
*/
|
|
508
|
-
id:
|
|
367
|
+
id: n.string,
|
|
509
368
|
/**
|
|
510
369
|
* If `true`, the loading indicator is shown and the button becomes disabled.
|
|
511
370
|
* @default false
|
|
512
371
|
*/
|
|
513
|
-
loading:
|
|
372
|
+
loading: n.bool,
|
|
514
373
|
/**
|
|
515
374
|
* Element placed before the children if the button is in loading state.
|
|
516
375
|
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
517
376
|
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
518
377
|
* @default <CircularProgress color="inherit" size={16} />
|
|
519
378
|
*/
|
|
520
|
-
loadingIndicator:
|
|
379
|
+
loadingIndicator: n.node,
|
|
521
380
|
/**
|
|
522
381
|
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
523
382
|
* @default 'center'
|
|
524
383
|
*/
|
|
525
|
-
loadingPosition:
|
|
384
|
+
loadingPosition: W(n.oneOf(["start", "end", "center"]), (o) => o.loadingPosition === "start" && !o.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : o.loadingPosition === "end" && !o.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
|
|
526
385
|
/**
|
|
527
386
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
528
387
|
*/
|
|
529
|
-
sx:
|
|
388
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
530
389
|
/**
|
|
531
390
|
* The variant to use.
|
|
532
391
|
* @default 'text'
|
|
533
392
|
*/
|
|
534
|
-
variant:
|
|
393
|
+
variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
|
|
535
394
|
});
|
|
536
|
-
const
|
|
395
|
+
const fo = G, ho = I(fo, {
|
|
537
396
|
shouldForwardProp: (o) => o !== "contentColor" && o !== "hoverColor"
|
|
538
|
-
})(({ contentColor: o, hoverColor:
|
|
397
|
+
})(({ contentColor: o, hoverColor: t, theme: r }) => ({
|
|
539
398
|
justifyContent: "center",
|
|
540
399
|
alignItems: "center",
|
|
541
400
|
columnGap: 8,
|
|
@@ -548,32 +407,32 @@ const Co = A, ho = f(Co, {
|
|
|
548
407
|
borderRadius: 5,
|
|
549
408
|
borderWidth: 2,
|
|
550
409
|
"&:hover": {
|
|
551
|
-
color:
|
|
552
|
-
backgroundColor:
|
|
553
|
-
borderColor:
|
|
410
|
+
color: r.palette.common.white,
|
|
411
|
+
backgroundColor: t,
|
|
412
|
+
borderColor: t,
|
|
554
413
|
borderWidth: 2
|
|
555
414
|
}
|
|
556
|
-
})),
|
|
415
|
+
})), xo = ({
|
|
557
416
|
icon: o,
|
|
558
|
-
text:
|
|
559
|
-
...
|
|
417
|
+
text: t,
|
|
418
|
+
...r
|
|
560
419
|
}) => {
|
|
561
|
-
const
|
|
562
|
-
return /* @__PURE__ */
|
|
420
|
+
const i = q(), a = r.contentColor ?? i.palette.primary.main;
|
|
421
|
+
return /* @__PURE__ */ S(
|
|
563
422
|
ho,
|
|
564
423
|
{
|
|
565
|
-
...
|
|
424
|
+
...r,
|
|
566
425
|
variant: "outlined",
|
|
567
|
-
contentColor:
|
|
568
|
-
hoverColor:
|
|
426
|
+
contentColor: a,
|
|
427
|
+
hoverColor: r.hoverColor ?? a,
|
|
569
428
|
children: [
|
|
570
|
-
(o == null ? void 0 : o.position) === "left" ? /* @__PURE__ */
|
|
571
|
-
|
|
572
|
-
(o == null ? void 0 : o.position) === "right" ? /* @__PURE__ */
|
|
429
|
+
(o == null ? void 0 : o.position) === "left" ? /* @__PURE__ */ f(T, { ...o }) : null,
|
|
430
|
+
t,
|
|
431
|
+
(o == null ? void 0 : o.position) === "right" ? /* @__PURE__ */ f(T, { ...o }) : null
|
|
573
432
|
]
|
|
574
433
|
}
|
|
575
434
|
);
|
|
576
435
|
};
|
|
577
436
|
export {
|
|
578
|
-
|
|
437
|
+
xo as default
|
|
579
438
|
};
|