@sikka/hawa 0.40.1-next → 0.41.0-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.
Files changed (58) hide show
  1. package/dist/blocks/auth/index.js +87 -2
  2. package/dist/blocks/auth/index.mjs +91 -6
  3. package/dist/blocks/feedback/index.js +1 -2
  4. package/dist/blocks/feedback/index.mjs +6 -8
  5. package/dist/blocks/index.js +88 -4
  6. package/dist/blocks/index.mjs +3 -5
  7. package/dist/blocks/misc/index.mjs +5 -5
  8. package/dist/blocks/pricing/index.mjs +4 -4
  9. package/dist/checkbox/index.js +2 -2
  10. package/dist/checkbox/index.js.map +1 -1
  11. package/dist/checkbox/index.mjs +2 -2
  12. package/dist/checkbox/index.mjs.map +1 -1
  13. package/dist/{chunk-AJTYKC5R.mjs → chunk-4ZELUQQ7.mjs} +1 -1
  14. package/dist/{chunk-GN7EIDTE.mjs → chunk-55TPME67.mjs} +1 -1
  15. package/dist/{chunk-CTZRVSTI.mjs → chunk-F6SLF6DS.mjs} +1 -1
  16. package/dist/{chunk-QSEQS7DS.mjs → chunk-FJXDCBMQ.mjs} +3 -3
  17. package/dist/{chunk-CTNKKP2O.mjs → chunk-FK2C6C3B.mjs} +61 -61
  18. package/dist/{chunk-27G5FKOP.mjs → chunk-IS73LH5Y.mjs} +1 -1
  19. package/dist/{chunk-GU2DOJ7Q.mjs → chunk-JGP3PSJL.mjs} +85 -0
  20. package/dist/{chunk-QZIENYTE.mjs → chunk-NSMJTT6Y.mjs} +1 -1
  21. package/dist/{chunk-RT2Q3SH7.mjs → chunk-UHUOBAEP.mjs} +1 -1
  22. package/dist/{chunk-DYPGZ2IP.mjs → chunk-ZSX2KZ2D.mjs} +1 -1
  23. package/dist/dataTable/index.d.mts +6 -1
  24. package/dist/dataTable/index.d.ts +6 -1
  25. package/dist/dataTable/index.js +454 -240
  26. package/dist/dataTable/index.js.map +1 -1
  27. package/dist/dataTable/index.mjs +472 -258
  28. package/dist/dataTable/index.mjs.map +1 -1
  29. package/dist/docsLayout/index.js +85 -0
  30. package/dist/docsLayout/index.js.map +1 -1
  31. package/dist/docsLayout/index.mjs +85 -0
  32. package/dist/docsLayout/index.mjs.map +1 -1
  33. package/dist/elements/index.d.mts +11 -1
  34. package/dist/elements/index.d.ts +11 -1
  35. package/dist/elements/index.js +603 -440
  36. package/dist/elements/index.mjs +252 -174
  37. package/dist/index.css +27 -127
  38. package/dist/index.d.mts +11 -1
  39. package/dist/index.d.ts +11 -1
  40. package/dist/index.js +606 -444
  41. package/dist/index.mjs +700 -538
  42. package/dist/layout/index.js +85 -0
  43. package/dist/layout/index.mjs +2 -2
  44. package/dist/logos/index.d.mts +5 -0
  45. package/dist/logos/index.d.ts +5 -0
  46. package/dist/logos/index.js +85 -0
  47. package/dist/logos/index.js.map +1 -1
  48. package/dist/logos/index.mjs +85 -0
  49. package/dist/logos/index.mjs.map +1 -1
  50. package/dist/simpleTable/index.js +4 -4
  51. package/dist/simpleTable/index.js.map +1 -1
  52. package/dist/simpleTable/index.mjs +4 -4
  53. package/dist/simpleTable/index.mjs.map +1 -1
  54. package/dist/table/index.js +4 -4
  55. package/dist/table/index.js.map +1 -1
  56. package/dist/table/index.mjs +4 -4
  57. package/dist/table/index.mjs.map +1 -1
  58. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  // elements/dataTable/DataTable.tsx
4
- import * as React10 from "react";
4
+ import * as React11 from "react";
5
5
  import {
6
6
  flexRender,
7
7
  getCoreRowModel,
@@ -465,15 +465,151 @@ var Button = React5.forwardRef(
465
465
  );
466
466
  Button.displayName = "Button";
467
467
 
468
- // elements/dropdownMenu/DropdownMenu.tsx
468
+ // elements/checkbox/Checkbox.tsx
469
469
  import * as React6 from "react";
470
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
471
+ var Checkbox = ({
472
+ id,
473
+ label,
474
+ sublabel,
475
+ helperText,
476
+ disabled,
477
+ size = "default",
478
+ radius = "inherit",
479
+ ...props
480
+ }) => {
481
+ let labelLineHeightStyles = {
482
+ xs: sublabel || helperText ? 0.5 : 0.1,
483
+ sm: 0.6,
484
+ default: 1,
485
+ md: 0.8,
486
+ lg: 0.9,
487
+ xl: 1
488
+ };
489
+ return /* @__PURE__ */ React6.createElement(
490
+ "div",
491
+ {
492
+ className: cn(
493
+ "hawa-flex hawa-gap-2",
494
+ size === "default" ? "hawa-items-top" : "hawa-items-center"
495
+ )
496
+ },
497
+ /* @__PURE__ */ React6.createElement(
498
+ CheckboxElement,
499
+ {
500
+ ...props,
501
+ size,
502
+ radius,
503
+ disabled,
504
+ id
505
+ }
506
+ ),
507
+ (label || helperText) && /* @__PURE__ */ React6.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React6.createElement(
508
+ "label",
509
+ {
510
+ htmlFor: id,
511
+ className: cn(
512
+ "hawa-w-fit hawa-select-none hawa-pt-0.5 hawa-text-sm hawa-font-medium",
513
+ disabled ? "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70" : "hawa-cursor-pointer"
514
+ ),
515
+ style: {
516
+ // lineHeight: labelLineHeightStyles[size]
517
+ lineHeight: 1
518
+ }
519
+ },
520
+ label
521
+ ), sublabel && /* @__PURE__ */ React6.createElement(
522
+ "label",
523
+ {
524
+ htmlFor: id,
525
+ className: cn(
526
+ "hawa-w-fit hawa-select-none hawa-text-sm hawa-text-muted-foreground",
527
+ disabled ? "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70" : "hawa-cursor-pointer"
528
+ )
529
+ },
530
+ sublabel
531
+ ), helperText && !disabled && /* @__PURE__ */ React6.createElement(
532
+ "label",
533
+ {
534
+ htmlFor: id,
535
+ className: cn(
536
+ "hawa-w-fit hawa-select-none hawa-text-xs hawa-text-helper-color",
537
+ disabled && "hawa-cursor-not-allowed hawa-opacity-70"
538
+ )
539
+ },
540
+ helperText
541
+ ))
542
+ );
543
+ };
544
+ var CheckboxElement = React6.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
545
+ let checkboxRadius = {
546
+ none: "hawa-rounded-none",
547
+ inherit: "hawa-rounded-sm",
548
+ full: "hawa-rounded-full"
549
+ };
550
+ let checkboxSizes = {
551
+ xs: "hawa-w-3 hawa-h-3",
552
+ sm: "hawa-w-6 hawa-h-6",
553
+ default: "hawa-icon",
554
+ md: "hawa-w-8 hawa-h-8",
555
+ lg: "hawa-w-10 hawa-h-10",
556
+ xl: "hawa-w-12 hawa-h-12"
557
+ };
558
+ let checkboxIndicatorSizes = {
559
+ xs: "0.5em",
560
+ default: "0.60em",
561
+ sm: "0.75em",
562
+ md: "0.875em",
563
+ lg: "1em",
564
+ xl: "1.25em"
565
+ };
566
+ return /* @__PURE__ */ React6.createElement(
567
+ CheckboxPrimitive.Root,
568
+ {
569
+ ref,
570
+ className: cn(
571
+ "hawa-peer hawa-shrink-0 hawa-border hawa-border-primary hawa-ring-offset-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50 data-[state=checked]:hawa-bg-primary data-[state=checked]:hawa-text-primary-foreground",
572
+ checkboxSizes[size],
573
+ checkboxRadius[radius],
574
+ className
575
+ ),
576
+ ...props
577
+ },
578
+ /* @__PURE__ */ React6.createElement(
579
+ CheckboxPrimitive.Indicator,
580
+ {
581
+ className: cn(
582
+ "hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
583
+ )
584
+ },
585
+ /* @__PURE__ */ React6.createElement(
586
+ "svg",
587
+ {
588
+ "aria-label": "Check Mark",
589
+ stroke: "currentColor",
590
+ fill: "currentColor",
591
+ strokeWidth: "0",
592
+ viewBox: "0 0 512 512",
593
+ height: checkboxIndicatorSizes[size],
594
+ width: checkboxIndicatorSizes[size]
595
+ },
596
+ /* @__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" })
597
+ ),
598
+ " "
599
+ )
600
+ );
601
+ });
602
+ CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
603
+
604
+ // elements/dropdownMenu/DropdownMenu.tsx
605
+ import * as React7 from "react";
470
606
  import { Portal } from "@headlessui/react";
471
607
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
472
608
  var DropdownMenuRoot = DropdownMenuPrimitive.Root;
473
609
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
474
610
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
475
611
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
476
- var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
612
+ var DropdownMenuSubTrigger = React7.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
477
613
  DropdownMenuPrimitive.SubTrigger,
478
614
  {
479
615
  ref,
@@ -484,9 +620,9 @@ var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ..
484
620
  ),
485
621
  ...props
486
622
  },
487
- /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
623
+ /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
488
624
  " ",
489
- /* @__PURE__ */ React6.createElement(
625
+ /* @__PURE__ */ React7.createElement(
490
626
  "svg",
491
627
  {
492
628
  "aria-label": "Chevron Right Icon",
@@ -498,7 +634,7 @@ var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ..
498
634
  width: "1em",
499
635
  className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
500
636
  },
501
- /* @__PURE__ */ React6.createElement(
637
+ /* @__PURE__ */ React7.createElement(
502
638
  "path",
503
639
  {
504
640
  fillRule: "evenodd",
@@ -508,7 +644,7 @@ var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ..
508
644
  )
509
645
  ));
510
646
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
511
- var DropdownMenuSubContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
647
+ var DropdownMenuSubContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
512
648
  DropdownMenuPrimitive.SubContent,
513
649
  {
514
650
  ref,
@@ -520,7 +656,7 @@ var DropdownMenuSubContent = React6.forwardRef(({ className, ...props }, ref) =>
520
656
  }
521
657
  ));
522
658
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
523
- var DropdownMenuContent = React6.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React6.createElement(Portal, null, /* @__PURE__ */ React6.createElement(
659
+ var DropdownMenuContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React7.createElement(Portal, null, /* @__PURE__ */ React7.createElement(
524
660
  DropdownMenuPrimitive.Content,
525
661
  {
526
662
  ref,
@@ -533,8 +669,8 @@ var DropdownMenuContent = React6.forwardRef(({ className, sideOffset = 4, ...pro
533
669
  }
534
670
  )));
535
671
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
536
- var DropdownMenuItem = React6.forwardRef(({ className, inset, badged, slug, LinkComponent = "a", ...props }, ref) => {
537
- return /* @__PURE__ */ React6.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React6.createElement(
672
+ var DropdownMenuItem = React7.forwardRef(({ className, inset, badged, slug, LinkComponent = "a", ...props }, ref) => {
673
+ return /* @__PURE__ */ React7.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React7.createElement(
538
674
  DropdownMenuPrimitive.Item,
539
675
  {
540
676
  disabled: props.disabled,
@@ -547,14 +683,14 @@ var DropdownMenuItem = React6.forwardRef(({ className, inset, badged, slug, Link
547
683
  ),
548
684
  ...props
549
685
  },
550
- /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
686
+ /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
551
687
  props.end && props.end,
552
- !props.end && props.shortcut && /* @__PURE__ */ React6.createElement(DropdownMenuShortcut, null, props.shortcut),
553
- !props.end && badged && /* @__PURE__ */ React6.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
688
+ !props.end && props.shortcut && /* @__PURE__ */ React7.createElement(DropdownMenuShortcut, null, props.shortcut),
689
+ !props.end && badged && /* @__PURE__ */ React7.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
554
690
  ));
555
691
  });
556
692
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
557
- var DropdownMenuCheckboxItem = React6.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React6.createElement(
693
+ var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React7.createElement(
558
694
  DropdownMenuPrimitive.CheckboxItem,
559
695
  {
560
696
  ref,
@@ -565,7 +701,7 @@ var DropdownMenuCheckboxItem = React6.forwardRef(({ className, children, checked
565
701
  checked,
566
702
  ...props
567
703
  },
568
- /* @__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(
704
+ /* @__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(
569
705
  "svg",
570
706
  {
571
707
  "aria-label": "Check Mark",
@@ -576,12 +712,12 @@ var DropdownMenuCheckboxItem = React6.forwardRef(({ className, children, checked
576
712
  height: "0.60em",
577
713
  width: "0.60em"
578
714
  },
579
- /* @__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" })
715
+ /* @__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" })
580
716
  ), " ")),
581
717
  children
582
718
  ));
583
719
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
584
- var DropdownMenuRadioItem = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
720
+ var DropdownMenuRadioItem = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
585
721
  DropdownMenuPrimitive.RadioItem,
586
722
  {
587
723
  ref,
@@ -591,7 +727,7 @@ var DropdownMenuRadioItem = React6.forwardRef(({ className, children, ...props }
591
727
  ),
592
728
  ...props
593
729
  },
594
- /* @__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(
730
+ /* @__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(
595
731
  "svg",
596
732
  {
597
733
  xmlns: "http://www.w3.org/2000/svg",
@@ -606,12 +742,12 @@ var DropdownMenuRadioItem = React6.forwardRef(({ className, children, ...props }
606
742
  strokeLinejoin: "round",
607
743
  className: "hawa-h-2 hawa-w-2 hawa-fill-current"
608
744
  },
609
- /* @__PURE__ */ React6.createElement("circle", { cx: "12", cy: "12", r: "10" })
745
+ /* @__PURE__ */ React7.createElement("circle", { cx: "12", cy: "12", r: "10" })
610
746
  ))),
611
747
  children
612
748
  ));
613
749
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
614
- var DropdownMenuLabel = React6.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React6.createElement(
750
+ var DropdownMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React7.createElement(
615
751
  DropdownMenuPrimitive.Label,
616
752
  {
617
753
  ref,
@@ -624,7 +760,7 @@ var DropdownMenuLabel = React6.forwardRef(({ className, inset, ...props }, ref)
624
760
  }
625
761
  ));
626
762
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
627
- var DropdownMenuSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
763
+ var DropdownMenuSeparator = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
628
764
  DropdownMenuPrimitive.Separator,
629
765
  {
630
766
  ref,
@@ -637,7 +773,7 @@ var DropdownMenuShortcut = ({
637
773
  className,
638
774
  ...props
639
775
  }) => {
640
- return /* @__PURE__ */ React6.createElement(
776
+ return /* @__PURE__ */ React7.createElement(
641
777
  "span",
642
778
  {
643
779
  className: cn(
@@ -679,10 +815,10 @@ var DropdownMenu = ({
679
815
  default: "hawa-px-2 hawa-py-3 ",
680
816
  sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
681
817
  };
682
- let [values, setValues] = React6.useState(
818
+ let [values, setValues] = React7.useState(
683
819
  items.map((item) => item.currentOption)
684
820
  );
685
- return /* @__PURE__ */ React6.createElement(
821
+ return /* @__PURE__ */ React7.createElement(
686
822
  DropdownMenuRoot,
687
823
  {
688
824
  onOpenChange,
@@ -690,7 +826,7 @@ var DropdownMenu = ({
690
826
  modal: false,
691
827
  dir: direction
692
828
  },
693
- /* @__PURE__ */ React6.createElement(
829
+ /* @__PURE__ */ React7.createElement(
694
830
  DropdownMenuTrigger,
695
831
  {
696
832
  asChild: true,
@@ -699,7 +835,7 @@ var DropdownMenu = ({
699
835
  },
700
836
  trigger
701
837
  ),
702
- /* @__PURE__ */ React6.createElement(Portal, null, /* @__PURE__ */ React6.createElement(
838
+ /* @__PURE__ */ React7.createElement(Portal, null, /* @__PURE__ */ React7.createElement(
703
839
  DropdownMenuContent,
704
840
  {
705
841
  side,
@@ -721,7 +857,7 @@ var DropdownMenu = ({
721
857
  var _a;
722
858
  const ItemLinkComponent = item.slug ? LinkComponent : "a";
723
859
  if (item.itemType === "separator") {
724
- return /* @__PURE__ */ React6.createElement(
860
+ return /* @__PURE__ */ React7.createElement(
725
861
  DropdownMenuSeparator,
726
862
  {
727
863
  key: index,
@@ -729,10 +865,10 @@ var DropdownMenu = ({
729
865
  }
730
866
  );
731
867
  } else if (item.itemType === "label") {
732
- return /* @__PURE__ */ React6.createElement(DropdownMenuLabel, { key: index }, item.label);
868
+ return /* @__PURE__ */ React7.createElement(DropdownMenuLabel, { key: index }, item.label);
733
869
  } else if (item.itemType === "radio") {
734
870
  let dd = item.currentOption;
735
- return /* @__PURE__ */ React6.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React6.createElement(
871
+ return /* @__PURE__ */ React7.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React7.createElement(
736
872
  DropdownMenuSubTrigger,
737
873
  {
738
874
  dir: direction,
@@ -740,7 +876,7 @@ var DropdownMenu = ({
740
876
  },
741
877
  item.icon && item.icon,
742
878
  item.label && item.label
743
- ), /* @__PURE__ */ React6.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React6.createElement(
879
+ ), /* @__PURE__ */ React7.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React7.createElement(
744
880
  DropdownMenuRadioGroup,
745
881
  {
746
882
  value: values[index],
@@ -754,12 +890,12 @@ var DropdownMenu = ({
754
890
  }
755
891
  }
756
892
  },
757
- (_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React6.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
893
+ (_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React7.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
758
894
  )));
759
895
  } else if (item.itemType === "custom") {
760
- return /* @__PURE__ */ React6.createElement("div", { key: index }, item.content);
896
+ return /* @__PURE__ */ React7.createElement("div", { key: index }, item.content);
761
897
  } else {
762
- return item.subitems ? /* @__PURE__ */ React6.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React6.createElement(
898
+ return item.subitems ? /* @__PURE__ */ React7.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React7.createElement(
763
899
  DropdownMenuSubTrigger,
764
900
  {
765
901
  dir: direction,
@@ -767,9 +903,9 @@ var DropdownMenu = ({
767
903
  },
768
904
  item.icon && item.icon,
769
905
  item.label && item.label
770
- ), /* @__PURE__ */ React6.createElement(Portal, null, /* @__PURE__ */ React6.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
906
+ ), /* @__PURE__ */ React7.createElement(Portal, null, /* @__PURE__ */ React7.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
771
907
  const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
772
- return /* @__PURE__ */ React6.createElement(
908
+ return /* @__PURE__ */ React7.createElement(
773
909
  DropdownMenuItem,
774
910
  {
775
911
  key: subIndex,
@@ -798,7 +934,7 @@ var DropdownMenu = ({
798
934
  subitem.icon && subitem.icon,
799
935
  subitem.label && subitem.label
800
936
  );
801
- })))) : /* @__PURE__ */ React6.createElement(
937
+ })))) : /* @__PURE__ */ React7.createElement(
802
938
  DropdownMenuItem,
803
939
  {
804
940
  LinkComponent: ItemLinkComponent,
@@ -853,10 +989,10 @@ var DropdownMenu = ({
853
989
  };
854
990
 
855
991
  // elements/input/Input.tsx
856
- import React8, { forwardRef as forwardRef4 } from "react";
992
+ import React9, { forwardRef as forwardRef5 } from "react";
857
993
 
858
994
  // elements/skeleton/Skeleton.tsx
859
- import React7 from "react";
995
+ import React8 from "react";
860
996
  function Skeleton({
861
997
  className,
862
998
  content,
@@ -875,7 +1011,7 @@ function Skeleton({
875
1011
  right: "hawa-mask-fade-right",
876
1012
  left: "hawa-mask-fade-left "
877
1013
  };
878
- return /* @__PURE__ */ React7.createElement(
1014
+ return /* @__PURE__ */ React8.createElement(
879
1015
  "div",
880
1016
  {
881
1017
  className: cn(
@@ -891,7 +1027,7 @@ function Skeleton({
891
1027
  }
892
1028
 
893
1029
  // elements/input/Input.tsx
894
- var Input = forwardRef4(
1030
+ var Input = forwardRef5(
895
1031
  ({
896
1032
  margin = "none",
897
1033
  width = "full",
@@ -935,7 +1071,7 @@ var Input = forwardRef4(
935
1071
  props.onChange(newEvent);
936
1072
  }
937
1073
  };
938
- return /* @__PURE__ */ React8.createElement(
1074
+ return /* @__PURE__ */ React9.createElement(
939
1075
  "div",
940
1076
  {
941
1077
  className: cn(
@@ -946,8 +1082,8 @@ var Input = forwardRef4(
946
1082
  "hawa-w-full hawa-gap-2"
947
1083
  )
948
1084
  },
949
- props.label && /* @__PURE__ */ React8.createElement(Label, { ...labelProps }, props.label),
950
- /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.outsidePrefix && /* @__PURE__ */ React8.createElement(
1085
+ props.label && /* @__PURE__ */ React9.createElement(Label, { ...labelProps }, props.label),
1086
+ /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.outsidePrefix && /* @__PURE__ */ React9.createElement(
951
1087
  "span",
952
1088
  {
953
1089
  className: cn(
@@ -956,12 +1092,12 @@ var Input = forwardRef4(
956
1092
  )
957
1093
  },
958
1094
  props.outsidePrefix
959
- ), props.isLoading ? /* @__PURE__ */ React8.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ React8.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : props.isLoadingError ? /* @__PURE__ */ React8.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ React8.createElement(
1095
+ ), props.isLoading ? /* @__PURE__ */ React9.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ React9.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : props.isLoadingError ? /* @__PURE__ */ React9.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ React9.createElement(
960
1096
  Skeleton,
961
1097
  {
962
1098
  animation: "none",
963
1099
  className: "hawa-h-[40px] hawa-w-full !hawa-bg-destructive/[0.3]",
964
- content: /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React8.createElement(
1100
+ content: /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React9.createElement(
965
1101
  "svg",
966
1102
  {
967
1103
  xmlns: "http://www.w3.org/2000/svg",
@@ -975,12 +1111,12 @@ var Input = forwardRef4(
975
1111
  strokeLinejoin: "round",
976
1112
  className: "hawa-text-destructive"
977
1113
  },
978
- /* @__PURE__ */ React8.createElement("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
979
- /* @__PURE__ */ React8.createElement("path", { d: "M12 9v4" }),
980
- /* @__PURE__ */ React8.createElement("path", { d: "M12 17h.01" })
981
- ), /* @__PURE__ */ React8.createElement("span", null, /* @__PURE__ */ React8.createElement("span", { className: "hawa-text-destructive" }, props.loadingErrorMesssage || "Error loading data")))
1114
+ /* @__PURE__ */ React9.createElement("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
1115
+ /* @__PURE__ */ React9.createElement("path", { d: "M12 9v4" }),
1116
+ /* @__PURE__ */ React9.createElement("path", { d: "M12 17h.01" })
1117
+ ), /* @__PURE__ */ React9.createElement("span", null, /* @__PURE__ */ React9.createElement("span", { className: "hawa-text-destructive" }, props.loadingErrorMesssage || "Error loading data")))
982
1118
  }
983
- )) : /* @__PURE__ */ React8.createElement(React8.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React8.createElement(
1119
+ )) : /* @__PURE__ */ React9.createElement(React9.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React9.createElement(
984
1120
  "div",
985
1121
  {
986
1122
  className: cn(
@@ -988,7 +1124,7 @@ var Input = forwardRef4(
988
1124
  preview ? "hawa-opacity-100" : "hawa-opacity-0"
989
1125
  )
990
1126
  }
991
- ), /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ React8.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ React8.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React8.createElement(
1127
+ ), /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ React9.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ React9.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React9.createElement(
992
1128
  "div",
993
1129
  {
994
1130
  className: cn(
@@ -997,7 +1133,7 @@ var Input = forwardRef4(
997
1133
  )
998
1134
  },
999
1135
  props.endIcon
1000
- ), /* @__PURE__ */ React8.createElement(
1136
+ ), /* @__PURE__ */ React9.createElement(
1001
1137
  "input",
1002
1138
  {
1003
1139
  required: true,
@@ -1023,7 +1159,7 @@ var Input = forwardRef4(
1023
1159
  inputProps == null ? void 0 : inputProps.className
1024
1160
  )
1025
1161
  }
1026
- )), !forceHideHelperText && /* @__PURE__ */ React8.createElement(HelperText, { helperText: props.helperText }), !props.disabled && forceHideHelperText && /* @__PURE__ */ React8.createElement(
1162
+ )), !forceHideHelperText && /* @__PURE__ */ React9.createElement(HelperText, { helperText: props.helperText }), !props.disabled && forceHideHelperText && /* @__PURE__ */ React9.createElement(
1027
1163
  "div",
1028
1164
  {
1029
1165
  className: cn(
@@ -1032,7 +1168,7 @@ var Input = forwardRef4(
1032
1168
  )
1033
1169
  },
1034
1170
  props.helperText
1035
- ), showCount && /* @__PURE__ */ React8.createElement(
1171
+ ), showCount && /* @__PURE__ */ React9.createElement(
1036
1172
  "div",
1037
1173
  {
1038
1174
  className: cn(
@@ -1053,8 +1189,8 @@ var Input = forwardRef4(
1053
1189
  );
1054
1190
 
1055
1191
  // elements/table/Table.tsx
1056
- import * as React9 from "react";
1057
- var Table = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React9.createElement(
1192
+ import * as React10 from "react";
1193
+ var Table = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React10.createElement(
1058
1194
  "table",
1059
1195
  {
1060
1196
  ref,
@@ -1062,7 +1198,7 @@ var Table = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
1062
1198
  ...props
1063
1199
  }
1064
1200
  )));
1065
- var TableHeader = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1201
+ var TableHeader = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1066
1202
  "thead",
1067
1203
  {
1068
1204
  ref,
@@ -1070,18 +1206,18 @@ var TableHeader = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE
1070
1206
  ...props
1071
1207
  }
1072
1208
  ));
1073
- var TableHead = React9.forwardRef(
1074
- ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1209
+ var TableHead = React10.forwardRef(
1210
+ ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1075
1211
  "th",
1076
1212
  {
1077
1213
  ref,
1078
1214
  className: cn(
1079
- "hawa-bg-muted/60 hawa-text-start hawa-align-middle hawa-font-medium hawa-text-muted-foreground dark:hawa-bg-muted/40 [&:has([role=checkbox])]:hawa-pr-0 [&:not(:last-child)&:not(:first-child)]:hawa-border-x",
1215
+ "hawa-bg-muted/60 hawa-text-nowrap hawa-text-start hawa-align-middle hawa-font-medium hawa-text-muted-foreground dark:hawa-bg-muted/40 [&:has([role=checkbox])]:hawa-pr-0 [&:not(:last-child)&:not(:first-child)]:hawa-border-x",
1080
1216
  dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
1081
1217
  condensed ? "hawa-h-8" : "hawa-h-12",
1082
1218
  clickable ? "hawa-px-1" : "hawa-px-4",
1083
1219
  //First and last columns
1084
- clickable ? " [&:not(:last-child)&:not(:first-child)]:hawa-p-1" : "hawa-px-4",
1220
+ clickable ? "[&:not(:last-child)&:not(:first-child)]:hawa-p-1" : "hawa-px-4",
1085
1221
  //Columns in between
1086
1222
  className
1087
1223
  ),
@@ -1089,8 +1225,8 @@ var TableHead = React9.forwardRef(
1089
1225
  }
1090
1226
  )
1091
1227
  );
1092
- var TableBody = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
1093
- var TableFooter = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1228
+ var TableBody = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
1229
+ var TableFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1094
1230
  "tfoot",
1095
1231
  {
1096
1232
  ref,
@@ -1101,7 +1237,7 @@ var TableFooter = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE
1101
1237
  ...props
1102
1238
  }
1103
1239
  ));
1104
- var TableRow = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1240
+ var TableRow = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1105
1241
  "tr",
1106
1242
  {
1107
1243
  ref,
@@ -1114,14 +1250,14 @@ var TableRow = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1114
1250
  ...props
1115
1251
  }
1116
1252
  ));
1117
- var TableCell = React9.forwardRef(
1253
+ var TableCell = React10.forwardRef(
1118
1254
  ({ className, enablePadding = true, padding = "default", ...props }, ref) => {
1119
1255
  let paddingStyles = {
1120
1256
  condensed: "hawa-p-0 hawa-px-4",
1121
1257
  default: "hawa-p-4",
1122
1258
  noPadding: "hawa-p-0"
1123
1259
  };
1124
- return /* @__PURE__ */ React9.createElement(
1260
+ return /* @__PURE__ */ React10.createElement(
1125
1261
  "td",
1126
1262
  {
1127
1263
  ref,
@@ -1131,7 +1267,7 @@ var TableCell = React9.forwardRef(
1131
1267
  // enablePadding ? "hawa-p-4" : "hawa-p-0",
1132
1268
  // props.disablePadding ? "hawa-p-0" : "hawa-p-4",
1133
1269
  // props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4",
1134
- "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ",
1270
+ "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0",
1135
1271
  "[&:not(:last-child)&:not(:first-child)]:hawa-border-x",
1136
1272
  // "[&:not(:last-child)]:hawa-border-r",
1137
1273
  props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
@@ -1142,7 +1278,7 @@ var TableCell = React9.forwardRef(
1142
1278
  );
1143
1279
  }
1144
1280
  );
1145
- var TableCaption = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1281
+ var TableCaption = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
1146
1282
  "caption",
1147
1283
  {
1148
1284
  ref,
@@ -1170,27 +1306,61 @@ var DataTable = ({
1170
1306
  paginationPosition = "bottom",
1171
1307
  translateFn,
1172
1308
  enableHideColumns,
1309
+ enableSelection,
1173
1310
  enableSearch,
1174
1311
  enableGoTo,
1175
1312
  ...props
1176
1313
  }) => {
1177
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
1178
- const [sorting, setSorting] = React10.useState(
1314
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
1315
+ const [sorting, setSorting] = React11.useState(
1179
1316
  props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
1180
1317
  );
1181
- const [columnFilters, setColumnFilters] = React10.useState(
1318
+ const [columnFilters, setColumnFilters] = React11.useState(
1182
1319
  []
1183
1320
  );
1184
- const [globalFilter, setGlobalFilter] = React10.useState("");
1185
- const [expanded, setExpanded] = React10.useState({});
1186
- const [columnVisibility, setColumnVisibility] = React10.useState(() => {
1321
+ const [globalFilter, setGlobalFilter] = React11.useState("");
1322
+ const [expanded, setExpanded] = React11.useState({});
1323
+ const [columnVisibility, setColumnVisibility] = React11.useState(() => {
1187
1324
  const savedVisibility = localStorage.getItem(LOCAL_STORAGE_KEY);
1188
1325
  return savedVisibility ? JSON.parse(savedVisibility) : {};
1189
1326
  });
1190
- const [rowSelection, setRowSelection] = React10.useState({});
1327
+ const [rowSelection, setRowSelection] = React11.useState({});
1328
+ let mainColumns = enableSelection ? [
1329
+ {
1330
+ id: "select",
1331
+ maxSize: 16,
1332
+ minSize: 16,
1333
+ size: 16,
1334
+ header: ({ table: table2 }) => /* @__PURE__ */ React11.createElement(
1335
+ Checkbox,
1336
+ {
1337
+ dir: props.direction,
1338
+ id: "select_all",
1339
+ "aria-label": "Select all",
1340
+ className: props.direction === "rtl" ? "hawa-ms-4" : "hawa-me-0",
1341
+ checked: table2.getIsAllPageRowsSelected() || table2.getIsSomePageRowsSelected() && "indeterminate",
1342
+ onCheckedChange: (value) => table2.toggleAllPageRowsSelected(!!value)
1343
+ }
1344
+ ),
1345
+ cell: ({ row }) => /* @__PURE__ */ React11.createElement(
1346
+ Checkbox,
1347
+ {
1348
+ dir: props.direction,
1349
+ id: "select_row",
1350
+ className: props.direction === "rtl" ? "hawa-ms-4" : "hawa-me-4",
1351
+ checked: row.getIsSelected(),
1352
+ onCheckedChange: (value) => row.toggleSelected(!!value),
1353
+ "aria-label": "Select row"
1354
+ }
1355
+ ),
1356
+ enableSorting: false,
1357
+ enableHiding: false
1358
+ },
1359
+ ...columns
1360
+ ] : columns;
1191
1361
  const table = useReactTable({
1192
1362
  data,
1193
- columns,
1363
+ columns: mainColumns,
1194
1364
  onExpandedChange: setExpanded,
1195
1365
  getExpandedRowModel: getExpandedRowModel(),
1196
1366
  onGlobalFilterChange: setGlobalFilter,
@@ -1216,10 +1386,10 @@ var DataTable = ({
1216
1386
  label: `${item} / ${pageText}`,
1217
1387
  value: item
1218
1388
  }));
1219
- React10.useEffect(() => {
1389
+ React11.useEffect(() => {
1220
1390
  localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(columnVisibility));
1221
1391
  }, [columnVisibility]);
1222
- React10.useEffect(() => {
1392
+ React11.useEffect(() => {
1223
1393
  setColumnVisibility((prev) => {
1224
1394
  let newColumnVisibility = {};
1225
1395
  columns.forEach((column) => {
@@ -1234,7 +1404,7 @@ var DataTable = ({
1234
1404
  return newColumnVisibility;
1235
1405
  });
1236
1406
  }, [columns]);
1237
- return /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, (enableSearch || enableHideColumns) && /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-4" }, enableSearch && /* @__PURE__ */ React10.createElement(
1407
+ return /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, (enableSearch || enableHideColumns) && /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-4" }, enableSearch && /* @__PURE__ */ React11.createElement(
1238
1408
  Input,
1239
1409
  {
1240
1410
  inputProps: { title: "" },
@@ -1245,7 +1415,7 @@ var DataTable = ({
1245
1415
  margin: "none",
1246
1416
  className: "hawa-w-full md:hawa-max-w-sm",
1247
1417
  endIconProps: { className: "!hawa-end-2" },
1248
- endIcon: globalFilter ? /* @__PURE__ */ React10.createElement(
1418
+ endIcon: globalFilter ? /* @__PURE__ */ React11.createElement(
1249
1419
  Button,
1250
1420
  {
1251
1421
  onClick: () => setGlobalFilter(""),
@@ -1253,7 +1423,7 @@ var DataTable = ({
1253
1423
  size: "smallIcon",
1254
1424
  "aria-label": "Clear Search"
1255
1425
  },
1256
- /* @__PURE__ */ React10.createElement(
1426
+ /* @__PURE__ */ React11.createElement(
1257
1427
  "svg",
1258
1428
  {
1259
1429
  xmlns: "http://www.w3.org/2000/svg",
@@ -1267,43 +1437,45 @@ var DataTable = ({
1267
1437
  strokeLinejoin: "round",
1268
1438
  className: "hawa-icon hawa-text-muted-foreground"
1269
1439
  },
1270
- /* @__PURE__ */ React10.createElement("path", { d: "M18 6 6 18" }),
1271
- /* @__PURE__ */ React10.createElement("path", { d: "m6 6 12 12" })
1440
+ /* @__PURE__ */ React11.createElement("path", { d: "M18 6 6 18" }),
1441
+ /* @__PURE__ */ React11.createElement("path", { d: "m6 6 12 12" })
1272
1442
  )
1273
1443
  ) : null
1274
1444
  }
1275
- ), enableHideColumns && /* @__PURE__ */ React10.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React10.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React10.createElement(
1445
+ ), enableHideColumns && /* @__PURE__ */ React11.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React11.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React11.createElement(
1276
1446
  Button,
1277
1447
  {
1278
1448
  variant: "outline",
1279
1449
  className: "hawa-flex hawa-flex-row hawa-gap-2"
1280
1450
  },
1281
1451
  ((_d = props.texts) == null ? void 0 : _d.columns) || "Columns",
1282
- /* @__PURE__ */ React10.createElement(
1452
+ /* @__PURE__ */ React11.createElement(
1283
1453
  "svg",
1284
1454
  {
1285
- "aria-label": "Chevron Down Icon",
1286
- xmlns: "http://www.w3.org/2000/svg",
1287
- width: "24",
1288
- height: "24",
1289
- viewBox: "0 0 24 24",
1455
+ width: "15",
1456
+ height: "15",
1457
+ viewBox: "0 0 15 15",
1290
1458
  fill: "none",
1291
- stroke: "currentColor",
1292
- strokeWidth: "2",
1293
- strokeLinecap: "round",
1294
- strokeLinejoin: "round",
1295
- className: "hawa-icon hawa-rotate-90"
1459
+ xmlns: "http://www.w3.org/2000/svg"
1296
1460
  },
1297
- /* @__PURE__ */ React10.createElement("path", { d: "m9 18 6-6-6-6" })
1461
+ /* @__PURE__ */ React11.createElement(
1462
+ "path",
1463
+ {
1464
+ d: "M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",
1465
+ fill: "currentColor",
1466
+ "fill-rule": "evenodd",
1467
+ "clip-rule": "evenodd"
1468
+ }
1469
+ )
1298
1470
  )
1299
- )), /* @__PURE__ */ React10.createElement(
1471
+ )), /* @__PURE__ */ React11.createElement(
1300
1472
  DropdownMenuContent,
1301
1473
  {
1302
1474
  align: props.direction === "rtl" ? "start" : "end"
1303
1475
  },
1304
1476
  table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
1305
1477
  var _a2, _b2;
1306
- return /* @__PURE__ */ React10.createElement(
1478
+ return /* @__PURE__ */ React11.createElement(
1307
1479
  DropdownMenuCheckboxItem,
1308
1480
  {
1309
1481
  key: column.id,
@@ -1315,26 +1487,28 @@ var DataTable = ({
1315
1487
  ) : column.id
1316
1488
  );
1317
1489
  })
1318
- ))), props.isLoading ? /* @__PURE__ */ React10.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React10.createElement(
1490
+ ))), props.isLoading ? /* @__PURE__ */ React11.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React11.createElement(
1319
1491
  "div",
1320
1492
  {
1321
1493
  className: cn(
1322
- "hawa-flex hawa-w-full hawa-gap-4",
1494
+ "hawa-flex hawa-w-full hawa-gap-4",
1323
1495
  paginationPosition === "top" ? "hawa-flex-col-reverse" : "hawa-flex-col"
1324
1496
  )
1325
1497
  },
1326
- /* @__PURE__ */ React10.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React10.createElement(Table, null, !props.hideHeader && table.getAllColumns().length > 0 && /* @__PURE__ */ React10.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React10.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
1498
+ /* @__PURE__ */ React11.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React11.createElement(Table, null, !props.hideHeader && table.getAllColumns().length > 0 && /* @__PURE__ */ React11.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React11.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
1327
1499
  var _a2;
1328
1500
  let isSortable = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.sortable;
1329
- return /* @__PURE__ */ React10.createElement(
1501
+ return /* @__PURE__ */ React11.createElement(
1330
1502
  TableHead,
1331
1503
  {
1504
+ key: header.id,
1332
1505
  dir: props.direction,
1333
1506
  condensed: props.condensed,
1334
1507
  clickable: Boolean(isSortable),
1335
- key: header.id,
1336
1508
  style: {
1337
- maxWidth: header.column.columnDef.maxSize
1509
+ maxWidth: `${header.column.columnDef.maxSize}px !important`,
1510
+ minWidth: `${header.column.columnDef.minSize}px !important`,
1511
+ width: `${header.column.columnDef.size}px !important`
1338
1512
  }
1339
1513
  },
1340
1514
  header.isPlaceholder ? null : flexRender(
@@ -1342,7 +1516,7 @@ var DataTable = ({
1342
1516
  header.getContext()
1343
1517
  )
1344
1518
  );
1345
- })))), /* @__PURE__ */ React10.createElement(TableBody, null, ((_e = table.getRowModel().rows) == null ? void 0 : _e.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React10.createElement(
1519
+ })))), /* @__PURE__ */ React11.createElement(TableBody, null, ((_e = table.getRowModel().rows) == null ? void 0 : _e.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React11.createElement(
1346
1520
  TableRow,
1347
1521
  {
1348
1522
  key: row.id,
@@ -1350,15 +1524,17 @@ var DataTable = ({
1350
1524
  },
1351
1525
  row.getVisibleCells().map((cell) => {
1352
1526
  var _a2;
1353
- return /* @__PURE__ */ React10.createElement(
1527
+ return /* @__PURE__ */ React11.createElement(
1354
1528
  TableCell,
1355
1529
  {
1530
+ key: cell.id,
1531
+ dir: props.direction,
1356
1532
  style: {
1357
- maxWidth: cell.column.columnDef.maxSize
1533
+ maxWidth: `${cell.column.columnDef.maxSize}px !important`,
1534
+ minWidth: `${cell.column.columnDef.minSize}px !important`,
1535
+ width: `${cell.column.columnDef.size}px !important`
1358
1536
  },
1359
- dir: props.direction,
1360
- padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding,
1361
- key: cell.id
1537
+ padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding
1362
1538
  },
1363
1539
  flexRender(
1364
1540
  cell.column.columnDef.cell,
@@ -1366,7 +1542,7 @@ var DataTable = ({
1366
1542
  )
1367
1543
  );
1368
1544
  })
1369
- )) : /* @__PURE__ */ React10.createElement(TableRow, null, /* @__PURE__ */ React10.createElement(
1545
+ )) : /* @__PURE__ */ React11.createElement(TableRow, null, /* @__PURE__ */ React11.createElement(
1370
1546
  TableCell,
1371
1547
  {
1372
1548
  colSpan: columns.length,
@@ -1374,169 +1550,207 @@ var DataTable = ({
1374
1550
  },
1375
1551
  (_f = props.texts) == null ? void 0 : _f.noData
1376
1552
  ))))),
1377
- /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between" }, !props.showCount && /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }), props.showCount && /* @__PURE__ */ React10.createElement(
1553
+ /* @__PURE__ */ React11.createElement(
1378
1554
  "div",
1379
1555
  {
1380
- className: "text-muted-foreground text-sm",
1381
- dir: props.direction
1382
- },
1383
- /* @__PURE__ */ React10.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
1384
- " ",
1385
- /* @__PURE__ */ React10.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
1386
- ), /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React10.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React10.createElement(
1387
- "input",
1388
- {
1389
- max: table.getPageCount(),
1390
- min: 0,
1391
- type: "number",
1392
- defaultValue: table.getState().pagination.pageIndex + 1,
1393
- onChange: (e) => {
1394
- let page = Number(e.target.value) - 1;
1395
- const max = table.getPageCount();
1396
- if (!isNaN(page) && Number(page) > max) {
1397
- page = max - 1;
1398
- }
1399
- table.setPageIndex(page);
1400
- },
1401
- className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm placeholder:hawa-text-muted-foreground"
1402
- }
1403
- )), /* @__PURE__ */ React10.createElement(
1404
- DropdownMenu,
1405
- {
1406
- size: "sm",
1407
- width: "sm",
1408
- direction: props.direction,
1409
- items: itemsPerPageOptions || [
1410
- { label: `10 / ${pageText}`, value: 10 },
1411
- { label: `20 / ${pageText}`, value: 20 },
1412
- { label: `30 / ${pageText}`, value: 30 },
1413
- { label: `40 / ${pageText}`, value: 40 },
1414
- { label: `50 / ${pageText}`, value: 50 }
1415
- ],
1416
- trigger: /* @__PURE__ */ React10.createElement(
1417
- Button,
1418
- {
1419
- variant: "outline",
1420
- size: "icon",
1421
- className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 "
1422
- },
1423
- `${table.getState().pagination.pageSize} / ${(_i = props.texts) == null ? void 0 : _i.page}`
1424
- ),
1425
- onItemSelect: (e) => table.setPageSize(Number(e))
1426
- }
1427
- ), table.getPageCount() > 1 && /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React10.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React10.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React10.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React10.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React10.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React10.createElement(
1428
- Button,
1429
- {
1430
- "aria-label": "Next Table Page",
1431
- variant: "outline",
1432
- size: "smallIcon",
1433
- onClick: () => table.setPageIndex(0),
1434
- disabled: !table.getCanPreviousPage(),
1435
1556
  className: cn(
1436
- props.direction === "rtl" && "hawa-rotate-180"
1557
+ "hawa-flex hawa-justify-between hawa-gap-4 tablet:hawa-gap-0",
1558
+ props.showSelectionCount ? "hawa-flex-col tablet:hawa-flex-row" : "hawa-flex-col mobile:hawa-flex-row"
1437
1559
  )
1438
1560
  },
1439
- /* @__PURE__ */ React10.createElement(
1440
- "svg",
1561
+ !props.showCount && /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }),
1562
+ props.showCount || table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount ? /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-gap-4" }, /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-items-center hawa-justify-between" }, props.showCount && /* @__PURE__ */ React11.createElement(
1563
+ "div",
1441
1564
  {
1442
- xmlns: "http://www.w3.org/2000/svg",
1443
- width: "20",
1444
- height: "20",
1445
- viewBox: "0 0 24 24",
1446
- fill: "none",
1447
- stroke: "currentColor",
1448
- strokeWidth: "2",
1449
- strokeLinecap: "round",
1450
- strokeLinejoin: "round"
1565
+ className: "hawa-text-muted-foreground hawa-text-sm",
1566
+ dir: props.direction
1451
1567
  },
1452
- /* @__PURE__ */ React10.createElement("path", { d: "m11 17-5-5 5-5" }),
1453
- /* @__PURE__ */ React10.createElement("path", { d: "m18 17-5-5 5-5" })
1454
- )
1455
- ), /* @__PURE__ */ React10.createElement(
1456
- Button,
1457
- {
1458
- "aria-label": "Previous Table Page",
1459
- variant: "outline",
1460
- size: "smallIcon",
1461
- onClick: () => table.previousPage(),
1462
- disabled: !table.getCanPreviousPage(),
1463
- className: cn(
1464
- props.direction === "rtl" && "hawa-rotate-180"
1568
+ /* @__PURE__ */ React11.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
1569
+ " ",
1570
+ /* @__PURE__ */ React11.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
1571
+ ), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React11.createElement("div", { className: "hawa-w-[0.5px] hawa-mx-2 hawa-bg-red-500 hawa-h-full" }), table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React11.createElement(
1572
+ "div",
1573
+ {
1574
+ className: "hawa-text-muted-foreground hawa-text-sm",
1575
+ dir: props.direction
1576
+ },
1577
+ table.getFilteredSelectedRowModel().rows.length,
1578
+ " ",
1579
+ (_h = props.texts) == null ? void 0 : _h.of,
1580
+ " ",
1581
+ table.getFilteredRowModel().rows.length,
1582
+ " ",
1583
+ (_i = props.texts) == null ? void 0 : _i.selectedRows
1584
+ )), table.getFilteredSelectedRowModel().rows.length > 0 && /* @__PURE__ */ React11.createElement("div", { className: "" }, /* @__PURE__ */ React11.createElement(
1585
+ DropdownMenu,
1586
+ {
1587
+ size: "sm",
1588
+ width: "sm",
1589
+ direction: props.direction,
1590
+ items: (props.bulkActions || []).map((action) => ({
1591
+ ...action,
1592
+ action: () => action.action(
1593
+ table.getFilteredSelectedRowModel().rows
1594
+ )
1595
+ })),
1596
+ trigger: /* @__PURE__ */ React11.createElement(Button, { size: "xs" }, ((_j = props.texts) == null ? void 0 : _j.bulkAction) || "Bulk Action")
1597
+ }
1598
+ ))) : null,
1599
+ /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-items-center hawa-gap-2 hawa-bg--500 tablet:hawa-w-fit hawa-justify-between" }, enableGoTo && /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React11.createElement("span", { className: "hawa-text-sm" }, (_k = props.texts) == null ? void 0 : _k.goTo), /* @__PURE__ */ React11.createElement(
1600
+ "input",
1601
+ {
1602
+ max: table.getPageCount(),
1603
+ min: 0,
1604
+ type: "number",
1605
+ defaultValue: table.getState().pagination.pageIndex + 1,
1606
+ onChange: (e) => {
1607
+ let page = Number(e.target.value) - 1;
1608
+ const max = table.getPageCount();
1609
+ if (!isNaN(page) && Number(page) > max) {
1610
+ page = max - 1;
1611
+ }
1612
+ table.setPageIndex(page);
1613
+ },
1614
+ className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm placeholder:hawa-text-muted-foreground"
1615
+ }
1616
+ )), /* @__PURE__ */ React11.createElement(
1617
+ DropdownMenu,
1618
+ {
1619
+ size: "sm",
1620
+ width: "sm",
1621
+ direction: props.direction,
1622
+ items: itemsPerPageOptions || [
1623
+ { label: `10 / ${pageText}`, value: 10 },
1624
+ { label: `20 / ${pageText}`, value: 20 },
1625
+ { label: `30 / ${pageText}`, value: 30 },
1626
+ { label: `40 / ${pageText}`, value: 40 },
1627
+ { label: `50 / ${pageText}`, value: 50 }
1628
+ ],
1629
+ trigger: /* @__PURE__ */ React11.createElement(
1630
+ Button,
1631
+ {
1632
+ variant: "outline",
1633
+ size: "icon",
1634
+ className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 hawa-whitespace-nowrap"
1635
+ },
1636
+ `${table.getState().pagination.pageSize} / ${(_l = props.texts) == null ? void 0 : _l.page}`
1637
+ ),
1638
+ onItemSelect: (e) => table.setPageSize(Number(e))
1639
+ }
1640
+ ), table.getPageCount() > 1 && /* @__PURE__ */ React11.createElement("div", { className: "hawa-bg--500 hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-bg--500 hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, /* @__PURE__ */ React11.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React11.createElement("div", null, (_m = props.texts) == null ? void 0 : _m.page), /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React11.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React11.createElement("span", null, (_n = props.texts) == null ? void 0 : _n.of), /* @__PURE__ */ React11.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-center hawa-bg--500" }, /* @__PURE__ */ React11.createElement(
1641
+ Button,
1642
+ {
1643
+ "aria-label": "Next Table Page",
1644
+ variant: "outline",
1645
+ size: "smallIcon",
1646
+ onClick: () => table.setPageIndex(0),
1647
+ disabled: !table.getCanPreviousPage(),
1648
+ className: cn(
1649
+ props.direction === "rtl" && "hawa-rotate-180"
1650
+ )
1651
+ },
1652
+ /* @__PURE__ */ React11.createElement(
1653
+ "svg",
1654
+ {
1655
+ xmlns: "http://www.w3.org/2000/svg",
1656
+ width: "20",
1657
+ height: "20",
1658
+ viewBox: "0 0 24 24",
1659
+ fill: "none",
1660
+ stroke: "currentColor",
1661
+ strokeWidth: "2",
1662
+ strokeLinecap: "round",
1663
+ strokeLinejoin: "round"
1664
+ },
1665
+ /* @__PURE__ */ React11.createElement("path", { d: "m11 17-5-5 5-5" }),
1666
+ /* @__PURE__ */ React11.createElement("path", { d: "m18 17-5-5 5-5" })
1465
1667
  )
1466
- },
1467
- /* @__PURE__ */ React10.createElement(
1468
- "svg",
1668
+ ), /* @__PURE__ */ React11.createElement(
1669
+ Button,
1469
1670
  {
1470
- xmlns: "http://www.w3.org/2000/svg",
1471
- width: "20",
1472
- height: "20",
1473
- "aria-label": "Single Chevron Icon",
1474
- viewBox: "0 0 24 24",
1475
- fill: "none",
1476
- stroke: "currentColor",
1477
- strokeWidth: "2",
1478
- strokeLinecap: "round",
1479
- strokeLinejoin: "round"
1671
+ "aria-label": "Previous Table Page",
1672
+ variant: "outline",
1673
+ size: "smallIcon",
1674
+ onClick: () => table.previousPage(),
1675
+ disabled: !table.getCanPreviousPage(),
1676
+ className: cn(
1677
+ props.direction === "rtl" && "hawa-rotate-180"
1678
+ )
1480
1679
  },
1481
- /* @__PURE__ */ React10.createElement("path", { d: "m15 18-6-6 6-6" })
1482
- )
1483
- ), /* @__PURE__ */ React10.createElement(
1484
- Button,
1485
- {
1486
- "aria-label": "Next Table Page",
1487
- variant: "outline",
1488
- size: "smallIcon",
1489
- onClick: () => table.nextPage(),
1490
- disabled: !table.getCanNextPage(),
1491
- className: cn(
1492
- props.direction === "ltr" && "hawa-rotate-180"
1680
+ /* @__PURE__ */ React11.createElement(
1681
+ "svg",
1682
+ {
1683
+ xmlns: "http://www.w3.org/2000/svg",
1684
+ width: "20",
1685
+ height: "20",
1686
+ "aria-label": "Single Chevron Icon",
1687
+ viewBox: "0 0 24 24",
1688
+ fill: "none",
1689
+ stroke: "currentColor",
1690
+ strokeWidth: "2",
1691
+ strokeLinecap: "round",
1692
+ strokeLinejoin: "round"
1693
+ },
1694
+ /* @__PURE__ */ React11.createElement("path", { d: "m15 18-6-6 6-6" })
1493
1695
  )
1494
- },
1495
- /* @__PURE__ */ React10.createElement(
1496
- "svg",
1696
+ ), /* @__PURE__ */ React11.createElement(
1697
+ Button,
1497
1698
  {
1498
- xmlns: "http://www.w3.org/2000/svg",
1499
- width: "20",
1500
- height: "20",
1501
- "aria-label": "Single Chevron Icon",
1502
- viewBox: "0 0 24 24",
1503
- fill: "none",
1504
- stroke: "currentColor",
1505
- strokeWidth: "2",
1506
- strokeLinecap: "round",
1507
- strokeLinejoin: "round"
1699
+ "aria-label": "Next Table Page",
1700
+ variant: "outline",
1701
+ size: "smallIcon",
1702
+ onClick: () => table.nextPage(),
1703
+ disabled: !table.getCanNextPage(),
1704
+ className: cn(
1705
+ props.direction === "ltr" && "hawa-rotate-180"
1706
+ )
1508
1707
  },
1509
- /* @__PURE__ */ React10.createElement("path", { d: "m15 18-6-6 6-6" })
1510
- )
1511
- ), /* @__PURE__ */ React10.createElement(
1512
- Button,
1513
- {
1514
- "aria-label": "Next Table Page",
1515
- variant: "outline",
1516
- size: "smallIcon",
1517
- onClick: () => table.setPageIndex(table.getPageCount() - 1),
1518
- disabled: !table.getCanNextPage(),
1519
- className: cn(
1520
- props.direction === "ltr" && "hawa-rotate-180"
1708
+ /* @__PURE__ */ React11.createElement(
1709
+ "svg",
1710
+ {
1711
+ xmlns: "http://www.w3.org/2000/svg",
1712
+ width: "20",
1713
+ height: "20",
1714
+ "aria-label": "Single Chevron Icon",
1715
+ viewBox: "0 0 24 24",
1716
+ fill: "none",
1717
+ stroke: "currentColor",
1718
+ strokeWidth: "2",
1719
+ strokeLinecap: "round",
1720
+ strokeLinejoin: "round"
1721
+ },
1722
+ /* @__PURE__ */ React11.createElement("path", { d: "m15 18-6-6 6-6" })
1521
1723
  )
1522
- },
1523
- /* @__PURE__ */ React10.createElement(
1524
- "svg",
1724
+ ), /* @__PURE__ */ React11.createElement(
1725
+ Button,
1525
1726
  {
1526
- xmlns: "http://www.w3.org/2000/svg",
1527
- width: "20",
1528
- height: "20",
1529
- viewBox: "0 0 24 24",
1530
- fill: "none",
1531
- stroke: "currentColor",
1532
- strokeWidth: "2",
1533
- strokeLinecap: "round",
1534
- strokeLinejoin: "round"
1727
+ "aria-label": "Next Table Page",
1728
+ variant: "outline",
1729
+ size: "smallIcon",
1730
+ onClick: () => table.setPageIndex(table.getPageCount() - 1),
1731
+ disabled: !table.getCanNextPage(),
1732
+ className: cn(
1733
+ props.direction === "ltr" && "hawa-rotate-180"
1734
+ )
1535
1735
  },
1536
- /* @__PURE__ */ React10.createElement("path", { d: "m11 17-5-5 5-5" }),
1537
- /* @__PURE__ */ React10.createElement("path", { d: "m18 17-5-5 5-5" })
1538
- )
1539
- ))))
1736
+ /* @__PURE__ */ React11.createElement(
1737
+ "svg",
1738
+ {
1739
+ xmlns: "http://www.w3.org/2000/svg",
1740
+ width: "20",
1741
+ height: "20",
1742
+ viewBox: "0 0 24 24",
1743
+ fill: "none",
1744
+ stroke: "currentColor",
1745
+ strokeWidth: "2",
1746
+ strokeLinecap: "round",
1747
+ strokeLinejoin: "round"
1748
+ },
1749
+ /* @__PURE__ */ React11.createElement("path", { d: "m11 17-5-5 5-5" }),
1750
+ /* @__PURE__ */ React11.createElement("path", { d: "m18 17-5-5 5-5" })
1751
+ )
1752
+ ))))
1753
+ )
1540
1754
  ));
1541
1755
  };
1542
1756
  export {