@cgi-learning-hub/ui 1.3.5-dev.1739205895 → 1.3.5-dev.1739207023

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.
Files changed (50) hide show
  1. package/dist/CircularProgress-BgUNlpbU.js +253 -0
  2. package/dist/CircularProgress-nxAXvjY0.cjs +28 -0
  3. package/dist/Delete-DCHX_nNr.js +8 -0
  4. package/dist/Delete-Z2rf9szx.cjs +1 -0
  5. package/dist/components/Button/Button.cjs.js +1 -1
  6. package/dist/components/Button/Button.es.js +297 -4
  7. package/dist/components/Button/index.cjs.js +1 -1
  8. package/dist/components/Button/index.es.js +2 -2
  9. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  10. package/dist/components/Dialog/Dialog.es.js +14 -12
  11. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
  12. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +3 -4
  13. package/dist/components/FileList/FileList.cjs.js +1 -1
  14. package/dist/components/FileList/FileList.d.ts +3 -5
  15. package/dist/components/FileList/FileList.es.js +14 -23
  16. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  17. package/dist/components/FileList/FileListItem.d.ts +5 -9
  18. package/dist/components/FileList/FileListItem.es.js +24 -95
  19. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  20. package/dist/components/ImagePicker/ImagePicker.es.js +39 -40
  21. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  22. package/dist/components/PasswordInput/PasswordInput.es.js +1 -1
  23. package/dist/components/index.cjs.js +1 -1
  24. package/dist/components/index.es.js +213 -212
  25. package/dist/components/stories/Button.stories.cjs.js +1 -1
  26. package/dist/components/stories/Button.stories.es.js +1 -1
  27. package/dist/components/stories/Card.stories.cjs.js +1 -1
  28. package/dist/components/stories/Card.stories.es.js +1 -1
  29. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  30. package/dist/components/stories/Dialog.stories.es.js +1 -1
  31. package/dist/components/stories/FileList.stories.cjs.js +1 -8
  32. package/dist/components/stories/FileList.stories.es.js +19 -145
  33. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  34. package/dist/components/stories/Menu.stories.es.js +1 -1
  35. package/dist/index.cjs.js +1 -1
  36. package/dist/index.es.js +213 -212
  37. package/package.json +1 -1
  38. package/dist/Button-C-bZSJCq.cjs +0 -28
  39. package/dist/Button-CSNPv43f.js +0 -542
  40. package/dist/CloseRounded-Cu-sn6XC.cjs +0 -1
  41. package/dist/CloseRounded-Df8vYhLX.js +0 -8
  42. package/dist/components/FileList/FileIcon.cjs.js +0 -1
  43. package/dist/components/FileList/FileIcon.d.ts +0 -3
  44. package/dist/components/FileList/FileIcon.es.js +0 -56
  45. package/dist/components/FileList/FileInfosSeparator.cjs.js +0 -1
  46. package/dist/components/FileList/FileInfosSeparator.d.ts +0 -1
  47. package/dist/components/FileList/FileInfosSeparator.es.js +0 -14
  48. package/dist/components/FileList/utils.cjs.js +0 -1
  49. package/dist/components/FileList/utils.d.ts +0 -2
  50. package/dist/components/FileList/utils.es.js +0 -13
@@ -1,542 +0,0 @@
1
- import { jsx as d, jsxs as U } from "react/jsx-runtime";
2
- import { u as M, s as f, c as E } from "./DefaultPropsProvider-CmOKr9hq.js";
3
- import * as k from "react";
4
- import { I as O, H as R, G as W, P as n } from "./generateUtilityClasses-v9KcqdK1.js";
5
- import { a as F, r as V, B as G } from "./Button-DovfjBkz.js";
6
- import { u as A } from "./useId-CK6Kn3Tn.js";
7
- import { c as u } from "./capitalize-yX_QSknw.js";
8
- import { m as S } from "./memoTheme-D-rebSfX.js";
9
- import { c as H } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
10
- import { c as T } from "./chainPropTypes-D9lkm76m.js";
11
- import { css as D, keyframes as N } from "@emotion/react";
12
- function K(o) {
13
- return O("MuiCircularProgress", o);
14
- }
15
- const ho = R("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]), c = 44, $ = N`
16
- 0% {
17
- transform: rotate(0deg);
18
- }
19
-
20
- 100% {
21
- transform: rotate(360deg);
22
- }
23
- `, w = N`
24
- 0% {
25
- stroke-dasharray: 1px, 200px;
26
- stroke-dashoffset: 0;
27
- }
28
-
29
- 50% {
30
- stroke-dasharray: 100px, 200px;
31
- stroke-dashoffset: -15px;
32
- }
33
-
34
- 100% {
35
- stroke-dasharray: 100px, 200px;
36
- stroke-dashoffset: -125px;
37
- }
38
- `, _ = typeof $ != "string" ? D`
39
- animation: ${$} 1.4s linear infinite;
40
- ` : null, Y = typeof w != "string" ? D`
41
- animation: ${w} 1.4s ease-in-out infinite;
42
- ` : null, Z = (o) => {
43
- const {
44
- classes: t,
45
- variant: r,
46
- color: i,
47
- disableShrink: g
48
- } = o, a = {
49
- root: ["root", r, `color${u(i)}`],
50
- svg: ["svg"],
51
- circle: ["circle", `circle${u(r)}`, g && "circleDisableShrink"]
52
- };
53
- return E(a, K, t);
54
- }, q = f("span", {
55
- name: "MuiCircularProgress",
56
- slot: "Root",
57
- overridesResolver: (o, t) => {
58
- const {
59
- ownerState: r
60
- } = o;
61
- return [t.root, t[r.variant], t[`color${u(r.color)}`]];
62
- }
63
- })(S(({
64
- theme: o
65
- }) => ({
66
- display: "inline-block",
67
- variants: [{
68
- props: {
69
- variant: "determinate"
70
- },
71
- style: {
72
- transition: o.transitions.create("transform")
73
- }
74
- }, {
75
- props: {
76
- variant: "indeterminate"
77
- },
78
- style: _ || {
79
- animation: `${$} 1.4s linear infinite`
80
- }
81
- }, ...Object.entries(o.palette).filter(H()).map(([t]) => ({
82
- props: {
83
- color: t
84
- },
85
- style: {
86
- color: (o.vars || o).palette[t].main
87
- }
88
- }))]
89
- }))), J = f("svg", {
90
- name: "MuiCircularProgress",
91
- slot: "Svg",
92
- overridesResolver: (o, t) => t.svg
93
- })({
94
- display: "block"
95
- // Keeps the progress centered
96
- }), Q = f("circle", {
97
- name: "MuiCircularProgress",
98
- slot: "Circle",
99
- overridesResolver: (o, t) => {
100
- const {
101
- ownerState: r
102
- } = o;
103
- return [t.circle, t[`circle${u(r.variant)}`], r.disableShrink && t.circleDisableShrink];
104
- }
105
- })(S(({
106
- theme: o
107
- }) => ({
108
- stroke: "currentColor",
109
- variants: [{
110
- props: {
111
- variant: "determinate"
112
- },
113
- style: {
114
- transition: o.transitions.create("stroke-dashoffset")
115
- }
116
- }, {
117
- props: {
118
- variant: "indeterminate"
119
- },
120
- style: {
121
- // Some default value that looks fine waiting for the animation to kicks in.
122
- strokeDasharray: "80px, 200px",
123
- strokeDashoffset: 0
124
- // Add the unit to fix a Edge 16 and below bug.
125
- }
126
- }, {
127
- props: ({
128
- ownerState: t
129
- }) => t.variant === "indeterminate" && !t.disableShrink,
130
- style: Y || {
131
- // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
132
- animation: `${w} 1.4s ease-in-out infinite`
133
- }
134
- }]
135
- }))), j = /* @__PURE__ */ k.forwardRef(function(t, r) {
136
- const i = M({
137
- props: t,
138
- name: "MuiCircularProgress"
139
- }), {
140
- className: g,
141
- color: a = "primary",
142
- disableShrink: P = !1,
143
- size: m = 40,
144
- style: C,
145
- thickness: s = 3.6,
146
- value: b = 0,
147
- variant: L = "indeterminate",
148
- ...x
149
- } = i, h = {
150
- ...i,
151
- color: a,
152
- disableShrink: P,
153
- size: m,
154
- thickness: s,
155
- value: b,
156
- variant: L
157
- }, y = Z(h), v = {}, l = {}, p = {};
158
- if (L === "determinate") {
159
- const I = 2 * Math.PI * ((c - s) / 2);
160
- v.strokeDasharray = I.toFixed(3), p["aria-valuenow"] = Math.round(b), v.strokeDashoffset = `${((100 - b) / 100 * I).toFixed(3)}px`, l.transform = "rotate(-90deg)";
161
- }
162
- return /* @__PURE__ */ d(q, {
163
- className: W(y.root, g),
164
- style: {
165
- width: m,
166
- height: m,
167
- ...l,
168
- ...C
169
- },
170
- ownerState: h,
171
- ref: r,
172
- role: "progressbar",
173
- ...p,
174
- ...x,
175
- children: /* @__PURE__ */ d(J, {
176
- className: y.svg,
177
- ownerState: h,
178
- viewBox: `${c / 2} ${c / 2} ${c} ${c}`,
179
- children: /* @__PURE__ */ d(Q, {
180
- className: y.circle,
181
- style: v,
182
- ownerState: h,
183
- cx: c,
184
- cy: c,
185
- r: (c - s) / 2,
186
- fill: "none",
187
- strokeWidth: s
188
- })
189
- })
190
- });
191
- });
192
- process.env.NODE_ENV !== "production" && (j.propTypes = {
193
- // ┌────────────────────────────── Warning ──────────────────────────────┐
194
- // │ These PropTypes are generated from the TypeScript type definitions. │
195
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
196
- // └─────────────────────────────────────────────────────────────────────┘
197
- /**
198
- * Override or extend the styles applied to the component.
199
- */
200
- classes: n.object,
201
- /**
202
- * @ignore
203
- */
204
- className: n.string,
205
- /**
206
- * The color of the component.
207
- * It supports both default and custom theme colors, which can be added as shown in the
208
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
209
- * @default 'primary'
210
- */
211
- color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), n.string]),
212
- /**
213
- * If `true`, the shrink animation is disabled.
214
- * This only works if variant is `indeterminate`.
215
- * @default false
216
- */
217
- disableShrink: T(n.bool, (o) => o.disableShrink && o.variant && o.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
218
- /**
219
- * The size of the component.
220
- * If using a number, the pixel unit is assumed.
221
- * If using a string, you need to provide the CSS unit, for example '3rem'.
222
- * @default 40
223
- */
224
- size: n.oneOfType([n.number, n.string]),
225
- /**
226
- * @ignore
227
- */
228
- style: n.object,
229
- /**
230
- * The system prop that allows defining system overrides as well as additional CSS styles.
231
- */
232
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
233
- /**
234
- * The thickness of the circle.
235
- * @default 3.6
236
- */
237
- thickness: n.number,
238
- /**
239
- * The value of the progress indicator for the determinate variant.
240
- * Value between 0 and 100.
241
- * @default 0
242
- */
243
- value: n.number,
244
- /**
245
- * The variant to use.
246
- * Use indeterminate when there is no progress value.
247
- * @default 'indeterminate'
248
- */
249
- variant: n.oneOf(["determinate", "indeterminate"])
250
- });
251
- function X(o) {
252
- return O("MuiLoadingButton", o);
253
- }
254
- const e = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), oo = (o) => {
255
- const {
256
- loading: t,
257
- loadingPosition: r,
258
- classes: i
259
- } = o, g = {
260
- root: ["root", t && "loading"],
261
- label: ["label"],
262
- startIcon: [t && `startIconLoading${u(r)}`],
263
- endIcon: [t && `endIconLoading${u(r)}`],
264
- loadingIndicator: ["loadingIndicator", t && `loadingIndicator${u(r)}`]
265
- }, a = E(g, X, i);
266
- return {
267
- ...i,
268
- // forward the outlined, color, etc. classes to Button
269
- ...a
270
- };
271
- }, to = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", no = f(G, {
272
- shouldForwardProp: (o) => to(o) || o === "classes",
273
- name: "MuiLoadingButton",
274
- slot: "Root",
275
- overridesResolver: (o, t) => [t.root, t.startIconLoadingStart && {
276
- [`& .${e.startIconLoadingStart}`]: t.startIconLoadingStart
277
- }, t.endIconLoadingEnd && {
278
- [`& .${e.endIconLoadingEnd}`]: t.endIconLoadingEnd
279
- }]
280
- })(S(({
281
- theme: o
282
- }) => ({
283
- display: "inline-flex",
284
- [`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]: {
285
- transition: o.transitions.create(["opacity"], {
286
- duration: o.transitions.duration.short
287
- }),
288
- opacity: 0
289
- },
290
- variants: [{
291
- props: {
292
- loadingPosition: "center"
293
- },
294
- style: {
295
- transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
296
- duration: o.transitions.duration.short
297
- }),
298
- [`&.${e.loading}`]: {
299
- color: "transparent"
300
- }
301
- }
302
- }, {
303
- props: ({
304
- ownerState: t
305
- }) => t.loadingPosition === "start" && t.fullWidth,
306
- style: {
307
- [`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]: {
308
- transition: o.transitions.create(["opacity"], {
309
- duration: o.transitions.duration.short
310
- }),
311
- opacity: 0,
312
- marginRight: -8
313
- }
314
- }
315
- }, {
316
- props: ({
317
- ownerState: t
318
- }) => t.loadingPosition === "end" && t.fullWidth,
319
- style: {
320
- [`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]: {
321
- transition: o.transitions.create(["opacity"], {
322
- duration: o.transitions.duration.short
323
- }),
324
- opacity: 0,
325
- marginLeft: -8
326
- }
327
- }
328
- }]
329
- }))), ro = f("span", {
330
- name: "MuiLoadingButton",
331
- slot: "LoadingIndicator",
332
- overridesResolver: (o, t) => {
333
- const {
334
- ownerState: r
335
- } = o;
336
- return [t.loadingIndicator, t[`loadingIndicator${u(r.loadingPosition)}`]];
337
- }
338
- })(S(({
339
- theme: o
340
- }) => ({
341
- position: "absolute",
342
- visibility: "visible",
343
- display: "flex",
344
- variants: [{
345
- props: {
346
- loadingPosition: "start",
347
- size: "small"
348
- },
349
- style: {
350
- left: 10
351
- }
352
- }, {
353
- props: ({
354
- loadingPosition: t,
355
- ownerState: r
356
- }) => t === "start" && r.size !== "small",
357
- style: {
358
- left: 14
359
- }
360
- }, {
361
- props: {
362
- variant: "text",
363
- loadingPosition: "start"
364
- },
365
- style: {
366
- left: 6
367
- }
368
- }, {
369
- props: {
370
- loadingPosition: "center"
371
- },
372
- style: {
373
- left: "50%",
374
- transform: "translate(-50%)",
375
- color: (o.vars || o).palette.action.disabled
376
- }
377
- }, {
378
- props: {
379
- loadingPosition: "end",
380
- size: "small"
381
- },
382
- style: {
383
- right: 10
384
- }
385
- }, {
386
- props: ({
387
- loadingPosition: t,
388
- ownerState: r
389
- }) => t === "end" && r.size !== "small",
390
- style: {
391
- right: 14
392
- }
393
- }, {
394
- props: {
395
- variant: "text",
396
- loadingPosition: "end"
397
- },
398
- style: {
399
- right: 6
400
- }
401
- }, {
402
- props: ({
403
- ownerState: t
404
- }) => t.loadingPosition === "start" && t.fullWidth,
405
- style: {
406
- position: "relative",
407
- left: -10
408
- }
409
- }, {
410
- props: ({
411
- ownerState: t
412
- }) => t.loadingPosition === "end" && t.fullWidth,
413
- style: {
414
- position: "relative",
415
- right: -10
416
- }
417
- }]
418
- }))), B = f("span", {
419
- name: "MuiLoadingButton",
420
- slot: "Label",
421
- overridesResolver: (o, t) => [t.label]
422
- })({
423
- display: "inherit",
424
- alignItems: "inherit",
425
- justifyContent: "inherit"
426
- }), z = /* @__PURE__ */ k.forwardRef(function(t, r) {
427
- const i = k.useContext(F), g = V(i, t), a = M({
428
- props: g,
429
- name: "MuiLoadingButton"
430
- }), {
431
- children: P,
432
- disabled: m = !1,
433
- id: C,
434
- loading: s = !1,
435
- loadingIndicator: b,
436
- loadingPosition: L = "center",
437
- variant: x = "text",
438
- ...h
439
- } = a, y = A(C), v = b ?? /* @__PURE__ */ d(j, {
440
- "aria-labelledby": y,
441
- color: "inherit",
442
- size: 16
443
- }), l = {
444
- ...a,
445
- disabled: m,
446
- loading: s,
447
- loadingIndicator: v,
448
- loadingPosition: L,
449
- variant: x
450
- }, p = oo(l), I = s ? /* @__PURE__ */ d(ro, {
451
- className: p.loadingIndicator,
452
- ownerState: l,
453
- children: v
454
- }) : null;
455
- return /* @__PURE__ */ U(no, {
456
- disabled: m || s,
457
- id: y,
458
- ref: r,
459
- ...h,
460
- variant: x,
461
- classes: p,
462
- ownerState: l,
463
- children: [l.loadingPosition === "end" ? /* @__PURE__ */ d(B, {
464
- className: p.label,
465
- children: P
466
- }) : I, l.loadingPosition === "end" ? I : /* @__PURE__ */ d(B, {
467
- className: p.label,
468
- children: P
469
- })]
470
- });
471
- });
472
- process.env.NODE_ENV !== "production" && (z.propTypes = {
473
- // ┌────────────────────────────── Warning ──────────────────────────────┐
474
- // │ These PropTypes are generated from the TypeScript type definitions. │
475
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
476
- // └─────────────────────────────────────────────────────────────────────┘
477
- /**
478
- * The content of the component.
479
- */
480
- children: n.node,
481
- /**
482
- * Override or extend the styles applied to the component.
483
- */
484
- classes: n.object,
485
- /**
486
- * If `true`, the component is disabled.
487
- * @default false
488
- */
489
- disabled: n.bool,
490
- /**
491
- * @ignore
492
- */
493
- id: n.string,
494
- /**
495
- * If `true`, the loading indicator is shown and the button becomes disabled.
496
- * @default false
497
- */
498
- loading: n.bool,
499
- /**
500
- * Element placed before the children if the button is in loading state.
501
- * The node should contain an element with `role="progressbar"` with an accessible name.
502
- * By default we render a `CircularProgress` that is labelled by the button itself.
503
- * @default <CircularProgress color="inherit" size={16} />
504
- */
505
- loadingIndicator: n.node,
506
- /**
507
- * The loading indicator can be positioned on the start, end, or the center of the button.
508
- * @default 'center'
509
- */
510
- loadingPosition: T(n.oneOf(["start", "end", "center"]), (o) => o.loadingPosition === "start" && !o.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : o.loadingPosition === "end" && !o.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
511
- /**
512
- * The system prop that allows defining system overrides as well as additional CSS styles.
513
- */
514
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
515
- /**
516
- * The variant to use.
517
- * @default 'text'
518
- */
519
- variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
520
- });
521
- const io = f(z)(({ color: o, theme: t }) => ({
522
- minHeight: 38,
523
- textTransform: "none",
524
- transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
525
- "&.MuiButton-outlined": {
526
- borderRadius: 5,
527
- borderWidth: 2
528
- /* "&:hover": {
529
- //backgroundColor: theme.palette[color].main,
530
- color: theme.palette.common.white,
531
- },*/
532
- }
533
- })), yo = ({
534
- variant: o = "outlined",
535
- ...t
536
- }) => /* @__PURE__ */ d(io, { variant: o, ...t });
537
- export {
538
- yo as B,
539
- j as C,
540
- ho as c,
541
- K as g
542
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),c=require("./createSvgIcon-CWNQW6u6.cjs"),s=c.createSvgIcon(e.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded");exports.CloseRounded=s;
@@ -1,8 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { c } from "./createSvgIcon-Cd6y8E9W.js";
3
- const a = c(/* @__PURE__ */ o("path", {
4
- d: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"
5
- }), "CloseRounded");
6
- export {
7
- a as C
8
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),e=require("../../createSvgIcon-CWNQW6u6.cjs"),s=e.createSvgIcon(c.jsx("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"}),"CalendarViewMonthRounded"),n=e.createSvgIcon(c.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),h=e.createSvgIcon(c.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined"),a=e.createSvgIcon(c.jsx("path",{d:"M4 6.47 5.76 10H20v8H4zM22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2z"}),"MovieOutlined"),o=e.createSvgIcon(c.jsx("path",{d:"M12 5v8.55c-.94-.54-2.1-.75-3.33-.32-1.34.48-2.37 1.67-2.61 3.07-.46 2.74 1.86 5.08 4.59 4.65 1.96-.31 3.35-2.11 3.35-4.1V7h2c1.1 0 2-.9 2-2s-.9-2-2-2h-2c-1.1 0-2 .9-2 2"}),"MusicNoteRounded"),r=e.createSvgIcon(c.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1m-5.52-5.13-3.98 2.28c-.67.38-1.5-.11-1.5-.87V8.72c0-.77.83-1.25 1.5-.87l3.98 2.28c.67.39.67 1.35 0 1.74"}),"OndemandVideoRounded"),d=e.createSvgIcon(c.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"}),"PhotoOutlined"),v=e.createSvgIcon(c.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1m-2-3h1v3h-1zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1zm0-2h1v1h-1z"}),"PictureAsPdfOutlined"),i=({extension:t})=>{switch(t.toUpperCase()){case"MP3":case"MIDI":case"WAV":return c.jsx(o,{});case"JPG":case"JPEG":case"PNG":case"SVG":return c.jsx(d,{});case"MP4":case"MOV":case"AVI":return c.jsx(a,{});case"CSV":case"ODS":case"XLS":case"XLSX":return c.jsx(s,{});case"PDF":return c.jsx(v,{});case"ODT":case"DOC":case"DOCX":case"TXT":return c.jsx(n,{});case"ODP":case"PPT":case"PPTX":return c.jsx(r,{});default:return c.jsx(h,{})}};exports.FileIcon=i;
@@ -1,3 +0,0 @@
1
- export declare const FileIcon: React.FC<{
2
- extension: string;
3
- }>;
@@ -1,56 +0,0 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { c as e } from "../../createSvgIcon-Cd6y8E9W.js";
3
- const t = e(/* @__PURE__ */ c("path", {
4
- d: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"
5
- }), "CalendarViewMonthRounded"), n = e(/* @__PURE__ */ c("path", {
6
- d: "M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"
7
- }), "DescriptionOutlined"), s = e(/* @__PURE__ */ c("path", {
8
- d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"
9
- }), "InsertDriveFileOutlined"), d = e(/* @__PURE__ */ c("path", {
10
- d: "M4 6.47 5.76 10H20v8H4zM22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2z"
11
- }), "MovieOutlined"), a = e(/* @__PURE__ */ c("path", {
12
- d: "M12 5v8.55c-.94-.54-2.1-.75-3.33-.32-1.34.48-2.37 1.67-2.61 3.07-.46 2.74 1.86 5.08 4.59 4.65 1.96-.31 3.35-2.11 3.35-4.1V7h2c1.1 0 2-.9 2-2s-.9-2-2-2h-2c-1.1 0-2 .9-2 2"
13
- }), "MusicNoteRounded"), o = e(/* @__PURE__ */ c("path", {
14
- d: "M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1m-5.52-5.13-3.98 2.28c-.67.38-1.5-.11-1.5-.87V8.72c0-.77.83-1.25 1.5-.87l3.98 2.28c.67.39.67 1.35 0 1.74"
15
- }), "OndemandVideoRounded"), r = e(/* @__PURE__ */ c("path", {
16
- d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"
17
- }), "PhotoOutlined"), i = e(/* @__PURE__ */ c("path", {
18
- d: "M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1m-2-3h1v3h-1zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1zm0-2h1v1h-1z"
19
- }), "PictureAsPdfOutlined"), V = ({ extension: h }) => {
20
- switch (h.toUpperCase()) {
21
- case "MP3":
22
- case "MIDI":
23
- case "WAV":
24
- return /* @__PURE__ */ c(a, {});
25
- case "JPG":
26
- case "JPEG":
27
- case "PNG":
28
- case "SVG":
29
- return /* @__PURE__ */ c(r, {});
30
- case "MP4":
31
- case "MOV":
32
- case "AVI":
33
- return /* @__PURE__ */ c(d, {});
34
- case "CSV":
35
- case "ODS":
36
- case "XLS":
37
- case "XLSX":
38
- return /* @__PURE__ */ c(t, {});
39
- case "PDF":
40
- return /* @__PURE__ */ c(i, {});
41
- case "ODT":
42
- case "DOC":
43
- case "DOCX":
44
- case "TXT":
45
- return /* @__PURE__ */ c(n, {});
46
- case "ODP":
47
- case "PPT":
48
- case "PPTX":
49
- return /* @__PURE__ */ c(o, {});
50
- default:
51
- return /* @__PURE__ */ c(s, {});
52
- }
53
- };
54
- export {
55
- V as FileIcon
56
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@mui/material"),t=()=>e.jsx(r.Stack,{height:"100%",children:e.jsx(r.Stack,{height:"4px",width:"4px",borderRadius:"50%",sx:{backgroundColor:"divider"}})});exports.FileInfosSeparator=t;
@@ -1 +0,0 @@
1
- export declare const FileInfosSeparator: () => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { Stack as o } from "@mui/material";
3
- const e = () => /* @__PURE__ */ r(o, { height: "100%", children: /* @__PURE__ */ r(
4
- o,
5
- {
6
- height: "4px",
7
- width: "4px",
8
- borderRadius: "50%",
9
- sx: { backgroundColor: "divider" }
10
- }
11
- ) });
12
- export {
13
- e as FileInfosSeparator
14
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=t=>{if(!t||t<0)return null;const n=["octets","Ko","Mo","Go","To"],o=Math.min(Math.floor(Math.log2(t)/10),n.length-1);return`${(t/1024**o).toFixed(1)} ${n[o]}`},l=t=>{if(!t)return null;const n=t.split(".").pop();return n?n.toUpperCase():null};exports.displayExtension=l;exports.displaySize=e;
@@ -1,2 +0,0 @@
1
- export declare const displaySize: (size: number) => string | null;
2
- export declare const displayExtension: (name: string) => string | null;
@@ -1,13 +0,0 @@
1
- const l = (t) => {
2
- if (!t || t < 0) return null;
3
- const n = ["octets", "Ko", "Mo", "Go", "To"], o = Math.min(Math.floor(Math.log2(t) / 10), n.length - 1);
4
- return `${(t / 1024 ** o).toFixed(1)} ${n[o]}`;
5
- }, e = (t) => {
6
- if (!t) return null;
7
- const n = t.split(".").pop();
8
- return n ? n.toUpperCase() : null;
9
- };
10
- export {
11
- e as displayExtension,
12
- l as displaySize
13
- };