@udixio/ui-react 1.5.0 → 1.6.0

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 (30) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/index.cjs +2 -2
  3. package/dist/index.js +882 -757
  4. package/dist/lib/components/SlideSheet.d.ts +9 -0
  5. package/dist/lib/components/SlideSheet.d.ts.map +1 -0
  6. package/dist/lib/components/index.d.ts +1 -0
  7. package/dist/lib/components/index.d.ts.map +1 -1
  8. package/dist/lib/effects/ThemeProvider.d.ts +3 -2
  9. package/dist/lib/effects/ThemeProvider.d.ts.map +1 -1
  10. package/dist/lib/interfaces/index.d.ts +1 -0
  11. package/dist/lib/interfaces/index.d.ts.map +1 -1
  12. package/dist/lib/interfaces/navigation-rail.interface.d.ts +1 -1
  13. package/dist/lib/interfaces/navigation-rail.interface.d.ts.map +1 -1
  14. package/dist/lib/interfaces/slide-sheet.interface.d.ts +29 -0
  15. package/dist/lib/interfaces/slide-sheet.interface.d.ts.map +1 -0
  16. package/dist/lib/styles/index.d.ts +1 -0
  17. package/dist/lib/styles/index.d.ts.map +1 -1
  18. package/dist/lib/styles/navigation-rail.style.d.ts +2 -2
  19. package/dist/lib/styles/slide-sheet.style.d.ts +25 -0
  20. package/dist/lib/styles/slide-sheet.style.d.ts.map +1 -0
  21. package/package.json +2 -2
  22. package/src/lib/components/SlideSheet.tsx +122 -0
  23. package/src/lib/components/index.ts +1 -0
  24. package/src/lib/effects/ThemeProvider.tsx +13 -18
  25. package/src/lib/interfaces/index.ts +1 -0
  26. package/src/lib/interfaces/navigation-rail.interface.ts +1 -1
  27. package/src/lib/interfaces/slide-sheet.interface.tsx +27 -0
  28. package/src/lib/styles/index.ts +1 -0
  29. package/src/lib/styles/slide-sheet.style.ts +31 -0
  30. package/src/stories/containment/slide-sheet.stories.tsx +50 -0
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { jsx as u, jsxs as U, Fragment as re } from "react/jsx-runtime";
2
- import { clsx as de } from "clsx";
3
- import { extendTailwindMerge as we } from "tailwind-merge";
4
- import Y, { useState as R, useEffect as P, useRef as V, useLayoutEffect as fe, isValidElement as ee, cloneElement as le, useMemo as ve, Children as be, Fragment as Le } from "react";
5
- import { motion as j, AnimatePresence as z, useScroll as Ne, useMotionValueEvent as se, motionValue as me, useTransform as oe } from "motion/react";
6
- import { throttle as Ie } from "throttle-debounce";
7
- import { createPortal as Ee } from "react-dom";
1
+ import { jsx as u, jsxs as D, Fragment as te } from "react/jsx-runtime";
2
+ import { clsx as me } from "clsx";
3
+ import { extendTailwindMerge as ve } from "tailwind-merge";
4
+ import Y, { useState as R, useEffect as $, useRef as j, useLayoutEffect as pe, isValidElement as ee, cloneElement as le, useMemo as be, Children as Ne, Fragment as Le } from "react";
5
+ import { motion as U, AnimatePresence as A, useScroll as Ie, useMotionValueEvent as se, motionValue as he, useTransform as oe } from "motion/react";
6
+ import { throttle as Ee } from "throttle-debounce";
7
+ import { createPortal as ye } from "react-dom";
8
8
  import { loader as ke } from "@udixio/theme";
9
- import { TailwindPlugin as Ce } from "@udixio/tailwind";
9
+ import { TailwindPlugin as Se } from "@udixio/tailwind";
10
10
  import Re from "react-textarea-autosize";
11
- const pe = we({
11
+ const xe = ve({
12
12
  override: {
13
13
  classGroups: {
14
14
  "text-color": [
@@ -34,8 +34,8 @@ const pe = we({
34
34
  font: ["font"]
35
35
  }
36
36
  }
37
- }), f = (...e) => pe(de(e)), Me = (...e) => pe(de(e));
38
- function Se(e) {
37
+ }), f = (...e) => xe(me(e)), Ce = (...e) => xe(me(e));
38
+ function Me(e) {
39
39
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
40
40
  }
41
41
  const Be = (e) => {
@@ -46,23 +46,23 @@ const Be = (e) => {
46
46
  if (typeof l == "string")
47
47
  (t[n = e.default] ?? (t[n] = [])).push(l);
48
48
  else {
49
- const c = l(e.states);
50
- Object.entries(c).map((i) => {
51
- const [a, d] = i;
52
- (t[a] ?? (t[a] = [])).push(d);
49
+ const a = l(e.states);
50
+ Object.entries(a).map((i) => {
51
+ const [c, d] = i;
52
+ (t[c] ?? (t[c] = [])).push(d);
53
53
  });
54
54
  }
55
55
  });
56
56
  const r = t;
57
57
  return Object.entries(t).map((l) => {
58
- let [n, c] = l;
59
- c = c.reverse(), n == e.default && c.unshift("relative"), c.unshift(Se(n)), r[n] = Me(...c);
58
+ let [n, a] = l;
59
+ a = a.reverse(), n == e.default && a.unshift("relative"), a.unshift(Me(n)), r[n] = Ce(...a);
60
60
  }), r;
61
- }, K = (e, t) => (r) => Be({
61
+ }, _ = (e, t) => (r) => Be({
62
62
  classNameList: [r.className, t],
63
63
  default: e,
64
64
  states: r
65
- }), Pe = K(
65
+ }), $e = _(
66
66
  "button",
67
67
  ({
68
68
  variant: e,
@@ -70,12 +70,12 @@ const Be = (e) => {
70
70
  disabled: r,
71
71
  iconPosition: l,
72
72
  icon: n,
73
- isActive: c,
73
+ isActive: a,
74
74
  loading: i,
75
- shape: a,
75
+ shape: c,
76
76
  onToggle: d,
77
77
  size: o,
78
- allowShapeTransformation: h
78
+ allowShapeTransformation: m
79
79
  }) => ({
80
80
  button: f(
81
81
  " relative cursor-pointer group outline-none inline-block flex justify-center items-center ",
@@ -84,45 +84,45 @@ const Be = (e) => {
84
84
  o === "medium" && "text-title-medium px-6 py-4 gap-2",
85
85
  o === "large" && "text-headline-small px-12 py-8 gap-3",
86
86
  o === "xLarge" && "text-headline-large px-16 py-12 gap-4",
87
- a === "rounded" && {
87
+ c === "rounded" && {
88
88
  "rounded-[30px]": o === "xSmall" || o == "small",
89
89
  "rounded-[40px]": o === "medium",
90
90
  "rounded-[70px]": o === "large" || o == "xLarge"
91
91
  },
92
- (a === "squared" || h && c) && {
92
+ (c === "squared" || m && a) && {
93
93
  "rounded-[12px]": o === "xSmall" || o == "small",
94
94
  "rounded-[16px]": o === "medium",
95
95
  "rounded-[28px]": o === "large" || o == "xLarge"
96
96
  },
97
- h && !r && {
97
+ m && !r && {
98
98
  "active:rounded-[12px]": o === "xSmall" || o == "small",
99
99
  "active:rounded-[16px]": o === "medium",
100
100
  "active:rounded-[28px]": o === "large" || o == "xLarge"
101
101
  },
102
102
  e === "elevated" && {
103
103
  "shadow-1 hover:shadow-2": !r,
104
- "bg-surface-container-low text-primary": !r && !c,
105
- "bg-primary text-on-primary": !r && c,
104
+ "bg-surface-container-low text-primary": !r && !a,
105
+ "bg-primary text-on-primary": !r && a,
106
106
  "text-on-surface/[38%]": r
107
107
  },
108
108
  e === "filled" && {
109
109
  "hover:shadow-1": !r,
110
- "bg-surface-container text-on-surface-variant": !r && !c && d,
111
- "bg-primary text-on-primary": !r && (c && d || !d),
110
+ "bg-surface-container text-on-surface-variant": !r && !a && d,
111
+ "bg-primary text-on-primary": !r && (a && d || !d),
112
112
  "text-on-surface/[38%]": r
113
113
  },
114
114
  e === "tonal" && {
115
115
  "hover:shadow-1": !r,
116
- "bg-secondary-container text-on-secondary-container": !r && !c,
117
- "bg-secondary text-on-secondary": !r && c,
116
+ "bg-secondary-container text-on-secondary-container": !r && !a,
117
+ "bg-secondary text-on-secondary": !r && a,
118
118
  "text-on-surface/[0.38]": r
119
119
  },
120
120
  e === "outlined" && [
121
121
  " border",
122
122
  {
123
123
  "border-on-surface/[0.12] text-on-surface/[0.38]": r,
124
- "text-primary border-outline focus:border-primary": !r && !c,
125
- "text-inverse-on-surface bg-inverse-surface border-inverse-surface": !r && c
124
+ "text-primary border-outline focus:border-primary": !r && !a,
125
+ "text-inverse-on-surface bg-inverse-surface border-inverse-surface": !r && a
126
126
  }
127
127
  ],
128
128
  e === "text" && [
@@ -159,17 +159,17 @@ const Be = (e) => {
159
159
  "group-state-on-primary": !r && !d,
160
160
  "group-state-on-surface-variant": !r && d
161
161
  },
162
- a === "rounded" && {
162
+ c === "rounded" && {
163
163
  "rounded-[30px]": o === "xSmall" || o == "small",
164
164
  "rounded-[40px]": o === "medium",
165
165
  "rounded-[70px]": o === "large" || o == "xLarge"
166
166
  },
167
- (a === "squared" || h && c) && {
167
+ (c === "squared" || m && a) && {
168
168
  "rounded-[12px]": o === "xSmall" || o == "small",
169
169
  "rounded-[16px]": o === "medium",
170
170
  "rounded-[28px]": o === "large" || o == "xLarge"
171
171
  },
172
- h && !r && {
172
+ m && !r && {
173
173
  "group-active:rounded-[12px]": o === "xSmall" || o == "small",
174
174
  "group-active:rounded-[16px]": o === "medium",
175
175
  "group-active:rounded-[28px]": o === "large" || o == "xLarge"
@@ -195,7 +195,7 @@ const Be = (e) => {
195
195
  o === "xLarge" && "size-10"
196
196
  )
197
197
  })
198
- ), $e = K(
198
+ ), Pe = _(
199
199
  "card",
200
200
  ({ variant: e, isInteractive: t }) => ({
201
201
  card: f(
@@ -211,12 +211,12 @@ const Be = (e) => {
211
211
  }
212
212
  ])
213
213
  })
214
- ), We = K(
214
+ ), We = _(
215
215
  "carouselItem",
216
216
  () => ({
217
217
  carouselItem: f("rounded-[28px] overflow-hidden flex-none")
218
218
  })
219
- ), De = K(
219
+ ), De = _(
220
220
  "carousel",
221
221
  () => ({
222
222
  carousel: f(["w-full h-[400px]"]),
@@ -224,7 +224,7 @@ const Be = (e) => {
224
224
  "grid grid-flow-col h-full transition-transform ease-out w-fit"
225
225
  )
226
226
  })
227
- ), Ve = K(
227
+ ), Ve = _(
228
228
  "divider",
229
229
  ({ orientation: e }) => ({
230
230
  divider: f(
@@ -237,7 +237,7 @@ const Be = (e) => {
237
237
  }
238
238
  )
239
239
  })
240
- ), Ue = K(
240
+ ), je = _(
241
241
  "fab",
242
242
  ({ size: e, variant: t, isExtended: r }) => ({
243
243
  fab: f(
@@ -282,7 +282,7 @@ const Be = (e) => {
282
282
  t === "tertiary" && "text-on-tertiary-container"
283
283
  )
284
284
  })
285
- ), je = K(
285
+ ), Ue = _(
286
286
  "iconButton",
287
287
  ({
288
288
  variant: e,
@@ -290,9 +290,9 @@ const Be = (e) => {
290
290
  onToggle: r,
291
291
  isActive: l,
292
292
  size: n,
293
- width: c,
293
+ width: a,
294
294
  shape: i,
295
- allowShapeTransformation: a
295
+ allowShapeTransformation: c
296
296
  }) => ({
297
297
  iconButton: f(
298
298
  "rounded-full relative flex transition-all duration-300",
@@ -300,17 +300,17 @@ const Be = (e) => {
300
300
  {
301
301
  "cursor-default": t
302
302
  },
303
- (i === "rounded" || i === "squared" && r && !t && l && a) && {
303
+ (i === "rounded" || i === "squared" && r && !t && l && c) && {
304
304
  "rounded-[30px]": n === "xSmall" || n == "small",
305
305
  "rounded-[40px]": n === "medium",
306
306
  "rounded-[70px]": n === "large" || n == "xLarge"
307
307
  },
308
- (i === "squared" || i === "rounded" && r && !t && l && a) && {
308
+ (i === "squared" || i === "rounded" && r && !t && l && c) && {
309
309
  "rounded-[12px]": n === "xSmall" || n == "small",
310
310
  "rounded-[16px]": n === "medium",
311
311
  "rounded-[28px]": n === "large" || n == "xLarge"
312
312
  },
313
- a && !t && {
313
+ c && !t && {
314
314
  "group-active:rounded-[12px]": n === "xSmall" || n == "small",
315
315
  "group-active:rounded-[16px]": n === "medium",
316
316
  "group-active:rounded-[28px]": n === "large" || n == "xLarge"
@@ -345,17 +345,17 @@ const Be = (e) => {
345
345
  ),
346
346
  stateLayer: f(
347
347
  "absolute top-0 left-0 h-full w-full overflow-hidden",
348
- (i === "rounded" || i === "squared" && r && !t && l && a) && {
348
+ (i === "rounded" || i === "squared" && r && !t && l && c) && {
349
349
  "rounded-[30px]": n === "xSmall" || n == "small",
350
350
  "rounded-[40px]": n === "medium",
351
351
  "rounded-[70px]": n === "large" || n == "xLarge"
352
352
  },
353
- (i === "squared" || i === "rounded" && r && !t && l && a) && {
353
+ (i === "squared" || i === "rounded" && r && !t && l && c) && {
354
354
  "rounded-[12px]": n === "xSmall" || n == "small",
355
355
  "rounded-[16px]": n === "medium",
356
356
  "rounded-[28px]": n === "large" || n == "xLarge"
357
357
  },
358
- a && !t && {
358
+ c && !t && {
359
359
  "group-active:rounded-[12px]": n === "xSmall" || n == "small",
360
360
  "group-active:rounded-[16px]": n === "medium",
361
361
  "group-active:rounded-[28px]": n === "large" || n == "xLarge"
@@ -386,14 +386,14 @@ const Be = (e) => {
386
386
  { "size-6 p-4": n === "medium" },
387
387
  { "size-8 p-8": n === "large" },
388
388
  { "size-10 p-12": n === "xLarge" },
389
- c == "narrow" && [
389
+ a == "narrow" && [
390
390
  { "px-1": n === "xSmall" },
391
391
  { "px-1": n === "small" },
392
392
  { "px-3": n === "medium" },
393
393
  { "px-4": n === "large" },
394
394
  { "px-8": n === "xLarge" }
395
395
  ],
396
- c == "wide" && [
396
+ a == "wide" && [
397
397
  { "px-2.5": n === "xSmall" },
398
398
  { "px-3.5": n === "small" },
399
399
  { "px-6": n === "medium" },
@@ -421,7 +421,7 @@ const Be = (e) => {
421
421
  !!t && "text-on-surface/[0.38]"
422
422
  )
423
423
  })
424
- ), Fe = K(
424
+ ), Fe = _(
425
425
  "progressIndicator",
426
426
  ({ variant: e, isVisible: t }) => ({
427
427
  progressIndicator: f(
@@ -453,7 +453,34 @@ const Be = (e) => {
453
453
  }
454
454
  )
455
455
  })
456
- ), He = K(
456
+ ), Xe = _(
457
+ "slideSheet",
458
+ ({ variant: e, position: t }) => ({
459
+ slideSheet: f(
460
+ "bg-surface flex justify-between max-w-xs z-10",
461
+ {
462
+ "flex-row-reverse": t == "right",
463
+ "h-screen": e == "standard"
464
+ },
465
+ e == "modal" && [
466
+ "rounded-2xl fixed top-0 m-[1rem] h-[calc(100dvh-2rem)]",
467
+ {
468
+ "right-0": t == "right",
469
+ "left-0": t == "left"
470
+ }
471
+ ]
472
+ ),
473
+ container: f("w-full overflow-hidden", {}),
474
+ content: f("w-fit "),
475
+ header: f("p-4 flex items-center gap-2"),
476
+ title: f("text-on-surface-variant text-title-large"),
477
+ closeButton: f("ml-auto"),
478
+ divider: f({ hidden: e == "modal" }),
479
+ overlay: f(
480
+ "bg-[black]/[0.32] fixed top-0 left-0 w-screen h-screen"
481
+ )
482
+ })
483
+ ), He = _(
457
484
  "slider",
458
485
  ({ isChanging: e }) => ({
459
486
  slider: f([
@@ -476,7 +503,7 @@ const Be = (e) => {
476
503
  "h-1 w-1 absolute transform -translate-y-1/2 -translate-x-1/2 top-1/2 rounded-full"
477
504
  ])
478
505
  })
479
- ), Xe = K(
506
+ ), Oe = _(
480
507
  "snackbar",
481
508
  () => ({
482
509
  snackbar: f(" rounded bg-inverse-surface "),
@@ -486,7 +513,7 @@ const Be = (e) => {
486
513
  supportingText: f("text-body-medium text-inverse-on-surface "),
487
514
  icon: f(" ml-auto mr-0 text-inverse-on-surface block dark")
488
515
  })
489
- ), Oe = K(
516
+ ), qe = _(
490
517
  "switch",
491
518
  ({ isSelected: e, disabled: t, inactiveIcon: r }) => ({
492
519
  switch: f(
@@ -529,7 +556,7 @@ const Be = (e) => {
529
556
  { "text-on-surface/[0.38]": t }
530
557
  )
531
558
  })
532
- ), qe = K(
559
+ ), _e = _(
533
560
  "tab",
534
561
  ({ isSelected: e, icon: t, label: r, variant: l }) => ({
535
562
  tab: f(
@@ -588,7 +615,7 @@ const Be = (e) => {
588
615
  l === "secondary" && "h-0.5"
589
616
  )
590
617
  })
591
- ), _e = K(
618
+ ), Ke = _(
592
619
  "tabs",
593
620
  ({ scrollable: e }) => ({
594
621
  tabs: f(
@@ -597,7 +624,7 @@ const Be = (e) => {
597
624
  { "overflow-x-auto": e }
598
625
  )
599
626
  })
600
- ), Ke = K(
627
+ ), Ge = _(
601
628
  "textField",
602
629
  ({
603
630
  disabled: e,
@@ -605,9 +632,9 @@ const Be = (e) => {
605
632
  trailingIcon: r,
606
633
  variant: l,
607
634
  errorText: n,
608
- isFocused: c,
635
+ isFocused: a,
609
636
  value: i,
610
- suffix: a,
637
+ suffix: c,
611
638
  textLine: d
612
639
  }) => ({
613
640
  textField: f({
@@ -617,9 +644,9 @@ const Be = (e) => {
617
644
  "group transition-border duration-200 relative flex items-center ",
618
645
  { "h-14": d == "singleLine" },
619
646
  {
620
- "border-on-surface-variant": !(n != null && n.length) && !c && l == "filled",
621
- "border-outline": !(n != null && n.length) && !c && l == "outlined",
622
- "border-primary": !(n != null && n.length) && c,
647
+ "border-on-surface-variant": !(n != null && n.length) && !a && l == "filled",
648
+ "border-outline": !(n != null && n.length) && !a && l == "outlined",
649
+ "border-primary": !(n != null && n.length) && a,
623
650
  "border-error": !!(n != null && n.length)
624
651
  },
625
652
  { "bg-on-surface/[0.04]": e },
@@ -630,7 +657,7 @@ const Be = (e) => {
630
657
  l == "outlined" && [
631
658
  "border rounded box-border",
632
659
  {
633
- "border-[3px]": c
660
+ "border-[3px]": a
634
661
  }
635
662
  ]
636
663
  ),
@@ -641,7 +668,7 @@ const Be = (e) => {
641
668
  },
642
669
  {
643
670
  "group-state-on-surface": !e,
644
- "focus-state-on-surface": c
671
+ "focus-state-on-surface": a
645
672
  }
646
673
  ),
647
674
  label: f(
@@ -649,7 +676,7 @@ const Be = (e) => {
649
676
  { "text-on-surface-variant": !e && !(n != null && n.length) },
650
677
  { "text-on-surface": e },
651
678
  { "text-error": !!(n != null && n.length) },
652
- { "text-primary": !(n != null && n.length) && c }
679
+ { "text-primary": !(n != null && n.length) && a }
653
680
  ),
654
681
  input: f(
655
682
  "w-full resize-none px-4 text-body-large bg-[inherit] outline-none autofill:transition-colors autofill:duration-[5000000ms]",
@@ -658,7 +685,7 @@ const Be = (e) => {
658
685
  "placeholder:text-on-surface text-on-surface": e
659
686
  },
660
687
  {
661
- "pr-0": !!a
688
+ "pr-0": !!c
662
689
  },
663
690
  l == "filled" && " pb-2 pt-6",
664
691
  l == "outlined" && "py-4 relative z-10"
@@ -669,14 +696,14 @@ const Be = (e) => {
669
696
  "h-[2px] transition-all duration-300",
670
697
  { "bg-primary": !(n != null && n.length) },
671
698
  { "bg-error": !!(n != null && n.length) },
672
- { "!w-full": c }
699
+ { "!w-full": a }
673
700
  ]
674
701
  ),
675
702
  supportingText: f(
676
703
  " text-body-small px-4 pt-1",
677
704
  { "text-on-surface-variant": !e && !(n != null && n.length) },
678
705
  { "text-on-surface": e },
679
- { "!w-full": c },
706
+ { "!w-full": a },
680
707
  { "text-error": !!(n != null && n.length) }
681
708
  ),
682
709
  leadingIcon: f([
@@ -692,7 +719,7 @@ const Be = (e) => {
692
719
  l == "outlined" && "py-4 relative z-10"
693
720
  )
694
721
  })
695
- ), Ge = K(
722
+ ), Ye = _(
696
723
  "toolTip",
697
724
  ({ position: e, variant: t }) => ({
698
725
  toolTip: f(
@@ -764,7 +791,7 @@ const Be = (e) => {
764
791
  const l = e;
765
792
  if (!(l != null && l.prefix))
766
793
  throw new Error(`Invalid icon type: ${typeof e}`);
767
- const { icon: n } = l, [c, i, , , a] = n || [], d = (o) => {
794
+ const { icon: n } = l, [a, i, , , c] = n || [], d = (o) => {
768
795
  switch (o.length) {
769
796
  case 2:
770
797
  return {
@@ -783,35 +810,35 @@ const Be = (e) => {
783
810
  className: f("size-5 box-content", r),
784
811
  style: { ...d(t) },
785
812
  xmlns: "http://www.w3.org/2000/svg",
786
- viewBox: `0 0 ${c} ${i}`,
813
+ viewBox: `0 0 ${a} ${i}`,
787
814
  role: "img",
788
815
  "aria-hidden": "true",
789
- children: typeof a == "string" ? /* @__PURE__ */ u("path", { className: "fill-current", d: a }) : a.map((o, h) => /* @__PURE__ */ u("path", { d: o }, h))
816
+ children: typeof c == "string" ? /* @__PURE__ */ u("path", { className: "fill-current", d: c }) : c.map((o, m) => /* @__PURE__ */ u("path", { d: o }, m))
790
817
  }
791
818
  );
792
- }, Ye = ({
819
+ }, Ze = ({
793
820
  variant: e = "linear-determinate",
794
821
  value: t = 0,
795
822
  transitionDuration: r = 1e3,
796
823
  className: l,
797
824
  ...n
798
825
  }) => {
799
- const [c, i] = R(t), [a] = R(1.5);
800
- P(() => {
826
+ const [a, i] = R(t), [c] = R(1.5);
827
+ $(() => {
801
828
  t > 100 && (t = 100), t < 0 && (t = 0), i(t);
802
829
  }, [t]);
803
- const [d, o] = R(!0), h = () => d ? a : a * 0.5;
804
- P(() => {
805
- if ((e === "circular-indeterminate" || e === "linear-indeterminate") && c !== 100) {
830
+ const [d, o] = R(!0), m = () => d ? c : c * 0.5;
831
+ $(() => {
832
+ if ((e === "circular-indeterminate" || e === "linear-indeterminate") && a !== 100) {
806
833
  const v = setInterval(() => {
807
834
  i(d ? 10 : 90), o(!d);
808
- }, h() * 1e3);
835
+ }, m() * 1e3);
809
836
  return () => clearInterval(v);
810
837
  }
811
- }, [e, d, c]);
812
- const [p, s] = R(!1);
813
- P(() => {
814
- if (c >= 100) {
838
+ }, [e, d, a]);
839
+ const [h, s] = R(!1);
840
+ $(() => {
841
+ if (a >= 100) {
815
842
  const v = setTimeout(() => {
816
843
  s(!1);
817
844
  }, r);
@@ -820,22 +847,22 @@ const Be = (e) => {
820
847
  };
821
848
  } else
822
849
  s(!0);
823
- }, [c, r]);
850
+ }, [a, r]);
824
851
  const y = Fe({
825
852
  className: l,
826
853
  variant: e,
827
854
  value: t,
828
855
  transitionDuration: r,
829
- isVisible: p
856
+ isVisible: h
830
857
  });
831
- return /* @__PURE__ */ U(re, { children: [
832
- (e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ U("div", { className: y.progressIndicator, ...n, children: [
858
+ return /* @__PURE__ */ D(te, { children: [
859
+ (e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ D("div", { className: y.progressIndicator, ...n, children: [
833
860
  /* @__PURE__ */ u(
834
861
  "div",
835
862
  {
836
863
  style: {
837
- width: `${c}%`,
838
- transition: `width ${r}ms ease-in-out ${c == 100 ? ", max-height 200ms 0.5s ease-in-out" : ""}`
864
+ width: `${a}%`,
865
+ transition: `width ${r}ms ease-in-out ${a == 100 ? ", max-height 200ms 0.5s ease-in-out" : ""}`
839
866
  },
840
867
  className: y.track
841
868
  }
@@ -844,8 +871,8 @@ const Be = (e) => {
844
871
  "div",
845
872
  {
846
873
  style: {
847
- marginLeft: c != 100 ? "6px" : "0px",
848
- transition: `width ${r}ms ease-in-out ${c == 100 ? `, max-height 200ms 0.5s ease-in-out, margin-left ${r}ms ${r / 1.5}ms` : ""}`
874
+ marginLeft: a != 100 ? "6px" : "0px",
875
+ transition: `width ${r}ms ease-in-out ${a == 100 ? `, max-height 200ms 0.5s ease-in-out, margin-left ${r}ms ${r / 1.5}ms` : ""}`
849
876
  },
850
877
  className: y.activeIndicator
851
878
  }
@@ -862,7 +889,7 @@ const Be = (e) => {
862
889
  )
863
890
  ] }),
864
891
  (e === "circular-determinate" || e == "circular-indeterminate") && /* @__PURE__ */ u(
865
- j.svg,
892
+ U.svg,
866
893
  {
867
894
  width: "48",
868
895
  height: "48",
@@ -871,17 +898,17 @@ const Be = (e) => {
871
898
  animate: { rotate: 270 },
872
899
  transition: {
873
900
  repeat: 1 / 0,
874
- duration: h(),
901
+ duration: m(),
875
902
  ease: "linear"
876
903
  },
877
904
  className: y.progressIndicator,
878
905
  ...n,
879
906
  children: /* @__PURE__ */ u(
880
- j.circle,
907
+ U.circle,
881
908
  {
882
909
  cx: "50%",
883
910
  cy: "50%",
884
- r: p ? "calc(50% - 2px)" : "50%",
911
+ r: h ? "calc(50% - 2px)" : "50%",
885
912
  style: {
886
913
  strokeLinecap: "round"
887
914
  },
@@ -900,7 +927,7 @@ const Be = (e) => {
900
927
  pathLength: {
901
928
  type: "tween",
902
929
  ease: "linear",
903
- duration: h(),
930
+ duration: m(),
904
931
  bounce: 0
905
932
  }
906
933
  }
@@ -931,14 +958,14 @@ const Be = (e) => {
931
958
  borderRadius: { duration: 0.3, delay: 0.3 }
932
959
  }
933
960
  }
934
- }, [l, n] = R(!0), [c, i] = R(!1), [a, d] = R({ x: 0, y: 0 });
935
- P(() => {
936
- c && (n(!0), n(!1));
937
- }, [c]), P(() => {
961
+ }, [l, n] = R(!0), [a, i] = R(!1), [c, d] = R({ x: 0, y: 0 });
962
+ $(() => {
963
+ a && (n(!0), n(!1));
964
+ }, [a]), $(() => {
938
965
  const s = t == null ? void 0 : t.current;
939
966
  if (s)
940
- return s.addEventListener("mousedown", o), s.addEventListener("mouseup", p), s.addEventListener("mouseleave", h), () => {
941
- s.removeEventListener("mousedown", o), s.removeEventListener("mouseup", p), s.removeEventListener("mouseleave", h);
967
+ return s.addEventListener("mousedown", o), s.addEventListener("mouseup", h), s.addEventListener("mouseleave", m), () => {
968
+ s.removeEventListener("mousedown", o), s.removeEventListener("mouseup", h), s.removeEventListener("mouseleave", m);
942
969
  };
943
970
  }, [t]);
944
971
  const o = (s) => {
@@ -947,20 +974,20 @@ const Be = (e) => {
947
974
  x: (s.clientX - v.left) / y.clientWidth * 100,
948
975
  y: (s.clientY - v.top) / y.clientHeight * 100
949
976
  });
950
- }, h = (s) => {
977
+ }, m = (s) => {
951
978
  i(!1);
952
- }, p = (s) => {
979
+ }, h = (s) => {
953
980
  i(!1);
954
981
  };
955
- return /* @__PURE__ */ u(z, { mode: "wait", children: (c || !c && !l) && /* @__PURE__ */ u(
956
- j.div,
982
+ return /* @__PURE__ */ u(A, { mode: "wait", children: (a || !a && !l) && /* @__PURE__ */ u(
983
+ U.div,
957
984
  {
958
985
  style: {
959
986
  position: "absolute",
960
987
  width: "100%",
961
988
  height: "100%",
962
- top: a.y + "%",
963
- left: a.x + "%",
989
+ top: c.y + "%",
990
+ left: c.x + "%",
964
991
  background: `color-mix(in srgb, var(--color-${e}) 12%, transparent)`,
965
992
  pointerEvents: "none"
966
993
  },
@@ -972,7 +999,7 @@ const Be = (e) => {
972
999
  className: "transform -translate-x-1/2 -translate-y-1/2"
973
1000
  }
974
1001
  ) });
975
- }, Ze = K(
1002
+ }, Je = _(
976
1003
  "customScroll",
977
1004
  ({ orientation: e, draggable: t, isDragging: r }) => ({
978
1005
  customScroll: f(
@@ -1000,127 +1027,127 @@ const Be = (e) => {
1000
1027
  "top-0 w-full": e === "vertical"
1001
1028
  })
1002
1029
  })
1003
- ), he = ({
1030
+ ), ge = ({
1004
1031
  children: e,
1005
1032
  orientation: t = "vertical",
1006
1033
  scrollSize: r,
1007
1034
  onScroll: l,
1008
1035
  className: n,
1009
- draggable: c = !1,
1036
+ draggable: a = !1,
1010
1037
  throttleDuration: i = 75
1011
1038
  }) => {
1012
1039
  var W, F;
1013
- const a = V(null), d = V(null), [o, h] = R({
1040
+ const c = j(null), d = j(null), [o, m] = R({
1014
1041
  width: null,
1015
1042
  height: null
1016
1043
  });
1017
- P(() => {
1018
- if (!a.current) return;
1019
- const C = new ResizeObserver((H) => {
1020
- for (const X of H)
1021
- X.target === a.current && h({
1022
- width: X.contentRect.width,
1023
- height: X.contentRect.height
1044
+ $(() => {
1045
+ if (!c.current) return;
1046
+ const S = new ResizeObserver((X) => {
1047
+ for (const H of X)
1048
+ H.target === c.current && m({
1049
+ width: H.contentRect.width,
1050
+ height: H.contentRect.height
1024
1051
  // On observe aussi la hauteur maintenant
1025
1052
  });
1026
1053
  });
1027
- return C.observe(a.current), () => {
1028
- C.disconnect();
1054
+ return S.observe(c.current), () => {
1055
+ S.disconnect();
1029
1056
  };
1030
- }, [a]);
1031
- const p = V(null), s = V(null), y = () => {
1032
- const C = d.current;
1033
- return C ? {
1034
- width: r ?? C.scrollWidth,
1035
- height: r ?? C.scrollHeight
1057
+ }, [c]);
1058
+ const h = j(null), s = j(null), y = () => {
1059
+ const S = d.current;
1060
+ return S ? {
1061
+ width: r ?? S.scrollWidth,
1062
+ height: r ?? S.scrollHeight
1036
1063
  } : null;
1037
1064
  }, v = () => {
1038
- const C = a.current;
1039
- return C ? {
1040
- width: C.clientWidth,
1041
- height: C.clientHeight
1065
+ const S = c.current;
1066
+ return S ? {
1067
+ width: S.clientWidth,
1068
+ height: S.clientHeight
1042
1069
  // Correction ici pour retourner la bonne hauteur
1043
1070
  } : null;
1044
- }, { scrollYProgress: N, scrollXProgress: L } = Ne({
1045
- container: a
1046
- }), I = V(null);
1047
- I.current || (I.current = Ie(
1071
+ }, { scrollYProgress: L, scrollXProgress: N } = Ie({
1072
+ container: c
1073
+ }), I = j(null);
1074
+ I.current || (I.current = Ee(
1048
1075
  i,
1049
- (C, H) => {
1050
- !s.current || !p.current || l && (t === "horizontal" && H === "x" && l({
1051
- scrollProgress: C,
1052
- scroll: C * p.current.width,
1053
- scrollTotal: p.current.width,
1076
+ (S, X) => {
1077
+ !s.current || !h.current || l && (t === "horizontal" && X === "x" && l({
1078
+ scrollProgress: S,
1079
+ scroll: S * h.current.width,
1080
+ scrollTotal: h.current.width,
1054
1081
  scrollVisible: s.current.width
1055
- }), t === "vertical" && H === "y" && l({
1056
- scrollProgress: C,
1057
- scroll: C * p.current.height,
1058
- scrollTotal: p.current.height,
1082
+ }), t === "vertical" && X === "y" && l({
1083
+ scrollProgress: S,
1084
+ scroll: S * h.current.height,
1085
+ scrollTotal: h.current.height,
1059
1086
  scrollVisible: s.current.height
1060
1087
  }));
1061
1088
  }
1062
1089
  ));
1063
- const w = (C, H) => {
1064
- I.current && I.current(C, H);
1090
+ const w = (S, X) => {
1091
+ I.current && I.current(S, X);
1065
1092
  };
1066
- P(() => {
1067
- o.width && w(L.get(), "x"), o.height && w(N.get(), "y");
1068
- }, [o]), se(L, "change", (C) => {
1069
- w(C, "x");
1070
- }), se(N, "change", (C) => {
1071
- w(C, "y");
1093
+ $(() => {
1094
+ o.width && w(N.get(), "x"), o.height && w(L.get(), "y");
1095
+ }, [o]), se(N, "change", (S) => {
1096
+ w(S, "x");
1097
+ }), se(L, "change", (S) => {
1098
+ w(S, "y");
1072
1099
  });
1073
1100
  const [B, b] = R(!1);
1074
- fe(() => {
1075
- B || !s.current || !p.current || !l || (l({
1101
+ pe(() => {
1102
+ B || !s.current || !h.current || !l || (l({
1076
1103
  scrollProgress: 0,
1077
1104
  scroll: 0,
1078
- scrollTotal: t == "vertical" ? p.current.height : p.current.width,
1105
+ scrollTotal: t == "vertical" ? h.current.height : h.current.width,
1079
1106
  scrollVisible: t == "vertical" ? s.current.height : s.current.width
1080
1107
  }), b(!0));
1081
- }, [s, p, l]), p.current = y(), s.current = v();
1082
- const [E, M] = R(!1), D = Ze({
1108
+ }, [s, h, l]), h.current = y(), s.current = v();
1109
+ const [E, C] = R(!1), V = Je({
1083
1110
  isDragging: E,
1084
1111
  children: e,
1085
1112
  className: n,
1086
1113
  onScroll: l,
1087
1114
  orientation: t,
1088
1115
  scrollSize: r,
1089
- draggable: c,
1116
+ draggable: a,
1090
1117
  throttleDuration: i
1091
- }), [$, k] = R(0), [m, S] = R(0), O = (C) => {
1092
- if (!c) return;
1093
- const H = a.current;
1094
- if (!H || $ == null) return;
1095
- const J = (C.pageX - H.offsetLeft - $) * 1.5;
1096
- H.scrollLeft = m - J;
1097
- }, _ = (C) => {
1098
- const H = a.current;
1099
- H && (M(!0), k(C.pageX - H.offsetLeft), S(H.scrollLeft));
1100
- }, Z = (C) => {
1101
- E && (C.preventDefault(), O(C));
1118
+ }), [P, k] = R(0), [p, M] = R(0), O = (S) => {
1119
+ if (!a) return;
1120
+ const X = c.current;
1121
+ if (!X || P == null) return;
1122
+ const J = (S.pageX - X.offsetLeft - P) * 1.5;
1123
+ X.scrollLeft = p - J;
1124
+ }, K = (S) => {
1125
+ const X = c.current;
1126
+ X && (C(!0), k(S.pageX - X.offsetLeft), M(X.scrollLeft));
1127
+ }, Z = (S) => {
1128
+ E && (S.preventDefault(), O(S));
1102
1129
  }, q = () => {
1103
- M(!1);
1104
- }, A = () => {
1105
- M(!1);
1106
- }, g = (C) => {
1107
- C.preventDefault();
1108
- }, x = V(null);
1109
- return P(() => () => {
1130
+ C(!1);
1131
+ }, z = () => {
1132
+ C(!1);
1133
+ }, g = (S) => {
1134
+ S.preventDefault();
1135
+ }, x = j(null);
1136
+ return $(() => () => {
1110
1137
  x.current && clearTimeout(x.current);
1111
- }, []), /* @__PURE__ */ U(
1138
+ }, []), /* @__PURE__ */ D(
1112
1139
  "div",
1113
1140
  {
1114
- className: D.customScroll,
1115
- ref: a,
1116
- onMouseDown: _,
1141
+ className: V.customScroll,
1142
+ ref: c,
1143
+ onMouseDown: K,
1117
1144
  onMouseMove: Z,
1118
1145
  onMouseUp: q,
1119
- onMouseLeave: A,
1146
+ onMouseLeave: z,
1120
1147
  onDragStart: g,
1121
- onScroll: (C) => {
1122
- E || (k(null), M(!0), x.current && clearTimeout(x.current), x.current = setTimeout(() => {
1123
- M(!1);
1148
+ onScroll: (S) => {
1149
+ E || (k(null), C(!0), x.current && clearTimeout(x.current), x.current = setTimeout(() => {
1150
+ C(!1);
1124
1151
  }, 1e3));
1125
1152
  },
1126
1153
  children: [
@@ -1129,26 +1156,26 @@ const Be = (e) => {
1129
1156
  {
1130
1157
  ref: d,
1131
1158
  style: t === "vertical" ? { height: ((W = s == null ? void 0 : s.current) == null ? void 0 : W.height) ?? "100%" } : { width: ((F = s == null ? void 0 : s.current) == null ? void 0 : F.width) ?? "100%" },
1132
- className: D.track,
1159
+ className: V.track,
1133
1160
  children: e
1134
1161
  }
1135
1162
  ),
1136
- s.current && p.current && /* @__PURE__ */ U(re, { children: [
1137
- t === "vertical" && p.current.height > s.current.height && /* @__PURE__ */ u(
1138
- j.div,
1163
+ s.current && h.current && /* @__PURE__ */ D(te, { children: [
1164
+ t === "vertical" && h.current.height > s.current.height && /* @__PURE__ */ u(
1165
+ U.div,
1139
1166
  {
1140
1167
  className: "flex-none",
1141
1168
  style: {
1142
- height: p.current.height - s.current.height
1169
+ height: h.current.height - s.current.height
1143
1170
  }
1144
1171
  }
1145
1172
  ),
1146
- t === "horizontal" && p.current.width > s.current.width && /* @__PURE__ */ u(
1147
- j.div,
1173
+ t === "horizontal" && h.current.width > s.current.width && /* @__PURE__ */ u(
1174
+ U.div,
1148
1175
  {
1149
1176
  className: "flex-none",
1150
1177
  style: {
1151
- width: p.current.width - s.current.width
1178
+ width: h.current.width - s.current.width
1152
1179
  }
1153
1180
  }
1154
1181
  )
@@ -1156,38 +1183,38 @@ const Be = (e) => {
1156
1183
  ]
1157
1184
  }
1158
1185
  );
1159
- }, bt = ({
1186
+ }, Lt = ({
1160
1187
  children: e,
1161
1188
  transition: t = ".5s",
1162
1189
  orientation: r = "vertical",
1163
1190
  throttleDuration: l = 25,
1164
1191
  ...n
1165
1192
  }) => {
1166
- const [c, i] = R(null), a = me((c == null ? void 0 : c.scrollProgress) ?? 0), d = oe(
1167
- a,
1193
+ const [a, i] = R(null), c = he((a == null ? void 0 : a.scrollProgress) ?? 0), d = oe(
1194
+ c,
1168
1195
  [0, 1],
1169
- [0, 1 - ((c == null ? void 0 : c.scrollVisible) ?? 0) / ((c == null ? void 0 : c.scrollTotal) ?? 0)]
1196
+ [0, 1 - ((a == null ? void 0 : a.scrollVisible) ?? 0) / ((a == null ? void 0 : a.scrollTotal) ?? 0)]
1170
1197
  ), o = oe(
1171
1198
  d,
1172
1199
  (s) => `${-s * 100}%`
1173
- ), h = (s) => {
1174
- a.set(s.scrollProgress), s.scrollTotal > 0 && i(s);
1175
- }, p = V(null);
1200
+ ), m = (s) => {
1201
+ c.set(s.scrollProgress), s.scrollTotal > 0 && i(s);
1202
+ }, h = j(null);
1176
1203
  return se(o, "change", (s) => {
1177
1204
  const y = performance.now();
1178
- if (p.current !== null) {
1179
- const v = y - p.current;
1205
+ if (h.current !== null) {
1206
+ const v = y - h.current;
1180
1207
  console.log(`Delta temps : ${v} ms`);
1181
1208
  }
1182
- p.current = y, console.log(s);
1209
+ h.current = y, console.log(s);
1183
1210
  }), /* @__PURE__ */ u(
1184
- he,
1211
+ ge,
1185
1212
  {
1186
- onScroll: h,
1213
+ onScroll: m,
1187
1214
  throttleDuration: l,
1188
1215
  ...n,
1189
1216
  children: /* @__PURE__ */ u(
1190
- j.div,
1217
+ U.div,
1191
1218
  {
1192
1219
  className: f("transition-transform ease-out", {
1193
1220
  "w-fit h-full": r === "horizontal",
@@ -1202,94 +1229,95 @@ const Be = (e) => {
1202
1229
  )
1203
1230
  }
1204
1231
  );
1205
- }, Je = ({
1232
+ }, Qe = ({
1206
1233
  targetRef: e,
1207
1234
  children: t
1208
1235
  }) => {
1209
- const [r, l] = R(null), n = V(null), c = () => {
1236
+ const [r, l] = R(null), n = j(null), a = () => {
1210
1237
  const i = e.current;
1211
1238
  if (!i) return;
1212
- const a = i.getBoundingClientRect();
1239
+ const c = i.getBoundingClientRect();
1213
1240
  l({
1214
1241
  position: "fixed",
1215
- top: a.top,
1216
- left: a.left,
1217
- width: a.width,
1218
- height: a.height,
1242
+ top: c.top,
1243
+ left: c.left,
1244
+ width: c.width,
1245
+ height: c.height,
1219
1246
  pointerEvents: "none",
1220
1247
  // si le wrapper ne doit pas capter les events
1221
1248
  zIndex: 999
1222
1249
  // personnalise si besoin
1223
1250
  });
1224
1251
  };
1225
- return P(() => {
1252
+ return $(() => {
1226
1253
  const i = e.current;
1227
1254
  if (i)
1228
- return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), n.current = new ResizeObserver(c), n.current.observe(i), () => {
1229
- var a;
1230
- window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), (a = n.current) == null || a.disconnect();
1255
+ return a(), window.addEventListener("scroll", a, !0), window.addEventListener("resize", a), n.current = new ResizeObserver(a), n.current.observe(i), () => {
1256
+ var c;
1257
+ window.removeEventListener("scroll", a, !0), window.removeEventListener("resize", a), (c = n.current) == null || c.disconnect();
1231
1258
  };
1232
- }, [e]), r ? Ee(/* @__PURE__ */ u("div", { style: r, children: t }), document.body) : null;
1259
+ }, [e]), r ? ye(/* @__PURE__ */ u("div", { style: r, children: t }), document.body) : null;
1233
1260
  };
1234
- function Qe(e) {
1261
+ function Ae(e) {
1235
1262
  return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e);
1236
1263
  }
1237
- const Lt = ({
1264
+ const It = ({
1238
1265
  config: e,
1239
- throttleDelay: t = 100
1266
+ throttleDelay: t = 100,
1240
1267
  // Délai par défaut de 300ms
1268
+ onLoad: r
1241
1269
  }) => {
1242
- const [r, l] = R(null), [n, c] = R(null), i = V(null), a = V(e.sourceColor), d = V(!0);
1243
- P(() => {
1244
- if (d.current) {
1245
- d.current = !1, a.current = e.sourceColor, o(e.sourceColor);
1270
+ const [l, n] = R(null), a = j(null), i = j(e.sourceColor), c = j(!0);
1271
+ $(() => {
1272
+ if (c.current) {
1273
+ c.current = !1, i.current = e.sourceColor, d(e.sourceColor);
1246
1274
  return;
1247
1275
  }
1248
- if (e.sourceColor !== a.current)
1249
- return i.current && clearTimeout(i.current), i.current = setTimeout(() => {
1250
- a.current = e.sourceColor, o(e.sourceColor), i.current = null;
1276
+ if (e.sourceColor !== i.current)
1277
+ return a.current && clearTimeout(a.current), a.current = setTimeout(async () => {
1278
+ i.current = e.sourceColor, await d(e.sourceColor), a.current = null;
1251
1279
  }, t), () => {
1252
- i.current && (clearTimeout(i.current), i.current = null);
1280
+ a.current && (clearTimeout(a.current), a.current = null);
1253
1281
  };
1254
1282
  }, [e.sourceColor, t]);
1255
- const o = async (h) => {
1256
- if (!Qe(h)) {
1257
- l("Invalid hex color");
1258
- return;
1259
- }
1260
- l(null);
1283
+ const d = async (o) => {
1284
+ if (!Ae(o))
1285
+ throw new Error("Invalid hex color");
1261
1286
  try {
1262
- const p = await ke(e);
1263
- p.themes.update({
1264
- sourceColorHex: h
1265
- }), await p.load();
1266
- const s = p.plugins.getPlugin(Ce).getInstance().outputCss;
1267
- s && c(s);
1268
- } catch (p) {
1269
- l(p instanceof Error ? p.message : "Theme loading failed");
1287
+ const m = await ke({
1288
+ ...e,
1289
+ sourceColor: o
1290
+ });
1291
+ r == null || r(m);
1292
+ const h = m.plugins.getPlugin(Se).getInstance().outputCss;
1293
+ h && n(h);
1294
+ } catch (m) {
1295
+ throw new Error(
1296
+ m instanceof Error ? m.message : "Theme loading failed"
1297
+ );
1270
1298
  }
1271
1299
  };
1272
- return P(() => () => {
1273
- i.current && clearTimeout(i.current);
1274
- }, []), r ? null : n ? /* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: n } }) : (console.error("ThemeProvider null"), null);
1275
- }, Ae = ({
1300
+ return $(() => () => {
1301
+ a.current && clearTimeout(a.current);
1302
+ }, []), l ? /* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: l } }) : null;
1303
+ }, ze = ({
1276
1304
  variant: e = "filled",
1277
1305
  disabled: t = !1,
1278
1306
  icon: r,
1279
1307
  href: l,
1280
1308
  label: n,
1281
- disableTextMargins: c,
1309
+ disableTextMargins: a,
1282
1310
  className: i,
1283
- iconPosition: a = "left",
1311
+ iconPosition: c = "left",
1284
1312
  loading: d = !1,
1285
1313
  shape: o = "rounded",
1286
- onClick: h,
1287
- onToggle: p,
1314
+ onClick: m,
1315
+ onToggle: h,
1288
1316
  activated: s,
1289
1317
  ref: y,
1290
1318
  size: v = "medium",
1291
- allowShapeTransformation: N = !0,
1292
- transition: L,
1319
+ allowShapeTransformation: L = !0,
1320
+ transition: N,
1293
1321
  children: I,
1294
1322
  ...w
1295
1323
  }) => {
@@ -1297,71 +1325,71 @@ const Lt = ({
1297
1325
  throw new Error(
1298
1326
  "Button component requires either a label prop or children content"
1299
1327
  );
1300
- const B = l ? "a" : "button", b = V(null), E = y || b, [M, D] = Y.useState(s);
1301
- P(() => {
1302
- D(s);
1303
- }, [s]), L = { duration: 0.3, ...L };
1304
- let $;
1305
- p ? p && ($ = (S) => {
1306
- t && S.preventDefault();
1307
- const O = !M;
1308
- D(O), p(O);
1309
- }) : $ = (S) => {
1310
- t && S.preventDefault(), h && h(S);
1328
+ const B = l ? "a" : "button", b = j(null), E = y || b, [C, V] = Y.useState(s);
1329
+ $(() => {
1330
+ V(s);
1331
+ }, [s]), N = { duration: 0.3, ...N };
1332
+ let P;
1333
+ h ? h && (P = (M) => {
1334
+ t && M.preventDefault();
1335
+ const O = !C;
1336
+ V(O), h(O);
1337
+ }) : P = (M) => {
1338
+ t && M.preventDefault(), m && m(M);
1311
1339
  };
1312
- const k = Pe({
1313
- allowShapeTransformation: N,
1340
+ const k = $e({
1341
+ allowShapeTransformation: L,
1314
1342
  size: v,
1315
- disableTextMargins: c,
1343
+ disableTextMargins: a,
1316
1344
  shape: o,
1317
1345
  href: l,
1318
1346
  disabled: t,
1319
1347
  icon: r,
1320
- iconPosition: a,
1348
+ iconPosition: c,
1321
1349
  loading: d,
1322
1350
  variant: e,
1323
- transition: L,
1351
+ transition: N,
1324
1352
  className: i,
1325
- isActive: M ?? !1,
1326
- onToggle: p,
1327
- activated: M,
1353
+ isActive: C ?? !1,
1354
+ onToggle: h,
1355
+ activated: C,
1328
1356
  label: n,
1329
1357
  children: n
1330
- }), m = r ? /* @__PURE__ */ u(Q, { icon: r, className: k.icon }) : /* @__PURE__ */ u(re, {});
1331
- return /* @__PURE__ */ U(
1358
+ }), p = r ? /* @__PURE__ */ u(Q, { icon: r, className: k.icon }) : /* @__PURE__ */ u(te, {});
1359
+ return /* @__PURE__ */ D(
1332
1360
  B,
1333
1361
  {
1334
1362
  ref: E,
1335
1363
  href: l,
1336
1364
  className: k.button,
1337
1365
  ...w,
1338
- onClick: $,
1366
+ onClick: P,
1339
1367
  disabled: t,
1340
- "aria-pressed": p ? M : void 0,
1341
- style: { transition: L.duration + "s" },
1368
+ "aria-pressed": h ? C : void 0,
1369
+ style: { transition: N.duration + "s" },
1342
1370
  children: [
1343
1371
  /* @__PURE__ */ u("div", { className: k.touchTarget }),
1344
1372
  /* @__PURE__ */ u(
1345
1373
  "div",
1346
1374
  {
1347
1375
  className: k.stateLayer,
1348
- style: { transition: L.duration + "s" },
1376
+ style: { transition: N.duration + "s" },
1349
1377
  children: !t && /* @__PURE__ */ u(
1350
1378
  ne,
1351
1379
  {
1352
- colorName: e === "filled" && p && "on-surface-variant" || e === "filled" && !p && "on-primary" || e === "elevated" && "primary" || e === "tonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
1380
+ colorName: e === "filled" && h && "on-surface-variant" || e === "filled" && !h && "on-primary" || e === "elevated" && "primary" || e === "tonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
1353
1381
  triggerRef: E
1354
1382
  }
1355
1383
  )
1356
1384
  }
1357
1385
  ),
1358
- a === "left" && m,
1386
+ c === "left" && p,
1359
1387
  d && /* @__PURE__ */ u(
1360
1388
  "div",
1361
1389
  {
1362
1390
  className: "!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
1363
1391
  children: /* @__PURE__ */ u(
1364
- Ye,
1392
+ Ze,
1365
1393
  {
1366
1394
  className: () => ({
1367
1395
  progressIndicator: "h-6 w-6",
@@ -1394,162 +1422,162 @@ const Lt = ({
1394
1422
  }
1395
1423
  ),
1396
1424
  /* @__PURE__ */ u("span", { className: k.label, children: n }),
1397
- a === "right" && m
1425
+ c === "right" && p
1398
1426
  ]
1399
1427
  }
1400
1428
  );
1401
- }, Nt = ({
1429
+ }, Et = ({
1402
1430
  variant: e = "outlined",
1403
1431
  className: t,
1404
1432
  children: r,
1405
1433
  isInteractive: l = !1,
1406
1434
  ref: n,
1407
- ...c
1435
+ ...a
1408
1436
  }) => {
1409
- const i = $e({ className: t, isInteractive: l, variant: e, children: r }), a = V(null), d = n || a;
1410
- return /* @__PURE__ */ U("div", { ...c, ref: d, className: i.card, children: [
1437
+ const i = Pe({ className: t, isInteractive: l, variant: e, children: r }), c = j(null), d = n || c;
1438
+ return /* @__PURE__ */ D("div", { ...a, ref: d, className: i.card, children: [
1411
1439
  /* @__PURE__ */ u("div", { className: i.stateLayer, children: l && /* @__PURE__ */ u(ne, { colorName: "on-surface", triggerRef: d }) }),
1412
1440
  r
1413
1441
  ] });
1414
- }, ze = (e, t, r = [0, 1]) => {
1415
- const [l, n] = t, [c, i] = r, d = (Math.max(l, Math.min(e, n)) - l) / (n - l);
1416
- return c + d * (i - c);
1417
- }, Te = ({
1442
+ }, Te = (e, t, r = [0, 1]) => {
1443
+ const [l, n] = t, [a, i] = r, d = (Math.max(l, Math.min(e, n)) - l) / (n - l);
1444
+ return a + d * (i - a);
1445
+ }, et = ({
1418
1446
  className: e,
1419
1447
  children: t,
1420
1448
  width: r = 1,
1421
1449
  index: l = 0,
1422
1450
  ref: n,
1423
- ...c
1451
+ ...a
1424
1452
  }) => {
1425
- const i = V(null), a = n || i, d = We({
1453
+ const i = j(null), c = n || i, d = We({
1426
1454
  className: e,
1427
1455
  index: l,
1428
1456
  width: r,
1429
1457
  children: t
1430
1458
  });
1431
1459
  return /* @__PURE__ */ u(
1432
- j.div,
1460
+ U.div,
1433
1461
  {
1434
- ref: a,
1462
+ ref: c,
1435
1463
  animate: { width: r + "px" },
1436
1464
  transition: {
1437
1465
  duration: 0.5,
1438
1466
  ease: "linear"
1439
1467
  },
1440
1468
  className: d.carouselItem,
1441
- ...c,
1469
+ ...a,
1442
1470
  children: t
1443
1471
  }
1444
1472
  );
1445
- }, It = ({
1473
+ }, kt = ({
1446
1474
  variant: e = "hero",
1447
1475
  className: t,
1448
1476
  children: r,
1449
1477
  ref: l,
1450
1478
  marginPourcent: n = 0,
1451
- inputRange: c = [0.21, 0.65],
1479
+ inputRange: a = [0.21, 0.65],
1452
1480
  outputRange: i = [42, 300],
1453
- gap: a = 8,
1481
+ gap: c = 8,
1454
1482
  onChange: d,
1455
1483
  scrollSensitivity: o = 1.25,
1456
- ...h
1484
+ ...m
1457
1485
  }) => {
1458
- var q, A;
1459
- const p = V(null), s = l || p, y = De({
1486
+ var q, z;
1487
+ const h = j(null), s = l || h, y = De({
1460
1488
  className: t,
1461
1489
  children: r,
1462
1490
  variant: e,
1463
- inputRange: c,
1491
+ inputRange: a,
1464
1492
  outputRange: i,
1465
1493
  marginPourcent: n,
1466
1494
  onChange: d,
1467
- gap: a,
1495
+ gap: c,
1468
1496
  scrollSensitivity: o
1469
1497
  }), v = Y.Children.toArray(r).filter(
1470
- (g) => Y.isValidElement(g) && g.type === Te
1471
- ), N = V(null), [L, I] = R([]), [w, B] = R(null), b = () => {
1472
- var H;
1473
- if (!N.current || !s.current || !w) return [];
1498
+ (g) => Y.isValidElement(g) && g.type === et
1499
+ ), L = j(null), [N, I] = R([]), [w, B] = R(null), b = () => {
1500
+ var X;
1501
+ if (!L.current || !s.current || !w) return [];
1474
1502
  const { scrollVisible: g, scrollProgress: x } = w;
1475
- function W(X, J) {
1476
- return X.map(
1477
- (T) => (T - J) / Math.abs(X[1] - X[0])
1503
+ function W(H, J) {
1504
+ return H.map(
1505
+ (T) => (T - J) / Math.abs(H[1] - H[0])
1478
1506
  );
1479
1507
  }
1480
- let F = v.map((X, J) => {
1481
- if (!E[J].current || !N.current) return 0;
1482
- let te = J / (v.length - 1);
1483
- return te > 1 && (te = 1), te < 0 && (te = 0), te;
1508
+ let F = v.map((H, J) => {
1509
+ if (!E[J].current || !L.current) return 0;
1510
+ let re = J / (v.length - 1);
1511
+ return re > 1 && (re = 1), re < 0 && (re = 0), re;
1484
1512
  });
1485
1513
  F = W(F, x);
1486
- let C = ((((H = s.current) == null ? void 0 : H.clientWidth) ?? g) - (i[0] + a)) / (i[1] + a);
1487
- return F.map((X, J) => ({ value: Math.abs(X), originalIndex: J })).sort((X, J) => X.value - J.value).forEach((X, J) => {
1488
- J === 0 && D(X.originalIndex);
1489
- let T = ze(C, [0, 1], [0, i[1]]);
1490
- T < i[0] && (T = i[0]), C--, F[X.originalIndex] = T;
1514
+ let S = ((((X = s.current) == null ? void 0 : X.clientWidth) ?? g) - (i[0] + c)) / (i[1] + c);
1515
+ return F.map((H, J) => ({ value: Math.abs(H), originalIndex: J })).sort((H, J) => H.value - J.value).forEach((H, J) => {
1516
+ J === 0 && V(H.originalIndex);
1517
+ let T = Te(S, [0, 1], [0, i[1]]);
1518
+ T < i[0] && (T = i[0]), S--, F[H.originalIndex] = T;
1491
1519
  }), F;
1492
- }, E = V([]).current, [M, D] = R(0);
1493
- P(() => {
1494
- d && d(M);
1495
- }, [M]), E.length !== v.length && v.forEach((g, x) => {
1520
+ }, E = j([]).current, [C, V] = R(0);
1521
+ $(() => {
1522
+ d && d(C);
1523
+ }, [C]), E.length !== v.length && v.forEach((g, x) => {
1496
1524
  E[x] || (E[x] = Y.createRef());
1497
1525
  });
1498
- const $ = v.map((g, x) => Y.cloneElement(
1526
+ const P = v.map((g, x) => Y.cloneElement(
1499
1527
  g,
1500
1528
  {
1501
- width: L[x],
1529
+ width: N[x],
1502
1530
  ref: E[x],
1503
1531
  key: x,
1504
1532
  index: x
1505
1533
  }
1506
- )), k = me((w == null ? void 0 : w.scrollProgress) ?? 0), m = oe(
1534
+ )), k = he((w == null ? void 0 : w.scrollProgress) ?? 0), p = oe(
1507
1535
  k,
1508
1536
  [0, 1],
1509
1537
  [
1510
1538
  0,
1511
- 1 - (((q = s.current) == null ? void 0 : q.clientWidth) ?? 0) / (((A = N == null ? void 0 : N.current) == null ? void 0 : A.clientWidth) ?? 0)
1539
+ 1 - (((q = s.current) == null ? void 0 : q.clientWidth) ?? 0) / (((z = L == null ? void 0 : L.current) == null ? void 0 : z.clientWidth) ?? 0)
1512
1540
  ]
1513
- ), S = oe(
1514
- m,
1541
+ ), M = oe(
1542
+ p,
1515
1543
  (g) => `${-g * 100}%`
1516
1544
  ), O = (g) => {
1517
1545
  g.scrollTotal > 0 && B(g);
1518
1546
  };
1519
- P(() => {
1547
+ $(() => {
1520
1548
  const g = b();
1521
1549
  I(g);
1522
1550
  }, [w]);
1523
- const [_, Z] = R(0);
1524
- return fe(() => {
1551
+ const [K, Z] = R(0);
1552
+ return pe(() => {
1525
1553
  let g = i[1];
1526
1554
  w && g > w.scrollVisible && (g = w.scrollVisible);
1527
- const x = (g + a) * $.length / o;
1555
+ const x = (g + c) * P.length / o;
1528
1556
  Z(x);
1529
- }, [s, E, w]), /* @__PURE__ */ u("div", { className: y.carousel, ref: s, ...h, children: /* @__PURE__ */ u(
1530
- he,
1557
+ }, [s, E, w]), /* @__PURE__ */ u("div", { className: y.carousel, ref: s, ...m, children: /* @__PURE__ */ u(
1558
+ ge,
1531
1559
  {
1532
1560
  draggable: !0,
1533
1561
  orientation: "horizontal",
1534
1562
  onScroll: O,
1535
- scrollSize: _,
1563
+ scrollSize: K,
1536
1564
  children: /* @__PURE__ */ u(
1537
- j.div,
1565
+ U.div,
1538
1566
  {
1539
1567
  className: y.track,
1540
- ref: N,
1568
+ ref: L,
1541
1569
  style: {
1542
1570
  transitionDuration: "0.5s",
1543
1571
  transitionTimingFunction: "ease-out",
1544
- gap: `${a}px`,
1545
- x: S
1572
+ gap: `${c}px`,
1573
+ x: M
1546
1574
  },
1547
- children: $
1575
+ children: P
1548
1576
  }
1549
1577
  )
1550
1578
  }
1551
1579
  ) });
1552
- }, Et = ({
1580
+ }, tt = ({
1553
1581
  orientation: e = "horizontal",
1554
1582
  className: t,
1555
1583
  ...r
@@ -1559,129 +1587,129 @@ const Lt = ({
1559
1587
  }, G = [];
1560
1588
  for (let e = 0; e < 256; ++e)
1561
1589
  G.push((e + 256).toString(16).slice(1));
1562
- function et(e, t = 0) {
1590
+ function rt(e, t = 0) {
1563
1591
  return (G[e[t + 0]] + G[e[t + 1]] + G[e[t + 2]] + G[e[t + 3]] + "-" + G[e[t + 4]] + G[e[t + 5]] + "-" + G[e[t + 6]] + G[e[t + 7]] + "-" + G[e[t + 8]] + G[e[t + 9]] + "-" + G[e[t + 10]] + G[e[t + 11]] + G[e[t + 12]] + G[e[t + 13]] + G[e[t + 14]] + G[e[t + 15]]).toLowerCase();
1564
1592
  }
1565
1593
  let ae;
1566
- const tt = new Uint8Array(16);
1567
- function rt() {
1594
+ const nt = new Uint8Array(16);
1595
+ function lt() {
1568
1596
  if (!ae) {
1569
1597
  if (typeof crypto > "u" || !crypto.getRandomValues)
1570
1598
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1571
1599
  ae = crypto.getRandomValues.bind(crypto);
1572
1600
  }
1573
- return ae(tt);
1601
+ return ae(nt);
1574
1602
  }
1575
- const nt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ie = { randomUUID: nt };
1603
+ const ot = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), de = { randomUUID: ot };
1576
1604
  function ce(e, t, r) {
1577
1605
  var n;
1578
- if (ie.randomUUID && !e)
1579
- return ie.randomUUID();
1606
+ if (de.randomUUID && !e)
1607
+ return de.randomUUID();
1580
1608
  e = e || {};
1581
- const l = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? rt();
1609
+ const l = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? lt();
1582
1610
  if (l.length < 16)
1583
1611
  throw new Error("Random bytes length must be >= 16");
1584
- return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, et(l);
1612
+ return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, rt(l);
1585
1613
  }
1586
- const ye = ({
1614
+ const we = ({
1587
1615
  variant: e = "plain",
1588
1616
  buttons: t,
1589
1617
  className: r,
1590
1618
  children: l,
1591
1619
  title: n,
1592
- text: c,
1620
+ text: a,
1593
1621
  position: i,
1594
- targetRef: a,
1622
+ targetRef: c,
1595
1623
  ref: d,
1596
1624
  trigger: o = ["hover", "focus"],
1597
- ...h
1625
+ ...m
1598
1626
  }) => {
1599
- if (!l && !a)
1627
+ if (!l && !c)
1600
1628
  throw new Error("ToolTip must have a child or a targetRef");
1601
1629
  Array.isArray(o) || (o = [o]), t && !Array.isArray(t) && (t = [t]);
1602
- const p = V(null), s = a || p, [y, v] = R(null), [N] = R(ce()), [L, I] = R(!1), w = V(null);
1603
- P(() => {
1604
- const m = (S) => {
1605
- v(S.detail);
1630
+ const h = j(null), s = c || h, [y, v] = R(null), [L] = R(ce()), [N, I] = R(!1), w = j(null);
1631
+ $(() => {
1632
+ const p = (M) => {
1633
+ v(M.detail);
1606
1634
  };
1607
- return document.addEventListener("tooltip-update", m), () => {
1635
+ return document.addEventListener("tooltip-update", p), () => {
1608
1636
  document.removeEventListener(
1609
1637
  "tooltip-update",
1610
- m
1638
+ p
1611
1639
  );
1612
1640
  };
1613
- }, []), P(() => {
1614
- w.current && clearTimeout(w.current), y ? I(y === N) : w.current = setTimeout(() => {
1641
+ }, []), $(() => {
1642
+ w.current && clearTimeout(w.current), y ? I(y === L) : w.current = setTimeout(() => {
1615
1643
  I(!1);
1616
1644
  }, 1200);
1617
- }, [y, N]);
1645
+ }, [y, L]);
1618
1646
  const B = () => {
1619
1647
  if (o.includes("hover")) {
1620
- const m = new CustomEvent("tooltip-update", { detail: N });
1621
- document.dispatchEvent(m);
1648
+ const p = new CustomEvent("tooltip-update", { detail: L });
1649
+ document.dispatchEvent(p);
1622
1650
  }
1623
1651
  }, b = () => {
1624
1652
  if (o.includes("hover")) {
1625
- const m = new CustomEvent("tooltip-update", { detail: null });
1626
- document.dispatchEvent(m);
1653
+ const p = new CustomEvent("tooltip-update", { detail: null });
1654
+ document.dispatchEvent(p);
1627
1655
  }
1628
1656
  }, E = () => {
1629
1657
  if (o.includes("click")) {
1630
- const m = new CustomEvent("tooltip-update", {
1631
- detail: L ? null : N
1658
+ const p = new CustomEvent("tooltip-update", {
1659
+ detail: N ? null : L
1632
1660
  });
1633
- document.dispatchEvent(m);
1661
+ document.dispatchEvent(p);
1634
1662
  }
1635
- }, M = () => {
1663
+ }, C = () => {
1636
1664
  if (o.includes("focus")) {
1637
- const m = new CustomEvent("tooltip-update", { detail: N });
1638
- document.dispatchEvent(m);
1665
+ const p = new CustomEvent("tooltip-update", { detail: L });
1666
+ document.dispatchEvent(p);
1639
1667
  }
1640
- }, D = () => {
1668
+ }, V = () => {
1641
1669
  if (o.includes("focus")) {
1642
- const m = new CustomEvent("tooltip-update", { detail: null });
1643
- document.dispatchEvent(m);
1670
+ const p = new CustomEvent("tooltip-update", { detail: null });
1671
+ document.dispatchEvent(p);
1644
1672
  }
1645
1673
  };
1646
- P(() => {
1674
+ $(() => {
1647
1675
  if (s != null && s.current) {
1648
- const m = s.current;
1649
- return m.addEventListener("mouseenter", B), m.addEventListener("mouseleave", b), m.addEventListener("click", E), m.addEventListener("focus", M), m.addEventListener("blur", D), () => {
1650
- m.removeEventListener("mouseenter", B), m.removeEventListener("mouseleave", b), m.removeEventListener("click", E), m.removeEventListener("focus", M), m.removeEventListener("blur", D);
1676
+ const p = s.current;
1677
+ return p.addEventListener("mouseenter", B), p.addEventListener("mouseleave", b), p.addEventListener("click", E), p.addEventListener("focus", C), p.addEventListener("blur", V), () => {
1678
+ p.removeEventListener("mouseenter", B), p.removeEventListener("mouseleave", b), p.removeEventListener("click", E), p.removeEventListener("focus", C), p.removeEventListener("blur", V);
1651
1679
  };
1652
1680
  }
1653
- }, [s, o, N, L]);
1654
- const $ = !a && ee(l) ? le(l, { ref: p }) : l;
1681
+ }, [s, o, L, N]);
1682
+ const P = !c && ee(l) ? le(l, { ref: h }) : l;
1655
1683
  if (!i && typeof window < "u" && s != null && s.current && !i) {
1656
- const m = s.current.getBoundingClientRect(), S = window.innerWidth, O = window.innerHeight, _ = m.left / S, Z = m.top / O;
1657
- e === "plain" ? _ < 1 / 3 ? i = "right" : _ > 2 / 3 ? i = "left" : i = Z > 0.5 ? "top" : "bottom" : _ < 1 / 2 && Z < 1 / 2 ? i = "bottom-right" : _ > 1 / 2 && Z < 1 / 2 ? i = "bottom-left" : _ > 1 / 2 && Z > 1 / 2 ? i = "top-left" : _ < 1 / 2 && Z > 1 / 2 && (i = "top-right");
1684
+ const p = s.current.getBoundingClientRect(), M = window.innerWidth, O = window.innerHeight, K = p.left / M, Z = p.top / O;
1685
+ e === "plain" ? K < 1 / 3 ? i = "right" : K > 2 / 3 ? i = "left" : i = Z > 0.5 ? "top" : "bottom" : K < 1 / 2 && Z < 1 / 2 ? i = "bottom-right" : K > 1 / 2 && Z < 1 / 2 ? i = "bottom-left" : K > 1 / 2 && Z > 1 / 2 ? i = "top-left" : K < 1 / 2 && Z > 1 / 2 && (i = "top-right");
1658
1686
  }
1659
- const k = Ge({
1687
+ const k = Ye({
1660
1688
  variant: e,
1661
1689
  buttons: t,
1662
1690
  className: r,
1663
1691
  title: n,
1664
- text: c,
1692
+ text: a,
1665
1693
  position: i,
1666
1694
  trigger: o,
1667
- targetRef: a,
1695
+ targetRef: c,
1668
1696
  children: l
1669
1697
  });
1670
- return /* @__PURE__ */ U(re, { children: [
1671
- $,
1672
- /* @__PURE__ */ u(z, { children: L && /* @__PURE__ */ u(Je, { targetRef: s, children: /* @__PURE__ */ u(
1673
- j.div,
1698
+ return /* @__PURE__ */ D(te, { children: [
1699
+ P,
1700
+ /* @__PURE__ */ u(A, { children: N && /* @__PURE__ */ u(Qe, { targetRef: s, children: /* @__PURE__ */ u(
1701
+ U.div,
1674
1702
  {
1675
1703
  initial: { opacity: y ? 1 : 0 },
1676
1704
  animate: { opacity: 1 },
1677
1705
  transition: { duration: y ? 0 : 0.3 },
1678
1706
  exit: { opacity: y ? 1 : 0 },
1679
1707
  className: k.toolTip,
1680
- ...h,
1708
+ ...m,
1681
1709
  onMouseEnter: B,
1682
1710
  onMouseLeave: b,
1683
- children: /* @__PURE__ */ U(
1684
- j.div,
1711
+ children: /* @__PURE__ */ D(
1712
+ U.div,
1685
1713
  {
1686
1714
  className: k.container,
1687
1715
  layoutId: "tool-tip",
@@ -1692,15 +1720,15 @@ const ye = ({
1692
1720
  },
1693
1721
  children: [
1694
1722
  n && /* @__PURE__ */ u("div", { className: k.subHead, children: n }),
1695
- /* @__PURE__ */ u("div", { className: k.supportingText, children: c }),
1696
- t && /* @__PURE__ */ u("div", { className: k.actions, children: Array.isArray(t) && t.map((m, S) => /* @__PURE__ */ u(
1697
- Ae,
1723
+ /* @__PURE__ */ u("div", { className: k.supportingText, children: a }),
1724
+ t && /* @__PURE__ */ u("div", { className: k.actions, children: Array.isArray(t) && t.map((p, M) => /* @__PURE__ */ u(
1725
+ ze,
1698
1726
  {
1699
1727
  size: "small",
1700
1728
  variant: "text",
1701
- ...m
1729
+ ...p
1702
1730
  },
1703
- S
1731
+ M
1704
1732
  )) })
1705
1733
  ]
1706
1734
  }
@@ -1708,28 +1736,28 @@ const ye = ({
1708
1736
  }
1709
1737
  ) }) })
1710
1738
  ] });
1711
- }, ue = ({
1739
+ }, fe = ({
1712
1740
  className: e,
1713
1741
  label: t,
1714
1742
  variant: r = "primary",
1715
1743
  size: l = "medium",
1716
1744
  href: n,
1717
- type: c,
1745
+ type: a,
1718
1746
  icon: i,
1719
- isExtended: a = !1,
1747
+ isExtended: c = !1,
1720
1748
  ref: d,
1721
1749
  transition: o,
1722
- children: h,
1723
- ...p
1750
+ children: m,
1751
+ ...h
1724
1752
  }) => {
1725
- if (h && (t = h), !t)
1753
+ if (m && (t = m), !t)
1726
1754
  throw new Error(
1727
1755
  "FAB component requires either a label prop or children content"
1728
1756
  );
1729
- const s = n ? "a" : "button", y = Ue({
1757
+ const s = n ? "a" : "button", y = je({
1730
1758
  href: n,
1731
1759
  icon: i,
1732
- isExtended: a,
1760
+ isExtended: c,
1733
1761
  label: t,
1734
1762
  size: l,
1735
1763
  variant: r,
@@ -1738,7 +1766,7 @@ const ye = ({
1738
1766
  children: t
1739
1767
  });
1740
1768
  o = { duration: 0.3, ...o };
1741
- const v = V(null), N = d || v, L = {
1769
+ const v = j(null), L = d || v, N = {
1742
1770
  visible: {
1743
1771
  width: "auto",
1744
1772
  marginLeft: 12,
@@ -1764,21 +1792,21 @@ const ye = ({
1764
1792
  }
1765
1793
  }
1766
1794
  };
1767
- return /* @__PURE__ */ U(
1795
+ return /* @__PURE__ */ D(
1768
1796
  s,
1769
1797
  {
1770
- ...p,
1771
- ref: N,
1798
+ ...h,
1799
+ ref: L,
1772
1800
  href: n,
1773
- "aria-label": a ? void 0 : t,
1801
+ "aria-label": c ? void 0 : t,
1774
1802
  className: y.fab,
1775
1803
  children: [
1776
1804
  /* @__PURE__ */ u(
1777
- ye,
1805
+ we,
1778
1806
  {
1779
- trigger: a ? null : void 0,
1807
+ trigger: c ? null : void 0,
1780
1808
  text: t,
1781
- targetRef: N
1809
+ targetRef: L
1782
1810
  }
1783
1811
  ),
1784
1812
  /* @__PURE__ */ u("span", { className: y.stateLayer, children: /* @__PURE__ */ u(
@@ -1790,14 +1818,14 @@ const ye = ({
1790
1818
  "on-secondary-container": r == "secondary",
1791
1819
  "on-tertiary-container": r == "tertiary"
1792
1820
  }),
1793
- triggerRef: N
1821
+ triggerRef: L
1794
1822
  }
1795
1823
  ) }),
1796
1824
  /* @__PURE__ */ u(Q, { icon: i, className: y.icon }),
1797
- /* @__PURE__ */ u(z, { children: a && /* @__PURE__ */ u(
1798
- j.span,
1825
+ /* @__PURE__ */ u(A, { children: c && /* @__PURE__ */ u(
1826
+ U.span,
1799
1827
  {
1800
- variants: L,
1828
+ variants: N,
1801
1829
  initial: "hidden",
1802
1830
  animate: "visible",
1803
1831
  exit: "hidden",
@@ -1808,87 +1836,87 @@ const ye = ({
1808
1836
  ]
1809
1837
  }
1810
1838
  );
1811
- }, xe = ({
1839
+ }, ie = ({
1812
1840
  variant: e = "standard",
1813
1841
  href: t,
1814
1842
  disabled: r = !1,
1815
1843
  type: l = "button",
1816
1844
  title: n,
1817
- label: c,
1845
+ label: a,
1818
1846
  onToggle: i,
1819
- activated: a = !1,
1847
+ activated: c = !1,
1820
1848
  onClick: d,
1821
1849
  icon: o,
1822
- size: h = "medium",
1823
- iconSelected: p,
1850
+ size: m = "medium",
1851
+ iconSelected: h,
1824
1852
  className: s,
1825
1853
  ref: y,
1826
1854
  width: v = "default",
1827
- shape: N = "rounded",
1828
- allowShapeTransformation: L = !0,
1855
+ shape: L = "rounded",
1856
+ allowShapeTransformation: N = !0,
1829
1857
  transition: I,
1830
1858
  children: w,
1831
1859
  ...B
1832
1860
  }) => {
1833
- if (w && (c = w), !c)
1861
+ if (w && (a = w), !a)
1834
1862
  throw new Error(
1835
1863
  "IconButton component requires either a label prop or children content to provide an accessible aria-label"
1836
1864
  );
1837
- n || (n = c);
1838
- const [b, E] = Y.useState(a);
1839
- let M;
1840
- i ? i && (M = (S) => {
1841
- r && S.preventDefault(), E(!b), i(!!b);
1842
- }, o = b && p || o) : M = (S) => {
1843
- r && S.preventDefault(), d && d(S);
1844
- }, P(() => {
1845
- E(a);
1846
- }, [a]);
1847
- const D = t ? "a" : "button", $ = je({
1865
+ n || (n = a);
1866
+ const [b, E] = Y.useState(c);
1867
+ let C;
1868
+ i ? i && (C = (M) => {
1869
+ r && M.preventDefault(), E(!b), i(!!b);
1870
+ }, o = b && h || o) : C = (M) => {
1871
+ r && M.preventDefault(), d && d(M);
1872
+ }, $(() => {
1873
+ E(c);
1874
+ }, [c]);
1875
+ const V = t ? "a" : "button", P = Ue({
1848
1876
  transition: I,
1849
- shape: N,
1850
- allowShapeTransformation: L,
1877
+ shape: L,
1878
+ allowShapeTransformation: N,
1851
1879
  width: v,
1852
1880
  href: t,
1853
1881
  activated: b,
1854
- label: c,
1855
- iconSelected: p,
1882
+ label: a,
1883
+ iconSelected: h,
1856
1884
  isActive: b,
1857
1885
  onToggle: i,
1858
1886
  disabled: r,
1859
1887
  icon: o,
1860
1888
  variant: e,
1861
1889
  className: s,
1862
- size: h,
1863
- children: c,
1890
+ size: m,
1891
+ children: a,
1864
1892
  ...B
1865
- }), k = V(null), m = y || k;
1866
- return I = { duration: 0.3, ...I }, /* @__PURE__ */ U(
1867
- D,
1893
+ }), k = j(null), p = y || k;
1894
+ return I = { duration: 0.3, ...I }, /* @__PURE__ */ D(
1895
+ V,
1868
1896
  {
1869
1897
  disabled: r,
1870
1898
  href: t,
1871
1899
  style: { transition: I.duration + "s" },
1872
- className: $.iconButton,
1873
- "aria-label": c,
1900
+ className: P.iconButton,
1901
+ "aria-label": a,
1874
1902
  ...B,
1875
1903
  title: void 0,
1876
- onClick: M,
1877
- ref: m,
1904
+ onClick: C,
1905
+ ref: p,
1878
1906
  children: [
1879
1907
  /* @__PURE__ */ u(
1880
- ye,
1908
+ we,
1881
1909
  {
1882
- targetRef: m,
1910
+ targetRef: p,
1883
1911
  trigger: r ? null : void 0,
1884
1912
  text: n
1885
1913
  }
1886
1914
  ),
1887
- /* @__PURE__ */ u("div", { className: $.touchTarget }),
1915
+ /* @__PURE__ */ u("div", { className: P.touchTarget }),
1888
1916
  /* @__PURE__ */ u(
1889
1917
  "div",
1890
1918
  {
1891
- className: $.stateLayer,
1919
+ className: P.stateLayer,
1892
1920
  style: { transition: I.duration + "s" },
1893
1921
  children: !r && /* @__PURE__ */ u(
1894
1922
  ne,
@@ -1911,24 +1939,24 @@ const ye = ({
1911
1939
  "on-primary": b
1912
1940
  }
1913
1941
  ),
1914
- triggerRef: m
1942
+ triggerRef: p
1915
1943
  }
1916
1944
  )
1917
1945
  }
1918
1946
  ),
1919
- o && /* @__PURE__ */ u(Q, { icon: o, className: $.icon })
1947
+ o && /* @__PURE__ */ u(Q, { icon: o, className: P.icon })
1920
1948
  ]
1921
1949
  }
1922
1950
  );
1923
- }, kt = ({
1951
+ }, St = ({
1924
1952
  className: e,
1925
1953
  valueFormatter: t,
1926
1954
  step: r = 10,
1927
1955
  name: l,
1928
1956
  value: n = 0,
1929
- min: c = 0,
1957
+ min: a = 0,
1930
1958
  max: i = 100,
1931
- marks: a = [
1959
+ marks: c = [
1932
1960
  {
1933
1961
  value: 0,
1934
1962
  label: "0"
@@ -1940,28 +1968,28 @@ const ye = ({
1940
1968
  ],
1941
1969
  ref: d,
1942
1970
  onChange: o,
1943
- ...h
1971
+ ...m
1944
1972
  }) => {
1945
- const p = (g) => {
1973
+ const h = (g) => {
1946
1974
  const x = y(), W = s();
1947
1975
  return g === 1 / 0 ? 100 : g === -1 / 0 ? 0 : (g - x) / (W - x) * 100;
1948
- }, s = (g = !1) => g ? i : i == 1 / 0 ? a[(a == null ? void 0 : a.length) - 1].value : i, y = (g = !1) => g ? c : c == -1 / 0 ? a[0].value : c, v = (g) => {
1976
+ }, s = (g = !1) => g ? i : i == 1 / 0 ? c[(c == null ? void 0 : c.length) - 1].value : i, y = (g = !1) => g ? a : a == -1 / 0 ? c[0].value : a, v = (g) => {
1949
1977
  const x = y(!1);
1950
1978
  return (s(!1) - x) * g / 100 + x;
1951
- }, [N, L] = R(!1), I = V(null), w = d || I, [B, b] = R(n), [E, M] = R(p(n)), [D, $] = R(!1), k = (g) => {
1952
- $(!0), L(!0), O(g);
1953
- }, m = () => {
1954
- $(!1), L(!1);
1979
+ }, [L, N] = R(!1), I = j(null), w = d || I, [B, b] = R(n), [E, C] = R(h(n)), [V, P] = R(!1), k = (g) => {
1980
+ P(!0), N(!0), O(g);
1981
+ }, p = () => {
1982
+ P(!1), N(!1);
1955
1983
  };
1956
- P(() => (D ? (window.addEventListener("mouseup", m), window.addEventListener("mousemove", O), window.addEventListener("touchend", m), window.addEventListener("touchmove", O)) : (window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", O)), () => {
1957
- window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", O);
1958
- }), [D]);
1959
- const S = He({
1984
+ $(() => (V ? (window.addEventListener("mouseup", p), window.addEventListener("mousemove", O), window.addEventListener("touchend", p), window.addEventListener("touchmove", O)) : (window.removeEventListener("mouseup", p), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", p), window.removeEventListener("touchmove", O)), () => {
1985
+ window.removeEventListener("mouseup", p), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", p), window.removeEventListener("touchmove", O);
1986
+ }), [V]);
1987
+ const M = He({
1960
1988
  className: e,
1961
- isChanging: N,
1962
- marks: a,
1989
+ isChanging: L,
1990
+ marks: c,
1963
1991
  max: i,
1964
- min: c,
1992
+ min: a,
1965
1993
  name: l,
1966
1994
  step: r,
1967
1995
  value: B,
@@ -1970,48 +1998,48 @@ const ye = ({
1970
1998
  }), O = (g) => {
1971
1999
  const x = w == null ? void 0 : w.current;
1972
2000
  if (x) {
1973
- const W = x.getBoundingClientRect().left, C = ((g.type === "touchmove" || g.type === "touchstart" ? g.touches[0].clientX : g.clientX) - W) / x.offsetWidth * 100;
1974
- _({ pourcent: C });
2001
+ const W = x.getBoundingClientRect().left, S = ((g.type === "touchmove" || g.type === "touchstart" ? g.touches[0].clientX : g.clientX) - W) / x.offsetWidth * 100;
2002
+ K({ pourcent: S });
1975
2003
  }
1976
- }, _ = ({
2004
+ }, K = ({
1977
2005
  pourcent: g,
1978
2006
  value: x
1979
2007
  }) => {
1980
2008
  if (g) {
1981
2009
  if (g >= 100) {
1982
- b(s(!0)), M(100);
2010
+ b(s(!0)), C(100);
1983
2011
  return;
1984
2012
  }
1985
2013
  if (g <= 0) {
1986
- b(y(!0)), M(0);
2014
+ b(y(!0)), C(0);
1987
2015
  return;
1988
2016
  }
1989
2017
  x = v(g), x == y() && (x = y(!0)), x == s() && (x = s(!0));
1990
2018
  } else if (x != null) {
1991
2019
  if (x >= s()) {
1992
- b(s(!0)), M(100);
2020
+ b(s(!0)), C(100);
1993
2021
  return;
1994
2022
  }
1995
2023
  if (x <= y()) {
1996
- b(y(!0)), M(0);
2024
+ b(y(!0)), C(0);
1997
2025
  return;
1998
2026
  }
1999
- g = p(x);
2027
+ g = h(x);
2000
2028
  } else
2001
2029
  return;
2002
- r != null ? x = Math.round((x - y()) / r) * r + y() : a && (x = a.reduce((W, F, C) => {
2003
- let H = F.value === 1 / 0 ? s() : F.value === -1 / 0 ? y() : F.value, X = W.value === 1 / 0 ? s() : W.value === -1 / 0 ? y() : W.value;
2004
- return H = Math.abs(H - x), X = Math.abs(X - x), H < X ? F : W;
2005
- }).value), x >= s() && (x = s(!0)), x <= y() && (x = y(!0)), g = p(x), b(x), M(g), o && o(x);
2030
+ r != null ? x = Math.round((x - y()) / r) * r + y() : c && (x = c.reduce((W, F, S) => {
2031
+ let X = F.value === 1 / 0 ? s() : F.value === -1 / 0 ? y() : F.value, H = W.value === 1 / 0 ? s() : W.value === -1 / 0 ? y() : W.value;
2032
+ return X = Math.abs(X - x), H = Math.abs(H - x), X < H ? F : W;
2033
+ }).value), x >= s() && (x = s(!0)), x <= y() && (x = y(!0)), g = h(x), b(x), C(g), o && o(x);
2006
2034
  }, [Z, q] = R(0);
2007
- return P(() => {
2035
+ return $(() => {
2008
2036
  const g = () => {
2009
2037
  w.current && q(w.current.offsetWidth);
2010
2038
  };
2011
2039
  return g(), window.addEventListener("resize", g), () => {
2012
2040
  window.removeEventListener("resize", g);
2013
2041
  };
2014
- }, []), /* @__PURE__ */ U(
2042
+ }, []), /* @__PURE__ */ D(
2015
2043
  "div",
2016
2044
  {
2017
2045
  tabIndex: 0,
@@ -2019,18 +2047,18 @@ const ye = ({
2019
2047
  switch (g.key) {
2020
2048
  case "ArrowRight":
2021
2049
  if (r)
2022
- _({ value: B + r });
2023
- else if (a) {
2024
- const x = a.find((W) => W.value > B);
2025
- x && _({ value: x.value });
2050
+ K({ value: B + r });
2051
+ else if (c) {
2052
+ const x = c.find((W) => W.value > B);
2053
+ x && K({ value: x.value });
2026
2054
  }
2027
2055
  break;
2028
2056
  case "ArrowLeft":
2029
2057
  if (r)
2030
- _({ value: B - r });
2031
- else if (a) {
2032
- const x = a.slice(0).reverse().find((W, F, C) => B === 1 / 0 ? F === 1 : W.value < B);
2033
- x && _({ value: x.value });
2058
+ K({ value: B - r });
2059
+ else if (c) {
2060
+ const x = c.slice(0).reverse().find((W, F, S) => B === 1 / 0 ? F === 1 : W.value < B);
2061
+ x && K({ value: x.value });
2034
2062
  }
2035
2063
  break;
2036
2064
  default:
@@ -2042,26 +2070,26 @@ const ye = ({
2042
2070
  "aria-valuemax": s(!0),
2043
2071
  "aria-valuenow": B,
2044
2072
  "aria-valuetext": B.toString(),
2045
- className: S.slider,
2073
+ className: M.slider,
2046
2074
  onMouseDown: k,
2047
2075
  onClick: O,
2048
2076
  ref: w,
2049
2077
  onTouchStart: k,
2050
2078
  onDragStart: (g) => g.preventDefault(),
2051
- ...h,
2079
+ ...m,
2052
2080
  children: [
2053
2081
  /* @__PURE__ */ u("input", { type: "hidden", name: l, value: B }),
2054
2082
  /* @__PURE__ */ u(
2055
2083
  "div",
2056
2084
  {
2057
- className: S.activeTrack,
2085
+ className: M.activeTrack,
2058
2086
  style: { flex: E / 100 }
2059
2087
  }
2060
2088
  ),
2061
- /* @__PURE__ */ u("div", { className: S.handle, children: /* @__PURE__ */ u(z, { children: N && /* @__PURE__ */ u(
2062
- j.div,
2089
+ /* @__PURE__ */ u("div", { className: M.handle, children: /* @__PURE__ */ u(A, { children: L && /* @__PURE__ */ u(
2090
+ U.div,
2063
2091
  {
2064
- className: S.valueIndicator,
2092
+ className: M.valueIndicator,
2065
2093
  initial: "hidden",
2066
2094
  animate: "visible",
2067
2095
  exit: "hidden",
@@ -2081,7 +2109,7 @@ const ye = ({
2081
2109
  /* @__PURE__ */ u(
2082
2110
  "div",
2083
2111
  {
2084
- className: S.inactiveTrack,
2112
+ className: M.inactiveTrack,
2085
2113
  style: { flex: 1 - E / 100 }
2086
2114
  }
2087
2115
  ),
@@ -2089,18 +2117,18 @@ const ye = ({
2089
2117
  "div",
2090
2118
  {
2091
2119
  className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
2092
- children: a && a.map((g, x) => {
2120
+ children: c && c.map((g, x) => {
2093
2121
  let W = null;
2094
- const F = (N ? 9 : 10) / Z * 100, C = p(g.value);
2095
- return C <= E - F ? W = !0 : C >= E + F && (W = !1), /* @__PURE__ */ u(
2122
+ const F = (L ? 9 : 10) / Z * 100, S = h(g.value);
2123
+ return S <= E - F ? W = !0 : S >= E + F && (W = !1), /* @__PURE__ */ u(
2096
2124
  "div",
2097
2125
  {
2098
- className: f(S.dot, {
2126
+ className: f(M.dot, {
2099
2127
  "bg-primary-container": W != null && W,
2100
2128
  "bg-primary": W != null && !W
2101
2129
  }),
2102
2130
  style: {
2103
- left: `${p(g.value)}%`
2131
+ left: `${h(g.value)}%`
2104
2132
  }
2105
2133
  },
2106
2134
  x
@@ -2117,28 +2145,123 @@ const ye = ({
2117
2145
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2118
2146
  * Copyright 2025 Fonticons, Inc.
2119
2147
  */
2120
- var lt = {
2148
+ var at = {
2121
2149
  prefix: "fas",
2122
2150
  iconName: "circle-exclamation",
2123
2151
  icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-376c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM229.3 352a26.7 26.7 0 1 1 53.3 0 26.7 26.7 0 1 1 -53.3 0z"]
2124
- }, ge = {
2152
+ }, ue = {
2125
2153
  prefix: "fas",
2126
2154
  iconName: "xmark",
2127
2155
  icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
2128
- }, ot = {
2156
+ }, st = {
2129
2157
  prefix: "fas",
2130
2158
  iconName: "bars",
2131
2159
  icon: [448, 512, ["navicon"], "f0c9", "M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]
2132
2160
  };
2133
- const Ct = ({
2161
+ const Rt = ({
2162
+ variant: e = "standard",
2163
+ className: t,
2164
+ children: r,
2165
+ title: l,
2166
+ position: n = "right",
2167
+ extended: a,
2168
+ onExtendedChange: i,
2169
+ closeIcon: c = ue,
2170
+ transition: d,
2171
+ ...o
2172
+ }) => {
2173
+ d = { duration: 0.3, ...d };
2174
+ const [m, h] = R(a ?? !0), s = Xe({
2175
+ transition: d,
2176
+ title: l,
2177
+ position: n,
2178
+ closeIcon: c,
2179
+ className: t,
2180
+ children: r,
2181
+ onExtendedChange: i,
2182
+ isExtended: m,
2183
+ extended: m,
2184
+ variant: e
2185
+ });
2186
+ $(() => {
2187
+ i == null || i(m ?? !1);
2188
+ }, [m]), $(() => {
2189
+ a != null && h(a);
2190
+ }, [a]);
2191
+ const y = {
2192
+ close: {
2193
+ width: 0
2194
+ },
2195
+ open: {
2196
+ width: "auto"
2197
+ }
2198
+ }, v = () => /* @__PURE__ */ D(te, { children: [
2199
+ /* @__PURE__ */ u(A, { children: e == "modal" && m && /* @__PURE__ */ u(
2200
+ U.div,
2201
+ {
2202
+ initial: { opacity: 0 },
2203
+ animate: { opacity: 1 },
2204
+ exit: { opacity: 0 },
2205
+ transition: d,
2206
+ onClick: () => h(!1),
2207
+ className: s.overlay
2208
+ }
2209
+ ) }),
2210
+ /* @__PURE__ */ u(A, { children: m && /* @__PURE__ */ D(
2211
+ "div",
2212
+ {
2213
+ ...o,
2214
+ className: s.slideSheet,
2215
+ style: { transition: d.duration + "s" },
2216
+ children: [
2217
+ /* @__PURE__ */ D(
2218
+ U.div,
2219
+ {
2220
+ variants: y,
2221
+ initial: a === !1 ? "open" : "close",
2222
+ animate: "open",
2223
+ exit: "close",
2224
+ className: s.container,
2225
+ children: [
2226
+ /* @__PURE__ */ D("div", { className: s.header, children: [
2227
+ l && /* @__PURE__ */ u("p", { className: s.title, children: l }),
2228
+ /* @__PURE__ */ u(
2229
+ ie,
2230
+ {
2231
+ size: "small",
2232
+ label: "close",
2233
+ icon: c,
2234
+ onClick: () => h(!1),
2235
+ className: s.closeButton
2236
+ }
2237
+ )
2238
+ ] }),
2239
+ /* @__PURE__ */ u(
2240
+ "div",
2241
+ {
2242
+ className: s.content,
2243
+ style: { transition: d.duration + "s" },
2244
+ children: r
2245
+ }
2246
+ )
2247
+ ]
2248
+ }
2249
+ ),
2250
+ /* @__PURE__ */ u(tt, { className: s.divider, orientation: "vertical" })
2251
+ ]
2252
+ }
2253
+ ) })
2254
+ ] });
2255
+ return e == "modal" ? ye(v(), document.body) : v();
2256
+ }, Ct = ({
2134
2257
  message: e,
2135
2258
  className: t,
2136
2259
  duration: r,
2137
- closeIcon: l = ge,
2260
+ closeIcon: l = ue,
2138
2261
  onClose: n,
2139
- ...c
2262
+ ...a
2140
2263
  }) => {
2141
- const [i, a] = R(!0), d = Xe({
2264
+ const [i, c] = R(!0), d = Oe({
2142
2265
  className: t,
2143
2266
  closeIcon: l,
2144
2267
  duration: r,
@@ -2146,27 +2269,27 @@ const Ct = ({
2146
2269
  onClose: n,
2147
2270
  message: e
2148
2271
  });
2149
- P(() => {
2272
+ $(() => {
2150
2273
  r && setTimeout(() => {
2151
2274
  o();
2152
2275
  }, r);
2153
2276
  }, [r]);
2154
2277
  const o = () => {
2155
- a(!1), n == null || n();
2278
+ c(!1), n == null || n();
2156
2279
  };
2157
- return /* @__PURE__ */ u(z, { children: i && /* @__PURE__ */ u(
2158
- j.div,
2280
+ return /* @__PURE__ */ u(A, { children: i && /* @__PURE__ */ u(
2281
+ U.div,
2159
2282
  {
2160
2283
  initial: { height: 0 },
2161
2284
  animate: { height: "auto" },
2162
2285
  exit: { height: 0 },
2163
2286
  transition: { duration: 0.1 },
2164
2287
  className: d.snackbar,
2165
- ...c,
2166
- children: /* @__PURE__ */ U("div", { className: d.container, children: [
2288
+ ...a,
2289
+ children: /* @__PURE__ */ D("div", { className: d.container, children: [
2167
2290
  /* @__PURE__ */ u("p", { className: d.supportingText, children: e }),
2168
2291
  /* @__PURE__ */ u(
2169
- xe,
2292
+ ie,
2170
2293
  {
2171
2294
  onClick: () => o(),
2172
2295
  className: d.icon,
@@ -2177,124 +2300,124 @@ const Ct = ({
2177
2300
  ] })
2178
2301
  }
2179
2302
  ) });
2180
- }, Rt = ({
2303
+ }, Mt = ({
2181
2304
  selected: e = !1,
2182
2305
  className: t,
2183
2306
  activeIcon: r,
2184
2307
  disabled: l = !1,
2185
2308
  inactiveIcon: n,
2186
- onChange: c,
2309
+ onChange: a,
2187
2310
  onClick: i,
2188
- onKeyDown: a,
2311
+ onKeyDown: c,
2189
2312
  ref: d,
2190
2313
  ...o
2191
2314
  }) => {
2192
- const [h, p] = R(e), s = (w) => {
2315
+ const [m, h] = R(e), s = (w) => {
2193
2316
  l || (v(), i && i(w));
2194
2317
  }, y = (w) => {
2195
- l || ((w.key === " " || w.key === "Enter") && (w.preventDefault(), v()), a && a(w));
2318
+ l || ((w.key === " " || w.key === "Enter") && (w.preventDefault(), v()), c && c(w));
2196
2319
  }, v = () => {
2197
- p(!h), c == null || c(!h);
2198
- }, N = Oe({
2320
+ h(!m), a == null || a(!m);
2321
+ }, L = qe({
2199
2322
  className: t,
2200
- isSelected: h,
2323
+ isSelected: m,
2201
2324
  activeIcon: r,
2202
2325
  inactiveIcon: n,
2203
2326
  disabled: l,
2204
- selected: h,
2205
- onChange: c
2206
- }), L = V(null), I = d || L;
2207
- return /* @__PURE__ */ U(
2208
- j.div,
2327
+ selected: m,
2328
+ onChange: a
2329
+ }), N = j(null), I = d || N;
2330
+ return /* @__PURE__ */ D(
2331
+ U.div,
2209
2332
  {
2210
2333
  role: "switch",
2211
- "aria-checked": h,
2334
+ "aria-checked": m,
2212
2335
  tabIndex: l ? -1 : 0,
2213
2336
  onKeyDown: y,
2214
2337
  onClick: s,
2215
2338
  ref: I,
2216
- className: N.switch,
2339
+ className: L.switch,
2217
2340
  ...o,
2218
2341
  children: [
2219
- /* @__PURE__ */ u("input", { type: "hidden", value: h ? "1" : "0" }),
2220
- /* @__PURE__ */ U(
2221
- j.div,
2342
+ /* @__PURE__ */ u("input", { type: "hidden", value: m ? "1" : "0" }),
2343
+ /* @__PURE__ */ D(
2344
+ U.div,
2222
2345
  {
2223
2346
  layout: !0,
2224
- style: { translate: h ? "50%" : "-50%" },
2347
+ style: { translate: m ? "50%" : "-50%" },
2225
2348
  transition: {
2226
2349
  type: "spring",
2227
2350
  stiffness: 700,
2228
2351
  damping: 30
2229
2352
  },
2230
- className: N.handleContainer,
2353
+ className: L.handleContainer,
2231
2354
  children: [
2232
- /* @__PURE__ */ u("div", { className: N.handle, children: (h ? r : n) && /* @__PURE__ */ u(
2355
+ /* @__PURE__ */ u("div", { className: L.handle, children: (m ? r : n) && /* @__PURE__ */ u(
2233
2356
  Q,
2234
2357
  {
2235
- className: N.icon,
2236
- icon: h ? r : n
2358
+ className: L.icon,
2359
+ icon: m ? r : n
2237
2360
  }
2238
2361
  ) }),
2239
- /* @__PURE__ */ u("div", { className: N.handleStateLayer })
2362
+ /* @__PURE__ */ u("div", { className: L.handleStateLayer })
2240
2363
  ]
2241
2364
  }
2242
2365
  )
2243
2366
  ]
2244
2367
  }
2245
2368
  );
2246
- }, at = ({
2369
+ }, ct = ({
2247
2370
  className: e,
2248
2371
  onClick: t,
2249
2372
  label: r,
2250
2373
  variant: l = "primary",
2251
2374
  href: n,
2252
- icon: c,
2375
+ icon: a,
2253
2376
  selectedTab: i,
2254
- setSelectedTab: a,
2377
+ setSelectedTab: c,
2255
2378
  tabsId: d,
2256
2379
  index: o,
2257
- onTabSelected: h,
2258
- scrollable: p = !1,
2380
+ onTabSelected: m,
2381
+ scrollable: h = !1,
2259
2382
  selected: s = !1,
2260
2383
  ref: y,
2261
2384
  ...v
2262
2385
  }) => {
2263
- const N = V(null), L = y || N, [I, w] = R(s);
2264
- P(() => {
2386
+ const L = j(null), N = y || L, [I, w] = R(s);
2387
+ $(() => {
2265
2388
  s && i == null ? w(!0) : w(i == o && o != null);
2266
- }, [i]), P(() => {
2267
- i == o && h && h({
2268
- ref: L,
2389
+ }, [i]), $(() => {
2390
+ i == o && m && m({
2391
+ ref: N,
2269
2392
  index: o || 0,
2270
2393
  label: r,
2271
- icon: c
2394
+ icon: a
2272
2395
  });
2273
2396
  }, [i]);
2274
- const B = n ? "a" : "button", b = (M) => {
2275
- a && a(o ?? null), t && t(M);
2276
- }, E = qe({
2397
+ const B = n ? "a" : "button", b = (C) => {
2398
+ c && c(o ?? null), t && t(C);
2399
+ }, E = _e({
2277
2400
  className: e,
2278
- onTabSelected: h,
2279
- scrollable: p,
2401
+ onTabSelected: m,
2402
+ scrollable: h,
2280
2403
  selectedTab: i,
2281
2404
  index: o,
2282
2405
  tabsId: d,
2283
2406
  selected: I,
2284
2407
  variant: l,
2285
- icon: c,
2408
+ icon: a,
2286
2409
  label: r,
2287
2410
  isSelected: I,
2288
- setSelectedTab: a,
2411
+ setSelectedTab: c,
2289
2412
  href: n
2290
2413
  });
2291
- return /* @__PURE__ */ U(
2414
+ return /* @__PURE__ */ D(
2292
2415
  B,
2293
2416
  {
2294
2417
  ...v,
2295
2418
  role: "tab",
2296
2419
  "aria-selected": I,
2297
- ref: L,
2420
+ ref: N,
2298
2421
  href: n,
2299
2422
  className: E.tab,
2300
2423
  onClick: b,
@@ -2304,14 +2427,14 @@ const Ct = ({
2304
2427
  ne,
2305
2428
  {
2306
2429
  colorName: l === "primary" && I ? "primary" : "on-surface",
2307
- triggerRef: L
2430
+ triggerRef: N
2308
2431
  }
2309
2432
  ) }),
2310
- /* @__PURE__ */ U("span", { className: E.content, children: [
2311
- c && /* @__PURE__ */ u(Q, { icon: c, className: E.icon }),
2433
+ /* @__PURE__ */ D("span", { className: E.content, children: [
2434
+ a && /* @__PURE__ */ u(Q, { icon: a, className: E.icon }),
2312
2435
  /* @__PURE__ */ u("span", { className: E.label, children: r }),
2313
2436
  I && /* @__PURE__ */ u(
2314
- j.span,
2437
+ U.span,
2315
2438
  {
2316
2439
  layoutId: `underline-${d}`,
2317
2440
  className: E.underline,
@@ -2322,111 +2445,111 @@ const Ct = ({
2322
2445
  ]
2323
2446
  }
2324
2447
  );
2325
- }, Mt = ({
2448
+ }, Bt = ({
2326
2449
  variant: e = "primary",
2327
2450
  onTabSelected: t,
2328
2451
  children: r,
2329
2452
  className: l,
2330
2453
  selectedTab: n,
2331
- setSelectedTab: c,
2454
+ setSelectedTab: a,
2332
2455
  scrollable: i = !1
2333
2456
  }) => {
2334
- const [a, d] = R(
2457
+ const [c, d] = R(
2335
2458
  null
2336
2459
  );
2337
2460
  let o;
2338
- n == 0 || n != null ? o = n : o = a;
2339
- const h = c || d, p = Y.Children.toArray(r).filter(
2340
- (L) => Y.isValidElement(L) && L.type === at
2341
- ), s = Y.useRef(null), y = (L) => {
2342
- if (t == null || t(L), i) {
2343
- const I = s.current, w = L.ref.current;
2461
+ n == 0 || n != null ? o = n : o = c;
2462
+ const m = a || d, h = Y.Children.toArray(r).filter(
2463
+ (N) => Y.isValidElement(N) && N.type === ct
2464
+ ), s = Y.useRef(null), y = (N) => {
2465
+ if (t == null || t(N), i) {
2466
+ const I = s.current, w = N.ref.current;
2344
2467
  if (I && w) {
2345
2468
  const B = w.offsetLeft + w.offsetWidth / 2 - I.offsetWidth / 2;
2346
2469
  I.scrollTo({ left: B, behavior: "smooth" });
2347
2470
  }
2348
2471
  }
2349
- }, v = ve(() => ce(), []), N = _e({
2472
+ }, v = be(() => ce(), []), L = Ke({
2350
2473
  children: r,
2351
2474
  onTabSelected: t,
2352
2475
  scrollable: i,
2353
2476
  selectedTab: o,
2354
- setSelectedTab: h,
2477
+ setSelectedTab: m,
2355
2478
  className: l,
2356
2479
  variant: e
2357
2480
  });
2358
- return /* @__PURE__ */ u("div", { ref: s, role: "tablist", className: N.tabs, children: p.map((L, I) => Y.cloneElement(L, {
2481
+ return /* @__PURE__ */ u("div", { ref: s, role: "tablist", className: L.tabs, children: h.map((N, I) => Y.cloneElement(N, {
2359
2482
  key: I,
2360
2483
  index: I,
2361
2484
  variant: e,
2362
2485
  selectedTab: o,
2363
- setSelectedTab: h,
2486
+ setSelectedTab: m,
2364
2487
  tabsId: v,
2365
2488
  onTabSelected: y,
2366
2489
  scrollable: i
2367
2490
  })) });
2368
- }, St = ({
2491
+ }, $t = ({
2369
2492
  variant: e = "filled",
2370
2493
  disabled: t = !1,
2371
2494
  errorText: r,
2372
2495
  placeholder: l,
2373
2496
  suffix: n,
2374
- name: c,
2497
+ name: a,
2375
2498
  label: i,
2376
- className: a,
2499
+ className: c,
2377
2500
  supportingText: d,
2378
2501
  trailingIcon: o,
2379
- leadingIcon: h,
2380
- type: p = "text",
2502
+ leadingIcon: m,
2503
+ type: h = "text",
2381
2504
  textLine: s = "singleLine",
2382
2505
  autoComplete: y = "on",
2383
2506
  onChange: v,
2384
- value: N,
2385
- showSupportingText: L = !1,
2507
+ value: L,
2508
+ showSupportingText: N = !1,
2386
2509
  ...I
2387
2510
  }) => {
2388
- const [w, B] = R(N ?? ""), [b, E] = R(!1), [M, D] = R(!1), [$, k] = R(
2389
- L
2511
+ const [w, B] = R(L ?? ""), [b, E] = R(!1), [C, V] = R(!1), [P, k] = R(
2512
+ N
2390
2513
  );
2391
- P(() => {
2392
- B(N ?? "");
2393
- }, [N]), P(() => {
2394
- r != null && r.length ? D(!0) : D(!1);
2395
- }, [r]), P(() => {
2396
- L ? k(L) : d != null && d.length ? k(!0) : k(!1);
2397
- }, [$, d]), P(() => {
2398
- b && D(!1);
2514
+ $(() => {
2515
+ B(L ?? "");
2516
+ }, [L]), $(() => {
2517
+ r != null && r.length ? V(!0) : V(!1);
2518
+ }, [r]), $(() => {
2519
+ N ? k(N) : d != null && d.length ? k(!0) : k(!1);
2520
+ }, [P, d]), $(() => {
2521
+ b && V(!1);
2399
2522
  }, [b]);
2400
- const m = Y.useRef(null), S = () => {
2401
- m.current && !b && m.current.focus();
2523
+ const p = Y.useRef(null), M = () => {
2524
+ p.current && !b && p.current.focus();
2402
2525
  }, O = () => {
2403
2526
  E(!0);
2404
- }, _ = (W) => {
2527
+ }, K = (W) => {
2405
2528
  const F = W.target.value;
2406
- B(F), D(!1), typeof v == "function" && v(F);
2529
+ B(F), V(!1), typeof v == "function" && v(F);
2407
2530
  }, Z = () => {
2408
2531
  E(!1);
2409
- }, q = Ke({
2410
- showSupportingText: $,
2532
+ }, q = Ge({
2533
+ showSupportingText: P,
2411
2534
  isFocused: b,
2412
- showErrorIcon: M,
2535
+ showErrorIcon: C,
2413
2536
  disabled: t,
2414
- name: c,
2537
+ name: a,
2415
2538
  label: i,
2416
2539
  autoComplete: y,
2417
- className: a,
2540
+ className: c,
2418
2541
  onChange: v,
2419
2542
  placeholder: l,
2420
2543
  supportingText: d,
2421
- type: p,
2422
- leadingIcon: h,
2544
+ type: h,
2545
+ leadingIcon: m,
2423
2546
  trailingIcon: o,
2424
2547
  variant: e,
2425
2548
  errorText: r,
2426
2549
  value: w,
2427
2550
  suffix: n,
2428
2551
  textLine: s
2429
- }), [A] = R(ce());
2552
+ }), [z] = R(ce());
2430
2553
  let g, x;
2431
2554
  switch (s) {
2432
2555
  case "multiLine":
@@ -2437,15 +2560,15 @@ const Ct = ({
2437
2560
  break;
2438
2561
  case "singleLine":
2439
2562
  default:
2440
- x = "input", g = { type: p };
2563
+ x = "input", g = { type: h };
2441
2564
  break;
2442
2565
  }
2443
- return /* @__PURE__ */ U("div", { className: q.textField, ...I, children: [
2444
- /* @__PURE__ */ U("fieldset", { onClick: S, className: q.content, children: [
2566
+ return /* @__PURE__ */ D("div", { className: q.textField, ...I, children: [
2567
+ /* @__PURE__ */ D("fieldset", { onClick: M, className: q.content, children: [
2445
2568
  /* @__PURE__ */ u("div", { className: q.stateLayer }),
2446
- h && /* @__PURE__ */ u("div", { className: q.leadingIcon, children: Y.isValidElement(h) ? h : /* @__PURE__ */ u(Q, { className: "w-5 h-5", icon: h }) }),
2569
+ m && /* @__PURE__ */ u("div", { className: q.leadingIcon, children: Y.isValidElement(m) ? m : /* @__PURE__ */ u(Q, { className: "w-5 h-5", icon: m }) }),
2447
2570
  !(!b && !w.length || e == "filled") && /* @__PURE__ */ u(
2448
- j.legend,
2571
+ U.legend,
2449
2572
  {
2450
2573
  variants: {
2451
2574
  hidden: { width: 0, padding: 0 },
@@ -2456,21 +2579,21 @@ const Ct = ({
2456
2579
  className: "max-w-full ml-2 px-2 text-body-small h-0",
2457
2580
  transition: { duration: 0.2 },
2458
2581
  children: /* @__PURE__ */ u("span", { className: "transform inline-flex -translate-y-1/2", children: /* @__PURE__ */ u(
2459
- j.span,
2582
+ U.span,
2460
2583
  {
2461
2584
  className: q.label,
2462
2585
  transition: { duration: 0.3 },
2463
- layoutId: A,
2586
+ layoutId: z,
2464
2587
  children: i
2465
2588
  }
2466
2589
  ) })
2467
2590
  }
2468
2591
  ),
2469
- /* @__PURE__ */ U("div", { className: "flex-1 relative", children: [
2592
+ /* @__PURE__ */ D("div", { className: "flex-1 relative", children: [
2470
2593
  (!b && !w.length || e == "filled") && /* @__PURE__ */ u(
2471
- j.label,
2594
+ U.label,
2472
2595
  {
2473
- htmlFor: c,
2596
+ htmlFor: a,
2474
2597
  className: f(
2475
2598
  "absolute left-4 transition-all duration-300",
2476
2599
  {
@@ -2480,11 +2603,11 @@ const Ct = ({
2480
2603
  ),
2481
2604
  transition: { duration: 0.3 },
2482
2605
  children: /* @__PURE__ */ u(
2483
- j.span,
2606
+ U.span,
2484
2607
  {
2485
2608
  className: q.label,
2486
2609
  transition: { duration: 0.3 },
2487
- layoutId: e == "outlined" ? A : void 0,
2610
+ layoutId: e == "outlined" ? z : void 0,
2488
2611
  children: i
2489
2612
  }
2490
2613
  )
@@ -2493,12 +2616,12 @@ const Ct = ({
2493
2616
  /* @__PURE__ */ u(
2494
2617
  x,
2495
2618
  {
2496
- ref: m,
2619
+ ref: p,
2497
2620
  value: w,
2498
- onChange: _,
2621
+ onChange: K,
2499
2622
  className: q.input,
2500
- id: c,
2501
- name: c,
2623
+ id: a,
2624
+ name: a,
2502
2625
  placeholder: b ? l ?? void 0 : "",
2503
2626
  onFocus: O,
2504
2627
  onBlur: Z,
@@ -2511,7 +2634,7 @@ const Ct = ({
2511
2634
  )
2512
2635
  ] }),
2513
2636
  /* @__PURE__ */ u("div", { className: q.activeIndicator }),
2514
- !M && /* @__PURE__ */ U(re, { children: [
2637
+ !C && /* @__PURE__ */ D(te, { children: [
2515
2638
  o && /* @__PURE__ */ u(
2516
2639
  "div",
2517
2640
  {
@@ -2524,7 +2647,7 @@ const Ct = ({
2524
2647
  ),
2525
2648
  !o && n && /* @__PURE__ */ u("span", { className: q.suffix, children: n })
2526
2649
  ] }),
2527
- M && /* @__PURE__ */ u(
2650
+ C && /* @__PURE__ */ u(
2528
2651
  "div",
2529
2652
  {
2530
2653
  className: f(q.trailingIcon, {
@@ -2534,15 +2657,15 @@ const Ct = ({
2534
2657
  Q,
2535
2658
  {
2536
2659
  className: "h-5 text-error",
2537
- icon: lt
2660
+ icon: at
2538
2661
  }
2539
2662
  )
2540
2663
  }
2541
2664
  )
2542
2665
  ] }),
2543
- $ && /* @__PURE__ */ u("p", { className: q.supportingText, children: r != null && r.length ? r : d != null && d.length ? d : " " })
2666
+ P && /* @__PURE__ */ u("p", { className: q.supportingText, children: r != null && r.length ? r : d != null && d.length ? d : " " })
2544
2667
  ] });
2545
- }, st = K(
2668
+ }, it = _(
2546
2669
  "navigationRailItem",
2547
2670
  ({ isSelected: e, icon: t, label: r, variant: l }) => ({
2548
2671
  navigationRailItem: f(
@@ -2583,44 +2706,44 @@ const Ct = ({
2583
2706
  "text-label-medium": l == "vertical"
2584
2707
  })
2585
2708
  })
2586
- ), ct = ({ label: e }) => /* @__PURE__ */ u("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ u("p", { className: "text-label-large text-on-surface-variant", children: e }) }), it = ({
2709
+ ), ut = ({ label: e }) => /* @__PURE__ */ u("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ u("p", { className: "text-label-large text-on-surface-variant", children: e }) }), dt = ({
2587
2710
  className: e,
2588
2711
  onClick: t,
2589
2712
  label: r,
2590
2713
  variant: l = "vertical",
2591
2714
  href: n,
2592
- icon: c,
2715
+ icon: a,
2593
2716
  selectedItem: i,
2594
- setSelectedItem: a,
2717
+ setSelectedItem: c,
2595
2718
  index: d,
2596
2719
  onItemSelected: o,
2597
- selected: h = !1,
2598
- ref: p,
2720
+ selected: m = !1,
2721
+ ref: h,
2599
2722
  transition: s,
2600
2723
  isExtended: y,
2601
2724
  iconSelected: v,
2602
- style: N,
2603
- extendedOnly: L,
2725
+ style: L,
2726
+ extendedOnly: N,
2604
2727
  children: I,
2605
2728
  ...w
2606
2729
  }) => {
2607
2730
  I && (r = I);
2608
- const B = V(null), b = p || B, [E, M] = R(h);
2609
- P(() => {
2610
- h && i == null ? M(!0) : M(i == d && d != null);
2611
- }, [i]), P(() => {
2731
+ const B = j(null), b = h || B, [E, C] = R(m);
2732
+ $(() => {
2733
+ m && i == null ? C(!0) : C(i == d && d != null);
2734
+ }, [i]), $(() => {
2612
2735
  i == d && o && o({
2613
2736
  ref: b,
2614
2737
  index: d || 0,
2615
2738
  label: r,
2616
- icon: c
2739
+ icon: a
2617
2740
  });
2618
2741
  }, [i]);
2619
- const D = n ? "a" : "button", $ = (m) => {
2620
- a && a(d ?? null), t && t(m);
2621
- }, k = st({
2742
+ const V = n ? "a" : "button", P = (p) => {
2743
+ c && c(d ?? null), t && t(p);
2744
+ }, k = it({
2622
2745
  isExtended: y,
2623
- extendedOnly: L,
2746
+ extendedOnly: N,
2624
2747
  className: e,
2625
2748
  onItemSelected: o,
2626
2749
  selectedItem: i,
@@ -2628,19 +2751,19 @@ const Ct = ({
2628
2751
  transition: s,
2629
2752
  selected: E,
2630
2753
  variant: l,
2631
- icon: c,
2754
+ icon: a,
2632
2755
  label: r,
2633
2756
  isSelected: E,
2634
- setSelectedItem: a,
2757
+ setSelectedItem: c,
2635
2758
  href: n,
2636
2759
  children: r,
2637
2760
  iconSelected: v
2638
2761
  });
2639
- return s = { duration: 0.3, ...s }, L && !y ? null : (
2762
+ return s = { duration: 0.3, ...s }, N && !y ? null : (
2640
2763
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2641
2764
  // @ts-expect-error
2642
- /* @__PURE__ */ U(
2643
- D,
2765
+ /* @__PURE__ */ D(
2766
+ V,
2644
2767
  {
2645
2768
  ...w,
2646
2769
  role: "tab",
@@ -2648,11 +2771,11 @@ const Ct = ({
2648
2771
  ref: b,
2649
2772
  href: n,
2650
2773
  className: k.navigationRailItem,
2651
- onClick: $,
2652
- style: { transition: s.duration + "s", ...N },
2774
+ onClick: P,
2775
+ style: { transition: s.duration + "s", ...L },
2653
2776
  children: [
2654
- /* @__PURE__ */ U(
2655
- j.div,
2777
+ /* @__PURE__ */ D(
2778
+ U.div,
2656
2779
  {
2657
2780
  style: {
2658
2781
  transition: l == "horizontal" ? s.duration + `s, gap ${s.duration / 2}s ${s.duration - s.duration / 2}s` : s.duration + `s, gap ${s.duration / 3}s ${s.duration - s.duration / 3}s`
@@ -2660,22 +2783,22 @@ const Ct = ({
2660
2783
  transition: s,
2661
2784
  className: k.container,
2662
2785
  children: [
2663
- /* @__PURE__ */ u(j.div, { layout: !0, className: k.stateLayer }),
2664
- c && /* @__PURE__ */ u(
2786
+ /* @__PURE__ */ u(U.div, { layout: !0, className: k.stateLayer }),
2787
+ a && /* @__PURE__ */ u(
2665
2788
  Q,
2666
2789
  {
2667
- icon: E ? v : c,
2790
+ icon: E ? v : a,
2668
2791
  className: k.icon
2669
2792
  }
2670
2793
  ),
2671
- /* @__PURE__ */ u(z, { children: l == "horizontal" && (() => {
2672
- const m = {
2794
+ /* @__PURE__ */ u(A, { children: l == "horizontal" && (() => {
2795
+ const p = {
2673
2796
  width: 0,
2674
2797
  opacity: 0,
2675
2798
  transition: {
2676
2799
  ...s
2677
2800
  }
2678
- }, S = {
2801
+ }, M = {
2679
2802
  width: "auto",
2680
2803
  opacity: 1,
2681
2804
  transition: {
@@ -2687,11 +2810,11 @@ const Ct = ({
2687
2810
  }
2688
2811
  };
2689
2812
  return /* @__PURE__ */ u(
2690
- j.span,
2813
+ U.span,
2691
2814
  {
2692
- initial: m,
2693
- animate: S,
2694
- exit: m,
2815
+ initial: p,
2816
+ animate: M,
2817
+ exit: p,
2695
2818
  className: k.label,
2696
2819
  children: r
2697
2820
  }
@@ -2700,8 +2823,8 @@ const Ct = ({
2700
2823
  ]
2701
2824
  }
2702
2825
  ),
2703
- /* @__PURE__ */ u(z, { children: l == "vertical" && (() => {
2704
- const m = {
2826
+ /* @__PURE__ */ u(A, { children: l == "vertical" && (() => {
2827
+ const p = {
2705
2828
  height: 0,
2706
2829
  opacity: 0,
2707
2830
  transition: {
@@ -2710,7 +2833,7 @@ const Ct = ({
2710
2833
  duration: 0
2711
2834
  }
2712
2835
  }
2713
- }, S = {
2836
+ }, M = {
2714
2837
  height: "auto",
2715
2838
  opacity: 1,
2716
2839
  transition: {
@@ -2722,11 +2845,11 @@ const Ct = ({
2722
2845
  }
2723
2846
  };
2724
2847
  return /* @__PURE__ */ u(
2725
- j.span,
2848
+ U.span,
2726
2849
  {
2727
- initial: S,
2728
- animate: S,
2729
- exit: m,
2850
+ initial: M,
2851
+ animate: M,
2852
+ exit: p,
2730
2853
  className: k.label,
2731
2854
  transition: s,
2732
2855
  children: r
@@ -2737,7 +2860,7 @@ const Ct = ({
2737
2860
  }
2738
2861
  )
2739
2862
  );
2740
- }, ut = K(
2863
+ }, ft = _(
2741
2864
  "navigationRail",
2742
2865
  ({ isExtended: e, alignment: t }) => ({
2743
2866
  navigationRail: f("flex flex-col left-0 h-full top-0 pt-11", {
@@ -2753,101 +2876,101 @@ const Ct = ({
2753
2876
  "w-fit items-start": e
2754
2877
  })
2755
2878
  })
2756
- ), Bt = ({
2879
+ ), Pt = ({
2757
2880
  variant: e = "standard",
2758
2881
  onItemSelected: t,
2759
2882
  children: r,
2760
2883
  className: l,
2761
2884
  selectedItem: n,
2762
- extended: c,
2885
+ extended: a,
2763
2886
  alignment: i = "top",
2764
- menu: a = {
2887
+ menu: c = {
2765
2888
  closed: {
2766
- icon: ot,
2889
+ icon: st,
2767
2890
  label: "Open menu"
2768
2891
  },
2769
2892
  opened: {
2770
- icon: ge,
2893
+ icon: ue,
2771
2894
  label: "Close menu"
2772
2895
  }
2773
2896
  },
2774
2897
  style: d,
2775
2898
  onExtendedChange: o,
2776
- transition: h,
2777
- setSelectedItem: p
2899
+ transition: m,
2900
+ setSelectedItem: h
2778
2901
  }) => {
2779
- const [s, y] = R(null), [v, N] = R(c);
2780
- let L;
2781
- n == 0 || n != null ? L = n : L = s;
2782
- const I = p || y, w = V(null), B = (k) => {
2902
+ const [s, y] = R(null), [v, L] = R(a);
2903
+ let N;
2904
+ n == 0 || n != null ? N = n : N = s;
2905
+ const I = h || y, w = j(null), B = (k) => {
2783
2906
  t == null || t(k);
2784
2907
  };
2785
2908
  function b(k) {
2786
- const m = [];
2787
- return be.forEach(k, (S) => {
2788
- ee(S) && S.type === Le ? m.push(...b(S.props.children)) : m.push(S);
2789
- }), m;
2909
+ const p = [];
2910
+ return Ne.forEach(k, (M) => {
2911
+ ee(M) && M.type === Le ? p.push(...b(M.props.children)) : p.push(M);
2912
+ }), p;
2790
2913
  }
2791
- const E = b(r), M = E.filter(
2792
- (k) => ee(k) && k.type === ue
2793
- ), D = ut({
2914
+ const E = b(r), C = E.filter(
2915
+ (k) => ee(k) && k.type === fe
2916
+ ), V = ft({
2794
2917
  children: r,
2795
2918
  onItemSelected: t,
2796
- selectedItem: L,
2919
+ selectedItem: N,
2797
2920
  setSelectedItem: I,
2798
2921
  className: l,
2799
2922
  variant: e,
2800
2923
  extended: v,
2801
2924
  isExtended: v,
2802
2925
  alignment: i,
2803
- menu: a,
2804
- transition: h,
2926
+ menu: c,
2927
+ transition: m,
2805
2928
  onExtendedChange: o
2806
2929
  });
2807
- h = { duration: 0.3, ...h };
2808
- const $ = V(!1);
2809
- return $.current = !1, P(() => {
2930
+ m = { duration: 0.3, ...m };
2931
+ const P = j(!1);
2932
+ return P.current = !1, $(() => {
2810
2933
  o == null || o(v ?? !1);
2811
- }, [v]), /* @__PURE__ */ U(
2934
+ }, [v]), /* @__PURE__ */ D(
2812
2935
  "div",
2813
2936
  {
2814
- style: { transition: h.duration + "s", ...d },
2937
+ style: { transition: m.duration + "s", ...d },
2815
2938
  ref: w,
2816
- className: D.navigationRail,
2939
+ className: V.navigationRail,
2817
2940
  children: [
2818
- /* @__PURE__ */ U("div", { className: D.header, children: [
2941
+ /* @__PURE__ */ D("div", { className: V.header, children: [
2819
2942
  /* @__PURE__ */ u(
2820
- xe,
2943
+ ie,
2821
2944
  {
2822
- onClick: () => N(!v),
2823
- label: v ? a == null ? void 0 : a.opened.label : a == null ? void 0 : a.closed.label,
2824
- className: D.menuIcon,
2825
- icon: v ? a.opened.icon : a == null ? void 0 : a.closed.icon
2945
+ onClick: () => L(!v),
2946
+ label: v ? c == null ? void 0 : c.opened.label : c == null ? void 0 : c.closed.label,
2947
+ className: V.menuIcon,
2948
+ icon: v ? c.opened.icon : c == null ? void 0 : c.closed.icon
2826
2949
  }
2827
2950
  ),
2828
- M.length > 0 && le(M[0], {
2829
- transition: h,
2951
+ C.length > 0 && le(C[0], {
2952
+ transition: m,
2830
2953
  isExtended: v,
2831
- className: "!shadow-none mx-5 " + M[0].props.className
2954
+ className: "!shadow-none mx-5 " + C[0].props.className
2832
2955
  })
2833
2956
  ] }),
2834
- /* @__PURE__ */ u("div", { className: D.segments, children: (() => {
2957
+ /* @__PURE__ */ u("div", { className: V.segments, children: (() => {
2835
2958
  let k = 0;
2836
- return E.map((m) => ee(m) && m.type === it ? le(
2837
- m,
2959
+ return E.map((p) => ee(p) && p.type === dt ? le(
2960
+ p,
2838
2961
  {
2839
2962
  key: k,
2840
2963
  index: k++,
2841
2964
  // Utilise et incrémente le compteur dédié
2842
2965
  variant: v ? "horizontal" : "vertical",
2843
- selectedItem: L,
2966
+ selectedItem: N,
2844
2967
  setSelectedItem: I,
2845
2968
  onItemSelected: B,
2846
- transition: h,
2847
- extendedOnly: $.current,
2969
+ transition: m,
2970
+ extendedOnly: P.current,
2848
2971
  isExtended: v
2849
2972
  }
2850
- ) : ee(m) && m.type === ue ? null : ee(m) && m.type === ct ? ($.current = !0, v ? le(m, {}) : null) : m);
2973
+ ) : ee(p) && p.type === fe ? null : ee(p) && p.type === ut ? (P.current = !0, v ? le(p, {}) : null) : p);
2851
2974
  })() }),
2852
2975
  /* @__PURE__ */ u("div", { className: "flex-1 max-h-[160px]" })
2853
2976
  ]
@@ -2855,49 +2978,51 @@ const Ct = ({
2855
2978
  );
2856
2979
  };
2857
2980
  export {
2858
- Ae as Button,
2859
- Nt as Card,
2860
- It as Carousel,
2861
- Te as CarouselItem,
2862
- he as CustomScroll,
2863
- Et as Divider,
2864
- ue as Fab,
2981
+ ze as Button,
2982
+ Et as Card,
2983
+ kt as Carousel,
2984
+ et as CarouselItem,
2985
+ ge as CustomScroll,
2986
+ tt as Divider,
2987
+ fe as Fab,
2865
2988
  Q as Icon,
2866
- xe as IconButton,
2867
- Bt as NavigationRail,
2868
- it as NavigationRailItem,
2869
- ct as NavigationRailSection,
2870
- Ye as ProgressIndicator,
2989
+ ie as IconButton,
2990
+ Pt as NavigationRail,
2991
+ dt as NavigationRailItem,
2992
+ ut as NavigationRailSection,
2993
+ Ze as ProgressIndicator,
2871
2994
  ne as RippleEffect,
2872
- kt as Slider,
2873
- bt as SmoothScroll,
2995
+ Rt as SlideSheet,
2996
+ St as Slider,
2997
+ Lt as SmoothScroll,
2874
2998
  Ct as Snackbar,
2875
- Rt as Switch,
2876
- Je as SyncedFixedWrapper,
2877
- at as Tab,
2878
- Mt as Tabs,
2879
- St as TextField,
2880
- Lt as ThemeProvider,
2881
- ye as ToolTip,
2882
- Pe as buttonStyle,
2883
- $e as cardStyle,
2999
+ Mt as Switch,
3000
+ Qe as SyncedFixedWrapper,
3001
+ ct as Tab,
3002
+ Bt as Tabs,
3003
+ $t as TextField,
3004
+ It as ThemeProvider,
3005
+ we as ToolTip,
3006
+ $e as buttonStyle,
3007
+ Pe as cardStyle,
2884
3008
  We as carouselItemStyle,
2885
3009
  De as carouselStyle,
2886
3010
  f as classNames,
2887
- Me as classnames,
2888
- Ze as customScrollStyle,
2889
- K as defaultClassNames,
3011
+ Ce as classnames,
3012
+ Je as customScrollStyle,
3013
+ _ as defaultClassNames,
2890
3014
  Ve as dividerStyle,
2891
- Ue as fabStyle,
3015
+ je as fabStyle,
2892
3016
  Be as getClassNames,
2893
- je as iconButtonStyle,
2894
- ze as normalize,
3017
+ Ue as iconButtonStyle,
3018
+ Te as normalize,
2895
3019
  Fe as progressIndicatorStyle,
3020
+ Xe as slideSheetStyle,
2896
3021
  He as sliderStyle,
2897
- Xe as snackbarStyle,
2898
- Oe as switchStyle,
2899
- qe as tabStyle,
2900
- _e as tabsStyle,
2901
- Ke as textFieldStyle,
2902
- Ge as toolStyle
3022
+ Oe as snackbarStyle,
3023
+ qe as switchStyle,
3024
+ _e as tabStyle,
3025
+ Ke as tabsStyle,
3026
+ Ge as textFieldStyle,
3027
+ Ye as toolStyle
2903
3028
  };