tharaday 0.7.0 → 0.7.2

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 (38) hide show
  1. package/.storybook/main.ts +1 -1
  2. package/.storybook/preview.ts +2 -0
  3. package/dist/ds.css +1 -1
  4. package/dist/ds.js +402 -395
  5. package/dist/ds.umd.cjs +1 -1
  6. package/dist/src/components/Modal/Modal.stories.d.ts +5 -0
  7. package/dist/src/components/Tabs/Tabs.stories.d.ts +5 -0
  8. package/dist/src/components/Tree/Tree.stories.d.ts +7 -0
  9. package/dist/src/layouts/AppLayout/AppLayout.d.ts +1 -7
  10. package/dist/src/layouts/AppLayout/AppLayout.stories.d.ts +1 -9
  11. package/dist/src/layouts/AppLayout/AppLayout.types.d.ts +7 -52
  12. package/dist/src/layouts/DashboardLayout/DashboardLayout.d.ts +1 -1
  13. package/dist/src/layouts/DashboardLayout/DashboardLayout.stories.d.ts +1 -7
  14. package/dist/src/layouts/DashboardLayout/DashboardLayout.types.d.ts +2 -9
  15. package/dist/src/layouts/SettingsLayout/SettingsLayout.d.ts +1 -1
  16. package/dist/src/layouts/SettingsLayout/SettingsLayout.stories.d.ts +1 -7
  17. package/dist/src/layouts/SettingsLayout/SettingsLayout.types.d.ts +2 -9
  18. package/eslint.config.js +0 -7
  19. package/package.json +2 -10
  20. package/src/components/Accordion/Accordion.module.css +1 -1
  21. package/src/components/Accordion/Accordion.tsx +14 -1
  22. package/src/components/Dropdown/Dropdown.stories.tsx +24 -0
  23. package/src/components/Modal/Modal.module.css +7 -8
  24. package/src/components/Modal/Modal.stories.tsx +22 -0
  25. package/src/components/Modal/Modal.tsx +10 -4
  26. package/src/components/Notification/Notification.tsx +8 -1
  27. package/src/components/Tabs/Tabs.stories.tsx +19 -0
  28. package/src/components/Tooltip/Tooltip.stories.tsx +24 -0
  29. package/src/components/Tree/Tree.stories.tsx +15 -0
  30. package/src/layouts/AppLayout/AppLayout.stories.tsx +48 -36
  31. package/src/layouts/AppLayout/AppLayout.tsx +4 -34
  32. package/src/layouts/AppLayout/AppLayout.types.ts +7 -51
  33. package/src/layouts/DashboardLayout/DashboardLayout.stories.tsx +4 -8
  34. package/src/layouts/DashboardLayout/DashboardLayout.tsx +2 -17
  35. package/src/layouts/DashboardLayout/DashboardLayout.types.tsx +2 -7
  36. package/src/layouts/SettingsLayout/SettingsLayout.stories.tsx +16 -7
  37. package/src/layouts/SettingsLayout/SettingsLayout.tsx +2 -17
  38. package/src/layouts/SettingsLayout/SettingsLayout.types.tsx +2 -7
package/dist/ds.js CHANGED
@@ -16,23 +16,23 @@ function p() {
16
16
  return r;
17
17
  }
18
18
  var m = {
19
- root: "_root_1s3bz_1",
20
- default: "_default_1s3bz_8",
21
- bordered: "_bordered_1s3bz_14",
22
- item: "_item_1s3bz_14",
23
- separated: "_separated_1s3bz_24",
24
- ghost: "_ghost_1s3bz_34",
25
- header: "_header_1s3bz_34",
26
- sm: "_sm_1s3bz_65",
27
- md: "_md_1s3bz_70",
28
- lg: "_lg_1s3bz_75",
29
- icon: "_icon_1s3bz_97",
30
- iconExpanded: "_iconExpanded_1s3bz_102",
31
- contentWrapper: "_contentWrapper_1s3bz_106",
32
- contentExpanded: "_contentExpanded_1s3bz_113",
33
- content: "_content_1s3bz_106",
34
- contentBody: "_contentBody_1s3bz_121",
35
- contentBodyExpanded: "_contentBodyExpanded_1s3bz_134"
19
+ root: "_root_1f38q_1",
20
+ default: "_default_1f38q_8",
21
+ bordered: "_bordered_1f38q_14",
22
+ item: "_item_1f38q_14",
23
+ separated: "_separated_1f38q_24",
24
+ ghost: "_ghost_1f38q_34",
25
+ header: "_header_1f38q_34",
26
+ sm: "_sm_1f38q_65",
27
+ md: "_md_1f38q_70",
28
+ lg: "_lg_1f38q_75",
29
+ icon: "_icon_1f38q_97",
30
+ iconExpanded: "_iconExpanded_1f38q_102",
31
+ contentWrapper: "_contentWrapper_1f38q_106",
32
+ contentExpanded: "_contentExpanded_1f38q_113",
33
+ content: "_content_1f38q_106",
34
+ contentBody: "_contentBody_1f38q_121",
35
+ contentBodyExpanded: "_contentBodyExpanded_1f38q_134"
36
36
  }, h = ({ items: e, allowMultiple: t = !1, defaultExpanded: n = [], variant: r = "default", size: i = "md", className: o, id: s }) => {
37
37
  let d = a(), f = s ?? `ds-accordion-${d}`, [h, g] = c(n), _ = (e) => {
38
38
  g((n) => n.includes(e) ? n.filter((t) => t !== e) : t ? [...n, e] : [e]);
@@ -54,7 +54,20 @@ var m = {
54
54
  "aria-controls": `${f}-content-${e.id}`,
55
55
  children: [/* @__PURE__ */ l("span", { children: e.title }), /* @__PURE__ */ l("span", {
56
56
  className: p(m.icon, t && m.iconExpanded),
57
- children: ""
57
+ "aria-hidden": "true",
58
+ children: /* @__PURE__ */ l("svg", {
59
+ width: "12",
60
+ height: "12",
61
+ viewBox: "0 0 12 12",
62
+ fill: "none",
63
+ children: /* @__PURE__ */ l("path", {
64
+ d: "M2.5 4.5L6 8L9.5 4.5",
65
+ stroke: "currentColor",
66
+ strokeWidth: "1.5",
67
+ strokeLinecap: "round",
68
+ strokeLinejoin: "round"
69
+ })
70
+ })
58
71
  })]
59
72
  }), /* @__PURE__ */ l("div", {
60
73
  id: `${f}-content-${e.id}`,
@@ -345,24 +358,24 @@ var m = {
345
358
  }, ee = (e, t, n, r, i, a, o, s) => {
346
359
  let c = {};
347
360
  return typeof t == "string" && (c[e] = t), typeof i == "string" && (c[`${e}Top`] = i), typeof a == "string" && (c[`${e}Bottom`] = a), typeof o == "string" && (c[`${e}Left`] = o), typeof s == "string" && (c[`${e}Right`] = s), typeof n == "string" && (c[`${e}Left`] = n, c[`${e}Right`] = n), typeof r == "string" && (c[`${e}Top`] = r, c[`${e}Bottom`] = r), c;
348
- }, T = ({ children: e, as: t = "div", display: n, padding: r, paddingX: i, paddingY: a, paddingTop: o, paddingBottom: s, paddingLeft: c, paddingRight: u, margin: d, marginX: f, marginY: m, marginTop: h, marginBottom: g, marginLeft: _, marginRight: v, gap: y, flexDirection: b, alignItems: x, justifyContent: S, flexWrap: C, flexGrow: T, flexShrink: E, flex: D, fullWidth: O, textAlign: k, width: A, height: te, maxWidth: j, gridTemplateColumns: ne, backgroundColor: M, border: N, borderBottom: re, borderColor: P, borderRadius: ie, className: ae, style: oe, ...se }) => {
349
- let ce = {
350
- ...oe,
361
+ }, T = ({ children: e, as: t = "div", display: n, padding: r, paddingX: i, paddingY: a, paddingTop: o, paddingBottom: s, paddingLeft: c, paddingRight: u, margin: d, marginX: f, marginY: m, marginTop: h, marginBottom: g, marginLeft: _, marginRight: v, gap: y, flexDirection: b, alignItems: x, justifyContent: S, flexWrap: C, flexGrow: T, flexShrink: E, flex: D, fullWidth: O, textAlign: k, width: A, height: te, maxWidth: ne, gridTemplateColumns: re, backgroundColor: j, border: M, borderBottom: ie, borderColor: N, borderRadius: ae, className: oe, style: se, ...ce }) => {
362
+ let le = {
363
+ ...se,
351
364
  flexGrow: T,
352
365
  flexShrink: E,
353
366
  flex: D,
354
367
  width: A,
355
368
  height: te,
356
- maxWidth: j,
357
- gridTemplateColumns: ne,
369
+ maxWidth: ne,
370
+ gridTemplateColumns: re,
358
371
  gap: typeof y == "string" ? y : void 0,
359
372
  ...ee("padding", r, i, a, o, s, c, u),
360
373
  ...ee("margin", d, f, m, h, g, _, v)
361
374
  };
362
375
  return /* @__PURE__ */ l(t, {
363
- className: p(w.box, n && w[`display-${n}`], k && w[`textAlign-${k}`], typeof r == "number" && w[`p-${r}`], typeof i == "number" && w[`px-${i}`], typeof a == "number" && w[`py-${a}`], typeof o == "number" && w[`pt-${o}`], typeof s == "number" && w[`pb-${s}`], typeof c == "number" && w[`pl-${c}`], typeof u == "number" && w[`pr-${u}`], typeof d == "number" && w[`margin-${d}`], typeof f == "number" && w[`marginX-${f}`], typeof m == "number" && w[`marginY-${m}`], typeof h == "number" && w[`marginTop-${h}`], typeof g == "number" && w[`marginBottom-${g}`], typeof _ == "number" && w[`marginLeft-${_}`], typeof v == "number" && w[`marginRight-${v}`], typeof y == "number" && w[`gap-${y}`], b && w[`flexDirection-${b}`], x && w[`alignItems-${x}`], S && w[`justifyContent-${S}`], C && w[`flexWrap-${C}`], M && w[`bg-${M}`], N && w.border, re && w.borderBottom, P && w[`borderColor-${P}`], ie && w[`borderRadius-${ie}`], O && w.fullWidth, ae),
364
- style: ce,
365
- ...se,
376
+ className: p(w.box, n && w[`display-${n}`], k && w[`textAlign-${k}`], typeof r == "number" && w[`p-${r}`], typeof i == "number" && w[`px-${i}`], typeof a == "number" && w[`py-${a}`], typeof o == "number" && w[`pt-${o}`], typeof s == "number" && w[`pb-${s}`], typeof c == "number" && w[`pl-${c}`], typeof u == "number" && w[`pr-${u}`], typeof d == "number" && w[`margin-${d}`], typeof f == "number" && w[`marginX-${f}`], typeof m == "number" && w[`marginY-${m}`], typeof h == "number" && w[`marginTop-${h}`], typeof g == "number" && w[`marginBottom-${g}`], typeof _ == "number" && w[`marginLeft-${_}`], typeof v == "number" && w[`marginRight-${v}`], typeof y == "number" && w[`gap-${y}`], b && w[`flexDirection-${b}`], x && w[`alignItems-${x}`], S && w[`justifyContent-${S}`], C && w[`flexWrap-${C}`], j && w[`bg-${j}`], M && w.border, ie && w.borderBottom, N && w[`borderColor-${N}`], ae && w[`borderRadius-${ae}`], O && w.fullWidth, oe),
377
+ style: le,
378
+ ...ce,
366
379
  children: e
367
380
  });
368
381
  }, E = {
@@ -438,12 +451,12 @@ var m = {
438
451
  strokeDashoffset: "10"
439
452
  })
440
453
  }), o]
441
- }), te = "_root_1k781_1", j = "_bordered_1k781_9", ne = "_shadowNone_1k781_14", M = "_shadowSm_1k781_17", N = "_shadowMd_1k781_20", re = "_pNone_1k781_65", P = "_pSm_1k781_68", ie = "_pMd_1k781_71", ae = "_pLg_1k781_74", oe = "_header_1k781_79", se = "_title_1k781_85", ce = "_subtitle_1k781_93", le = "_content_1k781_100", ue = "_footer_1k781_104", F = {
454
+ }), te = "_root_1k781_1", ne = "_bordered_1k781_9", re = "_shadowNone_1k781_14", j = "_shadowSm_1k781_17", M = "_shadowMd_1k781_20", ie = "_pNone_1k781_65", N = "_pSm_1k781_68", ae = "_pMd_1k781_71", oe = "_pLg_1k781_74", se = "_header_1k781_79", ce = "_title_1k781_85", le = "_subtitle_1k781_93", ue = "_content_1k781_100", de = "_footer_1k781_104", P = {
442
455
  root: te,
443
- bordered: j,
444
- shadowNone: ne,
445
- shadowSm: M,
446
- shadowMd: N,
456
+ bordered: ne,
457
+ shadowNone: re,
458
+ shadowSm: j,
459
+ shadowMd: M,
447
460
  "borderColor-main": "_borderColor-main_1k781_25",
448
461
  "borderColor-subtle": "_borderColor-subtle_1k781_28",
449
462
  "borderColor-danger": "_borderColor-danger_1k781_31",
@@ -456,54 +469,54 @@ var m = {
456
469
  "backgroundColor-success-subtle": "_backgroundColor-success-subtle_1k781_54",
457
470
  "backgroundColor-warning-subtle": "_backgroundColor-warning-subtle_1k781_57",
458
471
  "backgroundColor-info-subtle": "_backgroundColor-info-subtle_1k781_60",
459
- pNone: re,
460
- pSm: P,
461
- pMd: ie,
462
- pLg: ae,
463
- header: oe,
464
- title: se,
465
- subtitle: ce,
466
- content: le,
467
- footer: ue
468
- }, de = ({ padding: e = "md", shadow: t = "sm", bordered: n = !0, borderColor: r, backgroundColor: i, className: a, children: o, ...s }) => {
472
+ pNone: ie,
473
+ pSm: N,
474
+ pMd: ae,
475
+ pLg: oe,
476
+ header: se,
477
+ title: ce,
478
+ subtitle: le,
479
+ content: ue,
480
+ footer: de
481
+ }, fe = ({ padding: e = "md", shadow: t = "sm", bordered: n = !0, borderColor: r, backgroundColor: i, className: a, children: o, ...s }) => {
469
482
  let c = {
470
- none: F.pNone,
471
- sm: F.pSm,
472
- md: F.pMd,
473
- lg: F.pLg
483
+ none: P.pNone,
484
+ sm: P.pSm,
485
+ md: P.pMd,
486
+ lg: P.pLg
474
487
  }[e], u = {
475
- none: F.shadowNone,
476
- sm: F.shadowSm,
477
- md: F.shadowMd
488
+ none: P.shadowNone,
489
+ sm: P.shadowSm,
490
+ md: P.shadowMd
478
491
  }[t];
479
492
  return /* @__PURE__ */ l("div", {
480
- className: p(F.root, c, u, n && F.bordered, r && F[`borderColor-${r}`], i && F[`backgroundColor-${i}`], a),
493
+ className: p(P.root, c, u, n && P.bordered, r && P[`borderColor-${r}`], i && P[`backgroundColor-${i}`], a),
481
494
  ...s,
482
495
  children: o
483
496
  });
484
- }, fe = ({ title: e, subtitle: t, className: n, children: r, ...i }) => /* @__PURE__ */ u("div", {
485
- className: p(F.header, n),
497
+ }, pe = ({ title: e, subtitle: t, className: n, children: r, ...i }) => /* @__PURE__ */ u("div", {
498
+ className: p(P.header, n),
486
499
  ...i,
487
500
  children: [
488
501
  e && /* @__PURE__ */ l("h3", {
489
- className: F.title,
502
+ className: P.title,
490
503
  children: e
491
504
  }),
492
505
  t && /* @__PURE__ */ l("p", {
493
- className: F.subtitle,
506
+ className: P.subtitle,
494
507
  children: t
495
508
  }),
496
509
  r
497
510
  ]
498
- }), pe = ({ className: e, children: t, ...n }) => /* @__PURE__ */ l("div", {
499
- className: p(F.content, e),
511
+ }), me = ({ className: e, children: t, ...n }) => /* @__PURE__ */ l("div", {
512
+ className: p(P.content, e),
500
513
  ...n,
501
514
  children: t
502
- }), me = ({ className: e, children: t, ...n }) => /* @__PURE__ */ l("div", {
503
- className: p(F.footer, e),
515
+ }), he = ({ className: e, children: t, ...n }) => /* @__PURE__ */ l("div", {
516
+ className: p(P.footer, e),
504
517
  ...n,
505
518
  children: t
506
- }), I = {
519
+ }), F = {
507
520
  wrapper: "_wrapper_1mupt_1",
508
521
  container: "_container_1mupt_7",
509
522
  disabled: "_disabled_1mupt_15",
@@ -514,25 +527,25 @@ var m = {
514
527
  error: "_error_1mupt_75",
515
528
  helperText: "_helperText_1mupt_79",
516
529
  errorText: "_errorText_1mupt_86"
517
- }, he = ({ label: e, error: t, helperText: n, className: r, disabled: i, id: o, ...s }) => {
530
+ }, ge = ({ label: e, error: t, helperText: n, className: r, disabled: i, id: o, ...s }) => {
518
531
  let c = a(), d = o ?? `ds-checkbox-${c}`, f = n ? `${d}-help` : void 0;
519
532
  return /* @__PURE__ */ u("div", {
520
- className: p(I.wrapper, r),
533
+ className: p(F.wrapper, r),
521
534
  children: [/* @__PURE__ */ u("label", {
522
535
  htmlFor: d,
523
- className: p(I.container, i && I.disabled, t && I.error),
536
+ className: p(F.container, i && F.disabled, t && F.error),
524
537
  children: [
525
538
  /* @__PURE__ */ l("input", {
526
539
  type: "checkbox",
527
540
  id: d,
528
541
  disabled: i,
529
- className: I.input,
542
+ className: F.input,
530
543
  "aria-describedby": f,
531
544
  "aria-invalid": t || void 0,
532
545
  ...s
533
546
  }),
534
547
  /* @__PURE__ */ l("span", {
535
- className: I.control,
548
+ className: F.control,
536
549
  children: /* @__PURE__ */ l("svg", {
537
550
  viewBox: "0 0 24 24",
538
551
  fill: "none",
@@ -540,22 +553,22 @@ var m = {
540
553
  strokeWidth: "4",
541
554
  strokeLinecap: "round",
542
555
  strokeLinejoin: "round",
543
- className: I.checkmark,
556
+ className: F.checkmark,
544
557
  children: /* @__PURE__ */ l("polyline", { points: "20 6 9 17 4 12" })
545
558
  })
546
559
  }),
547
560
  e && /* @__PURE__ */ l("span", {
548
- className: I.label,
561
+ className: F.label,
549
562
  children: e
550
563
  })
551
564
  ]
552
565
  }), n && /* @__PURE__ */ l("span", {
553
566
  id: f,
554
- className: p(I.helperText, t && I.errorText),
567
+ className: p(F.helperText, t && F.errorText),
555
568
  children: n
556
569
  })]
557
570
  });
558
- }, L = {
571
+ }, I = {
559
572
  wrapper: "_wrapper_qhe61_1",
560
573
  fullWidth: "_fullWidth_qhe61_9",
561
574
  label: "_label_qhe61_13",
@@ -575,8 +588,8 @@ var m = {
575
588
  optionDescription: "_optionDescription_qhe61_128",
576
589
  helperText: "_helperText_qhe61_133",
577
590
  errorText: "_errorText_qhe61_138"
578
- }, ge = ({ options: e, value: t, defaultValue: n, onChange: r, placeholder: o = "Select an option", label: d, helperText: f, error: m, disabled: h, size: g = "md", className: _, id: v, fullWidth: y = !1 }) => {
579
- let b = a(), x = v ?? `ds-dropdown-${b}`, S = f ? `${x}-help` : void 0, [C, w] = c(!1), [ee, T] = c(n), [E, D] = c(-1), O = s(null), k = s(null), A = t === void 0 ? ee : t, te = e.find((e) => e.value === A), j = E >= 0 ? `${x}-opt-${E}` : void 0, ne = () => {
591
+ }, _e = ({ options: e, value: t, defaultValue: n, onChange: r, placeholder: o = "Select an option", label: d, helperText: f, error: m, disabled: h, size: g = "md", className: _, id: v, fullWidth: y = !1 }) => {
592
+ let b = a(), x = v ?? `ds-dropdown-${b}`, S = f ? `${x}-help` : void 0, [C, w] = c(!1), [ee, T] = c(n), [E, D] = c(-1), O = s(null), k = s(null), A = t === void 0 ? ee : t, te = e.find((e) => e.value === A), ne = E >= 0 ? `${x}-opt-${E}` : void 0, re = () => {
580
593
  if (!h) {
581
594
  let t = !C;
582
595
  if (w(t), t) {
@@ -586,7 +599,7 @@ var m = {
586
599
  }
587
600
  } else D(-1);
588
601
  }
589
- }, M = (e, n) => {
602
+ }, j = (e, n) => {
590
603
  e.disabled || (t === void 0 && T(e.value), r?.(e.value), w(!1), D(n), k.current?.focus());
591
604
  };
592
605
  return i(() => {
@@ -603,22 +616,22 @@ var m = {
603
616
  document.removeEventListener("mousedown", e);
604
617
  };
605
618
  }, []), /* @__PURE__ */ u("div", {
606
- className: p(L.wrapper, L[g], y && L.fullWidth, m && L.error, _),
619
+ className: p(I.wrapper, I[g], y && I.fullWidth, m && I.error, _),
607
620
  ref: O,
608
621
  children: [
609
622
  d && /* @__PURE__ */ l("label", {
610
623
  htmlFor: x,
611
- className: L.label,
624
+ className: I.label,
612
625
  children: d
613
626
  }),
614
627
  /* @__PURE__ */ u("div", {
615
- className: L.container,
628
+ className: I.container,
616
629
  children: [/* @__PURE__ */ u("button", {
617
630
  id: x,
618
631
  ref: k,
619
632
  type: "button",
620
- className: p(L.trigger, C && L.isOpen),
621
- onClick: ne,
633
+ className: p(I.trigger, C && I.isOpen),
634
+ onClick: re,
622
635
  onKeyDown: (t) => {
623
636
  if (!h) switch (t.key) {
624
637
  case "ArrowDown":
@@ -629,7 +642,7 @@ var m = {
629
642
  break;
630
643
  case "Enter":
631
644
  case " ":
632
- t.preventDefault(), C ? E >= 0 && M(e[E], E) : (w(!0), D(e.findIndex((e) => e.value === A) || 0));
645
+ t.preventDefault(), C ? E >= 0 && j(e[E], E) : (w(!0), D(e.findIndex((e) => e.value === A) || 0));
633
646
  break;
634
647
  case "Escape":
635
648
  C && (t.preventDefault(), w(!1), D(-1), k.current?.focus());
@@ -652,12 +665,12 @@ var m = {
652
665
  "aria-describedby": S,
653
666
  "aria-invalid": m || void 0,
654
667
  "aria-controls": C ? `${x}-menu` : void 0,
655
- "aria-activedescendant": C ? j : void 0,
668
+ "aria-activedescendant": C ? ne : void 0,
656
669
  children: [/* @__PURE__ */ l("span", {
657
- className: L.selectedLabel,
670
+ className: I.selectedLabel,
658
671
  children: te ? te.label : o
659
672
  }), /* @__PURE__ */ l("span", {
660
- className: L.icon,
673
+ className: I.icon,
661
674
  "aria-hidden": "true",
662
675
  children: /* @__PURE__ */ l("svg", {
663
676
  width: "12",
@@ -676,7 +689,7 @@ var m = {
676
689
  })]
677
690
  }), C && /* @__PURE__ */ l("ul", {
678
691
  id: `${x}-menu`,
679
- className: L.menu,
692
+ className: I.menu,
680
693
  role: "listbox",
681
694
  "aria-labelledby": d ? void 0 : x,
682
695
  children: e.map((e, t) => {
@@ -685,14 +698,14 @@ var m = {
685
698
  id: `${x}-opt-${t}`,
686
699
  role: "option",
687
700
  "aria-selected": n,
688
- className: p(L.option, n && L.optionSelected, r && L.optionFocused, e.disabled && L.optionDisabled),
689
- onClick: () => M(e, t),
701
+ className: p(I.option, n && I.optionSelected, r && I.optionFocused, e.disabled && I.optionDisabled),
702
+ onClick: () => j(e, t),
690
703
  onMouseEnter: () => !e.disabled && D(t),
691
704
  children: [/* @__PURE__ */ l("span", {
692
- className: L.optionLabel,
705
+ className: I.optionLabel,
693
706
  children: e.label
694
707
  }), e.description && /* @__PURE__ */ l("span", {
695
- className: L.optionDescription,
708
+ className: I.optionDescription,
696
709
  children: e.description
697
710
  })]
698
711
  }, e.value);
@@ -701,35 +714,35 @@ var m = {
701
714
  }),
702
715
  f && /* @__PURE__ */ l("span", {
703
716
  id: S,
704
- className: p(L.helperText, m && L.errorText),
717
+ className: p(I.helperText, m && I.errorText),
705
718
  children: f
706
719
  })
707
720
  ]
708
721
  });
709
- }, _e = {
722
+ }, ve = {
710
723
  root: "_root_1one2_1",
711
724
  horizontal: "_horizontal_1one2_13",
712
725
  vertical: "_vertical_1one2_21"
713
- }, ve = (e) => typeof e == "number" ? `${e}px` : e, ye = ({ orientation: e = "horizontal", thickness: t, length: n, spacing: r, inset: i, className: a, style: o, ...s }) => {
726
+ }, ye = (e) => typeof e == "number" ? `${e}px` : e, be = ({ orientation: e = "horizontal", thickness: t, length: n, spacing: r, inset: i, className: a, style: o, ...s }) => {
714
727
  let c = {
715
728
  ...o,
716
- "--divider-thickness": ve(t),
717
- "--divider-length": ve(n),
718
- "--divider-spacing": ve(r),
719
- "--divider-inset": ve(i)
729
+ "--divider-thickness": ye(t),
730
+ "--divider-length": ye(n),
731
+ "--divider-spacing": ye(r),
732
+ "--divider-inset": ye(i)
720
733
  };
721
734
  return e === "vertical" ? /* @__PURE__ */ l("div", {
722
735
  role: "separator",
723
736
  "aria-orientation": "vertical",
724
- className: p(_e.root, _e.vertical, a),
737
+ className: p(ve.root, ve.vertical, a),
725
738
  style: c,
726
739
  ...s
727
740
  }) : /* @__PURE__ */ l("hr", {
728
- className: p(_e.root, _e.horizontal, a),
741
+ className: p(ve.root, ve.horizontal, a),
729
742
  style: c,
730
743
  ...s
731
744
  });
732
- }, R = {
745
+ }, L = {
733
746
  root: "_root_1ujj3_1",
734
747
  container: "_container_1ujj3_8",
735
748
  sideContainer: "_sideContainer_1ujj3_18",
@@ -738,29 +751,29 @@ var m = {
738
751
  actions: "_actions_1ujj3_32",
739
752
  title: "_title_1ujj3_44",
740
753
  welcome: "_welcome_1ujj3_52"
741
- }, be = ({ id: e, logo: t, title: n, user: r, onLogin: i, onLogout: a, onCreateAccount: o, className: s, maxWidth: c }) => {
754
+ }, xe = ({ id: e, logo: t, title: n, user: r, onLogin: i, onLogout: a, onCreateAccount: o, className: s, maxWidth: c }) => {
742
755
  let d = {
743
756
  size: "sm",
744
757
  intent: "info"
745
758
  };
746
759
  return /* @__PURE__ */ l("header", {
747
760
  id: e,
748
- className: p(R.root, s),
761
+ className: p(L.root, s),
749
762
  children: /* @__PURE__ */ u("div", {
750
- className: R.container,
763
+ className: L.container,
751
764
  style: { maxWidth: c },
752
765
  children: [/* @__PURE__ */ u("div", {
753
- className: p(R.sideContainer, R.leftSide),
766
+ className: p(L.sideContainer, L.leftSide),
754
767
  children: [t, n ? /* @__PURE__ */ l("h1", {
755
- className: R.title,
768
+ className: L.title,
756
769
  children: n
757
770
  }) : null]
758
771
  }), /* @__PURE__ */ l("div", {
759
- className: p(R.sideContainer, R.rightSide),
772
+ className: p(L.sideContainer, L.rightSide),
760
773
  children: r ? /* @__PURE__ */ u("div", {
761
- className: R.actions,
774
+ className: L.actions,
762
775
  children: [/* @__PURE__ */ u("span", {
763
- className: R.welcome,
776
+ className: L.welcome,
764
777
  children: [
765
778
  "Welcome, ",
766
779
  /* @__PURE__ */ l("strong", { children: r.name }),
@@ -772,7 +785,7 @@ var m = {
772
785
  children: "Log out"
773
786
  })]
774
787
  }) : /* @__PURE__ */ u("div", {
775
- className: R.actions,
788
+ className: L.actions,
776
789
  children: [i ? /* @__PURE__ */ l(A, {
777
790
  ...d,
778
791
  onClick: i,
@@ -788,7 +801,7 @@ var m = {
788
801
  })]
789
802
  })
790
803
  });
791
- }, z = {
804
+ }, R = {
792
805
  root: "_root_140uy_1",
793
806
  container: "_container_140uy_7",
794
807
  leftSection: "_leftSection_140uy_16",
@@ -799,26 +812,26 @@ var m = {
799
812
  disabled: "_disabled_140uy_59",
800
813
  active: "_active_140uy_63",
801
814
  rightSection: "_rightSection_140uy_73"
802
- }, xe = ({ id: e, items: t, activeId: n, logo: r, actions: i, onItemClick: a, className: o, maxWidth: s }) => /* @__PURE__ */ l("nav", {
815
+ }, Se = ({ id: e, items: t, activeId: n, logo: r, actions: i, onItemClick: a, className: o, maxWidth: s }) => /* @__PURE__ */ l("nav", {
803
816
  id: e,
804
- className: p(z.root, o),
817
+ className: p(R.root, o),
805
818
  children: /* @__PURE__ */ u("div", {
806
- className: z.container,
819
+ className: R.container,
807
820
  style: { maxWidth: s },
808
821
  children: [
809
822
  r && /* @__PURE__ */ l("div", {
810
- className: z.leftSection,
823
+ className: R.leftSection,
811
824
  children: r
812
825
  }),
813
826
  /* @__PURE__ */ l("div", {
814
- className: z.nav,
827
+ className: R.nav,
815
828
  children: /* @__PURE__ */ l("ul", {
816
- className: z.navList,
829
+ className: R.navList,
817
830
  children: t.map((e) => /* @__PURE__ */ l("li", {
818
- className: z.navItem,
831
+ className: R.navItem,
819
832
  children: /* @__PURE__ */ l("button", {
820
833
  type: "button",
821
- className: p(z.navLink, n === e.id && z.active, e.disabled && z.disabled),
834
+ className: p(R.navLink, n === e.id && R.active, e.disabled && R.disabled),
822
835
  onClick: () => !e.disabled && a?.(e.id),
823
836
  disabled: e.disabled,
824
837
  "aria-current": n === e.id ? "page" : void 0,
@@ -828,12 +841,12 @@ var m = {
828
841
  })
829
842
  }),
830
843
  i && /* @__PURE__ */ l("div", {
831
- className: z.rightSection,
844
+ className: R.rightSection,
832
845
  children: i
833
846
  })
834
847
  ]
835
848
  })
836
- }), B = {
849
+ }), z = {
837
850
  wrapper: "_wrapper_15ibj_1",
838
851
  fullWidth: "_fullWidth_15ibj_8",
839
852
  label: "_label_15ibj_13",
@@ -844,31 +857,31 @@ var m = {
844
857
  error: "_error_15ibj_79",
845
858
  helperText: "_helperText_15ibj_88",
846
859
  errorText: "_errorText_15ibj_94"
847
- }, Se = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, ...c }) => {
860
+ }, Ce = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, ...c }) => {
848
861
  let d = a(), f = s ?? `ds-input-${d}`, m = r ? `${f}-help` : void 0;
849
862
  return /* @__PURE__ */ u("div", {
850
- className: p(B.wrapper, i && B.fullWidth, o),
863
+ className: p(z.wrapper, i && z.fullWidth, o),
851
864
  children: [
852
865
  n && /* @__PURE__ */ l("label", {
853
866
  htmlFor: f,
854
- className: B.label,
867
+ className: z.label,
855
868
  children: n
856
869
  }),
857
870
  /* @__PURE__ */ l("input", {
858
871
  id: f,
859
- className: p(B.inputRoot, B[e], t && B.error),
872
+ className: p(z.inputRoot, z[e], t && z.error),
860
873
  "aria-describedby": m,
861
874
  "aria-invalid": t || void 0,
862
875
  ...c
863
876
  }),
864
877
  r && /* @__PURE__ */ l("span", {
865
878
  id: m,
866
- className: p(B.helperText, t && B.errorText),
879
+ className: p(z.helperText, t && z.errorText),
867
880
  children: r
868
881
  })
869
882
  ]
870
883
  });
871
- }, Ce = {
884
+ }, we = {
872
885
  loader: "_loader_wvz8q_1",
873
886
  spin: "_spin_wvz8q_1",
874
887
  neutral: "_neutral_wvz8q_10",
@@ -879,16 +892,16 @@ var m = {
879
892
  sm: "_sm_wvz8q_27",
880
893
  md: "_md_wvz8q_33",
881
894
  lg: "_lg_wvz8q_39"
882
- }, we = ({ id: e, size: t = "md", intent: n = "neutral", className: r }) => /* @__PURE__ */ l("div", {
895
+ }, Te = ({ id: e, size: t = "md", intent: n = "neutral", className: r }) => /* @__PURE__ */ l("div", {
883
896
  id: e,
884
- className: p(Ce.loader, Ce[t], Ce[n], r),
897
+ className: p(we.loader, we[t], we[n], r),
885
898
  role: "status",
886
899
  "aria-label": "Loading"
887
- }), Te = "_root_iia7b_1", Ee = "_unordered_iia7b_6", De = "_ordered_iia7b_11", Oe = "_none_iia7b_16", ke = "_flex_iia7b_57", V = {
888
- root: Te,
889
- unordered: Ee,
890
- ordered: De,
891
- none: Oe,
900
+ }), Ee = "_root_iia7b_1", De = "_unordered_iia7b_6", Oe = "_ordered_iia7b_11", ke = "_none_iia7b_16", Ae = "_flex_iia7b_57", B = {
901
+ root: Ee,
902
+ unordered: De,
903
+ ordered: Oe,
904
+ none: ke,
892
905
  "gap-0": "_gap-0_iia7b_21",
893
906
  "gap-1": "_gap-1_iia7b_24",
894
907
  "gap-2": "_gap-2_iia7b_27",
@@ -900,21 +913,21 @@ var m = {
900
913
  "gap-10": "_gap-10_iia7b_45",
901
914
  "gap-12": "_gap-12_iia7b_48",
902
915
  "gap-14": "_gap-14_iia7b_51",
903
- flex: ke
904
- }, Ae = {
916
+ flex: Ae
917
+ }, je = {
905
918
  item: "_item_1x04p_1",
906
919
  iconWrapper: "_iconWrapper_1x04p_6"
907
- }, je = ({ children: e, icon: t, className: n, ...r }) => /* @__PURE__ */ u("li", {
908
- className: p(Ae.item, n),
920
+ }, Me = ({ children: e, icon: t, className: n, ...r }) => /* @__PURE__ */ u("li", {
921
+ className: p(je.item, n),
909
922
  ...r,
910
923
  children: [t && /* @__PURE__ */ l("span", {
911
- className: Ae.iconWrapper,
924
+ className: je.iconWrapper,
912
925
  children: t
913
926
  }), /* @__PURE__ */ l("div", {
914
- className: Ae.content,
927
+ className: je.content,
915
928
  children: e
916
929
  })]
917
- }), Me = ({ children: e, variant: t = "unordered", spacing: n = 0, className: r, margin: i, marginX: a, marginY: o, marginTop: s, marginBottom: c, marginLeft: u, marginRight: d, padding: f, paddingX: m, paddingY: h, paddingTop: g, paddingBottom: _, paddingLeft: v, paddingRight: y, style: b, ...x }) => {
930
+ }), Ne = ({ children: e, variant: t = "unordered", spacing: n = 0, className: r, margin: i, marginX: a, marginY: o, marginTop: s, marginBottom: c, marginLeft: u, marginRight: d, padding: f, paddingX: m, paddingY: h, paddingTop: g, paddingBottom: _, paddingLeft: v, paddingRight: y, style: b, ...x }) => {
918
931
  let S = t === "ordered" ? "ol" : "ul", C = {
919
932
  ...b,
920
933
  ...ee("padding", f, m, h, g, _, v, y),
@@ -922,28 +935,28 @@ var m = {
922
935
  "--list-spacing": typeof n == "number" ? `${n * .25}rem` : n
923
936
  };
924
937
  return /* @__PURE__ */ l(S, {
925
- className: p(V.root, V[t], typeof n == "number" && V[`gap-${n}`], (t === "none" || typeof n == "number" && n > 0 || typeof n == "string") && V.flex, typeof f == "number" && V[`p-${f}`], typeof m == "number" && V[`px-${m}`], typeof h == "number" && V[`py-${h}`], typeof g == "number" && V[`pt-${g}`], typeof _ == "number" && V[`pb-${_}`], typeof v == "number" && V[`pl-${v}`], typeof y == "number" && V[`pr-${y}`], typeof i == "number" && V[`margin-${i}`], typeof a == "number" && V[`marginX-${a}`], typeof o == "number" && V[`marginY-${o}`], typeof s == "number" && V[`marginTop-${s}`], typeof c == "number" && V[`marginBottom-${c}`], typeof u == "number" && V[`marginLeft-${u}`], typeof d == "number" && V[`marginRight-${d}`], r),
938
+ className: p(B.root, B[t], typeof n == "number" && B[`gap-${n}`], (t === "none" || typeof n == "number" && n > 0 || typeof n == "string") && B.flex, typeof f == "number" && B[`p-${f}`], typeof m == "number" && B[`px-${m}`], typeof h == "number" && B[`py-${h}`], typeof g == "number" && B[`pt-${g}`], typeof _ == "number" && B[`pb-${_}`], typeof v == "number" && B[`pl-${v}`], typeof y == "number" && B[`pr-${y}`], typeof i == "number" && B[`margin-${i}`], typeof a == "number" && B[`marginX-${a}`], typeof o == "number" && B[`marginY-${o}`], typeof s == "number" && B[`marginTop-${s}`], typeof c == "number" && B[`marginBottom-${c}`], typeof u == "number" && B[`marginLeft-${u}`], typeof d == "number" && B[`marginRight-${d}`], r),
926
939
  style: C,
927
940
  ...x,
928
941
  children: e
929
942
  });
930
943
  };
931
- Me.Item = je;
932
- var H = {
933
- overlay: "_overlay_tnqx3_1",
934
- modal: "_modal_tnqx3_15",
935
- header: "_header_tnqx3_27",
936
- title: "_title_tnqx3_35",
937
- closeButton: "_closeButton_tnqx3_42",
938
- content: "_content_tnqx3_56",
939
- footer: "_footer_tnqx3_62",
940
- sm: "_sm_tnqx3_73",
941
- md: "_md_tnqx3_76",
942
- lg: "_lg_tnqx3_79",
943
- xl: "_xl_tnqx3_82",
944
- full: "_full_tnqx3_85",
945
- loading: "_loading_tnqx3_90"
946
- }, Ne = ({ isOpen: e, onClose: t, title: n, children: r, footer: o, size: c = "md", isLoading: f = !1, className: m, id: h }) => {
944
+ Ne.Item = Me;
945
+ var V = {
946
+ overlay: "_overlay_dxcrq_1",
947
+ modal: "_modal_dxcrq_15",
948
+ header: "_header_dxcrq_27",
949
+ title: "_title_dxcrq_35",
950
+ closeButton: "_closeButton_dxcrq_43",
951
+ content: "_content_dxcrq_55",
952
+ footer: "_footer_dxcrq_61",
953
+ sm: "_sm_dxcrq_72",
954
+ md: "_md_dxcrq_75",
955
+ lg: "_lg_dxcrq_78",
956
+ xl: "_xl_dxcrq_81",
957
+ full: "_full_dxcrq_84",
958
+ loading: "_loading_dxcrq_89"
959
+ }, Pe = ({ isOpen: e, onClose: t, title: n, children: r, footer: o, size: c = "md", isLoading: f = !1, className: m, id: h }) => {
947
960
  let g = s(null), _ = s(null), v = s(t), y = a(), b = h ?? `ds-modal-${y}`, x = `${b}-title`;
948
961
  return i(() => {
949
962
  v.current = t;
@@ -958,18 +971,18 @@ var H = {
958
971
  e.shiftKey ? document.activeElement === n && (r.focus(), e.preventDefault()) : document.activeElement === r && (n.focus(), e.preventDefault());
959
972
  }
960
973
  };
961
- return e && (_.current = document.activeElement, document.body.style.overflow = "hidden", window.addEventListener("keydown", t), setTimeout(() => {
974
+ return e && (_.current = document.activeElement, document.body.style.overflow = "hidden", window.addEventListener("keydown", t), requestAnimationFrame(() => {
962
975
  let e = g.current?.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])");
963
976
  e && e.length > 0 && e[0].focus();
964
- }, 0)), () => {
977
+ })), () => {
965
978
  document.body.style.overflow = "unset", window.removeEventListener("keydown", t), _.current?.focus();
966
979
  };
967
980
  }, [e, f]), e ? d(/* @__PURE__ */ l("div", {
968
- className: H.overlay,
981
+ className: V.overlay,
969
982
  onClick: () => !f && t(),
970
983
  children: /* @__PURE__ */ u("div", {
971
984
  id: b,
972
- className: p(H.modal, H[c], f && H.loading, m),
985
+ className: p(V.modal, V[c], f && V.loading, m),
973
986
  onClick: (e) => e.stopPropagation(),
974
987
  role: "dialog",
975
988
  "aria-modal": "true",
@@ -977,33 +990,45 @@ var H = {
977
990
  ref: g,
978
991
  children: [
979
992
  /* @__PURE__ */ u("div", {
980
- className: H.header,
993
+ className: V.header,
981
994
  children: [n && /* @__PURE__ */ l("h2", {
982
995
  id: x,
983
- className: H.title,
996
+ className: V.title,
984
997
  children: n
985
998
  }), /* @__PURE__ */ l(A, {
986
999
  variant: "subtle",
987
1000
  size: "sm",
988
1001
  onClick: t,
989
- className: H.closeButton,
1002
+ className: V.closeButton,
990
1003
  "aria-label": "Close modal",
991
1004
  disabled: f,
992
- children: ""
1005
+ children: /* @__PURE__ */ l("svg", {
1006
+ width: "10",
1007
+ height: "10",
1008
+ viewBox: "0 0 10 10",
1009
+ fill: "none",
1010
+ "aria-hidden": "true",
1011
+ children: /* @__PURE__ */ l("path", {
1012
+ d: "M1 1L9 9M9 1L1 9",
1013
+ stroke: "currentColor",
1014
+ strokeWidth: "1.5",
1015
+ strokeLinecap: "round"
1016
+ })
1017
+ })
993
1018
  })]
994
1019
  }),
995
1020
  /* @__PURE__ */ l("div", {
996
- className: H.content,
1021
+ className: V.content,
997
1022
  children: r
998
1023
  }),
999
1024
  o && /* @__PURE__ */ l("div", {
1000
- className: H.footer,
1025
+ className: V.footer,
1001
1026
  children: o
1002
1027
  })
1003
1028
  ]
1004
1029
  })
1005
1030
  }), document.body) : null;
1006
- }, Pe = {
1031
+ }, Fe = {
1007
1032
  root: "_root_1x0nr_1",
1008
1033
  content: "_content_1x0nr_13",
1009
1034
  title: "_title_1x0nr_17",
@@ -1014,114 +1039,126 @@ var H = {
1014
1039
  success: "_success_1x0nr_56",
1015
1040
  warning: "_warning_1x0nr_62",
1016
1041
  danger: "_danger_1x0nr_68"
1017
- }, Fe = ({ intent: e = "neutral", title: t, children: n, onClose: r, className: i, ...a }) => /* @__PURE__ */ u("div", {
1018
- className: p(Pe.root, Pe[e], i),
1042
+ }, Ie = ({ intent: e = "neutral", title: t, children: n, onClose: r, className: i, ...a }) => /* @__PURE__ */ u("div", {
1043
+ className: p(Fe.root, Fe[e], i),
1019
1044
  role: "alert",
1020
1045
  ...a,
1021
1046
  children: [/* @__PURE__ */ u("div", {
1022
- className: Pe.content,
1047
+ className: Fe.content,
1023
1048
  children: [t && /* @__PURE__ */ l("div", {
1024
- className: Pe.title,
1049
+ className: Fe.title,
1025
1050
  children: t
1026
1051
  }), /* @__PURE__ */ l("div", {
1027
- className: Pe.message,
1052
+ className: Fe.message,
1028
1053
  children: n
1029
1054
  })]
1030
1055
  }), r && /* @__PURE__ */ l(A, {
1031
1056
  variant: "subtle",
1032
1057
  size: "xs",
1033
1058
  onClick: r,
1034
- className: Pe.closeButton,
1059
+ className: Fe.closeButton,
1035
1060
  "aria-label": "Close notification",
1036
- children: ""
1061
+ children: /* @__PURE__ */ l("svg", {
1062
+ width: "10",
1063
+ height: "10",
1064
+ viewBox: "0 0 10 10",
1065
+ fill: "none",
1066
+ "aria-hidden": "true",
1067
+ children: /* @__PURE__ */ l("path", {
1068
+ d: "M1 1L9 9M9 1L1 9",
1069
+ stroke: "currentColor",
1070
+ strokeWidth: "1.5",
1071
+ strokeLinecap: "round"
1072
+ })
1073
+ })
1037
1074
  })]
1038
- }), U = {
1075
+ }), H = {
1039
1076
  root: "_root_o4mj7_1",
1040
1077
  list: "_list_o4mj7_6",
1041
1078
  item: "_item_o4mj7_15",
1042
1079
  ellipsis: "_ellipsis_o4mj7_19",
1043
1080
  pageButton: "_pageButton_o4mj7_29"
1044
- }, Ie = (e, t, n) => Math.min(Math.max(e, t), n), Le = (e, t) => {
1081
+ }, Le = (e, t, n) => Math.min(Math.max(e, t), n), Re = (e, t) => {
1045
1082
  let n = [];
1046
1083
  for (let r = e; r <= t; r += 1) n.push(r);
1047
1084
  return n;
1048
- }, Re = (e, t, n, r, i) => {
1085
+ }, ze = (e, t, n, r, i) => {
1049
1086
  if (e <= 0) return [];
1050
- if (!i || e <= n * 2 + 1 + r * 2 + 2) return Le(1, e);
1051
- let a = Le(1, Math.min(r, e)), o = Le(Math.max(e - r + 1, r + 1), e), s = Math.max(t - n, r + 2), c = Math.min(t + n, e - r - 1), l = s > r + 2, u = c < e - r - 1, d = [...a], f = l ? s : r + 1, p = u ? c : e - r;
1052
- return l && d.push("ellipsis"), f <= p && d.push(...Le(f, p)), u && d.push("ellipsis"), d.push(...o), d;
1053
- }, ze = ({ id: e, count: t, page: n, defaultPage: r = 1, onPageChange: i, onFirstClick: s, onLastClick: d, onNextClick: f, onPrevClick: m, siblingCount: h = 1, boundaryCount: g = 1, showFirstLast: _ = !0, showPrevNext: v = !0, showEllipsis: y = !0, disabled: b = !1, size: x = "sm", variant: S = "outline", intent: C = "neutral", activeVariant: w = "solid", activeIntent: ee, labels: T, ariaLabel: E = "Pagination", getPageLabel: D, className: O }) => {
1054
- let k = a(), te = e ?? `ds-pagination-${k}`, [j, ne] = c(r), M = Math.max(0, t), N = Ie(n ?? j, 1, Math.max(1, M)), re = o(() => Re(M, N, h, g, y), [
1087
+ if (!i || e <= n * 2 + 1 + r * 2 + 2) return Re(1, e);
1088
+ let a = Re(1, Math.min(r, e)), o = Re(Math.max(e - r + 1, r + 1), e), s = Math.max(t - n, r + 2), c = Math.min(t + n, e - r - 1), l = s > r + 2, u = c < e - r - 1, d = [...a], f = l ? s : r + 1, p = u ? c : e - r;
1089
+ return l && d.push("ellipsis"), f <= p && d.push(...Re(f, p)), u && d.push("ellipsis"), d.push(...o), d;
1090
+ }, Be = ({ id: e, count: t, page: n, defaultPage: r = 1, onPageChange: i, onFirstClick: s, onLastClick: d, onNextClick: f, onPrevClick: m, siblingCount: h = 1, boundaryCount: g = 1, showFirstLast: _ = !0, showPrevNext: v = !0, showEllipsis: y = !0, disabled: b = !1, size: x = "sm", variant: S = "outline", intent: C = "neutral", activeVariant: w = "solid", activeIntent: ee, labels: T, ariaLabel: E = "Pagination", getPageLabel: D, className: O }) => {
1091
+ let k = a(), te = e ?? `ds-pagination-${k}`, [ne, re] = c(r), j = Math.max(0, t), M = Le(n ?? ne, 1, Math.max(1, j)), ie = o(() => ze(j, M, h, g, y), [
1092
+ j,
1055
1093
  M,
1056
- N,
1057
1094
  h,
1058
1095
  g,
1059
1096
  y
1060
- ]), P = (e) => {
1061
- b || e === N || (n === void 0 && ne(e), i?.(e));
1062
- }, ie = () => {
1063
- P(1), s?.(1);
1097
+ ]), N = (e) => {
1098
+ b || e === M || (n === void 0 && re(e), i?.(e));
1064
1099
  }, ae = () => {
1065
- let e = M;
1066
- P(e), d?.(e);
1100
+ N(1), s?.(1);
1067
1101
  }, oe = () => {
1068
- let e = Math.max(1, N - 1);
1069
- P(e), m?.(e);
1102
+ let e = j;
1103
+ N(e), d?.(e);
1070
1104
  }, se = () => {
1071
- let e = Math.min(M, N + 1);
1072
- P(e), f?.(e);
1105
+ let e = Math.max(1, M - 1);
1106
+ N(e), m?.(e);
1107
+ }, ce = () => {
1108
+ let e = Math.min(j, M + 1);
1109
+ N(e), f?.(e);
1073
1110
  };
1074
- return M <= 0 ? null : /* @__PURE__ */ l("nav", {
1111
+ return j <= 0 ? null : /* @__PURE__ */ l("nav", {
1075
1112
  id: te,
1076
1113
  "aria-label": E,
1077
- className: p(U.root, O),
1114
+ className: p(H.root, O),
1078
1115
  children: /* @__PURE__ */ u("ul", {
1079
- className: U.list,
1116
+ className: H.list,
1080
1117
  children: [
1081
1118
  _ && /* @__PURE__ */ l("li", {
1082
- className: U.item,
1119
+ className: H.item,
1083
1120
  children: /* @__PURE__ */ l(A, {
1084
1121
  size: x,
1085
1122
  variant: S,
1086
1123
  intent: C,
1087
- className: U.pageButton,
1088
- onClick: ie,
1089
- disabled: b || N === 1,
1124
+ className: H.pageButton,
1125
+ onClick: ae,
1126
+ disabled: b || M === 1,
1090
1127
  "aria-label": "Go to first page",
1091
1128
  children: T?.first ?? "First"
1092
1129
  })
1093
1130
  }),
1094
1131
  v && /* @__PURE__ */ l("li", {
1095
- className: U.item,
1132
+ className: H.item,
1096
1133
  children: /* @__PURE__ */ l(A, {
1097
1134
  size: x,
1098
1135
  variant: S,
1099
1136
  intent: C,
1100
- className: U.pageButton,
1101
- onClick: oe,
1102
- disabled: b || N === 1,
1137
+ className: H.pageButton,
1138
+ onClick: se,
1139
+ disabled: b || M === 1,
1103
1140
  "aria-label": "Go to previous page",
1104
1141
  children: T?.prev ?? "Prev"
1105
1142
  })
1106
1143
  }),
1107
- re.map((e, t) => {
1144
+ ie.map((e, t) => {
1108
1145
  if (e === "ellipsis") return /* @__PURE__ */ l("li", {
1109
- className: U.item,
1146
+ className: H.item,
1110
1147
  "aria-hidden": "true",
1111
1148
  children: /* @__PURE__ */ l("span", {
1112
- className: U.ellipsis,
1149
+ className: H.ellipsis,
1113
1150
  children: "…"
1114
1151
  })
1115
1152
  }, `ellipsis-${t}`);
1116
- let n = e === N, r = D?.(e, n) ?? `Page ${e}${n ? ", current page" : ""}`;
1153
+ let n = e === M, r = D?.(e, n) ?? `Page ${e}${n ? ", current page" : ""}`;
1117
1154
  return /* @__PURE__ */ l("li", {
1118
- className: U.item,
1155
+ className: H.item,
1119
1156
  children: /* @__PURE__ */ l(A, {
1120
1157
  size: x,
1121
1158
  variant: n ? w : S,
1122
1159
  intent: n ? ee ?? C : C,
1123
- className: U.pageButton,
1124
- onClick: () => P(e),
1160
+ className: H.pageButton,
1161
+ onClick: () => N(e),
1125
1162
  disabled: b,
1126
1163
  "aria-current": n ? "page" : void 0,
1127
1164
  "aria-label": r,
@@ -1130,27 +1167,27 @@ var H = {
1130
1167
  }, e);
1131
1168
  }),
1132
1169
  v && /* @__PURE__ */ l("li", {
1133
- className: U.item,
1170
+ className: H.item,
1134
1171
  children: /* @__PURE__ */ l(A, {
1135
1172
  size: x,
1136
1173
  variant: S,
1137
1174
  intent: C,
1138
- className: U.pageButton,
1139
- onClick: se,
1140
- disabled: b || N === M,
1175
+ className: H.pageButton,
1176
+ onClick: ce,
1177
+ disabled: b || M === j,
1141
1178
  "aria-label": "Go to next page",
1142
1179
  children: T?.next ?? "Next"
1143
1180
  })
1144
1181
  }),
1145
1182
  _ && /* @__PURE__ */ l("li", {
1146
- className: U.item,
1183
+ className: H.item,
1147
1184
  children: /* @__PURE__ */ l(A, {
1148
1185
  size: x,
1149
1186
  variant: S,
1150
1187
  intent: C,
1151
- className: U.pageButton,
1152
- onClick: ae,
1153
- disabled: b || N === M,
1188
+ className: H.pageButton,
1189
+ onClick: oe,
1190
+ disabled: b || M === j,
1154
1191
  "aria-label": "Go to last page",
1155
1192
  children: T?.last ?? "Last"
1156
1193
  })
@@ -1158,7 +1195,7 @@ var H = {
1158
1195
  ]
1159
1196
  })
1160
1197
  });
1161
- }, W = {
1198
+ }, U = {
1162
1199
  wrapper: "_wrapper_16yvn_1",
1163
1200
  labelWrapper: "_labelWrapper_16yvn_8",
1164
1201
  label: "_label_16yvn_8",
@@ -1172,23 +1209,23 @@ var H = {
1172
1209
  success: "_success_16yvn_57",
1173
1210
  warning: "_warning_16yvn_61",
1174
1211
  danger: "_danger_16yvn_65"
1175
- }, Be = ({ value: e, max: t = 100, size: n = "md", intent: r = "info", showLabel: i = !1, label: o, className: s, id: c }) => {
1212
+ }, Ve = ({ value: e, max: t = 100, size: n = "md", intent: r = "info", showLabel: i = !1, label: o, className: s, id: c }) => {
1176
1213
  let d = a(), f = c ?? `ds-progressbar-${d}`, m = t > 0 ? t : 0, h = Math.min(Math.max(0, e), m), g = m > 0 ? Math.min(Math.max(0, h / m * 100), 100) : 0, _ = o ? `${f}-label` : void 0;
1177
1214
  return /* @__PURE__ */ u("div", {
1178
1215
  id: f,
1179
- className: p(W.wrapper, W[n], W[r], s),
1216
+ className: p(U.wrapper, U[n], U[r], s),
1180
1217
  children: [(o || i) && /* @__PURE__ */ u("div", {
1181
- className: W.labelWrapper,
1218
+ className: U.labelWrapper,
1182
1219
  children: [o && /* @__PURE__ */ l("span", {
1183
1220
  id: _,
1184
- className: W.label,
1221
+ className: U.label,
1185
1222
  children: o
1186
1223
  }), i && /* @__PURE__ */ u("span", {
1187
- className: W.percentage,
1224
+ className: U.percentage,
1188
1225
  children: [Math.round(g), "%"]
1189
1226
  })]
1190
1227
  }), /* @__PURE__ */ l("div", {
1191
- className: W.progressRoot,
1228
+ className: U.progressRoot,
1192
1229
  role: "progressbar",
1193
1230
  "aria-valuenow": h,
1194
1231
  "aria-valuemin": 0,
@@ -1196,12 +1233,12 @@ var H = {
1196
1233
  "aria-labelledby": _,
1197
1234
  "aria-label": o ? void 0 : "Progress",
1198
1235
  children: /* @__PURE__ */ l("div", {
1199
- className: W.indicator,
1236
+ className: U.indicator,
1200
1237
  style: { width: `${g}%` }
1201
1238
  })
1202
1239
  })]
1203
1240
  });
1204
- }, G = {
1241
+ }, W = {
1205
1242
  wrapper: "_wrapper_92sko_1",
1206
1243
  fullWidth: "_fullWidth_92sko_8",
1207
1244
  header: "_header_92sko_13",
@@ -1221,54 +1258,54 @@ var H = {
1221
1258
  inputsRow: "_inputsRow_92sko_179",
1222
1259
  singleInputRow: "_singleInputRow_92sko_187",
1223
1260
  separator: "_separator_92sko_191"
1224
- }, K = (e, t) => {
1261
+ }, G = (e, t) => {
1225
1262
  if (e == null) return t;
1226
1263
  let n = typeof e == "number" ? e : Number(e);
1227
1264
  return Number.isNaN(n) ? t : n;
1228
- }, Ve = (e, t, n) => Math.min(Math.max(e, t), n), He = (e, t, n, r) => Ve(r == null || r === "any" || r <= 0 ? e : t + Math.round((e - t) / r) * r, t, n), Ue = (e, t, n) => {
1265
+ }, He = (e, t, n) => Math.min(Math.max(e, t), n), Ue = (e, t, n, r) => He(r == null || r === "any" || r <= 0 ? e : t + Math.round((e - t) / r) * r, t, n), We = (e, t, n) => {
1229
1266
  if (Array.isArray(e)) {
1230
- let r = Ve(K(e[0], t), t, n), i = Ve(K(e[1], n), t, n);
1267
+ let r = He(G(e[0], t), t, n), i = He(G(e[1], n), t, n);
1231
1268
  return r <= i ? [r, i] : [i, r];
1232
1269
  }
1233
- let r = Ve(K(e, t), t, n);
1270
+ let r = He(G(e, t), t, n);
1234
1271
  return [r, r];
1235
- }, We = ({ size: e = "md", label: t, helperText: n, fullWidth: r = !1, showValue: i = !1, showInputs: s = !1, className: d, id: f, value: m, defaultValue: h, onValueChange: g, ..._ }) => {
1236
- let v = a(), y = f ?? `ds-slider-${v}`, b = n ? `${y}-help` : void 0, x = K(_.min, 0), S = K(_.max, 100), C = _.step === "any" ? "any" : K(_.step, 1), w = Array.isArray(m) || Array.isArray(h), [ee, T] = c(o(() => Ue(h ?? m, x, S), [
1272
+ }, Ge = ({ size: e = "md", label: t, helperText: n, fullWidth: r = !1, showValue: i = !1, showInputs: s = !1, className: d, id: f, value: m, defaultValue: h, onValueChange: g, ..._ }) => {
1273
+ let v = a(), y = f ?? `ds-slider-${v}`, b = n ? `${y}-help` : void 0, x = G(_.min, 0), S = G(_.max, 100), C = _.step === "any" ? "any" : G(_.step, 1), w = Array.isArray(m) || Array.isArray(h), [ee, T] = c(o(() => We(h ?? m, x, S), [
1237
1274
  h,
1238
1275
  S,
1239
1276
  x,
1240
1277
  m
1241
- ])), [E, D] = m == null ? ee : Ue(m, x, S), O = w ? `${E} - ${D}` : String(E), k = Math.max(S - x, 1), A = (E - x) / k * 100, te = (D - x) / k * 100, j = (e) => {
1278
+ ])), [E, D] = m == null ? ee : We(m, x, S), O = w ? `${E} - ${D}` : String(E), k = Math.max(S - x, 1), A = (E - x) / k * 100, te = (D - x) / k * 100, ne = (e) => {
1242
1279
  m ?? T(e), g?.(w ? e : e[0]);
1243
- }, ne = (e) => {
1280
+ }, re = (e) => {
1244
1281
  if (!e.trim()) return;
1245
1282
  let t = Number(e);
1246
- Number.isNaN(t) || j([He(t, x, w ? D : S, C), D]);
1247
- }, M = (e) => {
1283
+ Number.isNaN(t) || ne([Ue(t, x, w ? D : S, C), D]);
1284
+ }, j = (e) => {
1248
1285
  if (!e.trim()) return;
1249
1286
  let t = Number(e);
1250
- Number.isNaN(t) || j([E, He(t, E, S, C)]);
1287
+ Number.isNaN(t) || ne([E, Ue(t, E, S, C)]);
1251
1288
  };
1252
1289
  return /* @__PURE__ */ u("div", {
1253
- className: p(G.wrapper, r && G.fullWidth, d),
1290
+ className: p(W.wrapper, r && W.fullWidth, d),
1254
1291
  children: [
1255
1292
  (t || i) && /* @__PURE__ */ u("div", {
1256
- className: G.header,
1293
+ className: W.header,
1257
1294
  children: [t && /* @__PURE__ */ l("label", {
1258
1295
  htmlFor: y,
1259
- className: G.label,
1296
+ className: W.label,
1260
1297
  children: t
1261
1298
  }), i && /* @__PURE__ */ l("span", {
1262
- className: G.value,
1299
+ className: W.value,
1263
1300
  children: O
1264
1301
  })]
1265
1302
  }),
1266
1303
  /* @__PURE__ */ u("div", {
1267
- className: p(G.sliderRoot, G[e], _.disabled && G.disabled),
1304
+ className: p(W.sliderRoot, W[e], _.disabled && W.disabled),
1268
1305
  children: [
1269
- /* @__PURE__ */ l("div", { className: G.track }),
1306
+ /* @__PURE__ */ l("div", { className: W.track }),
1270
1307
  /* @__PURE__ */ l("div", {
1271
- className: G.activeTrack,
1308
+ className: W.activeTrack,
1272
1309
  style: {
1273
1310
  left: `${w ? A : 0}%`,
1274
1311
  width: `${w ? te - A : A}%`
@@ -1277,7 +1314,7 @@ var H = {
1277
1314
  /* @__PURE__ */ l("input", {
1278
1315
  id: y,
1279
1316
  type: "range",
1280
- className: p(G.inputRoot, w && G.inputStart),
1317
+ className: p(W.inputRoot, w && W.inputStart),
1281
1318
  "aria-describedby": b,
1282
1319
  "aria-label": t ? void 0 : w ? "Slider minimum" : "Slider",
1283
1320
  "aria-valuetext": i ? O : void 0,
@@ -1287,13 +1324,13 @@ var H = {
1287
1324
  step: C,
1288
1325
  value: E,
1289
1326
  onChange: (e) => {
1290
- j([He(K(e.target.value, x), x, D, C), D]);
1327
+ ne([Ue(G(e.target.value, x), x, D, C), D]);
1291
1328
  }
1292
1329
  }),
1293
1330
  w && /* @__PURE__ */ l("input", {
1294
1331
  id: `${y}-end`,
1295
1332
  type: "range",
1296
- className: p(G.inputRoot, G.inputEnd),
1333
+ className: p(W.inputRoot, W.inputEnd),
1297
1334
  "aria-describedby": b,
1298
1335
  "aria-label": t ? `${t} maximum` : "Slider maximum",
1299
1336
  ..._,
@@ -1302,15 +1339,15 @@ var H = {
1302
1339
  step: C,
1303
1340
  value: D,
1304
1341
  onChange: (e) => {
1305
- j([E, He(K(e.target.value, S), E, S, C)]);
1342
+ ne([E, Ue(G(e.target.value, S), E, S, C)]);
1306
1343
  }
1307
1344
  })
1308
1345
  ]
1309
1346
  }),
1310
1347
  s && /* @__PURE__ */ u("div", {
1311
- className: p(G.inputsRow, !w && G.singleInputRow),
1348
+ className: p(W.inputsRow, !w && W.singleInputRow),
1312
1349
  children: [
1313
- /* @__PURE__ */ l(Se, {
1350
+ /* @__PURE__ */ l(Ce, {
1314
1351
  type: "number",
1315
1352
  inputMode: "decimal",
1316
1353
  size: e,
@@ -1321,17 +1358,17 @@ var H = {
1321
1358
  "aria-label": t ? `${t} minimum input` : w ? "Slider minimum input" : "Slider input",
1322
1359
  fullWidth: !0,
1323
1360
  onBlur: (e) => {
1324
- ne(e.target.value);
1361
+ re(e.target.value);
1325
1362
  },
1326
1363
  onKeyDown: (e) => {
1327
- e.key === "Enter" && ne(e.currentTarget.value);
1364
+ e.key === "Enter" && re(e.currentTarget.value);
1328
1365
  }
1329
1366
  }, `slider-start-${E}-${D}`),
1330
1367
  w && /* @__PURE__ */ l("span", {
1331
- className: G.separator,
1368
+ className: W.separator,
1332
1369
  children: "-"
1333
1370
  }),
1334
- w && /* @__PURE__ */ l(Se, {
1371
+ w && /* @__PURE__ */ l(Ce, {
1335
1372
  type: "number",
1336
1373
  inputMode: "decimal",
1337
1374
  size: e,
@@ -1342,22 +1379,22 @@ var H = {
1342
1379
  "aria-label": t ? `${t} maximum input` : "Slider maximum input",
1343
1380
  fullWidth: !0,
1344
1381
  onBlur: (e) => {
1345
- M(e.target.value);
1382
+ j(e.target.value);
1346
1383
  },
1347
1384
  onKeyDown: (e) => {
1348
- e.key === "Enter" && M(e.currentTarget.value);
1385
+ e.key === "Enter" && j(e.currentTarget.value);
1349
1386
  }
1350
1387
  }, `slider-end-${E}-${D}`)
1351
1388
  ]
1352
1389
  }),
1353
1390
  n && /* @__PURE__ */ l("span", {
1354
1391
  id: b,
1355
- className: G.helperText,
1392
+ className: W.helperText,
1356
1393
  children: n
1357
1394
  })
1358
1395
  ]
1359
1396
  });
1360
- }, q = {
1397
+ }, K = {
1361
1398
  wrapper: "_wrapper_4v5ks_1",
1362
1399
  label: "_label_4v5ks_7",
1363
1400
  sm: "_sm_4v5ks_17",
@@ -1370,34 +1407,34 @@ var H = {
1370
1407
  error: "_error_4v5ks_133",
1371
1408
  helperText: "_helperText_4v5ks_142",
1372
1409
  errorText: "_errorText_4v5ks_156"
1373
- }, Ge = ({ size: e = "md", label: t, helperText: n, error: r, className: i, id: o, ...s }) => {
1410
+ }, Ke = ({ size: e = "md", label: t, helperText: n, error: r, className: i, id: o, ...s }) => {
1374
1411
  let c = a(), d = o ?? `ds-radio-${c}`, f = n ? `${d}-help` : void 0;
1375
1412
  return /* @__PURE__ */ u("div", {
1376
- className: p(q.wrapper, i),
1413
+ className: p(K.wrapper, i),
1377
1414
  children: [/* @__PURE__ */ u("label", {
1378
1415
  htmlFor: d,
1379
- className: p(q.label, q[e]),
1416
+ className: p(K.label, K[e]),
1380
1417
  children: [/* @__PURE__ */ u("div", {
1381
- className: q.inputWrapper,
1418
+ className: K.inputWrapper,
1382
1419
  children: [/* @__PURE__ */ l("input", {
1383
1420
  type: "radio",
1384
1421
  id: d,
1385
- className: p(q.radioRoot, q[e], r && q.error),
1422
+ className: p(K.radioRoot, K[e], r && K.error),
1386
1423
  "aria-describedby": f,
1387
1424
  "aria-invalid": r || void 0,
1388
1425
  ...s
1389
- }), /* @__PURE__ */ l("span", { className: q.checkmark })]
1426
+ }), /* @__PURE__ */ l("span", { className: K.checkmark })]
1390
1427
  }), t && /* @__PURE__ */ l("span", {
1391
- className: q.labelText,
1428
+ className: K.labelText,
1392
1429
  children: t
1393
1430
  })]
1394
1431
  }), n && /* @__PURE__ */ l("span", {
1395
1432
  id: f,
1396
- className: p(q.helperText, r && q.errorText),
1433
+ className: p(K.helperText, r && K.errorText),
1397
1434
  children: n
1398
1435
  })]
1399
1436
  });
1400
- }, Ke = {
1437
+ }, qe = {
1401
1438
  root: "_root_1qfdr_1",
1402
1439
  text: "_text_1qfdr_6",
1403
1440
  rectangular: "_rectangular_1qfdr_15",
@@ -1405,38 +1442,38 @@ var H = {
1405
1442
  circular: "_circular_1qfdr_23",
1406
1443
  pulse: "_pulse_1qfdr_28",
1407
1444
  wave: "_wave_1qfdr_44"
1408
- }, qe = ({ variant: e = "rectangular", width: t, height: n, animation: r = "pulse", className: i, style: a, "aria-hidden": o, ...s }) => /* @__PURE__ */ l(T, {
1409
- className: p(Ke.root, Ke[e], r !== "none" && Ke[r], i),
1445
+ }, Je = ({ variant: e = "rectangular", width: t, height: n, animation: r = "pulse", className: i, style: a, "aria-hidden": o, ...s }) => /* @__PURE__ */ l(T, {
1446
+ className: p(qe.root, qe[e], r !== "none" && qe[r], i),
1410
1447
  width: t,
1411
1448
  height: n,
1412
1449
  style: a,
1413
1450
  "aria-hidden": o ?? !0,
1414
1451
  ...s
1415
- }), Je = "_step_1z90u_1", Ye = "_stepRow_1z90u_18", Xe = "_interactive_1z90u_28", Ze = "_marker_1z90u_48", Qe = "_text_1z90u_67", $e = "_label_1z90u_74", et = "_description_1z90u_83", tt = "_connector_1z90u_92", nt = "_completed_1z90u_110", rt = "_current_1z90u_124", it = "_error_1z90u_138", at = "_upcoming_1z90u_152", ot = "_disabled_1z90u_156", J = {
1416
- step: Je,
1417
- stepRow: Ye,
1418
- interactive: Xe,
1419
- marker: Ze,
1420
- text: Qe,
1421
- label: $e,
1422
- description: et,
1423
- connector: tt,
1424
- completed: nt,
1452
+ }), Ye = "_step_1z90u_1", Xe = "_stepRow_1z90u_18", Ze = "_interactive_1z90u_28", Qe = "_marker_1z90u_48", $e = "_text_1z90u_67", et = "_label_1z90u_74", tt = "_description_1z90u_83", nt = "_connector_1z90u_92", rt = "_completed_1z90u_110", it = "_current_1z90u_124", at = "_error_1z90u_138", ot = "_upcoming_1z90u_152", st = "_disabled_1z90u_156", q = {
1453
+ step: Ye,
1454
+ stepRow: Xe,
1455
+ interactive: Ze,
1456
+ marker: Qe,
1457
+ text: $e,
1458
+ label: et,
1459
+ description: tt,
1460
+ connector: nt,
1461
+ completed: rt,
1425
1462
  "connector-completed": "_connector-completed_1z90u_120",
1426
- current: rt,
1463
+ current: it,
1427
1464
  "connector-current": "_connector-current_1z90u_134",
1428
- error: it,
1465
+ error: at,
1429
1466
  "connector-error": "_connector-error_1z90u_148",
1430
- upcoming: at,
1431
- disabled: ot
1432
- }, st = ({ step: e, index: t, status: n, isInteractive: r, onStepClick: i, isLast: a, id: o, className: s }) => {
1467
+ upcoming: ot,
1468
+ disabled: st
1469
+ }, ct = ({ step: e, index: t, status: n, isInteractive: r, onStepClick: i, isLast: a, id: o, className: s }) => {
1433
1470
  let c = !!e.disabled, d = r ? "button" : "div", f = n === "error" ? "!" : String(t + 1);
1434
1471
  return /* @__PURE__ */ u("li", {
1435
- className: p(J.step, J[n], c && J.disabled, s),
1472
+ className: p(q.step, q[n], c && q.disabled, s),
1436
1473
  children: [/* @__PURE__ */ u(d, {
1437
1474
  id: o,
1438
1475
  type: r ? "button" : void 0,
1439
- className: p(J.stepRow, r && J.interactive),
1476
+ className: p(q.stepRow, r && q.interactive),
1440
1477
  onClick: () => {
1441
1478
  r && !c && i?.(e, t);
1442
1479
  },
@@ -1448,49 +1485,49 @@ var H = {
1448
1485
  disabled: r && c ? !0 : void 0,
1449
1486
  tabIndex: r && !c ? 0 : void 0,
1450
1487
  children: [/* @__PURE__ */ l("span", {
1451
- className: J.marker,
1488
+ className: q.marker,
1452
1489
  "aria-hidden": "true",
1453
1490
  children: f
1454
1491
  }), /* @__PURE__ */ u("span", {
1455
- className: J.text,
1492
+ className: q.text,
1456
1493
  children: [/* @__PURE__ */ l("span", {
1457
- className: J.label,
1494
+ className: q.label,
1458
1495
  children: e.label
1459
1496
  }), e.description && /* @__PURE__ */ l("span", {
1460
- className: J.description,
1497
+ className: q.description,
1461
1498
  children: e.description
1462
1499
  })]
1463
1500
  })]
1464
1501
  }), !a && /* @__PURE__ */ l("span", {
1465
- className: p(J.connector, J[`connector-${n}`]),
1502
+ className: p(q.connector, q[`connector-${n}`]),
1466
1503
  "aria-hidden": "true"
1467
1504
  })]
1468
1505
  });
1469
- }, ct = {
1506
+ }, lt = {
1470
1507
  root: "_root_cxvk2_1",
1471
1508
  sm: "_sm_cxvk2_15",
1472
1509
  lg: "_lg_cxvk2_22",
1473
1510
  horizontal: "_horizontal_cxvk2_29",
1474
1511
  vertical: "_vertical_cxvk2_35"
1475
- }, lt = (e, t) => Number.isNaN(e) || t <= 0 ? -1 : Math.min(Math.max(e, 0), t - 1), ut = (e, t) => typeof e == "number" ? lt(e, t.length) : typeof e == "string" ? t.findIndex((t) => t.id === e) : t.findIndex((e) => e.status === "current"), dt = (e, t, n) => n || (t === -1 ? "upcoming" : e < t ? "completed" : e === t ? "current" : "upcoming"), ft = ({ steps: e, currentStep: t, orientation: n = "horizontal", size: r = "md", onStepClick: i, ariaLabel: o, className: s, id: c, ...u }) => {
1476
- let d = a(), f = c ?? `ds-stepper-${d}`, m = ut(t, e), h = o ?? "Progress";
1512
+ }, ut = (e, t) => Number.isNaN(e) || t <= 0 ? -1 : Math.min(Math.max(e, 0), t - 1), dt = (e, t) => typeof e == "number" ? ut(e, t.length) : typeof e == "string" ? t.findIndex((t) => t.id === e) : t.findIndex((e) => e.status === "current"), ft = (e, t, n) => n || (t === -1 ? "upcoming" : e < t ? "completed" : e === t ? "current" : "upcoming"), pt = ({ steps: e, currentStep: t, orientation: n = "horizontal", size: r = "md", onStepClick: i, ariaLabel: o, className: s, id: c, ...u }) => {
1513
+ let d = a(), f = c ?? `ds-stepper-${d}`, m = dt(t, e), h = o ?? "Progress";
1477
1514
  return /* @__PURE__ */ l("ol", {
1478
1515
  id: f,
1479
- className: p(ct.root, ct[n], ct[r], s),
1516
+ className: p(lt.root, lt[n], lt[r], s),
1480
1517
  "aria-label": h,
1481
1518
  "data-orientation": n,
1482
1519
  ...u,
1483
- children: e.map((t, n) => /* @__PURE__ */ l(st, {
1520
+ children: e.map((t, n) => /* @__PURE__ */ l(ct, {
1484
1521
  id: `${f}-step-${t.id}`,
1485
1522
  step: t,
1486
1523
  index: n,
1487
- status: dt(n, m, t.status),
1524
+ status: ft(n, m, t.status),
1488
1525
  isInteractive: !!i,
1489
1526
  onStepClick: i,
1490
1527
  isLast: n === e.length - 1
1491
1528
  }, t.id))
1492
1529
  });
1493
- }, Y = {
1530
+ }, J = {
1494
1531
  wrapper: "_wrapper_vo2yb_1",
1495
1532
  fullWidth: "_fullWidth_vo2yb_8",
1496
1533
  label: "_label_vo2yb_13",
@@ -1501,19 +1538,19 @@ var H = {
1501
1538
  error: "_error_vo2yb_80",
1502
1539
  helperText: "_helperText_vo2yb_89",
1503
1540
  errorText: "_errorText_vo2yb_95"
1504
- }, pt = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, options: c, children: d, ...f }) => {
1541
+ }, mt = ({ size: e = "md", error: t, label: n, helperText: r, fullWidth: i = !1, className: o, id: s, options: c, children: d, ...f }) => {
1505
1542
  let m = a(), h = s ?? `ds-select-${m}`, g = r ? `${h}-help` : void 0;
1506
1543
  return /* @__PURE__ */ u("div", {
1507
- className: p(Y.wrapper, i && Y.fullWidth, o),
1544
+ className: p(J.wrapper, i && J.fullWidth, o),
1508
1545
  children: [
1509
1546
  n && /* @__PURE__ */ l("label", {
1510
1547
  htmlFor: h,
1511
- className: Y.label,
1548
+ className: J.label,
1512
1549
  children: n
1513
1550
  }),
1514
1551
  /* @__PURE__ */ l("select", {
1515
1552
  id: h,
1516
- className: p(Y.selectRoot, Y[e], t && Y.error),
1553
+ className: p(J.selectRoot, J[e], t && J.error),
1517
1554
  "aria-describedby": g,
1518
1555
  "aria-invalid": t || void 0,
1519
1556
  ...f,
@@ -1525,12 +1562,12 @@ var H = {
1525
1562
  }),
1526
1563
  r && /* @__PURE__ */ l("span", {
1527
1564
  id: g,
1528
- className: p(Y.helperText, t && Y.errorText),
1565
+ className: p(J.helperText, t && J.errorText),
1529
1566
  children: r
1530
1567
  })
1531
1568
  ]
1532
1569
  });
1533
- }, X = {
1570
+ }, Y = {
1534
1571
  wrapper: "_wrapper_196po_1",
1535
1572
  container: "_container_196po_7",
1536
1573
  disabled: "_disabled_196po_15",
@@ -1539,87 +1576,87 @@ var H = {
1539
1576
  thumb: "_thumb_196po_46",
1540
1577
  label: "_label_196po_62",
1541
1578
  helperText: "_helperText_196po_69"
1542
- }, mt = ({ label: e, helperText: t, className: n, disabled: r, id: i, ...o }) => {
1579
+ }, ht = ({ label: e, helperText: t, className: n, disabled: r, id: i, ...o }) => {
1543
1580
  let s = a(), c = i ?? `ds-switch-${s}`, d = t ? `${c}-help` : void 0;
1544
1581
  return /* @__PURE__ */ u("div", {
1545
- className: p(X.wrapper, n),
1582
+ className: p(Y.wrapper, n),
1546
1583
  children: [/* @__PURE__ */ u("label", {
1547
1584
  htmlFor: c,
1548
- className: p(X.container, r && X.disabled),
1585
+ className: p(Y.container, r && Y.disabled),
1549
1586
  children: [
1550
1587
  /* @__PURE__ */ l("input", {
1551
1588
  type: "checkbox",
1552
1589
  id: c,
1553
1590
  role: "switch",
1554
1591
  disabled: r,
1555
- className: X.input,
1592
+ className: Y.input,
1556
1593
  "aria-describedby": d,
1557
1594
  ...o
1558
1595
  }),
1559
1596
  /* @__PURE__ */ l("span", {
1560
- className: X.track,
1561
- children: /* @__PURE__ */ l("span", { className: X.thumb })
1597
+ className: Y.track,
1598
+ children: /* @__PURE__ */ l("span", { className: Y.thumb })
1562
1599
  }),
1563
1600
  e && /* @__PURE__ */ l("span", {
1564
- className: X.label,
1601
+ className: Y.label,
1565
1602
  children: e
1566
1603
  })
1567
1604
  ]
1568
1605
  }), t && /* @__PURE__ */ l("span", {
1569
1606
  id: d,
1570
- className: X.helperText,
1607
+ className: Y.helperText,
1571
1608
  children: t
1572
1609
  })]
1573
1610
  });
1574
- }, ht = "_wrapper_1w3cj_1", gt = "_table_1w3cj_8", _t = "_thead_1w3cj_17", vt = "_tbody_1w3cj_22", yt = "_tr_1w3cj_22", bt = "_th_1w3cj_17", xt = "_td_1w3cj_40", St = "_striped_1w3cj_46", Ct = "_hoverable_1w3cj_50", wt = "_dense_1w3cj_54", Tt = "_loading_1w3cj_75", Z = {
1575
- wrapper: ht,
1576
- table: gt,
1577
- thead: _t,
1578
- tbody: vt,
1579
- tr: yt,
1580
- th: bt,
1581
- td: xt,
1582
- striped: St,
1583
- hoverable: Ct,
1584
- dense: wt,
1611
+ }, gt = "_wrapper_1w3cj_1", _t = "_table_1w3cj_8", vt = "_thead_1w3cj_17", yt = "_tbody_1w3cj_22", bt = "_tr_1w3cj_22", xt = "_th_1w3cj_17", St = "_td_1w3cj_40", Ct = "_striped_1w3cj_46", wt = "_hoverable_1w3cj_50", Tt = "_dense_1w3cj_54", Et = "_loading_1w3cj_75", X = {
1612
+ wrapper: gt,
1613
+ table: _t,
1614
+ thead: vt,
1615
+ tbody: yt,
1616
+ tr: bt,
1617
+ th: xt,
1618
+ td: St,
1619
+ striped: Ct,
1620
+ hoverable: wt,
1621
+ dense: Tt,
1585
1622
  "align-left": "_align-left_1w3cj_62",
1586
1623
  "align-center": "_align-center_1w3cj_65",
1587
1624
  "align-right": "_align-right_1w3cj_68",
1588
1625
  "align-justify": "_align-justify_1w3cj_71",
1589
- loading: Tt
1590
- }, Et = ({ children: e, className: t, striped: n, hoverable: r, dense: i, isLoading: a, ...o }) => /* @__PURE__ */ l("div", {
1591
- className: p(Z.wrapper, a && Z.loading, t),
1626
+ loading: Et
1627
+ }, Dt = ({ children: e, className: t, striped: n, hoverable: r, dense: i, isLoading: a, ...o }) => /* @__PURE__ */ l("div", {
1628
+ className: p(X.wrapper, a && X.loading, t),
1592
1629
  children: /* @__PURE__ */ l("table", {
1593
- className: p(Z.table, n && Z.striped, r && Z.hoverable, i && Z.dense),
1630
+ className: p(X.table, n && X.striped, r && X.hoverable, i && X.dense),
1594
1631
  "aria-busy": a || void 0,
1595
1632
  ...o,
1596
1633
  children: e
1597
1634
  })
1598
- }), Dt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("thead", {
1599
- className: p(Z.thead, t),
1635
+ }), Ot = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("thead", {
1636
+ className: p(X.thead, t),
1600
1637
  ...n,
1601
1638
  children: e
1602
- }), Ot = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("tbody", {
1603
- className: p(Z.tbody, t),
1639
+ }), kt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("tbody", {
1640
+ className: p(X.tbody, t),
1604
1641
  ...n,
1605
1642
  children: e
1606
- }), kt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("tfoot", {
1607
- className: p(Z.tfoot, t),
1643
+ }), At = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("tfoot", {
1644
+ className: p(X.tfoot, t),
1608
1645
  ...n,
1609
1646
  children: e
1610
- }), At = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("tr", {
1611
- className: p(Z.tr, t),
1647
+ }), jt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l("tr", {
1648
+ className: p(X.tr, t),
1612
1649
  ...n,
1613
1650
  children: e
1614
- }), jt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */ l("th", {
1615
- className: p(Z.th, n && Z[`align-${n}`], t),
1651
+ }), Mt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */ l("th", {
1652
+ className: p(X.th, n && X[`align-${n}`], t),
1616
1653
  ...r,
1617
1654
  children: e
1618
- }), Mt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */ l("td", {
1619
- className: p(Z.td, n && Z[`align-${n}`], t),
1655
+ }), Nt = ({ children: e, className: t, align: n, ...r }) => /* @__PURE__ */ l("td", {
1656
+ className: p(X.td, n && X[`align-${n}`], t),
1620
1657
  ...r,
1621
1658
  children: e
1622
- }), Nt = {
1659
+ }), Z = {
1623
1660
  root: "_root_1luck_1",
1624
1661
  tabList: "_tabList_1luck_8",
1625
1662
  tabItem: "_tabItem_1luck_16",
@@ -1643,11 +1680,11 @@ var H = {
1643
1680
  }, x = e.find((e) => e.id === _);
1644
1681
  return /* @__PURE__ */ u("div", {
1645
1682
  id: m,
1646
- className: p(Nt.root, i),
1683
+ className: p(Z.root, i),
1647
1684
  children: [/* @__PURE__ */ l("div", {
1648
1685
  role: "tablist",
1649
1686
  ref: v,
1650
- className: p(Nt.tabList, o === "pill" && Nt.pillList),
1687
+ className: p(Z.tabList, o === "pill" && Z.pillList),
1651
1688
  onKeyDown: b,
1652
1689
  children: e.map((e) => {
1653
1690
  let t = e.id === _, n = !!e.disabled, r = n ? -1 : t ? 0 : -1;
@@ -1660,7 +1697,7 @@ var H = {
1660
1697
  tabIndex: r,
1661
1698
  disabled: n,
1662
1699
  "data-id": e.id,
1663
- className: p(Nt.tabItem, o === "pill" && Nt.pillItem, t && Nt.active, n && Nt.disabled),
1700
+ className: p(Z.tabItem, o === "pill" && Z.pillItem, t && Z.active, n && Z.disabled),
1664
1701
  onClick: () => y(e.id, n),
1665
1702
  children: e.label
1666
1703
  }, e.id);
@@ -1669,7 +1706,7 @@ var H = {
1669
1706
  role: "tabpanel",
1670
1707
  id: `${m}-panel-${_}`,
1671
1708
  "aria-labelledby": `${m}-tab-${_}`,
1672
- className: Nt.tabPanel,
1709
+ className: Z.tabPanel,
1673
1710
  tabIndex: 0,
1674
1711
  children: x?.content
1675
1712
  })]
@@ -2072,31 +2109,17 @@ var cn = {
2072
2109
  root: "_root_1931n_1",
2073
2110
  main: "_main_1931n_8",
2074
2111
  container: "_container_1931n_13"
2075
- }, ln = ({ headerLogo: e, headerTitle: t, user: n, navItems: r, activeNavId: i, navActions: a, children: o, onLogin: s, onLogout: c, onCreateAccount: d, onNavItemClick: f, className: m, maxWidth: h = "75rem" }) => /* @__PURE__ */ u("div", {
2076
- className: p(cn.root, m),
2112
+ }, ln = ({ header: e, navbar: t, children: n, className: r, maxWidth: i = "75rem" }) => /* @__PURE__ */ u("div", {
2113
+ className: p(cn.root, r),
2077
2114
  children: [
2078
- /* @__PURE__ */ l(be, {
2079
- logo: e,
2080
- title: t,
2081
- user: n,
2082
- onLogin: s,
2083
- onLogout: c,
2084
- onCreateAccount: d,
2085
- maxWidth: h
2086
- }),
2087
- /* @__PURE__ */ l(xe, {
2088
- items: r,
2089
- activeId: i,
2090
- actions: a,
2091
- onItemClick: f,
2092
- maxWidth: h
2093
- }),
2115
+ e,
2116
+ t,
2094
2117
  /* @__PURE__ */ l("main", {
2095
2118
  className: cn.main,
2096
2119
  children: /* @__PURE__ */ l(T, {
2097
2120
  className: cn.container,
2098
- maxWidth: h,
2099
- children: o
2121
+ maxWidth: i,
2122
+ children: n
2100
2123
  })
2101
2124
  })
2102
2125
  ]
@@ -2144,38 +2167,30 @@ var cn = {
2144
2167
  topBar: "_topBar_1vwxr_20",
2145
2168
  stats: "_stats_1vwxr_27",
2146
2169
  content: "_content_1vwxr_33"
2147
- }, pn = ({ headerLogo: e, headerTitle: t, breadcrumbs: n, actions: r, stats: i, children: a, user: o, onLogin: s, onLogout: c, onCreateAccount: d, className: f, maxWidth: m }) => /* @__PURE__ */ u("div", {
2148
- className: p(fn.root, f),
2149
- children: [/* @__PURE__ */ l(be, {
2150
- logo: e,
2151
- title: t,
2152
- user: o,
2153
- onLogin: s,
2154
- onLogout: c,
2155
- onCreateAccount: d,
2156
- maxWidth: m
2157
- }), /* @__PURE__ */ l("main", {
2170
+ }, pn = ({ header: e, breadcrumbs: t, actions: n, stats: r, children: i, className: a }) => /* @__PURE__ */ u("div", {
2171
+ className: p(fn.root, a),
2172
+ children: [e, /* @__PURE__ */ l("main", {
2158
2173
  className: fn.main,
2159
2174
  children: /* @__PURE__ */ u("div", {
2160
2175
  className: fn.container,
2161
2176
  children: [
2162
- (n || r) && /* @__PURE__ */ u("div", {
2177
+ (t || n) && /* @__PURE__ */ u("div", {
2163
2178
  className: fn.topBar,
2164
2179
  children: [/* @__PURE__ */ l("div", {
2165
2180
  className: fn.breadcrumbs,
2166
- children: n
2181
+ children: t
2167
2182
  }), /* @__PURE__ */ l("div", {
2168
2183
  className: fn.actions,
2169
- children: r
2184
+ children: n
2170
2185
  })]
2171
2186
  }),
2172
- i && /* @__PURE__ */ l("div", {
2187
+ r && /* @__PURE__ */ l("div", {
2173
2188
  className: fn.stats,
2174
- children: i
2189
+ children: r
2175
2190
  }),
2176
2191
  /* @__PURE__ */ l("div", {
2177
2192
  className: fn.content,
2178
- children: a
2193
+ children: i
2179
2194
  })
2180
2195
  ]
2181
2196
  })
@@ -2187,35 +2202,27 @@ var cn = {
2187
2202
  layoutBody: "_layoutBody_o4vai_20",
2188
2203
  sidebar: "_sidebar_o4vai_26",
2189
2204
  content: "_content_o4vai_34"
2190
- }, hn = ({ headerLogo: e, headerTitle: t, breadcrumbs: n, sidebar: r, children: i, user: a, onLogin: o, onLogout: s, onCreateAccount: c, className: d, maxWidth: f }) => /* @__PURE__ */ u("div", {
2191
- className: p(mn.root, d),
2192
- children: [/* @__PURE__ */ l(be, {
2193
- logo: e,
2194
- title: t,
2195
- user: a,
2196
- onLogin: o,
2197
- onLogout: s,
2198
- onCreateAccount: c,
2199
- maxWidth: f
2200
- }), /* @__PURE__ */ l("main", {
2205
+ }, hn = ({ header: e, breadcrumbs: t, sidebar: n, children: r, className: i }) => /* @__PURE__ */ u("div", {
2206
+ className: p(mn.root, i),
2207
+ children: [e, /* @__PURE__ */ l("main", {
2201
2208
  className: mn.main,
2202
2209
  children: /* @__PURE__ */ u("div", {
2203
2210
  className: mn.container,
2204
- children: [n && /* @__PURE__ */ l("div", {
2211
+ children: [t && /* @__PURE__ */ l("div", {
2205
2212
  className: mn.breadcrumbs,
2206
- children: n
2213
+ children: t
2207
2214
  }), /* @__PURE__ */ u("div", {
2208
2215
  className: mn.layoutBody,
2209
- children: [r && /* @__PURE__ */ l("aside", {
2216
+ children: [n && /* @__PURE__ */ l("aside", {
2210
2217
  className: mn.sidebar,
2211
- children: r
2218
+ children: n
2212
2219
  }), /* @__PURE__ */ l("section", {
2213
2220
  className: mn.content,
2214
- children: i
2221
+ children: r
2215
2222
  })]
2216
2223
  })]
2217
2224
  })
2218
2225
  })]
2219
2226
  });
2220
2227
  //#endregion
2221
- export { h as Accordion, ln as AppLayout, dn as AuthLayout, _ as Avatar, y as Badge, T as Box, D as BreadcrumbItem, O as Breadcrumbs, A as Button, de as Card, pe as CardContent, me as CardFooter, fe as CardHeader, he as Checkbox, pn as DashboardLayout, ye as Divider, ge as Dropdown, be as Header, Se as Input, Me as List, je as ListItem, we as Loader, Ne as Modal, xe as NavBar, Fe as Notification, ze as Pagination, Be as ProgressBar, Ge as RadioButton, pt as Select, hn as SettingsLayout, qe as Skeleton, We as Slider, ft as Stepper, mt as Switch, Et as Table, Ot as TableBody, Mt as TableCell, kt as TableFooter, jt as TableHead, Dt as TableHeader, At as TableRow, Pt as Tabs, $t as Text, tn as Textarea, rn as Tooltip, sn as Tree, on as TreeItem };
2228
+ export { h as Accordion, ln as AppLayout, dn as AuthLayout, _ as Avatar, y as Badge, T as Box, D as BreadcrumbItem, O as Breadcrumbs, A as Button, fe as Card, me as CardContent, he as CardFooter, pe as CardHeader, ge as Checkbox, pn as DashboardLayout, be as Divider, _e as Dropdown, xe as Header, Ce as Input, Ne as List, Me as ListItem, Te as Loader, Pe as Modal, Se as NavBar, Ie as Notification, Be as Pagination, Ve as ProgressBar, Ke as RadioButton, mt as Select, hn as SettingsLayout, Je as Skeleton, Ge as Slider, pt as Stepper, ht as Switch, Dt as Table, kt as TableBody, Nt as TableCell, At as TableFooter, Mt as TableHead, Ot as TableHeader, jt as TableRow, Pt as Tabs, $t as Text, tn as Textarea, rn as Tooltip, sn as Tree, on as TreeItem };