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