@sikka/hawa 0.34.8-next → 0.35.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 (129) hide show
  1. package/dist/{Radio-BpXOu4Hr.d.mts → Radio-BCD7k628.d.mts} +3 -0
  2. package/dist/{Radio-CREjhlGz.d.ts → Radio-y9uhxitu.d.ts} +3 -0
  3. package/dist/alert/index.js +28 -17
  4. package/dist/alert/index.js.map +1 -1
  5. package/dist/alert/index.mjs +61 -50
  6. package/dist/alert/index.mjs.map +1 -1
  7. package/dist/appLayout/index.js +81 -70
  8. package/dist/appLayout/index.js.map +1 -1
  9. package/dist/appLayout/index.mjs +138 -127
  10. package/dist/appLayout/index.mjs.map +1 -1
  11. package/dist/backToTop/index.js +28 -17
  12. package/dist/backToTop/index.js.map +1 -1
  13. package/dist/backToTop/index.mjs +55 -44
  14. package/dist/backToTop/index.mjs.map +1 -1
  15. package/dist/blocks/auth/index.js +50 -39
  16. package/dist/blocks/auth/index.mjs +5 -5
  17. package/dist/blocks/feedback/index.d.mts +3 -0
  18. package/dist/blocks/feedback/index.d.ts +3 -0
  19. package/dist/blocks/feedback/index.js +174 -120
  20. package/dist/blocks/feedback/index.mjs +29 -93
  21. package/dist/blocks/index.d.mts +2 -1
  22. package/dist/blocks/index.d.ts +2 -1
  23. package/dist/blocks/index.js +253 -201
  24. package/dist/blocks/index.mjs +3 -3
  25. package/dist/blocks/misc/index.js +71 -60
  26. package/dist/blocks/misc/index.mjs +5 -5
  27. package/dist/blocks/pricing/index.js +154 -80
  28. package/dist/blocks/pricing/index.mjs +4 -4
  29. package/dist/button/index.d.mts +13 -0
  30. package/dist/button/index.d.ts +13 -0
  31. package/dist/button/index.js +28 -17
  32. package/dist/button/index.js.map +1 -1
  33. package/dist/button/index.mjs +51 -40
  34. package/dist/button/index.mjs.map +1 -1
  35. package/dist/calendar/index.js +34 -23
  36. package/dist/calendar/index.js.map +1 -1
  37. package/dist/calendar/index.mjs +57 -46
  38. package/dist/calendar/index.mjs.map +1 -1
  39. package/dist/{chunk-GEB3LM5A.mjs → chunk-A376BKNX.mjs} +2 -2
  40. package/dist/{chunk-OS2UOK5C.mjs → chunk-DABX3SU6.mjs} +64 -51
  41. package/dist/{chunk-QPZ4ZR2B.mjs → chunk-DFWFQWWT.mjs} +155 -116
  42. package/dist/{chunk-UBNCETCU.mjs → chunk-GVZWOUGN.mjs} +1 -1
  43. package/dist/chunk-HHC34DXN.mjs +320 -0
  44. package/dist/{chunk-QVF3VLB7.mjs → chunk-IDKXEJET.mjs} +157 -144
  45. package/dist/{chunk-AW5FW5TY.mjs → chunk-L56XQRQI.mjs} +1 -1
  46. package/dist/{chunk-ORNLFAC6.mjs → chunk-XFRJ62W3.mjs} +1 -1
  47. package/dist/{chunk-RTGD7N7I.mjs → chunk-XJMDUR5A.mjs} +1 -1
  48. package/dist/{chunk-J7BT4XJR.mjs → chunk-YOT2GVXO.mjs} +1 -1
  49. package/dist/codeBlock/index.js +28 -17
  50. package/dist/codeBlock/index.js.map +1 -1
  51. package/dist/codeBlock/index.mjs +70 -59
  52. package/dist/codeBlock/index.mjs.map +1 -1
  53. package/dist/colorPicker/index.js.map +1 -1
  54. package/dist/colorPicker/index.mjs.map +1 -1
  55. package/dist/combobox/index.js.map +1 -1
  56. package/dist/combobox/index.mjs.map +1 -1
  57. package/dist/dataTable/index.d.mts +1 -2
  58. package/dist/dataTable/index.d.ts +1 -2
  59. package/dist/dataTable/index.js +144 -105
  60. package/dist/dataTable/index.js.map +1 -1
  61. package/dist/dataTable/index.mjs +178 -139
  62. package/dist/dataTable/index.mjs.map +1 -1
  63. package/dist/datePicker/index.d.mts +23 -5
  64. package/dist/datePicker/index.d.ts +23 -5
  65. package/dist/datePicker/index.js +46 -18
  66. package/dist/datePicker/index.js.map +1 -1
  67. package/dist/datePicker/index.mjs +46 -18
  68. package/dist/datePicker/index.mjs.map +1 -1
  69. package/dist/docsLayout/index.js +40 -29
  70. package/dist/docsLayout/index.js.map +1 -1
  71. package/dist/docsLayout/index.mjs +135 -124
  72. package/dist/docsLayout/index.mjs.map +1 -1
  73. package/dist/elements/index.d.mts +7 -3
  74. package/dist/elements/index.d.ts +7 -3
  75. package/dist/elements/index.js +475 -395
  76. package/dist/elements/index.mjs +32 -4
  77. package/dist/fileDropzone/index.js +28 -17
  78. package/dist/fileDropzone/index.js.map +1 -1
  79. package/dist/fileDropzone/index.mjs +89 -78
  80. package/dist/fileDropzone/index.mjs.map +1 -1
  81. package/dist/index.css +3 -0
  82. package/dist/index.d.mts +16 -9
  83. package/dist/index.d.ts +16 -9
  84. package/dist/index.js +515 -435
  85. package/dist/index.mjs +1204 -1124
  86. package/dist/input/index.js +1 -1
  87. package/dist/input/index.js.map +1 -1
  88. package/dist/input/index.mjs +1 -1
  89. package/dist/input/index.mjs.map +1 -1
  90. package/dist/interfaceSettings/index.js +85 -24
  91. package/dist/interfaceSettings/index.js.map +1 -1
  92. package/dist/interfaceSettings/index.mjs +107 -46
  93. package/dist/interfaceSettings/index.mjs.map +1 -1
  94. package/dist/layout/index.js +121 -110
  95. package/dist/layout/index.mjs +2 -2
  96. package/dist/passwordInput/index.js +1 -1
  97. package/dist/passwordInput/index.js.map +1 -1
  98. package/dist/passwordInput/index.mjs +1 -1
  99. package/dist/passwordInput/index.mjs.map +1 -1
  100. package/dist/phoneInput/index.js.map +1 -1
  101. package/dist/phoneInput/index.mjs.map +1 -1
  102. package/dist/radio/index.d.mts +3 -0
  103. package/dist/radio/index.d.ts +3 -0
  104. package/dist/radio/index.js +85 -24
  105. package/dist/radio/index.js.map +1 -1
  106. package/dist/radio/index.mjs +100 -39
  107. package/dist/radio/index.mjs.map +1 -1
  108. package/dist/select/index.js.map +1 -1
  109. package/dist/select/index.mjs.map +1 -1
  110. package/dist/simpleTable/index.js.map +1 -1
  111. package/dist/simpleTable/index.mjs.map +1 -1
  112. package/dist/skeleton/index.js.map +1 -1
  113. package/dist/skeleton/index.mjs.map +1 -1
  114. package/dist/sortButton/index.js +28 -17
  115. package/dist/sortButton/index.js.map +1 -1
  116. package/dist/sortButton/index.mjs +58 -47
  117. package/dist/sortButton/index.mjs.map +1 -1
  118. package/dist/splitButton/index.d.mts +12 -0
  119. package/dist/splitButton/index.d.ts +12 -0
  120. package/dist/splitButton/index.js +70 -59
  121. package/dist/splitButton/index.js.map +1 -1
  122. package/dist/splitButton/index.mjs +93 -82
  123. package/dist/splitButton/index.mjs.map +1 -1
  124. package/dist/stats/index.js.map +1 -1
  125. package/dist/stats/index.mjs.map +1 -1
  126. package/dist/textarea/index.js.map +1 -1
  127. package/dist/textarea/index.mjs.map +1 -1
  128. package/package.json +6 -6
  129. package/dist/chunk-IQEBXGLM.mjs +0 -215
@@ -36,7 +36,7 @@ __export(dataTable_exports, {
36
36
  module.exports = __toCommonJS(dataTable_exports);
37
37
 
38
38
  // elements/dataTable/DataTable.tsx
39
- var React9 = __toESM(require("react"));
39
+ var React10 = __toESM(require("react"));
40
40
  var import_react_table = require("@tanstack/react-table");
41
41
 
42
42
  // util/index.ts
@@ -47,11 +47,23 @@ function cn(...inputs) {
47
47
  }
48
48
 
49
49
  // elements/button/Button.tsx
50
- var React4 = __toESM(require("react"));
50
+ var React5 = __toESM(require("react"));
51
51
  var import_class_variance_authority = require("class-variance-authority");
52
52
 
53
+ // elements/helperText/HelperText.tsx
54
+ var HelperText = ({ helperText }) => /* @__PURE__ */ React.createElement(
55
+ "p",
56
+ {
57
+ className: cn(
58
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
59
+ helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
60
+ )
61
+ },
62
+ helperText
63
+ );
64
+
53
65
  // elements/label/Label.tsx
54
- var React2 = __toESM(require("react"));
66
+ var React3 = __toESM(require("react"));
55
67
 
56
68
  // elements/tooltip/Tooltip.tsx
57
69
  var import_react = __toESM(require("react"));
@@ -125,7 +137,7 @@ var Tooltip = ({
125
137
  };
126
138
 
127
139
  // elements/label/Label.tsx
128
- var Label = React2.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React2.createElement(
140
+ 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(
129
141
  "label",
130
142
  {
131
143
  ref,
@@ -136,8 +148,8 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
136
148
  ...props
137
149
  },
138
150
  children,
139
- required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
140
- ), hint && /* @__PURE__ */ React2.createElement(
151
+ required && /* @__PURE__ */ React3.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
152
+ ), hint && /* @__PURE__ */ React3.createElement(
141
153
  Tooltip,
142
154
  {
143
155
  content: hint,
@@ -147,7 +159,7 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
147
159
  onClick: (event) => event.preventDefault()
148
160
  }
149
161
  },
150
- /* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement(
162
+ /* @__PURE__ */ React3.createElement("div", null, /* @__PURE__ */ React3.createElement(
151
163
  "svg",
152
164
  {
153
165
  xmlns: "http://www.w3.org/2000/svg",
@@ -159,9 +171,9 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
159
171
  strokeLinecap: "round",
160
172
  strokeLinejoin: "round"
161
173
  },
162
- /* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
163
- /* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
164
- /* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
174
+ /* @__PURE__ */ React3.createElement("circle", { cx: "12", cy: "12", r: "10" }),
175
+ /* @__PURE__ */ React3.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
176
+ /* @__PURE__ */ React3.createElement("path", { d: "M12 17h.01" })
165
177
  ))
166
178
  )));
167
179
  Label.displayName = "Label";
@@ -412,13 +424,10 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
412
424
  smallIcon: "hawa-h-7 hawa-w-7"
413
425
  }
414
426
  },
415
- defaultVariants: {
416
- variant: "default",
417
- size: "default"
418
- }
427
+ defaultVariants: { variant: "default", size: "default" }
419
428
  }
420
429
  );
421
- var Button = React4.forwardRef(
430
+ var Button = React5.forwardRef(
422
431
  ({
423
432
  className,
424
433
  label,
@@ -428,11 +437,13 @@ var Button = React4.forwardRef(
428
437
  centered = true,
429
438
  isLoading,
430
439
  children,
440
+ labelProps,
441
+ showHelperText = false,
431
442
  ...props
432
443
  }, ref) => {
433
444
  const Comp = "button";
434
445
  const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
435
- return /* @__PURE__ */ React4.createElement("div", { className: "flex flex-col" }, label && /* @__PURE__ */ React4.createElement(Label, { className: "hawa-mb-2" }, label), /* @__PURE__ */ React4.createElement(
446
+ return /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React5.createElement(
436
447
  Comp,
437
448
  {
438
449
  className: cn(
@@ -442,7 +453,7 @@ var Button = React4.forwardRef(
442
453
  ref,
443
454
  ...props
444
455
  },
445
- isLoading ? /* @__PURE__ */ React4.createElement(
456
+ isLoading ? /* @__PURE__ */ React5.createElement(
446
457
  Loading,
447
458
  {
448
459
  design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
@@ -451,20 +462,20 @@ var Button = React4.forwardRef(
451
462
  size: size === "sm" || size === "xs" ? "xs" : "button"
452
463
  }
453
464
  ) : children
454
- ));
465
+ ), showHelperText && /* @__PURE__ */ React5.createElement(HelperText, { helperText: props.helperText }));
455
466
  }
456
467
  );
457
468
  Button.displayName = "Button";
458
469
 
459
470
  // elements/dropdownMenu/DropdownMenu.tsx
460
- var React5 = __toESM(require("react"));
471
+ var React6 = __toESM(require("react"));
461
472
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
462
473
  var DropdownMenuRoot = DropdownMenuPrimitive.Root;
463
474
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
464
475
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
465
476
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
466
477
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
467
- var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
478
+ var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
468
479
  DropdownMenuPrimitive.SubTrigger,
469
480
  {
470
481
  ref,
@@ -475,9 +486,9 @@ var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ..
475
486
  ),
476
487
  ...props
477
488
  },
478
- /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
489
+ /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
479
490
  " ",
480
- /* @__PURE__ */ React5.createElement(
491
+ /* @__PURE__ */ React6.createElement(
481
492
  "svg",
482
493
  {
483
494
  "aria-label": "Chevron Right Icon",
@@ -489,7 +500,7 @@ var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ..
489
500
  width: "1em",
490
501
  className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
491
502
  },
492
- /* @__PURE__ */ React5.createElement(
503
+ /* @__PURE__ */ React6.createElement(
493
504
  "path",
494
505
  {
495
506
  fillRule: "evenodd",
@@ -499,7 +510,7 @@ var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ..
499
510
  )
500
511
  ));
501
512
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
502
- var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
513
+ var DropdownMenuSubContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
503
514
  DropdownMenuPrimitive.SubContent,
504
515
  {
505
516
  ref,
@@ -511,7 +522,7 @@ var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) =>
511
522
  }
512
523
  ));
513
524
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
514
- var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React5.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React5.createElement(
525
+ var DropdownMenuContent = React6.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React6.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React6.createElement(
515
526
  DropdownMenuPrimitive.Content,
516
527
  {
517
528
  ref,
@@ -524,8 +535,8 @@ var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...pro
524
535
  }
525
536
  )));
526
537
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
527
- var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
528
- return /* @__PURE__ */ React5.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React5.createElement(
538
+ var DropdownMenuItem = React6.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
539
+ return /* @__PURE__ */ React6.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React6.createElement(
529
540
  DropdownMenuPrimitive.Item,
530
541
  {
531
542
  disabled: props.disabled,
@@ -538,14 +549,14 @@ var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, Link
538
549
  ),
539
550
  ...props
540
551
  },
541
- /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
552
+ /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
542
553
  props.end && props.end,
543
- !props.end && props.shortcut && /* @__PURE__ */ React5.createElement(DropdownMenuShortcut, null, props.shortcut),
544
- !props.end && badged && /* @__PURE__ */ React5.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
554
+ !props.end && props.shortcut && /* @__PURE__ */ React6.createElement(DropdownMenuShortcut, null, props.shortcut),
555
+ !props.end && badged && /* @__PURE__ */ React6.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
545
556
  ));
546
557
  });
547
558
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
548
- var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React5.createElement(
559
+ var DropdownMenuCheckboxItem = React6.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React6.createElement(
549
560
  DropdownMenuPrimitive.CheckboxItem,
550
561
  {
551
562
  ref,
@@ -556,7 +567,7 @@ var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, checked
556
567
  checked,
557
568
  ...props
558
569
  },
559
- /* @__PURE__ */ React5.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__ */ React5.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React5.createElement(
570
+ /* @__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(
560
571
  "svg",
561
572
  {
562
573
  "aria-label": "Check Mark",
@@ -567,12 +578,12 @@ var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, checked
567
578
  height: "0.60em",
568
579
  width: "0.60em"
569
580
  },
570
- /* @__PURE__ */ React5.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" })
581
+ /* @__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" })
571
582
  ), " ")),
572
583
  children
573
584
  ));
574
585
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
575
- var DropdownMenuRadioItem = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
586
+ var DropdownMenuRadioItem = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
576
587
  DropdownMenuPrimitive.RadioItem,
577
588
  {
578
589
  ref,
@@ -582,7 +593,7 @@ var DropdownMenuRadioItem = React5.forwardRef(({ className, children, ...props }
582
593
  ),
583
594
  ...props
584
595
  },
585
- /* @__PURE__ */ React5.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__ */ React5.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React5.createElement(
596
+ /* @__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(
586
597
  "svg",
587
598
  {
588
599
  xmlns: "http://www.w3.org/2000/svg",
@@ -597,12 +608,12 @@ var DropdownMenuRadioItem = React5.forwardRef(({ className, children, ...props }
597
608
  strokeLinejoin: "round",
598
609
  className: "hawa-h-2 hawa-w-2 hawa-fill-current"
599
610
  },
600
- /* @__PURE__ */ React5.createElement("circle", { cx: "12", cy: "12", r: "10" })
611
+ /* @__PURE__ */ React6.createElement("circle", { cx: "12", cy: "12", r: "10" })
601
612
  ))),
602
613
  children
603
614
  ));
604
615
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
605
- var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React5.createElement(
616
+ var DropdownMenuLabel = React6.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React6.createElement(
606
617
  DropdownMenuPrimitive.Label,
607
618
  {
608
619
  ref,
@@ -615,7 +626,7 @@ var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref)
615
626
  }
616
627
  ));
617
628
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
618
- var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
629
+ var DropdownMenuSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
619
630
  DropdownMenuPrimitive.Separator,
620
631
  {
621
632
  ref,
@@ -628,7 +639,7 @@ var DropdownMenuShortcut = ({
628
639
  className,
629
640
  ...props
630
641
  }) => {
631
- return /* @__PURE__ */ React5.createElement(
642
+ return /* @__PURE__ */ React6.createElement(
632
643
  "span",
633
644
  {
634
645
  className: cn(
@@ -668,10 +679,10 @@ var DropdownMenu = ({
668
679
  default: "hawa-px-2 hawa-py-3 ",
669
680
  sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
670
681
  };
671
- let [values, setValues] = React5.useState(
682
+ let [values, setValues] = React6.useState(
672
683
  items.map((item) => item.currentOption)
673
684
  );
674
- return /* @__PURE__ */ React5.createElement(
685
+ return /* @__PURE__ */ React6.createElement(
675
686
  DropdownMenuRoot,
676
687
  {
677
688
  onOpenChange,
@@ -679,8 +690,8 @@ var DropdownMenu = ({
679
690
  modal: false,
680
691
  dir: direction
681
692
  },
682
- /* @__PURE__ */ React5.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
683
- /* @__PURE__ */ React5.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React5.createElement(
693
+ /* @__PURE__ */ React6.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
694
+ /* @__PURE__ */ React6.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React6.createElement(
684
695
  DropdownMenuContent,
685
696
  {
686
697
  side,
@@ -701,12 +712,12 @@ var DropdownMenu = ({
701
712
  var _a;
702
713
  const ItemLinkComponent = item.slug ? LinkComponent : "a";
703
714
  if (item.itemType === "separator") {
704
- return /* @__PURE__ */ React5.createElement(DropdownMenuSeparator, { key: index });
715
+ return /* @__PURE__ */ React6.createElement(DropdownMenuSeparator, { key: index });
705
716
  } else if (item.itemType === "label") {
706
- return /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { key: index }, item.label);
717
+ return /* @__PURE__ */ React6.createElement(DropdownMenuLabel, { key: index }, item.label);
707
718
  } else if (item.itemType === "radio") {
708
719
  let dd = item.currentOption;
709
- return /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(
720
+ return /* @__PURE__ */ React6.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React6.createElement(
710
721
  DropdownMenuSubTrigger,
711
722
  {
712
723
  dir: direction,
@@ -714,7 +725,7 @@ var DropdownMenu = ({
714
725
  },
715
726
  item.icon && item.icon,
716
727
  item.label && item.label
717
- ), /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React5.createElement(
728
+ ), /* @__PURE__ */ React6.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React6.createElement(
718
729
  DropdownMenuRadioGroup,
719
730
  {
720
731
  value: values[index],
@@ -728,12 +739,12 @@ var DropdownMenu = ({
728
739
  }
729
740
  }
730
741
  },
731
- (_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React5.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
742
+ (_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React6.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
732
743
  )));
733
744
  } else if (item.itemType === "custom") {
734
- return /* @__PURE__ */ React5.createElement("div", { key: index }, item.content);
745
+ return /* @__PURE__ */ React6.createElement("div", { key: index }, item.content);
735
746
  } else {
736
- return item.subitems ? /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(
747
+ return item.subitems ? /* @__PURE__ */ React6.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React6.createElement(
737
748
  DropdownMenuSubTrigger,
738
749
  {
739
750
  dir: direction,
@@ -741,9 +752,9 @@ var DropdownMenu = ({
741
752
  },
742
753
  item.icon && item.icon,
743
754
  item.label && item.label
744
- ), /* @__PURE__ */ React5.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
755
+ ), /* @__PURE__ */ React6.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React6.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
745
756
  const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
746
- return /* @__PURE__ */ React5.createElement(
757
+ return /* @__PURE__ */ React6.createElement(
747
758
  DropdownMenuItem,
748
759
  {
749
760
  key: subIndex,
@@ -772,7 +783,7 @@ var DropdownMenu = ({
772
783
  subitem.icon && subitem.icon,
773
784
  subitem.label && subitem.label
774
785
  );
775
- })))) : /* @__PURE__ */ React5.createElement(
786
+ })))) : /* @__PURE__ */ React6.createElement(
776
787
  DropdownMenuItem,
777
788
  {
778
789
  LinkComponent: ItemLinkComponent,
@@ -929,7 +940,7 @@ var Input = (0, import_react4.forwardRef)(
929
940
  )
930
941
  },
931
942
  props.outsidePrefix
932
- ), props.isLoading ? /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react4.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react4.default.createElement(
943
+ ), props.isLoading ? /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react4.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react4.default.createElement(
933
944
  "div",
934
945
  {
935
946
  className: cn(
@@ -1011,8 +1022,8 @@ var Input = (0, import_react4.forwardRef)(
1011
1022
  );
1012
1023
 
1013
1024
  // elements/table/Table.tsx
1014
- var React8 = __toESM(require("react"));
1015
- var Table = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React8.createElement(
1025
+ var React9 = __toESM(require("react"));
1026
+ 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(
1016
1027
  "table",
1017
1028
  {
1018
1029
  ref,
@@ -1020,7 +1031,7 @@ var Table = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
1020
1031
  ...props
1021
1032
  }
1022
1033
  )));
1023
- var TableHeader = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
1034
+ var TableHeader = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1024
1035
  "thead",
1025
1036
  {
1026
1037
  ref,
@@ -1028,8 +1039,8 @@ var TableHeader = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE
1028
1039
  ...props
1029
1040
  }
1030
1041
  ));
1031
- var TableHead = React8.forwardRef(
1032
- ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React8.createElement(
1042
+ var TableHead = React9.forwardRef(
1043
+ ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1033
1044
  "th",
1034
1045
  {
1035
1046
  ref,
@@ -1047,8 +1058,8 @@ var TableHead = React8.forwardRef(
1047
1058
  }
1048
1059
  )
1049
1060
  );
1050
- var TableBody = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
1051
- var TableFooter = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
1061
+ var TableBody = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
1062
+ var TableFooter = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1052
1063
  "tfoot",
1053
1064
  {
1054
1065
  ref,
@@ -1059,7 +1070,7 @@ var TableFooter = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE
1059
1070
  ...props
1060
1071
  }
1061
1072
  ));
1062
- var TableRow = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
1073
+ var TableRow = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1063
1074
  "tr",
1064
1075
  {
1065
1076
  ref,
@@ -1072,14 +1083,14 @@ var TableRow = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1072
1083
  ...props
1073
1084
  }
1074
1085
  ));
1075
- var TableCell = React8.forwardRef(
1086
+ var TableCell = React9.forwardRef(
1076
1087
  ({ className, enablePadding = true, padding = "default", ...props }, ref) => {
1077
1088
  let paddingStyles = {
1078
1089
  condensed: "hawa-p-0 hawa-px-4",
1079
1090
  default: "hawa-p-4",
1080
1091
  noPadding: "hawa-p-0"
1081
1092
  };
1082
- return /* @__PURE__ */ React8.createElement(
1093
+ return /* @__PURE__ */ React9.createElement(
1083
1094
  "td",
1084
1095
  {
1085
1096
  ref,
@@ -1100,7 +1111,7 @@ var TableCell = React8.forwardRef(
1100
1111
  );
1101
1112
  }
1102
1113
  );
1103
- var TableCaption = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
1114
+ var TableCaption = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
1104
1115
  "caption",
1105
1116
  {
1106
1117
  ref,
@@ -1132,16 +1143,16 @@ var DataTable = ({
1132
1143
  ...props
1133
1144
  }) => {
1134
1145
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
1135
- const [sorting, setSorting] = React9.useState(
1146
+ const [sorting, setSorting] = React10.useState(
1136
1147
  props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
1137
1148
  );
1138
- const [columnFilters, setColumnFilters] = React9.useState(
1149
+ const [columnFilters, setColumnFilters] = React10.useState(
1139
1150
  []
1140
1151
  );
1141
- const [globalFilter, setGlobalFilter] = React9.useState("");
1142
- const [expanded, setExpanded] = React9.useState({});
1143
- const [columnVisibility, setColumnVisibility] = React9.useState({});
1144
- const [rowSelection, setRowSelection] = React9.useState({});
1152
+ const [globalFilter, setGlobalFilter] = React10.useState("");
1153
+ const [expanded, setExpanded] = React10.useState({});
1154
+ const [columnVisibility, setColumnVisibility] = React10.useState({});
1155
+ const [rowSelection, setRowSelection] = React10.useState({});
1145
1156
  const table = (0, import_react_table.useReactTable)({
1146
1157
  data,
1147
1158
  columns,
@@ -1170,7 +1181,7 @@ var DataTable = ({
1170
1181
  label: `${item} / ${pageText}`,
1171
1182
  value: item
1172
1183
  }));
1173
- React9.useEffect(() => {
1184
+ React10.useEffect(() => {
1174
1185
  setColumnVisibility((prev) => {
1175
1186
  let newColumnVisibility = {};
1176
1187
  columns.forEach((column) => {
@@ -1180,24 +1191,52 @@ var DataTable = ({
1180
1191
  return newColumnVisibility;
1181
1192
  });
1182
1193
  }, [columns]);
1183
- return /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, (enableSearch || enableHideColumns) && /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-4" }, enableSearch && /* @__PURE__ */ React9.createElement(
1194
+ 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(
1184
1195
  Input,
1185
1196
  {
1197
+ inputProps: { title: "" },
1186
1198
  forceHideHelperText: true,
1187
1199
  placeholder: (_c = props.texts) == null ? void 0 : _c.searchPlaceholder,
1188
1200
  value: globalFilter != null ? globalFilter : "",
1189
1201
  onChange: (event) => setGlobalFilter(event.target.value),
1190
1202
  margin: "none",
1191
- className: "hawa-w-full md:hawa-max-w-sm"
1203
+ className: "hawa-w-full md:hawa-max-w-sm",
1204
+ endIconProps: { className: "!hawa-end-2" },
1205
+ endIcon: globalFilter ? /* @__PURE__ */ React10.createElement(
1206
+ Button,
1207
+ {
1208
+ onClick: () => setGlobalFilter(""),
1209
+ variant: "ghost",
1210
+ size: "smallIcon",
1211
+ "aria-label": "Clear Search"
1212
+ },
1213
+ /* @__PURE__ */ React10.createElement(
1214
+ "svg",
1215
+ {
1216
+ xmlns: "http://www.w3.org/2000/svg",
1217
+ width: "16",
1218
+ height: "16",
1219
+ viewBox: "0 0 24 24",
1220
+ fill: "none",
1221
+ stroke: "currentColor",
1222
+ strokeWidth: "2",
1223
+ strokeLinecap: "round",
1224
+ strokeLinejoin: "round",
1225
+ className: "hawa-icon hawa-text-muted-foreground"
1226
+ },
1227
+ /* @__PURE__ */ React10.createElement("path", { d: "M18 6 6 18" }),
1228
+ /* @__PURE__ */ React10.createElement("path", { d: "m6 6 12 12" })
1229
+ )
1230
+ ) : null
1192
1231
  }
1193
- ), enableHideColumns && /* @__PURE__ */ React9.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React9.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React9.createElement(
1232
+ ), enableHideColumns && /* @__PURE__ */ React10.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React10.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React10.createElement(
1194
1233
  Button,
1195
1234
  {
1196
1235
  variant: "outline",
1197
1236
  className: "hawa-flex hawa-flex-row hawa-gap-2"
1198
1237
  },
1199
1238
  ((_d = props.texts) == null ? void 0 : _d.columns) || "Columns",
1200
- /* @__PURE__ */ React9.createElement(
1239
+ /* @__PURE__ */ React10.createElement(
1201
1240
  "svg",
1202
1241
  {
1203
1242
  "aria-label": "Chevron Down Icon",
@@ -1212,16 +1251,16 @@ var DataTable = ({
1212
1251
  strokeLinejoin: "round",
1213
1252
  className: "hawa-icon hawa-rotate-90"
1214
1253
  },
1215
- /* @__PURE__ */ React9.createElement("path", { d: "m9 18 6-6-6-6" })
1254
+ /* @__PURE__ */ React10.createElement("path", { d: "m9 18 6-6-6-6" })
1216
1255
  )
1217
- )), /* @__PURE__ */ React9.createElement(
1256
+ )), /* @__PURE__ */ React10.createElement(
1218
1257
  DropdownMenuContent,
1219
1258
  {
1220
1259
  align: props.direction === "rtl" ? "start" : "end"
1221
1260
  },
1222
1261
  table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
1223
1262
  var _a2, _b2;
1224
- return /* @__PURE__ */ React9.createElement(
1263
+ return /* @__PURE__ */ React10.createElement(
1225
1264
  DropdownMenuCheckboxItem,
1226
1265
  {
1227
1266
  key: column.id,
@@ -1233,7 +1272,7 @@ var DataTable = ({
1233
1272
  ) : column.id
1234
1273
  );
1235
1274
  })
1236
- ))), props.isLoading ? /* @__PURE__ */ React9.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React9.createElement(
1275
+ ))), props.isLoading ? /* @__PURE__ */ React10.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React10.createElement(
1237
1276
  "div",
1238
1277
  {
1239
1278
  className: cn(
@@ -1241,10 +1280,10 @@ var DataTable = ({
1241
1280
  paginationPosition === "top" ? "hawa-flex-col-reverse" : "hawa-flex-col"
1242
1281
  )
1243
1282
  },
1244
- /* @__PURE__ */ React9.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React9.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React9.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React9.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
1283
+ /* @__PURE__ */ React10.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React10.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React10.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React10.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
1245
1284
  var _a2;
1246
1285
  let isSortable = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.sortable;
1247
- return /* @__PURE__ */ React9.createElement(
1286
+ return /* @__PURE__ */ React10.createElement(
1248
1287
  TableHead,
1249
1288
  {
1250
1289
  dir: props.direction,
@@ -1260,7 +1299,7 @@ var DataTable = ({
1260
1299
  header.getContext()
1261
1300
  )
1262
1301
  );
1263
- })))), /* @__PURE__ */ React9.createElement(TableBody, null, ((_e = table.getRowModel().rows) == null ? void 0 : _e.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React9.createElement(
1302
+ })))), /* @__PURE__ */ React10.createElement(TableBody, null, ((_e = table.getRowModel().rows) == null ? void 0 : _e.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React10.createElement(
1264
1303
  TableRow,
1265
1304
  {
1266
1305
  key: row.id,
@@ -1268,7 +1307,7 @@ var DataTable = ({
1268
1307
  },
1269
1308
  row.getVisibleCells().map((cell) => {
1270
1309
  var _a2;
1271
- return /* @__PURE__ */ React9.createElement(
1310
+ return /* @__PURE__ */ React10.createElement(
1272
1311
  TableCell,
1273
1312
  {
1274
1313
  style: {
@@ -1284,7 +1323,7 @@ var DataTable = ({
1284
1323
  )
1285
1324
  );
1286
1325
  })
1287
- )) : /* @__PURE__ */ React9.createElement(TableRow, null, /* @__PURE__ */ React9.createElement(
1326
+ )) : /* @__PURE__ */ React10.createElement(TableRow, null, /* @__PURE__ */ React10.createElement(
1288
1327
  TableCell,
1289
1328
  {
1290
1329
  colSpan: columns.length,
@@ -1292,16 +1331,16 @@ var DataTable = ({
1292
1331
  },
1293
1332
  (_f = props.texts) == null ? void 0 : _f.noData
1294
1333
  ))))),
1295
- /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between" }, !props.showCount && /* @__PURE__ */ React9.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__ */ React9.createElement(
1334
+ /* @__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(
1296
1335
  "div",
1297
1336
  {
1298
1337
  className: "text-muted-foreground text-sm",
1299
1338
  dir: props.direction
1300
1339
  },
1301
- /* @__PURE__ */ React9.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
1340
+ /* @__PURE__ */ React10.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
1302
1341
  " ",
1303
- /* @__PURE__ */ React9.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
1304
- ), /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React9.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React9.createElement(
1342
+ /* @__PURE__ */ React10.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
1343
+ ), /* @__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(
1305
1344
  "input",
1306
1345
  {
1307
1346
  max: table.getPageCount(),
@@ -1318,7 +1357,7 @@ var DataTable = ({
1318
1357
  },
1319
1358
  className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm"
1320
1359
  }
1321
- )), /* @__PURE__ */ React9.createElement(
1360
+ )), /* @__PURE__ */ React10.createElement(
1322
1361
  DropdownMenu,
1323
1362
  {
1324
1363
  size: "sm",
@@ -1331,7 +1370,7 @@ var DataTable = ({
1331
1370
  { label: `40 / ${pageText}`, value: 40 },
1332
1371
  { label: `50 / ${pageText}`, value: 50 }
1333
1372
  ],
1334
- trigger: /* @__PURE__ */ React9.createElement(
1373
+ trigger: /* @__PURE__ */ React10.createElement(
1335
1374
  Button,
1336
1375
  {
1337
1376
  variant: "outline",
@@ -1342,7 +1381,7 @@ var DataTable = ({
1342
1381
  ),
1343
1382
  onItemSelect: (e) => table.setPageSize(Number(e))
1344
1383
  }
1345
- ), table.getPageCount() > 1 && /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React9.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React9.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React9.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React9.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React9.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React9.createElement(
1384
+ ), 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(
1346
1385
  Button,
1347
1386
  {
1348
1387
  "aria-label": "Next Table Page",
@@ -1354,7 +1393,7 @@ var DataTable = ({
1354
1393
  props.direction === "rtl" && "hawa-rotate-180"
1355
1394
  )
1356
1395
  },
1357
- /* @__PURE__ */ React9.createElement(
1396
+ /* @__PURE__ */ React10.createElement(
1358
1397
  "svg",
1359
1398
  {
1360
1399
  xmlns: "http://www.w3.org/2000/svg",
@@ -1367,10 +1406,10 @@ var DataTable = ({
1367
1406
  strokeLinecap: "round",
1368
1407
  strokeLinejoin: "round"
1369
1408
  },
1370
- /* @__PURE__ */ React9.createElement("path", { d: "m11 17-5-5 5-5" }),
1371
- /* @__PURE__ */ React9.createElement("path", { d: "m18 17-5-5 5-5" })
1409
+ /* @__PURE__ */ React10.createElement("path", { d: "m11 17-5-5 5-5" }),
1410
+ /* @__PURE__ */ React10.createElement("path", { d: "m18 17-5-5 5-5" })
1372
1411
  )
1373
- ), /* @__PURE__ */ React9.createElement(
1412
+ ), /* @__PURE__ */ React10.createElement(
1374
1413
  Button,
1375
1414
  {
1376
1415
  "aria-label": "Previous Table Page",
@@ -1382,7 +1421,7 @@ var DataTable = ({
1382
1421
  props.direction === "rtl" && "hawa-rotate-180"
1383
1422
  )
1384
1423
  },
1385
- /* @__PURE__ */ React9.createElement(
1424
+ /* @__PURE__ */ React10.createElement(
1386
1425
  "svg",
1387
1426
  {
1388
1427
  xmlns: "http://www.w3.org/2000/svg",
@@ -1396,9 +1435,9 @@ var DataTable = ({
1396
1435
  strokeLinecap: "round",
1397
1436
  strokeLinejoin: "round"
1398
1437
  },
1399
- /* @__PURE__ */ React9.createElement("path", { d: "m15 18-6-6 6-6" })
1438
+ /* @__PURE__ */ React10.createElement("path", { d: "m15 18-6-6 6-6" })
1400
1439
  )
1401
- ), /* @__PURE__ */ React9.createElement(
1440
+ ), /* @__PURE__ */ React10.createElement(
1402
1441
  Button,
1403
1442
  {
1404
1443
  "aria-label": "Next Table Page",
@@ -1410,7 +1449,7 @@ var DataTable = ({
1410
1449
  props.direction === "ltr" && "hawa-rotate-180"
1411
1450
  )
1412
1451
  },
1413
- /* @__PURE__ */ React9.createElement(
1452
+ /* @__PURE__ */ React10.createElement(
1414
1453
  "svg",
1415
1454
  {
1416
1455
  xmlns: "http://www.w3.org/2000/svg",
@@ -1424,9 +1463,9 @@ var DataTable = ({
1424
1463
  strokeLinecap: "round",
1425
1464
  strokeLinejoin: "round"
1426
1465
  },
1427
- /* @__PURE__ */ React9.createElement("path", { d: "m15 18-6-6 6-6" })
1466
+ /* @__PURE__ */ React10.createElement("path", { d: "m15 18-6-6 6-6" })
1428
1467
  )
1429
- ), /* @__PURE__ */ React9.createElement(
1468
+ ), /* @__PURE__ */ React10.createElement(
1430
1469
  Button,
1431
1470
  {
1432
1471
  "aria-label": "Next Table Page",
@@ -1438,7 +1477,7 @@ var DataTable = ({
1438
1477
  props.direction === "ltr" && "hawa-rotate-180"
1439
1478
  )
1440
1479
  },
1441
- /* @__PURE__ */ React9.createElement(
1480
+ /* @__PURE__ */ React10.createElement(
1442
1481
  "svg",
1443
1482
  {
1444
1483
  xmlns: "http://www.w3.org/2000/svg",
@@ -1451,8 +1490,8 @@ var DataTable = ({
1451
1490
  strokeLinecap: "round",
1452
1491
  strokeLinejoin: "round"
1453
1492
  },
1454
- /* @__PURE__ */ React9.createElement("path", { d: "m11 17-5-5 5-5" }),
1455
- /* @__PURE__ */ React9.createElement("path", { d: "m18 17-5-5 5-5" })
1493
+ /* @__PURE__ */ React10.createElement("path", { d: "m11 17-5-5 5-5" }),
1494
+ /* @__PURE__ */ React10.createElement("path", { d: "m18 17-5-5 5-5" })
1456
1495
  )
1457
1496
  ))))
1458
1497
  ));