@hai-dev/ui-kit 1.0.6 → 1.0.8
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-CiYPzbPd.js → Box-D8oKffw9.js} +18 -17
- package/dist/{Button-chJUX25I.js → Button-BBF8hp7e.js} +16 -15
- package/dist/{ButtonBase-DZwhOh56.js → ButtonBase-T2KH9jsD.js} +2 -2
- package/dist/{CircularProgress-BCrSQadM.js → CircularProgress-BQQkuSse.js} +110 -136
- package/dist/{DialogTitle-BUcXvkzd.js → Dialog-B97c7WYP.js} +765 -1010
- package/dist/DialogTitle-Du4tqTs0.js +254 -0
- package/dist/{Typography-BmYEfS8y.js → Typography-r_TXEM1e.js} +4 -4
- package/dist/assets/upload-dialog-errors.css +1 -0
- package/dist/assets/upload-dialog.css +1 -1
- package/dist/{chainPropTypes-HYSaT0L0.js → chainPropTypes-KIxDwPzf.js} +15 -15
- package/dist/components/button/button.js +1 -1
- package/dist/components/circular-progress-loader/circular-progress-loader.js +3 -3
- package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +26 -25
- package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +1 -1
- package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +17 -17
- package/dist/components/photo-crop-uploader/components/upload-dialog/types.d.ts +12 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.d.ts +3 -0
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js +10 -0
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +152 -129
- package/dist/components/photo-crop-uploader/constants.d.ts +3 -0
- package/dist/components/photo-crop-uploader/constants.js +35 -32
- package/dist/components/photo-crop-uploader/locale.js +8 -2
- package/dist/components/photo-crop-uploader/photo-crop-uploader.js +191 -152
- package/dist/components/photo-crop-uploader/types.d.ts +17 -3
- package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.d.ts +2 -1
- package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.js +26 -19
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +2 -1
- package/dist/createSimplePaletteValueFilter-nb0wSOzC.js +30 -0
- package/dist/{createTheme-BfVKUMHQ.js → createTheme-RvzX1VSA.js} +9 -9
- package/dist/extendSxProp-BW9e6LtL.js +36 -0
- package/dist/upload-dialog-errors-ku54UrUb.js +365 -0
- package/dist/useTheme-CsjkCBFJ.js +16 -0
- package/package.json +1 -1
- package/dist/extendSxProp-bpz0eCso.js +0 -49
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { s as
|
|
1
|
+
import { s as x, f as p, c as h, a as T, C as y, h as B, j as N, P as e } from "./createTheme-RvzX1VSA.js";
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import { jsx as b } from "react/jsx-runtime";
|
|
4
|
-
import { u as g
|
|
5
|
-
|
|
4
|
+
import { u as g } from "./useTheme-CsjkCBFJ.js";
|
|
5
|
+
import { e as j } from "./extendSxProp-BW9e6LtL.js";
|
|
6
|
+
function v(n = {}) {
|
|
6
7
|
const {
|
|
7
8
|
themeId: t,
|
|
8
|
-
defaultTheme:
|
|
9
|
+
defaultTheme: m,
|
|
9
10
|
defaultClassName: a = "MuiBox-root",
|
|
10
11
|
generateClassName: r
|
|
11
|
-
} = n,
|
|
12
|
+
} = n, c = x("div", {
|
|
12
13
|
shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
|
|
13
14
|
})(p);
|
|
14
15
|
return /* @__PURE__ */ C.forwardRef(function(l, f) {
|
|
15
|
-
const s = g(
|
|
16
|
+
const s = g(m), {
|
|
16
17
|
className: d,
|
|
17
|
-
component:
|
|
18
|
-
...
|
|
19
|
-
} =
|
|
20
|
-
return /* @__PURE__ */ b(
|
|
21
|
-
as:
|
|
18
|
+
component: i = "div",
|
|
19
|
+
...u
|
|
20
|
+
} = j(l);
|
|
21
|
+
return /* @__PURE__ */ b(c, {
|
|
22
|
+
as: i,
|
|
22
23
|
ref: f,
|
|
23
24
|
className: h(d, r ? r(a) : a),
|
|
24
25
|
theme: t && s[t] || s,
|
|
25
|
-
...
|
|
26
|
+
...u
|
|
26
27
|
});
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
+
const E = T("MuiBox", ["root"]), O = N(), P = v({
|
|
30
31
|
themeId: B,
|
|
31
|
-
defaultTheme:
|
|
32
|
-
defaultClassName:
|
|
32
|
+
defaultTheme: O,
|
|
33
|
+
defaultClassName: E.root,
|
|
33
34
|
generateClassName: y.generate
|
|
34
35
|
});
|
|
35
|
-
process.env.NODE_ENV !== "production" && (
|
|
36
|
+
process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
36
37
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
37
38
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
38
39
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -52,5 +53,5 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
|
52
53
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
53
54
|
});
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
P as B
|
|
56
57
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as y from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { m as X, c as Y
|
|
5
|
-
import { jsxs as
|
|
6
|
-
import { u as
|
|
7
|
-
import { B as
|
|
2
|
+
import { a as H, g as A, c as R, b as r, P as t } from "./createTheme-RvzX1VSA.js";
|
|
3
|
+
import { d as q, u as J, s as f, c as K, r as Q } from "./chainPropTypes-KIxDwPzf.js";
|
|
4
|
+
import { m as X, c as Y } from "./createSimplePaletteValueFilter-nb0wSOzC.js";
|
|
5
|
+
import { jsxs as Z, jsx as d } from "react/jsx-runtime";
|
|
6
|
+
import { u as oo } from "./useId-CK6Kn3Tn.js";
|
|
7
|
+
import { B as to } from "./ButtonBase-T2KH9jsD.js";
|
|
8
|
+
import { C as no } from "./CircularProgress-BQQkuSse.js";
|
|
8
9
|
function ao(o) {
|
|
9
10
|
return A("MuiButton", o);
|
|
10
11
|
}
|
|
@@ -61,7 +62,7 @@ const io = (o) => {
|
|
|
61
62
|
fontSize: 22
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
|
-
}], ro = f(
|
|
65
|
+
}], ro = f(to, {
|
|
65
66
|
shouldForwardProp: (o) => Q(o) || o === "classes",
|
|
66
67
|
name: "MuiButton",
|
|
67
68
|
slot: "Root",
|
|
@@ -472,11 +473,11 @@ const io = (o) => {
|
|
|
472
473
|
loadingIndicator: V,
|
|
473
474
|
loadingPosition: v = "center",
|
|
474
475
|
size: j = "medium",
|
|
475
|
-
startIcon:
|
|
476
|
-
type:
|
|
476
|
+
startIcon: m,
|
|
477
|
+
type: w,
|
|
477
478
|
variant: D = "text",
|
|
478
479
|
...F
|
|
479
|
-
} = g, h =
|
|
480
|
+
} = g, h = oo(P), $ = V ?? /* @__PURE__ */ d(no, {
|
|
480
481
|
"aria-labelledby": h,
|
|
481
482
|
color: "inherit",
|
|
482
483
|
size: 16
|
|
@@ -492,12 +493,12 @@ const io = (o) => {
|
|
|
492
493
|
loadingIndicator: $,
|
|
493
494
|
loadingPosition: v,
|
|
494
495
|
size: j,
|
|
495
|
-
type:
|
|
496
|
+
type: w,
|
|
496
497
|
variant: D
|
|
497
|
-
}, e = io(l), G = (
|
|
498
|
+
}, e = io(l), G = (m || s && v === "start") && /* @__PURE__ */ d(eo, {
|
|
498
499
|
className: e.startIcon,
|
|
499
500
|
ownerState: l,
|
|
500
|
-
children:
|
|
501
|
+
children: m || /* @__PURE__ */ d(E, {
|
|
501
502
|
className: e.loadingIconPlaceholder,
|
|
502
503
|
ownerState: l
|
|
503
504
|
})
|
|
@@ -522,7 +523,7 @@ const io = (o) => {
|
|
|
522
523
|
})
|
|
523
524
|
})
|
|
524
525
|
) : null;
|
|
525
|
-
return /* @__PURE__ */
|
|
526
|
+
return /* @__PURE__ */ Z(ro, {
|
|
526
527
|
ownerState: l,
|
|
527
528
|
className: R(i.className, e.root, z, _),
|
|
528
529
|
component: x,
|
|
@@ -530,7 +531,7 @@ const io = (o) => {
|
|
|
530
531
|
focusRipple: !B,
|
|
531
532
|
focusVisibleClassName: R(e.focusVisible, M),
|
|
532
533
|
ref: a,
|
|
533
|
-
type:
|
|
534
|
+
type: w,
|
|
534
535
|
id: s ? h : P,
|
|
535
536
|
...F,
|
|
536
537
|
classes: e,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
2
|
import X, { isValidElement as W, cloneElement as G, Children as Ie } from "react";
|
|
3
|
-
import { _ as Be, P as n, c as C,
|
|
3
|
+
import { _ as Be, P as n, c as C, a as fe, g as Le } from "./createTheme-RvzX1VSA.js";
|
|
4
4
|
import { jsx as F, jsxs as ke } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
5
|
+
import { b as je, u as de, s as ne, k as oe, c as $e } from "./chainPropTypes-KIxDwPzf.js";
|
|
6
6
|
const Fe = typeof window < "u" ? c.useLayoutEffect : c.useEffect;
|
|
7
7
|
function Z(e) {
|
|
8
8
|
const t = c.useRef(e);
|
|
@@ -1,37 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as y, jsxs as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function A(e) {
|
|
9
|
-
let r, a;
|
|
10
|
-
return function(i) {
|
|
11
|
-
let o = r;
|
|
12
|
-
return (o === void 0 || i.theme !== a) && (w.theme = i.theme, o = V(e(w)), r = o, a = i.theme), o;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
const v = A;
|
|
16
|
-
function K(e) {
|
|
17
|
-
return typeof e.main == "string";
|
|
18
|
-
}
|
|
19
|
-
function W(e, r = []) {
|
|
20
|
-
if (!K(e))
|
|
21
|
-
return !1;
|
|
22
|
-
for (const a of r)
|
|
23
|
-
if (!e.hasOwnProperty(a) || typeof e[a] != "string")
|
|
24
|
-
return !1;
|
|
25
|
-
return !0;
|
|
26
|
-
}
|
|
27
|
-
function _(e = []) {
|
|
28
|
-
return ([, r]) => r && W(r, e);
|
|
29
|
-
}
|
|
30
|
-
function B(e) {
|
|
31
|
-
return R("MuiCircularProgress", e);
|
|
1
|
+
import * as O from "react";
|
|
2
|
+
import { g as N, a as j, c as R, b as l, P as e } from "./createTheme-RvzX1VSA.js";
|
|
3
|
+
import { m as g, c as U } from "./createSimplePaletteValueFilter-nb0wSOzC.js";
|
|
4
|
+
import { jsx as y, jsxs as E } from "react/jsx-runtime";
|
|
5
|
+
import { u as I, s as p, c as z, a as w, k as T, b as F } from "./chainPropTypes-KIxDwPzf.js";
|
|
6
|
+
function V(r) {
|
|
7
|
+
return N("MuiCircularProgress", r);
|
|
32
8
|
}
|
|
33
9
|
j("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
34
|
-
const
|
|
10
|
+
const a = 44, k = T`
|
|
35
11
|
0% {
|
|
36
12
|
transform: rotate(0deg);
|
|
37
13
|
}
|
|
@@ -39,7 +15,7 @@ const s = 44, k = $`
|
|
|
39
15
|
100% {
|
|
40
16
|
transform: rotate(360deg);
|
|
41
17
|
}
|
|
42
|
-
`,
|
|
18
|
+
`, v = T`
|
|
43
19
|
0% {
|
|
44
20
|
stroke-dasharray: 1px, 200px;
|
|
45
21
|
stroke-dashoffset: 0;
|
|
@@ -54,34 +30,34 @@ const s = 44, k = $`
|
|
|
54
30
|
stroke-dasharray: 1px, 200px;
|
|
55
31
|
stroke-dashoffset: -126px;
|
|
56
32
|
}
|
|
57
|
-
`,
|
|
33
|
+
`, A = typeof k != "string" ? w`
|
|
58
34
|
animation: ${k} 1.4s linear infinite;
|
|
59
|
-
` : null,
|
|
60
|
-
animation: ${
|
|
61
|
-
` : null,
|
|
35
|
+
` : null, K = typeof v != "string" ? w`
|
|
36
|
+
animation: ${v} 1.4s ease-in-out infinite;
|
|
37
|
+
` : null, W = (r) => {
|
|
62
38
|
const {
|
|
63
|
-
classes:
|
|
64
|
-
variant:
|
|
65
|
-
color:
|
|
66
|
-
disableShrink:
|
|
67
|
-
} =
|
|
68
|
-
root: ["root",
|
|
39
|
+
classes: t,
|
|
40
|
+
variant: s,
|
|
41
|
+
color: n,
|
|
42
|
+
disableShrink: m
|
|
43
|
+
} = r, u = {
|
|
44
|
+
root: ["root", s, `color${l(n)}`],
|
|
69
45
|
svg: ["svg"],
|
|
70
46
|
track: ["track"],
|
|
71
|
-
circle: ["circle", `circle${
|
|
47
|
+
circle: ["circle", `circle${l(s)}`, m && "circleDisableShrink"]
|
|
72
48
|
};
|
|
73
|
-
return
|
|
74
|
-
},
|
|
49
|
+
return z(u, V, t);
|
|
50
|
+
}, B = p("span", {
|
|
75
51
|
name: "MuiCircularProgress",
|
|
76
52
|
slot: "Root",
|
|
77
|
-
overridesResolver: (
|
|
53
|
+
overridesResolver: (r, t) => {
|
|
78
54
|
const {
|
|
79
|
-
ownerState:
|
|
80
|
-
} =
|
|
81
|
-
return [
|
|
55
|
+
ownerState: s
|
|
56
|
+
} = r;
|
|
57
|
+
return [t.root, t[s.variant], t[`color${l(s.color)}`]];
|
|
82
58
|
}
|
|
83
|
-
})(
|
|
84
|
-
theme:
|
|
59
|
+
})(g(({
|
|
60
|
+
theme: r
|
|
85
61
|
}) => ({
|
|
86
62
|
display: "inline-block",
|
|
87
63
|
variants: [{
|
|
@@ -89,40 +65,40 @@ const s = 44, k = $`
|
|
|
89
65
|
variant: "determinate"
|
|
90
66
|
},
|
|
91
67
|
style: {
|
|
92
|
-
transition:
|
|
68
|
+
transition: r.transitions.create("transform")
|
|
93
69
|
}
|
|
94
70
|
}, {
|
|
95
71
|
props: {
|
|
96
72
|
variant: "indeterminate"
|
|
97
73
|
},
|
|
98
|
-
style:
|
|
74
|
+
style: A || {
|
|
99
75
|
animation: `${k} 1.4s linear infinite`
|
|
100
76
|
}
|
|
101
|
-
}, ...Object.entries(
|
|
77
|
+
}, ...Object.entries(r.palette).filter(U()).map(([t]) => ({
|
|
102
78
|
props: {
|
|
103
|
-
color:
|
|
79
|
+
color: t
|
|
104
80
|
},
|
|
105
81
|
style: {
|
|
106
|
-
color: (
|
|
82
|
+
color: (r.vars || r).palette[t].main
|
|
107
83
|
}
|
|
108
84
|
}))]
|
|
109
|
-
}))),
|
|
85
|
+
}))), G = p("svg", {
|
|
110
86
|
name: "MuiCircularProgress",
|
|
111
87
|
slot: "Svg"
|
|
112
88
|
})({
|
|
113
89
|
display: "block"
|
|
114
90
|
// Keeps the progress centered
|
|
115
|
-
}),
|
|
91
|
+
}), Y = p("circle", {
|
|
116
92
|
name: "MuiCircularProgress",
|
|
117
93
|
slot: "Circle",
|
|
118
|
-
overridesResolver: (
|
|
94
|
+
overridesResolver: (r, t) => {
|
|
119
95
|
const {
|
|
120
|
-
ownerState:
|
|
121
|
-
} =
|
|
122
|
-
return [
|
|
96
|
+
ownerState: s
|
|
97
|
+
} = r;
|
|
98
|
+
return [t.circle, t[`circle${l(s.variant)}`], s.disableShrink && t.circleDisableShrink];
|
|
123
99
|
}
|
|
124
|
-
})(
|
|
125
|
-
theme:
|
|
100
|
+
})(g(({
|
|
101
|
+
theme: r
|
|
126
102
|
}) => ({
|
|
127
103
|
stroke: "currentColor",
|
|
128
104
|
variants: [{
|
|
@@ -130,7 +106,7 @@ const s = 44, k = $`
|
|
|
130
106
|
variant: "determinate"
|
|
131
107
|
},
|
|
132
108
|
style: {
|
|
133
|
-
transition:
|
|
109
|
+
transition: r.transitions.create("stroke-dashoffset")
|
|
134
110
|
}
|
|
135
111
|
}, {
|
|
136
112
|
props: {
|
|
@@ -144,90 +120,90 @@ const s = 44, k = $`
|
|
|
144
120
|
}
|
|
145
121
|
}, {
|
|
146
122
|
props: ({
|
|
147
|
-
ownerState:
|
|
148
|
-
}) =>
|
|
149
|
-
style:
|
|
123
|
+
ownerState: t
|
|
124
|
+
}) => t.variant === "indeterminate" && !t.disableShrink,
|
|
125
|
+
style: K || {
|
|
150
126
|
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
151
|
-
animation: `${
|
|
127
|
+
animation: `${v} 1.4s ease-in-out infinite`
|
|
152
128
|
}
|
|
153
129
|
}]
|
|
154
|
-
}))),
|
|
130
|
+
}))), Z = p("circle", {
|
|
155
131
|
name: "MuiCircularProgress",
|
|
156
132
|
slot: "Track"
|
|
157
|
-
})(
|
|
158
|
-
theme:
|
|
133
|
+
})(g(({
|
|
134
|
+
theme: r
|
|
159
135
|
}) => ({
|
|
160
136
|
stroke: "currentColor",
|
|
161
|
-
opacity: (
|
|
162
|
-
}))),
|
|
163
|
-
const
|
|
164
|
-
props:
|
|
137
|
+
opacity: (r.vars || r).palette.action.activatedOpacity
|
|
138
|
+
}))), _ = /* @__PURE__ */ O.forwardRef(function(t, s) {
|
|
139
|
+
const n = I({
|
|
140
|
+
props: t,
|
|
165
141
|
name: "MuiCircularProgress"
|
|
166
142
|
}), {
|
|
167
|
-
className:
|
|
168
|
-
color:
|
|
169
|
-
disableShrink:
|
|
170
|
-
enableTrackSlot:
|
|
171
|
-
size:
|
|
143
|
+
className: m,
|
|
144
|
+
color: u = "primary",
|
|
145
|
+
disableShrink: $ = !1,
|
|
146
|
+
enableTrackSlot: b = !1,
|
|
147
|
+
size: f = 40,
|
|
172
148
|
style: D,
|
|
173
|
-
thickness:
|
|
149
|
+
thickness: o = 3.6,
|
|
174
150
|
value: d = 0,
|
|
175
|
-
variant:
|
|
176
|
-
...
|
|
177
|
-
} =
|
|
178
|
-
...
|
|
179
|
-
color:
|
|
180
|
-
disableShrink:
|
|
181
|
-
size:
|
|
182
|
-
thickness:
|
|
151
|
+
variant: S = "indeterminate",
|
|
152
|
+
...M
|
|
153
|
+
} = n, i = {
|
|
154
|
+
...n,
|
|
155
|
+
color: u,
|
|
156
|
+
disableShrink: $,
|
|
157
|
+
size: f,
|
|
158
|
+
thickness: o,
|
|
183
159
|
value: d,
|
|
184
|
-
variant:
|
|
185
|
-
enableTrackSlot:
|
|
186
|
-
},
|
|
187
|
-
if (
|
|
188
|
-
const x = 2 * Math.PI * ((
|
|
160
|
+
variant: S,
|
|
161
|
+
enableTrackSlot: b
|
|
162
|
+
}, c = W(i), h = {}, C = {}, P = {};
|
|
163
|
+
if (S === "determinate") {
|
|
164
|
+
const x = 2 * Math.PI * ((a - o) / 2);
|
|
189
165
|
h.strokeDasharray = x.toFixed(3), P["aria-valuenow"] = Math.round(d), h.strokeDashoffset = `${((100 - d) / 100 * x).toFixed(3)}px`, C.transform = "rotate(-90deg)";
|
|
190
166
|
}
|
|
191
|
-
return /* @__PURE__ */ y(
|
|
192
|
-
className:
|
|
167
|
+
return /* @__PURE__ */ y(B, {
|
|
168
|
+
className: R(c.root, m),
|
|
193
169
|
style: {
|
|
194
|
-
width:
|
|
195
|
-
height:
|
|
170
|
+
width: f,
|
|
171
|
+
height: f,
|
|
196
172
|
...C,
|
|
197
173
|
...D
|
|
198
174
|
},
|
|
199
|
-
ownerState:
|
|
200
|
-
ref:
|
|
175
|
+
ownerState: i,
|
|
176
|
+
ref: s,
|
|
201
177
|
role: "progressbar",
|
|
202
178
|
...P,
|
|
203
|
-
...
|
|
204
|
-
children: /* @__PURE__ */
|
|
205
|
-
className:
|
|
206
|
-
ownerState:
|
|
207
|
-
viewBox: `${
|
|
208
|
-
children: [
|
|
209
|
-
className:
|
|
210
|
-
ownerState:
|
|
211
|
-
cx:
|
|
212
|
-
cy:
|
|
213
|
-
r: (
|
|
179
|
+
...M,
|
|
180
|
+
children: /* @__PURE__ */ E(G, {
|
|
181
|
+
className: c.svg,
|
|
182
|
+
ownerState: i,
|
|
183
|
+
viewBox: `${a / 2} ${a / 2} ${a} ${a}`,
|
|
184
|
+
children: [b ? /* @__PURE__ */ y(Z, {
|
|
185
|
+
className: c.track,
|
|
186
|
+
ownerState: i,
|
|
187
|
+
cx: a,
|
|
188
|
+
cy: a,
|
|
189
|
+
r: (a - o) / 2,
|
|
214
190
|
fill: "none",
|
|
215
|
-
strokeWidth:
|
|
191
|
+
strokeWidth: o,
|
|
216
192
|
"aria-hidden": "true"
|
|
217
|
-
}) : null, /* @__PURE__ */ y(
|
|
218
|
-
className:
|
|
193
|
+
}) : null, /* @__PURE__ */ y(Y, {
|
|
194
|
+
className: c.circle,
|
|
219
195
|
style: h,
|
|
220
|
-
ownerState:
|
|
221
|
-
cx:
|
|
222
|
-
cy:
|
|
223
|
-
r: (
|
|
196
|
+
ownerState: i,
|
|
197
|
+
cx: a,
|
|
198
|
+
cy: a,
|
|
199
|
+
r: (a - o) / 2,
|
|
224
200
|
fill: "none",
|
|
225
|
-
strokeWidth:
|
|
201
|
+
strokeWidth: o
|
|
226
202
|
})]
|
|
227
203
|
})
|
|
228
204
|
});
|
|
229
205
|
});
|
|
230
|
-
process.env.NODE_ENV !== "production" && (
|
|
206
|
+
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
231
207
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
232
208
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
233
209
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -235,65 +211,63 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
235
211
|
/**
|
|
236
212
|
* Override or extend the styles applied to the component.
|
|
237
213
|
*/
|
|
238
|
-
classes:
|
|
214
|
+
classes: e.object,
|
|
239
215
|
/**
|
|
240
216
|
* @ignore
|
|
241
217
|
*/
|
|
242
|
-
className:
|
|
218
|
+
className: e.string,
|
|
243
219
|
/**
|
|
244
220
|
* The color of the component.
|
|
245
221
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
246
222
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
247
223
|
* @default 'primary'
|
|
248
224
|
*/
|
|
249
|
-
color:
|
|
225
|
+
color: e.oneOfType([e.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
250
226
|
/**
|
|
251
227
|
* If `true`, the shrink animation is disabled.
|
|
252
228
|
* This only works if variant is `indeterminate`.
|
|
253
229
|
* @default false
|
|
254
230
|
*/
|
|
255
|
-
disableShrink:
|
|
231
|
+
disableShrink: F(e.bool, (r) => r.disableShrink && r.variant && r.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
256
232
|
/**
|
|
257
233
|
* If `true`, a track circle slot is mounted to show a subtle background for the progress.
|
|
258
234
|
* The `size` and `thickness` apply to the track slot to be consistent with the progress circle.
|
|
259
235
|
* @default false
|
|
260
236
|
*/
|
|
261
|
-
enableTrackSlot:
|
|
237
|
+
enableTrackSlot: e.bool,
|
|
262
238
|
/**
|
|
263
239
|
* The size of the component.
|
|
264
240
|
* If using a number, the pixel unit is assumed.
|
|
265
241
|
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
266
242
|
* @default 40
|
|
267
243
|
*/
|
|
268
|
-
size:
|
|
244
|
+
size: e.oneOfType([e.number, e.string]),
|
|
269
245
|
/**
|
|
270
246
|
* @ignore
|
|
271
247
|
*/
|
|
272
|
-
style:
|
|
248
|
+
style: e.object,
|
|
273
249
|
/**
|
|
274
250
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
275
251
|
*/
|
|
276
|
-
sx:
|
|
252
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
277
253
|
/**
|
|
278
254
|
* The thickness of the circle.
|
|
279
255
|
* @default 3.6
|
|
280
256
|
*/
|
|
281
|
-
thickness:
|
|
257
|
+
thickness: e.number,
|
|
282
258
|
/**
|
|
283
259
|
* The value of the progress indicator for the determinate variant.
|
|
284
260
|
* Value between 0 and 100.
|
|
285
261
|
* @default 0
|
|
286
262
|
*/
|
|
287
|
-
value:
|
|
263
|
+
value: e.number,
|
|
288
264
|
/**
|
|
289
265
|
* The variant to use.
|
|
290
266
|
* Use indeterminate when there is no progress value.
|
|
291
267
|
* @default 'indeterminate'
|
|
292
268
|
*/
|
|
293
|
-
variant:
|
|
269
|
+
variant: e.oneOf(["determinate", "indeterminate"])
|
|
294
270
|
});
|
|
295
271
|
export {
|
|
296
|
-
|
|
297
|
-
_ as c,
|
|
298
|
-
v as m
|
|
272
|
+
_ as C
|
|
299
273
|
};
|