@sikka/hawa 0.18.20-next → 0.18.22-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -116,7 +116,7 @@ var AdCard = ({ orientation, ...props }) => {
116
116
  };
117
117
 
118
118
  // components/elements/cards/PricingCard.tsx
119
- import React7 from "react";
119
+ import React9 from "react";
120
120
 
121
121
  // components/elements/Button.tsx
122
122
  import * as React5 from "react";
@@ -127,6 +127,7 @@ import React4 from "react";
127
127
  var Loading = ({
128
128
  design = "spinner",
129
129
  size = "sm",
130
+ themeMode = "light",
130
131
  color,
131
132
  ...props
132
133
  }) => {
@@ -267,7 +268,10 @@ var Loading = ({
267
268
  /* @__PURE__ */ React4.createElement(
268
269
  "circle",
269
270
  {
270
- className: "circle-track",
271
+ className: cn("circle-track", {
272
+ "hawa-stroke-primary-foreground": themeMode === "dark",
273
+ "hawa-stroke-primary": themeMode === "light"
274
+ }),
271
275
  cx: "20",
272
276
  cy: "20",
273
277
  r: "17.5",
@@ -279,7 +283,10 @@ var Loading = ({
279
283
  /* @__PURE__ */ React4.createElement(
280
284
  "circle",
281
285
  {
282
- className: "circle-car",
286
+ className: cn("circle-car", {
287
+ "hawa-stroke-primary-foreground": themeMode === "dark",
288
+ "hawa-stroke-primary": themeMode === "light"
289
+ }),
283
290
  cx: "20",
284
291
  cy: "20",
285
292
  r: "17.5",
@@ -312,8 +319,8 @@ var buttonVariants = cva(
312
319
  size: {
313
320
  default: "hawa-h-10 hawa-px-4 hawa-py-2",
314
321
  heightless: "hawa-px-4 hawa-py-4",
315
- xs: "hawa-h-fit hawa-py-1 hawa-text-[10px] hawa-px-2 ",
316
- sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
322
+ xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
323
+ sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
317
324
  lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
318
325
  xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
319
326
  icon: "hawa-h-10 hawa-w-10",
@@ -352,9 +359,10 @@ var Button = React5.forwardRef(
352
359
  isLoading ? /* @__PURE__ */ React5.createElement(
353
360
  Loading,
354
361
  {
355
- design: "dots-pulse",
362
+ design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
363
+ themeMode: variant === "outline" ? "light" : "dark",
356
364
  color: loadingColor,
357
- size: size === "sm" ? "xs" : "button"
365
+ size: size === "sm" || size === "xs" ? "xs" : "button"
358
366
  }
359
367
  ) : children
360
368
  );
@@ -443,6 +451,114 @@ var CardFooter = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE_
443
451
  ));
444
452
  CardFooter.displayName = "CardFooter";
445
453
 
454
+ // components/elements/Chip.tsx
455
+ import React7 from "react";
456
+ var Chip = React7.forwardRef(
457
+ ({
458
+ label,
459
+ size = "normal",
460
+ icon,
461
+ color,
462
+ radius = "inherit",
463
+ dotType,
464
+ ...rest
465
+ }, ref) => {
466
+ let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
467
+ let radiusStyles = {
468
+ inherit: " hawa-rounded",
469
+ full: "hawa-rounded-full",
470
+ none: "hawa-rounded-none"
471
+ };
472
+ let sizeStyles = {
473
+ small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
474
+ normal: "hawa-h-fit hawa-text-xs",
475
+ large: "hawa-text-base"
476
+ };
477
+ let dotStyles = {
478
+ small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
479
+ normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
480
+ large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
481
+ };
482
+ let dotTypeStyles = {
483
+ available: "hawa-bg-green-500",
484
+ unavailable: "hawa-bg-red-500"
485
+ };
486
+ let colorStyles = {
487
+ green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
488
+ blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
489
+ red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
490
+ yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
491
+ orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
492
+ purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
493
+ cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
494
+ hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
495
+ oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
496
+ };
497
+ if (label) {
498
+ return /* @__PURE__ */ React7.createElement(
499
+ "span",
500
+ {
501
+ ...rest,
502
+ ref,
503
+ className: cn(
504
+ defaultStyles,
505
+ sizeStyles[size],
506
+ radiusStyles[radius],
507
+ color ? colorStyles[color] : "hawa-border hawa-bg-none"
508
+ )
509
+ },
510
+ dotType && /* @__PURE__ */ React7.createElement(
511
+ "span",
512
+ {
513
+ className: cn(dotStyles[size], dotTypeStyles[dotType])
514
+ }
515
+ ),
516
+ icon && icon,
517
+ label
518
+ );
519
+ } else {
520
+ return /* @__PURE__ */ React7.createElement(
521
+ "span",
522
+ {
523
+ ...rest,
524
+ ref,
525
+ className: cn(
526
+ "hawa-w-2 hawa-h-2 hawa-rounded-full",
527
+ color ? colorStyles[color] : "hawa-border hawa-bg-none"
528
+ )
529
+ }
530
+ );
531
+ }
532
+ }
533
+ );
534
+
535
+ // components/elements/Skeleton.tsx
536
+ import React8 from "react";
537
+ function Skeleton({
538
+ className,
539
+ content,
540
+ animation = "pulse",
541
+ ...props
542
+ }) {
543
+ const animationStyles = {
544
+ none: "hawa-rounded hawa-bg-muted",
545
+ pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
546
+ shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
547
+ };
548
+ return /* @__PURE__ */ React8.createElement(
549
+ "div",
550
+ {
551
+ className: cn(
552
+ animationStyles[animation],
553
+ content && "hawa-flex hawa-flex-col hawa-justify-center hawa-items-center",
554
+ className
555
+ ),
556
+ ...props
557
+ },
558
+ content && content
559
+ );
560
+ }
561
+
446
562
  // components/elements/cards/PricingCard.tsx
447
563
  var PricingCard = ({
448
564
  size = "medium",
@@ -456,7 +572,7 @@ var PricingCard = ({
456
572
  medium: "hawa-mx-1 hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
457
573
  large: "hawa-mx-1 hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
458
574
  };
459
- return /* @__PURE__ */ React7.createElement(
575
+ return /* @__PURE__ */ React9.createElement(
460
576
  Card,
461
577
  {
462
578
  dir: direction,
@@ -466,13 +582,13 @@ var PricingCard = ({
466
582
  "hawa-flex hawa-flex-col hawa-gap-4 hawa-rounded hawa-p-4 "
467
583
  )
468
584
  },
469
- props.discount && /* @__PURE__ */ React7.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }),
585
+ props.discount && /* @__PURE__ */ React9.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }),
470
586
  " ",
471
- /* @__PURE__ */ React7.createElement("h5", { className: "hawa-text-md 0 hawa-font-bold hawa-text-primary/70" }, props.texts.title),
472
- /* @__PURE__ */ React7.createElement("div", { className: " hawa-text-primary hawa-flex hawa-items-baseline" }, /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price), /* @__PURE__ */ React7.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, props.texts.currencyText)), /* @__PURE__ */ React7.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", props.texts.cycleText)),
473
- /* @__PURE__ */ React7.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, props.texts.subtitle),
474
- props.features && /* @__PURE__ */ React7.createElement("ul", { role: "list", className: "hawa-space-y-0 " }, (_a = props.features) == null ? void 0 : _a.map((feature, o) => {
475
- return /* @__PURE__ */ React7.createElement(
587
+ /* @__PURE__ */ React9.createElement("h5", { className: "hawa-text-md 0 hawa-font-bold hawa-text-primary/70" }, props.texts.title),
588
+ /* @__PURE__ */ React9.createElement("div", { className: " hawa-text-primary hawa-flex hawa-items-baseline" }, props.isLoading ? /* @__PURE__ */ React9.createElement(Skeleton, { className: "hawa-w-full hawa-max-w-[200px] hawa-h-[48px] hawa-p-0 " }) : /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price), /* @__PURE__ */ React9.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, props.texts.currencyText)), /* @__PURE__ */ React9.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", props.texts.cycleText))),
589
+ /* @__PURE__ */ React9.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, props.texts.subtitle),
590
+ props.features && /* @__PURE__ */ React9.createElement("ul", { role: "list", className: "hawa-space-y-0 " }, (_a = props.features) == null ? void 0 : _a.map((feature, o) => {
591
+ return /* @__PURE__ */ React9.createElement(
476
592
  "li",
477
593
  {
478
594
  key: o,
@@ -481,7 +597,7 @@ var PricingCard = ({
481
597
  !feature.included && "hawa-line-through"
482
598
  )
483
599
  },
484
- feature.included ? /* @__PURE__ */ React7.createElement(
600
+ feature.included ? /* @__PURE__ */ React9.createElement(
485
601
  "svg",
486
602
  {
487
603
  "aria-label": "Check Icon",
@@ -490,7 +606,7 @@ var PricingCard = ({
490
606
  fill: "currentColor",
491
607
  viewBox: "0 0 20 20"
492
608
  },
493
- /* @__PURE__ */ React7.createElement(
609
+ /* @__PURE__ */ React9.createElement(
494
610
  "path",
495
611
  {
496
612
  fillRule: "evenodd",
@@ -498,11 +614,11 @@ var PricingCard = ({
498
614
  clipRule: "evenodd"
499
615
  }
500
616
  )
501
- ) : /* @__PURE__ */ React7.createElement("div", { className: "hawa-w-4 hawa-h-4 hawa-rounded-full hawa-bg-primary/10 hawa-m-2 hawa-mx-2.5" }),
502
- /* @__PURE__ */ React7.createElement("span", { className: "hawa-flex hawa-items-center hawa-flex-row hawa-gap-2 hawa-text-center hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React7.createElement(Chip, { label: "soon", color: "oceanic", size: "small" }))
617
+ ) : /* @__PURE__ */ React9.createElement("div", { className: "hawa-w-4 hawa-h-4 hawa-rounded-full hawa-bg-primary/10 hawa-m-2 hawa-mx-2.5" }),
618
+ /* @__PURE__ */ React9.createElement("span", { className: "hawa-flex hawa-items-center hawa-flex-row hawa-gap-2 hawa-text-center hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React9.createElement(Chip, { label: "soon", color: "oceanic", size: "small" }))
503
619
  );
504
620
  })),
505
- /* @__PURE__ */ React7.createElement(
621
+ /* @__PURE__ */ React9.createElement(
506
622
  Button,
507
623
  {
508
624
  onClick: props.onPlanClicked,
@@ -515,16 +631,16 @@ var PricingCard = ({
515
631
  };
516
632
 
517
633
  // components/elements/cards/ItemCard.tsx
518
- import React10, { useEffect as useEffect2, useState as useState3 } from "react";
634
+ import React12, { useEffect as useEffect2, useState as useState3 } from "react";
519
635
 
520
636
  // components/elements/DropdownMenu.tsx
521
- import * as React8 from "react";
637
+ import * as React10 from "react";
522
638
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
523
639
  var DropdownMenuRoot = DropdownMenuPrimitive.Root;
524
640
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
525
641
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
526
642
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
527
- var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(
643
+ var DropdownMenuSubTrigger = React10.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React10.createElement(
528
644
  DropdownMenuPrimitive.SubTrigger,
529
645
  {
530
646
  ref,
@@ -535,9 +651,9 @@ var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ..
535
651
  ),
536
652
  ...props
537
653
  },
538
- /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
654
+ /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
539
655
  " ",
540
- /* @__PURE__ */ React8.createElement(
656
+ /* @__PURE__ */ React10.createElement(
541
657
  "svg",
542
658
  {
543
659
  "aria-label": "Chevron Right Icon",
@@ -549,7 +665,7 @@ var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ..
549
665
  width: "1em",
550
666
  className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
551
667
  },
552
- /* @__PURE__ */ React8.createElement(
668
+ /* @__PURE__ */ React10.createElement(
553
669
  "path",
554
670
  {
555
671
  fillRule: "evenodd",
@@ -559,7 +675,7 @@ var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ..
559
675
  )
560
676
  ));
561
677
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
562
- var DropdownMenuSubContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
678
+ var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
563
679
  DropdownMenuPrimitive.SubContent,
564
680
  {
565
681
  ref,
@@ -571,7 +687,7 @@ var DropdownMenuSubContent = React8.forwardRef(({ className, ...props }, ref) =>
571
687
  }
572
688
  ));
573
689
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
574
- var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React8.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React8.createElement(
690
+ var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React10.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React10.createElement(
575
691
  DropdownMenuPrimitive.Content,
576
692
  {
577
693
  ref,
@@ -584,8 +700,8 @@ var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...pro
584
700
  }
585
701
  )));
586
702
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
587
- var DropdownMenuItem = React8.forwardRef(({ className, inset, slug, ...props }, ref) => {
588
- return /* @__PURE__ */ React8.createElement("a", { href: slug }, /* @__PURE__ */ React8.createElement(
703
+ var DropdownMenuItem = React10.forwardRef(({ className, inset, slug, ...props }, ref) => {
704
+ return /* @__PURE__ */ React10.createElement("a", { href: slug }, /* @__PURE__ */ React10.createElement(
589
705
  DropdownMenuPrimitive.Item,
590
706
  {
591
707
  disabled: props.disabled,
@@ -598,14 +714,14 @@ var DropdownMenuItem = React8.forwardRef(({ className, inset, slug, ...props },
598
714
  ),
599
715
  ...props
600
716
  },
601
- /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
717
+ /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
602
718
  props.end && props.end,
603
- !props.end && props.shortcut && /* @__PURE__ */ React8.createElement(DropdownMenuShortcut, null, props.shortcut),
604
- !props.end && props.badged && /* @__PURE__ */ React8.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-bg-red-500 hawa-rounded-full" })
719
+ !props.end && props.shortcut && /* @__PURE__ */ React10.createElement(DropdownMenuShortcut, null, props.shortcut),
720
+ !props.end && props.badged && /* @__PURE__ */ React10.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-bg-red-500 hawa-rounded-full" })
605
721
  ));
606
722
  });
607
723
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
608
- var DropdownMenuCheckboxItem = React8.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React8.createElement(
724
+ var DropdownMenuCheckboxItem = React10.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React10.createElement(
609
725
  DropdownMenuPrimitive.CheckboxItem,
610
726
  {
611
727
  ref,
@@ -616,7 +732,7 @@ var DropdownMenuCheckboxItem = React8.forwardRef(({ className, children, checked
616
732
  checked,
617
733
  ...props
618
734
  },
619
- /* @__PURE__ */ React8.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React8.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React8.createElement(
735
+ /* @__PURE__ */ React10.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React10.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React10.createElement(
620
736
  "svg",
621
737
  {
622
738
  "aria-label": "Check Mark",
@@ -627,12 +743,12 @@ var DropdownMenuCheckboxItem = React8.forwardRef(({ className, children, checked
627
743
  height: "0.60em",
628
744
  width: "0.60em"
629
745
  },
630
- /* @__PURE__ */ React8.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
746
+ /* @__PURE__ */ React10.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
631
747
  ), " ")),
632
748
  children
633
749
  ));
634
750
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
635
- var DropdownMenuRadioItem = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React8.createElement(
751
+ var DropdownMenuRadioItem = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React10.createElement(
636
752
  DropdownMenuPrimitive.RadioItem,
637
753
  {
638
754
  ref,
@@ -642,7 +758,7 @@ var DropdownMenuRadioItem = React8.forwardRef(({ className, children, ...props }
642
758
  ),
643
759
  ...props
644
760
  },
645
- /* @__PURE__ */ React8.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React8.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React8.createElement(
761
+ /* @__PURE__ */ React10.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React10.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React10.createElement(
646
762
  "svg",
647
763
  {
648
764
  xmlns: "http://www.w3.org/2000/svg",
@@ -657,12 +773,12 @@ var DropdownMenuRadioItem = React8.forwardRef(({ className, children, ...props }
657
773
  strokeLinejoin: "round",
658
774
  className: "hawa-h-2 hawa-w-2 hawa-fill-current"
659
775
  },
660
- /* @__PURE__ */ React8.createElement("circle", { cx: "12", cy: "12", r: "10" })
776
+ /* @__PURE__ */ React10.createElement("circle", { cx: "12", cy: "12", r: "10" })
661
777
  ))),
662
778
  children
663
779
  ));
664
780
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
665
- var DropdownMenuLabel = React8.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React8.createElement(
781
+ var DropdownMenuLabel = React10.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React10.createElement(
666
782
  DropdownMenuPrimitive.Label,
667
783
  {
668
784
  ref,
@@ -675,7 +791,7 @@ var DropdownMenuLabel = React8.forwardRef(({ className, inset, ...props }, ref)
675
791
  }
676
792
  ));
677
793
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
678
- var DropdownMenuSeparator = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
794
+ var DropdownMenuSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
679
795
  DropdownMenuPrimitive.Separator,
680
796
  {
681
797
  ref,
@@ -688,7 +804,7 @@ var DropdownMenuShortcut = ({
688
804
  className,
689
805
  ...props
690
806
  }) => {
691
- return /* @__PURE__ */ React8.createElement(
807
+ return /* @__PURE__ */ React10.createElement(
692
808
  "span",
693
809
  {
694
810
  className: cn(
@@ -727,7 +843,7 @@ var DropdownMenu = ({
727
843
  default: "hawa-px-2 hawa-py-3 ",
728
844
  sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
729
845
  };
730
- return /* @__PURE__ */ React8.createElement(
846
+ return /* @__PURE__ */ React10.createElement(
731
847
  DropdownMenuRoot,
732
848
  {
733
849
  onOpenChange,
@@ -735,8 +851,8 @@ var DropdownMenu = ({
735
851
  modal: false,
736
852
  dir: direction
737
853
  },
738
- /* @__PURE__ */ React8.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
739
- /* @__PURE__ */ React8.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React8.createElement(
854
+ /* @__PURE__ */ React10.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
855
+ /* @__PURE__ */ React10.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React10.createElement(
740
856
  DropdownMenuContent,
741
857
  {
742
858
  side,
@@ -752,13 +868,13 @@ var DropdownMenu = ({
752
868
  header && header,
753
869
  items && items.map((item, index) => {
754
870
  if (item.itemType === "separator") {
755
- return /* @__PURE__ */ React8.createElement(DropdownMenuSeparator, { key: index });
871
+ return /* @__PURE__ */ React10.createElement(DropdownMenuSeparator, { key: index });
756
872
  } else if (item.itemType === "label") {
757
- return /* @__PURE__ */ React8.createElement(DropdownMenuLabel, { key: index }, item.label);
873
+ return /* @__PURE__ */ React10.createElement(DropdownMenuLabel, { key: index }, item.label);
758
874
  } else if (item.itemType === "custom") {
759
- return /* @__PURE__ */ React8.createElement("div", { key: index }, item.content);
875
+ return /* @__PURE__ */ React10.createElement("div", { key: index }, item.content);
760
876
  } else {
761
- return item.subitems ? /* @__PURE__ */ React8.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React8.createElement(
877
+ return item.subitems ? /* @__PURE__ */ React10.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React10.createElement(
762
878
  DropdownMenuSubTrigger,
763
879
  {
764
880
  className: cn(sizeStyles[size]),
@@ -766,7 +882,7 @@ var DropdownMenu = ({
766
882
  },
767
883
  item.icon && item.icon,
768
884
  item.label && item.label
769
- ), /* @__PURE__ */ React8.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React8.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React8.createElement(
885
+ ), /* @__PURE__ */ React10.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React10.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React10.createElement(
770
886
  DropdownMenuItem,
771
887
  {
772
888
  slug: subitem.slug,
@@ -793,7 +909,7 @@ var DropdownMenu = ({
793
909
  },
794
910
  subitem.icon && subitem.icon,
795
911
  subitem.label && subitem.label
796
- ))))) : /* @__PURE__ */ React8.createElement(
912
+ ))))) : /* @__PURE__ */ React10.createElement(
797
913
  DropdownMenuItem,
798
914
  {
799
915
  slug: item.slug,
@@ -846,12 +962,12 @@ var DropdownMenu = ({
846
962
  };
847
963
 
848
964
  // components/elements/StopPropagationWrapper.tsx
849
- import React9 from "react";
965
+ import React11 from "react";
850
966
  var StopPropagationWrapper = (props) => {
851
967
  const handleClick = (e) => {
852
968
  e.stopPropagation();
853
969
  };
854
- return /* @__PURE__ */ React9.createElement("div", { onClick: handleClick }, props.children);
970
+ return /* @__PURE__ */ React11.createElement("div", { onClick: handleClick }, props.children);
855
971
  };
856
972
 
857
973
  // components/elements/cards/ItemCard.tsx
@@ -896,7 +1012,7 @@ var ItemCard = ({
896
1012
  };
897
1013
  return () => window.onclick = null;
898
1014
  }, [openActionHeader]);
899
- return /* @__PURE__ */ React10.createElement(
1015
+ return /* @__PURE__ */ React12.createElement(
900
1016
  "div",
901
1017
  {
902
1018
  className: cn(
@@ -912,7 +1028,7 @@ var ItemCard = ({
912
1028
  },
913
1029
  ...props
914
1030
  },
915
- cardImage && /* @__PURE__ */ React10.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ React10.createElement(
1031
+ cardImage && /* @__PURE__ */ React12.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ React12.createElement(
916
1032
  "img",
917
1033
  {
918
1034
  src: cardImage,
@@ -921,7 +1037,7 @@ var ItemCard = ({
921
1037
  clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
922
1038
  )
923
1039
  }
924
- ), clickableImage && /* @__PURE__ */ React10.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React10.createElement("div", { className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-center hawa-opacity-0 hawa-transition-all group-hover:hawa-opacity-100 " }, /* @__PURE__ */ React10.createElement(
1040
+ ), clickableImage && /* @__PURE__ */ React12.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React12.createElement("div", { className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-center hawa-opacity-0 hawa-transition-all group-hover:hawa-opacity-100 " }, /* @__PURE__ */ React12.createElement(
925
1041
  Button,
926
1042
  {
927
1043
  variant: "secondary",
@@ -931,19 +1047,19 @@ var ItemCard = ({
931
1047
  clickableImageActionIcon,
932
1048
  clickableImageActionText || "Click"
933
1049
  )))),
934
- /* @__PURE__ */ React10.createElement("div", { className: "hawa-relative hawa-w-full hawa-p-4 xs:hawa-p-6 xs:hawa-pb-2 xs:hawa-px-2" }, headerActions && /* @__PURE__ */ React10.createElement("div", { className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-flex hawa-justify-end hawa-pr-3 hawa-pt-3" }, /* @__PURE__ */ React10.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React10.createElement(
1050
+ /* @__PURE__ */ React12.createElement("div", { className: "hawa-relative hawa-w-full hawa-p-4 xs:hawa-p-6 xs:hawa-pb-2 xs:hawa-px-2" }, headerActions && /* @__PURE__ */ React12.createElement("div", { className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-flex hawa-justify-end hawa-pr-3 hawa-pt-3" }, /* @__PURE__ */ React12.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React12.createElement(
935
1051
  DropdownMenu,
936
1052
  {
937
1053
  items: headerActions,
938
- trigger: /* @__PURE__ */ React10.createElement(
1054
+ trigger: /* @__PURE__ */ React12.createElement(
939
1055
  Button,
940
1056
  {
941
1057
  variant: "ghost",
942
1058
  size: "smallIcon",
943
1059
  onClick: handleOpenActionHeader
944
1060
  },
945
- /* @__PURE__ */ React10.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
946
- /* @__PURE__ */ React10.createElement(
1061
+ /* @__PURE__ */ React12.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
1062
+ /* @__PURE__ */ React12.createElement(
947
1063
  "svg",
948
1064
  {
949
1065
  className: "hawa-h-5 hawa-w-5",
@@ -951,11 +1067,11 @@ var ItemCard = ({
951
1067
  fill: "currentColor",
952
1068
  viewBox: "0 0 20 20"
953
1069
  },
954
- /* @__PURE__ */ React10.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
1070
+ /* @__PURE__ */ React12.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
955
1071
  )
956
1072
  )
957
1073
  }
958
- ))), /* @__PURE__ */ React10.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ React10.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ React10.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ React10.createElement(
1074
+ ))), /* @__PURE__ */ React12.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ React12.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ React12.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ React12.createElement(
959
1075
  "div",
960
1076
  {
961
1077
  className: cn(
@@ -964,19 +1080,19 @@ var ItemCard = ({
964
1080
  )
965
1081
  },
966
1082
  counts,
967
- /* @__PURE__ */ React10.createElement(StopPropagationWrapper, null, actions)
1083
+ /* @__PURE__ */ React12.createElement(StopPropagationWrapper, null, actions)
968
1084
  ) : null)
969
1085
  );
970
1086
  };
971
1087
 
972
1088
  // components/elements/cards/LandingCard.tsx
973
- import React11 from "react";
1089
+ import React13 from "react";
974
1090
  var LandingCard = (props) => {
975
- return /* @__PURE__ */ React11.createElement(Card, { className: props.className }, /* @__PURE__ */ React11.createElement(CardHeader, null, props.icon, /* @__PURE__ */ React11.createElement(CardTitle, null, props.title), /* @__PURE__ */ React11.createElement(CardDescription, null, props.subtitle)));
1091
+ return /* @__PURE__ */ React13.createElement(Card, { className: props.className }, /* @__PURE__ */ React13.createElement(CardHeader, null, props.icon, /* @__PURE__ */ React13.createElement(CardTitle, null, props.title), /* @__PURE__ */ React13.createElement(CardDescription, null, props.subtitle)));
976
1092
  };
977
1093
 
978
1094
  // components/elements/PinInput.tsx
979
- import React12, { useEffect as useEffect3, useState as useState4 } from "react";
1095
+ import React14, { useEffect as useEffect3, useState as useState4 } from "react";
980
1096
  var PinInput = ({
981
1097
  label,
982
1098
  icon,
@@ -1019,13 +1135,13 @@ var PinInput = ({
1019
1135
  }
1020
1136
  }
1021
1137
  };
1022
- return /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React12.createElement(
1138
+ return /* @__PURE__ */ React14.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React14.createElement(
1023
1139
  "div",
1024
1140
  {
1025
1141
  className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
1026
1142
  dir: "ltr"
1027
1143
  },
1028
- pin.map((value, index) => /* @__PURE__ */ React12.createElement(
1144
+ pin.map((value, index) => /* @__PURE__ */ React14.createElement(
1029
1145
  "input",
1030
1146
  {
1031
1147
  key: index,
@@ -1044,7 +1160,7 @@ var PinInput = ({
1044
1160
  ...props
1045
1161
  }
1046
1162
  ))
1047
- ), /* @__PURE__ */ React12.createElement(
1163
+ ), /* @__PURE__ */ React14.createElement(
1048
1164
  "p",
1049
1165
  {
1050
1166
  className: cn(
@@ -1057,7 +1173,7 @@ var PinInput = ({
1057
1173
  };
1058
1174
 
1059
1175
  // components/elements/PhoneInput.tsx
1060
- import React17, { useState as useState5, useRef as useRef2, useEffect as useEffect4 } from "react";
1176
+ import React18, { useState as useState5, useRef as useRef2, useEffect as useEffect4 } from "react";
1061
1177
 
1062
1178
  // components/countries.ts
1063
1179
  var countries = [
@@ -2754,17 +2870,17 @@ var countries_default = countries;
2754
2870
 
2755
2871
  // components/elements/Select.tsx
2756
2872
  import clsx2 from "clsx";
2757
- import React16 from "react";
2873
+ import React17 from "react";
2758
2874
  import ReactSelect from "react-select";
2759
2875
  import CreatableSelect from "react-select/creatable";
2760
2876
 
2761
2877
  // components/elements/Label.tsx
2762
- import * as React14 from "react";
2878
+ import * as React16 from "react";
2763
2879
 
2764
2880
  // components/elements/Tooltip.tsx
2765
- import React13 from "react";
2881
+ import React15 from "react";
2766
2882
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
2767
- var TooltipContent = React13.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React13.createElement(
2883
+ var TooltipContent = React15.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React15.createElement(
2768
2884
  TooltipPrimitive.Content,
2769
2885
  {
2770
2886
  ref,
@@ -2777,7 +2893,7 @@ var TooltipContent = React13.forwardRef(({ className, sideOffset = 4, ...props }
2777
2893
  }
2778
2894
  ));
2779
2895
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
2780
- var TooltipArrow = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
2896
+ var TooltipArrow = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
2781
2897
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
2782
2898
  var Tooltip = ({
2783
2899
  side,
@@ -2792,13 +2908,13 @@ var Tooltip = ({
2792
2908
  delayDuration = 300,
2793
2909
  ...props
2794
2910
  }) => {
2795
- return /* @__PURE__ */ React13.createElement(
2911
+ return /* @__PURE__ */ React15.createElement(
2796
2912
  TooltipPrimitive.TooltipProvider,
2797
2913
  {
2798
2914
  delayDuration,
2799
2915
  ...providerProps
2800
2916
  },
2801
- /* @__PURE__ */ React13.createElement(
2917
+ /* @__PURE__ */ React15.createElement(
2802
2918
  TooltipPrimitive.Root,
2803
2919
  {
2804
2920
  open,
@@ -2806,14 +2922,14 @@ var Tooltip = ({
2806
2922
  onOpenChange,
2807
2923
  ...props
2808
2924
  },
2809
- /* @__PURE__ */ React13.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
2810
- /* @__PURE__ */ React13.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
2925
+ /* @__PURE__ */ React15.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
2926
+ /* @__PURE__ */ React15.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
2811
2927
  )
2812
2928
  );
2813
2929
  };
2814
2930
 
2815
2931
  // components/elements/Label.tsx
2816
- var Label2 = React14.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React14.createElement("div", { className: "hawa-transition-all hawa-flex hawa-flex-row hawa-gap-1 hawa-items-center" }, /* @__PURE__ */ React14.createElement(
2932
+ var Label2 = React16.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React16.createElement("div", { className: "hawa-transition-all hawa-flex hawa-flex-row hawa-gap-1 hawa-items-center" }, /* @__PURE__ */ React16.createElement(
2817
2933
  "label",
2818
2934
  {
2819
2935
  ref,
@@ -2824,8 +2940,8 @@ var Label2 = React14.forwardRef(({ className, hint, hintSide, required, children
2824
2940
  ...props
2825
2941
  },
2826
2942
  children,
2827
- required && /* @__PURE__ */ React14.createElement("span", { className: "hawa-text-red-500 hawa-mx-0.5" }, "*")
2828
- ), hint && /* @__PURE__ */ React14.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React14.createElement(
2943
+ required && /* @__PURE__ */ React16.createElement("span", { className: "hawa-text-red-500 hawa-mx-0.5" }, "*")
2944
+ ), hint && /* @__PURE__ */ React16.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React16.createElement(
2829
2945
  "svg",
2830
2946
  {
2831
2947
  xmlns: "http://www.w3.org/2000/svg",
@@ -2837,39 +2953,12 @@ var Label2 = React14.forwardRef(({ className, hint, hintSide, required, children
2837
2953
  strokeLinecap: "round",
2838
2954
  strokeLinejoin: "round"
2839
2955
  },
2840
- /* @__PURE__ */ React14.createElement("circle", { cx: "12", cy: "12", r: "10" }),
2841
- /* @__PURE__ */ React14.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
2842
- /* @__PURE__ */ React14.createElement("path", { d: "M12 17h.01" })
2956
+ /* @__PURE__ */ React16.createElement("circle", { cx: "12", cy: "12", r: "10" }),
2957
+ /* @__PURE__ */ React16.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
2958
+ /* @__PURE__ */ React16.createElement("path", { d: "M12 17h.01" })
2843
2959
  ))));
2844
2960
  Label2.displayName = "Label";
2845
2961
 
2846
- // components/elements/Skeleton.tsx
2847
- import React15 from "react";
2848
- function Skeleton({
2849
- className,
2850
- content,
2851
- animation = "pulse",
2852
- ...props
2853
- }) {
2854
- const animationStyles = {
2855
- none: "hawa-rounded hawa-bg-muted",
2856
- pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
2857
- shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
2858
- };
2859
- return /* @__PURE__ */ React15.createElement(
2860
- "div",
2861
- {
2862
- className: cn(
2863
- animationStyles[animation],
2864
- content && "hawa-flex hawa-flex-col hawa-justify-center hawa-items-center",
2865
- className
2866
- ),
2867
- ...props
2868
- },
2869
- content && content
2870
- );
2871
- }
2872
-
2873
2962
  // components/elements/Select.tsx
2874
2963
  var Select = ({
2875
2964
  labelProps,
@@ -2878,10 +2967,10 @@ var Select = ({
2878
2967
  }) => {
2879
2968
  const NoOption = () => {
2880
2969
  var _a, _b;
2881
- return /* @__PURE__ */ React16.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
2970
+ return /* @__PURE__ */ React17.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
2882
2971
  };
2883
2972
  const Control = ({ children, innerProps, innerRef }) => {
2884
- return /* @__PURE__ */ React16.createElement(
2973
+ return /* @__PURE__ */ React17.createElement(
2885
2974
  "div",
2886
2975
  {
2887
2976
  ref: innerRef,
@@ -2894,7 +2983,7 @@ var Select = ({
2894
2983
  );
2895
2984
  };
2896
2985
  const Option = ({ children, innerProps, innerRef }) => {
2897
- return /* @__PURE__ */ React16.createElement(
2986
+ return /* @__PURE__ */ React17.createElement(
2898
2987
  "div",
2899
2988
  {
2900
2989
  ref: innerRef,
@@ -2915,7 +3004,7 @@ var Select = ({
2915
3004
  ...menuProps
2916
3005
  }) => {
2917
3006
  const menuOpen = menuProps.selectProps.menuIsOpen;
2918
- return /* @__PURE__ */ React16.createElement(
3007
+ return /* @__PURE__ */ React17.createElement(
2919
3008
  "div",
2920
3009
  {
2921
3010
  className: cn(
@@ -2929,7 +3018,7 @@ var Select = ({
2929
3018
  children
2930
3019
  );
2931
3020
  };
2932
- return /* @__PURE__ */ React16.createElement(
3021
+ return /* @__PURE__ */ React17.createElement(
2933
3022
  "div",
2934
3023
  {
2935
3024
  className: cn(
@@ -2937,10 +3026,10 @@ var Select = ({
2937
3026
  props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
2938
3027
  )
2939
3028
  },
2940
- props.label && /* @__PURE__ */ React16.createElement(Label2, { ...labelProps }, props.label),
2941
- props.isLoading ? /* @__PURE__ */ React16.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
3029
+ props.label && /* @__PURE__ */ React17.createElement(Label2, { ...labelProps }, props.label),
3030
+ props.isLoading ? /* @__PURE__ */ React17.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
2942
3031
  // TODO: enable keyboard to go to the next item in the list
2943
- /* @__PURE__ */ React16.createElement(
3032
+ /* @__PURE__ */ React17.createElement(
2944
3033
  ReactSelect,
2945
3034
  {
2946
3035
  noOptionsMessage: NoOption,
@@ -2977,7 +3066,7 @@ var Select = ({
2977
3066
  isSearchable: props.isSearchable
2978
3067
  }
2979
3068
  )
2980
- ) : /* @__PURE__ */ React16.createElement(
3069
+ ) : /* @__PURE__ */ React17.createElement(
2981
3070
  CreatableSelect,
2982
3071
  {
2983
3072
  formatCreateLabel: (inputValue) => {
@@ -3007,7 +3096,7 @@ var Select = ({
3007
3096
  onInputChange: (newValue, action) => props.onInputChange(newValue, action)
3008
3097
  }
3009
3098
  ),
3010
- !props.hideHelperText && /* @__PURE__ */ React16.createElement(
3099
+ !props.hideHelperText && /* @__PURE__ */ React17.createElement(
3011
3100
  "p",
3012
3101
  {
3013
3102
  className: cn(
@@ -3043,7 +3132,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
3043
3132
  console.log("handleChange prop was not provided in <PhoneInput/>");
3044
3133
  }
3045
3134
  };
3046
- return /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2 hawa-h-fit" }, props.label && /* @__PURE__ */ React17.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React17.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full" }, /* @__PURE__ */ React17.createElement(
3135
+ return /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2 hawa-h-fit" }, props.label && /* @__PURE__ */ React18.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React18.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full" }, /* @__PURE__ */ React18.createElement(
3047
3136
  Select,
3048
3137
  {
3049
3138
  width: "fit",
@@ -3059,7 +3148,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
3059
3148
  value: countryCode == null ? void 0 : countryCode.label,
3060
3149
  onChange: setCountryCode
3061
3150
  }
3062
- ), /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-w-full hawa-gap-0" }, /* @__PURE__ */ React17.createElement(
3151
+ ), /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-w-full hawa-gap-0" }, /* @__PURE__ */ React18.createElement(
3063
3152
  "input",
3064
3153
  {
3065
3154
  ref: inputRef,
@@ -3072,7 +3161,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
3072
3161
  type: "tel",
3073
3162
  placeholder: "531045453"
3074
3163
  }
3075
- ))), /* @__PURE__ */ React17.createElement(
3164
+ ))), /* @__PURE__ */ React18.createElement(
3076
3165
  "p",
3077
3166
  {
3078
3167
  className: cn(
@@ -3085,7 +3174,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
3085
3174
  };
3086
3175
 
3087
3176
  // components/elements/Checkbox.tsx
3088
- import * as React18 from "react";
3177
+ import * as React19 from "react";
3089
3178
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3090
3179
  var Checkbox = ({
3091
3180
  id,
@@ -3095,7 +3184,7 @@ var Checkbox = ({
3095
3184
  disabled,
3096
3185
  ...props
3097
3186
  }) => {
3098
- return /* @__PURE__ */ React18.createElement("div", { className: "hawa-items-top hawa-flex hawa-gap-2 " }, /* @__PURE__ */ React18.createElement(CheckboxElement, { ...props, disabled, id }), (label || helperText) && /* @__PURE__ */ React18.createElement("div", { className: "hawa-grid hawa-gap-1.5 hawa-leading-none" }, label && /* @__PURE__ */ React18.createElement(
3187
+ return /* @__PURE__ */ React19.createElement("div", { className: "hawa-items-top hawa-flex hawa-gap-2 " }, /* @__PURE__ */ React19.createElement(CheckboxElement, { ...props, disabled, id }), (label || helperText) && /* @__PURE__ */ React19.createElement("div", { className: "hawa-grid hawa-gap-1.5 hawa-leading-none" }, label && /* @__PURE__ */ React19.createElement(
3099
3188
  "label",
3100
3189
  {
3101
3190
  htmlFor: id,
@@ -3105,7 +3194,7 @@ var Checkbox = ({
3105
3194
  )
3106
3195
  },
3107
3196
  label
3108
- ), sublabel && /* @__PURE__ */ React18.createElement(
3197
+ ), sublabel && /* @__PURE__ */ React19.createElement(
3109
3198
  "label",
3110
3199
  {
3111
3200
  htmlFor: id,
@@ -3115,7 +3204,7 @@ var Checkbox = ({
3115
3204
  )
3116
3205
  },
3117
3206
  sublabel
3118
- ), helperText && !disabled && /* @__PURE__ */ React18.createElement(
3207
+ ), helperText && !disabled && /* @__PURE__ */ React19.createElement(
3119
3208
  "label",
3120
3209
  {
3121
3210
  htmlFor: id,
@@ -3127,7 +3216,7 @@ var Checkbox = ({
3127
3216
  helperText
3128
3217
  )));
3129
3218
  };
3130
- var CheckboxElement = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement(
3219
+ var CheckboxElement = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
3131
3220
  CheckboxPrimitive.Root,
3132
3221
  {
3133
3222
  ref,
@@ -3137,14 +3226,14 @@ var CheckboxElement = React18.forwardRef(({ className, ...props }, ref) => /* @_
3137
3226
  ),
3138
3227
  ...props
3139
3228
  },
3140
- /* @__PURE__ */ React18.createElement(
3229
+ /* @__PURE__ */ React19.createElement(
3141
3230
  CheckboxPrimitive.Indicator,
3142
3231
  {
3143
3232
  className: cn(
3144
3233
  "hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
3145
3234
  )
3146
3235
  },
3147
- /* @__PURE__ */ React18.createElement(
3236
+ /* @__PURE__ */ React19.createElement(
3148
3237
  "svg",
3149
3238
  {
3150
3239
  "aria-label": "Check Mark",
@@ -3155,7 +3244,7 @@ var CheckboxElement = React18.forwardRef(({ className, ...props }, ref) => /* @_
3155
3244
  height: "0.60em",
3156
3245
  width: "0.60em"
3157
3246
  },
3158
- /* @__PURE__ */ React18.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
3247
+ /* @__PURE__ */ React19.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
3159
3248
  ),
3160
3249
  " "
3161
3250
  )
@@ -3163,7 +3252,7 @@ var CheckboxElement = React18.forwardRef(({ className, ...props }, ref) => /* @_
3163
3252
  CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
3164
3253
 
3165
3254
  // components/elements/Radio.tsx
3166
- import React19, { useState as useState6, useRef as useRef3, useEffect as useEffect5 } from "react";
3255
+ import React20, { useState as useState6, useRef as useRef3, useEffect as useEffect5 } from "react";
3167
3256
  var Radio = ({
3168
3257
  design = "default",
3169
3258
  width = "default",
@@ -3183,7 +3272,7 @@ var Radio = ({
3183
3272
  default: "hawa-max-w-fit",
3184
3273
  full: "hawa-w-full"
3185
3274
  };
3186
- const [parentDirection, setParentDirection] = React19.useState(
3275
+ const [parentDirection, setParentDirection] = React20.useState(
3187
3276
  null
3188
3277
  );
3189
3278
  const parentRef = useRef3(null);
@@ -3197,7 +3286,7 @@ var Radio = ({
3197
3286
  });
3198
3287
  switch (design) {
3199
3288
  case "tabs":
3200
- return /* @__PURE__ */ React19.createElement(
3289
+ return /* @__PURE__ */ React20.createElement(
3201
3290
  "ul",
3202
3291
  {
3203
3292
  ref: parentRef,
@@ -3208,7 +3297,7 @@ var Radio = ({
3208
3297
  orientationStyle[orientation]
3209
3298
  )
3210
3299
  },
3211
- (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ React19.createElement(
3300
+ (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ React20.createElement(
3212
3301
  "li",
3213
3302
  {
3214
3303
  "aria-current": "page",
@@ -3235,13 +3324,13 @@ var Radio = ({
3235
3324
  ))
3236
3325
  );
3237
3326
  case "bordered":
3238
- return /* @__PURE__ */ React19.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React19.createElement(
3327
+ return /* @__PURE__ */ React20.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React20.createElement(
3239
3328
  "div",
3240
3329
  {
3241
3330
  key: i,
3242
3331
  className: "hawa-rounded hawa-border hawa-border-gray-200 "
3243
3332
  },
3244
- /* @__PURE__ */ React19.createElement(
3333
+ /* @__PURE__ */ React20.createElement(
3245
3334
  "div",
3246
3335
  {
3247
3336
  className: cn(
@@ -3250,7 +3339,7 @@ var Radio = ({
3250
3339
  ),
3251
3340
  key: i + 1
3252
3341
  },
3253
- /* @__PURE__ */ React19.createElement(
3342
+ /* @__PURE__ */ React20.createElement(
3254
3343
  "input",
3255
3344
  {
3256
3345
  disabled: opt.disabled,
@@ -3260,7 +3349,7 @@ var Radio = ({
3260
3349
  name: "bordered-radio"
3261
3350
  }
3262
3351
  ),
3263
- /* @__PURE__ */ React19.createElement(
3352
+ /* @__PURE__ */ React20.createElement(
3264
3353
  "label",
3265
3354
  {
3266
3355
  htmlFor: opt.value.toString(),
@@ -3274,7 +3363,7 @@ var Radio = ({
3274
3363
  )
3275
3364
  )));
3276
3365
  case "cards":
3277
- return /* @__PURE__ */ React19.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React19.createElement("li", { key: o }, /* @__PURE__ */ React19.createElement(
3366
+ return /* @__PURE__ */ React20.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React20.createElement("li", { key: o }, /* @__PURE__ */ React20.createElement(
3278
3367
  "input",
3279
3368
  {
3280
3369
  type: "radio",
@@ -3285,7 +3374,7 @@ var Radio = ({
3285
3374
  required: true,
3286
3375
  disabled: opt.disabled
3287
3376
  }
3288
- ), /* @__PURE__ */ React19.createElement(
3377
+ ), /* @__PURE__ */ React20.createElement(
3289
3378
  "label",
3290
3379
  {
3291
3380
  htmlFor: opt.value.toString(),
@@ -3294,10 +3383,10 @@ var Radio = ({
3294
3383
  opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
3295
3384
  )
3296
3385
  },
3297
- /* @__PURE__ */ React19.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ React19.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ React19.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
3386
+ /* @__PURE__ */ React20.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ React20.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ React20.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
3298
3387
  ))));
3299
3388
  default:
3300
- return /* @__PURE__ */ React19.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React19.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React19.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React19.createElement(
3389
+ return /* @__PURE__ */ React20.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React20.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React20.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React20.createElement(
3301
3390
  "div",
3302
3391
  {
3303
3392
  className: cn(
@@ -3306,7 +3395,7 @@ var Radio = ({
3306
3395
  ),
3307
3396
  key: i + 1
3308
3397
  },
3309
- /* @__PURE__ */ React19.createElement(
3398
+ /* @__PURE__ */ React20.createElement(
3310
3399
  "input",
3311
3400
  {
3312
3401
  disabled: opt.disabled,
@@ -3324,7 +3413,7 @@ var Radio = ({
3324
3413
  }
3325
3414
  }
3326
3415
  ),
3327
- /* @__PURE__ */ React19.createElement(
3416
+ /* @__PURE__ */ React20.createElement(
3328
3417
  "label",
3329
3418
  {
3330
3419
  htmlFor: opt.value.toString(),
@@ -3335,7 +3424,7 @@ var Radio = ({
3335
3424
  },
3336
3425
  opt.label
3337
3426
  )
3338
- ))), /* @__PURE__ */ React19.createElement(
3427
+ ))), /* @__PURE__ */ React20.createElement(
3339
3428
  "p",
3340
3429
  {
3341
3430
  className: cn(
@@ -3349,15 +3438,15 @@ var Radio = ({
3349
3438
  };
3350
3439
 
3351
3440
  // components/elements/Switch.tsx
3352
- import * as React20 from "react";
3441
+ import * as React21 from "react";
3353
3442
  import * as SwitchPrimitives from "@radix-ui/react-switch";
3354
- var Switch = React20.forwardRef(
3443
+ var Switch = React21.forwardRef(
3355
3444
  ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
3356
- const [parentDirection, setParentDirection] = React20.useState(
3445
+ const [parentDirection, setParentDirection] = React21.useState(
3357
3446
  null
3358
3447
  );
3359
- const parentRef = React20.useRef(null);
3360
- React20.useEffect(() => {
3448
+ const parentRef = React21.useRef(null);
3449
+ React21.useEffect(() => {
3361
3450
  var _a;
3362
3451
  const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
3363
3452
  if (parentNode) {
@@ -3385,13 +3474,13 @@ var Switch = React20.forwardRef(
3385
3474
  full: "hawa-rounded-full",
3386
3475
  inherit: "hawa-rounded-inner"
3387
3476
  };
3388
- return /* @__PURE__ */ React20.createElement(
3477
+ return /* @__PURE__ */ React21.createElement(
3389
3478
  "div",
3390
3479
  {
3391
3480
  className: "hawa-flex hawa-flex-row hawa-items-center",
3392
3481
  ref: parentRef
3393
3482
  },
3394
- /* @__PURE__ */ React20.createElement(
3483
+ /* @__PURE__ */ React21.createElement(
3395
3484
  SwitchPrimitives.Root,
3396
3485
  {
3397
3486
  className: cn(
@@ -3405,7 +3494,7 @@ var Switch = React20.forwardRef(
3405
3494
  ...props,
3406
3495
  ref
3407
3496
  },
3408
- /* @__PURE__ */ React20.createElement(
3497
+ /* @__PURE__ */ React21.createElement(
3409
3498
  SwitchPrimitives.Thumb,
3410
3499
  {
3411
3500
  className: cn(
@@ -3419,17 +3508,17 @@ var Switch = React20.forwardRef(
3419
3508
  }
3420
3509
  )
3421
3510
  ),
3422
- label && /* @__PURE__ */ React20.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
3511
+ label && /* @__PURE__ */ React21.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
3423
3512
  );
3424
3513
  }
3425
3514
  );
3426
3515
  Switch.displayName = SwitchPrimitives.Root.displayName;
3427
3516
 
3428
3517
  // components/elements/Textarea.tsx
3429
- import * as React21 from "react";
3430
- var Textarea = React21.forwardRef(
3518
+ import * as React22 from "react";
3519
+ var Textarea = React22.forwardRef(
3431
3520
  ({ className, ...props }, ref) => {
3432
- return /* @__PURE__ */ React21.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React21.createElement(
3521
+ return /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React22.createElement(
3433
3522
  "textarea",
3434
3523
  {
3435
3524
  className: cn(
@@ -3439,7 +3528,7 @@ var Textarea = React21.forwardRef(
3439
3528
  ref,
3440
3529
  ...props
3441
3530
  }
3442
- ), /* @__PURE__ */ React21.createElement(
3531
+ ), /* @__PURE__ */ React22.createElement(
3443
3532
  "p",
3444
3533
  {
3445
3534
  className: cn(
@@ -3454,9 +3543,9 @@ var Textarea = React21.forwardRef(
3454
3543
  Textarea.displayName = "Textarea";
3455
3544
 
3456
3545
  // components/elements/Slider.tsx
3457
- import * as React22 from "react";
3546
+ import * as React23 from "react";
3458
3547
  import * as SliderPrimitive from "@radix-ui/react-slider";
3459
- var Slider = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
3548
+ var Slider = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
3460
3549
  SliderPrimitive.Root,
3461
3550
  {
3462
3551
  ref,
@@ -3466,13 +3555,13 @@ var Slider = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
3466
3555
  ),
3467
3556
  ...props
3468
3557
  },
3469
- /* @__PURE__ */ React22.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-bg-background hawa-border" }, /* @__PURE__ */ React22.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
3470
- /* @__PURE__ */ React22.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
3558
+ /* @__PURE__ */ React23.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-bg-background hawa-border" }, /* @__PURE__ */ React23.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
3559
+ /* @__PURE__ */ React23.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
3471
3560
  ));
3472
3561
  Slider.displayName = SliderPrimitive.Root.displayName;
3473
3562
 
3474
3563
  // components/elements/ColorPicker.tsx
3475
- import React23, {
3564
+ import React24, {
3476
3565
  useState as useState8,
3477
3566
  useEffect as useEffect7
3478
3567
  } from "react";
@@ -3506,13 +3595,13 @@ var ColorPicker = ({
3506
3595
  inputElement.dispatchEvent(event);
3507
3596
  }
3508
3597
  };
3509
- return /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, props.label && /* @__PURE__ */ React23.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React23.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full" }, /* @__PURE__ */ React23.createElement(
3598
+ return /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, props.label && /* @__PURE__ */ React24.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React24.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full" }, /* @__PURE__ */ React24.createElement(
3510
3599
  "div",
3511
3600
  {
3512
3601
  style: { height: 40, backgroundColor: selectedColor },
3513
3602
  className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
3514
3603
  },
3515
- /* @__PURE__ */ React23.createElement(
3604
+ /* @__PURE__ */ React24.createElement(
3516
3605
  "input",
3517
3606
  {
3518
3607
  type: "color",
@@ -3530,7 +3619,7 @@ var ColorPicker = ({
3530
3619
  ...colorPickerProps
3531
3620
  }
3532
3621
  )
3533
- ), /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-max-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-w-full hawa-gap-0" }, /* @__PURE__ */ React23.createElement(
3622
+ ), /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-max-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-w-full hawa-gap-0" }, /* @__PURE__ */ React24.createElement(
3534
3623
  "input",
3535
3624
  {
3536
3625
  maxLength: 7,
@@ -3543,7 +3632,7 @@ var ColorPicker = ({
3543
3632
  ),
3544
3633
  ...textInputProps
3545
3634
  }
3546
- ))), /* @__PURE__ */ React23.createElement(
3635
+ ))), /* @__PURE__ */ React24.createElement(
3547
3636
  "p",
3548
3637
  {
3549
3638
  className: cn(
@@ -3556,7 +3645,7 @@ var ColorPicker = ({
3556
3645
  };
3557
3646
 
3558
3647
  // components/elements/Input.tsx
3559
- import React24, { forwardRef as forwardRef9 } from "react";
3648
+ import React25, { forwardRef as forwardRef9 } from "react";
3560
3649
  var Input = forwardRef9(
3561
3650
  ({
3562
3651
  margin = "none",
@@ -3583,7 +3672,7 @@ var Input = forwardRef9(
3583
3672
  };
3584
3673
  let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
3585
3674
  let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
3586
- return /* @__PURE__ */ React24.createElement(
3675
+ return /* @__PURE__ */ React25.createElement(
3587
3676
  "div",
3588
3677
  {
3589
3678
  className: cn(
@@ -3594,8 +3683,8 @@ var Input = forwardRef9(
3594
3683
  "hawa-w-full hawa-gap-2"
3595
3684
  )
3596
3685
  },
3597
- props.label && /* @__PURE__ */ React24.createElement(Label2, { ...labelProps }, props.label),
3598
- props.isLoading ? /* @__PURE__ */ React24.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React24.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React24.createElement(React24.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React24.createElement(
3686
+ props.label && /* @__PURE__ */ React25.createElement(Label2, { ...labelProps }, props.label),
3687
+ props.isLoading ? /* @__PURE__ */ React25.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React25.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React25.createElement(React25.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React25.createElement(
3599
3688
  "div",
3600
3689
  {
3601
3690
  className: cn(
@@ -3603,7 +3692,7 @@ var Input = forwardRef9(
3603
3692
  preview ? "hawa-opacity-100" : "hawa-opacity-0"
3604
3693
  )
3605
3694
  }
3606
- ), /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement("div", { className: cn("hawa-relative") }, props.startIcon && /* @__PURE__ */ React24.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React24.createElement(
3695
+ ), /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement("div", { className: cn("hawa-relative") }, props.startIcon && /* @__PURE__ */ React25.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React25.createElement(
3607
3696
  "div",
3608
3697
  {
3609
3698
  className: cn(
@@ -3612,7 +3701,7 @@ var Input = forwardRef9(
3612
3701
  )
3613
3702
  },
3614
3703
  props.endIcon
3615
- ), /* @__PURE__ */ React24.createElement(
3704
+ ), /* @__PURE__ */ React25.createElement(
3616
3705
  "input",
3617
3706
  {
3618
3707
  ...props,
@@ -3638,7 +3727,7 @@ var Input = forwardRef9(
3638
3727
  (_b = props.inputProps) == null ? void 0 : _b.className
3639
3728
  )
3640
3729
  }
3641
- )), !forceHideHelperText && /* @__PURE__ */ React24.createElement(
3730
+ )), !forceHideHelperText && /* @__PURE__ */ React25.createElement(
3642
3731
  "p",
3643
3732
  {
3644
3733
  className: cn(
@@ -3647,7 +3736,7 @@ var Input = forwardRef9(
3647
3736
  )
3648
3737
  },
3649
3738
  props.helperText
3650
- ), !props.disabled && forceHideHelperText && /* @__PURE__ */ React24.createElement(
3739
+ ), !props.disabled && forceHideHelperText && /* @__PURE__ */ React25.createElement(
3651
3740
  "div",
3652
3741
  {
3653
3742
  className: cn(
@@ -3656,7 +3745,7 @@ var Input = forwardRef9(
3656
3745
  )
3657
3746
  },
3658
3747
  props.helperText
3659
- ), showCount && /* @__PURE__ */ React24.createElement(
3748
+ ), showCount && /* @__PURE__ */ React25.createElement(
3660
3749
  "div",
3661
3750
  {
3662
3751
  className: cn(
@@ -3677,20 +3766,20 @@ var Input = forwardRef9(
3677
3766
  );
3678
3767
 
3679
3768
  // components/elements/Combobox.tsx
3680
- import * as React28 from "react";
3769
+ import * as React29 from "react";
3681
3770
  import * as PopoverPrimitive2 from "@radix-ui/react-popover";
3682
3771
 
3683
3772
  // components/elements/Command.tsx
3684
- import * as React26 from "react";
3773
+ import * as React27 from "react";
3685
3774
  import { Command as CommandPrimitive } from "cmdk";
3686
3775
 
3687
3776
  // components/elements/Dialog.tsx
3688
- import * as React25 from "react";
3777
+ import * as React26 from "react";
3689
3778
  import * as DialogPrimitive from "@radix-ui/react-dialog";
3690
3779
  var Dialog = DialogPrimitive.Root;
3691
3780
  var DialogTrigger = DialogPrimitive.Trigger;
3692
- var DialogPortal = ({ ...props }) => /* @__PURE__ */ React25.createElement(DialogPrimitive.Portal, { ...props });
3693
- var DialogOverlay = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3781
+ var DialogPortal = ({ ...props }) => /* @__PURE__ */ React26.createElement(DialogPrimitive.Portal, { ...props });
3782
+ var DialogOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3694
3783
  DialogPrimitive.Overlay,
3695
3784
  {
3696
3785
  ref,
@@ -3701,7 +3790,7 @@ var DialogOverlay = React25.forwardRef(({ className, ...props }, ref) => /* @__P
3701
3790
  ...props
3702
3791
  }
3703
3792
  ));
3704
- var DialogContent = React25.forwardRef(({ className, children, persist, ...props }, ref) => /* @__PURE__ */ React25.createElement(DialogPortal, null, /* @__PURE__ */ React25.createElement(DialogOverlay, null), /* @__PURE__ */ React25.createElement(
3793
+ var DialogContent = React26.forwardRef(({ className, children, persist, ...props }, ref) => /* @__PURE__ */ React26.createElement(DialogPortal, null, /* @__PURE__ */ React26.createElement(DialogOverlay, null), /* @__PURE__ */ React26.createElement(
3705
3794
  DialogPrimitive.Content,
3706
3795
  {
3707
3796
  onPointerDownOutside: (e) => {
@@ -3717,7 +3806,7 @@ var DialogContent = React25.forwardRef(({ className, children, persist, ...props
3717
3806
  ...props
3718
3807
  },
3719
3808
  children,
3720
- /* @__PURE__ */ React25.createElement(
3809
+ /* @__PURE__ */ React26.createElement(
3721
3810
  DialogPrimitive.Close,
3722
3811
  {
3723
3812
  className: cn(
@@ -3725,7 +3814,7 @@ var DialogContent = React25.forwardRef(({ className, children, persist, ...props
3725
3814
  props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
3726
3815
  )
3727
3816
  },
3728
- /* @__PURE__ */ React25.createElement(
3817
+ /* @__PURE__ */ React26.createElement(
3729
3818
  "svg",
3730
3819
  {
3731
3820
  "aria-label": "Close Icon",
@@ -3734,7 +3823,7 @@ var DialogContent = React25.forwardRef(({ className, children, persist, ...props
3734
3823
  fill: "currentColor",
3735
3824
  viewBox: "0 0 20 20"
3736
3825
  },
3737
- /* @__PURE__ */ React25.createElement(
3826
+ /* @__PURE__ */ React26.createElement(
3738
3827
  "path",
3739
3828
  {
3740
3829
  fillRule: "evenodd",
@@ -3743,10 +3832,10 @@ var DialogContent = React25.forwardRef(({ className, children, persist, ...props
3743
3832
  }
3744
3833
  )
3745
3834
  ),
3746
- /* @__PURE__ */ React25.createElement("span", { className: "hawa-sr-only" }, "Close")
3835
+ /* @__PURE__ */ React26.createElement("span", { className: "hawa-sr-only" }, "Close")
3747
3836
  )
3748
3837
  )));
3749
- var DialogCarouselContent = React25.forwardRef(({ className, children, onPrev, persist, ...props }, ref) => /* @__PURE__ */ React25.createElement(DialogPortal, null, /* @__PURE__ */ React25.createElement(DialogOverlay, null), /* @__PURE__ */ React25.createElement(
3838
+ var DialogCarouselContent = React26.forwardRef(({ className, children, onPrev, persist, ...props }, ref) => /* @__PURE__ */ React26.createElement(DialogPortal, null, /* @__PURE__ */ React26.createElement(DialogOverlay, null), /* @__PURE__ */ React26.createElement(
3750
3839
  DialogPrimitive.Content,
3751
3840
  {
3752
3841
  onPointerDownOutside: (e) => {
@@ -3762,7 +3851,7 @@ var DialogCarouselContent = React25.forwardRef(({ className, children, onPrev, p
3762
3851
  ...props
3763
3852
  },
3764
3853
  children,
3765
- /* @__PURE__ */ React25.createElement(
3854
+ /* @__PURE__ */ React26.createElement(
3766
3855
  "div",
3767
3856
  {
3768
3857
  className: cn(
@@ -3770,7 +3859,7 @@ var DialogCarouselContent = React25.forwardRef(({ className, children, onPrev, p
3770
3859
  onPrev ? "hawa-justify-between" : "hawa-justify-end"
3771
3860
  )
3772
3861
  },
3773
- onPrev && /* @__PURE__ */ React25.createElement(
3862
+ onPrev && /* @__PURE__ */ React26.createElement(
3774
3863
  "div",
3775
3864
  {
3776
3865
  onClick: onPrev,
@@ -3779,7 +3868,7 @@ var DialogCarouselContent = React25.forwardRef(({ className, children, onPrev, p
3779
3868
  props.dir === "rtl" && "hawa-rotate-180"
3780
3869
  )
3781
3870
  },
3782
- /* @__PURE__ */ React25.createElement(
3871
+ /* @__PURE__ */ React26.createElement(
3783
3872
  "svg",
3784
3873
  {
3785
3874
  xmlns: "http://www.w3.org/2000/svg",
@@ -3793,10 +3882,10 @@ var DialogCarouselContent = React25.forwardRef(({ className, children, onPrev, p
3793
3882
  strokeLinecap: "round",
3794
3883
  strokeLinejoin: "round"
3795
3884
  },
3796
- /* @__PURE__ */ React25.createElement("path", { d: "m15 18-6-6 6-6" })
3885
+ /* @__PURE__ */ React26.createElement("path", { d: "m15 18-6-6 6-6" })
3797
3886
  )
3798
3887
  ),
3799
- /* @__PURE__ */ React25.createElement(
3888
+ /* @__PURE__ */ React26.createElement(
3800
3889
  DialogPrimitive.Close,
3801
3890
  {
3802
3891
  className: cn(
@@ -3804,7 +3893,7 @@ var DialogCarouselContent = React25.forwardRef(({ className, children, onPrev, p
3804
3893
  props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
3805
3894
  )
3806
3895
  },
3807
- /* @__PURE__ */ React25.createElement(
3896
+ /* @__PURE__ */ React26.createElement(
3808
3897
  "svg",
3809
3898
  {
3810
3899
  "aria-label": "Close Icon",
@@ -3813,7 +3902,7 @@ var DialogCarouselContent = React25.forwardRef(({ className, children, onPrev, p
3813
3902
  fill: "currentColor",
3814
3903
  viewBox: "0 0 20 20"
3815
3904
  },
3816
- /* @__PURE__ */ React25.createElement(
3905
+ /* @__PURE__ */ React26.createElement(
3817
3906
  "path",
3818
3907
  {
3819
3908
  fillRule: "evenodd",
@@ -3822,14 +3911,14 @@ var DialogCarouselContent = React25.forwardRef(({ className, children, onPrev, p
3822
3911
  }
3823
3912
  )
3824
3913
  ),
3825
- /* @__PURE__ */ React25.createElement("span", { className: "hawa-sr-only" }, "Close")
3914
+ /* @__PURE__ */ React26.createElement("span", { className: "hawa-sr-only" }, "Close")
3826
3915
  )
3827
3916
  )
3828
3917
  )));
3829
3918
  var DialogHeader = ({
3830
3919
  className,
3831
3920
  ...props
3832
- }) => /* @__PURE__ */ React25.createElement(
3921
+ }) => /* @__PURE__ */ React26.createElement(
3833
3922
  "div",
3834
3923
  {
3835
3924
  className: cn(
@@ -3839,7 +3928,7 @@ var DialogHeader = ({
3839
3928
  ...props
3840
3929
  }
3841
3930
  );
3842
- var DialogTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3931
+ var DialogTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3843
3932
  DialogPrimitive.Title,
3844
3933
  {
3845
3934
  ref,
@@ -3850,7 +3939,7 @@ var DialogTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
3850
3939
  ...props
3851
3940
  }
3852
3941
  ));
3853
- var DialogDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3942
+ var DialogDescription = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
3854
3943
  DialogPrimitive.Description,
3855
3944
  {
3856
3945
  ref,
@@ -3864,7 +3953,7 @@ var DialogDescription = React25.forwardRef(({ className, ...props }, ref) => /*
3864
3953
  var DialogFooter = ({
3865
3954
  className,
3866
3955
  ...props
3867
- }) => /* @__PURE__ */ React25.createElement(
3956
+ }) => /* @__PURE__ */ React26.createElement(
3868
3957
  "div",
3869
3958
  {
3870
3959
  className: cn(
@@ -3880,12 +3969,12 @@ var DialogCarousel = ({
3880
3969
  children,
3881
3970
  direction
3882
3971
  }) => {
3883
- React25.useEffect(() => {
3972
+ React26.useEffect(() => {
3884
3973
  if (stepsApi) {
3885
3974
  stepsApi.reInit();
3886
3975
  }
3887
3976
  }, [stepsApi, children]);
3888
- return /* @__PURE__ */ React25.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React25.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React25.createElement(
3977
+ return /* @__PURE__ */ React26.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React26.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React26.createElement(
3889
3978
  "div",
3890
3979
  {
3891
3980
  className: "hawa-flex",
@@ -3893,7 +3982,7 @@ var DialogCarousel = ({
3893
3982
  transition: "height 0.2s"
3894
3983
  }
3895
3984
  },
3896
- React25.Children.map(children, (child, index) => /* @__PURE__ */ React25.createElement(
3985
+ React26.Children.map(children, (child, index) => /* @__PURE__ */ React26.createElement(
3897
3986
  "div",
3898
3987
  {
3899
3988
  className: cn(
@@ -3910,14 +3999,14 @@ var DialogSteps = ({
3910
3999
  visibleStepRef,
3911
4000
  children
3912
4001
  }) => {
3913
- const [dialogHeight, setDialogHeight] = React25.useState(null);
3914
- React25.useEffect(() => {
4002
+ const [dialogHeight, setDialogHeight] = React26.useState(null);
4003
+ React26.useEffect(() => {
3915
4004
  if (visibleStepRef.current) {
3916
4005
  setDialogHeight(visibleStepRef.current.offsetHeight);
3917
4006
  console.log("height is ", visibleStepRef.current.offsetHeight);
3918
4007
  }
3919
4008
  }, [currentStep, visibleStepRef]);
3920
- return /* @__PURE__ */ React25.createElement(
4009
+ return /* @__PURE__ */ React26.createElement(
3921
4010
  "div",
3922
4011
  {
3923
4012
  className: "hawa-relative hawa-overflow-clip",
@@ -3926,7 +4015,7 @@ var DialogSteps = ({
3926
4015
  transition: "height 0.2s"
3927
4016
  }
3928
4017
  },
3929
- React25.Children.map(children, (child, index) => /* @__PURE__ */ React25.createElement(
4018
+ React26.Children.map(children, (child, index) => /* @__PURE__ */ React26.createElement(
3930
4019
  "div",
3931
4020
  {
3932
4021
  ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
@@ -3944,7 +4033,7 @@ var DialogStep = ({
3944
4033
  className,
3945
4034
  stepRef
3946
4035
  }) => {
3947
- return /* @__PURE__ */ React25.createElement(
4036
+ return /* @__PURE__ */ React26.createElement(
3948
4037
  "div",
3949
4038
  {
3950
4039
  id,
@@ -3955,7 +4044,7 @@ var DialogStep = ({
3955
4044
  );
3956
4045
  };
3957
4046
  var DialogBody = ({ children, className }) => {
3958
- return /* @__PURE__ */ React25.createElement("div", { className: cn("hawa-py-6", className) }, children);
4047
+ return /* @__PURE__ */ React26.createElement("div", { className: cn("hawa-py-6", className) }, children);
3959
4048
  };
3960
4049
  DialogBody.displayName = "DialogBody";
3961
4050
  DialogStep.displayName = "DialogStep";
@@ -3971,7 +4060,7 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
3971
4060
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
3972
4061
 
3973
4062
  // components/elements/Command.tsx
3974
- var Command = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
4063
+ var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
3975
4064
  CommandPrimitive,
3976
4065
  {
3977
4066
  ref,
@@ -3984,15 +4073,15 @@ var Command = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3984
4073
  ));
3985
4074
  Command.displayName = CommandPrimitive.displayName;
3986
4075
  var CommandDialog = ({ children, ...props }) => {
3987
- return /* @__PURE__ */ React26.createElement(Dialog, { ...props }, /* @__PURE__ */ React26.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React26.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
4076
+ return /* @__PURE__ */ React27.createElement(Dialog, { ...props }, /* @__PURE__ */ React27.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React27.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
3988
4077
  };
3989
- var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
4078
+ var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
3990
4079
  "div",
3991
4080
  {
3992
4081
  className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
3993
4082
  "cmdk-input-wrapper": ""
3994
4083
  },
3995
- /* @__PURE__ */ React26.createElement(
4084
+ /* @__PURE__ */ React27.createElement(
3996
4085
  "svg",
3997
4086
  {
3998
4087
  "aria-label": "Search Icon",
@@ -4007,10 +4096,10 @@ var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
4007
4096
  strokeLinejoin: "round",
4008
4097
  className: "hawa-mr-2 hawa-icon hawa-shrink-0 hawa-opacity-50"
4009
4098
  },
4010
- /* @__PURE__ */ React26.createElement("circle", { cx: "11", cy: "11", r: "8" }),
4011
- /* @__PURE__ */ React26.createElement("path", { d: "m21 21-4.3-4.3" })
4099
+ /* @__PURE__ */ React27.createElement("circle", { cx: "11", cy: "11", r: "8" }),
4100
+ /* @__PURE__ */ React27.createElement("path", { d: "m21 21-4.3-4.3" })
4012
4101
  ),
4013
- /* @__PURE__ */ React26.createElement(
4102
+ /* @__PURE__ */ React27.createElement(
4014
4103
  CommandPrimitive.Input,
4015
4104
  {
4016
4105
  ref,
@@ -4023,7 +4112,7 @@ var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
4023
4112
  )
4024
4113
  ));
4025
4114
  CommandInput.displayName = CommandPrimitive.Input.displayName;
4026
- var CommandList = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
4115
+ var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
4027
4116
  CommandPrimitive.List,
4028
4117
  {
4029
4118
  ref,
@@ -4035,7 +4124,7 @@ var CommandList = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
4035
4124
  }
4036
4125
  ));
4037
4126
  CommandList.displayName = CommandPrimitive.List.displayName;
4038
- var CommandEmpty = React26.forwardRef((props, ref) => /* @__PURE__ */ React26.createElement(
4127
+ var CommandEmpty = React27.forwardRef((props, ref) => /* @__PURE__ */ React27.createElement(
4039
4128
  CommandPrimitive.Empty,
4040
4129
  {
4041
4130
  ref,
@@ -4044,7 +4133,7 @@ var CommandEmpty = React26.forwardRef((props, ref) => /* @__PURE__ */ React26.cr
4044
4133
  }
4045
4134
  ));
4046
4135
  CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
4047
- var CommandGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
4136
+ var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
4048
4137
  CommandPrimitive.Group,
4049
4138
  {
4050
4139
  ref,
@@ -4056,7 +4145,7 @@ var CommandGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
4056
4145
  }
4057
4146
  ));
4058
4147
  CommandGroup.displayName = CommandPrimitive.Group.displayName;
4059
- var CommandSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
4148
+ var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
4060
4149
  CommandPrimitive.Separator,
4061
4150
  {
4062
4151
  ref,
@@ -4065,7 +4154,7 @@ var CommandSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @
4065
4154
  }
4066
4155
  ));
4067
4156
  CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
4068
- var CommandItem = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
4157
+ var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
4069
4158
  CommandPrimitive.Item,
4070
4159
  {
4071
4160
  ref,
@@ -4081,7 +4170,7 @@ var CommandShortcut = ({
4081
4170
  className,
4082
4171
  ...props
4083
4172
  }) => {
4084
- return /* @__PURE__ */ React26.createElement(
4173
+ return /* @__PURE__ */ React27.createElement(
4085
4174
  "span",
4086
4175
  {
4087
4176
  className: cn(
@@ -4095,9 +4184,9 @@ var CommandShortcut = ({
4095
4184
  CommandShortcut.displayName = "CommandShortcut";
4096
4185
 
4097
4186
  // components/elements/Popover.tsx
4098
- import * as React27 from "react";
4187
+ import * as React28 from "react";
4099
4188
  import * as PopoverPrimitive from "@radix-ui/react-popover";
4100
- var PopoverContent = React27.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React27.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React27.createElement(
4189
+ var PopoverContent = React28.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React28.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React28.createElement(
4101
4190
  PopoverPrimitive.Content,
4102
4191
  {
4103
4192
  ref,
@@ -4129,7 +4218,7 @@ var Popover = ({
4129
4218
  trigger: "var(--radix-popover-trigger-width)",
4130
4219
  default: "auto"
4131
4220
  };
4132
- return /* @__PURE__ */ React27.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React27.createElement(
4221
+ return /* @__PURE__ */ React28.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React28.createElement(
4133
4222
  PopoverPrimitive.Trigger,
4134
4223
  {
4135
4224
  className: "hawa-w-full",
@@ -4137,7 +4226,7 @@ var Popover = ({
4137
4226
  ...triggerProps
4138
4227
  },
4139
4228
  trigger
4140
- ), /* @__PURE__ */ React27.createElement(
4229
+ ), /* @__PURE__ */ React28.createElement(
4141
4230
  PopoverContent,
4142
4231
  {
4143
4232
  side,
@@ -4155,7 +4244,7 @@ var Popover = ({
4155
4244
  var PopoverTrigger = PopoverPrimitive.Trigger;
4156
4245
 
4157
4246
  // components/elements/Combobox.tsx
4158
- var Combobox = React28.forwardRef(
4247
+ var Combobox = React29.forwardRef(
4159
4248
  ({
4160
4249
  labelKey = "label",
4161
4250
  valueKey = "value",
@@ -4166,8 +4255,8 @@ var Combobox = React28.forwardRef(
4166
4255
  ...props
4167
4256
  }, ref) => {
4168
4257
  var _a, _b, _c;
4169
- const [open, setOpen] = React28.useState(false);
4170
- const [value, setValue] = React28.useState(defaultValue);
4258
+ const [open, setOpen] = React29.useState(false);
4259
+ const [value, setValue] = React29.useState(defaultValue);
4171
4260
  function getProperty(obj, key) {
4172
4261
  return obj[key];
4173
4262
  }
@@ -4176,7 +4265,7 @@ var Combobox = React28.forwardRef(
4176
4265
  setOpen(open2);
4177
4266
  }
4178
4267
  };
4179
- return /* @__PURE__ */ React28.createElement(
4268
+ return /* @__PURE__ */ React29.createElement(
4180
4269
  "div",
4181
4270
  {
4182
4271
  className: cn(
@@ -4184,8 +4273,8 @@ var Combobox = React28.forwardRef(
4184
4273
  props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
4185
4274
  )
4186
4275
  },
4187
- props.label && /* @__PURE__ */ React28.createElement(Label2, { ...labelProps }, props.label),
4188
- /* @__PURE__ */ React28.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React28.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React28.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React28.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-items-start " }, /* @__PURE__ */ React28.createElement(
4276
+ props.label && /* @__PURE__ */ React29.createElement(Label2, { ...labelProps }, props.label),
4277
+ /* @__PURE__ */ React29.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React29.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React29.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React29.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-items-start " }, /* @__PURE__ */ React29.createElement(
4189
4278
  "div",
4190
4279
  {
4191
4280
  className: cn(
@@ -4193,7 +4282,7 @@ var Combobox = React28.forwardRef(
4193
4282
  props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
4194
4283
  )
4195
4284
  }
4196
- ), /* @__PURE__ */ React28.createElement(
4285
+ ), /* @__PURE__ */ React29.createElement(
4197
4286
  "button",
4198
4287
  {
4199
4288
  role: "combobox",
@@ -4207,7 +4296,7 @@ var Combobox = React28.forwardRef(
4207
4296
  data.find((item) => item[valueKey] === value) || {},
4208
4297
  labelKey
4209
4298
  ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
4210
- /* @__PURE__ */ React28.createElement(
4299
+ /* @__PURE__ */ React29.createElement(
4211
4300
  "svg",
4212
4301
  {
4213
4302
  xmlns: "http://www.w3.org/2000/svg",
@@ -4223,9 +4312,9 @@ var Combobox = React28.forwardRef(
4223
4312
  strokeLinecap: "round",
4224
4313
  strokeLinejoin: "round"
4225
4314
  },
4226
- /* @__PURE__ */ React28.createElement("path", { d: "m6 9 6 6 6-6" })
4315
+ /* @__PURE__ */ React29.createElement("path", { d: "m6 9 6 6 6-6" })
4227
4316
  )
4228
- ), /* @__PURE__ */ React28.createElement(
4317
+ ), /* @__PURE__ */ React29.createElement(
4229
4318
  "p",
4230
4319
  {
4231
4320
  className: cn(
@@ -4234,17 +4323,17 @@ var Combobox = React28.forwardRef(
4234
4323
  )
4235
4324
  },
4236
4325
  props.helperText
4237
- ))), /* @__PURE__ */ React28.createElement(
4326
+ ))), /* @__PURE__ */ React29.createElement(
4238
4327
  PopoverContent,
4239
4328
  {
4240
4329
  className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
4241
4330
  },
4242
- /* @__PURE__ */ React28.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React28.createElement(
4331
+ /* @__PURE__ */ React29.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React29.createElement(
4243
4332
  CommandInput,
4244
4333
  {
4245
4334
  placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
4246
4335
  }
4247
- ), /* @__PURE__ */ React28.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React28.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React28.createElement(
4336
+ ), /* @__PURE__ */ React29.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React29.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React29.createElement(
4248
4337
  CommandItem,
4249
4338
  {
4250
4339
  key: i,
@@ -4259,7 +4348,7 @@ var Combobox = React28.forwardRef(
4259
4348
  setOpen(false);
4260
4349
  }
4261
4350
  },
4262
- /* @__PURE__ */ React28.createElement(
4351
+ /* @__PURE__ */ React29.createElement(
4263
4352
  "svg",
4264
4353
  {
4265
4354
  "aria-label": "Check Icon",
@@ -4277,7 +4366,7 @@ var Combobox = React28.forwardRef(
4277
4366
  value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
4278
4367
  )
4279
4368
  },
4280
- /* @__PURE__ */ React28.createElement("polyline", { points: "20 6 9 17 4 12" })
4369
+ /* @__PURE__ */ React29.createElement("polyline", { points: "20 6 9 17 4 12" })
4281
4370
  ),
4282
4371
  getProperty(item, labelKey)
4283
4372
  ))))
@@ -4287,10 +4376,10 @@ var Combobox = React28.forwardRef(
4287
4376
  );
4288
4377
 
4289
4378
  // components/elements/Avatar.tsx
4290
- import React30 from "react";
4379
+ import React31 from "react";
4291
4380
 
4292
4381
  // components/elements/FileUploader.tsx
4293
- import React29, { useRef as useRef5 } from "react";
4382
+ import React30, { useRef as useRef5 } from "react";
4294
4383
  var FileUploader = ({ handleFile, className }) => {
4295
4384
  const hiddenFileInput = useRef5(null);
4296
4385
  const handleClick = () => {
@@ -4301,7 +4390,7 @@ var FileUploader = ({ handleFile, className }) => {
4301
4390
  const fileUploaded = event.target.files[0];
4302
4391
  handleFile(fileUploaded);
4303
4392
  };
4304
- return /* @__PURE__ */ React29.createElement("div", { className }, /* @__PURE__ */ React29.createElement("button", { className: "hawa-h-full hawa-w-full", onClick: handleClick }), /* @__PURE__ */ React29.createElement(
4393
+ return /* @__PURE__ */ React30.createElement("div", { className }, /* @__PURE__ */ React30.createElement("button", { className: "hawa-h-full hawa-w-full", onClick: handleClick }), /* @__PURE__ */ React30.createElement(
4305
4394
  "input",
4306
4395
  {
4307
4396
  type: "file",
@@ -4340,7 +4429,7 @@ var Avatar = ({
4340
4429
  inherit: "hawa-rounded",
4341
4430
  none: "hawa-rounded-none"
4342
4431
  };
4343
- return /* @__PURE__ */ React30.createElement(
4432
+ return /* @__PURE__ */ React31.createElement(
4344
4433
  "div",
4345
4434
  {
4346
4435
  className: cn(
@@ -4350,7 +4439,7 @@ var Avatar = ({
4350
4439
  className
4351
4440
  )
4352
4441
  },
4353
- /* @__PURE__ */ React30.createElement(
4442
+ /* @__PURE__ */ React31.createElement(
4354
4443
  FileUploader,
4355
4444
  {
4356
4445
  className: cn(
@@ -4361,7 +4450,7 @@ var Avatar = ({
4361
4450
  )
4362
4451
  }
4363
4452
  ),
4364
- /* @__PURE__ */ React30.createElement(
4453
+ /* @__PURE__ */ React31.createElement(
4365
4454
  "img",
4366
4455
  {
4367
4456
  className: cn(
@@ -4374,7 +4463,7 @@ var Avatar = ({
4374
4463
  alt
4375
4464
  }
4376
4465
  ),
4377
- !src && !isUploadable && /* @__PURE__ */ React30.createElement(
4466
+ !src && !isUploadable && /* @__PURE__ */ React31.createElement(
4378
4467
  "div",
4379
4468
  {
4380
4469
  className: cn(
@@ -4382,7 +4471,7 @@ var Avatar = ({
4382
4471
  "hawa-justify-center hawa-items-center hawa-flex hawa-flex-col"
4383
4472
  )
4384
4473
  },
4385
- /* @__PURE__ */ React30.createElement(
4474
+ /* @__PURE__ */ React31.createElement(
4386
4475
  "svg",
4387
4476
  {
4388
4477
  xmlns: "http://www.w3.org/2000/svg",
@@ -4394,28 +4483,28 @@ var Avatar = ({
4394
4483
  strokeLinecap: "round",
4395
4484
  strokeLinejoin: "round"
4396
4485
  },
4397
- /* @__PURE__ */ React30.createElement("circle", { cx: "12", cy: "8", r: "5" }),
4398
- /* @__PURE__ */ React30.createElement("path", { d: "M20 21a8 8 0 1 0-16 0" })
4486
+ /* @__PURE__ */ React31.createElement("circle", { cx: "12", cy: "8", r: "5" }),
4487
+ /* @__PURE__ */ React31.createElement("path", { d: "M20 21a8 8 0 1 0-16 0" })
4399
4488
  )
4400
4489
  )
4401
4490
  );
4402
4491
  };
4403
4492
 
4404
4493
  // components/elements/SplitButton.tsx
4405
- import * as React31 from "react";
4494
+ import * as React32 from "react";
4406
4495
  var SplitButton = ({
4407
4496
  variant,
4408
4497
  direction = "ltr",
4409
4498
  menuItems = [],
4410
4499
  children,
4411
4500
  ...props
4412
- }) => /* @__PURE__ */ React31.createElement(
4501
+ }) => /* @__PURE__ */ React32.createElement(
4413
4502
  "div",
4414
4503
  {
4415
4504
  dir: "ltr",
4416
4505
  className: cn("hawa-h-fit hawa-flex hawa-justify-center hawa-row")
4417
4506
  },
4418
- /* @__PURE__ */ React31.createElement(
4507
+ /* @__PURE__ */ React32.createElement(
4419
4508
  Button,
4420
4509
  {
4421
4510
  variant,
@@ -4424,14 +4513,14 @@ var SplitButton = ({
4424
4513
  },
4425
4514
  children
4426
4515
  ),
4427
- /* @__PURE__ */ React31.createElement(
4516
+ /* @__PURE__ */ React32.createElement(
4428
4517
  DropdownMenu,
4429
4518
  {
4430
4519
  size: "sm",
4431
4520
  width: "sm",
4432
4521
  direction,
4433
4522
  items: menuItems,
4434
- trigger: /* @__PURE__ */ React31.createElement(
4523
+ trigger: /* @__PURE__ */ React32.createElement(
4435
4524
  Button,
4436
4525
  {
4437
4526
  asChild: true,
@@ -4442,7 +4531,7 @@ var SplitButton = ({
4442
4531
  props.className
4443
4532
  )
4444
4533
  },
4445
- /* @__PURE__ */ React31.createElement(
4534
+ /* @__PURE__ */ React32.createElement(
4446
4535
  "svg",
4447
4536
  {
4448
4537
  xmlns: "http://www.w3.org/2000/svg",
@@ -4455,7 +4544,7 @@ var SplitButton = ({
4455
4544
  strokeLinecap: "round",
4456
4545
  strokeLinejoin: "round"
4457
4546
  },
4458
- /* @__PURE__ */ React31.createElement("path", { d: "m6 9 6 6 6-6" })
4547
+ /* @__PURE__ */ React32.createElement("path", { d: "m6 9 6 6 6-6" })
4459
4548
  )
4460
4549
  )
4461
4550
  }
@@ -4464,18 +4553,18 @@ var SplitButton = ({
4464
4553
  SplitButton.displayName = "SplitButton";
4465
4554
 
4466
4555
  // components/elements/Breadcrumb.tsx
4467
- import React32 from "react";
4556
+ import React33 from "react";
4468
4557
  var Breadcrumb = ({
4469
4558
  breadcrumbLinks,
4470
4559
  separator = ">"
4471
4560
  }) => {
4472
- return /* @__PURE__ */ React32.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ React32.createElement(
4561
+ return /* @__PURE__ */ React33.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ React33.createElement(
4473
4562
  "div",
4474
4563
  {
4475
4564
  key: index,
4476
4565
  className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
4477
4566
  },
4478
- /* @__PURE__ */ React32.createElement(
4567
+ /* @__PURE__ */ React33.createElement(
4479
4568
  "a",
4480
4569
  {
4481
4570
  href: singleBreadcrumbLink.href,
@@ -4483,12 +4572,12 @@ var Breadcrumb = ({
4483
4572
  },
4484
4573
  singleBreadcrumbLink.label
4485
4574
  ),
4486
- index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ React32.createElement("div", null, separator) : /* @__PURE__ */ React32.createElement("div", null, separator) : null
4575
+ index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ React33.createElement("div", null, separator) : /* @__PURE__ */ React33.createElement("div", null, separator) : null
4487
4576
  )));
4488
4577
  };
4489
4578
 
4490
4579
  // components/elements/CodeBlock.tsx
4491
- import React33, { useState as useState12 } from "react";
4580
+ import React34, { useState as useState12 } from "react";
4492
4581
 
4493
4582
  // components/hooks/useClipboard.ts
4494
4583
  import { useState as useState11 } from "react";
@@ -4538,7 +4627,7 @@ var CodeBlock = ({
4538
4627
  sm: "hawa-w-full hawa-max-w-sm",
4539
4628
  xs: "hawa-w-full hawa-max-w-xs"
4540
4629
  };
4541
- return /* @__PURE__ */ React33.createElement(
4630
+ return /* @__PURE__ */ React34.createElement(
4542
4631
  "div",
4543
4632
  {
4544
4633
  className: cn(
@@ -4547,7 +4636,7 @@ var CodeBlock = ({
4547
4636
  className
4548
4637
  )
4549
4638
  },
4550
- fileName && /* @__PURE__ */ React33.createElement(
4639
+ fileName && /* @__PURE__ */ React34.createElement(
4551
4640
  "div",
4552
4641
  {
4553
4642
  className: cn(
@@ -4555,7 +4644,7 @@ var CodeBlock = ({
4555
4644
  fileName && tabs ? "hawa-bg-gray-300 dark:hawa-bg-muted/50" : "hawa-bg-gray-200"
4556
4645
  )
4557
4646
  },
4558
- /* @__PURE__ */ React33.createElement(
4647
+ /* @__PURE__ */ React34.createElement(
4559
4648
  "div",
4560
4649
  {
4561
4650
  className: cn(
@@ -4565,7 +4654,7 @@ var CodeBlock = ({
4565
4654
  fileName
4566
4655
  )
4567
4656
  ),
4568
- tabs && /* @__PURE__ */ React33.createElement(
4657
+ tabs && /* @__PURE__ */ React34.createElement(
4569
4658
  "div",
4570
4659
  {
4571
4660
  className: cn(
@@ -4573,7 +4662,7 @@ var CodeBlock = ({
4573
4662
  tabs && fileName && "hawa-rounded-t-none"
4574
4663
  )
4575
4664
  },
4576
- tabs.map((tab, i) => /* @__PURE__ */ React33.createElement(
4665
+ tabs.map((tab, i) => /* @__PURE__ */ React34.createElement(
4577
4666
  "div",
4578
4667
  {
4579
4668
  key: i,
@@ -4581,7 +4670,7 @@ var CodeBlock = ({
4581
4670
  selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent"
4582
4671
  )
4583
4672
  },
4584
- /* @__PURE__ */ React33.createElement(
4673
+ /* @__PURE__ */ React34.createElement(
4585
4674
  "div",
4586
4675
  {
4587
4676
  onClick: () => setSelectedTab(i),
@@ -4593,7 +4682,7 @@ var CodeBlock = ({
4593
4682
  )
4594
4683
  ))
4595
4684
  ),
4596
- /* @__PURE__ */ React33.createElement(
4685
+ /* @__PURE__ */ React34.createElement(
4597
4686
  "div",
4598
4687
  {
4599
4688
  className: cn(
@@ -4601,23 +4690,23 @@ var CodeBlock = ({
4601
4690
  tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
4602
4691
  )
4603
4692
  },
4604
- /* @__PURE__ */ React33.createElement(
4693
+ /* @__PURE__ */ React34.createElement(
4605
4694
  Highlight,
4606
4695
  {
4607
4696
  theme,
4608
4697
  code: tabs ? tabs[selectedTab].code : code || "",
4609
4698
  language
4610
4699
  },
4611
- ({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React33.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-text-foreground hawa-font-mono" }, tokens.map((line, i) => /* @__PURE__ */ React33.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React33.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React33.createElement("span", { key, ...getTokenProps({ token }) })))))
4700
+ ({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React34.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-text-foreground hawa-font-mono" }, tokens.map((line, i) => /* @__PURE__ */ React34.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React34.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React34.createElement("span", { key, ...getTokenProps({ token }) })))))
4612
4701
  ),
4613
- /* @__PURE__ */ React33.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ React33.createElement(
4702
+ /* @__PURE__ */ React34.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ React34.createElement(
4614
4703
  Tooltip,
4615
4704
  {
4616
4705
  open: clipboard.copied,
4617
4706
  side: "left",
4618
- content: /* @__PURE__ */ React33.createElement("div", null, "Copied!")
4707
+ content: /* @__PURE__ */ React34.createElement("div", null, "Copied!")
4619
4708
  },
4620
- /* @__PURE__ */ React33.createElement(
4709
+ /* @__PURE__ */ React34.createElement(
4621
4710
  Button,
4622
4711
  {
4623
4712
  size: "icon",
@@ -4625,7 +4714,7 @@ var CodeBlock = ({
4625
4714
  variant: "outline",
4626
4715
  className: "hawa-opacity-50 sm:hawa-opacity-100 hawa-text-foreground"
4627
4716
  },
4628
- /* @__PURE__ */ React33.createElement(
4717
+ /* @__PURE__ */ React34.createElement(
4629
4718
  "svg",
4630
4719
  {
4631
4720
  "aria-label": "Copy Icon",
@@ -4638,8 +4727,8 @@ var CodeBlock = ({
4638
4727
  height: "1em",
4639
4728
  width: "1em"
4640
4729
  },
4641
- /* @__PURE__ */ React33.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
4642
- /* @__PURE__ */ React33.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
4730
+ /* @__PURE__ */ React34.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
4731
+ /* @__PURE__ */ React34.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
4643
4732
  )
4644
4733
  )
4645
4734
  ))
@@ -4648,7 +4737,7 @@ var CodeBlock = ({
4648
4737
  };
4649
4738
 
4650
4739
  // components/elements/Toast.tsx
4651
- import * as React34 from "react";
4740
+ import * as React35 from "react";
4652
4741
  import * as ToastPrimitives from "@radix-ui/react-toast";
4653
4742
  import { cva as cva2 } from "class-variance-authority";
4654
4743
  var toastVariants = cva2(
@@ -4673,7 +4762,7 @@ var toastVariants = cva2(
4673
4762
  }
4674
4763
  );
4675
4764
  var ToastProvider = ToastPrimitives.Provider;
4676
- var ToastViewport = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React34.createElement(
4765
+ var ToastViewport = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React35.createElement(
4677
4766
  ToastPrimitives.Viewport,
4678
4767
  {
4679
4768
  ref,
@@ -4685,8 +4774,8 @@ var ToastViewport = React34.forwardRef(({ className, ...props }, ref) => /* @__P
4685
4774
  }
4686
4775
  ));
4687
4776
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
4688
- var Toast = React34.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
4689
- return /* @__PURE__ */ React34.createElement(
4777
+ var Toast = React35.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
4778
+ return /* @__PURE__ */ React35.createElement(
4690
4779
  ToastPrimitives.Root,
4691
4780
  {
4692
4781
  ref,
@@ -4701,8 +4790,8 @@ var Toast = React34.forwardRef(({ className, variant, severity = "none", directi
4701
4790
  );
4702
4791
  });
4703
4792
  Toast.displayName = ToastPrimitives.Root.displayName;
4704
- var ToastAction = React34.forwardRef(({ className, ...props }, ref) => {
4705
- return /* @__PURE__ */ React34.createElement(
4793
+ var ToastAction = React35.forwardRef(({ className, ...props }, ref) => {
4794
+ return /* @__PURE__ */ React35.createElement(
4706
4795
  ToastPrimitives.Action,
4707
4796
  {
4708
4797
  ref,
@@ -4719,7 +4808,7 @@ var ToastAction = React34.forwardRef(({ className, ...props }, ref) => {
4719
4808
  );
4720
4809
  });
4721
4810
  ToastAction.displayName = ToastPrimitives.Action.displayName;
4722
- var ToastClose = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React34.createElement(
4811
+ var ToastClose = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React35.createElement(
4723
4812
  ToastPrimitives.Close,
4724
4813
  {
4725
4814
  ref,
@@ -4730,7 +4819,7 @@ var ToastClose = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE
4730
4819
  "toast-close": "",
4731
4820
  ...props
4732
4821
  },
4733
- /* @__PURE__ */ React34.createElement(
4822
+ /* @__PURE__ */ React35.createElement(
4734
4823
  "svg",
4735
4824
  {
4736
4825
  "aria-label": "Close Icon",
@@ -4739,7 +4828,7 @@ var ToastClose = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE
4739
4828
  fill: "currentColor",
4740
4829
  viewBox: "0 0 20 20"
4741
4830
  },
4742
- /* @__PURE__ */ React34.createElement(
4831
+ /* @__PURE__ */ React35.createElement(
4743
4832
  "path",
4744
4833
  {
4745
4834
  fillRule: "evenodd",
@@ -4750,7 +4839,7 @@ var ToastClose = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE
4750
4839
  )
4751
4840
  ));
4752
4841
  ToastClose.displayName = ToastPrimitives.Close.displayName;
4753
- var ToastTitle = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React34.createElement(
4842
+ var ToastTitle = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React35.createElement(
4754
4843
  ToastPrimitives.Title,
4755
4844
  {
4756
4845
  ref,
@@ -4762,7 +4851,7 @@ var ToastTitle = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE
4762
4851
  }
4763
4852
  ));
4764
4853
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
4765
- var ToastDescription = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React34.createElement(
4854
+ var ToastDescription = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React35.createElement(
4766
4855
  ToastPrimitives.Description,
4767
4856
  {
4768
4857
  ref,
@@ -4773,10 +4862,10 @@ var ToastDescription = React34.forwardRef(({ className, ...props }, ref) => /* @
4773
4862
  ToastDescription.displayName = ToastPrimitives.Description.displayName;
4774
4863
 
4775
4864
  // components/elements/Toaster.tsx
4776
- import React36 from "react";
4865
+ import React37 from "react";
4777
4866
 
4778
4867
  // components/hooks/useToast.ts
4779
- import * as React35 from "react";
4868
+ import * as React36 from "react";
4780
4869
  var TOAST_LIMIT = 5;
4781
4870
  var TOAST_REMOVE_DELAY = 1e5;
4782
4871
  var count = 0;
@@ -4872,8 +4961,8 @@ function toast({ ...props }) {
4872
4961
  };
4873
4962
  }
4874
4963
  function useToast() {
4875
- const [state, setState] = React35.useState(memoryState);
4876
- React35.useEffect(() => {
4964
+ const [state, setState] = React36.useState(memoryState);
4965
+ React36.useEffect(() => {
4877
4966
  listeners.push(setState);
4878
4967
  return () => {
4879
4968
  const index = listeners.indexOf(setState);
@@ -4893,9 +4982,9 @@ function useToast() {
4893
4982
  function Toaster(props) {
4894
4983
  const { toasts } = useToast();
4895
4984
  let isRTL = props.direction === "rtl";
4896
- return /* @__PURE__ */ React36.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, toasts.map(function({ id, title, description, action, ...toastProps }) {
4897
- return /* @__PURE__ */ React36.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React36.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ React36.createElement(ToastTitle, null, title), description && /* @__PURE__ */ React36.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ React36.createElement(ToastClose, null));
4898
- }), /* @__PURE__ */ React36.createElement(
4985
+ return /* @__PURE__ */ React37.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, toasts.map(function({ id, title, description, action, ...toastProps }) {
4986
+ return /* @__PURE__ */ React37.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React37.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ React37.createElement(ToastTitle, null, title), description && /* @__PURE__ */ React37.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ React37.createElement(ToastClose, null));
4987
+ }), /* @__PURE__ */ React37.createElement(
4899
4988
  ToastViewport,
4900
4989
  {
4901
4990
  className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
@@ -4903,87 +4992,6 @@ function Toaster(props) {
4903
4992
  ));
4904
4993
  }
4905
4994
 
4906
- // components/elements/Chip.tsx
4907
- import React37 from "react";
4908
- var Chip = React37.forwardRef(
4909
- ({
4910
- label,
4911
- size = "normal",
4912
- icon,
4913
- color,
4914
- radius = "inherit",
4915
- dotType,
4916
- ...rest
4917
- }, ref) => {
4918
- let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
4919
- let radiusStyles = {
4920
- inherit: " hawa-rounded",
4921
- full: "hawa-rounded-full",
4922
- none: "hawa-rounded-none"
4923
- };
4924
- let sizeStyles = {
4925
- small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
4926
- normal: "hawa-h-fit hawa-text-xs",
4927
- large: "hawa-text-base"
4928
- };
4929
- let dotStyles = {
4930
- small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
4931
- normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
4932
- large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
4933
- };
4934
- let dotTypeStyles = {
4935
- available: "hawa-bg-green-500",
4936
- unavailable: "hawa-bg-red-500"
4937
- };
4938
- let colorStyles = {
4939
- green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
4940
- blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
4941
- red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
4942
- yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
4943
- orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
4944
- purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
4945
- cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
4946
- hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
4947
- oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
4948
- };
4949
- if (label) {
4950
- return /* @__PURE__ */ React37.createElement(
4951
- "span",
4952
- {
4953
- ...rest,
4954
- ref,
4955
- className: cn(
4956
- defaultStyles,
4957
- sizeStyles[size],
4958
- radiusStyles[radius],
4959
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
4960
- )
4961
- },
4962
- dotType && /* @__PURE__ */ React37.createElement(
4963
- "span",
4964
- {
4965
- className: cn(dotStyles[size], dotTypeStyles[dotType])
4966
- }
4967
- ),
4968
- icon && icon,
4969
- label
4970
- );
4971
- } else {
4972
- return /* @__PURE__ */ React37.createElement(
4973
- "span",
4974
- {
4975
- ...rest,
4976
- ref,
4977
- className: cn(
4978
- "hawa-w-2 hawa-h-2 hawa-rounded-full",
4979
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
4980
- )
4981
- }
4982
- );
4983
- }
4984
- }
4985
- );
4986
-
4987
4995
  // components/elements/Alert.tsx
4988
4996
  import React38, { useRef as useRef6, useState as useState14, useEffect as useEffect11 } from "react";
4989
4997
  var Alert = ({