@amateescu/portal-ui-components 0.0.25-react19 → 0.0.26-beta0
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-C1OwXVV-.js +68 -0
- package/dist/Button-CIvE-fcO.js +355 -0
- package/dist/ButtonBase-BeQnmGXr.js +966 -0
- package/dist/{EllipsisOutlined-DfTPoz8U.js → EllipsisOutlined-DZsCEqiL.js} +724 -722
- package/dist/{PurePanel-ByiFMw5U.js → PurePanel-iUNZWTe_.js} +3 -3
- package/dist/{Skeleton-Imy-56Lv.js → Skeleton-CfEiGUkR.js} +2 -2
- package/dist/{UserInfoDropdown-6aB5cQyF.js → UserInfoDropdown-CoZutJAR.js} +191 -191
- package/dist/assertThisInitialized-BUtkG-md.js +13 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
- package/dist/components/CustomButton/CustomButton.js +1 -1
- package/dist/components/CustomPagination/CustomPagination.js +372 -483
- package/dist/components/ErrorModal/ErrorModal.js +1 -1
- package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
- package/dist/components/InfoModal/InfoModal.js +1 -1
- package/dist/components/InfoModal/InfoModal.stories.js +1 -1
- package/dist/components/KpiCard/KpiCard.js +4 -4
- package/dist/components/LoadingAnimation/LoadingAnimation.js +215 -6
- package/dist/components/Login/Login.js +3837 -4489
- package/dist/components/Login/Login.stories.js +1 -1
- package/dist/components/SideMenu/SideMenu.js +1 -1
- package/dist/components/SideMenu/SideMenu.types.d.ts +0 -1
- package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{context-D_FWkiDE.js → context-Crxhk7DD.js} +9 -8
- package/dist/createSvgIcon-Db107M0j.js +250 -0
- package/dist/generateUtilityClasses-DY-qyzNG.js +3427 -0
- package/dist/{index-CR8gh-dS.js → index-BxiDYyNJ.js} +4 -4
- package/dist/index-DpDv68WZ.js +19153 -0
- package/dist/main.js +1 -1
- package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +46 -0
- package/dist/types/Column.d.ts +2 -0
- package/package.json +28 -26
- package/dist/Box-DQNjUj2G.js +0 -102
- package/dist/Button-D2XVkO19.js +0 -676
- package/dist/ButtonBase-D-XlpvIZ.js +0 -954
- package/dist/CircularProgress-BOkP0juA.js +0 -247
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/createSimplePaletteValueFilter-CshNo3IR.js +0 -3439
- package/dist/index-CyFfYou3.js +0 -411
- package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
- package/dist/useSlot-kDVPuVrn.js +0 -431
package/dist/Button-D2XVkO19.js
DELETED
|
@@ -1,676 +0,0 @@
|
|
|
1
|
-
import * as s from "react";
|
|
2
|
-
import { a as J, g as K, r as Q, u as X, s as b, c as E, b as r, d as Y, h as Z, m as oo, i as f, e as to, P as t } from "./createSimplePaletteValueFilter-CshNo3IR.js";
|
|
3
|
-
import { jsxs as ao, jsx as d } from "react/jsx-runtime";
|
|
4
|
-
import { B as no } from "./ButtonBase-D-XlpvIZ.js";
|
|
5
|
-
import { C as io } from "./CircularProgress-BOkP0juA.js";
|
|
6
|
-
let N = 0;
|
|
7
|
-
function ro(o) {
|
|
8
|
-
const [a, n] = s.useState(o), i = o || a;
|
|
9
|
-
return s.useEffect(() => {
|
|
10
|
-
a == null && (N += 1, n(`mui-${N}`));
|
|
11
|
-
}, [a]), i;
|
|
12
|
-
}
|
|
13
|
-
const eo = {
|
|
14
|
-
...s
|
|
15
|
-
}, O = eo.useId;
|
|
16
|
-
function so(o) {
|
|
17
|
-
if (O !== void 0) {
|
|
18
|
-
const a = O();
|
|
19
|
-
return o ?? a;
|
|
20
|
-
}
|
|
21
|
-
return ro(o);
|
|
22
|
-
}
|
|
23
|
-
function lo(o) {
|
|
24
|
-
return K("MuiButton", o);
|
|
25
|
-
}
|
|
26
|
-
const c = J("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), T = /* @__PURE__ */ s.createContext({});
|
|
27
|
-
process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupContext");
|
|
28
|
-
const L = /* @__PURE__ */ s.createContext(void 0);
|
|
29
|
-
process.env.NODE_ENV !== "production" && (L.displayName = "ButtonGroupButtonContext");
|
|
30
|
-
const co = (o) => {
|
|
31
|
-
const {
|
|
32
|
-
color: a,
|
|
33
|
-
disableElevation: n,
|
|
34
|
-
fullWidth: i,
|
|
35
|
-
size: p,
|
|
36
|
-
variant: g,
|
|
37
|
-
loading: v,
|
|
38
|
-
loadingPosition: I,
|
|
39
|
-
classes: x
|
|
40
|
-
} = o, S = {
|
|
41
|
-
root: ["root", v && "loading", g, `${g}${r(a)}`, `size${r(p)}`, `${g}Size${r(p)}`, `color${r(a)}`, n && "disableElevation", i && "fullWidth", v && `loadingPosition${r(I)}`],
|
|
42
|
-
startIcon: ["icon", "startIcon", `iconSize${r(p)}`],
|
|
43
|
-
endIcon: ["icon", "endIcon", `iconSize${r(p)}`],
|
|
44
|
-
loadingIndicator: ["loadingIndicator"],
|
|
45
|
-
loadingWrapper: ["loadingWrapper"]
|
|
46
|
-
}, z = Y(S, lo, x);
|
|
47
|
-
return {
|
|
48
|
-
...x,
|
|
49
|
-
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
50
|
-
...z
|
|
51
|
-
};
|
|
52
|
-
}, M = [{
|
|
53
|
-
props: {
|
|
54
|
-
size: "small"
|
|
55
|
-
},
|
|
56
|
-
style: {
|
|
57
|
-
"& > *:nth-of-type(1)": {
|
|
58
|
-
fontSize: 18
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}, {
|
|
62
|
-
props: {
|
|
63
|
-
size: "medium"
|
|
64
|
-
},
|
|
65
|
-
style: {
|
|
66
|
-
"& > *:nth-of-type(1)": {
|
|
67
|
-
fontSize: 20
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
props: {
|
|
72
|
-
size: "large"
|
|
73
|
-
},
|
|
74
|
-
style: {
|
|
75
|
-
"& > *:nth-of-type(1)": {
|
|
76
|
-
fontSize: 22
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}], po = b(no, {
|
|
80
|
-
shouldForwardProp: (o) => Z(o) || o === "classes",
|
|
81
|
-
name: "MuiButton",
|
|
82
|
-
slot: "Root",
|
|
83
|
-
overridesResolver: (o, a) => {
|
|
84
|
-
const {
|
|
85
|
-
ownerState: n
|
|
86
|
-
} = o;
|
|
87
|
-
return [a.root, a[n.variant], a[`${n.variant}${r(n.color)}`], a[`size${r(n.size)}`], a[`${n.variant}Size${r(n.size)}`], n.color === "inherit" && a.colorInherit, n.disableElevation && a.disableElevation, n.fullWidth && a.fullWidth, n.loading && a.loading];
|
|
88
|
-
}
|
|
89
|
-
})(oo(({
|
|
90
|
-
theme: o
|
|
91
|
-
}) => {
|
|
92
|
-
const a = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], n = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
93
|
-
return {
|
|
94
|
-
...o.typography.button,
|
|
95
|
-
minWidth: 64,
|
|
96
|
-
padding: "6px 16px",
|
|
97
|
-
border: 0,
|
|
98
|
-
borderRadius: (o.vars || o).shape.borderRadius,
|
|
99
|
-
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
100
|
-
duration: o.transitions.duration.short
|
|
101
|
-
}),
|
|
102
|
-
"&:hover": {
|
|
103
|
-
textDecoration: "none"
|
|
104
|
-
},
|
|
105
|
-
[`&.${c.disabled}`]: {
|
|
106
|
-
color: (o.vars || o).palette.action.disabled
|
|
107
|
-
},
|
|
108
|
-
variants: [{
|
|
109
|
-
props: {
|
|
110
|
-
variant: "contained"
|
|
111
|
-
},
|
|
112
|
-
style: {
|
|
113
|
-
color: "var(--variant-containedColor)",
|
|
114
|
-
backgroundColor: "var(--variant-containedBg)",
|
|
115
|
-
boxShadow: (o.vars || o).shadows[2],
|
|
116
|
-
"&:hover": {
|
|
117
|
-
boxShadow: (o.vars || o).shadows[4],
|
|
118
|
-
// Reset on touch devices, it doesn't add specificity
|
|
119
|
-
"@media (hover: none)": {
|
|
120
|
-
boxShadow: (o.vars || o).shadows[2]
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"&:active": {
|
|
124
|
-
boxShadow: (o.vars || o).shadows[8]
|
|
125
|
-
},
|
|
126
|
-
[`&.${c.focusVisible}`]: {
|
|
127
|
-
boxShadow: (o.vars || o).shadows[6]
|
|
128
|
-
},
|
|
129
|
-
[`&.${c.disabled}`]: {
|
|
130
|
-
color: (o.vars || o).palette.action.disabled,
|
|
131
|
-
boxShadow: (o.vars || o).shadows[0],
|
|
132
|
-
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}, {
|
|
136
|
-
props: {
|
|
137
|
-
variant: "outlined"
|
|
138
|
-
},
|
|
139
|
-
style: {
|
|
140
|
-
padding: "5px 15px",
|
|
141
|
-
border: "1px solid currentColor",
|
|
142
|
-
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
143
|
-
backgroundColor: "var(--variant-outlinedBg)",
|
|
144
|
-
color: "var(--variant-outlinedColor)",
|
|
145
|
-
[`&.${c.disabled}`]: {
|
|
146
|
-
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}, {
|
|
150
|
-
props: {
|
|
151
|
-
variant: "text"
|
|
152
|
-
},
|
|
153
|
-
style: {
|
|
154
|
-
padding: "6px 8px",
|
|
155
|
-
color: "var(--variant-textColor)",
|
|
156
|
-
backgroundColor: "var(--variant-textBg)"
|
|
157
|
-
}
|
|
158
|
-
}, ...Object.entries(o.palette).filter(to()).map(([i]) => ({
|
|
159
|
-
props: {
|
|
160
|
-
color: i
|
|
161
|
-
},
|
|
162
|
-
style: {
|
|
163
|
-
"--variant-textColor": (o.vars || o).palette[i].main,
|
|
164
|
-
"--variant-outlinedColor": (o.vars || o).palette[i].main,
|
|
165
|
-
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / 0.5)` : f(o.palette[i].main, 0.5),
|
|
166
|
-
"--variant-containedColor": (o.vars || o).palette[i].contrastText,
|
|
167
|
-
"--variant-containedBg": (o.vars || o).palette[i].main,
|
|
168
|
-
"@media (hover: hover)": {
|
|
169
|
-
"&:hover": {
|
|
170
|
-
"--variant-containedBg": (o.vars || o).palette[i].dark,
|
|
171
|
-
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette[i].main, o.palette.action.hoverOpacity),
|
|
172
|
-
"--variant-outlinedBorder": (o.vars || o).palette[i].main,
|
|
173
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette[i].main, o.palette.action.hoverOpacity)
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
})), {
|
|
178
|
-
props: {
|
|
179
|
-
color: "inherit"
|
|
180
|
-
},
|
|
181
|
-
style: {
|
|
182
|
-
color: "inherit",
|
|
183
|
-
borderColor: "currentColor",
|
|
184
|
-
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : a,
|
|
185
|
-
"@media (hover: hover)": {
|
|
186
|
-
"&:hover": {
|
|
187
|
-
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : n,
|
|
188
|
-
"--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
189
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette.text.primary, o.palette.action.hoverOpacity)
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}, {
|
|
194
|
-
props: {
|
|
195
|
-
size: "small",
|
|
196
|
-
variant: "text"
|
|
197
|
-
},
|
|
198
|
-
style: {
|
|
199
|
-
padding: "4px 5px",
|
|
200
|
-
fontSize: o.typography.pxToRem(13)
|
|
201
|
-
}
|
|
202
|
-
}, {
|
|
203
|
-
props: {
|
|
204
|
-
size: "large",
|
|
205
|
-
variant: "text"
|
|
206
|
-
},
|
|
207
|
-
style: {
|
|
208
|
-
padding: "8px 11px",
|
|
209
|
-
fontSize: o.typography.pxToRem(15)
|
|
210
|
-
}
|
|
211
|
-
}, {
|
|
212
|
-
props: {
|
|
213
|
-
size: "small",
|
|
214
|
-
variant: "outlined"
|
|
215
|
-
},
|
|
216
|
-
style: {
|
|
217
|
-
padding: "3px 9px",
|
|
218
|
-
fontSize: o.typography.pxToRem(13)
|
|
219
|
-
}
|
|
220
|
-
}, {
|
|
221
|
-
props: {
|
|
222
|
-
size: "large",
|
|
223
|
-
variant: "outlined"
|
|
224
|
-
},
|
|
225
|
-
style: {
|
|
226
|
-
padding: "7px 21px",
|
|
227
|
-
fontSize: o.typography.pxToRem(15)
|
|
228
|
-
}
|
|
229
|
-
}, {
|
|
230
|
-
props: {
|
|
231
|
-
size: "small",
|
|
232
|
-
variant: "contained"
|
|
233
|
-
},
|
|
234
|
-
style: {
|
|
235
|
-
padding: "4px 10px",
|
|
236
|
-
fontSize: o.typography.pxToRem(13)
|
|
237
|
-
}
|
|
238
|
-
}, {
|
|
239
|
-
props: {
|
|
240
|
-
size: "large",
|
|
241
|
-
variant: "contained"
|
|
242
|
-
},
|
|
243
|
-
style: {
|
|
244
|
-
padding: "8px 22px",
|
|
245
|
-
fontSize: o.typography.pxToRem(15)
|
|
246
|
-
}
|
|
247
|
-
}, {
|
|
248
|
-
props: {
|
|
249
|
-
disableElevation: !0
|
|
250
|
-
},
|
|
251
|
-
style: {
|
|
252
|
-
boxShadow: "none",
|
|
253
|
-
"&:hover": {
|
|
254
|
-
boxShadow: "none"
|
|
255
|
-
},
|
|
256
|
-
[`&.${c.focusVisible}`]: {
|
|
257
|
-
boxShadow: "none"
|
|
258
|
-
},
|
|
259
|
-
"&:active": {
|
|
260
|
-
boxShadow: "none"
|
|
261
|
-
},
|
|
262
|
-
[`&.${c.disabled}`]: {
|
|
263
|
-
boxShadow: "none"
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}, {
|
|
267
|
-
props: {
|
|
268
|
-
fullWidth: !0
|
|
269
|
-
},
|
|
270
|
-
style: {
|
|
271
|
-
width: "100%"
|
|
272
|
-
}
|
|
273
|
-
}, {
|
|
274
|
-
props: {
|
|
275
|
-
loadingPosition: "center"
|
|
276
|
-
},
|
|
277
|
-
style: {
|
|
278
|
-
transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
279
|
-
duration: o.transitions.duration.short
|
|
280
|
-
}),
|
|
281
|
-
[`&.${c.loading}`]: {
|
|
282
|
-
color: "transparent"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}]
|
|
286
|
-
};
|
|
287
|
-
})), uo = b("span", {
|
|
288
|
-
name: "MuiButton",
|
|
289
|
-
slot: "StartIcon",
|
|
290
|
-
overridesResolver: (o, a) => {
|
|
291
|
-
const {
|
|
292
|
-
ownerState: n
|
|
293
|
-
} = o;
|
|
294
|
-
return [a.startIcon, n.loading && a.startIconLoadingStart, a[`iconSize${r(n.size)}`]];
|
|
295
|
-
}
|
|
296
|
-
})(({
|
|
297
|
-
theme: o
|
|
298
|
-
}) => ({
|
|
299
|
-
display: "inherit",
|
|
300
|
-
marginRight: 8,
|
|
301
|
-
marginLeft: -4,
|
|
302
|
-
variants: [{
|
|
303
|
-
props: {
|
|
304
|
-
size: "small"
|
|
305
|
-
},
|
|
306
|
-
style: {
|
|
307
|
-
marginLeft: -2
|
|
308
|
-
}
|
|
309
|
-
}, {
|
|
310
|
-
props: {
|
|
311
|
-
loadingPosition: "start",
|
|
312
|
-
loading: !0
|
|
313
|
-
},
|
|
314
|
-
style: {
|
|
315
|
-
transition: o.transitions.create(["opacity"], {
|
|
316
|
-
duration: o.transitions.duration.short
|
|
317
|
-
}),
|
|
318
|
-
opacity: 0
|
|
319
|
-
}
|
|
320
|
-
}, {
|
|
321
|
-
props: {
|
|
322
|
-
loadingPosition: "start",
|
|
323
|
-
loading: !0,
|
|
324
|
-
fullWidth: !0
|
|
325
|
-
},
|
|
326
|
-
style: {
|
|
327
|
-
marginRight: -8
|
|
328
|
-
}
|
|
329
|
-
}, ...M]
|
|
330
|
-
})), go = b("span", {
|
|
331
|
-
name: "MuiButton",
|
|
332
|
-
slot: "EndIcon",
|
|
333
|
-
overridesResolver: (o, a) => {
|
|
334
|
-
const {
|
|
335
|
-
ownerState: n
|
|
336
|
-
} = o;
|
|
337
|
-
return [a.endIcon, n.loading && a.endIconLoadingEnd, a[`iconSize${r(n.size)}`]];
|
|
338
|
-
}
|
|
339
|
-
})(({
|
|
340
|
-
theme: o
|
|
341
|
-
}) => ({
|
|
342
|
-
display: "inherit",
|
|
343
|
-
marginRight: -4,
|
|
344
|
-
marginLeft: 8,
|
|
345
|
-
variants: [{
|
|
346
|
-
props: {
|
|
347
|
-
size: "small"
|
|
348
|
-
},
|
|
349
|
-
style: {
|
|
350
|
-
marginRight: -2
|
|
351
|
-
}
|
|
352
|
-
}, {
|
|
353
|
-
props: {
|
|
354
|
-
loadingPosition: "end",
|
|
355
|
-
loading: !0
|
|
356
|
-
},
|
|
357
|
-
style: {
|
|
358
|
-
transition: o.transitions.create(["opacity"], {
|
|
359
|
-
duration: o.transitions.duration.short
|
|
360
|
-
}),
|
|
361
|
-
opacity: 0
|
|
362
|
-
}
|
|
363
|
-
}, {
|
|
364
|
-
props: {
|
|
365
|
-
loadingPosition: "end",
|
|
366
|
-
loading: !0,
|
|
367
|
-
fullWidth: !0
|
|
368
|
-
},
|
|
369
|
-
style: {
|
|
370
|
-
marginLeft: -8
|
|
371
|
-
}
|
|
372
|
-
}, ...M]
|
|
373
|
-
})), vo = b("span", {
|
|
374
|
-
name: "MuiButton",
|
|
375
|
-
slot: "LoadingIndicator",
|
|
376
|
-
overridesResolver: (o, a) => a.loadingIndicator
|
|
377
|
-
})(({
|
|
378
|
-
theme: o
|
|
379
|
-
}) => ({
|
|
380
|
-
display: "none",
|
|
381
|
-
position: "absolute",
|
|
382
|
-
visibility: "visible",
|
|
383
|
-
variants: [{
|
|
384
|
-
props: {
|
|
385
|
-
loading: !0
|
|
386
|
-
},
|
|
387
|
-
style: {
|
|
388
|
-
display: "flex"
|
|
389
|
-
}
|
|
390
|
-
}, {
|
|
391
|
-
props: {
|
|
392
|
-
loadingPosition: "start"
|
|
393
|
-
},
|
|
394
|
-
style: {
|
|
395
|
-
left: 14
|
|
396
|
-
}
|
|
397
|
-
}, {
|
|
398
|
-
props: {
|
|
399
|
-
loadingPosition: "start",
|
|
400
|
-
size: "small"
|
|
401
|
-
},
|
|
402
|
-
style: {
|
|
403
|
-
left: 10
|
|
404
|
-
}
|
|
405
|
-
}, {
|
|
406
|
-
props: {
|
|
407
|
-
variant: "text",
|
|
408
|
-
loadingPosition: "start"
|
|
409
|
-
},
|
|
410
|
-
style: {
|
|
411
|
-
left: 6
|
|
412
|
-
}
|
|
413
|
-
}, {
|
|
414
|
-
props: {
|
|
415
|
-
loadingPosition: "center"
|
|
416
|
-
},
|
|
417
|
-
style: {
|
|
418
|
-
left: "50%",
|
|
419
|
-
transform: "translate(-50%)",
|
|
420
|
-
color: (o.vars || o).palette.action.disabled
|
|
421
|
-
}
|
|
422
|
-
}, {
|
|
423
|
-
props: {
|
|
424
|
-
loadingPosition: "end"
|
|
425
|
-
},
|
|
426
|
-
style: {
|
|
427
|
-
right: 14
|
|
428
|
-
}
|
|
429
|
-
}, {
|
|
430
|
-
props: {
|
|
431
|
-
loadingPosition: "end",
|
|
432
|
-
size: "small"
|
|
433
|
-
},
|
|
434
|
-
style: {
|
|
435
|
-
right: 10
|
|
436
|
-
}
|
|
437
|
-
}, {
|
|
438
|
-
props: {
|
|
439
|
-
variant: "text",
|
|
440
|
-
loadingPosition: "end"
|
|
441
|
-
},
|
|
442
|
-
style: {
|
|
443
|
-
right: 6
|
|
444
|
-
}
|
|
445
|
-
}, {
|
|
446
|
-
props: {
|
|
447
|
-
loadingPosition: "start",
|
|
448
|
-
fullWidth: !0
|
|
449
|
-
},
|
|
450
|
-
style: {
|
|
451
|
-
position: "relative",
|
|
452
|
-
left: -10
|
|
453
|
-
}
|
|
454
|
-
}, {
|
|
455
|
-
props: {
|
|
456
|
-
loadingPosition: "end",
|
|
457
|
-
fullWidth: !0
|
|
458
|
-
},
|
|
459
|
-
style: {
|
|
460
|
-
position: "relative",
|
|
461
|
-
right: -10
|
|
462
|
-
}
|
|
463
|
-
}]
|
|
464
|
-
})), W = b("span", {
|
|
465
|
-
name: "MuiButton",
|
|
466
|
-
slot: "LoadingIconPlaceholder",
|
|
467
|
-
overridesResolver: (o, a) => a.loadingIconPlaceholder
|
|
468
|
-
})({
|
|
469
|
-
display: "inline-block",
|
|
470
|
-
width: "1em",
|
|
471
|
-
height: "1em"
|
|
472
|
-
}), yo = /* @__PURE__ */ s.forwardRef(function(a, n) {
|
|
473
|
-
const i = s.useContext(T), p = s.useContext(L), g = Q(i, a), v = X({
|
|
474
|
-
props: g,
|
|
475
|
-
name: "MuiButton"
|
|
476
|
-
}), {
|
|
477
|
-
children: I,
|
|
478
|
-
color: x = "primary",
|
|
479
|
-
component: S = "button",
|
|
480
|
-
className: z,
|
|
481
|
-
disabled: C = !1,
|
|
482
|
-
disableElevation: k = !1,
|
|
483
|
-
disableFocusRipple: B = !1,
|
|
484
|
-
endIcon: P,
|
|
485
|
-
focusVisibleClassName: V,
|
|
486
|
-
fullWidth: j = !1,
|
|
487
|
-
id: D,
|
|
488
|
-
loading: u = null,
|
|
489
|
-
loadingIndicator: G,
|
|
490
|
-
loadingPosition: y = "center",
|
|
491
|
-
size: F = "medium",
|
|
492
|
-
startIcon: h,
|
|
493
|
-
type: m,
|
|
494
|
-
variant: U = "text",
|
|
495
|
-
..._
|
|
496
|
-
} = v, w = so(D), $ = G ?? /* @__PURE__ */ d(io, {
|
|
497
|
-
"aria-labelledby": w,
|
|
498
|
-
color: "inherit",
|
|
499
|
-
size: 16
|
|
500
|
-
}), l = {
|
|
501
|
-
...v,
|
|
502
|
-
color: x,
|
|
503
|
-
component: S,
|
|
504
|
-
disabled: C,
|
|
505
|
-
disableElevation: k,
|
|
506
|
-
disableFocusRipple: B,
|
|
507
|
-
fullWidth: j,
|
|
508
|
-
loading: u,
|
|
509
|
-
loadingIndicator: $,
|
|
510
|
-
loadingPosition: y,
|
|
511
|
-
size: F,
|
|
512
|
-
type: m,
|
|
513
|
-
variant: U
|
|
514
|
-
}, e = co(l), H = (h || u && y === "start") && /* @__PURE__ */ d(uo, {
|
|
515
|
-
className: e.startIcon,
|
|
516
|
-
ownerState: l,
|
|
517
|
-
children: h || /* @__PURE__ */ d(W, {
|
|
518
|
-
className: e.loadingIconPlaceholder,
|
|
519
|
-
ownerState: l
|
|
520
|
-
})
|
|
521
|
-
}), A = (P || u && y === "end") && /* @__PURE__ */ d(go, {
|
|
522
|
-
className: e.endIcon,
|
|
523
|
-
ownerState: l,
|
|
524
|
-
children: P || /* @__PURE__ */ d(W, {
|
|
525
|
-
className: e.loadingIconPlaceholder,
|
|
526
|
-
ownerState: l
|
|
527
|
-
})
|
|
528
|
-
}), q = p || "", R = typeof u == "boolean" ? (
|
|
529
|
-
// use plain HTML span to minimize the runtime overhead
|
|
530
|
-
/* @__PURE__ */ d("span", {
|
|
531
|
-
className: e.loadingWrapper,
|
|
532
|
-
style: {
|
|
533
|
-
display: "contents"
|
|
534
|
-
},
|
|
535
|
-
children: u && /* @__PURE__ */ d(vo, {
|
|
536
|
-
className: e.loadingIndicator,
|
|
537
|
-
ownerState: l,
|
|
538
|
-
children: $
|
|
539
|
-
})
|
|
540
|
-
})
|
|
541
|
-
) : null;
|
|
542
|
-
return /* @__PURE__ */ ao(po, {
|
|
543
|
-
ownerState: l,
|
|
544
|
-
className: E(i.className, e.root, z, q),
|
|
545
|
-
component: S,
|
|
546
|
-
disabled: C || u,
|
|
547
|
-
focusRipple: !B,
|
|
548
|
-
focusVisibleClassName: E(e.focusVisible, V),
|
|
549
|
-
ref: n,
|
|
550
|
-
type: m,
|
|
551
|
-
id: w,
|
|
552
|
-
..._,
|
|
553
|
-
classes: e,
|
|
554
|
-
children: [H, y !== "end" && R, I, y === "end" && R, A]
|
|
555
|
-
});
|
|
556
|
-
});
|
|
557
|
-
process.env.NODE_ENV !== "production" && (yo.propTypes = {
|
|
558
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
559
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
560
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
561
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
562
|
-
/**
|
|
563
|
-
* The content of the component.
|
|
564
|
-
*/
|
|
565
|
-
children: t.node,
|
|
566
|
-
/**
|
|
567
|
-
* Override or extend the styles applied to the component.
|
|
568
|
-
*/
|
|
569
|
-
classes: t.object,
|
|
570
|
-
/**
|
|
571
|
-
* @ignore
|
|
572
|
-
*/
|
|
573
|
-
className: t.string,
|
|
574
|
-
/**
|
|
575
|
-
* The color of the component.
|
|
576
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
577
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
578
|
-
* @default 'primary'
|
|
579
|
-
*/
|
|
580
|
-
color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
|
|
581
|
-
/**
|
|
582
|
-
* The component used for the root node.
|
|
583
|
-
* Either a string to use a HTML element or a component.
|
|
584
|
-
*/
|
|
585
|
-
component: t.elementType,
|
|
586
|
-
/**
|
|
587
|
-
* If `true`, the component is disabled.
|
|
588
|
-
* @default false
|
|
589
|
-
*/
|
|
590
|
-
disabled: t.bool,
|
|
591
|
-
/**
|
|
592
|
-
* If `true`, no elevation is used.
|
|
593
|
-
* @default false
|
|
594
|
-
*/
|
|
595
|
-
disableElevation: t.bool,
|
|
596
|
-
/**
|
|
597
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
598
|
-
* @default false
|
|
599
|
-
*/
|
|
600
|
-
disableFocusRipple: t.bool,
|
|
601
|
-
/**
|
|
602
|
-
* If `true`, the ripple effect is disabled.
|
|
603
|
-
*
|
|
604
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
605
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
606
|
-
* @default false
|
|
607
|
-
*/
|
|
608
|
-
disableRipple: t.bool,
|
|
609
|
-
/**
|
|
610
|
-
* Element placed after the children.
|
|
611
|
-
*/
|
|
612
|
-
endIcon: t.node,
|
|
613
|
-
/**
|
|
614
|
-
* @ignore
|
|
615
|
-
*/
|
|
616
|
-
focusVisibleClassName: t.string,
|
|
617
|
-
/**
|
|
618
|
-
* If `true`, the button will take up the full width of its container.
|
|
619
|
-
* @default false
|
|
620
|
-
*/
|
|
621
|
-
fullWidth: t.bool,
|
|
622
|
-
/**
|
|
623
|
-
* The URL to link to when the button is clicked.
|
|
624
|
-
* If defined, an `a` element will be used as the root node.
|
|
625
|
-
*/
|
|
626
|
-
href: t.string,
|
|
627
|
-
/**
|
|
628
|
-
* @ignore
|
|
629
|
-
*/
|
|
630
|
-
id: t.string,
|
|
631
|
-
/**
|
|
632
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
|
633
|
-
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
|
634
|
-
* @default null
|
|
635
|
-
*/
|
|
636
|
-
loading: t.bool,
|
|
637
|
-
/**
|
|
638
|
-
* Element placed before the children if the button is in loading state.
|
|
639
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
640
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
641
|
-
* @default <CircularProgress color="inherit" size={16} />
|
|
642
|
-
*/
|
|
643
|
-
loadingIndicator: t.node,
|
|
644
|
-
/**
|
|
645
|
-
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
646
|
-
* @default 'center'
|
|
647
|
-
*/
|
|
648
|
-
loadingPosition: t.oneOf(["center", "end", "start"]),
|
|
649
|
-
/**
|
|
650
|
-
* The size of the component.
|
|
651
|
-
* `small` is equivalent to the dense button styling.
|
|
652
|
-
* @default 'medium'
|
|
653
|
-
*/
|
|
654
|
-
size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
|
|
655
|
-
/**
|
|
656
|
-
* Element placed before the children.
|
|
657
|
-
*/
|
|
658
|
-
startIcon: t.node,
|
|
659
|
-
/**
|
|
660
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
661
|
-
*/
|
|
662
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
663
|
-
/**
|
|
664
|
-
* @ignore
|
|
665
|
-
*/
|
|
666
|
-
type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
|
|
667
|
-
/**
|
|
668
|
-
* The variant to use.
|
|
669
|
-
* @default 'text'
|
|
670
|
-
*/
|
|
671
|
-
variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
|
|
672
|
-
});
|
|
673
|
-
export {
|
|
674
|
-
yo as B,
|
|
675
|
-
so as u
|
|
676
|
-
};
|