@sikka/hawa 0.34.8-next → 0.35.1-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 +41 -5
  64. package/dist/datePicker/index.d.ts +41 -5
  65. package/dist/datePicker/index.js +48 -17
  66. package/dist/datePicker/index.js.map +1 -1
  67. package/dist/datePicker/index.mjs +48 -17
  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
@@ -8,7 +8,7 @@ import {
8
8
  Label,
9
9
  Skeleton,
10
10
  cn
11
- } from "./chunk-QVF3VLB7.mjs";
11
+ } from "./chunk-IDKXEJET.mjs";
12
12
 
13
13
  // elements/alert/Alert.tsx
14
14
  import React, { useRef, useState, useEffect } from "react";
@@ -221,7 +221,7 @@ var Input = forwardRef(
221
221
  )
222
222
  },
223
223
  props.outsidePrefix
224
- ), props.isLoading ? /* @__PURE__ */ React2.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React2.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React2.createElement(React2.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React2.createElement(
224
+ ), props.isLoading ? /* @__PURE__ */ React2.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ React2.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React2.createElement(React2.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React2.createElement(
225
225
  "div",
226
226
  {
227
227
  className: cn(
@@ -2479,9 +2479,75 @@ var PinInput = ({
2479
2479
  ));
2480
2480
  };
2481
2481
 
2482
+ // elements/popover/Popover.tsx
2483
+ import * as React8 from "react";
2484
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
2485
+ var PopoverContent = React8.forwardRef(
2486
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React8.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React8.createElement(
2487
+ PopoverPrimitive.Content,
2488
+ {
2489
+ ref,
2490
+ align,
2491
+ sideOffset,
2492
+ className: cn(
2493
+ "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
2494
+ className
2495
+ ),
2496
+ ...props
2497
+ }
2498
+ ))
2499
+ );
2500
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
2501
+ var Popover = ({
2502
+ trigger,
2503
+ children,
2504
+ className,
2505
+ align = "center",
2506
+ side,
2507
+ sideOffset = 4,
2508
+ open,
2509
+ width = "default",
2510
+ disableTrigger,
2511
+ contentProps,
2512
+ triggerProps,
2513
+ ...props
2514
+ }) => {
2515
+ let widthStyles = {
2516
+ trigger: "var(--radix-popover-trigger-width)",
2517
+ default: "auto"
2518
+ };
2519
+ return /* @__PURE__ */ React8.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React8.createElement(
2520
+ PopoverPrimitive.Trigger,
2521
+ {
2522
+ className: "hawa-w-full",
2523
+ disabled: disableTrigger,
2524
+ ...triggerProps
2525
+ },
2526
+ trigger
2527
+ ), /* @__PURE__ */ React8.createElement(
2528
+ PopoverContent,
2529
+ {
2530
+ side,
2531
+ className,
2532
+ align,
2533
+ sideOffset,
2534
+ style: {
2535
+ width: widthStyles[width],
2536
+ maxWidth: "var(--radix-popover-content-available-width)",
2537
+ maxHeight: "var(--radix-popover-content-available-height)"
2538
+ },
2539
+ ...contentProps
2540
+ },
2541
+ children
2542
+ ));
2543
+ };
2544
+ var PopoverTrigger = PopoverPrimitive.Trigger;
2545
+ var PopoverPortal = PopoverPrimitive.Portal;
2546
+ var PopoverRoot = PopoverPrimitive.Root;
2547
+
2482
2548
  // elements/radio/Radio.tsx
2483
- import React8, { useState as useState4, useRef as useRef3, useEffect as useEffect4, forwardRef as forwardRef3 } from "react";
2484
- var Radio = forwardRef3(
2549
+ import React9, { useState as useState4, useRef as useRef3, useEffect as useEffect4, forwardRef as forwardRef4 } from "react";
2550
+ var Radio = forwardRef4(
2485
2551
  ({
2486
2552
  design = "default",
2487
2553
  width = "default",
@@ -2495,9 +2561,6 @@ var Radio = forwardRef3(
2495
2561
  ...props
2496
2562
  }, ref) => {
2497
2563
  var _a, _b, _c;
2498
- const [selectedOption, setSelectedOption] = useState4(
2499
- props.defaultValue || props.value
2500
- );
2501
2564
  let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
2502
2565
  let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
2503
2566
  ${props.disabled ? "" : "hover:hawa-bg-muted"}`;
@@ -2516,9 +2579,13 @@ var Radio = forwardRef3(
2516
2579
  default: "hawa-max-w-fit",
2517
2580
  full: "hawa-w-full"
2518
2581
  };
2519
- const [parentDirection, setParentDirection] = React8.useState(
2582
+ const [parentDirection, setParentDirection] = React9.useState(
2520
2583
  null
2521
2584
  );
2585
+ const [selectedOption, setSelectedOption] = useState4(
2586
+ props.defaultValue || props.value
2587
+ );
2588
+ const [openTooltip, setOpenTooltip] = useState4(null);
2522
2589
  const parentRef = useRef3(null);
2523
2590
  useEffect4(() => {
2524
2591
  var _a2;
@@ -2536,9 +2603,17 @@ var Radio = forwardRef3(
2536
2603
  console.log("onChange was not provided");
2537
2604
  }
2538
2605
  };
2606
+ const radio_option_tabs_styling = [
2607
+ "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
2608
+ !props.disabled && "hawa-cursor-pointer",
2609
+ orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
2610
+ orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
2611
+ orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
2612
+ tabSizeStyle[size]
2613
+ ];
2539
2614
  switch (design) {
2540
2615
  case "tabs":
2541
- return /* @__PURE__ */ React8.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ React8.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React8.createElement(
2616
+ return /* @__PURE__ */ React9.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ React9.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React9.createElement(
2542
2617
  "ul",
2543
2618
  {
2544
2619
  ref: parentRef,
@@ -2550,30 +2625,60 @@ var Radio = forwardRef3(
2550
2625
  tabsContainerClassName
2551
2626
  )
2552
2627
  },
2553
- (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ React8.createElement(
2554
- "li",
2555
- {
2556
- "aria-current": "page",
2557
- onClick: () => {
2558
- if (props.disabled)
2559
- return;
2560
- handleChange(opt);
2628
+ (_b = props.options) == null ? void 0 : _b.map((opt, o) => {
2629
+ return opt.tooltip ? /* @__PURE__ */ React9.createElement(
2630
+ PopoverRoot,
2631
+ {
2632
+ key: o,
2633
+ open: o === openTooltip,
2634
+ onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
2561
2635
  },
2562
- className: cn(
2563
- "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
2564
- !props.disabled && "hawa-cursor-pointer",
2565
- orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
2566
- orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
2567
- orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
2568
- tabSizeStyle[size],
2569
- selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
2636
+ /* @__PURE__ */ React9.createElement(
2637
+ PopoverTrigger,
2638
+ {
2639
+ onMouseEnter: () => setOpenTooltip(o),
2640
+ onMouseLeave: () => setOpenTooltip(null),
2641
+ asChild: true
2642
+ },
2643
+ /* @__PURE__ */ React9.createElement(
2644
+ "li",
2645
+ {
2646
+ "aria-current": "page",
2647
+ onClick: () => {
2648
+ if (props.disabled || opt.disabled)
2649
+ return;
2650
+ handleChange(opt);
2651
+ },
2652
+ className: cn(
2653
+ ...radio_option_tabs_styling,
2654
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
2655
+ )
2656
+ },
2657
+ opt.icon && opt.icon,
2658
+ opt.label
2659
+ )
2570
2660
  ),
2571
- key: o
2572
- },
2573
- opt.icon && opt.icon,
2574
- opt.label
2575
- ))
2576
- ), !forceHideHelperText && /* @__PURE__ */ React8.createElement(
2661
+ /* @__PURE__ */ React9.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
2662
+ ) : /* @__PURE__ */ React9.createElement(
2663
+ "li",
2664
+ {
2665
+ key: o,
2666
+ "aria-current": "page",
2667
+ onClick: () => {
2668
+ if (props.disabled || opt.disabled)
2669
+ return;
2670
+ handleChange(opt);
2671
+ },
2672
+ className: cn(
2673
+ ...radio_option_tabs_styling,
2674
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
2675
+ )
2676
+ },
2677
+ opt.icon && opt.icon,
2678
+ opt.label
2679
+ );
2680
+ })
2681
+ ), !forceHideHelperText && /* @__PURE__ */ React9.createElement(
2577
2682
  "p",
2578
2683
  {
2579
2684
  className: cn(
@@ -2584,7 +2689,7 @@ var Radio = forwardRef3(
2584
2689
  props.helperText
2585
2690
  ));
2586
2691
  case "bordered":
2587
- return /* @__PURE__ */ React8.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React8.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ React8.createElement(
2692
+ return /* @__PURE__ */ React9.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React9.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ React9.createElement(
2588
2693
  "div",
2589
2694
  {
2590
2695
  className: cn(
@@ -2593,7 +2698,7 @@ var Radio = forwardRef3(
2593
2698
  ),
2594
2699
  key: i + 1
2595
2700
  },
2596
- /* @__PURE__ */ React8.createElement(
2701
+ /* @__PURE__ */ React9.createElement(
2597
2702
  "input",
2598
2703
  {
2599
2704
  disabled: opt.disabled,
@@ -2604,7 +2709,7 @@ var Radio = forwardRef3(
2604
2709
  onChange: () => handleChange(opt)
2605
2710
  }
2606
2711
  ),
2607
- /* @__PURE__ */ React8.createElement(
2712
+ /* @__PURE__ */ React9.createElement(
2608
2713
  "label",
2609
2714
  {
2610
2715
  htmlFor: opt.value.toString(),
@@ -2617,7 +2722,7 @@ var Radio = forwardRef3(
2617
2722
  )
2618
2723
  ))));
2619
2724
  case "cards":
2620
- return /* @__PURE__ */ React8.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React8.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React8.createElement(
2725
+ return /* @__PURE__ */ React9.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React9.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React9.createElement(
2621
2726
  "input",
2622
2727
  {
2623
2728
  type: "radio",
@@ -2628,7 +2733,7 @@ var Radio = forwardRef3(
2628
2733
  required: true,
2629
2734
  disabled: opt.disabled
2630
2735
  }
2631
- ), /* @__PURE__ */ React8.createElement(
2736
+ ), /* @__PURE__ */ React9.createElement(
2632
2737
  "label",
2633
2738
  {
2634
2739
  htmlFor: opt.value.toString(),
@@ -2637,10 +2742,10 @@ var Radio = forwardRef3(
2637
2742
  opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
2638
2743
  )
2639
2744
  },
2640
- /* @__PURE__ */ React8.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ React8.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ React8.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
2745
+ /* @__PURE__ */ React9.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ React9.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ React9.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
2641
2746
  ))));
2642
2747
  default:
2643
- return /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React8.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React8.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React8.createElement(
2748
+ return /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React9.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React9.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React9.createElement(
2644
2749
  "div",
2645
2750
  {
2646
2751
  className: cn(
@@ -2649,7 +2754,7 @@ var Radio = forwardRef3(
2649
2754
  ),
2650
2755
  key: i + 1
2651
2756
  },
2652
- /* @__PURE__ */ React8.createElement(
2757
+ /* @__PURE__ */ React9.createElement(
2653
2758
  "input",
2654
2759
  {
2655
2760
  disabled: opt.disabled,
@@ -2660,7 +2765,7 @@ var Radio = forwardRef3(
2660
2765
  onChange: () => handleChange(opt)
2661
2766
  }
2662
2767
  ),
2663
- /* @__PURE__ */ React8.createElement(
2768
+ /* @__PURE__ */ React9.createElement(
2664
2769
  "label",
2665
2770
  {
2666
2771
  htmlFor: opt.value.toString(),
@@ -2671,7 +2776,7 @@ var Radio = forwardRef3(
2671
2776
  },
2672
2777
  opt.label
2673
2778
  )
2674
- ))), /* @__PURE__ */ React8.createElement(
2779
+ ))), /* @__PURE__ */ React9.createElement(
2675
2780
  "p",
2676
2781
  {
2677
2782
  className: cn(
@@ -2686,8 +2791,8 @@ var Radio = forwardRef3(
2686
2791
  );
2687
2792
 
2688
2793
  // elements/textarea/Textarea.tsx
2689
- import * as React9 from "react";
2690
- var Textarea = React9.forwardRef(
2794
+ import * as React10 from "react";
2795
+ var Textarea = React10.forwardRef(
2691
2796
  ({
2692
2797
  className,
2693
2798
  classNames,
@@ -2699,7 +2804,7 @@ var Textarea = React9.forwardRef(
2699
2804
  isLoading,
2700
2805
  ...props
2701
2806
  }, ref) => {
2702
- return /* @__PURE__ */ React9.createElement(
2807
+ return /* @__PURE__ */ React10.createElement(
2703
2808
  "div",
2704
2809
  {
2705
2810
  className: cn(
@@ -2708,7 +2813,7 @@ var Textarea = React9.forwardRef(
2708
2813
  className
2709
2814
  )
2710
2815
  },
2711
- /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React9.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React9.createElement(
2816
+ /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React10.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React10.createElement(
2712
2817
  "div",
2713
2818
  {
2714
2819
  className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
@@ -2717,7 +2822,7 @@ var Textarea = React9.forwardRef(
2717
2822
  "/",
2718
2823
  textareaProps == null ? void 0 : textareaProps.maxLength
2719
2824
  )),
2720
- isLoading ? /* @__PURE__ */ React9.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React9.createElement(
2825
+ isLoading ? /* @__PURE__ */ React10.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React10.createElement(
2721
2826
  "textarea",
2722
2827
  {
2723
2828
  ...textareaProps,
@@ -2728,7 +2833,7 @@ var Textarea = React9.forwardRef(
2728
2833
  ref
2729
2834
  }
2730
2835
  ),
2731
- /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React9.createElement(
2836
+ /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React10.createElement(
2732
2837
  "p",
2733
2838
  {
2734
2839
  className: cn(
@@ -2737,78 +2842,12 @@ var Textarea = React9.forwardRef(
2737
2842
  )
2738
2843
  },
2739
2844
  props.helperText
2740
- ), showCount && countPosition === "bottom" && /* @__PURE__ */ React9.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))
2845
+ ), showCount && countPosition === "bottom" && /* @__PURE__ */ React10.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))
2741
2846
  );
2742
2847
  }
2743
2848
  );
2744
2849
  Textarea.displayName = "Textarea";
2745
2850
 
2746
- // elements/popover/Popover.tsx
2747
- import * as React10 from "react";
2748
- import * as PopoverPrimitive from "@radix-ui/react-popover";
2749
- var PopoverContent = React10.forwardRef(
2750
- ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React10.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React10.createElement(
2751
- PopoverPrimitive.Content,
2752
- {
2753
- ref,
2754
- align,
2755
- sideOffset,
2756
- className: cn(
2757
- "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
2758
- className
2759
- ),
2760
- ...props
2761
- }
2762
- ))
2763
- );
2764
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
2765
- var Popover = ({
2766
- trigger,
2767
- children,
2768
- className,
2769
- align = "center",
2770
- side,
2771
- sideOffset = 4,
2772
- open,
2773
- width = "default",
2774
- disableTrigger,
2775
- contentProps,
2776
- triggerProps,
2777
- ...props
2778
- }) => {
2779
- let widthStyles = {
2780
- trigger: "var(--radix-popover-trigger-width)",
2781
- default: "auto"
2782
- };
2783
- return /* @__PURE__ */ React10.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React10.createElement(
2784
- PopoverPrimitive.Trigger,
2785
- {
2786
- className: "hawa-w-full",
2787
- disabled: disableTrigger,
2788
- ...triggerProps
2789
- },
2790
- trigger
2791
- ), /* @__PURE__ */ React10.createElement(
2792
- PopoverContent,
2793
- {
2794
- side,
2795
- className,
2796
- align,
2797
- sideOffset,
2798
- style: {
2799
- width: widthStyles[width],
2800
- maxWidth: "var(--radix-popover-content-available-width)",
2801
- maxHeight: "var(--radix-popover-content-available-height)"
2802
- },
2803
- ...contentProps
2804
- },
2805
- children
2806
- ));
2807
- };
2808
- var PopoverTrigger = PopoverPrimitive.Trigger;
2809
- var PopoverPortal = PopoverPrimitive.Portal;
2810
- var PopoverRoot = PopoverPrimitive.Root;
2811
-
2812
2851
  // elements/scrollArea/ScrollArea.tsx
2813
2852
  import * as React11 from "react";
2814
2853
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
@@ -3275,13 +3314,13 @@ export {
3275
3314
  Checkbox,
3276
3315
  StopPropagationWrapper,
3277
3316
  PinInput,
3278
- Radio,
3279
- Textarea,
3280
3317
  PopoverContent,
3281
3318
  Popover,
3282
3319
  PopoverTrigger,
3283
3320
  PopoverPortal,
3284
3321
  PopoverRoot,
3322
+ Radio,
3323
+ Textarea,
3285
3324
  ScrollArea,
3286
3325
  ScrollBar,
3287
3326
  Tabs,
@@ -3,7 +3,7 @@ import {
3
3
  Label,
4
4
  Skeleton,
5
5
  cn
6
- } from "./chunk-OS2UOK5C.mjs";
6
+ } from "./chunk-DABX3SU6.mjs";
7
7
 
8
8
  // elements/select/Select.tsx
9
9
  import React from "react";