@cgi-learning-hub/ui 1.2.0-dev.1730801938 → 1.2.0-dev.1730802047
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/Backdrop-Br80Nd7t.cjs +1 -0
- package/dist/{Backdrop-NYR-wJpx.js → Backdrop-DZxABi0e.js} +290 -289
- package/dist/{Box-BOwB0WGP.js → Box-CCNJo4xc.js} +3 -3
- package/dist/Box-CHgIMOMk.cjs +1 -0
- package/dist/Button-BZ3CM4Ou.cjs +1 -0
- package/dist/{Button-DOz72eRZ.js → Button-BbB53SmV.js} +76 -78
- package/dist/{ButtonBase-Cc4QJr0W.js → ButtonBase-CWK9_uNc.js} +78 -79
- package/dist/ButtonBase-CfGA-YGO.cjs +75 -0
- package/dist/{CircularProgress-CQAqrfVo.js → CircularProgress-CCcQGuv7.js} +60 -59
- package/dist/CircularProgress-CjmXu0NI.cjs +28 -0
- package/dist/DatePicker-BSHPkMOi.cjs +17 -0
- package/dist/{DatePicker-DLbJ-Y35.js → DatePicker-DhT2Azgz.js} +3796 -3827
- package/dist/DefaultButton-BDGm3E32.cjs +1 -0
- package/dist/{DefaultButton-xBiX39mb.js → DefaultButton-DRX60ZWo.js} +22 -23
- package/dist/DefaultPropsProvider-BL9ahJBw.cjs +17 -0
- package/dist/{DefaultPropsProvider-3gIWHkeE.js → DefaultPropsProvider-DtDY-TZb.js} +2 -1
- package/dist/{IconButton-DQ115lN0.js → IconButton-CJADlk4N.js} +60 -70
- package/dist/IconButton-CQIpnm5Y.cjs +2 -0
- package/dist/{InputAdornment-CQEOPpj_.cjs → InputAdornment-BgclYUXK.cjs} +1 -1
- package/dist/{InputAdornment-C91s059c.js → InputAdornment-DB3IsWy6.js} +5 -5
- package/dist/InputBase-BgPlZIwC.cjs +3 -0
- package/dist/{InputBase-BqiRpsZm.js → InputBase-D4oDoC6z.js} +76 -77
- package/dist/{Stack-CRf_NOj5.js → Stack-DkKYFn95.js} +13 -13
- package/dist/Stack-h0ulkByu.cjs +1 -0
- package/dist/{Tabs-ClaQRksF.js → Tabs-COdZZ9QD.js} +13 -14
- package/dist/Tabs-CVG205ba.cjs +4 -0
- package/dist/TextField-DYHbqOp9.cjs +14 -0
- package/dist/{TextField-poQmKhLJ.js → TextField-PKXBC85g.js} +1457 -1415
- package/dist/{Tooltip-h4eHRca2.js → Tooltip-Bjvuk-Lb.js} +1117 -1099
- package/dist/Tooltip-D8bjRAAW.cjs +100 -0
- package/dist/Typography-Ddo2XgEF.cjs +1 -0
- package/dist/{Typography-Brk7us7e.js → Typography-NOCV1w8B.js} +38 -37
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.stories.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButtonIcon.es.js +15 -14
- package/dist/components/DefaultButton/index.cjs.js +1 -1
- package/dist/components/DefaultButton/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +1675 -679
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -1
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -33
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +11 -17
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/Loader/Loader.stories.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +13 -19
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/TabList.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.es.js +11 -12
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +17 -17
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
- package/dist/{createSvgIcon-BHNwYp0k.cjs → createSvgIcon-BH5C6nT9.cjs} +1 -1
- package/dist/{createSvgIcon-CWZXMIY6.js → createSvgIcon-CCVUTVqS.js} +3 -3
- package/dist/{extendSxProp-h_vH_Efx.cjs → extendSxProp-CxNq_K9W.cjs} +1 -1
- package/dist/{extendSxProp-Cr6SqfyU.js → extendSxProp-ZFHbVaVf.js} +1 -1
- package/dist/{fr-CrUmNQ8y.js → fr-D-ljiFMc.js} +1 -1
- package/dist/{fr-Dh4vpkIL.cjs → fr-W-CTnhjw.cjs} +1 -1
- package/dist/identifier-8mtH7ZcP.cjs +59 -0
- package/dist/{identifier-vL3mZxtO.js → identifier-C_jicJ2R.js} +1001 -1013
- package/dist/{index-PJSlkMUh.js → index-1jrO2HSs.js} +3 -3
- package/dist/{index-DJfvQgvG.cjs → index-8rVsYib2.cjs} +1 -1
- package/dist/{index-CrWaTytV.js → index-C-X1cQ2Z.js} +4 -4
- package/dist/index-DoBWXbUD.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +17 -17
- package/dist/memoTheme-B1D0RO58.js +15 -0
- package/dist/memoTheme-K38b4dAY.cjs +1 -0
- package/dist/{refType-CslmN23s.js → useEnhancedEffect-De8QYV_L.js} +11 -9
- package/dist/useEnhancedEffect-Dl7COs_u.cjs +1 -0
- package/dist/useForkRef-D-DyzOXj.js +21 -0
- package/dist/useForkRef-D81w5oMb.cjs +1 -0
- package/dist/{useTheme-BZN9T64v.js → useTheme-C18aJRpp.js} +1 -1
- package/dist/{useTheme-Cy30-54x.cjs → useTheme-D0cUaNbZ.cjs} +1 -1
- package/dist/{useTheme-BcsinTgi.cjs → useTheme-DMgnO6le.cjs} +1 -1
- package/dist/{useTheme-Cs6W-67J.js → useTheme-DR3unGHQ.js} +3 -3
- package/dist/useThemeProps-9fosi2Au.cjs +1 -0
- package/dist/useThemeProps-B8ZTH6Oh.cjs +1 -0
- package/dist/useThemeProps-BcqXKsD0.js +24 -0
- package/dist/useThemeProps-BwLSmftx.js +27 -0
- package/dist/useTimeout-CUZ4CtvQ.js +53 -0
- package/dist/useTimeout-Dfi8FwFc.cjs +1 -0
- package/package.json +10 -10
- package/dist/Backdrop-2u2eUNhW.cjs +0 -1
- package/dist/Box-BM-kEZ6w.cjs +0 -1
- package/dist/Button-DF4FLm9c.cjs +0 -1
- package/dist/ButtonBase-D-LBunY3.cjs +0 -75
- package/dist/CircularProgress-Bc4Jb-wh.cjs +0 -28
- package/dist/DatePicker-B7Kxulzh.cjs +0 -19
- package/dist/DefaultButton-BiytyhNr.cjs +0 -1
- package/dist/DefaultPropsProvider-D5gdl0ZP.cjs +0 -17
- package/dist/IconButton-C1Q6F-WI.cjs +0 -2
- package/dist/InputBase-BhTvM4pD.cjs +0 -3
- package/dist/Stack-C-pSEK_U.cjs +0 -1
- package/dist/Tabs-DQQR_Rej.cjs +0 -4
- package/dist/TextField-ESuNQ6_j.cjs +0 -12
- package/dist/Tooltip-iexr64ud.cjs +0 -100
- package/dist/Typography-DXUkMq5K.cjs +0 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +0 -1
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/composeClasses-B_ETVugV.cjs +0 -1
- package/dist/composeClasses-zmPRtZOg.js +0 -16
- package/dist/createSvgIcon-C9v8HKxu.cjs +0 -2
- package/dist/createSvgIcon-ampgkdBR.js +0 -89
- package/dist/identifier-lU3TQXv0.cjs +0 -59
- package/dist/index-B4-7REI3.cjs +0 -1
- package/dist/memoTheme-B2EWpIp3.cjs +0 -1
- package/dist/memoTheme-O-hJ9iBh.js +0 -13
- package/dist/refType-xt9KmJ1e.cjs +0 -1
- package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useControlled-Bf7_InaL.cjs +0 -3
- package/dist/useControlled-D59BLg1S.js +0 -48
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useThemeProps-CjDUEYiA.js +0 -40
- package/dist/useThemeProps-DxowsTec.cjs +0 -1
- package/dist/useTimeout-COCrDKz-.cjs +0 -1
- package/dist/useTimeout-CcRdgCDK.js +0 -42
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as O from "react";
|
|
2
|
-
import { I as T, J as R, K as c, L as N, P as
|
|
3
|
-
import { m as P } from "./memoTheme-
|
|
2
|
+
import { I as T, J as R, K as c, L as N, P as r } from "./identifier-C_jicJ2R.js";
|
|
3
|
+
import { m as P } from "./memoTheme-B1D0RO58.js";
|
|
4
|
+
import { c as j } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
4
5
|
import { jsx as h } from "react/jsx-runtime";
|
|
5
|
-
import { s as g, u as
|
|
6
|
-
import { c as
|
|
6
|
+
import { s as g, u as I, c as U } from "./DefaultPropsProvider-DtDY-TZb.js";
|
|
7
|
+
import { c as E } from "./useForkRef-D-DyzOXj.js";
|
|
7
8
|
import { keyframes as x, css as w } from "@emotion/react";
|
|
8
|
-
function
|
|
9
|
-
return T("MuiCircularProgress",
|
|
9
|
+
function z(e) {
|
|
10
|
+
return T("MuiCircularProgress", e);
|
|
10
11
|
}
|
|
11
|
-
const
|
|
12
|
+
const Q = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]), a = 44, y = x`
|
|
12
13
|
0% {
|
|
13
14
|
transform: rotate(0deg);
|
|
14
15
|
}
|
|
@@ -31,33 +32,33 @@ const q = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "col
|
|
|
31
32
|
stroke-dasharray: 100px, 200px;
|
|
32
33
|
stroke-dashoffset: -125px;
|
|
33
34
|
}
|
|
34
|
-
`,
|
|
35
|
+
`, F = typeof y != "string" ? w`
|
|
35
36
|
animation: ${y} 1.4s linear infinite;
|
|
36
37
|
` : null, K = typeof v != "string" ? w`
|
|
37
38
|
animation: ${v} 1.4s ease-in-out infinite;
|
|
38
|
-
` : null,
|
|
39
|
+
` : null, V = (e) => {
|
|
39
40
|
const {
|
|
40
|
-
classes:
|
|
41
|
+
classes: s,
|
|
41
42
|
variant: t,
|
|
42
43
|
color: o,
|
|
43
44
|
disableShrink: l
|
|
44
|
-
} =
|
|
45
|
+
} = e, p = {
|
|
45
46
|
root: ["root", t, `color${c(o)}`],
|
|
46
47
|
svg: ["svg"],
|
|
47
48
|
circle: ["circle", `circle${c(t)}`, l && "circleDisableShrink"]
|
|
48
49
|
};
|
|
49
|
-
return
|
|
50
|
-
},
|
|
50
|
+
return U(p, z, s);
|
|
51
|
+
}, A = g("span", {
|
|
51
52
|
name: "MuiCircularProgress",
|
|
52
53
|
slot: "Root",
|
|
53
|
-
overridesResolver: (
|
|
54
|
+
overridesResolver: (e, s) => {
|
|
54
55
|
const {
|
|
55
56
|
ownerState: t
|
|
56
|
-
} =
|
|
57
|
-
return [
|
|
57
|
+
} = e;
|
|
58
|
+
return [s.root, s[t.variant], s[`color${c(t.color)}`]];
|
|
58
59
|
}
|
|
59
60
|
})(P(({
|
|
60
|
-
theme:
|
|
61
|
+
theme: e
|
|
61
62
|
}) => ({
|
|
62
63
|
display: "inline-block",
|
|
63
64
|
variants: [{
|
|
@@ -65,41 +66,41 @@ const q = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "col
|
|
|
65
66
|
variant: "determinate"
|
|
66
67
|
},
|
|
67
68
|
style: {
|
|
68
|
-
transition:
|
|
69
|
+
transition: e.transitions.create("transform")
|
|
69
70
|
}
|
|
70
71
|
}, {
|
|
71
72
|
props: {
|
|
72
73
|
variant: "indeterminate"
|
|
73
74
|
},
|
|
74
|
-
style:
|
|
75
|
+
style: F || {
|
|
75
76
|
animation: `${y} 1.4s linear infinite`
|
|
76
77
|
}
|
|
77
|
-
}, ...Object.entries(
|
|
78
|
+
}, ...Object.entries(e.palette).filter(j()).map(([s]) => ({
|
|
78
79
|
props: {
|
|
79
|
-
color:
|
|
80
|
+
color: s
|
|
80
81
|
},
|
|
81
82
|
style: {
|
|
82
|
-
color: (
|
|
83
|
+
color: (e.vars || e).palette[s].main
|
|
83
84
|
}
|
|
84
85
|
}))]
|
|
85
|
-
}))),
|
|
86
|
+
}))), B = g("svg", {
|
|
86
87
|
name: "MuiCircularProgress",
|
|
87
88
|
slot: "Svg",
|
|
88
|
-
overridesResolver: (
|
|
89
|
+
overridesResolver: (e, s) => s.svg
|
|
89
90
|
})({
|
|
90
91
|
display: "block"
|
|
91
92
|
// Keeps the progress centered
|
|
92
|
-
}),
|
|
93
|
+
}), G = g("circle", {
|
|
93
94
|
name: "MuiCircularProgress",
|
|
94
95
|
slot: "Circle",
|
|
95
|
-
overridesResolver: (
|
|
96
|
+
overridesResolver: (e, s) => {
|
|
96
97
|
const {
|
|
97
98
|
ownerState: t
|
|
98
|
-
} =
|
|
99
|
-
return [
|
|
99
|
+
} = e;
|
|
100
|
+
return [s.circle, s[`circle${c(t.variant)}`], t.disableShrink && s.circleDisableShrink];
|
|
100
101
|
}
|
|
101
102
|
})(P(({
|
|
102
|
-
theme:
|
|
103
|
+
theme: e
|
|
103
104
|
}) => ({
|
|
104
105
|
stroke: "currentColor",
|
|
105
106
|
variants: [{
|
|
@@ -107,7 +108,7 @@ const q = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "col
|
|
|
107
108
|
variant: "determinate"
|
|
108
109
|
},
|
|
109
110
|
style: {
|
|
110
|
-
transition:
|
|
111
|
+
transition: e.transitions.create("stroke-dashoffset")
|
|
111
112
|
}
|
|
112
113
|
}, {
|
|
113
114
|
props: {
|
|
@@ -121,22 +122,22 @@ const q = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "col
|
|
|
121
122
|
}
|
|
122
123
|
}, {
|
|
123
124
|
props: ({
|
|
124
|
-
ownerState:
|
|
125
|
-
}) =>
|
|
125
|
+
ownerState: s
|
|
126
|
+
}) => s.variant === "indeterminate" && !s.disableShrink,
|
|
126
127
|
style: K || {
|
|
127
128
|
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
128
129
|
animation: `${v} 1.4s ease-in-out infinite`
|
|
129
130
|
}
|
|
130
131
|
}]
|
|
131
|
-
}))),
|
|
132
|
-
const o =
|
|
133
|
-
props:
|
|
132
|
+
}))), J = /* @__PURE__ */ O.forwardRef(function(s, t) {
|
|
133
|
+
const o = I({
|
|
134
|
+
props: s,
|
|
134
135
|
name: "MuiCircularProgress"
|
|
135
136
|
}), {
|
|
136
137
|
className: l,
|
|
137
|
-
color:
|
|
138
|
+
color: p = "primary",
|
|
138
139
|
disableShrink: $ = !1,
|
|
139
|
-
size:
|
|
140
|
+
size: m = 40,
|
|
140
141
|
style: D,
|
|
141
142
|
thickness: i = 3.6,
|
|
142
143
|
value: f = 0,
|
|
@@ -144,22 +145,22 @@ const q = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "col
|
|
|
144
145
|
...M
|
|
145
146
|
} = o, n = {
|
|
146
147
|
...o,
|
|
147
|
-
color:
|
|
148
|
+
color: p,
|
|
148
149
|
disableShrink: $,
|
|
149
|
-
size:
|
|
150
|
+
size: m,
|
|
150
151
|
thickness: i,
|
|
151
152
|
value: f,
|
|
152
153
|
variant: k
|
|
153
|
-
}, u =
|
|
154
|
+
}, u = V(n), d = {}, b = {}, C = {};
|
|
154
155
|
if (k === "determinate") {
|
|
155
156
|
const S = 2 * Math.PI * ((a - i) / 2);
|
|
156
157
|
d.strokeDasharray = S.toFixed(3), C["aria-valuenow"] = Math.round(f), d.strokeDashoffset = `${((100 - f) / 100 * S).toFixed(3)}px`, b.transform = "rotate(-90deg)";
|
|
157
158
|
}
|
|
158
|
-
return /* @__PURE__ */ h(
|
|
159
|
+
return /* @__PURE__ */ h(A, {
|
|
159
160
|
className: N(u.root, l),
|
|
160
161
|
style: {
|
|
161
|
-
width:
|
|
162
|
-
height:
|
|
162
|
+
width: m,
|
|
163
|
+
height: m,
|
|
163
164
|
...b,
|
|
164
165
|
...D
|
|
165
166
|
},
|
|
@@ -168,11 +169,11 @@ const q = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "col
|
|
|
168
169
|
role: "progressbar",
|
|
169
170
|
...C,
|
|
170
171
|
...M,
|
|
171
|
-
children: /* @__PURE__ */ h(
|
|
172
|
+
children: /* @__PURE__ */ h(B, {
|
|
172
173
|
className: u.svg,
|
|
173
174
|
ownerState: n,
|
|
174
175
|
viewBox: `${a / 2} ${a / 2} ${a} ${a}`,
|
|
175
|
-
children: /* @__PURE__ */ h(
|
|
176
|
+
children: /* @__PURE__ */ h(G, {
|
|
176
177
|
className: u.circle,
|
|
177
178
|
style: d,
|
|
178
179
|
ownerState: n,
|
|
@@ -185,7 +186,7 @@ const q = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "col
|
|
|
185
186
|
})
|
|
186
187
|
});
|
|
187
188
|
});
|
|
188
|
-
process.env.NODE_ENV !== "production" && (
|
|
189
|
+
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
189
190
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
190
191
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
191
192
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -193,59 +194,59 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
193
194
|
/**
|
|
194
195
|
* Override or extend the styles applied to the component.
|
|
195
196
|
*/
|
|
196
|
-
classes:
|
|
197
|
+
classes: r.object,
|
|
197
198
|
/**
|
|
198
199
|
* @ignore
|
|
199
200
|
*/
|
|
200
|
-
className:
|
|
201
|
+
className: r.string,
|
|
201
202
|
/**
|
|
202
203
|
* The color of the component.
|
|
203
204
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
204
205
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
205
206
|
* @default 'primary'
|
|
206
207
|
*/
|
|
207
|
-
color:
|
|
208
|
+
color: r.oneOfType([r.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
|
|
208
209
|
/**
|
|
209
210
|
* If `true`, the shrink animation is disabled.
|
|
210
211
|
* This only works if variant is `indeterminate`.
|
|
211
212
|
* @default false
|
|
212
213
|
*/
|
|
213
|
-
disableShrink:
|
|
214
|
+
disableShrink: E(r.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
214
215
|
/**
|
|
215
216
|
* The size of the component.
|
|
216
217
|
* If using a number, the pixel unit is assumed.
|
|
217
218
|
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
218
219
|
* @default 40
|
|
219
220
|
*/
|
|
220
|
-
size:
|
|
221
|
+
size: r.oneOfType([r.number, r.string]),
|
|
221
222
|
/**
|
|
222
223
|
* @ignore
|
|
223
224
|
*/
|
|
224
|
-
style:
|
|
225
|
+
style: r.object,
|
|
225
226
|
/**
|
|
226
227
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
227
228
|
*/
|
|
228
|
-
sx:
|
|
229
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
229
230
|
/**
|
|
230
231
|
* The thickness of the circle.
|
|
231
232
|
* @default 3.6
|
|
232
233
|
*/
|
|
233
|
-
thickness:
|
|
234
|
+
thickness: r.number,
|
|
234
235
|
/**
|
|
235
236
|
* The value of the progress indicator for the determinate variant.
|
|
236
237
|
* Value between 0 and 100.
|
|
237
238
|
* @default 0
|
|
238
239
|
*/
|
|
239
|
-
value:
|
|
240
|
+
value: r.number,
|
|
240
241
|
/**
|
|
241
242
|
* The variant to use.
|
|
242
243
|
* Use indeterminate when there is no progress value.
|
|
243
244
|
* @default 'indeterminate'
|
|
244
245
|
*/
|
|
245
|
-
variant:
|
|
246
|
+
variant: r.oneOf(["determinate", "indeterminate"])
|
|
246
247
|
});
|
|
247
248
|
export {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
J as C,
|
|
250
|
+
Q as c,
|
|
251
|
+
z as g
|
|
251
252
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const j=require("react"),e=require("./identifier-8mtH7ZcP.cjs"),C=require("./memoTheme-K38b4dAY.cjs"),$=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),P=require("react/jsx-runtime"),a=require("./DefaultPropsProvider-BL9ahJBw.cjs"),R=require("./useForkRef-D81w5oMb.cjs"),l=require("@emotion/react");function M(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return s.default=r,Object.freeze(s)}const q=M(j);function S(r){return e.generateUtilityClass("MuiCircularProgress",r)}const N=e.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),o=44,g=l.keyframes`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
`,h=l.keyframes`
|
|
10
|
+
0% {
|
|
11
|
+
stroke-dasharray: 1px, 200px;
|
|
12
|
+
stroke-dashoffset: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
50% {
|
|
16
|
+
stroke-dasharray: 100px, 200px;
|
|
17
|
+
stroke-dashoffset: -15px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
100% {
|
|
21
|
+
stroke-dasharray: 100px, 200px;
|
|
22
|
+
stroke-dashoffset: -125px;
|
|
23
|
+
}
|
|
24
|
+
`,z=typeof g!="string"?l.css`
|
|
25
|
+
animation: ${g} 1.4s linear infinite;
|
|
26
|
+
`:null,U=typeof h!="string"?l.css`
|
|
27
|
+
animation: ${h} 1.4s ease-in-out infinite;
|
|
28
|
+
`:null,F=r=>{const{classes:s,variant:t,color:i,disableShrink:p}=r,u={root:["root",t,`color${e.capitalize(i)}`],svg:["svg"],circle:["circle",`circle${e.capitalize(t)}`,p&&"circleDisableShrink"]};return a.composeClasses(u,S,s)},E=a.styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:t}=r;return[s.root,s[t.variant],s[`color${e.capitalize(t.color)}`]]}})(C.memoTheme(({theme:r})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:r.transitions.create("transform")}},{props:{variant:"indeterminate"},style:z||{animation:`${g} 1.4s linear infinite`}},...Object.entries(r.palette).filter($.createSimplePaletteValueFilter()).map(([s])=>({props:{color:s},style:{color:(r.vars||r).palette[s].main}}))]}))),I=a.styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(r,s)=>s.svg})({display:"block"}),V=a.styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(r,s)=>{const{ownerState:t}=r;return[s.circle,s[`circle${e.capitalize(t.variant)}`],t.disableShrink&&s.circleDisableShrink]}})(C.memoTheme(({theme:r})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:r.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:s})=>s.variant==="indeterminate"&&!s.disableShrink,style:U||{animation:`${h} 1.4s ease-in-out infinite`}}]}))),x=q.forwardRef(function(s,t){const i=a.useDefaultProps({props:s,name:"MuiCircularProgress"}),{className:p,color:u="primary",disableShrink:w=!1,size:y=40,style:D,thickness:n=3.6,value:f=0,variant:v="indeterminate",...O}=i,c={...i,color:u,disableShrink:w,size:y,thickness:n,value:f,variant:v},d=F(c),m={},T={},k={};if(v==="determinate"){const b=2*Math.PI*((o-n)/2);m.strokeDasharray=b.toFixed(3),k["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,T.transform="rotate(-90deg)"}return P.jsx(E,{className:e.clsx(d.root,p),style:{width:y,height:y,...T,...D},ownerState:c,ref:t,role:"progressbar",...k,...O,children:P.jsx(I,{className:d.svg,ownerState:c,viewBox:`${o/2} ${o/2} ${o} ${o}`,children:P.jsx(V,{className:d.circle,style:m,ownerState:c,cx:o,cy:o,r:(o-n)/2,fill:"none",strokeWidth:n})})})});process.env.NODE_ENV!=="production"&&(x.propTypes={classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disableShrink:R.chainPropTypes(e.PropTypes.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),size:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),style:e.PropTypes.object,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),thickness:e.PropTypes.number,value:e.PropTypes.number,variant:e.PropTypes.oneOf(["determinate","indeterminate"])});exports.CircularProgress=x;exports.circularProgressClasses=N;exports.getCircularProgressUtilityClass=S;
|