@sikka/hawa 0.35.5-next → 0.35.6-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.
@@ -36,28 +36,37 @@ __export(appLayout_exports, {
36
36
  module.exports = __toCommonJS(appLayout_exports);
37
37
 
38
38
  // layout/appLayout/AppLayout.tsx
39
- var import_react7 = __toESM(require("react"));
39
+ var import_react10 = __toESM(require("react"));
40
40
 
41
- // hooks/useOutsideClick.ts
42
- var import_react = __toESM(require("react"));
43
- var useOutsideClick = (callback) => {
44
- const ref = import_react.default.useRef(null);
45
- import_react.default.useEffect(() => {
46
- const handleClickOutside = (event) => {
47
- if (ref.current && !ref.current.contains(event.target)) {
48
- callback();
41
+ // hooks/useClickOutside.ts
42
+ var import_react = require("react");
43
+ var DEFAULT_EVENTS = ["mousedown", "touchstart"];
44
+ function useClickOutside(handler, events, nodes) {
45
+ const ref = (0, import_react.useRef)();
46
+ (0, import_react.useEffect)(() => {
47
+ const listener = (event) => {
48
+ const { target } = event != null ? event : {};
49
+ if (Array.isArray(nodes)) {
50
+ const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
51
+ const shouldTrigger = nodes.every(
52
+ (node) => !!node && !event.composedPath().includes(node)
53
+ );
54
+ shouldTrigger && !shouldIgnore && handler();
55
+ } else if (ref.current && !ref.current.contains(target)) {
56
+ handler();
49
57
  }
50
58
  };
51
- document.addEventListener("mousedown", handleClickOutside, true);
52
- document.addEventListener("touchstart", handleClickOutside, true);
59
+ (events || DEFAULT_EVENTS).forEach(
60
+ (fn) => document.addEventListener(fn, listener)
61
+ );
53
62
  return () => {
54
- document.removeEventListener("mousedown", handleClickOutside, true);
55
- document.removeEventListener("touchstart", handleClickOutside, true);
63
+ (events || DEFAULT_EVENTS).forEach(
64
+ (fn) => document.removeEventListener(fn, listener)
65
+ );
56
66
  };
57
- }, [ref, callback]);
67
+ }, [ref, handler, nodes]);
58
68
  return ref;
59
- };
60
- var useOutsideClick_default = useOutsideClick;
69
+ }
61
70
 
62
71
  // util/index.ts
63
72
  var import_clsx = require("clsx");
@@ -67,7 +76,7 @@ function cn(...inputs) {
67
76
  }
68
77
 
69
78
  // elements/button/Button.tsx
70
- var React6 = __toESM(require("react"));
79
+ var React5 = __toESM(require("react"));
71
80
  var import_class_variance_authority = require("class-variance-authority");
72
81
 
73
82
  // elements/helperText/HelperText.tsx
@@ -84,7 +93,7 @@ var HelperText = ({ helperText }) => /* @__PURE__ */ import_react2.default.creat
84
93
  );
85
94
 
86
95
  // elements/label/Label.tsx
87
- var React4 = __toESM(require("react"));
96
+ var React3 = __toESM(require("react"));
88
97
 
89
98
  // elements/tooltip/Tooltip.tsx
90
99
  var import_react3 = __toESM(require("react"));
@@ -158,7 +167,7 @@ var Tooltip = ({
158
167
  };
159
168
 
160
169
  // elements/label/Label.tsx
161
- var Label = React4.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React4.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React4.createElement(
170
+ var Label = React3.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React3.createElement(
162
171
  "label",
163
172
  {
164
173
  ref,
@@ -169,8 +178,8 @@ var Label = React4.forwardRef(({ className, hint, hintSide, required, children,
169
178
  ...props
170
179
  },
171
180
  children,
172
- required && /* @__PURE__ */ React4.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
173
- ), hint && /* @__PURE__ */ React4.createElement(
181
+ required && /* @__PURE__ */ React3.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
182
+ ), hint && /* @__PURE__ */ React3.createElement(
174
183
  Tooltip,
175
184
  {
176
185
  content: hint,
@@ -180,7 +189,7 @@ var Label = React4.forwardRef(({ className, hint, hintSide, required, children,
180
189
  onClick: (event) => event.preventDefault()
181
190
  }
182
191
  },
183
- /* @__PURE__ */ React4.createElement("div", null, /* @__PURE__ */ React4.createElement(
192
+ /* @__PURE__ */ React3.createElement("div", null, /* @__PURE__ */ React3.createElement(
184
193
  "svg",
185
194
  {
186
195
  xmlns: "http://www.w3.org/2000/svg",
@@ -192,9 +201,9 @@ var Label = React4.forwardRef(({ className, hint, hintSide, required, children,
192
201
  strokeLinecap: "round",
193
202
  strokeLinejoin: "round"
194
203
  },
195
- /* @__PURE__ */ React4.createElement("circle", { cx: "12", cy: "12", r: "10" }),
196
- /* @__PURE__ */ React4.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
197
- /* @__PURE__ */ React4.createElement("path", { d: "M12 17h.01" })
204
+ /* @__PURE__ */ React3.createElement("circle", { cx: "12", cy: "12", r: "10" }),
205
+ /* @__PURE__ */ React3.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
206
+ /* @__PURE__ */ React3.createElement("path", { d: "M12 17h.01" })
198
207
  ))
199
208
  )));
200
209
  Label.displayName = "Label";
@@ -448,7 +457,7 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
448
457
  defaultVariants: { variant: "default", size: "default" }
449
458
  }
450
459
  );
451
- var Button = React6.forwardRef(
460
+ var Button = React5.forwardRef(
452
461
  ({
453
462
  className,
454
463
  label,
@@ -464,7 +473,7 @@ var Button = React6.forwardRef(
464
473
  }, ref) => {
465
474
  const Comp = "button";
466
475
  const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
467
- return /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React6.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React6.createElement(
476
+ return /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React5.createElement(
468
477
  Comp,
469
478
  {
470
479
  className: cn(
@@ -474,7 +483,7 @@ var Button = React6.forwardRef(
474
483
  ref,
475
484
  ...props
476
485
  },
477
- isLoading ? /* @__PURE__ */ React6.createElement(
486
+ isLoading ? /* @__PURE__ */ React5.createElement(
478
487
  Loading,
479
488
  {
480
489
  design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
@@ -483,20 +492,20 @@ var Button = React6.forwardRef(
483
492
  size: size === "sm" || size === "xs" ? "xs" : "button"
484
493
  }
485
494
  ) : children
486
- ), showHelperText && /* @__PURE__ */ React6.createElement(HelperText, { helperText: props.helperText }));
495
+ ), showHelperText && /* @__PURE__ */ React5.createElement(HelperText, { helperText: props.helperText }));
487
496
  }
488
497
  );
489
498
  Button.displayName = "Button";
490
499
 
491
500
  // elements/dropdownMenu/DropdownMenu.tsx
492
- var React7 = __toESM(require("react"));
501
+ var React6 = __toESM(require("react"));
493
502
  var import_react5 = require("@headlessui/react");
494
503
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
495
504
  var DropdownMenuRoot = DropdownMenuPrimitive.Root;
496
505
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
497
506
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
498
507
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
499
- var DropdownMenuSubTrigger = React7.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
508
+ var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
500
509
  DropdownMenuPrimitive.SubTrigger,
501
510
  {
502
511
  ref,
@@ -507,9 +516,9 @@ var DropdownMenuSubTrigger = React7.forwardRef(({ className, inset, children, ..
507
516
  ),
508
517
  ...props
509
518
  },
510
- /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
519
+ /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
511
520
  " ",
512
- /* @__PURE__ */ React7.createElement(
521
+ /* @__PURE__ */ React6.createElement(
513
522
  "svg",
514
523
  {
515
524
  "aria-label": "Chevron Right Icon",
@@ -521,7 +530,7 @@ var DropdownMenuSubTrigger = React7.forwardRef(({ className, inset, children, ..
521
530
  width: "1em",
522
531
  className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
523
532
  },
524
- /* @__PURE__ */ React7.createElement(
533
+ /* @__PURE__ */ React6.createElement(
525
534
  "path",
526
535
  {
527
536
  fillRule: "evenodd",
@@ -531,7 +540,7 @@ var DropdownMenuSubTrigger = React7.forwardRef(({ className, inset, children, ..
531
540
  )
532
541
  ));
533
542
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
534
- var DropdownMenuSubContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
543
+ var DropdownMenuSubContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
535
544
  DropdownMenuPrimitive.SubContent,
536
545
  {
537
546
  ref,
@@ -543,7 +552,7 @@ var DropdownMenuSubContent = React7.forwardRef(({ className, ...props }, ref) =>
543
552
  }
544
553
  ));
545
554
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
546
- var DropdownMenuContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React7.createElement(import_react5.Portal, null, /* @__PURE__ */ React7.createElement(
555
+ var DropdownMenuContent = React6.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React6.createElement(import_react5.Portal, null, /* @__PURE__ */ React6.createElement(
547
556
  DropdownMenuPrimitive.Content,
548
557
  {
549
558
  ref,
@@ -556,8 +565,8 @@ var DropdownMenuContent = React7.forwardRef(({ className, sideOffset = 4, ...pro
556
565
  }
557
566
  )));
558
567
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
559
- var DropdownMenuItem = React7.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
560
- return /* @__PURE__ */ React7.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React7.createElement(
568
+ var DropdownMenuItem = React6.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
569
+ return /* @__PURE__ */ React6.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React6.createElement(
561
570
  DropdownMenuPrimitive.Item,
562
571
  {
563
572
  disabled: props.disabled,
@@ -570,14 +579,14 @@ var DropdownMenuItem = React7.forwardRef(({ className, inset, badged, slug, Link
570
579
  ),
571
580
  ...props
572
581
  },
573
- /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
582
+ /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
574
583
  props.end && props.end,
575
- !props.end && props.shortcut && /* @__PURE__ */ React7.createElement(DropdownMenuShortcut, null, props.shortcut),
576
- !props.end && badged && /* @__PURE__ */ React7.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
584
+ !props.end && props.shortcut && /* @__PURE__ */ React6.createElement(DropdownMenuShortcut, null, props.shortcut),
585
+ !props.end && badged && /* @__PURE__ */ React6.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
577
586
  ));
578
587
  });
579
588
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
580
- var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React7.createElement(
589
+ var DropdownMenuCheckboxItem = React6.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React6.createElement(
581
590
  DropdownMenuPrimitive.CheckboxItem,
582
591
  {
583
592
  ref,
@@ -588,7 +597,7 @@ var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, checked
588
597
  checked,
589
598
  ...props
590
599
  },
591
- /* @__PURE__ */ React7.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__ */ React7.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React7.createElement(
600
+ /* @__PURE__ */ React6.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__ */ React6.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React6.createElement(
592
601
  "svg",
593
602
  {
594
603
  "aria-label": "Check Mark",
@@ -599,12 +608,12 @@ var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, checked
599
608
  height: "0.60em",
600
609
  width: "0.60em"
601
610
  },
602
- /* @__PURE__ */ React7.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" })
611
+ /* @__PURE__ */ React6.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" })
603
612
  ), " ")),
604
613
  children
605
614
  ));
606
615
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
607
- var DropdownMenuRadioItem = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
616
+ var DropdownMenuRadioItem = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
608
617
  DropdownMenuPrimitive.RadioItem,
609
618
  {
610
619
  ref,
@@ -614,7 +623,7 @@ var DropdownMenuRadioItem = React7.forwardRef(({ className, children, ...props }
614
623
  ),
615
624
  ...props
616
625
  },
617
- /* @__PURE__ */ React7.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__ */ React7.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React7.createElement(
626
+ /* @__PURE__ */ React6.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__ */ React6.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React6.createElement(
618
627
  "svg",
619
628
  {
620
629
  xmlns: "http://www.w3.org/2000/svg",
@@ -629,12 +638,12 @@ var DropdownMenuRadioItem = React7.forwardRef(({ className, children, ...props }
629
638
  strokeLinejoin: "round",
630
639
  className: "hawa-h-2 hawa-w-2 hawa-fill-current"
631
640
  },
632
- /* @__PURE__ */ React7.createElement("circle", { cx: "12", cy: "12", r: "10" })
641
+ /* @__PURE__ */ React6.createElement("circle", { cx: "12", cy: "12", r: "10" })
633
642
  ))),
634
643
  children
635
644
  ));
636
645
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
637
- var DropdownMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React7.createElement(
646
+ var DropdownMenuLabel = React6.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React6.createElement(
638
647
  DropdownMenuPrimitive.Label,
639
648
  {
640
649
  ref,
@@ -647,7 +656,7 @@ var DropdownMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref)
647
656
  }
648
657
  ));
649
658
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
650
- var DropdownMenuSeparator = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
659
+ var DropdownMenuSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
651
660
  DropdownMenuPrimitive.Separator,
652
661
  {
653
662
  ref,
@@ -660,7 +669,7 @@ var DropdownMenuShortcut = ({
660
669
  className,
661
670
  ...props
662
671
  }) => {
663
- return /* @__PURE__ */ React7.createElement(
672
+ return /* @__PURE__ */ React6.createElement(
664
673
  "span",
665
674
  {
666
675
  className: cn(
@@ -701,10 +710,10 @@ var DropdownMenu = ({
701
710
  default: "hawa-px-2 hawa-py-3 ",
702
711
  sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
703
712
  };
704
- let [values, setValues] = React7.useState(
713
+ let [values, setValues] = React6.useState(
705
714
  items.map((item) => item.currentOption)
706
715
  );
707
- return /* @__PURE__ */ React7.createElement(
716
+ return /* @__PURE__ */ React6.createElement(
708
717
  DropdownMenuRoot,
709
718
  {
710
719
  onOpenChange,
@@ -712,7 +721,7 @@ var DropdownMenu = ({
712
721
  modal: false,
713
722
  dir: direction
714
723
  },
715
- /* @__PURE__ */ React7.createElement(
724
+ /* @__PURE__ */ React6.createElement(
716
725
  DropdownMenuTrigger,
717
726
  {
718
727
  asChild: true,
@@ -721,7 +730,7 @@ var DropdownMenu = ({
721
730
  },
722
731
  trigger
723
732
  ),
724
- /* @__PURE__ */ React7.createElement(import_react5.Portal, null, /* @__PURE__ */ React7.createElement(
733
+ /* @__PURE__ */ React6.createElement(import_react5.Portal, null, /* @__PURE__ */ React6.createElement(
725
734
  DropdownMenuContent,
726
735
  {
727
736
  side,
@@ -742,12 +751,12 @@ var DropdownMenu = ({
742
751
  var _a;
743
752
  const ItemLinkComponent = item.slug ? LinkComponent : "a";
744
753
  if (item.itemType === "separator") {
745
- return /* @__PURE__ */ React7.createElement(DropdownMenuSeparator, { key: index });
754
+ return /* @__PURE__ */ React6.createElement(DropdownMenuSeparator, { key: index });
746
755
  } else if (item.itemType === "label") {
747
- return /* @__PURE__ */ React7.createElement(DropdownMenuLabel, { key: index }, item.label);
756
+ return /* @__PURE__ */ React6.createElement(DropdownMenuLabel, { key: index }, item.label);
748
757
  } else if (item.itemType === "radio") {
749
758
  let dd = item.currentOption;
750
- return /* @__PURE__ */ React7.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React7.createElement(
759
+ return /* @__PURE__ */ React6.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React6.createElement(
751
760
  DropdownMenuSubTrigger,
752
761
  {
753
762
  dir: direction,
@@ -755,7 +764,7 @@ var DropdownMenu = ({
755
764
  },
756
765
  item.icon && item.icon,
757
766
  item.label && item.label
758
- ), /* @__PURE__ */ React7.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React7.createElement(
767
+ ), /* @__PURE__ */ React6.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React6.createElement(
759
768
  DropdownMenuRadioGroup,
760
769
  {
761
770
  value: values[index],
@@ -769,12 +778,12 @@ var DropdownMenu = ({
769
778
  }
770
779
  }
771
780
  },
772
- (_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React7.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
781
+ (_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React6.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
773
782
  )));
774
783
  } else if (item.itemType === "custom") {
775
- return /* @__PURE__ */ React7.createElement("div", { key: index }, item.content);
784
+ return /* @__PURE__ */ React6.createElement("div", { key: index }, item.content);
776
785
  } else {
777
- return item.subitems ? /* @__PURE__ */ React7.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React7.createElement(
786
+ return item.subitems ? /* @__PURE__ */ React6.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React6.createElement(
778
787
  DropdownMenuSubTrigger,
779
788
  {
780
789
  dir: direction,
@@ -782,9 +791,9 @@ var DropdownMenu = ({
782
791
  },
783
792
  item.icon && item.icon,
784
793
  item.label && item.label
785
- ), /* @__PURE__ */ React7.createElement(import_react5.Portal, null, /* @__PURE__ */ React7.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
794
+ ), /* @__PURE__ */ React6.createElement(import_react5.Portal, null, /* @__PURE__ */ React6.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
786
795
  const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
787
- return /* @__PURE__ */ React7.createElement(
796
+ return /* @__PURE__ */ React6.createElement(
788
797
  DropdownMenuItem,
789
798
  {
790
799
  key: subIndex,
@@ -813,7 +822,7 @@ var DropdownMenu = ({
813
822
  subitem.icon && subitem.icon,
814
823
  subitem.label && subitem.label
815
824
  );
816
- })))) : /* @__PURE__ */ React7.createElement(
825
+ })))) : /* @__PURE__ */ React6.createElement(
817
826
  DropdownMenuItem,
818
827
  {
819
828
  LinkComponent: ItemLinkComponent,
@@ -866,13 +875,43 @@ var DropdownMenu = ({
866
875
  );
867
876
  };
868
877
 
878
+ // icons/Emojis.tsx
879
+ var import_react6 = __toESM(require("react"));
880
+
881
+ // icons/InputIcons.tsx
882
+ var import_react7 = __toESM(require("react"));
883
+
884
+ // icons/CommonIcons.tsx
885
+ var import_react8 = __toESM(require("react"));
886
+ var MenuIcon = () => /* @__PURE__ */ import_react8.default.createElement(
887
+ "svg",
888
+ {
889
+ "aria-label": "Menu Button",
890
+ stroke: "currentColor",
891
+ fill: "currentColor",
892
+ strokeWidth: 0,
893
+ viewBox: "0 0 20 20",
894
+ "aria-hidden": "true",
895
+ height: "1.6em",
896
+ width: "1.6em"
897
+ },
898
+ /* @__PURE__ */ import_react8.default.createElement(
899
+ "path",
900
+ {
901
+ fillRule: "evenodd",
902
+ clipRule: "evenodd",
903
+ d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
904
+ }
905
+ )
906
+ );
907
+
869
908
  // layout/sidebar/Sidebar.tsx
870
- var React9 = __toESM(require("react"));
909
+ var React11 = __toESM(require("react"));
871
910
  var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
872
911
 
873
912
  // elements/chip/Chip.tsx
874
- var import_react6 = __toESM(require("react"));
875
- var Chip = import_react6.default.forwardRef(
913
+ var import_react9 = __toESM(require("react"));
914
+ var Chip = import_react9.default.forwardRef(
876
915
  ({
877
916
  label,
878
917
  size = "normal",
@@ -914,7 +953,7 @@ var Chip = import_react6.default.forwardRef(
914
953
  oceanic: "hawa-text-white dark:hawa-text-black hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
915
954
  };
916
955
  if (label) {
917
- return /* @__PURE__ */ import_react6.default.createElement(
956
+ return /* @__PURE__ */ import_react9.default.createElement(
918
957
  "span",
919
958
  {
920
959
  ...rest,
@@ -926,7 +965,7 @@ var Chip = import_react6.default.forwardRef(
926
965
  color ? colorStyles[color] : "hawa-border hawa-bg-none"
927
966
  )
928
967
  },
929
- dotType && /* @__PURE__ */ import_react6.default.createElement(
968
+ dotType && /* @__PURE__ */ import_react9.default.createElement(
930
969
  "span",
931
970
  {
932
971
  className: cn(dotStyles[size], dotTypeStyles[dotType])
@@ -936,7 +975,7 @@ var Chip = import_react6.default.forwardRef(
936
975
  label
937
976
  );
938
977
  } else {
939
- return /* @__PURE__ */ import_react6.default.createElement(
978
+ return /* @__PURE__ */ import_react9.default.createElement(
940
979
  "span",
941
980
  {
942
981
  ...rest,
@@ -954,9 +993,9 @@ var Chip = import_react6.default.forwardRef(
954
993
  // layout/sidebar/Sidebar.tsx
955
994
  var Accordion = AccordionPrimitive.Root;
956
995
  var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
957
- var AccordionItem = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
996
+ var AccordionItem = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
958
997
  AccordionItem.displayName = "AccordionItem";
959
- var AccordionTrigger = React9.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React9.createElement(AccordionPrimitive.Header, { className: "flex" }, /* @__PURE__ */ React9.createElement(
998
+ var AccordionTrigger = React11.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React11.createElement(AccordionPrimitive.Header, { className: "flex" }, /* @__PURE__ */ React11.createElement(
960
999
  AccordionPrimitive.Trigger,
961
1000
  {
962
1001
  ref,
@@ -964,7 +1003,7 @@ var AccordionTrigger = React9.forwardRef(({ className, showArrow, children, ...p
964
1003
  ...props
965
1004
  },
966
1005
  children,
967
- showArrow && /* @__PURE__ */ React9.createElement(
1006
+ showArrow && /* @__PURE__ */ React11.createElement(
968
1007
  "svg",
969
1008
  {
970
1009
  "aria-label": "Chevron Right Icon",
@@ -975,11 +1014,11 @@ var AccordionTrigger = React9.forwardRef(({ className, showArrow, children, ...p
975
1014
  width: "1em",
976
1015
  className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
977
1016
  },
978
- /* @__PURE__ */ React9.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
1017
+ /* @__PURE__ */ React11.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
979
1018
  )
980
1019
  )));
981
1020
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
982
- var AccordionContent = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1021
+ var AccordionContent = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React11.createElement(
983
1022
  AccordionPrimitive.Content,
984
1023
  {
985
1024
  ref,
@@ -989,7 +1028,7 @@ var AccordionContent = React9.forwardRef(({ className, children, ...props }, ref
989
1028
  ),
990
1029
  ...props
991
1030
  },
992
- /* @__PURE__ */ React9.createElement("div", null, children)
1031
+ /* @__PURE__ */ React11.createElement("div", null, children)
993
1032
  ));
994
1033
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
995
1034
  var SidebarGroup = ({
@@ -1005,7 +1044,7 @@ var SidebarGroup = ({
1005
1044
  ...props
1006
1045
  }) => {
1007
1046
  const LinkComponent = props.LinkComponent || "a";
1008
- return /* @__PURE__ */ React9.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React9.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React9.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React9.createElement(
1047
+ return /* @__PURE__ */ React11.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React11.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React11.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React11.createElement(
1009
1048
  Accordion,
1010
1049
  {
1011
1050
  value: openedItem,
@@ -1016,7 +1055,7 @@ var SidebarGroup = ({
1016
1055
  collapsible: true,
1017
1056
  className: "hawa-flex hawa-flex-col hawa-gap-1"
1018
1057
  },
1019
- items.map((item, idx) => /* @__PURE__ */ React9.createElement(
1058
+ items.map((item, idx) => /* @__PURE__ */ React11.createElement(
1020
1059
  SidebarItem,
1021
1060
  {
1022
1061
  isOpen,
@@ -1044,14 +1083,14 @@ var SidebarItem = ({
1044
1083
  return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
1045
1084
  };
1046
1085
  if (item.subitems) {
1047
- return /* @__PURE__ */ React9.createElement(
1086
+ return /* @__PURE__ */ React11.createElement(
1048
1087
  AccordionItem,
1049
1088
  {
1050
1089
  value: item.value,
1051
1090
  className: "hawa-overflow-x-clip ",
1052
1091
  dir: direction
1053
1092
  },
1054
- /* @__PURE__ */ React9.createElement(
1093
+ /* @__PURE__ */ React11.createElement(
1055
1094
  AccordionTrigger,
1056
1095
  {
1057
1096
  className: cn(
@@ -1063,7 +1102,7 @@ var SidebarItem = ({
1063
1102
  ),
1064
1103
  showArrow: isOpen
1065
1104
  },
1066
- /* @__PURE__ */ React9.createElement(
1105
+ /* @__PURE__ */ React11.createElement(
1067
1106
  "div",
1068
1107
  {
1069
1108
  className: cn(
@@ -1071,7 +1110,7 @@ var SidebarItem = ({
1071
1110
  )
1072
1111
  },
1073
1112
  item.icon && item.icon,
1074
- /* @__PURE__ */ React9.createElement(
1113
+ /* @__PURE__ */ React11.createElement(
1075
1114
  "span",
1076
1115
  {
1077
1116
  className: cn(
@@ -1083,14 +1122,14 @@ var SidebarItem = ({
1083
1122
  )
1084
1123
  )
1085
1124
  ),
1086
- item.subitems && /* @__PURE__ */ React9.createElement(AccordionContent, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React9.createElement(
1125
+ item.subitems && /* @__PURE__ */ React11.createElement(AccordionContent, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React11.createElement(
1087
1126
  "div",
1088
1127
  {
1089
1128
  className: cn(
1090
1129
  "hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
1091
1130
  )
1092
1131
  },
1093
- item.subitems.map((subitem, idx) => /* @__PURE__ */ React9.createElement(
1132
+ item.subitems.map((subitem, idx) => /* @__PURE__ */ React11.createElement(
1094
1133
  LinkComponent,
1095
1134
  {
1096
1135
  href: subitem.slug,
@@ -1121,7 +1160,7 @@ var SidebarItem = ({
1121
1160
  ))
1122
1161
  );
1123
1162
  } else {
1124
- return /* @__PURE__ */ React9.createElement(
1163
+ return /* @__PURE__ */ React11.createElement(
1125
1164
  LinkComponent,
1126
1165
  {
1127
1166
  href: item.slug,
@@ -1145,7 +1184,7 @@ var SidebarItem = ({
1145
1184
  "hawa-overflow-x-clip "
1146
1185
  )
1147
1186
  },
1148
- /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React9.createElement(
1187
+ /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React11.createElement(
1149
1188
  "span",
1150
1189
  {
1151
1190
  className: cn(
@@ -1155,7 +1194,7 @@ var SidebarItem = ({
1155
1194
  },
1156
1195
  item.label,
1157
1196
  " ",
1158
- item.badge && /* @__PURE__ */ React9.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
1197
+ item.badge && /* @__PURE__ */ React11.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
1159
1198
  ))
1160
1199
  );
1161
1200
  }
@@ -1191,13 +1230,22 @@ var AppLayout = ({
1191
1230
  }
1192
1231
  };
1193
1232
  const isRTL = direction === "rtl";
1194
- const [openedSidebarItem, setOpenedSidebarItem] = (0, import_react7.useState)("");
1195
- const [size, setSize] = (0, import_react7.useState)(
1233
+ const [openedSidebarItem, setOpenedSidebarItem] = (0, import_react10.useState)("");
1234
+ const [size, setSize] = (0, import_react10.useState)(
1196
1235
  typeof window !== "undefined" && window.innerWidth || 1200
1197
1236
  );
1198
- const [openSideMenu, setOpenSideMenu] = (0, import_react7.useState)(true);
1199
- const [keepDrawerOpen, setKeepDrawerOpen] = (0, import_react7.useState)(keepOpen);
1200
- (0, import_react7.useEffect)(() => {
1237
+ const [openSideMenu, setOpenSideMenu] = (0, import_react10.useState)(true);
1238
+ const [keepDrawerOpen, setKeepDrawerOpen] = (0, import_react10.useState)(keepOpen);
1239
+ const handleClickOutside = () => {
1240
+ if (typeof window !== "undefined") {
1241
+ if (window.innerWidth < 600) {
1242
+ setKeepDrawerOpen(false);
1243
+ setOpenSideMenu(false);
1244
+ }
1245
+ }
1246
+ };
1247
+ const ref = useClickOutside(handleClickOutside);
1248
+ (0, import_react10.useEffect)(() => {
1201
1249
  if (typeof window !== "undefined") {
1202
1250
  const resize = () => {
1203
1251
  setSize(window.innerWidth);
@@ -1212,29 +1260,18 @@ var AppLayout = ({
1212
1260
  };
1213
1261
  }
1214
1262
  }, []);
1215
- (0, import_react7.useEffect)(() => {
1263
+ (0, import_react10.useEffect)(() => {
1216
1264
  setKeepDrawerOpen(keepOpen);
1217
1265
  }, [setKeepOpen]);
1218
- const handleClickOutside = () => {
1219
- if (typeof window !== "undefined") {
1220
- if (keepDrawerOpen)
1221
- return;
1222
- if (window.innerWidth < 600) {
1223
- setKeepDrawerOpen(false);
1224
- setOpenSideMenu(false);
1225
- }
1226
- }
1227
- };
1228
- const ref = useOutsideClick_default(handleClickOutside);
1229
- const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
1230
- (0, import_react7.useEffect)(() => {
1266
+ (0, import_react10.useEffect)(() => {
1231
1267
  if (size > 600) {
1232
1268
  setOpenSideMenu(keepDrawerOpen);
1233
1269
  } else {
1234
1270
  setOpenSideMenu(false);
1235
1271
  }
1236
- }, [size]);
1237
- return /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-fixed hawa-start-0" }, props.topBar && /* @__PURE__ */ import_react7.default.createElement(
1272
+ }, [size, keepDrawerOpen]);
1273
+ const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
1274
+ return /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-fixed hawa-start-0" }, props.topBar && /* @__PURE__ */ import_react10.default.createElement(
1238
1275
  "div",
1239
1276
  {
1240
1277
  dir: direction,
@@ -1243,7 +1280,7 @@ var AppLayout = ({
1243
1280
  bordered && "hawa-border-b-[1px]"
1244
1281
  )
1245
1282
  },
1246
- size > 600 ? /* @__PURE__ */ import_react7.default.createElement(
1283
+ size > 600 ? /* @__PURE__ */ import_react10.default.createElement(
1247
1284
  "div",
1248
1285
  {
1249
1286
  className: cn(
@@ -1257,24 +1294,24 @@ var AppLayout = ({
1257
1294
  props.pageTitle
1258
1295
  ) : (
1259
1296
  // Mobile Drawer Menu Button
1260
- /* @__PURE__ */ import_react7.default.createElement(
1297
+ /* @__PURE__ */ import_react10.default.createElement(
1261
1298
  "div",
1262
1299
  {
1263
1300
  dir: direction,
1264
1301
  className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
1265
1302
  },
1266
- /* @__PURE__ */ import_react7.default.createElement(
1303
+ /* @__PURE__ */ import_react10.default.createElement(
1267
1304
  "div",
1268
1305
  {
1269
1306
  onClick: () => setOpenSideMenu(true),
1270
1307
  className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
1271
1308
  },
1272
- /* @__PURE__ */ import_react7.default.createElement(MenuIcon, null)
1309
+ /* @__PURE__ */ import_react10.default.createElement(MenuIcon, null)
1273
1310
  ),
1274
- props.pageTitle ? /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ import_react7.default.createElement("div", null)
1311
+ props.pageTitle ? /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ import_react10.default.createElement("div", null)
1275
1312
  )
1276
1313
  ),
1277
- /* @__PURE__ */ import_react7.default.createElement("div", { className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white") }, size > 600 ? /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-text-end hawa-text-xs" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-font-bold" }, props.username), " ", /* @__PURE__ */ import_react7.default.createElement("div", null, props.email)) : null, /* @__PURE__ */ import_react7.default.createElement(
1314
+ /* @__PURE__ */ import_react10.default.createElement("div", { className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white") }, size > 600 ? /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-text-end hawa-text-xs" }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-font-bold" }, props.username), " ", /* @__PURE__ */ import_react10.default.createElement("div", null, props.email)) : null, /* @__PURE__ */ import_react10.default.createElement(
1278
1315
  DropdownMenu,
1279
1316
  {
1280
1317
  LinkComponent: MenuLinkComponent,
@@ -1286,13 +1323,13 @@ var AppLayout = ({
1286
1323
  direction,
1287
1324
  items: props.profileMenuItems || [],
1288
1325
  onItemSelect: (e) => console.log("selecting item ", e),
1289
- trigger: /* @__PURE__ */ import_react7.default.createElement(
1326
+ trigger: /* @__PURE__ */ import_react10.default.createElement(
1290
1327
  "div",
1291
1328
  {
1292
1329
  onClick: onAvatarClick,
1293
1330
  className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600"
1294
1331
  },
1295
- props.avatarImage ? /* @__PURE__ */ import_react7.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react7.default.createElement(
1332
+ props.avatarImage ? /* @__PURE__ */ import_react10.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react10.default.createElement(
1296
1333
  "svg",
1297
1334
  {
1298
1335
  "aria-label": "Avatar Icon",
@@ -1300,7 +1337,7 @@ var AppLayout = ({
1300
1337
  fill: "currentColor",
1301
1338
  viewBox: "0 0 20 20"
1302
1339
  },
1303
- /* @__PURE__ */ import_react7.default.createElement(
1340
+ /* @__PURE__ */ import_react10.default.createElement(
1304
1341
  "path",
1305
1342
  {
1306
1343
  fillRule: "evenodd",
@@ -1312,20 +1349,19 @@ var AppLayout = ({
1312
1349
  )
1313
1350
  }
1314
1351
  ))
1315
- ), /* @__PURE__ */ import_react7.default.createElement(
1352
+ ), /* @__PURE__ */ import_react10.default.createElement(
1316
1353
  "div",
1317
1354
  {
1318
1355
  className: cn(
1319
- "hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all hawa-top-0 hawa-h-[calc(100dvh)] hawa-bg-primary-foreground",
1356
+ "hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all hawa-top-0 hawa-h-[calc(100dvh)] hawa-bg-red-500",
1357
+ // 'hawa-bg-primary-foreground',
1320
1358
  isRTL ? "hawa-right-0" : "hawa-left-0",
1321
1359
  bordered ? direction === "rtl" ? "hawa-border-s-[1px]" : "hawa-border-e-[1px]" : ""
1322
1360
  ),
1323
1361
  style: {
1324
1362
  width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
1325
1363
  },
1326
- onMouseEnter: () => {
1327
- setOpenSideMenu(true);
1328
- },
1364
+ onMouseEnter: () => setOpenSideMenu(true),
1329
1365
  onMouseLeave: () => {
1330
1366
  if (size > 600) {
1331
1367
  if (keepDrawerOpen) {
@@ -1340,7 +1376,7 @@ var AppLayout = ({
1340
1376
  },
1341
1377
  ref
1342
1378
  },
1343
- /* @__PURE__ */ import_react7.default.createElement(
1379
+ /* @__PURE__ */ import_react10.default.createElement(
1344
1380
  "div",
1345
1381
  {
1346
1382
  onClick: props.onLogoClick,
@@ -1355,30 +1391,30 @@ var AppLayout = ({
1355
1391
  }
1356
1392
  },
1357
1393
  openSideMenu && props.header && props.header,
1358
- !props.header && /* @__PURE__ */ import_react7.default.createElement(
1394
+ !props.header && /* @__PURE__ */ import_react10.default.createElement(
1359
1395
  "img",
1360
1396
  {
1397
+ src: props.logoLink,
1361
1398
  className: cn(
1362
1399
  "hawa-h-9 hawa-opacity-0 hawa-transition-all",
1363
1400
  !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100",
1364
1401
  classNames == null ? void 0 : classNames.fullLogoImg
1365
- ),
1366
- src: props.logoLink
1402
+ )
1367
1403
  }
1368
1404
  ),
1369
- size > 600 ? /* @__PURE__ */ import_react7.default.createElement(
1405
+ size > 600 ? /* @__PURE__ */ import_react10.default.createElement(
1370
1406
  "img",
1371
1407
  {
1408
+ src: props.logoSymbol,
1372
1409
  className: cn(
1373
1410
  "hawa-fixed hawa-h-9 hawa-transition-all hawa-start-2.5 hawa-top-2.5",
1374
1411
  openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100",
1375
1412
  classNames == null ? void 0 : classNames.symbolLogoImg
1376
- ),
1377
- src: props.logoSymbol
1413
+ )
1378
1414
  }
1379
1415
  ) : null
1380
1416
  ),
1381
- /* @__PURE__ */ import_react7.default.createElement(
1417
+ /* @__PURE__ */ import_react10.default.createElement(
1382
1418
  "div",
1383
1419
  {
1384
1420
  className: cn(
@@ -1389,30 +1425,22 @@ var AppLayout = ({
1389
1425
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
1390
1426
  }
1391
1427
  },
1392
- /* @__PURE__ */ import_react7.default.createElement(
1428
+ /* @__PURE__ */ import_react10.default.createElement(
1393
1429
  SidebarGroup,
1394
1430
  {
1395
1431
  direction,
1396
- onItemClick: (values) => {
1397
- if (clickedItem) {
1398
- clickedItem(values);
1399
- }
1400
- },
1401
- onSubItemClick: (values) => {
1402
- if (clickedItem) {
1403
- clickedItem(values);
1404
- }
1405
- },
1406
1432
  selectedItem: currentPage,
1407
1433
  openedItem: openedSidebarItem,
1408
1434
  setOpenedItem: (e) => setOpenedSidebarItem(e),
1409
1435
  isOpen: keepDrawerOpen || openSideMenu,
1410
1436
  items: props.drawerItems,
1411
- LinkComponent: DrawerLinkComponent
1437
+ LinkComponent: DrawerLinkComponent,
1438
+ onItemClick: (values) => clickedItem && clickedItem(values),
1439
+ onSubItemClick: (values) => clickedItem && clickedItem(values)
1412
1440
  }
1413
1441
  )
1414
1442
  ),
1415
- /* @__PURE__ */ import_react7.default.createElement(
1443
+ /* @__PURE__ */ import_react10.default.createElement(
1416
1444
  "div",
1417
1445
  {
1418
1446
  className: cn(
@@ -1423,8 +1451,8 @@ var AppLayout = ({
1423
1451
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
1424
1452
  }
1425
1453
  },
1426
- DrawerFooterActions && openSideMenu ? /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, DrawerFooterActions) : null,
1427
- size > 600 && openSideMenu ? /* @__PURE__ */ import_react7.default.createElement(
1454
+ DrawerFooterActions && openSideMenu ? /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, DrawerFooterActions) : null,
1455
+ size > 600 && openSideMenu ? /* @__PURE__ */ import_react10.default.createElement(
1428
1456
  Tooltip,
1429
1457
  {
1430
1458
  side: "left",
@@ -1432,7 +1460,7 @@ var AppLayout = ({
1432
1460
  triggerProps: { asChild: true },
1433
1461
  content: keepDrawerOpen ? ((_a = props.texts) == null ? void 0 : _a.collapseSidebar) || "Collapse Sidebar" : ((_b = props.texts) == null ? void 0 : _b.expandSidebar) || "Expand Sidebar"
1434
1462
  },
1435
- /* @__PURE__ */ import_react7.default.createElement(
1463
+ /* @__PURE__ */ import_react10.default.createElement(
1436
1464
  Button,
1437
1465
  {
1438
1466
  variant: "outline",
@@ -1445,7 +1473,7 @@ var AppLayout = ({
1445
1473
  setKeepDrawerOpen(newKeepOpenState);
1446
1474
  }
1447
1475
  },
1448
- /* @__PURE__ */ import_react7.default.createElement(
1476
+ /* @__PURE__ */ import_react10.default.createElement(
1449
1477
  "svg",
1450
1478
  {
1451
1479
  className: cn(
@@ -1455,7 +1483,7 @@ var AppLayout = ({
1455
1483
  fill: "currentColor",
1456
1484
  viewBox: "0 0 20 20"
1457
1485
  },
1458
- /* @__PURE__ */ import_react7.default.createElement(
1486
+ /* @__PURE__ */ import_react10.default.createElement(
1459
1487
  "path",
1460
1488
  {
1461
1489
  fillRule: "evenodd",
@@ -1467,7 +1495,7 @@ var AppLayout = ({
1467
1495
  )
1468
1496
  ) : null
1469
1497
  )
1470
- ), /* @__PURE__ */ import_react7.default.createElement(
1498
+ ), /* @__PURE__ */ import_react10.default.createElement(
1471
1499
  "div",
1472
1500
  {
1473
1501
  className: "hawa-fixed -hawa-z-10 hawa-overflow-y-auto hawa-transition-all",
@@ -1486,27 +1514,6 @@ var AppLayout = ({
1486
1514
  props.children
1487
1515
  ));
1488
1516
  };
1489
- var MenuIcon = () => /* @__PURE__ */ import_react7.default.createElement(
1490
- "svg",
1491
- {
1492
- "aria-label": "Menu Button",
1493
- stroke: "currentColor",
1494
- fill: "currentColor",
1495
- strokeWidth: 0,
1496
- viewBox: "0 0 20 20",
1497
- "aria-hidden": "true",
1498
- height: "1.6em",
1499
- width: "1.6em"
1500
- },
1501
- /* @__PURE__ */ import_react7.default.createElement(
1502
- "path",
1503
- {
1504
- fillRule: "evenodd",
1505
- clipRule: "evenodd",
1506
- d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
1507
- }
1508
- )
1509
- );
1510
1517
  // Annotate the CommonJS export names for ESM import in node:
1511
1518
  0 && (module.exports = {
1512
1519
  AppLayout