@cgi-learning-hub/ui 1.0.0-dev.1721209039 → 1.0.0-dev.1721225898

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 (29) hide show
  1. package/dist/{Box-RP_U1h2I.cjs → Box-BQxBYVZt.cjs} +1 -1
  2. package/dist/{Box-DIvTvtYV.js → Box-VYRU2gLm.js} +29 -28
  3. package/dist/{PaperHeader-DAzxEUlx.js → Stack-BzRRUmUj.js} +122 -158
  4. package/dist/Stack-DjqxU_kp.cjs +1 -0
  5. package/dist/{TimePicker-C64jDcYa.js → TimePicker-BaGeKkSS.js} +1 -1
  6. package/dist/{TimePicker-DKHA-KBc.cjs → TimePicker-C24cztnp.cjs} +13 -13
  7. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  8. package/dist/components/Dropzone/Dropzone.d.ts +2 -2
  9. package/dist/components/Dropzone/Dropzone.es.js +127 -125
  10. package/dist/components/Loader/Loader.cjs.js +1 -1
  11. package/dist/components/Loader/Loader.es.js +1 -1
  12. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  13. package/dist/components/PaperHeader/PaperHeader.es.js +39 -4
  14. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  15. package/dist/components/PaperHeader/PaperHeader.stories.es.js +1 -1
  16. package/dist/components/PaperHeader/index.cjs.js +1 -1
  17. package/dist/components/PaperHeader/index.es.js +2 -2
  18. package/dist/components/index.cjs.js +1 -1
  19. package/dist/components/index.es.js +46 -45
  20. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
  21. package/dist/components/inputs/PasswordInput/PasswordInput.es.js +2 -3
  22. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  23. package/dist/components/lists/FileList/FileList.es.js +1 -1
  24. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  25. package/dist/components/lists/FileList/FileListItem.es.js +1 -1
  26. package/dist/index.cjs.js +1 -1
  27. package/dist/index.es.js +45 -44
  28. package/package.json +6 -17
  29. package/dist/PaperHeader-D2LH9bW-.cjs +0 -1
@@ -2,23 +2,22 @@ import nr, { jsxs as ve, jsx as T, Fragment as Ue } from "react/jsx-runtime";
2
2
  import { k as or, P as f } from "../../identifier-wD7TMRod.js";
3
3
  import { r as ir } from "../../createSvgIcon-XuLYHpIN.js";
4
4
  import xr, { useMemo as I, useRef as Q, useReducer as Fr, useEffect as ye, useCallback as A, forwardRef as _r, useImperativeHandle as jr, Fragment as Sr } from "react";
5
- import { s as Pr } from "../../styled-DBkKGFww.js";
6
- import { B as Tr } from "../../Box-DIvTvtYV.js";
5
+ import { S as Pr } from "../../Stack-BzRRUmUj.js";
7
6
  import { T as be } from "../../Typography-DDYzN_3X.js";
8
- var xe = {}, Ir = or;
7
+ var xe = {}, Tr = or;
9
8
  Object.defineProperty(xe, "__esModule", {
10
9
  value: !0
11
10
  });
12
- var ar = xe.default = void 0, Cr = Ir(ir()), Rr = nr;
13
- ar = xe.default = (0, Cr.default)(/* @__PURE__ */ (0, Rr.jsx)("path", {
11
+ var ar = xe.default = void 0, Ir = Tr(ir()), Cr = nr;
12
+ ar = xe.default = (0, Ir.default)(/* @__PURE__ */ (0, Cr.jsx)("path", {
14
13
  d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"
15
14
  }), "FileUpload");
16
- var Fe = {}, zr = or;
15
+ var Fe = {}, Rr = or;
17
16
  Object.defineProperty(Fe, "__esModule", {
18
17
  value: !0
19
18
  });
20
- var ur = Fe.default = void 0, kr = zr(ir()), Lr = nr;
21
- ur = Fe.default = (0, kr.default)(/* @__PURE__ */ (0, Lr.jsx)("path", {
19
+ var ur = Fe.default = void 0, zr = Rr(ir()), kr = nr;
20
+ ur = Fe.default = (0, zr.default)(/* @__PURE__ */ (0, kr.jsx)("path", {
22
21
  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-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"
23
22
  }), "UploadFile");
24
23
  function C(e, r, t, n) {
@@ -130,7 +129,7 @@ function Ne(e, r, t) {
130
129
  (o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
131
130
  return e.concat(o || Array.prototype.slice.call(r));
132
131
  }
133
- var Mr = /* @__PURE__ */ new Map([
132
+ var Lr = /* @__PURE__ */ new Map([
134
133
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
135
134
  ["aac", "audio/aac"],
136
135
  ["abw", "application/x-abiword"],
@@ -214,8 +213,8 @@ var Mr = /* @__PURE__ */ new Map([
214
213
  ["mov", "video/quicktime"],
215
214
  ["msg", "application/vnd.ms-outlook"]
216
215
  ]);
217
- function W(e, r) {
218
- var t = $r(e);
216
+ function B(e, r) {
217
+ var t = Mr(e);
219
218
  if (typeof t.path != "string") {
220
219
  var n = e.webkitRelativePath;
221
220
  Object.defineProperty(t, "path", {
@@ -227,10 +226,10 @@ function W(e, r) {
227
226
  }
228
227
  return t;
229
228
  }
230
- function $r(e) {
229
+ function Mr(e) {
231
230
  var r = e.name, t = r && r.lastIndexOf(".") !== -1;
232
231
  if (t && !e.type) {
233
- var n = r.split(".").pop().toLowerCase(), i = Mr.get(n);
232
+ var n = r.split(".").pop().toLowerCase(), i = Lr.get(n);
234
233
  i && Object.defineProperty(e, "type", {
235
234
  value: i,
236
235
  writable: !1,
@@ -240,22 +239,22 @@ function $r(e) {
240
239
  }
241
240
  return e;
242
241
  }
243
- var Kr = [
242
+ var $r = [
244
243
  // Thumbnail cache files for macOS and Windows
245
244
  ".DS_Store",
246
245
  "Thumbs.db"
247
246
  // Windows
248
247
  ];
249
- function Hr(e) {
248
+ function Kr(e) {
250
249
  return C(this, void 0, void 0, function() {
251
250
  return R(this, function(r) {
252
- return Z(e) && Br(e.dataTransfer) ? [2, Nr(e.dataTransfer, e.type)] : Wr(e) ? [2, Ur(e)] : Array.isArray(e) && e.every(function(t) {
251
+ return Z(e) && Hr(e.dataTransfer) ? [2, qr(e.dataTransfer, e.type)] : Wr(e) ? [2, Br(e)] : Array.isArray(e) && e.every(function(t) {
253
252
  return "getFile" in t && typeof t.getFile == "function";
254
- }) ? [2, qr(e)] : [2, []];
253
+ }) ? [2, Ur(e)] : [2, []];
255
254
  });
256
255
  });
257
256
  }
258
- function Br(e) {
257
+ function Hr(e) {
259
258
  return Z(e);
260
259
  }
261
260
  function Wr(e) {
@@ -264,12 +263,12 @@ function Wr(e) {
264
263
  function Z(e) {
265
264
  return typeof e == "object" && e !== null;
266
265
  }
267
- function Ur(e) {
266
+ function Br(e) {
268
267
  return De(e.target.files).map(function(r) {
269
- return W(r);
268
+ return B(r);
270
269
  });
271
270
  }
272
- function qr(e) {
271
+ function Ur(e) {
273
272
  return C(this, void 0, void 0, function() {
274
273
  var r;
275
274
  return R(this, function(t) {
@@ -280,13 +279,13 @@ function qr(e) {
280
279
  }))];
281
280
  case 1:
282
281
  return r = t.sent(), [2, r.map(function(n) {
283
- return W(n);
282
+ return B(n);
284
283
  })];
285
284
  }
286
285
  });
287
286
  });
288
287
  }
289
- function Nr(e, r) {
288
+ function qr(e, r) {
290
289
  return C(this, void 0, void 0, function() {
291
290
  var t, n;
292
291
  return R(this, function(i) {
@@ -294,12 +293,12 @@ function Nr(e, r) {
294
293
  case 0:
295
294
  return e.items ? (t = De(e.items).filter(function(o) {
296
295
  return o.kind === "file";
297
- }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(Gr))]) : [3, 2];
296
+ }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(Nr))]) : [3, 2];
298
297
  case 1:
299
298
  return n = i.sent(), [2, Ge(cr(n))];
300
299
  case 2:
301
300
  return [2, Ge(De(e.files).map(function(o) {
302
- return W(o);
301
+ return B(o);
303
302
  }))];
304
303
  }
305
304
  });
@@ -307,7 +306,7 @@ function Nr(e, r) {
307
306
  }
308
307
  function Ge(e) {
309
308
  return e.filter(function(r) {
310
- return Kr.indexOf(r.name) === -1;
309
+ return $r.indexOf(r.name) === -1;
311
310
  });
312
311
  }
313
312
  function De(e) {
@@ -319,7 +318,7 @@ function De(e) {
319
318
  }
320
319
  return r;
321
320
  }
322
- function Gr(e) {
321
+ function Nr(e) {
323
322
  if (typeof e.webkitGetAsEntry != "function")
324
323
  return Ye(e);
325
324
  var r = e.webkitGetAsEntry();
@@ -334,13 +333,13 @@ function Ye(e) {
334
333
  var r = e.getAsFile();
335
334
  if (!r)
336
335
  return Promise.reject("".concat(e, " is not a File"));
337
- var t = W(r);
336
+ var t = B(r);
338
337
  return Promise.resolve(t);
339
338
  }
340
- function Yr(e) {
339
+ function Gr(e) {
341
340
  return C(this, void 0, void 0, function() {
342
341
  return R(this, function(r) {
343
- return [2, e.isDirectory ? lr(e) : Vr(e)];
342
+ return [2, e.isDirectory ? lr(e) : Yr(e)];
344
343
  });
345
344
  });
346
345
  }
@@ -367,7 +366,7 @@ function lr(e) {
367
366
  case 4:
368
367
  return [3, 6];
369
368
  case 5:
370
- m = Promise.all(s.map(Yr)), i.push(m), o(), y.label = 6;
369
+ m = Promise.all(s.map(Gr)), i.push(m), o(), y.label = 6;
371
370
  case 6:
372
371
  return [
373
372
  2
@@ -383,12 +382,12 @@ function lr(e) {
383
382
  o();
384
383
  });
385
384
  }
386
- function Vr(e) {
385
+ function Yr(e) {
387
386
  return C(this, void 0, void 0, function() {
388
387
  return R(this, function(r) {
389
388
  return [2, new Promise(function(t, n) {
390
389
  e.file(function(i) {
391
- var o = W(i, e.fullPath);
390
+ var o = B(i, e.fullPath);
392
391
  t(o);
393
392
  }, function(i) {
394
393
  n(i);
@@ -397,7 +396,7 @@ function Vr(e) {
397
396
  });
398
397
  });
399
398
  }
400
- var Jr = function(e, r) {
399
+ var Vr = function(e, r) {
401
400
  if (e && r) {
402
401
  var t = Array.isArray(r) ? r : r.split(","), n = e.name || "", i = (e.type || "").toLowerCase(), o = i.replace(/\/.*$/, "");
403
402
  return t.some(function(c) {
@@ -408,16 +407,16 @@ var Jr = function(e, r) {
408
407
  return !0;
409
408
  };
410
409
  function Ve(e) {
411
- return Zr(e) || Xr(e) || fr(e) || Qr();
410
+ return Xr(e) || Qr(e) || fr(e) || Jr();
412
411
  }
413
- function Qr() {
412
+ function Jr() {
414
413
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
415
414
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
416
415
  }
417
- function Xr(e) {
416
+ function Qr(e) {
418
417
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
419
418
  }
420
- function Zr(e) {
419
+ function Xr(e) {
421
420
  if (Array.isArray(e)) return we(e);
422
421
  }
423
422
  function Je(e, r) {
@@ -444,10 +443,10 @@ function Qe(e) {
444
443
  function sr(e, r, t) {
445
444
  return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
446
445
  }
447
- function B(e, r) {
448
- return tt(e) || rt(e, r) || fr(e, r) || et();
446
+ function W(e, r) {
447
+ return rt(e) || et(e, r) || fr(e, r) || Zr();
449
448
  }
450
- function et() {
449
+ function Zr() {
451
450
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
452
451
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
453
452
  }
@@ -465,7 +464,7 @@ function we(e, r) {
465
464
  n[t] = e[t];
466
465
  return n;
467
466
  }
468
- function rt(e, r) {
467
+ function et(e, r) {
469
468
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
470
469
  if (t != null) {
471
470
  var n = [], i = !0, o = !1, c, s;
@@ -484,33 +483,33 @@ function rt(e, r) {
484
483
  return n;
485
484
  }
486
485
  }
487
- function tt(e) {
486
+ function rt(e) {
488
487
  if (Array.isArray(e)) return e;
489
488
  }
490
- var nt = "file-invalid-type", ot = "file-too-large", it = "file-too-small", at = "too-many-files", ut = function(r) {
489
+ var tt = "file-invalid-type", nt = "file-too-large", ot = "file-too-small", it = "too-many-files", at = function(r) {
491
490
  r = Array.isArray(r) && r.length === 1 ? r[0] : r;
492
491
  var t = Array.isArray(r) ? "one of ".concat(r.join(", ")) : r;
493
492
  return {
494
- code: nt,
493
+ code: tt,
495
494
  message: "File type must be ".concat(t)
496
495
  };
497
496
  }, Xe = function(r) {
498
497
  return {
499
- code: ot,
498
+ code: nt,
500
499
  message: "File is larger than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
501
500
  };
502
501
  }, Ze = function(r) {
503
502
  return {
504
- code: it,
503
+ code: ot,
505
504
  message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
506
505
  };
507
- }, ct = {
508
- code: at,
506
+ }, ut = {
507
+ code: it,
509
508
  message: "Too many files"
510
509
  };
511
510
  function pr(e, r) {
512
- var t = e.type === "application/x-moz-file" || Jr(e, r);
513
- return [t, t ? null : ut(r)];
511
+ var t = e.type === "application/x-moz-file" || Vr(e, r);
512
+ return [t, t ? null : at(r)];
514
513
  }
515
514
  function dr(e, r, t) {
516
515
  if (F(e.size))
@@ -526,10 +525,10 @@ function dr(e, r, t) {
526
525
  function F(e) {
527
526
  return e != null;
528
527
  }
529
- function lt(e) {
528
+ function ct(e) {
530
529
  var r = e.files, t = e.accept, n = e.minSize, i = e.maxSize, o = e.multiple, c = e.maxFiles, s = e.validator;
531
530
  return !o && r.length > 1 || o && c >= 1 && r.length > c ? !1 : r.every(function(d) {
532
- var l = pr(d, t), m = B(l, 1), y = m[0], z = dr(d, n, i), k = B(z, 1), L = k[0], M = s ? s(d) : null;
531
+ var l = pr(d, t), m = W(l, 1), y = m[0], z = dr(d, n, i), k = W(z, 1), L = k[0], M = s ? s(d) : null;
533
532
  return y && L && !M;
534
533
  });
535
534
  }
@@ -544,15 +543,15 @@ function X(e) {
544
543
  function er(e) {
545
544
  e.preventDefault();
546
545
  }
547
- function st(e) {
546
+ function lt(e) {
548
547
  return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
549
548
  }
550
- function ft(e) {
549
+ function st(e) {
551
550
  return e.indexOf("Edge/") !== -1;
552
551
  }
553
- function pt() {
552
+ function ft() {
554
553
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
555
- return st(e) || ft(e);
554
+ return lt(e) || st(e);
556
555
  }
557
556
  function E() {
558
557
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
@@ -565,16 +564,16 @@ function E() {
565
564
  });
566
565
  };
567
566
  }
568
- function dt() {
567
+ function pt() {
569
568
  return "showOpenFilePicker" in window;
570
569
  }
571
- function mt(e) {
570
+ function dt(e) {
572
571
  if (F(e)) {
573
572
  var r = Object.entries(e).filter(function(t) {
574
- var n = B(t, 2), i = n[0], o = n[1], c = !0;
573
+ var n = W(t, 2), i = n[0], o = n[1], c = !0;
575
574
  return mr(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), c = !1), (!Array.isArray(o) || !o.every(gr)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), c = !1), c;
576
575
  }).reduce(function(t, n) {
577
- var i = B(n, 2), o = i[0], c = i[1];
576
+ var i = W(n, 2), o = i[0], c = i[1];
578
577
  return Qe(Qe({}, t), {}, sr({}, o, c));
579
578
  }, {});
580
579
  return [{
@@ -585,19 +584,19 @@ function mt(e) {
585
584
  }
586
585
  return e;
587
586
  }
588
- function gt(e) {
587
+ function mt(e) {
589
588
  if (F(e))
590
589
  return Object.entries(e).reduce(function(r, t) {
591
- var n = B(t, 2), i = n[0], o = n[1];
590
+ var n = W(t, 2), i = n[0], o = n[1];
592
591
  return [].concat(Ve(r), [i], Ve(o));
593
592
  }, []).filter(function(r) {
594
593
  return mr(r) || gr(r);
595
594
  }).join(",");
596
595
  }
597
- function vt(e) {
596
+ function gt(e) {
598
597
  return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
599
598
  }
600
- function yt(e) {
599
+ function vt(e) {
601
600
  return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
602
601
  }
603
602
  function mr(e) {
@@ -606,24 +605,24 @@ function mr(e) {
606
605
  function gr(e) {
607
606
  return /^.*\.[\w]+$/.test(e);
608
607
  }
609
- var bt = ["children"], ht = ["open"], Dt = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], wt = ["refKey", "onChange", "onClick"];
610
- function At(e) {
611
- return xt(e) || Ot(e) || vr(e) || Et();
608
+ var yt = ["children"], bt = ["open"], ht = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Dt = ["refKey", "onChange", "onClick"];
609
+ function wt(e) {
610
+ return Ot(e) || Et(e) || vr(e) || At();
612
611
  }
613
- function Et() {
612
+ function At() {
614
613
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
615
614
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
616
615
  }
617
- function Ot(e) {
616
+ function Et(e) {
618
617
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
619
618
  }
620
- function xt(e) {
619
+ function Ot(e) {
621
620
  if (Array.isArray(e)) return Ae(e);
622
621
  }
623
622
  function he(e, r) {
624
- return jt(e) || _t(e, r) || vr(e, r) || Ft();
623
+ return _t(e) || Ft(e, r) || vr(e, r) || xt();
625
624
  }
626
- function Ft() {
625
+ function xt() {
627
626
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
628
627
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
629
628
  }
@@ -641,7 +640,7 @@ function Ae(e, r) {
641
640
  n[t] = e[t];
642
641
  return n;
643
642
  }
644
- function _t(e, r) {
643
+ function Ft(e, r) {
645
644
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
646
645
  if (t != null) {
647
646
  var n = [], i = !0, o = !1, c, s;
@@ -660,7 +659,7 @@ function _t(e, r) {
660
659
  return n;
661
660
  }
662
661
  }
663
- function jt(e) {
662
+ function _t(e) {
664
663
  if (Array.isArray(e)) return e;
665
664
  }
666
665
  function rr(e, r) {
@@ -689,7 +688,7 @@ function Ee(e, r, t) {
689
688
  }
690
689
  function re(e, r) {
691
690
  if (e == null) return {};
692
- var t = St(e, r), n, i;
691
+ var t = jt(e, r), n, i;
693
692
  if (Object.getOwnPropertySymbols) {
694
693
  var o = Object.getOwnPropertySymbols(e);
695
694
  for (i = 0; i < o.length; i++)
@@ -697,7 +696,7 @@ function re(e, r) {
697
696
  }
698
697
  return t;
699
698
  }
700
- function St(e, r) {
699
+ function jt(e, r) {
701
700
  if (e == null) return {};
702
701
  var t = {}, n = Object.keys(e), i, o;
703
702
  for (o = 0; o < n.length; o++)
@@ -705,7 +704,7 @@ function St(e, r) {
705
704
  return t;
706
705
  }
707
706
  var _e = /* @__PURE__ */ _r(function(e, r) {
708
- var t = e.children, n = re(e, bt), i = br(n), o = i.open, c = re(i, ht);
707
+ var t = e.children, n = re(e, yt), i = br(n), o = i.open, c = re(i, bt);
709
708
  return jr(r, function() {
710
709
  return {
711
710
  open: o
@@ -717,7 +716,7 @@ var _e = /* @__PURE__ */ _r(function(e, r) {
717
716
  _e.displayName = "Dropzone";
718
717
  var yr = {
719
718
  disabled: !1,
720
- getFilesFromEvent: Hr,
719
+ getFilesFromEvent: Kr,
721
720
  maxSize: 1 / 0,
722
721
  minSize: 0,
723
722
  multiple: !0,
@@ -911,14 +910,14 @@ var Oe = {
911
910
  };
912
911
  function br() {
913
912
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = p(p({}, yr), e), t = r.accept, n = r.disabled, i = r.getFilesFromEvent, o = r.maxSize, c = r.minSize, s = r.multiple, d = r.maxFiles, l = r.onDragEnter, m = r.onDragLeave, y = r.onDragOver, z = r.onDrop, k = r.onDropAccepted, L = r.onDropRejected, M = r.onFileDialogCancel, te = r.onFileDialogOpen, je = r.useFsAccessApi, Se = r.autoFocus, ne = r.preventDropOnDocument, Pe = r.noClick, oe = r.noKeyboard, Te = r.noDrag, O = r.noDragEventsBubbling, ie = r.onError, $ = r.validator, K = I(function() {
914
- return gt(t);
915
- }, [t]), Ie = I(function() {
916
913
  return mt(t);
914
+ }, [t]), Ie = I(function() {
915
+ return dt(t);
917
916
  }, [t]), ae = I(function() {
918
917
  return typeof te == "function" ? te : tr;
919
918
  }, [te]), U = I(function() {
920
919
  return typeof M == "function" ? M : tr;
921
- }, [M]), b = Q(null), w = Q(null), hr = Fr(Pt, Oe), Ce = he(hr, 2), ue = Ce[0], h = Ce[1], Dr = ue.isFocused, Re = ue.isFileDialogActive, q = Q(typeof window < "u" && window.isSecureContext && je && dt()), ze = function() {
920
+ }, [M]), b = Q(null), w = Q(null), hr = Fr(St, Oe), Ce = he(hr, 2), ue = Ce[0], h = Ce[1], Dr = ue.isFocused, Re = ue.isFileDialogActive, q = Q(typeof window < "u" && window.isSecureContext && je && pt()), ze = function() {
922
921
  !q.current && Re && setTimeout(function() {
923
922
  if (w.current) {
924
923
  var u = w.current.files;
@@ -947,9 +946,9 @@ function br() {
947
946
  var x = A(function(a) {
948
947
  ie ? ie(a) : console.error(a);
949
948
  }, [ie]), Le = A(function(a) {
950
- a.preventDefault(), a.persist(), V(a), _.current = [].concat(At(_.current), [a.target]), X(a) && Promise.resolve(i(a)).then(function(u) {
949
+ a.preventDefault(), a.persist(), V(a), _.current = [].concat(wt(_.current), [a.target]), X(a) && Promise.resolve(i(a)).then(function(u) {
951
950
  if (!(ee(a) && !O)) {
952
- var g = u.length, v = g > 0 && lt({
951
+ var g = u.length, v = g > 0 && ct({
953
952
  files: u,
954
953
  accept: K,
955
954
  minSize: c,
@@ -1006,7 +1005,7 @@ function br() {
1006
1005
  }), (!s && g.length > 1 || s && d >= 1 && g.length > d) && (g.forEach(function(D) {
1007
1006
  v.push({
1008
1007
  file: D,
1009
- errors: [ct]
1008
+ errors: [ut]
1010
1009
  });
1011
1010
  }), g.splice(0)), h({
1012
1011
  acceptedFiles: g,
@@ -1037,9 +1036,9 @@ function br() {
1037
1036
  type: "closeDialog"
1038
1037
  });
1039
1038
  }).catch(function(u) {
1040
- vt(u) ? (U(u), h({
1039
+ gt(u) ? (U(u), h({
1041
1040
  type: "closeDialog"
1042
- })) : yt(u) ? (q.current = !1, w.current ? (w.current.value = null, w.current.click()) : x(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : x(u);
1041
+ })) : vt(u) ? (q.current = !1, w.current ? (w.current.value = null, w.current.click()) : x(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : x(u);
1043
1042
  });
1044
1043
  return;
1045
1044
  }
@@ -1052,12 +1051,12 @@ function br() {
1052
1051
  h({
1053
1052
  type: "focus"
1054
1053
  });
1055
- }, []), Be = A(function() {
1054
+ }, []), We = A(function() {
1056
1055
  h({
1057
1056
  type: "blur"
1058
1057
  });
1059
- }, []), We = A(function() {
1060
- Pe || (pt() ? setTimeout(j, 0) : j());
1058
+ }, []), Be = A(function() {
1059
+ Pe || (ft() ? setTimeout(j, 0) : j());
1061
1060
  }, [Pe, j]), S = function(u) {
1062
1061
  return n ? null : u;
1063
1062
  }, ce = function(u) {
@@ -1068,12 +1067,12 @@ function br() {
1068
1067
  O && u.stopPropagation();
1069
1068
  }, wr = I(function() {
1070
1069
  return function() {
1071
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = a.refKey, g = u === void 0 ? "ref" : u, v = a.role, D = a.onKeyDown, H = a.onFocus, P = a.onBlur, le = a.onClick, se = a.onDragEnter, fe = a.onDragOver, J = a.onDragLeave, pe = a.onDrop, de = re(a, Dt);
1070
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = a.refKey, g = u === void 0 ? "ref" : u, v = a.role, D = a.onKeyDown, H = a.onFocus, P = a.onBlur, le = a.onClick, se = a.onDragEnter, fe = a.onDragOver, J = a.onDragLeave, pe = a.onDrop, de = re(a, ht);
1072
1071
  return p(p(Ee({
1073
1072
  onKeyDown: ce(E(D, Ke)),
1074
1073
  onFocus: ce(E(H, He)),
1075
- onBlur: ce(E(P, Be)),
1076
- onClick: S(E(le, We)),
1074
+ onBlur: ce(E(P, We)),
1075
+ onClick: S(E(le, Be)),
1077
1076
  onDragEnter: Y(E(se, Le)),
1078
1077
  onDragOver: Y(E(fe, Me)),
1079
1078
  onDragLeave: Y(E(J, $e)),
@@ -1083,11 +1082,11 @@ function br() {
1083
1082
  tabIndex: 0
1084
1083
  } : {}), de);
1085
1084
  };
1086
- }, [b, Ke, He, Be, We, Le, Me, $e, G, oe, Te, n]), Ar = A(function(a) {
1085
+ }, [b, Ke, He, We, Be, Le, Me, $e, G, oe, Te, n]), Ar = A(function(a) {
1087
1086
  a.stopPropagation();
1088
1087
  }, []), Er = I(function() {
1089
1088
  return function() {
1090
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = a.refKey, g = u === void 0 ? "ref" : u, v = a.onChange, D = a.onClick, H = re(a, wt), P = Ee({
1089
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = a.refKey, g = u === void 0 ? "ref" : u, v = a.onChange, D = a.onClick, H = re(a, Dt), P = Ee({
1091
1090
  accept: K,
1092
1091
  multiple: s,
1093
1092
  type: "file",
@@ -1110,7 +1109,7 @@ function br() {
1110
1109
  open: S(j)
1111
1110
  });
1112
1111
  }
1113
- function Pt(e, r) {
1112
+ function St(e, r) {
1114
1113
  switch (r.type) {
1115
1114
  case "focus":
1116
1115
  return p(p({}, e), {}, {
@@ -1147,40 +1146,43 @@ function Pt(e, r) {
1147
1146
  }
1148
1147
  function tr() {
1149
1148
  }
1150
- const Tt = Pr(Tr)(({ theme: e }) => ({
1151
- display: "flex",
1152
- flexDirection: "column",
1153
- justifyContent: "center",
1154
- alignItems: "center",
1155
- gap: "0.5rem",
1156
- padding: "0.5rem",
1157
- width: "20rem",
1158
- height: "10rem",
1159
- border: "1px dashed",
1160
- borderColor: e.palette.grey[500],
1161
- borderRadius: 4,
1162
- cursor: "pointer"
1163
- })), $t = ({
1149
+ const kt = ({
1164
1150
  defaultLabel: e = "Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",
1165
1151
  dragLabel: r = "Déposer les fichiers ici",
1166
1152
  information: t,
1167
1153
  ...n
1168
1154
  }) => {
1169
- const { getRootProps: i, getInputProps: o, isDragActive: c } = br({
1170
- onDrop: n.onDrop
1171
- });
1172
- return /* @__PURE__ */ ve(Tt, { ...i(), children: [
1173
- /* @__PURE__ */ T("input", { ...o() }),
1174
- c ? /* @__PURE__ */ ve(Ue, { children: [
1175
- /* @__PURE__ */ T(ar, { color: "primary" }),
1176
- /* @__PURE__ */ T(be, { children: r })
1177
- ] }) : /* @__PURE__ */ ve(Ue, { children: [
1178
- /* @__PURE__ */ T(ur, { color: "primary" }),
1179
- /* @__PURE__ */ T(be, { children: e }),
1180
- t ? /* @__PURE__ */ T(be, { fontSize: "0.875rem", color: "grey", children: t }) : null
1181
- ] })
1182
- ] });
1155
+ const { getRootProps: i, getInputProps: o, isDragActive: c } = br(n);
1156
+ return /* @__PURE__ */ ve(
1157
+ Pr,
1158
+ {
1159
+ direction: "column",
1160
+ justifyContent: "center",
1161
+ alignItems: "center",
1162
+ spacing: 1,
1163
+ maxWidth: "18rem",
1164
+ padding: 1,
1165
+ border: "1px dashed",
1166
+ borderColor: "grey.main",
1167
+ borderRadius: 1,
1168
+ sx: {
1169
+ cursor: "pointer"
1170
+ },
1171
+ ...i(),
1172
+ children: [
1173
+ /* @__PURE__ */ T("input", { ...o() }),
1174
+ c ? /* @__PURE__ */ ve(Ue, { children: [
1175
+ /* @__PURE__ */ T(ar, { color: "primary" }),
1176
+ /* @__PURE__ */ T(be, { children: r })
1177
+ ] }) : /* @__PURE__ */ ve(Ue, { children: [
1178
+ /* @__PURE__ */ T(ur, { color: "primary" }),
1179
+ /* @__PURE__ */ T(be, { children: e }),
1180
+ t ? /* @__PURE__ */ T(be, { fontSize: "0.875rem", color: "grey", children: t }) : null
1181
+ ] })
1182
+ ]
1183
+ }
1184
+ );
1183
1185
  };
1184
1186
  export {
1185
- $t as default
1187
+ kt as default
1186
1188
  };
@@ -1 +1 @@
1
- "use strict";require('../../assets/styles.css');const e=require("react/jsx-runtime");;/* empty css */const r=require("../../Box-RP_U1h2I.cjs"),l=({})=>e.jsx(r.Box,{className:"cs-loader",color:"primary.main",children:e.jsxs(r.Box,{className:"cs-loader-inner",children:[e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"})]})});module.exports=l;
1
+ "use strict";require('../../assets/styles.css');const e=require("react/jsx-runtime");;/* empty css */const r=require("../../Box-BQxBYVZt.cjs"),l=({})=>e.jsx(r.Box,{className:"cs-loader",color:"primary.main",children:e.jsxs(r.Box,{className:"cs-loader-inner",children:[e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"})]})});module.exports=l;
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as e } from "react/jsx-runtime";
2
2
  import '../../assets/styles.css';/* empty css */
3
- import { B as l } from "../../Box-DIvTvtYV.js";
3
+ import { B as l } from "../../Box-VYRU2gLm.js";
4
4
  const i = ({}) => /* @__PURE__ */ r(l, { className: "cs-loader", color: "primary.main", children: /* @__PURE__ */ e(l, { className: "cs-loader-inner", children: [
5
5
  /* @__PURE__ */ r("label", { children: "●" }),
6
6
  /* @__PURE__ */ r("label", { children: "●" }),
@@ -1 +1 @@
1
- "use strict";require("react/jsx-runtime");const e=require("../../PaperHeader-D2LH9bW-.cjs");require("../../Typography-CX8IJDUK.cjs");module.exports=e.PaperHeader;
1
+ "use strict";const r=require("react/jsx-runtime"),x=require("../../Stack-DjqxU_kp.cjs"),i=require("../../Typography-CX8IJDUK.cjs"),q=({title:t,IconComponent:s,iconColor:e,iconProps:a,iconSize:d=28,component:u="h3",variant:p="h2",fontWeight:g="bold",...h})=>r.jsxs(x.Stack,{direction:"row",alignItems:"center",gap:1,children:[s?r.jsx(s,{sx:{fontSize:d,padding:"2px",borderRadius:1,color:e==null?void 0:e[500],backgroundColor:e==null?void 0:e[50]},...a}):null,r.jsx(i.Typography,{component:u,variant:p,fontWeight:g,...h,children:t})]});module.exports=q;