@cgi-learning-hub/ui 0.0.1-dev.1709567324 → 0.0.1-dev.1709568003
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-CjHm9A9L.cjs +1 -0
- package/dist/{Box-C0qXdJzV.js → Box-erN4AuKs.js} +8 -8
- package/dist/ButtonBase-BybMkBUd.cjs +75 -0
- package/dist/ButtonBase-CGcs8Gbj.cjs +75 -0
- package/dist/ButtonBase-V1pwsMMs.js +649 -0
- package/dist/ButtonBase-aujiNoUb.js +649 -0
- package/dist/DefaultButton-Cg4tPCgf.cjs +28 -0
- package/dist/{DefaultButton-B-2UppUm.js → DefaultButton-DbpZOb47.js} +355 -146
- package/dist/FileListItem-ChKTjDnV.js +254 -0
- package/dist/FileListItem-CjFIZgYg.cjs +28 -0
- package/dist/IconButton-CHXclgOn.cjs +2 -0
- package/dist/{IconButton-1URziYlU.js → IconButton-DE5JOshS.js} +8 -8
- package/dist/{InputBase-Dc0v-Ihf.js → InputBase-C8AzQJJ9.js} +161 -174
- package/dist/InputBase-D6eXzDaz.cjs +4 -0
- package/dist/LocalizationProvider-42pD7VmS.cjs +5 -0
- package/dist/{LocalizationProvider-BD64DNxF.js → LocalizationProvider-Cov62Xe0.js} +4 -3
- package/dist/Tabs-DiWeNGD4.js +1167 -0
- package/dist/Tabs-DoxP7EMA.cjs +4 -0
- package/dist/TextInput-BbSyyuvO.cjs +12 -0
- package/dist/{TextInput-DsSFDlNR.js → TextInput-DmMk4i-V.js} +1892 -1650
- package/dist/TimePicker-B5MjZCK0.cjs +89 -0
- package/dist/TimePicker-BmxG3a2D.js +28354 -0
- package/dist/TransitionGroup-COuDopJ-.js +188 -0
- package/dist/TransitionGroup-X90dkobW.cjs +1 -0
- package/dist/Typography-B90UzlQW.js +179 -0
- package/dist/Typography-KFjBz5Hm.cjs +1 -0
- package/dist/clamp-0LjYbpE_.cjs +23 -0
- package/dist/clamp-BGJvJ0FN.js +1641 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +12 -11
- 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 +10 -9
- 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 +90 -91
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +174 -6
- 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.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 +7 -39
- 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 +18 -16
- package/dist/components/lists/index.cjs.js +1 -1
- package/dist/components/lists/index.es.js +4 -4
- package/dist/createSvgIcon-BSYat4nx.js +74 -0
- package/dist/createSvgIcon-BqRWmIPG.cjs +1 -0
- package/dist/{createSvgIcon-Dspfpz-l.js → createSvgIcon-DeRU4e-L.js} +20 -18
- package/dist/createSvgIcon-doNQ5emq.cjs +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +93 -94
- package/dist/refType-Bt58K9Sk.cjs +1 -0
- package/dist/{refType-BBFUe6fu.js → refType-CoCfCK--.js} +1 -1
- package/dist/styled-BU8dAebc.js +1751 -0
- package/dist/styled-DGjsLYEN.cjs +45 -0
- package/dist/styled-DP6LeBLQ.js +261 -0
- package/dist/styled-Dkd1VGM-.cjs +1 -0
- package/dist/useTheme-C132tQV-.js +10 -0
- package/dist/useTheme-CliHZTkE.cjs +1 -0
- package/dist/useThemeProps-63SNG58r.js +753 -0
- package/dist/useThemeProps-CVatCXfo.cjs +20 -0
- package/package.json +6 -7
- package/dist/Box-DjRIKMD0.cjs +0 -1
- package/dist/ButtonBase-BvllyU4w.cjs +0 -75
- package/dist/ButtonBase-C14ZYs6z.js +0 -833
- package/dist/CircularProgress-Bf46-VRs.js +0 -217
- package/dist/CircularProgress-DjSMBYnK.cjs +0 -28
- package/dist/DefaultButton-DPZOltN5.cjs +0 -1
- package/dist/IconButton-X6l-U-im.cjs +0 -2
- package/dist/InputBase-CzupOzjh.cjs +0 -4
- package/dist/LocalizationProvider-DqwEOZOd.cjs +0 -5
- package/dist/SearchInput-Bb3sCx3k.cjs +0 -1
- package/dist/SearchInput-DRjmNW6W.js +0 -177
- package/dist/Tabs-B9BPJaDx.js +0 -1090
- package/dist/Tabs-Dx8YJT4c.cjs +0 -4
- package/dist/TextInput-BFguMDSu.cjs +0 -12
- package/dist/TimePicker-B0HOzxHh.cjs +0 -69
- package/dist/TimePicker-OBZs04Z8.js +0 -19694
- package/dist/Typography-CRt6WSxo.js +0 -204
- package/dist/Typography-DsPQABF2.cjs +0 -1
- package/dist/createSvgIcon-BOQCM03y.cjs +0 -2
- package/dist/createSvgIcon-C2VxBqzG.cjs +0 -1
- package/dist/createSvgIcon-xJp3_zwo.js +0 -84
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/refType-5EEBZL5_.cjs +0 -1
- package/dist/styled-D8lXwcQy.js +0 -423
- package/dist/styled-DFoJwRxe.cjs +0 -24
- package/dist/useSlotProps-BoMYRJkF.js +0 -72
- package/dist/useSlotProps-EKKRQjEn.cjs +0 -1
- package/dist/useTheme-BkW5nNsn.cjs +0 -1
- package/dist/useTheme-Bo1inEHN.js +0 -9
- package/dist/useThemeProps-BRWSvuZw.cjs +0 -42
- package/dist/useThemeProps-CZzcR_pm.js +0 -2288
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import D, { jsx as a, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { i as z } from "./useThemeProps-63SNG58r.js";
|
|
3
|
+
import { r as w } from "./createSvgIcon-BSYat4nx.js";
|
|
4
|
+
import * as V from "react";
|
|
5
|
+
import B from "react";
|
|
6
|
+
import { B as H } from "./Box-erN4AuKs.js";
|
|
7
|
+
import { T as $ } from "./Typography-B90UzlQW.js";
|
|
8
|
+
import { I as G } from "./IconButton-DE5JOshS.js";
|
|
9
|
+
import { g as K, c as d, _ as c, a as W, P as t } from "./clamp-BGJvJ0FN.js";
|
|
10
|
+
import { g as A, s as y, u as Y, c as Z, b as J } from "./styled-BU8dAebc.js";
|
|
11
|
+
import { c as Q } from "./refType-CoCfCK--.js";
|
|
12
|
+
import { keyframes as T, css as O } from "@emotion/react";
|
|
13
|
+
var k = {}, X = z;
|
|
14
|
+
Object.defineProperty(k, "__esModule", {
|
|
15
|
+
value: !0
|
|
16
|
+
});
|
|
17
|
+
var N = k.default = void 0, rr = X(w()), er = D;
|
|
18
|
+
N = k.default = (0, rr.default)(/* @__PURE__ */ (0, er.jsx)("path", {
|
|
19
|
+
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
20
|
+
}), "Delete");
|
|
21
|
+
var x = {}, tr = z;
|
|
22
|
+
Object.defineProperty(x, "__esModule", {
|
|
23
|
+
value: !0
|
|
24
|
+
});
|
|
25
|
+
var F = x.default = void 0, sr = tr(w()), ar = D;
|
|
26
|
+
F = x.default = (0, sr.default)(/* @__PURE__ */ (0, ar.jsx)("path", {
|
|
27
|
+
d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"
|
|
28
|
+
}), "InsertDriveFile");
|
|
29
|
+
function or(r) {
|
|
30
|
+
return K("MuiCircularProgress", r);
|
|
31
|
+
}
|
|
32
|
+
const ir = A("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]), Ir = ir, nr = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
33
|
+
let m = (r) => r, I, M, R, j;
|
|
34
|
+
const o = 44, cr = T(I || (I = m`
|
|
35
|
+
0% {
|
|
36
|
+
transform: rotate(0deg);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
100% {
|
|
40
|
+
transform: rotate(360deg);
|
|
41
|
+
}
|
|
42
|
+
`)), lr = T(M || (M = m`
|
|
43
|
+
0% {
|
|
44
|
+
stroke-dasharray: 1px, 200px;
|
|
45
|
+
stroke-dashoffset: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
50% {
|
|
49
|
+
stroke-dasharray: 100px, 200px;
|
|
50
|
+
stroke-dashoffset: -15px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
100% {
|
|
54
|
+
stroke-dasharray: 100px, 200px;
|
|
55
|
+
stroke-dashoffset: -125px;
|
|
56
|
+
}
|
|
57
|
+
`)), ur = (r) => {
|
|
58
|
+
const {
|
|
59
|
+
classes: e,
|
|
60
|
+
variant: s,
|
|
61
|
+
color: i,
|
|
62
|
+
disableShrink: n
|
|
63
|
+
} = r, f = {
|
|
64
|
+
root: ["root", s, `color${d(i)}`],
|
|
65
|
+
svg: ["svg"],
|
|
66
|
+
circle: ["circle", `circle${d(s)}`, n && "circleDisableShrink"]
|
|
67
|
+
};
|
|
68
|
+
return J(f, or, e);
|
|
69
|
+
}, dr = y("span", {
|
|
70
|
+
name: "MuiCircularProgress",
|
|
71
|
+
slot: "Root",
|
|
72
|
+
overridesResolver: (r, e) => {
|
|
73
|
+
const {
|
|
74
|
+
ownerState: s
|
|
75
|
+
} = r;
|
|
76
|
+
return [e.root, e[s.variant], e[`color${d(s.color)}`]];
|
|
77
|
+
}
|
|
78
|
+
})(({
|
|
79
|
+
ownerState: r,
|
|
80
|
+
theme: e
|
|
81
|
+
}) => c({
|
|
82
|
+
display: "inline-block"
|
|
83
|
+
}, r.variant === "determinate" && {
|
|
84
|
+
transition: e.transitions.create("transform")
|
|
85
|
+
}, r.color !== "inherit" && {
|
|
86
|
+
color: (e.vars || e).palette[r.color].main
|
|
87
|
+
}), ({
|
|
88
|
+
ownerState: r
|
|
89
|
+
}) => r.variant === "indeterminate" && O(R || (R = m`
|
|
90
|
+
animation: ${0} 1.4s linear infinite;
|
|
91
|
+
`), cr)), mr = y("svg", {
|
|
92
|
+
name: "MuiCircularProgress",
|
|
93
|
+
slot: "Svg",
|
|
94
|
+
overridesResolver: (r, e) => e.svg
|
|
95
|
+
})({
|
|
96
|
+
display: "block"
|
|
97
|
+
// Keeps the progress centered
|
|
98
|
+
}), fr = y("circle", {
|
|
99
|
+
name: "MuiCircularProgress",
|
|
100
|
+
slot: "Circle",
|
|
101
|
+
overridesResolver: (r, e) => {
|
|
102
|
+
const {
|
|
103
|
+
ownerState: s
|
|
104
|
+
} = r;
|
|
105
|
+
return [e.circle, e[`circle${d(s.variant)}`], s.disableShrink && e.circleDisableShrink];
|
|
106
|
+
}
|
|
107
|
+
})(({
|
|
108
|
+
ownerState: r,
|
|
109
|
+
theme: e
|
|
110
|
+
}) => c({
|
|
111
|
+
stroke: "currentColor"
|
|
112
|
+
}, r.variant === "determinate" && {
|
|
113
|
+
transition: e.transitions.create("stroke-dashoffset")
|
|
114
|
+
}, r.variant === "indeterminate" && {
|
|
115
|
+
// Some default value that looks fine waiting for the animation to kicks in.
|
|
116
|
+
strokeDasharray: "80px, 200px",
|
|
117
|
+
strokeDashoffset: 0
|
|
118
|
+
// Add the unit to fix a Edge 16 and below bug.
|
|
119
|
+
}), ({
|
|
120
|
+
ownerState: r
|
|
121
|
+
}) => r.variant === "indeterminate" && !r.disableShrink && O(j || (j = m`
|
|
122
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
123
|
+
`), lr)), q = /* @__PURE__ */ V.forwardRef(function(e, s) {
|
|
124
|
+
const i = Y({
|
|
125
|
+
props: e,
|
|
126
|
+
name: "MuiCircularProgress"
|
|
127
|
+
}), {
|
|
128
|
+
className: n,
|
|
129
|
+
color: f = "primary",
|
|
130
|
+
disableShrink: E = !1,
|
|
131
|
+
size: p = 40,
|
|
132
|
+
style: L,
|
|
133
|
+
thickness: l = 3.6,
|
|
134
|
+
value: v = 0,
|
|
135
|
+
variant: b = "indeterminate"
|
|
136
|
+
} = i, U = W(i, nr), u = c({}, i, {
|
|
137
|
+
color: f,
|
|
138
|
+
disableShrink: E,
|
|
139
|
+
size: p,
|
|
140
|
+
thickness: l,
|
|
141
|
+
value: v,
|
|
142
|
+
variant: b
|
|
143
|
+
}), h = ur(u), g = {}, C = {}, P = {};
|
|
144
|
+
if (b === "determinate") {
|
|
145
|
+
const S = 2 * Math.PI * ((o - l) / 2);
|
|
146
|
+
g.strokeDasharray = S.toFixed(3), P["aria-valuenow"] = Math.round(v), g.strokeDashoffset = `${((100 - v) / 100 * S).toFixed(3)}px`, C.transform = "rotate(-90deg)";
|
|
147
|
+
}
|
|
148
|
+
return /* @__PURE__ */ a(dr, c({
|
|
149
|
+
className: Z(h.root, n),
|
|
150
|
+
style: c({
|
|
151
|
+
width: p,
|
|
152
|
+
height: p
|
|
153
|
+
}, C, L),
|
|
154
|
+
ownerState: u,
|
|
155
|
+
ref: s,
|
|
156
|
+
role: "progressbar"
|
|
157
|
+
}, P, U, {
|
|
158
|
+
children: /* @__PURE__ */ a(mr, {
|
|
159
|
+
className: h.svg,
|
|
160
|
+
ownerState: u,
|
|
161
|
+
viewBox: `${o / 2} ${o / 2} ${o} ${o}`,
|
|
162
|
+
children: /* @__PURE__ */ a(fr, {
|
|
163
|
+
className: h.circle,
|
|
164
|
+
style: g,
|
|
165
|
+
ownerState: u,
|
|
166
|
+
cx: o,
|
|
167
|
+
cy: o,
|
|
168
|
+
r: (o - l) / 2,
|
|
169
|
+
fill: "none",
|
|
170
|
+
strokeWidth: l
|
|
171
|
+
})
|
|
172
|
+
})
|
|
173
|
+
}));
|
|
174
|
+
});
|
|
175
|
+
process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
176
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
177
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
178
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
179
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
180
|
+
/**
|
|
181
|
+
* Override or extend the styles applied to the component.
|
|
182
|
+
*/
|
|
183
|
+
classes: t.object,
|
|
184
|
+
/**
|
|
185
|
+
* @ignore
|
|
186
|
+
*/
|
|
187
|
+
className: t.string,
|
|
188
|
+
/**
|
|
189
|
+
* The color of the component.
|
|
190
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
191
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
192
|
+
* @default 'primary'
|
|
193
|
+
*/
|
|
194
|
+
color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
|
|
195
|
+
/**
|
|
196
|
+
* If `true`, the shrink animation is disabled.
|
|
197
|
+
* This only works if variant is `indeterminate`.
|
|
198
|
+
* @default false
|
|
199
|
+
*/
|
|
200
|
+
disableShrink: Q(t.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),
|
|
201
|
+
/**
|
|
202
|
+
* The size of the component.
|
|
203
|
+
* If using a number, the pixel unit is assumed.
|
|
204
|
+
* If using a string, you need to provide the CSS unit, e.g. '3rem'.
|
|
205
|
+
* @default 40
|
|
206
|
+
*/
|
|
207
|
+
size: t.oneOfType([t.number, t.string]),
|
|
208
|
+
/**
|
|
209
|
+
* @ignore
|
|
210
|
+
*/
|
|
211
|
+
style: t.object,
|
|
212
|
+
/**
|
|
213
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
214
|
+
*/
|
|
215
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
216
|
+
/**
|
|
217
|
+
* The thickness of the circle.
|
|
218
|
+
* @default 3.6
|
|
219
|
+
*/
|
|
220
|
+
thickness: t.number,
|
|
221
|
+
/**
|
|
222
|
+
* The value of the progress indicator for the determinate variant.
|
|
223
|
+
* Value between 0 and 100.
|
|
224
|
+
* @default 0
|
|
225
|
+
*/
|
|
226
|
+
value: t.number,
|
|
227
|
+
/**
|
|
228
|
+
* The variant to use.
|
|
229
|
+
* Use indeterminate when there is no progress value.
|
|
230
|
+
* @default 'indeterminate'
|
|
231
|
+
*/
|
|
232
|
+
variant: t.oneOf(["determinate", "indeterminate"])
|
|
233
|
+
});
|
|
234
|
+
const pr = q, vr = ({
|
|
235
|
+
file: r,
|
|
236
|
+
uploading: e,
|
|
237
|
+
onDelete: s
|
|
238
|
+
}) => {
|
|
239
|
+
const i = `${r.size} octets`, n = () => s == null ? void 0 : s(r);
|
|
240
|
+
return /* @__PURE__ */ _(H, { sx: { display: "flex", alignItems: "center", columnGap: "1rem" }, children: [
|
|
241
|
+
/* @__PURE__ */ a(F, { color: "primary" }),
|
|
242
|
+
/* @__PURE__ */ _("div", { className: "text-start w-full", children: [
|
|
243
|
+
/* @__PURE__ */ a($, { children: r.name }),
|
|
244
|
+
/* @__PURE__ */ a($, { fontSize: "0.875rem", color: "grey", children: i })
|
|
245
|
+
] }),
|
|
246
|
+
/* @__PURE__ */ a(G, { onClick: n, disabled: e, children: e ? /* @__PURE__ */ a(pr, { size: 24 }) : /* @__PURE__ */ a(N, {}) })
|
|
247
|
+
] });
|
|
248
|
+
}, Mr = B.memo(vr);
|
|
249
|
+
export {
|
|
250
|
+
pr as C,
|
|
251
|
+
Mr as F,
|
|
252
|
+
Ir as c,
|
|
253
|
+
or as g
|
|
254
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),q=require("./useThemeProps-CVatCXfo.cjs"),I=require("./createSvgIcon-doNQ5emq.cjs"),z=require("react"),L=require("./Box-CjHm9A9L.cjs"),C=require("./Typography-KFjBz5Hm.cjs"),U=require("./IconButton-CHXclgOn.cjs"),r=require("./clamp-0LjYbpE_.cjs"),n=require("./styled-DGjsLYEN.cjs"),B=require("./refType-Bt58K9Sk.cjs"),u=require("@emotion/react");function V(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const H=V(z);var g={},G=q.interopRequireDefaultExports;Object.defineProperty(g,"__esModule",{value:!0});var D=g.default=void 0,K=G(I.requireCreateSvgIcon()),W=o;D=g.default=(0,K.default)((0,W.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var P={},A=q.interopRequireDefaultExports;Object.defineProperty(P,"__esModule",{value:!0});var M=P.default=void 0,Y=A(I.requireCreateSvgIcon()),Z=o;M=P.default=(0,Y.default)((0,Z.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");function O(e){return r.generateUtilityClass("MuiCircularProgress",e)}const J=n.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),Q=J,X=["className","color","disableShrink","size","style","thickness","value","variant"];let d=e=>e,S,_,j,$;const a=44,ee=u.keyframes(S||(S=d`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
`)),re=u.keyframes(_||(_=d`
|
|
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
|
+
`)),se=e=>{const{classes:s,variant:t,color:i,disableShrink:c}=e,y={root:["root",t,`color${r.capitalize(i)}`],svg:["svg"],circle:["circle",`circle${r.capitalize(t)}`,c&&"circleDisableShrink"]};return n.composeClasses(y,O,s)},te=n.styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[s.root,s[t.variant],s[`color${r.capitalize(t.color)}`]]}})(({ownerState:e,theme:s})=>r._extends({display:"inline-block"},e.variant==="determinate"&&{transition:s.transitions.create("transform")},e.color!=="inherit"&&{color:(s.vars||s).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&u.css(j||(j=d`
|
|
25
|
+
animation: ${0} 1.4s linear infinite;
|
|
26
|
+
`),ee)),oe=n.styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,s)=>s.svg})({display:"block"}),ie=n.styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[s.circle,s[`circle${r.capitalize(t.variant)}`],t.disableShrink&&s.circleDisableShrink]}})(({ownerState:e,theme:s})=>r._extends({stroke:"currentColor"},e.variant==="determinate"&&{transition:s.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&u.css($||($=d`
|
|
27
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
28
|
+
`),re)),R=H.forwardRef(function(s,t){const i=n.useThemeProps({props:s,name:"MuiCircularProgress"}),{className:c,color:y="primary",disableShrink:N=!1,size:f=40,style:F,thickness:l=3.6,value:m=0,variant:x="indeterminate"}=i,E=r._objectWithoutPropertiesLoose(i,X),p=r._extends({},i,{color:y,disableShrink:N,size:f,thickness:l,value:m,variant:x}),v=se(p),h={},T={},b={};if(x==="determinate"){const k=2*Math.PI*((a-l)/2);h.strokeDasharray=k.toFixed(3),b["aria-valuenow"]=Math.round(m),h.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,T.transform="rotate(-90deg)"}return o.jsx(te,r._extends({className:n.clsx(v.root,c),style:r._extends({width:f,height:f},T,F),ownerState:p,ref:t,role:"progressbar"},b,E,{children:o.jsx(oe,{className:v.svg,ownerState:p,viewBox:`${a/2} ${a/2} ${a} ${a}`,children:o.jsx(ie,{className:v.circle,style:h,ownerState:p,cx:a,cy:a,r:(a-l)/2,fill:"none",strokeWidth:l})})}))});process.env.NODE_ENV!=="production"&&(R.propTypes={classes:r.PropTypes.object,className:r.PropTypes.string,color:r.PropTypes.oneOfType([r.PropTypes.oneOf(["inherit","primary","secondary","error","info","success","warning"]),r.PropTypes.string]),disableShrink:B.chainPropTypes(r.PropTypes.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),size:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),style:r.PropTypes.object,sx:r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object,r.PropTypes.bool])),r.PropTypes.func,r.PropTypes.object]),thickness:r.PropTypes.number,value:r.PropTypes.number,variant:r.PropTypes.oneOf(["determinate","indeterminate"])});const w=R,ae=({file:e,uploading:s,onDelete:t})=>{const i=`${e.size} octets`,c=()=>t==null?void 0:t(e);return o.jsxs(L.Box,{sx:{display:"flex",alignItems:"center",columnGap:"1rem"},children:[o.jsx(M,{color:"primary"}),o.jsxs("div",{className:"text-start w-full",children:[o.jsx(C.Typography,{children:e.name}),o.jsx(C.Typography,{fontSize:"0.875rem",color:"grey",children:i})]}),o.jsx(U.IconButton,{onClick:c,disabled:s,children:s?o.jsx(w,{size:24}):o.jsx(D,{})})]})},ne=z.memo(ae);exports.CircularProgress=w;exports.FileListItem=ne;exports.circularProgressClasses=Q;exports.getCircularProgressUtilityClass=O;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("./clamp-0LjYbpE_.cjs"),z=require("react"),n=require("./styled-DGjsLYEN.cjs"),m=require("react/jsx-runtime"),h=require("./ButtonBase-CGcs8Gbj.cjs"),B=require("./refType-Bt58K9Sk.cjs");function C(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=C(z);function y(e){return o.generateUtilityClass("MuiIconButton",e)}const R=n.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),g=R,O=["edge","children","className","color","disabled","disableFocusRipple","size"],x=e=>{const{classes:t,disabled:r,color:s,edge:a,size:i}=e,l={root:["root",r&&"disabled",s!=="default"&&`color${o.capitalize(s)}`,a&&`edge${o.capitalize(a)}`,`size${o.capitalize(i)}`]};return n.composeClasses(l,y,t)},I=n.styled(h.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${o.capitalize(r.color)}`],r.edge&&t[`edge${o.capitalize(r.edge)}`],t[`size${o.capitalize(r.size)}`]]}})(({theme:e,ownerState:t})=>o._extends({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:n.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const s=(r=(e.vars||e).palette)==null?void 0:r[t.color];return o._extends({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&o._extends({color:s==null?void 0:s.main},!t.disableRipple&&{"&:hover":o._extends({},s&&{backgroundColor:e.vars?`rgba(${s.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:n.alpha(s.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${g.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),f=c.forwardRef(function(t,r){const s=n.useThemeProps({props:t,name:"MuiIconButton"}),{edge:a=!1,children:i,className:l,color:b="default",disabled:p=!1,disableFocusRipple:d=!1,size:T="medium"}=s,v=o._objectWithoutPropertiesLoose(s,O),u=o._extends({},s,{edge:a,color:b,disabled:p,disableFocusRipple:d,size:T}),P=x(u);return m.jsx(I,o._extends({className:n.clsx(P.root,l),centerRipple:!0,focusRipple:!d,disabled:p,ref:r,ownerState:u},v,{children:i}))});process.env.NODE_ENV!=="production"&&(f.propTypes={children:B.chainPropTypes(o.PropTypes.node,e=>c.Children.toArray(e.children).some(r=>c.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
2
|
+
`)):null),classes:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),disabled:o.PropTypes.bool,disableFocusRipple:o.PropTypes.bool,disableRipple:o.PropTypes.bool,edge:o.PropTypes.oneOf(["end","start",!1]),size:o.PropTypes.oneOfType([o.PropTypes.oneOf(["small","medium","large"]),o.PropTypes.string]),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object])});const $=f;exports.IconButton=$;exports.getIconButtonUtilityClass=y;exports.iconButtonClasses=g;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { g as z, c as n, _ as t, a as
|
|
1
|
+
import { g as z, c as n, _ as t, a as R, P as r } from "./clamp-BGJvJ0FN.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { g as
|
|
3
|
+
import { g as C, s as B, a as f, u as I, c as O, b as $ } from "./styled-BU8dAebc.js";
|
|
4
4
|
import { jsx as T } from "react/jsx-runtime";
|
|
5
|
-
import { B as x } from "./ButtonBase-
|
|
6
|
-
import { c as k } from "./refType-
|
|
5
|
+
import { B as x } from "./ButtonBase-V1pwsMMs.js";
|
|
6
|
+
import { c as k } from "./refType-CoCfCK--.js";
|
|
7
7
|
function P(o) {
|
|
8
8
|
return z("MuiIconButton", o);
|
|
9
9
|
}
|
|
10
|
-
const j =
|
|
10
|
+
const j = C("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), E = j, M = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], N = (o) => {
|
|
11
11
|
const {
|
|
12
12
|
classes: e,
|
|
13
13
|
disabled: s,
|
|
@@ -18,7 +18,7 @@ const j = B("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
18
18
|
root: ["root", s && "disabled", a !== "default" && `color${n(a)}`, i && `edge${n(i)}`, `size${n(l)}`]
|
|
19
19
|
};
|
|
20
20
|
return $(c, P, e);
|
|
21
|
-
}, _ =
|
|
21
|
+
}, _ = B(x, {
|
|
22
22
|
name: "MuiIconButton",
|
|
23
23
|
slot: "Root",
|
|
24
24
|
overridesResolver: (o, e) => {
|
|
@@ -86,7 +86,7 @@ const j = B("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
}), b = /* @__PURE__ */ d.forwardRef(function(e, s) {
|
|
89
|
-
const a =
|
|
89
|
+
const a = I({
|
|
90
90
|
props: e,
|
|
91
91
|
name: "MuiIconButton"
|
|
92
92
|
}), {
|
|
@@ -97,7 +97,7 @@ const j = B("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
97
97
|
disabled: p = !1,
|
|
98
98
|
disableFocusRipple: u = !1,
|
|
99
99
|
size: m = "medium"
|
|
100
|
-
} = a, y =
|
|
100
|
+
} = a, y = R(a, M), g = t({}, a, {
|
|
101
101
|
edge: i,
|
|
102
102
|
color: v,
|
|
103
103
|
disabled: p,
|