@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
@@ -1508,6 +1508,91 @@ var Logos = {
1508
1508
  },
1509
1509
  /* @__PURE__ */ import_react6.default.createElement("path", { d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z" })
1510
1510
  ),
1511
+ telegram: (props) => /* @__PURE__ */ import_react6.default.createElement(
1512
+ "svg",
1513
+ {
1514
+ role: "img",
1515
+ viewBox: "0 0 24 24",
1516
+ xmlns: "http://www.w3.org/2000/svg",
1517
+ ...props
1518
+ },
1519
+ /* @__PURE__ */ import_react6.default.createElement("title", null, "Telegram"),
1520
+ /* @__PURE__ */ import_react6.default.createElement(
1521
+ "path",
1522
+ {
1523
+ fill: "currentColor",
1524
+ d: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
1525
+ }
1526
+ )
1527
+ ),
1528
+ youtube: (props) => /* @__PURE__ */ import_react6.default.createElement(
1529
+ "svg",
1530
+ {
1531
+ role: "img",
1532
+ viewBox: "0 0 24 24",
1533
+ xmlns: "http://www.w3.org/2000/svg",
1534
+ ...props
1535
+ },
1536
+ /* @__PURE__ */ import_react6.default.createElement("title", null, "YouTube"),
1537
+ /* @__PURE__ */ import_react6.default.createElement(
1538
+ "path",
1539
+ {
1540
+ fill: "currentColor",
1541
+ d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
1542
+ }
1543
+ )
1544
+ ),
1545
+ tiktok: (props) => /* @__PURE__ */ import_react6.default.createElement(
1546
+ "svg",
1547
+ {
1548
+ role: "img",
1549
+ viewBox: "0 0 24 24",
1550
+ xmlns: "http://www.w3.org/2000/svg",
1551
+ ...props
1552
+ },
1553
+ /* @__PURE__ */ import_react6.default.createElement("title", null, "TikTok"),
1554
+ /* @__PURE__ */ import_react6.default.createElement(
1555
+ "path",
1556
+ {
1557
+ fill: "currentColor",
1558
+ d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
1559
+ }
1560
+ )
1561
+ ),
1562
+ linkedin: (props) => /* @__PURE__ */ import_react6.default.createElement(
1563
+ "svg",
1564
+ {
1565
+ role: "img",
1566
+ viewBox: "0 0 24 24",
1567
+ xmlns: "http://www.w3.org/2000/svg",
1568
+ ...props
1569
+ },
1570
+ /* @__PURE__ */ import_react6.default.createElement("title", null, "LinkedIn"),
1571
+ /* @__PURE__ */ import_react6.default.createElement(
1572
+ "path",
1573
+ {
1574
+ fill: "currentColor",
1575
+ d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
1576
+ }
1577
+ )
1578
+ ),
1579
+ behance: (props) => /* @__PURE__ */ import_react6.default.createElement(
1580
+ "svg",
1581
+ {
1582
+ role: "img",
1583
+ viewBox: "0 0 24 24",
1584
+ xmlns: "http://www.w3.org/2000/svg",
1585
+ ...props
1586
+ },
1587
+ /* @__PURE__ */ import_react6.default.createElement("title", null, "Behance"),
1588
+ /* @__PURE__ */ import_react6.default.createElement(
1589
+ "path",
1590
+ {
1591
+ fill: "currentColor",
1592
+ d: "M16.969 16.927a2.561 2.561 0 0 0 1.901.677 2.501 2.501 0 0 0 1.531-.475c.362-.235.636-.584.779-.99h2.585a5.091 5.091 0 0 1-1.9 2.896 5.292 5.292 0 0 1-3.091.88 5.839 5.839 0 0 1-2.284-.433 4.871 4.871 0 0 1-1.723-1.211 5.657 5.657 0 0 1-1.08-1.874 7.057 7.057 0 0 1-.383-2.393c-.005-.8.129-1.595.396-2.349a5.313 5.313 0 0 1 5.088-3.604 4.87 4.87 0 0 1 2.376.563c.661.362 1.231.87 1.668 1.485a6.2 6.2 0 0 1 .943 2.133c.194.821.263 1.666.205 2.508h-7.699c-.063.79.184 1.574.688 2.187ZM6.947 4.084a8.065 8.065 0 0 1 1.928.198 4.29 4.29 0 0 1 1.49.638c.418.303.748.711.958 1.182.241.579.357 1.203.341 1.83a3.506 3.506 0 0 1-.506 1.961 3.726 3.726 0 0 1-1.503 1.287 3.588 3.588 0 0 1 2.027 1.437c.464.747.697 1.615.67 2.494a4.593 4.593 0 0 1-.423 2.032 3.945 3.945 0 0 1-1.163 1.413 5.114 5.114 0 0 1-1.683.807 7.135 7.135 0 0 1-1.928.259H0V4.084h6.947Zm-.235 12.9c.308.004.616-.029.916-.099a2.18 2.18 0 0 0 .766-.332c.228-.158.411-.371.534-.619.142-.317.208-.663.191-1.009a2.08 2.08 0 0 0-.642-1.715 2.618 2.618 0 0 0-1.696-.505h-3.54v4.279h3.471Zm13.635-5.967a2.13 2.13 0 0 0-1.654-.619 2.336 2.336 0 0 0-1.163.259 2.474 2.474 0 0 0-.738.62 2.359 2.359 0 0 0-.396.792c-.074.239-.12.485-.137.734h4.769a3.239 3.239 0 0 0-.679-1.785l-.002-.001Zm-13.813-.648a2.254 2.254 0 0 0 1.423-.433c.399-.355.607-.88.56-1.413a1.916 1.916 0 0 0-.178-.891 1.298 1.298 0 0 0-.495-.533 1.851 1.851 0 0 0-.711-.274 3.966 3.966 0 0 0-.835-.073H3.241v3.631h3.293v-.014ZM21.62 5.122h-5.976v1.527h5.976V5.122Z"
1593
+ }
1594
+ )
1595
+ ),
1511
1596
  microsoft: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ import_react6.default.createElement(
1512
1597
  "path",
1513
1598
  {
@@ -2720,9 +2805,145 @@ var Avatar = ({
2720
2805
  };
2721
2806
 
2722
2807
  // elements/dataTable/DataTable.tsx
2723
- var React23 = __toESM(require("react"));
2808
+ var React24 = __toESM(require("react"));
2724
2809
  var import_react_table = require("@tanstack/react-table");
2725
2810
 
2811
+ // elements/checkbox/Checkbox.tsx
2812
+ var React21 = __toESM(require("react"));
2813
+ var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
2814
+ var Checkbox = ({
2815
+ id,
2816
+ label,
2817
+ sublabel,
2818
+ helperText,
2819
+ disabled,
2820
+ size = "default",
2821
+ radius = "inherit",
2822
+ ...props
2823
+ }) => {
2824
+ let labelLineHeightStyles = {
2825
+ xs: sublabel || helperText ? 0.5 : 0.1,
2826
+ sm: 0.6,
2827
+ default: 1,
2828
+ md: 0.8,
2829
+ lg: 0.9,
2830
+ xl: 1
2831
+ };
2832
+ return /* @__PURE__ */ React21.createElement(
2833
+ "div",
2834
+ {
2835
+ className: cn(
2836
+ "hawa-flex hawa-gap-2",
2837
+ size === "default" ? "hawa-items-top" : "hawa-items-center"
2838
+ )
2839
+ },
2840
+ /* @__PURE__ */ React21.createElement(
2841
+ CheckboxElement,
2842
+ {
2843
+ ...props,
2844
+ size,
2845
+ radius,
2846
+ disabled,
2847
+ id
2848
+ }
2849
+ ),
2850
+ (label || helperText) && /* @__PURE__ */ React21.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React21.createElement(
2851
+ "label",
2852
+ {
2853
+ htmlFor: id,
2854
+ className: cn(
2855
+ "hawa-w-fit hawa-select-none hawa-pt-0.5 hawa-text-sm hawa-font-medium",
2856
+ disabled ? "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70" : "hawa-cursor-pointer"
2857
+ ),
2858
+ style: {
2859
+ // lineHeight: labelLineHeightStyles[size]
2860
+ lineHeight: 1
2861
+ }
2862
+ },
2863
+ label
2864
+ ), sublabel && /* @__PURE__ */ React21.createElement(
2865
+ "label",
2866
+ {
2867
+ htmlFor: id,
2868
+ className: cn(
2869
+ "hawa-w-fit hawa-select-none hawa-text-sm hawa-text-muted-foreground",
2870
+ disabled ? "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70" : "hawa-cursor-pointer"
2871
+ )
2872
+ },
2873
+ sublabel
2874
+ ), helperText && !disabled && /* @__PURE__ */ React21.createElement(
2875
+ "label",
2876
+ {
2877
+ htmlFor: id,
2878
+ className: cn(
2879
+ "hawa-w-fit hawa-select-none hawa-text-xs hawa-text-helper-color",
2880
+ disabled && "hawa-cursor-not-allowed hawa-opacity-70"
2881
+ )
2882
+ },
2883
+ helperText
2884
+ ))
2885
+ );
2886
+ };
2887
+ var CheckboxElement = React21.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
2888
+ let checkboxRadius = {
2889
+ none: "hawa-rounded-none",
2890
+ inherit: "hawa-rounded-sm",
2891
+ full: "hawa-rounded-full"
2892
+ };
2893
+ let checkboxSizes = {
2894
+ xs: "hawa-w-3 hawa-h-3",
2895
+ sm: "hawa-w-6 hawa-h-6",
2896
+ default: "hawa-icon",
2897
+ md: "hawa-w-8 hawa-h-8",
2898
+ lg: "hawa-w-10 hawa-h-10",
2899
+ xl: "hawa-w-12 hawa-h-12"
2900
+ };
2901
+ let checkboxIndicatorSizes = {
2902
+ xs: "0.5em",
2903
+ default: "0.60em",
2904
+ sm: "0.75em",
2905
+ md: "0.875em",
2906
+ lg: "1em",
2907
+ xl: "1.25em"
2908
+ };
2909
+ return /* @__PURE__ */ React21.createElement(
2910
+ CheckboxPrimitive.Root,
2911
+ {
2912
+ ref,
2913
+ className: cn(
2914
+ "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",
2915
+ checkboxSizes[size],
2916
+ checkboxRadius[radius],
2917
+ className
2918
+ ),
2919
+ ...props
2920
+ },
2921
+ /* @__PURE__ */ React21.createElement(
2922
+ CheckboxPrimitive.Indicator,
2923
+ {
2924
+ className: cn(
2925
+ "hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
2926
+ )
2927
+ },
2928
+ /* @__PURE__ */ React21.createElement(
2929
+ "svg",
2930
+ {
2931
+ "aria-label": "Check Mark",
2932
+ stroke: "currentColor",
2933
+ fill: "currentColor",
2934
+ strokeWidth: "0",
2935
+ viewBox: "0 0 512 512",
2936
+ height: checkboxIndicatorSizes[size],
2937
+ width: checkboxIndicatorSizes[size]
2938
+ },
2939
+ /* @__PURE__ */ React21.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" })
2940
+ ),
2941
+ " "
2942
+ )
2943
+ );
2944
+ });
2945
+ CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
2946
+
2726
2947
  // elements/input/Input.tsx
2727
2948
  var import_react11 = __toESM(require("react"));
2728
2949
  var Input = (0, import_react11.forwardRef)(
@@ -2887,8 +3108,8 @@ var Input = (0, import_react11.forwardRef)(
2887
3108
  );
2888
3109
 
2889
3110
  // elements/table/Table.tsx
2890
- var React22 = __toESM(require("react"));
2891
- var Table = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React22.createElement(
3111
+ var React23 = __toESM(require("react"));
3112
+ var Table = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React23.createElement(
2892
3113
  "table",
2893
3114
  {
2894
3115
  ref,
@@ -2896,7 +3117,7 @@ var Table = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
2896
3117
  ...props
2897
3118
  }
2898
3119
  )));
2899
- var TableHeader = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
3120
+ var TableHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
2900
3121
  "thead",
2901
3122
  {
2902
3123
  ref,
@@ -2904,18 +3125,18 @@ var TableHeader = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
2904
3125
  ...props
2905
3126
  }
2906
3127
  ));
2907
- var TableHead = React22.forwardRef(
2908
- ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React22.createElement(
3128
+ var TableHead = React23.forwardRef(
3129
+ ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React23.createElement(
2909
3130
  "th",
2910
3131
  {
2911
3132
  ref,
2912
3133
  className: cn(
2913
- "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",
3134
+ "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",
2914
3135
  dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
2915
3136
  condensed ? "hawa-h-8" : "hawa-h-12",
2916
3137
  clickable ? "hawa-px-1" : "hawa-px-4",
2917
3138
  //First and last columns
2918
- clickable ? " [&:not(:last-child)&:not(:first-child)]:hawa-p-1" : "hawa-px-4",
3139
+ clickable ? "[&:not(:last-child)&:not(:first-child)]:hawa-p-1" : "hawa-px-4",
2919
3140
  //Columns in between
2920
3141
  className
2921
3142
  ),
@@ -2923,8 +3144,8 @@ var TableHead = React22.forwardRef(
2923
3144
  }
2924
3145
  )
2925
3146
  );
2926
- var TableBody = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
2927
- var TableFooter = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
3147
+ var TableBody = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
3148
+ var TableFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
2928
3149
  "tfoot",
2929
3150
  {
2930
3151
  ref,
@@ -2935,7 +3156,7 @@ var TableFooter = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
2935
3156
  ...props
2936
3157
  }
2937
3158
  ));
2938
- var TableRow = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
3159
+ var TableRow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
2939
3160
  "tr",
2940
3161
  {
2941
3162
  ref,
@@ -2948,14 +3169,14 @@ var TableRow = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__
2948
3169
  ...props
2949
3170
  }
2950
3171
  ));
2951
- var TableCell = React22.forwardRef(
3172
+ var TableCell = React23.forwardRef(
2952
3173
  ({ className, enablePadding = true, padding = "default", ...props }, ref) => {
2953
3174
  let paddingStyles = {
2954
3175
  condensed: "hawa-p-0 hawa-px-4",
2955
3176
  default: "hawa-p-4",
2956
3177
  noPadding: "hawa-p-0"
2957
3178
  };
2958
- return /* @__PURE__ */ React22.createElement(
3179
+ return /* @__PURE__ */ React23.createElement(
2959
3180
  "td",
2960
3181
  {
2961
3182
  ref,
@@ -2965,7 +3186,7 @@ var TableCell = React22.forwardRef(
2965
3186
  // enablePadding ? "hawa-p-4" : "hawa-p-0",
2966
3187
  // props.disablePadding ? "hawa-p-0" : "hawa-p-4",
2967
3188
  // props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4",
2968
- "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ",
3189
+ "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0",
2969
3190
  "[&:not(:last-child)&:not(:first-child)]:hawa-border-x",
2970
3191
  // "[&:not(:last-child)]:hawa-border-r",
2971
3192
  props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
@@ -2976,7 +3197,7 @@ var TableCell = React22.forwardRef(
2976
3197
  );
2977
3198
  }
2978
3199
  );
2979
- var TableCaption = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
3200
+ var TableCaption = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
2980
3201
  "caption",
2981
3202
  {
2982
3203
  ref,
@@ -3004,27 +3225,61 @@ var DataTable = ({
3004
3225
  paginationPosition = "bottom",
3005
3226
  translateFn,
3006
3227
  enableHideColumns,
3228
+ enableSelection,
3007
3229
  enableSearch,
3008
3230
  enableGoTo,
3009
3231
  ...props
3010
3232
  }) => {
3011
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
3012
- const [sorting, setSorting] = React23.useState(
3233
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
3234
+ const [sorting, setSorting] = React24.useState(
3013
3235
  props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
3014
3236
  );
3015
- const [columnFilters, setColumnFilters] = React23.useState(
3237
+ const [columnFilters, setColumnFilters] = React24.useState(
3016
3238
  []
3017
3239
  );
3018
- const [globalFilter, setGlobalFilter] = React23.useState("");
3019
- const [expanded, setExpanded] = React23.useState({});
3020
- const [columnVisibility, setColumnVisibility] = React23.useState(() => {
3240
+ const [globalFilter, setGlobalFilter] = React24.useState("");
3241
+ const [expanded, setExpanded] = React24.useState({});
3242
+ const [columnVisibility, setColumnVisibility] = React24.useState(() => {
3021
3243
  const savedVisibility = localStorage.getItem(LOCAL_STORAGE_KEY);
3022
3244
  return savedVisibility ? JSON.parse(savedVisibility) : {};
3023
3245
  });
3024
- const [rowSelection, setRowSelection] = React23.useState({});
3246
+ const [rowSelection, setRowSelection] = React24.useState({});
3247
+ let mainColumns = enableSelection ? [
3248
+ {
3249
+ id: "select",
3250
+ maxSize: 16,
3251
+ minSize: 16,
3252
+ size: 16,
3253
+ header: ({ table: table2 }) => /* @__PURE__ */ React24.createElement(
3254
+ Checkbox,
3255
+ {
3256
+ dir: props.direction,
3257
+ id: "select_all",
3258
+ "aria-label": "Select all",
3259
+ className: props.direction === "rtl" ? "hawa-ms-4" : "hawa-me-0",
3260
+ checked: table2.getIsAllPageRowsSelected() || table2.getIsSomePageRowsSelected() && "indeterminate",
3261
+ onCheckedChange: (value) => table2.toggleAllPageRowsSelected(!!value)
3262
+ }
3263
+ ),
3264
+ cell: ({ row }) => /* @__PURE__ */ React24.createElement(
3265
+ Checkbox,
3266
+ {
3267
+ dir: props.direction,
3268
+ id: "select_row",
3269
+ className: props.direction === "rtl" ? "hawa-ms-4" : "hawa-me-4",
3270
+ checked: row.getIsSelected(),
3271
+ onCheckedChange: (value) => row.toggleSelected(!!value),
3272
+ "aria-label": "Select row"
3273
+ }
3274
+ ),
3275
+ enableSorting: false,
3276
+ enableHiding: false
3277
+ },
3278
+ ...columns
3279
+ ] : columns;
3025
3280
  const table = (0, import_react_table.useReactTable)({
3026
3281
  data,
3027
- columns,
3282
+ columns: mainColumns,
3028
3283
  onExpandedChange: setExpanded,
3029
3284
  getExpandedRowModel: (0, import_react_table.getExpandedRowModel)(),
3030
3285
  onGlobalFilterChange: setGlobalFilter,
@@ -3050,10 +3305,10 @@ var DataTable = ({
3050
3305
  label: `${item} / ${pageText}`,
3051
3306
  value: item
3052
3307
  }));
3053
- React23.useEffect(() => {
3308
+ React24.useEffect(() => {
3054
3309
  localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(columnVisibility));
3055
3310
  }, [columnVisibility]);
3056
- React23.useEffect(() => {
3311
+ React24.useEffect(() => {
3057
3312
  setColumnVisibility((prev) => {
3058
3313
  let newColumnVisibility = {};
3059
3314
  columns.forEach((column) => {
@@ -3068,7 +3323,7 @@ var DataTable = ({
3068
3323
  return newColumnVisibility;
3069
3324
  });
3070
3325
  }, [columns]);
3071
- return /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, (enableSearch || enableHideColumns) && /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-4" }, enableSearch && /* @__PURE__ */ React23.createElement(
3326
+ return /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, (enableSearch || enableHideColumns) && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-4" }, enableSearch && /* @__PURE__ */ React24.createElement(
3072
3327
  Input,
3073
3328
  {
3074
3329
  inputProps: { title: "" },
@@ -3079,7 +3334,7 @@ var DataTable = ({
3079
3334
  margin: "none",
3080
3335
  className: "hawa-w-full md:hawa-max-w-sm",
3081
3336
  endIconProps: { className: "!hawa-end-2" },
3082
- endIcon: globalFilter ? /* @__PURE__ */ React23.createElement(
3337
+ endIcon: globalFilter ? /* @__PURE__ */ React24.createElement(
3083
3338
  Button,
3084
3339
  {
3085
3340
  onClick: () => setGlobalFilter(""),
@@ -3087,7 +3342,7 @@ var DataTable = ({
3087
3342
  size: "smallIcon",
3088
3343
  "aria-label": "Clear Search"
3089
3344
  },
3090
- /* @__PURE__ */ React23.createElement(
3345
+ /* @__PURE__ */ React24.createElement(
3091
3346
  "svg",
3092
3347
  {
3093
3348
  xmlns: "http://www.w3.org/2000/svg",
@@ -3101,43 +3356,45 @@ var DataTable = ({
3101
3356
  strokeLinejoin: "round",
3102
3357
  className: "hawa-icon hawa-text-muted-foreground"
3103
3358
  },
3104
- /* @__PURE__ */ React23.createElement("path", { d: "M18 6 6 18" }),
3105
- /* @__PURE__ */ React23.createElement("path", { d: "m6 6 12 12" })
3359
+ /* @__PURE__ */ React24.createElement("path", { d: "M18 6 6 18" }),
3360
+ /* @__PURE__ */ React24.createElement("path", { d: "m6 6 12 12" })
3106
3361
  )
3107
3362
  ) : null
3108
3363
  }
3109
- ), enableHideColumns && /* @__PURE__ */ React23.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React23.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React23.createElement(
3364
+ ), enableHideColumns && /* @__PURE__ */ React24.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React24.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React24.createElement(
3110
3365
  Button,
3111
3366
  {
3112
3367
  variant: "outline",
3113
3368
  className: "hawa-flex hawa-flex-row hawa-gap-2"
3114
3369
  },
3115
3370
  ((_d = props.texts) == null ? void 0 : _d.columns) || "Columns",
3116
- /* @__PURE__ */ React23.createElement(
3371
+ /* @__PURE__ */ React24.createElement(
3117
3372
  "svg",
3118
3373
  {
3119
- "aria-label": "Chevron Down Icon",
3120
- xmlns: "http://www.w3.org/2000/svg",
3121
- width: "24",
3122
- height: "24",
3123
- viewBox: "0 0 24 24",
3374
+ width: "15",
3375
+ height: "15",
3376
+ viewBox: "0 0 15 15",
3124
3377
  fill: "none",
3125
- stroke: "currentColor",
3126
- strokeWidth: "2",
3127
- strokeLinecap: "round",
3128
- strokeLinejoin: "round",
3129
- className: "hawa-icon hawa-rotate-90"
3378
+ xmlns: "http://www.w3.org/2000/svg"
3130
3379
  },
3131
- /* @__PURE__ */ React23.createElement("path", { d: "m9 18 6-6-6-6" })
3380
+ /* @__PURE__ */ React24.createElement(
3381
+ "path",
3382
+ {
3383
+ 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",
3384
+ fill: "currentColor",
3385
+ "fill-rule": "evenodd",
3386
+ "clip-rule": "evenodd"
3387
+ }
3388
+ )
3132
3389
  )
3133
- )), /* @__PURE__ */ React23.createElement(
3390
+ )), /* @__PURE__ */ React24.createElement(
3134
3391
  DropdownMenuContent,
3135
3392
  {
3136
3393
  align: props.direction === "rtl" ? "start" : "end"
3137
3394
  },
3138
3395
  table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
3139
3396
  var _a2, _b2;
3140
- return /* @__PURE__ */ React23.createElement(
3397
+ return /* @__PURE__ */ React24.createElement(
3141
3398
  DropdownMenuCheckboxItem,
3142
3399
  {
3143
3400
  key: column.id,
@@ -3149,26 +3406,28 @@ var DataTable = ({
3149
3406
  ) : column.id
3150
3407
  );
3151
3408
  })
3152
- ))), props.isLoading ? /* @__PURE__ */ React23.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React23.createElement(
3409
+ ))), props.isLoading ? /* @__PURE__ */ React24.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React24.createElement(
3153
3410
  "div",
3154
3411
  {
3155
3412
  className: cn(
3156
- "hawa-flex hawa-w-full hawa-gap-4",
3413
+ "hawa-flex hawa-w-full hawa-gap-4",
3157
3414
  paginationPosition === "top" ? "hawa-flex-col-reverse" : "hawa-flex-col"
3158
3415
  )
3159
3416
  },
3160
- /* @__PURE__ */ React23.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React23.createElement(Table, null, !props.hideHeader && table.getAllColumns().length > 0 && /* @__PURE__ */ React23.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React23.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
3417
+ /* @__PURE__ */ React24.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React24.createElement(Table, null, !props.hideHeader && table.getAllColumns().length > 0 && /* @__PURE__ */ React24.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React24.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
3161
3418
  var _a2;
3162
3419
  let isSortable = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.sortable;
3163
- return /* @__PURE__ */ React23.createElement(
3420
+ return /* @__PURE__ */ React24.createElement(
3164
3421
  TableHead,
3165
3422
  {
3423
+ key: header.id,
3166
3424
  dir: props.direction,
3167
3425
  condensed: props.condensed,
3168
3426
  clickable: Boolean(isSortable),
3169
- key: header.id,
3170
3427
  style: {
3171
- maxWidth: header.column.columnDef.maxSize
3428
+ maxWidth: `${header.column.columnDef.maxSize}px !important`,
3429
+ minWidth: `${header.column.columnDef.minSize}px !important`,
3430
+ width: `${header.column.columnDef.size}px !important`
3172
3431
  }
3173
3432
  },
3174
3433
  header.isPlaceholder ? null : (0, import_react_table.flexRender)(
@@ -3176,7 +3435,7 @@ var DataTable = ({
3176
3435
  header.getContext()
3177
3436
  )
3178
3437
  );
3179
- })))), /* @__PURE__ */ React23.createElement(TableBody, null, ((_e = table.getRowModel().rows) == null ? void 0 : _e.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React23.createElement(
3438
+ })))), /* @__PURE__ */ React24.createElement(TableBody, null, ((_e = table.getRowModel().rows) == null ? void 0 : _e.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React24.createElement(
3180
3439
  TableRow,
3181
3440
  {
3182
3441
  key: row.id,
@@ -3184,15 +3443,17 @@ var DataTable = ({
3184
3443
  },
3185
3444
  row.getVisibleCells().map((cell) => {
3186
3445
  var _a2;
3187
- return /* @__PURE__ */ React23.createElement(
3446
+ return /* @__PURE__ */ React24.createElement(
3188
3447
  TableCell,
3189
3448
  {
3449
+ key: cell.id,
3450
+ dir: props.direction,
3190
3451
  style: {
3191
- maxWidth: cell.column.columnDef.maxSize
3452
+ maxWidth: `${cell.column.columnDef.maxSize}px !important`,
3453
+ minWidth: `${cell.column.columnDef.minSize}px !important`,
3454
+ width: `${cell.column.columnDef.size}px !important`
3192
3455
  },
3193
- dir: props.direction,
3194
- padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding,
3195
- key: cell.id
3456
+ padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding
3196
3457
  },
3197
3458
  (0, import_react_table.flexRender)(
3198
3459
  cell.column.columnDef.cell,
@@ -3200,7 +3461,7 @@ var DataTable = ({
3200
3461
  )
3201
3462
  );
3202
3463
  })
3203
- )) : /* @__PURE__ */ React23.createElement(TableRow, null, /* @__PURE__ */ React23.createElement(
3464
+ )) : /* @__PURE__ */ React24.createElement(TableRow, null, /* @__PURE__ */ React24.createElement(
3204
3465
  TableCell,
3205
3466
  {
3206
3467
  colSpan: columns.length,
@@ -3208,169 +3469,207 @@ var DataTable = ({
3208
3469
  },
3209
3470
  (_f = props.texts) == null ? void 0 : _f.noData
3210
3471
  ))))),
3211
- /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between" }, !props.showCount && /* @__PURE__ */ React23.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__ */ React23.createElement(
3472
+ /* @__PURE__ */ React24.createElement(
3212
3473
  "div",
3213
3474
  {
3214
- className: "text-muted-foreground text-sm",
3215
- dir: props.direction
3216
- },
3217
- /* @__PURE__ */ React23.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
3218
- " ",
3219
- /* @__PURE__ */ React23.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
3220
- ), /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React23.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React23.createElement(
3221
- "input",
3222
- {
3223
- max: table.getPageCount(),
3224
- min: 0,
3225
- type: "number",
3226
- defaultValue: table.getState().pagination.pageIndex + 1,
3227
- onChange: (e) => {
3228
- let page = Number(e.target.value) - 1;
3229
- const max = table.getPageCount();
3230
- if (!isNaN(page) && Number(page) > max) {
3231
- page = max - 1;
3232
- }
3233
- table.setPageIndex(page);
3234
- },
3235
- className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm placeholder:hawa-text-muted-foreground"
3236
- }
3237
- )), /* @__PURE__ */ React23.createElement(
3238
- DropdownMenu,
3239
- {
3240
- size: "sm",
3241
- width: "sm",
3242
- direction: props.direction,
3243
- items: itemsPerPageOptions || [
3244
- { label: `10 / ${pageText}`, value: 10 },
3245
- { label: `20 / ${pageText}`, value: 20 },
3246
- { label: `30 / ${pageText}`, value: 30 },
3247
- { label: `40 / ${pageText}`, value: 40 },
3248
- { label: `50 / ${pageText}`, value: 50 }
3249
- ],
3250
- trigger: /* @__PURE__ */ React23.createElement(
3251
- Button,
3252
- {
3253
- variant: "outline",
3254
- size: "icon",
3255
- className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 "
3256
- },
3257
- `${table.getState().pagination.pageSize} / ${(_i = props.texts) == null ? void 0 : _i.page}`
3258
- ),
3259
- onItemSelect: (e) => table.setPageSize(Number(e))
3260
- }
3261
- ), table.getPageCount() > 1 && /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React23.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React23.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React23.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React23.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React23.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React23.createElement(
3262
- Button,
3263
- {
3264
- "aria-label": "Next Table Page",
3265
- variant: "outline",
3266
- size: "smallIcon",
3267
- onClick: () => table.setPageIndex(0),
3268
- disabled: !table.getCanPreviousPage(),
3269
3475
  className: cn(
3270
- props.direction === "rtl" && "hawa-rotate-180"
3476
+ "hawa-flex hawa-justify-between hawa-gap-4 tablet:hawa-gap-0",
3477
+ props.showSelectionCount ? "hawa-flex-col tablet:hawa-flex-row" : "hawa-flex-col mobile:hawa-flex-row"
3271
3478
  )
3272
3479
  },
3273
- /* @__PURE__ */ React23.createElement(
3274
- "svg",
3480
+ !props.showCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }),
3481
+ props.showCount || table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount ? /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-gap-4" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-items-center hawa-justify-between" }, props.showCount && /* @__PURE__ */ React24.createElement(
3482
+ "div",
3275
3483
  {
3276
- xmlns: "http://www.w3.org/2000/svg",
3277
- width: "20",
3278
- height: "20",
3279
- viewBox: "0 0 24 24",
3280
- fill: "none",
3281
- stroke: "currentColor",
3282
- strokeWidth: "2",
3283
- strokeLinecap: "round",
3284
- strokeLinejoin: "round"
3484
+ className: "hawa-text-muted-foreground hawa-text-sm",
3485
+ dir: props.direction
3285
3486
  },
3286
- /* @__PURE__ */ React23.createElement("path", { d: "m11 17-5-5 5-5" }),
3287
- /* @__PURE__ */ React23.createElement("path", { d: "m18 17-5-5 5-5" })
3288
- )
3289
- ), /* @__PURE__ */ React23.createElement(
3290
- Button,
3291
- {
3292
- "aria-label": "Previous Table Page",
3293
- variant: "outline",
3294
- size: "smallIcon",
3295
- onClick: () => table.previousPage(),
3296
- disabled: !table.getCanPreviousPage(),
3297
- className: cn(
3298
- props.direction === "rtl" && "hawa-rotate-180"
3487
+ /* @__PURE__ */ React24.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
3488
+ " ",
3489
+ /* @__PURE__ */ React24.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
3490
+ ), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.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__ */ React24.createElement(
3491
+ "div",
3492
+ {
3493
+ className: "hawa-text-muted-foreground hawa-text-sm",
3494
+ dir: props.direction
3495
+ },
3496
+ table.getFilteredSelectedRowModel().rows.length,
3497
+ " ",
3498
+ (_h = props.texts) == null ? void 0 : _h.of,
3499
+ " ",
3500
+ table.getFilteredRowModel().rows.length,
3501
+ " ",
3502
+ (_i = props.texts) == null ? void 0 : _i.selectedRows
3503
+ )), table.getFilteredSelectedRowModel().rows.length > 0 && /* @__PURE__ */ React24.createElement("div", { className: "" }, /* @__PURE__ */ React24.createElement(
3504
+ DropdownMenu,
3505
+ {
3506
+ size: "sm",
3507
+ width: "sm",
3508
+ direction: props.direction,
3509
+ items: (props.bulkActions || []).map((action) => ({
3510
+ ...action,
3511
+ action: () => action.action(
3512
+ table.getFilteredSelectedRowModel().rows
3513
+ )
3514
+ })),
3515
+ trigger: /* @__PURE__ */ React24.createElement(Button, { size: "xs" }, ((_j = props.texts) == null ? void 0 : _j.bulkAction) || "Bulk Action")
3516
+ }
3517
+ ))) : null,
3518
+ /* @__PURE__ */ React24.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__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-text-sm" }, (_k = props.texts) == null ? void 0 : _k.goTo), /* @__PURE__ */ React24.createElement(
3519
+ "input",
3520
+ {
3521
+ max: table.getPageCount(),
3522
+ min: 0,
3523
+ type: "number",
3524
+ defaultValue: table.getState().pagination.pageIndex + 1,
3525
+ onChange: (e) => {
3526
+ let page = Number(e.target.value) - 1;
3527
+ const max = table.getPageCount();
3528
+ if (!isNaN(page) && Number(page) > max) {
3529
+ page = max - 1;
3530
+ }
3531
+ table.setPageIndex(page);
3532
+ },
3533
+ className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm placeholder:hawa-text-muted-foreground"
3534
+ }
3535
+ )), /* @__PURE__ */ React24.createElement(
3536
+ DropdownMenu,
3537
+ {
3538
+ size: "sm",
3539
+ width: "sm",
3540
+ direction: props.direction,
3541
+ items: itemsPerPageOptions || [
3542
+ { label: `10 / ${pageText}`, value: 10 },
3543
+ { label: `20 / ${pageText}`, value: 20 },
3544
+ { label: `30 / ${pageText}`, value: 30 },
3545
+ { label: `40 / ${pageText}`, value: 40 },
3546
+ { label: `50 / ${pageText}`, value: 50 }
3547
+ ],
3548
+ trigger: /* @__PURE__ */ React24.createElement(
3549
+ Button,
3550
+ {
3551
+ variant: "outline",
3552
+ size: "icon",
3553
+ className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 hawa-whitespace-nowrap"
3554
+ },
3555
+ `${table.getState().pagination.pageSize} / ${(_l = props.texts) == null ? void 0 : _l.page}`
3556
+ ),
3557
+ onItemSelect: (e) => table.setPageSize(Number(e))
3558
+ }
3559
+ ), table.getPageCount() > 1 && /* @__PURE__ */ React24.createElement("div", { className: "hawa-bg--500 hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-bg--500 hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React24.createElement("div", null, (_m = props.texts) == null ? void 0 : _m.page), /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React24.createElement("span", null, (_n = props.texts) == null ? void 0 : _n.of), /* @__PURE__ */ React24.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-center hawa-bg--500" }, /* @__PURE__ */ React24.createElement(
3560
+ Button,
3561
+ {
3562
+ "aria-label": "Next Table Page",
3563
+ variant: "outline",
3564
+ size: "smallIcon",
3565
+ onClick: () => table.setPageIndex(0),
3566
+ disabled: !table.getCanPreviousPage(),
3567
+ className: cn(
3568
+ props.direction === "rtl" && "hawa-rotate-180"
3569
+ )
3570
+ },
3571
+ /* @__PURE__ */ React24.createElement(
3572
+ "svg",
3573
+ {
3574
+ xmlns: "http://www.w3.org/2000/svg",
3575
+ width: "20",
3576
+ height: "20",
3577
+ viewBox: "0 0 24 24",
3578
+ fill: "none",
3579
+ stroke: "currentColor",
3580
+ strokeWidth: "2",
3581
+ strokeLinecap: "round",
3582
+ strokeLinejoin: "round"
3583
+ },
3584
+ /* @__PURE__ */ React24.createElement("path", { d: "m11 17-5-5 5-5" }),
3585
+ /* @__PURE__ */ React24.createElement("path", { d: "m18 17-5-5 5-5" })
3299
3586
  )
3300
- },
3301
- /* @__PURE__ */ React23.createElement(
3302
- "svg",
3587
+ ), /* @__PURE__ */ React24.createElement(
3588
+ Button,
3303
3589
  {
3304
- xmlns: "http://www.w3.org/2000/svg",
3305
- width: "20",
3306
- height: "20",
3307
- "aria-label": "Single Chevron Icon",
3308
- viewBox: "0 0 24 24",
3309
- fill: "none",
3310
- stroke: "currentColor",
3311
- strokeWidth: "2",
3312
- strokeLinecap: "round",
3313
- strokeLinejoin: "round"
3590
+ "aria-label": "Previous Table Page",
3591
+ variant: "outline",
3592
+ size: "smallIcon",
3593
+ onClick: () => table.previousPage(),
3594
+ disabled: !table.getCanPreviousPage(),
3595
+ className: cn(
3596
+ props.direction === "rtl" && "hawa-rotate-180"
3597
+ )
3314
3598
  },
3315
- /* @__PURE__ */ React23.createElement("path", { d: "m15 18-6-6 6-6" })
3316
- )
3317
- ), /* @__PURE__ */ React23.createElement(
3318
- Button,
3319
- {
3320
- "aria-label": "Next Table Page",
3321
- variant: "outline",
3322
- size: "smallIcon",
3323
- onClick: () => table.nextPage(),
3324
- disabled: !table.getCanNextPage(),
3325
- className: cn(
3326
- props.direction === "ltr" && "hawa-rotate-180"
3599
+ /* @__PURE__ */ React24.createElement(
3600
+ "svg",
3601
+ {
3602
+ xmlns: "http://www.w3.org/2000/svg",
3603
+ width: "20",
3604
+ height: "20",
3605
+ "aria-label": "Single Chevron Icon",
3606
+ viewBox: "0 0 24 24",
3607
+ fill: "none",
3608
+ stroke: "currentColor",
3609
+ strokeWidth: "2",
3610
+ strokeLinecap: "round",
3611
+ strokeLinejoin: "round"
3612
+ },
3613
+ /* @__PURE__ */ React24.createElement("path", { d: "m15 18-6-6 6-6" })
3327
3614
  )
3328
- },
3329
- /* @__PURE__ */ React23.createElement(
3330
- "svg",
3615
+ ), /* @__PURE__ */ React24.createElement(
3616
+ Button,
3331
3617
  {
3332
- xmlns: "http://www.w3.org/2000/svg",
3333
- width: "20",
3334
- height: "20",
3335
- "aria-label": "Single Chevron Icon",
3336
- viewBox: "0 0 24 24",
3337
- fill: "none",
3338
- stroke: "currentColor",
3339
- strokeWidth: "2",
3340
- strokeLinecap: "round",
3341
- strokeLinejoin: "round"
3618
+ "aria-label": "Next Table Page",
3619
+ variant: "outline",
3620
+ size: "smallIcon",
3621
+ onClick: () => table.nextPage(),
3622
+ disabled: !table.getCanNextPage(),
3623
+ className: cn(
3624
+ props.direction === "ltr" && "hawa-rotate-180"
3625
+ )
3342
3626
  },
3343
- /* @__PURE__ */ React23.createElement("path", { d: "m15 18-6-6 6-6" })
3344
- )
3345
- ), /* @__PURE__ */ React23.createElement(
3346
- Button,
3347
- {
3348
- "aria-label": "Next Table Page",
3349
- variant: "outline",
3350
- size: "smallIcon",
3351
- onClick: () => table.setPageIndex(table.getPageCount() - 1),
3352
- disabled: !table.getCanNextPage(),
3353
- className: cn(
3354
- props.direction === "ltr" && "hawa-rotate-180"
3627
+ /* @__PURE__ */ React24.createElement(
3628
+ "svg",
3629
+ {
3630
+ xmlns: "http://www.w3.org/2000/svg",
3631
+ width: "20",
3632
+ height: "20",
3633
+ "aria-label": "Single Chevron Icon",
3634
+ viewBox: "0 0 24 24",
3635
+ fill: "none",
3636
+ stroke: "currentColor",
3637
+ strokeWidth: "2",
3638
+ strokeLinecap: "round",
3639
+ strokeLinejoin: "round"
3640
+ },
3641
+ /* @__PURE__ */ React24.createElement("path", { d: "m15 18-6-6 6-6" })
3355
3642
  )
3356
- },
3357
- /* @__PURE__ */ React23.createElement(
3358
- "svg",
3643
+ ), /* @__PURE__ */ React24.createElement(
3644
+ Button,
3359
3645
  {
3360
- xmlns: "http://www.w3.org/2000/svg",
3361
- width: "20",
3362
- height: "20",
3363
- viewBox: "0 0 24 24",
3364
- fill: "none",
3365
- stroke: "currentColor",
3366
- strokeWidth: "2",
3367
- strokeLinecap: "round",
3368
- strokeLinejoin: "round"
3646
+ "aria-label": "Next Table Page",
3647
+ variant: "outline",
3648
+ size: "smallIcon",
3649
+ onClick: () => table.setPageIndex(table.getPageCount() - 1),
3650
+ disabled: !table.getCanNextPage(),
3651
+ className: cn(
3652
+ props.direction === "ltr" && "hawa-rotate-180"
3653
+ )
3369
3654
  },
3370
- /* @__PURE__ */ React23.createElement("path", { d: "m11 17-5-5 5-5" }),
3371
- /* @__PURE__ */ React23.createElement("path", { d: "m18 17-5-5 5-5" })
3372
- )
3373
- ))))
3655
+ /* @__PURE__ */ React24.createElement(
3656
+ "svg",
3657
+ {
3658
+ xmlns: "http://www.w3.org/2000/svg",
3659
+ width: "20",
3660
+ height: "20",
3661
+ viewBox: "0 0 24 24",
3662
+ fill: "none",
3663
+ stroke: "currentColor",
3664
+ strokeWidth: "2",
3665
+ strokeLinecap: "round",
3666
+ strokeLinejoin: "round"
3667
+ },
3668
+ /* @__PURE__ */ React24.createElement("path", { d: "m11 17-5-5 5-5" }),
3669
+ /* @__PURE__ */ React24.createElement("path", { d: "m18 17-5-5 5-5" })
3670
+ )
3671
+ ))))
3672
+ )
3374
3673
  ));
3375
3674
  };
3376
3675
 
@@ -3475,10 +3774,10 @@ var BackToTop = ({ ...props }) => {
3475
3774
  var import_react13 = __toESM(require("react"));
3476
3775
 
3477
3776
  // elements/popover/Popover.tsx
3478
- var React25 = __toESM(require("react"));
3777
+ var React26 = __toESM(require("react"));
3479
3778
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
3480
- var PopoverContent = React25.forwardRef(
3481
- ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React25.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React25.createElement(
3779
+ var PopoverContent = React26.forwardRef(
3780
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React26.createElement(
3482
3781
  PopoverPrimitive.Content,
3483
3782
  {
3484
3783
  ref,
@@ -3511,7 +3810,7 @@ var Popover = ({
3511
3810
  trigger: "var(--radix-popover-trigger-width)",
3512
3811
  default: "auto"
3513
3812
  };
3514
- return /* @__PURE__ */ React25.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React25.createElement(
3813
+ return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(
3515
3814
  PopoverPrimitive.Trigger,
3516
3815
  {
3517
3816
  className: "hawa-w-full",
@@ -3519,7 +3818,7 @@ var Popover = ({
3519
3818
  ...triggerProps
3520
3819
  },
3521
3820
  trigger
3522
- ), /* @__PURE__ */ React25.createElement(
3821
+ ), /* @__PURE__ */ React26.createElement(
3523
3822
  PopoverContent,
3524
3823
  {
3525
3824
  side,
@@ -3810,14 +4109,14 @@ var Radio = (0, import_react13.forwardRef)(
3810
4109
  );
3811
4110
 
3812
4111
  // elements/combobox/Combobox.tsx
3813
- var React28 = __toESM(require("react"));
4112
+ var React29 = __toESM(require("react"));
3814
4113
  var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
3815
4114
 
3816
4115
  // elements/command/Command.tsx
3817
- var React27 = __toESM(require("react"));
4116
+ var React28 = __toESM(require("react"));
3818
4117
  var import_react_dialog = require("@radix-ui/react-dialog");
3819
4118
  var import_cmdk = require("cmdk");
3820
- var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
4119
+ var Command = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
3821
4120
  import_cmdk.Command,
3822
4121
  {
3823
4122
  ref,
@@ -3829,15 +4128,15 @@ var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3829
4128
  }
3830
4129
  ));
3831
4130
  var CommandDialog = ({ children, ...props }) => {
3832
- return /* @__PURE__ */ React27.createElement(import_react_dialog.Dialog, { ...props }, /* @__PURE__ */ React27.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React27.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
4131
+ return /* @__PURE__ */ React28.createElement(import_react_dialog.Dialog, { ...props }, /* @__PURE__ */ React28.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React28.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
3833
4132
  };
3834
- var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
4133
+ var CommandInput = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
3835
4134
  "div",
3836
4135
  {
3837
4136
  className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
3838
4137
  "cmdk-input-wrapper": ""
3839
4138
  },
3840
- /* @__PURE__ */ React27.createElement(
4139
+ /* @__PURE__ */ React28.createElement(
3841
4140
  "svg",
3842
4141
  {
3843
4142
  "aria-label": "Search Icon",
@@ -3852,10 +4151,10 @@ var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
3852
4151
  strokeLinejoin: "round",
3853
4152
  className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
3854
4153
  },
3855
- /* @__PURE__ */ React27.createElement("circle", { cx: "11", cy: "11", r: "8" }),
3856
- /* @__PURE__ */ React27.createElement("path", { d: "m21 21-4.3-4.3" })
4154
+ /* @__PURE__ */ React28.createElement("circle", { cx: "11", cy: "11", r: "8" }),
4155
+ /* @__PURE__ */ React28.createElement("path", { d: "m21 21-4.3-4.3" })
3857
4156
  ),
3858
- /* @__PURE__ */ React27.createElement(
4157
+ /* @__PURE__ */ React28.createElement(
3859
4158
  import_cmdk.Command.Input,
3860
4159
  {
3861
4160
  ref,
@@ -3867,7 +4166,7 @@ var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
3867
4166
  }
3868
4167
  )
3869
4168
  ));
3870
- var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
4169
+ var CommandList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
3871
4170
  import_cmdk.Command.List,
3872
4171
  {
3873
4172
  ref,
@@ -3878,7 +4177,7 @@ var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
3878
4177
  ...props
3879
4178
  }
3880
4179
  ));
3881
- var CommandEmpty = React27.forwardRef((props, ref) => /* @__PURE__ */ React27.createElement(
4180
+ var CommandEmpty = React28.forwardRef((props, ref) => /* @__PURE__ */ React28.createElement(
3882
4181
  import_cmdk.Command.Empty,
3883
4182
  {
3884
4183
  ref,
@@ -3886,7 +4185,7 @@ var CommandEmpty = React27.forwardRef((props, ref) => /* @__PURE__ */ React27.cr
3886
4185
  ...props
3887
4186
  }
3888
4187
  ));
3889
- var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
4188
+ var CommandGroup = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
3890
4189
  import_cmdk.Command.Group,
3891
4190
  {
3892
4191
  ref,
@@ -3897,7 +4196,7 @@ var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
3897
4196
  ...props
3898
4197
  }
3899
4198
  ));
3900
- var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
4199
+ var CommandSeparator = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
3901
4200
  import_cmdk.Command.Separator,
3902
4201
  {
3903
4202
  ref,
@@ -3905,7 +4204,7 @@ var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @
3905
4204
  ...props
3906
4205
  }
3907
4206
  ));
3908
- var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
4207
+ var CommandItem = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
3909
4208
  import_cmdk.Command.Item,
3910
4209
  {
3911
4210
  ref,
@@ -3920,7 +4219,7 @@ var CommandShortcut = ({
3920
4219
  className,
3921
4220
  ...props
3922
4221
  }) => {
3923
- return /* @__PURE__ */ React27.createElement(
4222
+ return /* @__PURE__ */ React28.createElement(
3924
4223
  "span",
3925
4224
  {
3926
4225
  className: cn(
@@ -3937,22 +4236,22 @@ var FullCommand = ({
3937
4236
  texts,
3938
4237
  onActionClick
3939
4238
  }) => {
3940
- return /* @__PURE__ */ React27.createElement(
4239
+ return /* @__PURE__ */ React28.createElement(
3941
4240
  Command,
3942
4241
  {
3943
4242
  dir: direction,
3944
4243
  className: "hawa-rounded-lg hawa-border hawa-shadow-md !hawa-h-full"
3945
4244
  },
3946
- /* @__PURE__ */ React27.createElement(
4245
+ /* @__PURE__ */ React28.createElement(
3947
4246
  CommandInput,
3948
4247
  {
3949
4248
  placeholder: (texts == null ? void 0 : texts.searchPlaceholder) || "Type a command or search..."
3950
4249
  }
3951
4250
  ),
3952
- /* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(CommandEmpty, null, (texts == null ? void 0 : texts.emptyText) || "No results found."), items.map((item, index) => {
4251
+ /* @__PURE__ */ React28.createElement(CommandList, null, /* @__PURE__ */ React28.createElement(CommandEmpty, null, (texts == null ? void 0 : texts.emptyText) || "No results found."), items.map((item, index) => {
3953
4252
  var _a;
3954
4253
  if (item.type === "group") {
3955
- return /* @__PURE__ */ React27.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React27.createElement(
4254
+ return /* @__PURE__ */ React28.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React28.createElement(
3956
4255
  CommandItem,
3957
4256
  {
3958
4257
  key: subIndex,
@@ -3962,12 +4261,12 @@ var FullCommand = ({
3962
4261
  subItem.action();
3963
4262
  }
3964
4263
  },
3965
- /* @__PURE__ */ React27.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
3966
- /* @__PURE__ */ React27.createElement("span", null, subItem.label),
3967
- subItem.shortcut && /* @__PURE__ */ React27.createElement(CommandShortcut, null, subItem.shortcut)
4264
+ /* @__PURE__ */ React28.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
4265
+ /* @__PURE__ */ React28.createElement("span", null, subItem.label),
4266
+ subItem.shortcut && /* @__PURE__ */ React28.createElement(CommandShortcut, null, subItem.shortcut)
3968
4267
  )));
3969
4268
  } else if (item.type === "separator") {
3970
- return /* @__PURE__ */ React27.createElement(CommandSeparator, { key: index });
4269
+ return /* @__PURE__ */ React28.createElement(CommandSeparator, { key: index });
3971
4270
  }
3972
4271
  return null;
3973
4272
  }))
@@ -3978,13 +4277,13 @@ var AppCommand = ({
3978
4277
  dialogProps,
3979
4278
  onActionClick
3980
4279
  }) => {
3981
- return /* @__PURE__ */ React27.createElement(import_react_dialog.Dialog, { ...dialogProps }, /* @__PURE__ */ React27.createElement(
4280
+ return /* @__PURE__ */ React28.createElement(import_react_dialog.Dialog, { ...dialogProps }, /* @__PURE__ */ React28.createElement(
3982
4281
  DialogContent,
3983
4282
  {
3984
4283
  hideCloseButton: true,
3985
4284
  className: "hawa-overflow-hidden !hawa-p-0 hawa-shadow-l "
3986
4285
  },
3987
- /* @__PURE__ */ React27.createElement(FullCommand, { ...commandProps, onActionClick })
4286
+ /* @__PURE__ */ React28.createElement(FullCommand, { ...commandProps, onActionClick })
3988
4287
  ));
3989
4288
  };
3990
4289
  CommandShortcut.displayName = "CommandShortcut";
@@ -3997,7 +4296,7 @@ Command.displayName = import_cmdk.Command.displayName;
3997
4296
  CommandInput.displayName = import_cmdk.Command.Input.displayName;
3998
4297
 
3999
4298
  // elements/combobox/Combobox.tsx
4000
- var Combobox = React28.forwardRef(
4299
+ var Combobox = React29.forwardRef(
4001
4300
  ({
4002
4301
  labelKey = "label",
4003
4302
  valueKey = "value",
@@ -4012,9 +4311,9 @@ var Combobox = React28.forwardRef(
4012
4311
  ...props
4013
4312
  }, ref) => {
4014
4313
  var _a, _b, _c;
4015
- const [open, setOpen] = React28.useState(false);
4016
- const [value, setValue] = React28.useState(defaultValue);
4017
- const containerRef = React28.useRef(null);
4314
+ const [open, setOpen] = React29.useState(false);
4315
+ const [value, setValue] = React29.useState(defaultValue);
4316
+ const containerRef = React29.useRef(null);
4018
4317
  function getProperty(obj, key) {
4019
4318
  return key.split(".").reduce((o, k) => (o || {})[k], obj);
4020
4319
  }
@@ -4026,7 +4325,7 @@ var Combobox = React28.forwardRef(
4026
4325
  const selectedItem = data.find(
4027
4326
  (item) => getProperty(item, valueKey) === value
4028
4327
  );
4029
- return /* @__PURE__ */ React28.createElement(
4328
+ return /* @__PURE__ */ React29.createElement(
4030
4329
  "div",
4031
4330
  {
4032
4331
  className: cn(
@@ -4035,8 +4334,8 @@ var Combobox = React28.forwardRef(
4035
4334
  ),
4036
4335
  ref: containerRef
4037
4336
  },
4038
- props.label && /* @__PURE__ */ React28.createElement(Label2, { ...labelProps }, props.label),
4039
- /* @__PURE__ */ React28.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React28.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React28.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React28.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React28.createElement(
4337
+ props.label && /* @__PURE__ */ React29.createElement(Label2, { ...labelProps }, props.label),
4338
+ /* @__PURE__ */ React29.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React29.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React29.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React29.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React29.createElement(
4040
4339
  "div",
4041
4340
  {
4042
4341
  className: cn(
@@ -4044,7 +4343,7 @@ var Combobox = React28.forwardRef(
4044
4343
  props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
4045
4344
  )
4046
4345
  }
4047
- ), /* @__PURE__ */ React28.createElement(
4346
+ ), /* @__PURE__ */ React29.createElement(
4048
4347
  "button",
4049
4348
  {
4050
4349
  role: "combobox",
@@ -4056,7 +4355,7 @@ var Combobox = React28.forwardRef(
4056
4355
  )
4057
4356
  },
4058
4357
  selectedItem ? renderSelected ? renderSelected(selectedItem) : getProperty(selectedItem, labelKey) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
4059
- /* @__PURE__ */ React28.createElement(
4358
+ /* @__PURE__ */ React29.createElement(
4060
4359
  "svg",
4061
4360
  {
4062
4361
  xmlns: "http://www.w3.org/2000/svg",
@@ -4072,9 +4371,9 @@ var Combobox = React28.forwardRef(
4072
4371
  strokeLinecap: "round",
4073
4372
  strokeLinejoin: "round"
4074
4373
  },
4075
- /* @__PURE__ */ React28.createElement("path", { d: "m6 9 6 6 6-6" })
4374
+ /* @__PURE__ */ React29.createElement("path", { d: "m6 9 6 6 6-6" })
4076
4375
  )
4077
- ), /* @__PURE__ */ React28.createElement(HelperText, { helperText: props.helperText }))), /* @__PURE__ */ React28.createElement(
4376
+ ), /* @__PURE__ */ React29.createElement(HelperText, { helperText: props.helperText }))), /* @__PURE__ */ React29.createElement(
4078
4377
  PopoverContent,
4079
4378
  {
4080
4379
  sideOffset: 0,
@@ -4082,7 +4381,7 @@ var Combobox = React28.forwardRef(
4082
4381
  dir: direction,
4083
4382
  container: containerRef.current
4084
4383
  },
4085
- /* @__PURE__ */ React28.createElement(
4384
+ /* @__PURE__ */ React29.createElement(
4086
4385
  Command,
4087
4386
  {
4088
4387
  filter: (value2, search) => {
@@ -4091,7 +4390,7 @@ var Combobox = React28.forwardRef(
4091
4390
  return 0;
4092
4391
  }
4093
4392
  },
4094
- !props.hideInput && /* @__PURE__ */ React28.createElement(
4393
+ !props.hideInput && /* @__PURE__ */ React29.createElement(
4095
4394
  CommandInput,
4096
4395
  {
4097
4396
  ...inputProps,
@@ -4099,8 +4398,8 @@ var Combobox = React28.forwardRef(
4099
4398
  placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
4100
4399
  }
4101
4400
  ),
4102
- /* @__PURE__ */ React28.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."),
4103
- /* @__PURE__ */ React28.createElement(CommandList, null, /* @__PURE__ */ React28.createElement(
4401
+ /* @__PURE__ */ React29.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."),
4402
+ /* @__PURE__ */ React29.createElement(CommandList, null, /* @__PURE__ */ React29.createElement(
4104
4403
  CommandGroup,
4105
4404
  {
4106
4405
  className: cn(
@@ -4108,7 +4407,7 @@ var Combobox = React28.forwardRef(
4108
4407
  data.length > 0 && "hawa-overflow-y-auto"
4109
4408
  )
4110
4409
  },
4111
- data.map((item, i) => /* @__PURE__ */ React28.createElement(
4410
+ data.map((item, i) => /* @__PURE__ */ React29.createElement(
4112
4411
  CommandItem,
4113
4412
  {
4114
4413
  key: i,
@@ -4125,7 +4424,7 @@ var Combobox = React28.forwardRef(
4125
4424
  setOpen(false);
4126
4425
  }
4127
4426
  },
4128
- /* @__PURE__ */ React28.createElement(
4427
+ /* @__PURE__ */ React29.createElement(
4129
4428
  "svg",
4130
4429
  {
4131
4430
  "aria-label": "Check Icon",
@@ -4144,7 +4443,7 @@ var Combobox = React28.forwardRef(
4144
4443
  ),
4145
4444
  style: { marginInlineEnd: "0.5rem" }
4146
4445
  },
4147
- /* @__PURE__ */ React28.createElement("polyline", { points: "20 6 9 17 4 12" })
4446
+ /* @__PURE__ */ React29.createElement("polyline", { points: "20 6 9 17 4 12" })
4148
4447
  ),
4149
4448
  renderOption ? renderOption(item) : getProperty(item, labelKey)
4150
4449
  ))
@@ -4156,8 +4455,8 @@ var Combobox = React28.forwardRef(
4156
4455
  );
4157
4456
 
4158
4457
  // elements/textarea/Textarea.tsx
4159
- var React29 = __toESM(require("react"));
4160
- var Textarea = React29.forwardRef(
4458
+ var React30 = __toESM(require("react"));
4459
+ var Textarea = React30.forwardRef(
4161
4460
  ({
4162
4461
  className,
4163
4462
  classNames,
@@ -4169,7 +4468,7 @@ var Textarea = React29.forwardRef(
4169
4468
  isLoading,
4170
4469
  ...props
4171
4470
  }, ref) => {
4172
- return /* @__PURE__ */ React29.createElement(
4471
+ return /* @__PURE__ */ React30.createElement(
4173
4472
  "div",
4174
4473
  {
4175
4474
  className: cn(
@@ -4178,7 +4477,7 @@ var Textarea = React29.forwardRef(
4178
4477
  className
4179
4478
  )
4180
4479
  },
4181
- /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React29.createElement(Label2, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React29.createElement(
4480
+ /* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React30.createElement(Label2, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React30.createElement(
4182
4481
  "div",
4183
4482
  {
4184
4483
  className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
@@ -4187,7 +4486,7 @@ var Textarea = React29.forwardRef(
4187
4486
  "/",
4188
4487
  textareaProps == null ? void 0 : textareaProps.maxLength
4189
4488
  )),
4190
- isLoading ? /* @__PURE__ */ React29.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React29.createElement(
4489
+ isLoading ? /* @__PURE__ */ React30.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React30.createElement(
4191
4490
  "textarea",
4192
4491
  {
4193
4492
  ...textareaProps,
@@ -4198,7 +4497,7 @@ var Textarea = React29.forwardRef(
4198
4497
  ref
4199
4498
  }
4200
4499
  ),
4201
- /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(HelperText, { helperText: props.helperText }), showCount && countPosition === "bottom" && /* @__PURE__ */ React29.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
4500
+ /* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React30.createElement(HelperText, { helperText: props.helperText }), showCount && countPosition === "bottom" && /* @__PURE__ */ React30.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
4202
4501
  );
4203
4502
  }
4204
4503
  );
@@ -4461,7 +4760,7 @@ var SortButton = (props) => {
4461
4760
  };
4462
4761
 
4463
4762
  // elements/tabs/Tabs.tsx
4464
- var React41 = __toESM(require("react"));
4763
+ var React42 = __toESM(require("react"));
4465
4764
 
4466
4765
  // hooks/useIsomorphicEffect.ts
4467
4766
  var import_react16 = require("react");
@@ -4473,7 +4772,7 @@ var import_react17 = require("react");
4473
4772
  var import_react18 = require("react");
4474
4773
 
4475
4774
  // hooks/useToast.ts
4476
- var React34 = __toESM(require("react"));
4775
+ var React35 = __toESM(require("react"));
4477
4776
 
4478
4777
  // hooks/useCarousel.ts
4479
4778
  var import_react19 = require("react");
@@ -4579,15 +4878,15 @@ var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
4579
4878
  var import_tailwind_variants = require("tailwind-variants");
4580
4879
 
4581
4880
  // elements/scrollArea/ScrollArea.tsx
4582
- var React40 = __toESM(require("react"));
4881
+ var React41 = __toESM(require("react"));
4583
4882
  var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
4584
- var ScrollArea = React40.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => {
4585
- const scrollAreaRef = React40.useRef(null);
4586
- const isDragging = React40.useRef(false);
4587
- const startPos = React40.useRef({ x: 0, y: 0 });
4588
- const scrollPos = React40.useRef({ top: 0, left: 0 });
4589
- const [showLeftFade, setShowLeftFade] = React40.useState(false);
4590
- const [showRightFade, setShowRightFade] = React40.useState(false);
4883
+ var ScrollArea = React41.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => {
4884
+ const scrollAreaRef = React41.useRef(null);
4885
+ const isDragging = React41.useRef(false);
4886
+ const startPos = React41.useRef({ x: 0, y: 0 });
4887
+ const scrollPos = React41.useRef({ top: 0, left: 0 });
4888
+ const [showLeftFade, setShowLeftFade] = React41.useState(false);
4889
+ const [showRightFade, setShowRightFade] = React41.useState(false);
4591
4890
  const checkOverflow = () => {
4592
4891
  if (scrollAreaRef.current) {
4593
4892
  const { scrollLeft, scrollWidth, clientWidth } = scrollAreaRef.current;
@@ -4624,7 +4923,7 @@ var ScrollArea = React40.forwardRef(({ className, children, orientation = "verti
4624
4923
  document.removeEventListener("mousemove", onMouseMove);
4625
4924
  document.removeEventListener("mouseup", onMouseUp);
4626
4925
  };
4627
- React40.useEffect(() => {
4926
+ React41.useEffect(() => {
4628
4927
  checkOverflow();
4629
4928
  if (scrollAreaRef.current) {
4630
4929
  scrollAreaRef.current.addEventListener("scroll", checkOverflow);
@@ -4637,14 +4936,14 @@ var ScrollArea = React40.forwardRef(({ className, children, orientation = "verti
4637
4936
  window.removeEventListener("resize", checkOverflow);
4638
4937
  };
4639
4938
  }, []);
4640
- return /* @__PURE__ */ React40.createElement(
4939
+ return /* @__PURE__ */ React41.createElement(
4641
4940
  ScrollAreaPrimitive.Root,
4642
4941
  {
4643
4942
  ref,
4644
4943
  className: cn("hawa-relative hawa-overflow-hidden", className),
4645
4944
  ...props
4646
4945
  },
4647
- /* @__PURE__ */ React40.createElement(
4946
+ /* @__PURE__ */ React41.createElement(
4648
4947
  "div",
4649
4948
  {
4650
4949
  className: cn(
@@ -4653,7 +4952,7 @@ var ScrollArea = React40.forwardRef(({ className, children, orientation = "verti
4653
4952
  )
4654
4953
  }
4655
4954
  ),
4656
- /* @__PURE__ */ React40.createElement(
4955
+ /* @__PURE__ */ React41.createElement(
4657
4956
  "div",
4658
4957
  {
4659
4958
  className: cn(
@@ -4662,7 +4961,7 @@ var ScrollArea = React40.forwardRef(({ className, children, orientation = "verti
4662
4961
  )
4663
4962
  }
4664
4963
  ),
4665
- /* @__PURE__ */ React40.createElement(
4964
+ /* @__PURE__ */ React41.createElement(
4666
4965
  ScrollAreaPrimitive.Viewport,
4667
4966
  {
4668
4967
  ref: scrollAreaRef,
@@ -4671,12 +4970,12 @@ var ScrollArea = React40.forwardRef(({ className, children, orientation = "verti
4671
4970
  },
4672
4971
  children
4673
4972
  ),
4674
- /* @__PURE__ */ React40.createElement(ScrollBar, { orientation }),
4675
- /* @__PURE__ */ React40.createElement(ScrollAreaPrimitive.Corner, null)
4973
+ /* @__PURE__ */ React41.createElement(ScrollBar, { orientation }),
4974
+ /* @__PURE__ */ React41.createElement(ScrollAreaPrimitive.Corner, null)
4676
4975
  );
4677
4976
  });
4678
4977
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
4679
- var ScrollBar = React40.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React40.createElement(
4978
+ var ScrollBar = React41.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React41.createElement(
4680
4979
  ScrollAreaPrimitive.ScrollAreaScrollbar,
4681
4980
  {
4682
4981
  ref,
@@ -4689,7 +4988,7 @@ var ScrollBar = React40.forwardRef(({ className, orientation = "vertical", ...pr
4689
4988
  ),
4690
4989
  ...props
4691
4990
  },
4692
- /* @__PURE__ */ React40.createElement(
4991
+ /* @__PURE__ */ React41.createElement(
4693
4992
  ScrollAreaPrimitive.ScrollAreaThumb,
4694
4993
  {
4695
4994
  className: cn(
@@ -4760,9 +5059,9 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
4760
5059
  ],
4761
5060
  defaultVariants: { variant: "default", orientation: "horizontal" }
4762
5061
  });
4763
- var TabsContext = React41.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
4764
- var Tabs = React41.forwardRef(
4765
- ({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React41.createElement(
5062
+ var TabsContext = React42.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
5063
+ var Tabs = React42.forwardRef(
5064
+ ({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React42.createElement(
4766
5065
  TabsPrimitive.Root,
4767
5066
  {
4768
5067
  ref,
@@ -4773,14 +5072,14 @@ var Tabs = React41.forwardRef(
4773
5072
  ),
4774
5073
  ...props
4775
5074
  },
4776
- /* @__PURE__ */ React41.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
5075
+ /* @__PURE__ */ React42.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
4777
5076
  )
4778
5077
  );
4779
- var TabsList = React41.forwardRef(({ className, classNames, ...props }, ref) => {
4780
- const { orientation, variant, scrollable } = React41.useContext(TabsContext);
5078
+ var TabsList = React42.forwardRef(({ className, classNames, ...props }, ref) => {
5079
+ const { orientation, variant, scrollable } = React42.useContext(TabsContext);
4781
5080
  const { width } = useViewportSize();
4782
5081
  if (scrollable && width < 768 && orientation === "horizontal") {
4783
- return /* @__PURE__ */ React41.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React41.createElement(
5082
+ return /* @__PURE__ */ React42.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React42.createElement(
4784
5083
  TabsPrimitive.List,
4785
5084
  {
4786
5085
  ref,
@@ -4793,7 +5092,7 @@ var TabsList = React41.forwardRef(({ className, classNames, ...props }, ref) =>
4793
5092
  }
4794
5093
  ));
4795
5094
  } else {
4796
- return /* @__PURE__ */ React41.createElement(
5095
+ return /* @__PURE__ */ React42.createElement(
4797
5096
  TabsPrimitive.List,
4798
5097
  {
4799
5098
  ref,
@@ -4808,11 +5107,11 @@ var TabsList = React41.forwardRef(({ className, classNames, ...props }, ref) =>
4808
5107
  );
4809
5108
  }
4810
5109
  });
4811
- var TabsTrigger = React41.forwardRef(
5110
+ var TabsTrigger = React42.forwardRef(
4812
5111
  ({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
4813
- const { orientation, variant } = React41.useContext(TabsContext);
5112
+ const { orientation, variant } = React42.useContext(TabsContext);
4814
5113
  if (withPopover) {
4815
- return /* @__PURE__ */ React41.createElement(Popover2.Root, { open: props.showPopover }, /* @__PURE__ */ React41.createElement(Popover2.Anchor, { asChild: true }, /* @__PURE__ */ React41.createElement(
5114
+ return /* @__PURE__ */ React42.createElement(Popover2.Root, { open: props.showPopover }, /* @__PURE__ */ React42.createElement(Popover2.Anchor, { asChild: true }, /* @__PURE__ */ React42.createElement(
4816
5115
  TabsPrimitive.Trigger,
4817
5116
  {
4818
5117
  className: cn(
@@ -4823,8 +5122,8 @@ var TabsTrigger = React41.forwardRef(
4823
5122
  ...props
4824
5123
  },
4825
5124
  props.children,
4826
- chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps })
4827
- )), /* @__PURE__ */ React41.createElement(
5125
+ chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps })
5126
+ )), /* @__PURE__ */ React42.createElement(
4828
5127
  Popover2.Content,
4829
5128
  {
4830
5129
  onClick: onPopoverClick,
@@ -4834,10 +5133,10 @@ var TabsTrigger = React41.forwardRef(
4834
5133
  "hawa-arrow-default-top hawa-mt-2"
4835
5134
  )
4836
5135
  },
4837
- /* @__PURE__ */ React41.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
5136
+ /* @__PURE__ */ React42.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
4838
5137
  ));
4839
5138
  } else {
4840
- return /* @__PURE__ */ React41.createElement(
5139
+ return /* @__PURE__ */ React42.createElement(
4841
5140
  TabsPrimitive.Trigger,
4842
5141
  {
4843
5142
  className: cn(
@@ -4848,12 +5147,12 @@ var TabsTrigger = React41.forwardRef(
4848
5147
  ...props
4849
5148
  },
4850
5149
  props.children,
4851
- chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps })
5150
+ chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps })
4852
5151
  );
4853
5152
  }
4854
5153
  }
4855
5154
  );
4856
- var TabsContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
5155
+ var TabsContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React42.createElement(
4857
5156
  TabsPrimitive.Content,
4858
5157
  {
4859
5158
  ref,
@@ -5045,15 +5344,15 @@ var Select = ({
5045
5344
  };
5046
5345
 
5047
5346
  // elements/switch/Switch.tsx
5048
- var React43 = __toESM(require("react"));
5347
+ var React44 = __toESM(require("react"));
5049
5348
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
5050
- var Switch = React43.forwardRef(
5349
+ var Switch = React44.forwardRef(
5051
5350
  ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
5052
- const [parentDirection, setParentDirection] = React43.useState(
5351
+ const [parentDirection, setParentDirection] = React44.useState(
5053
5352
  null
5054
5353
  );
5055
- const parentRef = React43.useRef(null);
5056
- React43.useEffect(() => {
5354
+ const parentRef = React44.useRef(null);
5355
+ React44.useEffect(() => {
5057
5356
  var _a;
5058
5357
  const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
5059
5358
  if (parentNode) {
@@ -5081,13 +5380,13 @@ var Switch = React43.forwardRef(
5081
5380
  full: "hawa-rounded-full",
5082
5381
  inherit: "hawa-rounded-inner"
5083
5382
  };
5084
- return /* @__PURE__ */ React43.createElement(
5383
+ return /* @__PURE__ */ React44.createElement(
5085
5384
  "div",
5086
5385
  {
5087
5386
  className: "hawa-flex hawa-flex-row hawa-items-center",
5088
5387
  ref: parentRef
5089
5388
  },
5090
- /* @__PURE__ */ React43.createElement(
5389
+ /* @__PURE__ */ React44.createElement(
5091
5390
  SwitchPrimitives.Root,
5092
5391
  {
5093
5392
  className: cn(
@@ -5101,7 +5400,7 @@ var Switch = React43.forwardRef(
5101
5400
  ...props,
5102
5401
  ref
5103
5402
  },
5104
- /* @__PURE__ */ React43.createElement(
5403
+ /* @__PURE__ */ React44.createElement(
5105
5404
  SwitchPrimitives.Thumb,
5106
5405
  {
5107
5406
  className: cn(
@@ -5115,148 +5414,12 @@ var Switch = React43.forwardRef(
5115
5414
  }
5116
5415
  )
5117
5416
  ),
5118
- label && /* @__PURE__ */ React43.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
5417
+ label && /* @__PURE__ */ React44.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
5119
5418
  );
5120
5419
  }
5121
5420
  );
5122
5421
  Switch.displayName = SwitchPrimitives.Root.displayName;
5123
5422
 
5124
- // elements/checkbox/Checkbox.tsx
5125
- var React44 = __toESM(require("react"));
5126
- var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
5127
- var Checkbox = ({
5128
- id,
5129
- label,
5130
- sublabel,
5131
- helperText,
5132
- disabled,
5133
- size = "default",
5134
- radius = "inherit",
5135
- ...props
5136
- }) => {
5137
- let labelLineHeightStyles = {
5138
- xs: sublabel || helperText ? 0.5 : 0.1,
5139
- sm: 0.6,
5140
- default: 1,
5141
- md: 0.8,
5142
- lg: 0.9,
5143
- xl: 1
5144
- };
5145
- return /* @__PURE__ */ React44.createElement(
5146
- "div",
5147
- {
5148
- className: cn(
5149
- "hawa-flex hawa-gap-2",
5150
- size === "default" ? "hawa-items-top" : "hawa-items-center"
5151
- )
5152
- },
5153
- /* @__PURE__ */ React44.createElement(
5154
- CheckboxElement,
5155
- {
5156
- ...props,
5157
- size,
5158
- radius,
5159
- disabled,
5160
- id
5161
- }
5162
- ),
5163
- (label || helperText) && /* @__PURE__ */ React44.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React44.createElement(
5164
- "label",
5165
- {
5166
- htmlFor: id,
5167
- className: cn(
5168
- "hawa-w-fit hawa-select-none hawa-pt-0.5 hawa-text-sm hawa-font-medium",
5169
- disabled ? "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70 " : "hawa-cursor-pointer"
5170
- ),
5171
- style: {
5172
- // lineHeight: labelLineHeightStyles[size]
5173
- lineHeight: 1
5174
- }
5175
- },
5176
- label
5177
- ), sublabel && /* @__PURE__ */ React44.createElement(
5178
- "label",
5179
- {
5180
- htmlFor: id,
5181
- className: cn(
5182
- "hawa-w-fit hawa-select-none hawa-text-sm hawa-text-muted-foreground",
5183
- disabled ? "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70" : "hawa-cursor-pointer"
5184
- )
5185
- },
5186
- sublabel
5187
- ), helperText && !disabled && /* @__PURE__ */ React44.createElement(
5188
- "label",
5189
- {
5190
- htmlFor: id,
5191
- className: cn(
5192
- "hawa-w-fit hawa-select-none hawa-text-xs hawa-text-helper-color",
5193
- disabled && "hawa-cursor-not-allowed hawa-opacity-70"
5194
- )
5195
- },
5196
- helperText
5197
- ))
5198
- );
5199
- };
5200
- var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
5201
- let checkboxRadius = {
5202
- none: "hawa-rounded-none",
5203
- inherit: "hawa-rounded-sm",
5204
- full: "hawa-rounded-full"
5205
- };
5206
- let checkboxSizes = {
5207
- xs: "hawa-w-3 hawa-h-3",
5208
- sm: "hawa-w-6 hawa-h-6",
5209
- default: "hawa-icon",
5210
- md: "hawa-w-8 hawa-h-8",
5211
- lg: "hawa-w-10 hawa-h-10",
5212
- xl: "hawa-w-12 hawa-h-12"
5213
- };
5214
- let checkboxIndicatorSizes = {
5215
- xs: "0.5em",
5216
- default: "0.60em",
5217
- sm: "0.75em",
5218
- md: "0.875em",
5219
- lg: "1em",
5220
- xl: "1.25em"
5221
- };
5222
- return /* @__PURE__ */ React44.createElement(
5223
- CheckboxPrimitive.Root,
5224
- {
5225
- ref,
5226
- className: cn(
5227
- "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",
5228
- checkboxSizes[size],
5229
- checkboxRadius[radius],
5230
- className
5231
- ),
5232
- ...props
5233
- },
5234
- /* @__PURE__ */ React44.createElement(
5235
- CheckboxPrimitive.Indicator,
5236
- {
5237
- className: cn(
5238
- "hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
5239
- )
5240
- },
5241
- /* @__PURE__ */ React44.createElement(
5242
- "svg",
5243
- {
5244
- "aria-label": "Check Mark",
5245
- stroke: "currentColor",
5246
- fill: "currentColor",
5247
- strokeWidth: "0",
5248
- viewBox: "0 0 512 512",
5249
- height: checkboxIndicatorSizes[size],
5250
- width: checkboxIndicatorSizes[size]
5251
- },
5252
- /* @__PURE__ */ React44.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" })
5253
- ),
5254
- " "
5255
- )
5256
- );
5257
- });
5258
- CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
5259
-
5260
5423
  // elements/progress/Progress.tsx
5261
5424
  var React45 = __toESM(require("react"));
5262
5425
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));