@cgi-learning-hub/ui 0.0.1-dev.1709569189 → 0.0.1-dev.1709646249
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-erN4AuKs.js → Box-C0qXdJzV.js} +8 -8
- package/dist/Box-DjRIKMD0.cjs +1 -0
- package/dist/ButtonBase-BvllyU4w.cjs +75 -0
- package/dist/ButtonBase-C14ZYs6z.js +833 -0
- package/dist/CircularProgress-Bf46-VRs.js +217 -0
- package/dist/CircularProgress-DjSMBYnK.cjs +28 -0
- package/dist/{DefaultButton-DbpZOb47.js → DefaultButton-B-2UppUm.js} +146 -355
- package/dist/DefaultButton-DPZOltN5.cjs +1 -0
- package/dist/{IconButton-DE5JOshS.js → IconButton-1URziYlU.js} +8 -8
- package/dist/IconButton-X6l-U-im.cjs +2 -0
- package/dist/InputBase-BrkAyp4z.cjs +4 -0
- package/dist/{InputBase-C8AzQJJ9.js → InputBase-D_wYPpmB.js} +173 -160
- package/dist/{LocalizationProvider-Cov62Xe0.js → LocalizationProvider-BD64DNxF.js} +3 -4
- package/dist/LocalizationProvider-DqwEOZOd.cjs +5 -0
- package/dist/SearchInput-CMLDZJ8k.cjs +1 -0
- package/dist/SearchInput-D2HnePqk.js +177 -0
- package/dist/Tabs-B9BPJaDx.js +1090 -0
- package/dist/Tabs-Dx8YJT4c.cjs +4 -0
- package/dist/TextInput-BO1q4hT2.cjs +12 -0
- package/dist/{TextInput-DmMk4i-V.js → TextInput-DiA3Q5CJ.js} +1353 -1594
- package/dist/TimePicker-CBI_tdzH.js +19695 -0
- package/dist/TimePicker-CnW0kylk.cjs +69 -0
- package/dist/Typography-CRt6WSxo.js +204 -0
- package/dist/Typography-DsPQABF2.cjs +1 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +11 -12
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +1 -1
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +6 -6
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +9 -10
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +91 -90
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +6 -174
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +2 -3
- package/dist/components/inputs/TextInput/TextInput.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +4 -4
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +2 -2
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +39 -7
- package/dist/components/lists/FileList/index.cjs.js +1 -1
- package/dist/components/lists/FileList/index.es.js +4 -4
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +16 -18
- package/dist/components/lists/index.cjs.js +1 -1
- package/dist/components/lists/index.es.js +4 -4
- package/dist/createSvgIcon-BOQCM03y.cjs +2 -0
- package/dist/createSvgIcon-C2VxBqzG.cjs +1 -0
- package/dist/{createSvgIcon-DeRU4e-L.js → createSvgIcon-Dspfpz-l.js} +18 -20
- package/dist/createSvgIcon-xJp3_zwo.js +84 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +94 -93
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/refType-5EEBZL5_.cjs +1 -0
- package/dist/{refType-CoCfCK--.js → refType-BBFUe6fu.js} +1 -1
- package/dist/styled-D8lXwcQy.js +423 -0
- package/dist/styled-DFoJwRxe.cjs +24 -0
- package/dist/useSlotProps-BoMYRJkF.js +72 -0
- package/dist/useSlotProps-EKKRQjEn.cjs +1 -0
- package/dist/useTheme-BkW5nNsn.cjs +1 -0
- package/dist/useTheme-Bo1inEHN.js +9 -0
- package/dist/useThemeProps-BRWSvuZw.cjs +42 -0
- package/dist/useThemeProps-CZzcR_pm.js +2288 -0
- package/package.json +5 -2
- package/dist/Box-CjHm9A9L.cjs +0 -1
- package/dist/ButtonBase-BybMkBUd.cjs +0 -75
- package/dist/ButtonBase-CGcs8Gbj.cjs +0 -75
- package/dist/ButtonBase-V1pwsMMs.js +0 -649
- package/dist/ButtonBase-aujiNoUb.js +0 -649
- package/dist/DefaultButton-Cg4tPCgf.cjs +0 -28
- package/dist/FileListItem-ChKTjDnV.js +0 -254
- package/dist/FileListItem-CjFIZgYg.cjs +0 -28
- package/dist/IconButton-CHXclgOn.cjs +0 -2
- package/dist/InputBase-D6eXzDaz.cjs +0 -4
- package/dist/LocalizationProvider-42pD7VmS.cjs +0 -5
- package/dist/Tabs-DiWeNGD4.js +0 -1167
- package/dist/Tabs-DoxP7EMA.cjs +0 -4
- package/dist/TextInput-BbSyyuvO.cjs +0 -12
- package/dist/TimePicker-B5MjZCK0.cjs +0 -89
- package/dist/TimePicker-BmxG3a2D.js +0 -28354
- package/dist/TransitionGroup-COuDopJ-.js +0 -188
- package/dist/TransitionGroup-X90dkobW.cjs +0 -1
- package/dist/Typography-B90UzlQW.js +0 -179
- package/dist/Typography-KFjBz5Hm.cjs +0 -1
- package/dist/clamp-0LjYbpE_.cjs +0 -23
- package/dist/clamp-BGJvJ0FN.js +0 -1641
- package/dist/createSvgIcon-BSYat4nx.js +0 -74
- package/dist/createSvgIcon-BqRWmIPG.cjs +0 -1
- package/dist/createSvgIcon-doNQ5emq.cjs +0 -2
- package/dist/refType-Bt58K9Sk.cjs +0 -1
- package/dist/styled-BU8dAebc.js +0 -1751
- package/dist/styled-DGjsLYEN.cjs +0 -45
- package/dist/styled-DP6LeBLQ.js +0 -261
- package/dist/styled-Dkd1VGM-.cjs +0 -1
- package/dist/useTheme-C132tQV-.js +0 -10
- package/dist/useTheme-CliHZTkE.cjs +0 -1
- package/dist/useThemeProps-63SNG58r.js +0 -753
- package/dist/useThemeProps-CVatCXfo.cjs +0 -20
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
import { jsx as b, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { g as
|
|
5
|
-
import { g as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function go(o) {
|
|
14
|
-
return W("MuiButton", o);
|
|
1
|
+
import { jsx as b, jsxs as O } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import N from "./components/buttons/DefaultButton/DefaultButtonIcon.es.js";
|
|
4
|
+
import { g as W, s as f, r as Y, c as k, a as M } from "./styled-D8lXwcQy.js";
|
|
5
|
+
import { g as V, c as l, _ as a, a as E, r as _, b as j, e as D, P as i } from "./useThemeProps-CZzcR_pm.js";
|
|
6
|
+
import { B as Z } from "./ButtonBase-C14ZYs6z.js";
|
|
7
|
+
import { u as w } from "./useId-BW-oWmul.js";
|
|
8
|
+
import { c as oo } from "./refType-BBFUe6fu.js";
|
|
9
|
+
import { C as no } from "./CircularProgress-Bf46-VRs.js";
|
|
10
|
+
import { u as io } from "./useTheme-Bo1inEHN.js";
|
|
11
|
+
function to(o) {
|
|
12
|
+
return V("MuiButton", o);
|
|
15
13
|
}
|
|
16
|
-
const
|
|
17
|
-
process.env.NODE_ENV !== "production" && (
|
|
18
|
-
const
|
|
19
|
-
process.env.NODE_ENV !== "production" && (
|
|
20
|
-
const
|
|
14
|
+
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, F = /* @__PURE__ */ p.createContext({});
|
|
15
|
+
process.env.NODE_ENV !== "production" && (F.displayName = "ButtonGroupContext");
|
|
16
|
+
const G = F, U = /* @__PURE__ */ p.createContext(void 0);
|
|
17
|
+
process.env.NODE_ENV !== "production" && (U.displayName = "ButtonGroupButtonContext");
|
|
18
|
+
const ro = U, so = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], lo = (o) => {
|
|
21
19
|
const {
|
|
22
20
|
color: n,
|
|
23
21
|
disableElevation: t,
|
|
24
|
-
fullWidth:
|
|
25
|
-
size:
|
|
26
|
-
variant:
|
|
22
|
+
fullWidth: s,
|
|
23
|
+
size: r,
|
|
24
|
+
variant: e,
|
|
27
25
|
classes: d
|
|
28
|
-
} = o,
|
|
29
|
-
root: ["root",
|
|
26
|
+
} = o, g = {
|
|
27
|
+
root: ["root", e, `${e}${l(n)}`, `size${l(r)}`, `${e}Size${l(r)}`, n === "inherit" && "colorInherit", t && "disableElevation", s && "fullWidth"],
|
|
30
28
|
label: ["label"],
|
|
31
|
-
startIcon: ["startIcon", `iconSize${
|
|
32
|
-
endIcon: ["endIcon", `iconSize${
|
|
33
|
-
},
|
|
34
|
-
return a({}, d,
|
|
35
|
-
},
|
|
29
|
+
startIcon: ["startIcon", `iconSize${l(r)}`],
|
|
30
|
+
endIcon: ["endIcon", `iconSize${l(r)}`]
|
|
31
|
+
}, x = M(g, to, d);
|
|
32
|
+
return a({}, d, x);
|
|
33
|
+
}, S = (o) => a({}, o.size === "small" && {
|
|
36
34
|
"& > *:nth-of-type(1)": {
|
|
37
35
|
fontSize: 18
|
|
38
36
|
}
|
|
@@ -44,22 +42,22 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
|
|
|
44
42
|
"& > *:nth-of-type(1)": {
|
|
45
43
|
fontSize: 22
|
|
46
44
|
}
|
|
47
|
-
}),
|
|
48
|
-
shouldForwardProp: (o) =>
|
|
45
|
+
}), eo = f(Z, {
|
|
46
|
+
shouldForwardProp: (o) => Y(o) || o === "classes",
|
|
49
47
|
name: "MuiButton",
|
|
50
48
|
slot: "Root",
|
|
51
49
|
overridesResolver: (o, n) => {
|
|
52
50
|
const {
|
|
53
51
|
ownerState: t
|
|
54
52
|
} = o;
|
|
55
|
-
return [n.root, n[t.variant], n[`${t.variant}${
|
|
53
|
+
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];
|
|
56
54
|
}
|
|
57
55
|
})(({
|
|
58
56
|
theme: o,
|
|
59
57
|
ownerState: n
|
|
60
58
|
}) => {
|
|
61
|
-
var t,
|
|
62
|
-
const
|
|
59
|
+
var t, s;
|
|
60
|
+
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];
|
|
63
61
|
return a({}, o.typography.button, {
|
|
64
62
|
minWidth: 64,
|
|
65
63
|
padding: "6px 16px",
|
|
@@ -69,26 +67,26 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
|
|
|
69
67
|
}),
|
|
70
68
|
"&:hover": a({
|
|
71
69
|
textDecoration: "none",
|
|
72
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
70
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : E(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
73
71
|
// Reset on touch devices, it doesn't add specificity
|
|
74
72
|
"@media (hover: none)": {
|
|
75
73
|
backgroundColor: "transparent"
|
|
76
74
|
}
|
|
77
75
|
}, n.variant === "text" && n.color !== "inherit" && {
|
|
78
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
76
|
+
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),
|
|
79
77
|
// Reset on touch devices, it doesn't add specificity
|
|
80
78
|
"@media (hover: none)": {
|
|
81
79
|
backgroundColor: "transparent"
|
|
82
80
|
}
|
|
83
81
|
}, n.variant === "outlined" && n.color !== "inherit" && {
|
|
84
82
|
border: `1px solid ${(o.vars || o).palette[n.color].main}`,
|
|
85
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
83
|
+
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),
|
|
86
84
|
// Reset on touch devices, it doesn't add specificity
|
|
87
85
|
"@media (hover: none)": {
|
|
88
86
|
backgroundColor: "transparent"
|
|
89
87
|
}
|
|
90
88
|
}, n.variant === "contained" && {
|
|
91
|
-
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg :
|
|
89
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : e,
|
|
92
90
|
boxShadow: (o.vars || o).shadows[4],
|
|
93
91
|
// Reset on touch devices, it doesn't add specificity
|
|
94
92
|
"@media (hover: none)": {
|
|
@@ -105,10 +103,10 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
|
|
|
105
103
|
"&:active": a({}, n.variant === "contained" && {
|
|
106
104
|
boxShadow: (o.vars || o).shadows[8]
|
|
107
105
|
}),
|
|
108
|
-
[`&.${
|
|
106
|
+
[`&.${R.focusVisible}`]: a({}, n.variant === "contained" && {
|
|
109
107
|
boxShadow: (o.vars || o).shadows[6]
|
|
110
108
|
}),
|
|
111
|
-
[`&.${
|
|
109
|
+
[`&.${R.disabled}`]: a({
|
|
112
110
|
color: (o.vars || o).palette.action.disabled
|
|
113
111
|
}, n.variant === "outlined" && {
|
|
114
112
|
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
@@ -126,13 +124,13 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
|
|
|
126
124
|
border: "1px solid currentColor"
|
|
127
125
|
}, n.variant === "outlined" && n.color !== "inherit" && {
|
|
128
126
|
color: (o.vars || o).palette[n.color].main,
|
|
129
|
-
border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${
|
|
127
|
+
border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${E(o.palette[n.color].main, 0.5)}`
|
|
130
128
|
}, n.variant === "contained" && {
|
|
131
129
|
color: o.vars ? (
|
|
132
130
|
// this is safe because grey does not change between default light/dark mode
|
|
133
131
|
o.vars.palette.text.primary
|
|
134
|
-
) : (t = (
|
|
135
|
-
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg :
|
|
132
|
+
) : (t = (s = o.palette).getContrastText) == null ? void 0 : t.call(s, o.palette.grey[300]),
|
|
133
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : r,
|
|
136
134
|
boxShadow: (o.vars || o).shadows[2]
|
|
137
135
|
}, n.variant === "contained" && n.color !== "inherit" && {
|
|
138
136
|
color: (o.vars || o).palette[n.color].contrastText,
|
|
@@ -168,23 +166,23 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
|
|
|
168
166
|
"&:hover": {
|
|
169
167
|
boxShadow: "none"
|
|
170
168
|
},
|
|
171
|
-
[`&.${
|
|
169
|
+
[`&.${R.focusVisible}`]: {
|
|
172
170
|
boxShadow: "none"
|
|
173
171
|
},
|
|
174
172
|
"&:active": {
|
|
175
173
|
boxShadow: "none"
|
|
176
174
|
},
|
|
177
|
-
[`&.${
|
|
175
|
+
[`&.${R.disabled}`]: {
|
|
178
176
|
boxShadow: "none"
|
|
179
177
|
}
|
|
180
|
-
}),
|
|
178
|
+
}), co = f("span", {
|
|
181
179
|
name: "MuiButton",
|
|
182
180
|
slot: "StartIcon",
|
|
183
181
|
overridesResolver: (o, n) => {
|
|
184
182
|
const {
|
|
185
183
|
ownerState: t
|
|
186
184
|
} = o;
|
|
187
|
-
return [n.startIcon, n[`iconSize${
|
|
185
|
+
return [n.startIcon, n[`iconSize${l(t.size)}`]];
|
|
188
186
|
}
|
|
189
187
|
})(({
|
|
190
188
|
ownerState: o
|
|
@@ -194,14 +192,14 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
|
|
|
194
192
|
marginLeft: -4
|
|
195
193
|
}, o.size === "small" && {
|
|
196
194
|
marginLeft: -2
|
|
197
|
-
},
|
|
195
|
+
}, S(o))), uo = f("span", {
|
|
198
196
|
name: "MuiButton",
|
|
199
197
|
slot: "EndIcon",
|
|
200
198
|
overridesResolver: (o, n) => {
|
|
201
199
|
const {
|
|
202
200
|
ownerState: t
|
|
203
201
|
} = o;
|
|
204
|
-
return [n.endIcon, n[`iconSize${
|
|
202
|
+
return [n.endIcon, n[`iconSize${l(t.size)}`]];
|
|
205
203
|
}
|
|
206
204
|
})(({
|
|
207
205
|
ownerState: o
|
|
@@ -211,59 +209,59 @@ const fo = Q, bo = ["children", "color", "component", "className", "disabled", "
|
|
|
211
209
|
marginLeft: 8
|
|
212
210
|
}, o.size === "small" && {
|
|
213
211
|
marginRight: -2
|
|
214
|
-
},
|
|
215
|
-
const
|
|
216
|
-
props:
|
|
212
|
+
}, S(o))), H = /* @__PURE__ */ p.forwardRef(function(n, t) {
|
|
213
|
+
const s = p.useContext(G), r = p.useContext(ro), e = _(s, n), d = j({
|
|
214
|
+
props: e,
|
|
217
215
|
name: "MuiButton"
|
|
218
216
|
}), {
|
|
219
|
-
children:
|
|
220
|
-
color:
|
|
221
|
-
component:
|
|
222
|
-
className:
|
|
217
|
+
children: g,
|
|
218
|
+
color: x = "primary",
|
|
219
|
+
component: v = "button",
|
|
220
|
+
className: h,
|
|
223
221
|
disabled: z = !1,
|
|
224
|
-
disableElevation:
|
|
225
|
-
disableFocusRipple:
|
|
226
|
-
endIcon:
|
|
227
|
-
focusVisibleClassName:
|
|
228
|
-
fullWidth:
|
|
222
|
+
disableElevation: $ = !1,
|
|
223
|
+
disableFocusRipple: B = !1,
|
|
224
|
+
endIcon: I,
|
|
225
|
+
focusVisibleClassName: m,
|
|
226
|
+
fullWidth: u = !1,
|
|
229
227
|
size: P = "medium",
|
|
230
|
-
startIcon:
|
|
231
|
-
type:
|
|
232
|
-
variant:
|
|
233
|
-
} = d,
|
|
234
|
-
color:
|
|
235
|
-
component:
|
|
228
|
+
startIcon: y,
|
|
229
|
+
type: T,
|
|
230
|
+
variant: q = "text"
|
|
231
|
+
} = d, J = D(d, so), L = a({}, d, {
|
|
232
|
+
color: x,
|
|
233
|
+
component: v,
|
|
236
234
|
disabled: z,
|
|
237
|
-
disableElevation:
|
|
238
|
-
disableFocusRipple:
|
|
239
|
-
fullWidth:
|
|
235
|
+
disableElevation: $,
|
|
236
|
+
disableFocusRipple: B,
|
|
237
|
+
fullWidth: u,
|
|
240
238
|
size: P,
|
|
241
|
-
type:
|
|
242
|
-
variant:
|
|
243
|
-
}),
|
|
244
|
-
className:
|
|
239
|
+
type: T,
|
|
240
|
+
variant: q
|
|
241
|
+
}), C = lo(L), K = y && /* @__PURE__ */ b(co, {
|
|
242
|
+
className: C.startIcon,
|
|
245
243
|
ownerState: L,
|
|
246
|
-
children:
|
|
247
|
-
}),
|
|
248
|
-
className:
|
|
244
|
+
children: y
|
|
245
|
+
}), Q = I && /* @__PURE__ */ b(uo, {
|
|
246
|
+
className: C.endIcon,
|
|
249
247
|
ownerState: L,
|
|
250
|
-
children:
|
|
251
|
-
}),
|
|
252
|
-
return /* @__PURE__ */
|
|
248
|
+
children: I
|
|
249
|
+
}), X = r || "";
|
|
250
|
+
return /* @__PURE__ */ O(eo, a({
|
|
253
251
|
ownerState: L,
|
|
254
|
-
className:
|
|
255
|
-
component:
|
|
252
|
+
className: k(s.className, C.root, h, X),
|
|
253
|
+
component: v,
|
|
256
254
|
disabled: z,
|
|
257
|
-
focusRipple: !
|
|
258
|
-
focusVisibleClassName:
|
|
255
|
+
focusRipple: !B,
|
|
256
|
+
focusVisibleClassName: k(C.focusVisible, m),
|
|
259
257
|
ref: t,
|
|
260
|
-
type:
|
|
261
|
-
},
|
|
262
|
-
classes:
|
|
263
|
-
children: [
|
|
258
|
+
type: T
|
|
259
|
+
}, J, {
|
|
260
|
+
classes: C,
|
|
261
|
+
children: [K, g, Q]
|
|
264
262
|
}));
|
|
265
263
|
});
|
|
266
|
-
process.env.NODE_ENV !== "production" && (
|
|
264
|
+
process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
267
265
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
268
266
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
269
267
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -357,243 +355,36 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
357
355
|
*/
|
|
358
356
|
variant: i.oneOfType([i.oneOf(["contained", "outlined", "text"]), i.string])
|
|
359
357
|
});
|
|
360
|
-
const
|
|
361
|
-
function
|
|
362
|
-
return
|
|
363
|
-
}
|
|
364
|
-
M("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
365
|
-
const $o = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
366
|
-
let O = (o) => o, U, F, G, H;
|
|
367
|
-
const m = 44, zo = Y(U || (U = O`
|
|
368
|
-
0% {
|
|
369
|
-
transform: rotate(0deg);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
100% {
|
|
373
|
-
transform: rotate(360deg);
|
|
374
|
-
}
|
|
375
|
-
`)), Po = Y(F || (F = O`
|
|
376
|
-
0% {
|
|
377
|
-
stroke-dasharray: 1px, 200px;
|
|
378
|
-
stroke-dashoffset: 0;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
50% {
|
|
382
|
-
stroke-dasharray: 100px, 200px;
|
|
383
|
-
stroke-dashoffset: -15px;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
100% {
|
|
387
|
-
stroke-dasharray: 100px, 200px;
|
|
388
|
-
stroke-dashoffset: -125px;
|
|
389
|
-
}
|
|
390
|
-
`)), Bo = (o) => {
|
|
391
|
-
const {
|
|
392
|
-
classes: n,
|
|
393
|
-
variant: t,
|
|
394
|
-
color: r,
|
|
395
|
-
disableShrink: s
|
|
396
|
-
} = o, l = {
|
|
397
|
-
root: ["root", t, `color${e(r)}`],
|
|
398
|
-
svg: ["svg"],
|
|
399
|
-
circle: ["circle", `circle${e(t)}`, s && "circleDisableShrink"]
|
|
400
|
-
};
|
|
401
|
-
return S(l, Io, n);
|
|
402
|
-
}, ko = I("span", {
|
|
403
|
-
name: "MuiCircularProgress",
|
|
404
|
-
slot: "Root",
|
|
405
|
-
overridesResolver: (o, n) => {
|
|
406
|
-
const {
|
|
407
|
-
ownerState: t
|
|
408
|
-
} = o;
|
|
409
|
-
return [n.root, n[t.variant], n[`color${e(t.color)}`]];
|
|
410
|
-
}
|
|
411
|
-
})(({
|
|
412
|
-
ownerState: o,
|
|
413
|
-
theme: n
|
|
414
|
-
}) => a({
|
|
415
|
-
display: "inline-block"
|
|
416
|
-
}, o.variant === "determinate" && {
|
|
417
|
-
transition: n.transitions.create("transform")
|
|
418
|
-
}, o.color !== "inherit" && {
|
|
419
|
-
color: (n.vars || n).palette[o.color].main
|
|
420
|
-
}), ({
|
|
421
|
-
ownerState: o
|
|
422
|
-
}) => o.variant === "indeterminate" && Z(G || (G = O`
|
|
423
|
-
animation: ${0} 1.4s linear infinite;
|
|
424
|
-
`), zo)), Lo = I("svg", {
|
|
425
|
-
name: "MuiCircularProgress",
|
|
426
|
-
slot: "Svg",
|
|
427
|
-
overridesResolver: (o, n) => n.svg
|
|
428
|
-
})({
|
|
429
|
-
display: "block"
|
|
430
|
-
// Keeps the progress centered
|
|
431
|
-
}), Ro = I("circle", {
|
|
432
|
-
name: "MuiCircularProgress",
|
|
433
|
-
slot: "Circle",
|
|
434
|
-
overridesResolver: (o, n) => {
|
|
435
|
-
const {
|
|
436
|
-
ownerState: t
|
|
437
|
-
} = o;
|
|
438
|
-
return [n.circle, n[`circle${e(t.variant)}`], t.disableShrink && n.circleDisableShrink];
|
|
439
|
-
}
|
|
440
|
-
})(({
|
|
441
|
-
ownerState: o,
|
|
442
|
-
theme: n
|
|
443
|
-
}) => a({
|
|
444
|
-
stroke: "currentColor"
|
|
445
|
-
}, o.variant === "determinate" && {
|
|
446
|
-
transition: n.transitions.create("stroke-dashoffset")
|
|
447
|
-
}, o.variant === "indeterminate" && {
|
|
448
|
-
// Some default value that looks fine waiting for the animation to kicks in.
|
|
449
|
-
strokeDasharray: "80px, 200px",
|
|
450
|
-
strokeDashoffset: 0
|
|
451
|
-
// Add the unit to fix a Edge 16 and below bug.
|
|
452
|
-
}), ({
|
|
453
|
-
ownerState: o
|
|
454
|
-
}) => o.variant === "indeterminate" && !o.disableShrink && Z(H || (H = O`
|
|
455
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
456
|
-
`), Po)), oo = /* @__PURE__ */ C.forwardRef(function(n, t) {
|
|
457
|
-
const r = D({
|
|
458
|
-
props: n,
|
|
459
|
-
name: "MuiCircularProgress"
|
|
460
|
-
}), {
|
|
461
|
-
className: s,
|
|
462
|
-
color: l = "primary",
|
|
463
|
-
disableShrink: d = !1,
|
|
464
|
-
size: u = 40,
|
|
465
|
-
style: $,
|
|
466
|
-
thickness: c = 3.6,
|
|
467
|
-
value: x = 0,
|
|
468
|
-
variant: z = "indeterminate"
|
|
469
|
-
} = r, B = _(r, $o), g = a({}, r, {
|
|
470
|
-
color: l,
|
|
471
|
-
disableShrink: d,
|
|
472
|
-
size: u,
|
|
473
|
-
thickness: c,
|
|
474
|
-
value: x,
|
|
475
|
-
variant: z
|
|
476
|
-
}), v = Bo(g), y = {}, p = {}, P = {};
|
|
477
|
-
if (z === "determinate") {
|
|
478
|
-
const h = 2 * Math.PI * ((m - c) / 2);
|
|
479
|
-
y.strokeDasharray = h.toFixed(3), P["aria-valuenow"] = Math.round(x), y.strokeDashoffset = `${((100 - x) / 100 * h).toFixed(3)}px`, p.transform = "rotate(-90deg)";
|
|
480
|
-
}
|
|
481
|
-
return /* @__PURE__ */ b(ko, a({
|
|
482
|
-
className: T(v.root, s),
|
|
483
|
-
style: a({
|
|
484
|
-
width: u,
|
|
485
|
-
height: u
|
|
486
|
-
}, p, $),
|
|
487
|
-
ownerState: g,
|
|
488
|
-
ref: t,
|
|
489
|
-
role: "progressbar"
|
|
490
|
-
}, P, B, {
|
|
491
|
-
children: /* @__PURE__ */ b(Lo, {
|
|
492
|
-
className: v.svg,
|
|
493
|
-
ownerState: g,
|
|
494
|
-
viewBox: `${m / 2} ${m / 2} ${m} ${m}`,
|
|
495
|
-
children: /* @__PURE__ */ b(Ro, {
|
|
496
|
-
className: v.circle,
|
|
497
|
-
style: y,
|
|
498
|
-
ownerState: g,
|
|
499
|
-
cx: m,
|
|
500
|
-
cy: m,
|
|
501
|
-
r: (m - c) / 2,
|
|
502
|
-
fill: "none",
|
|
503
|
-
strokeWidth: c
|
|
504
|
-
})
|
|
505
|
-
})
|
|
506
|
-
}));
|
|
507
|
-
});
|
|
508
|
-
process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
509
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
510
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
511
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
512
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
513
|
-
/**
|
|
514
|
-
* Override or extend the styles applied to the component.
|
|
515
|
-
*/
|
|
516
|
-
classes: i.object,
|
|
517
|
-
/**
|
|
518
|
-
* @ignore
|
|
519
|
-
*/
|
|
520
|
-
className: i.string,
|
|
521
|
-
/**
|
|
522
|
-
* The color of the component.
|
|
523
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
524
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
525
|
-
* @default 'primary'
|
|
526
|
-
*/
|
|
527
|
-
color: i.oneOfType([i.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), i.string]),
|
|
528
|
-
/**
|
|
529
|
-
* If `true`, the shrink animation is disabled.
|
|
530
|
-
* This only works if variant is `indeterminate`.
|
|
531
|
-
* @default false
|
|
532
|
-
*/
|
|
533
|
-
disableShrink: A(i.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),
|
|
534
|
-
/**
|
|
535
|
-
* The size of the component.
|
|
536
|
-
* If using a number, the pixel unit is assumed.
|
|
537
|
-
* If using a string, you need to provide the CSS unit, e.g. '3rem'.
|
|
538
|
-
* @default 40
|
|
539
|
-
*/
|
|
540
|
-
size: i.oneOfType([i.number, i.string]),
|
|
541
|
-
/**
|
|
542
|
-
* @ignore
|
|
543
|
-
*/
|
|
544
|
-
style: i.object,
|
|
545
|
-
/**
|
|
546
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
547
|
-
*/
|
|
548
|
-
sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
|
|
549
|
-
/**
|
|
550
|
-
* The thickness of the circle.
|
|
551
|
-
* @default 3.6
|
|
552
|
-
*/
|
|
553
|
-
thickness: i.number,
|
|
554
|
-
/**
|
|
555
|
-
* The value of the progress indicator for the determinate variant.
|
|
556
|
-
* Value between 0 and 100.
|
|
557
|
-
* @default 0
|
|
558
|
-
*/
|
|
559
|
-
value: i.number,
|
|
560
|
-
/**
|
|
561
|
-
* The variant to use.
|
|
562
|
-
* Use indeterminate when there is no progress value.
|
|
563
|
-
* @default 'indeterminate'
|
|
564
|
-
*/
|
|
565
|
-
variant: i.oneOf(["determinate", "indeterminate"])
|
|
566
|
-
});
|
|
567
|
-
const Eo = oo;
|
|
568
|
-
function Oo(o) {
|
|
569
|
-
return W("MuiLoadingButton", o);
|
|
358
|
+
const po = H;
|
|
359
|
+
function go(o) {
|
|
360
|
+
return V("MuiLoadingButton", o);
|
|
570
361
|
}
|
|
571
|
-
const
|
|
362
|
+
const vo = W("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), c = vo, bo = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"], fo = (o) => {
|
|
572
363
|
const {
|
|
573
364
|
loading: n,
|
|
574
365
|
loadingPosition: t,
|
|
575
|
-
classes:
|
|
576
|
-
} = o,
|
|
366
|
+
classes: s
|
|
367
|
+
} = o, r = {
|
|
577
368
|
root: ["root", n && "loading"],
|
|
578
|
-
startIcon: [n && `startIconLoading${
|
|
579
|
-
endIcon: [n && `endIconLoading${
|
|
580
|
-
loadingIndicator: ["loadingIndicator", n && `loadingIndicator${
|
|
581
|
-
},
|
|
582
|
-
return a({},
|
|
583
|
-
},
|
|
584
|
-
shouldForwardProp: (o) =>
|
|
369
|
+
startIcon: [n && `startIconLoading${l(t)}`],
|
|
370
|
+
endIcon: [n && `endIconLoading${l(t)}`],
|
|
371
|
+
loadingIndicator: ["loadingIndicator", n && `loadingIndicator${l(t)}`]
|
|
372
|
+
}, e = M(r, go, s);
|
|
373
|
+
return a({}, s, e);
|
|
374
|
+
}, xo = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", Io = f(po, {
|
|
375
|
+
shouldForwardProp: (o) => xo(o) || o === "classes",
|
|
585
376
|
name: "MuiLoadingButton",
|
|
586
377
|
slot: "Root",
|
|
587
378
|
overridesResolver: (o, n) => [n.root, n.startIconLoadingStart && {
|
|
588
|
-
[`& .${
|
|
379
|
+
[`& .${c.startIconLoadingStart}`]: n.startIconLoadingStart
|
|
589
380
|
}, n.endIconLoadingEnd && {
|
|
590
|
-
[`& .${
|
|
381
|
+
[`& .${c.endIconLoadingEnd}`]: n.endIconLoadingEnd
|
|
591
382
|
}]
|
|
592
383
|
})(({
|
|
593
384
|
ownerState: o,
|
|
594
385
|
theme: n
|
|
595
386
|
}) => a({
|
|
596
|
-
[`& .${
|
|
387
|
+
[`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]: {
|
|
597
388
|
transition: n.transitions.create(["opacity"], {
|
|
598
389
|
duration: n.transitions.duration.short
|
|
599
390
|
}),
|
|
@@ -603,11 +394,11 @@ const To = M("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadin
|
|
|
603
394
|
transition: n.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
604
395
|
duration: n.transitions.duration.short
|
|
605
396
|
}),
|
|
606
|
-
[`&.${
|
|
397
|
+
[`&.${c.loading}`]: {
|
|
607
398
|
color: "transparent"
|
|
608
399
|
}
|
|
609
400
|
}, o.loadingPosition === "start" && o.fullWidth && {
|
|
610
|
-
[`& .${
|
|
401
|
+
[`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]: {
|
|
611
402
|
transition: n.transitions.create(["opacity"], {
|
|
612
403
|
duration: n.transitions.duration.short
|
|
613
404
|
}),
|
|
@@ -615,21 +406,21 @@ const To = M("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadin
|
|
|
615
406
|
marginRight: -8
|
|
616
407
|
}
|
|
617
408
|
}, o.loadingPosition === "end" && o.fullWidth && {
|
|
618
|
-
[`& .${
|
|
409
|
+
[`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]: {
|
|
619
410
|
transition: n.transitions.create(["opacity"], {
|
|
620
411
|
duration: n.transitions.duration.short
|
|
621
412
|
}),
|
|
622
413
|
opacity: 0,
|
|
623
414
|
marginLeft: -8
|
|
624
415
|
}
|
|
625
|
-
})),
|
|
416
|
+
})), yo = f("span", {
|
|
626
417
|
name: "MuiLoadingButton",
|
|
627
418
|
slot: "LoadingIndicator",
|
|
628
419
|
overridesResolver: (o, n) => {
|
|
629
420
|
const {
|
|
630
421
|
ownerState: t
|
|
631
422
|
} = o;
|
|
632
|
-
return [n.loadingIndicator, n[`loadingIndicator${
|
|
423
|
+
return [n.loadingIndicator, n[`loadingIndicator${l(t.loadingPosition)}`]];
|
|
633
424
|
}
|
|
634
425
|
})(({
|
|
635
426
|
theme: o,
|
|
@@ -656,45 +447,45 @@ const To = M("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadin
|
|
|
656
447
|
}, n.loadingPosition === "end" && n.fullWidth && {
|
|
657
448
|
position: "relative",
|
|
658
449
|
right: -10
|
|
659
|
-
})),
|
|
660
|
-
const
|
|
661
|
-
props:
|
|
450
|
+
})), A = /* @__PURE__ */ p.forwardRef(function(n, t) {
|
|
451
|
+
const s = p.useContext(G), r = _(s, n), e = j({
|
|
452
|
+
props: r,
|
|
662
453
|
name: "MuiLoadingButton"
|
|
663
454
|
}), {
|
|
664
455
|
children: d,
|
|
665
|
-
disabled:
|
|
666
|
-
id:
|
|
667
|
-
loading:
|
|
668
|
-
loadingIndicator:
|
|
456
|
+
disabled: g = !1,
|
|
457
|
+
id: x,
|
|
458
|
+
loading: v = !1,
|
|
459
|
+
loadingIndicator: h,
|
|
669
460
|
loadingPosition: z = "center",
|
|
670
|
-
variant:
|
|
671
|
-
} =
|
|
672
|
-
"aria-labelledby":
|
|
461
|
+
variant: $ = "text"
|
|
462
|
+
} = e, B = D(e, bo), I = w(x), m = h ?? /* @__PURE__ */ b(no, {
|
|
463
|
+
"aria-labelledby": I,
|
|
673
464
|
color: "inherit",
|
|
674
465
|
size: 16
|
|
675
|
-
}),
|
|
676
|
-
disabled:
|
|
677
|
-
loading:
|
|
678
|
-
loadingIndicator:
|
|
466
|
+
}), u = a({}, e, {
|
|
467
|
+
disabled: g,
|
|
468
|
+
loading: v,
|
|
469
|
+
loadingIndicator: m,
|
|
679
470
|
loadingPosition: z,
|
|
680
|
-
variant:
|
|
681
|
-
}), P =
|
|
471
|
+
variant: $
|
|
472
|
+
}), P = fo(u), y = v ? /* @__PURE__ */ b(yo, {
|
|
682
473
|
className: P.loadingIndicator,
|
|
683
|
-
ownerState:
|
|
684
|
-
children:
|
|
474
|
+
ownerState: u,
|
|
475
|
+
children: m
|
|
685
476
|
}) : null;
|
|
686
|
-
return /* @__PURE__ */
|
|
687
|
-
disabled:
|
|
688
|
-
id:
|
|
477
|
+
return /* @__PURE__ */ O(Io, a({
|
|
478
|
+
disabled: g || v,
|
|
479
|
+
id: I,
|
|
689
480
|
ref: t
|
|
690
|
-
},
|
|
691
|
-
variant:
|
|
481
|
+
}, B, {
|
|
482
|
+
variant: $,
|
|
692
483
|
classes: P,
|
|
693
|
-
ownerState:
|
|
694
|
-
children: [
|
|
484
|
+
ownerState: u,
|
|
485
|
+
children: [u.loadingPosition === "end" ? d : y, u.loadingPosition === "end" ? y : d]
|
|
695
486
|
}));
|
|
696
487
|
});
|
|
697
|
-
process.env.NODE_ENV !== "production" && (
|
|
488
|
+
process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
698
489
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
699
490
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
700
491
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -732,7 +523,7 @@ process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
|
732
523
|
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
733
524
|
* @default 'center'
|
|
734
525
|
*/
|
|
735
|
-
loadingPosition:
|
|
526
|
+
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),
|
|
736
527
|
/**
|
|
737
528
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
738
529
|
*/
|
|
@@ -743,7 +534,7 @@ process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
|
743
534
|
*/
|
|
744
535
|
variant: i.oneOfType([i.oneOf(["contained", "outlined", "text"]), i.string])
|
|
745
536
|
});
|
|
746
|
-
const
|
|
537
|
+
const Co = A, ho = f(Co, {
|
|
747
538
|
shouldForwardProp: (o) => o !== "contentColor" && o !== "hoverColor"
|
|
748
539
|
})(({ contentColor: o, hoverColor: n, theme: t }) => ({
|
|
749
540
|
justifyContent: "center",
|
|
@@ -763,28 +554,28 @@ const Do = no, jo = eo(Do, {
|
|
|
763
554
|
borderColor: n,
|
|
764
555
|
borderWidth: 2
|
|
765
556
|
}
|
|
766
|
-
})),
|
|
557
|
+
})), To = ({
|
|
767
558
|
icon: o,
|
|
768
559
|
text: n,
|
|
769
560
|
...t
|
|
770
561
|
}) => {
|
|
771
|
-
const
|
|
772
|
-
return /* @__PURE__ */
|
|
773
|
-
|
|
562
|
+
const s = io(), r = t.contentColor ?? s.palette.primary.main;
|
|
563
|
+
return /* @__PURE__ */ O(
|
|
564
|
+
ho,
|
|
774
565
|
{
|
|
775
566
|
...t,
|
|
776
567
|
variant: "outlined",
|
|
777
|
-
contentColor:
|
|
778
|
-
hoverColor: t.hoverColor ??
|
|
568
|
+
contentColor: r,
|
|
569
|
+
hoverColor: t.hoverColor ?? r,
|
|
779
570
|
children: [
|
|
780
|
-
(o == null ? void 0 : o.position) === "left" ? /* @__PURE__ */ b(
|
|
571
|
+
(o == null ? void 0 : o.position) === "left" ? /* @__PURE__ */ b(N, { ...o }) : null,
|
|
781
572
|
n,
|
|
782
|
-
(o == null ? void 0 : o.position) === "right" ? /* @__PURE__ */ b(
|
|
573
|
+
(o == null ? void 0 : o.position) === "right" ? /* @__PURE__ */ b(N, { ...o }) : null
|
|
783
574
|
]
|
|
784
575
|
}
|
|
785
576
|
);
|
|
786
577
|
};
|
|
787
578
|
export {
|
|
788
|
-
|
|
789
|
-
|
|
579
|
+
po as B,
|
|
580
|
+
To as D
|
|
790
581
|
};
|