@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
@@ -54,11 +54,23 @@ function cn(...inputs) {
54
54
  var z = __toESM(require("zod"));
55
55
 
56
56
  // elements/button/Button.tsx
57
- var React4 = __toESM(require("react"));
57
+ var React5 = __toESM(require("react"));
58
58
  var import_class_variance_authority = require("class-variance-authority");
59
59
 
60
+ // elements/helperText/HelperText.tsx
61
+ var HelperText = ({ helperText }) => /* @__PURE__ */ React.createElement(
62
+ "p",
63
+ {
64
+ className: cn(
65
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
66
+ helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
67
+ )
68
+ },
69
+ helperText
70
+ );
71
+
60
72
  // elements/label/Label.tsx
61
- var React2 = __toESM(require("react"));
73
+ var React3 = __toESM(require("react"));
62
74
 
63
75
  // elements/tooltip/Tooltip.tsx
64
76
  var import_react = __toESM(require("react"));
@@ -132,7 +144,7 @@ var Tooltip = ({
132
144
  };
133
145
 
134
146
  // elements/label/Label.tsx
135
- var Label = React2.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React2.createElement(
147
+ var Label = React3.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React3.createElement(
136
148
  "label",
137
149
  {
138
150
  ref,
@@ -143,8 +155,8 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
143
155
  ...props
144
156
  },
145
157
  children,
146
- required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
147
- ), hint && /* @__PURE__ */ React2.createElement(
158
+ required && /* @__PURE__ */ React3.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
159
+ ), hint && /* @__PURE__ */ React3.createElement(
148
160
  Tooltip,
149
161
  {
150
162
  content: hint,
@@ -154,7 +166,7 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
154
166
  onClick: (event) => event.preventDefault()
155
167
  }
156
168
  },
157
- /* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement(
169
+ /* @__PURE__ */ React3.createElement("div", null, /* @__PURE__ */ React3.createElement(
158
170
  "svg",
159
171
  {
160
172
  xmlns: "http://www.w3.org/2000/svg",
@@ -166,9 +178,9 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
166
178
  strokeLinecap: "round",
167
179
  strokeLinejoin: "round"
168
180
  },
169
- /* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
170
- /* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
171
- /* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
181
+ /* @__PURE__ */ React3.createElement("circle", { cx: "12", cy: "12", r: "10" }),
182
+ /* @__PURE__ */ React3.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
183
+ /* @__PURE__ */ React3.createElement("path", { d: "M12 17h.01" })
172
184
  ))
173
185
  )));
174
186
  Label.displayName = "Label";
@@ -419,13 +431,10 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
419
431
  smallIcon: "hawa-h-7 hawa-w-7"
420
432
  }
421
433
  },
422
- defaultVariants: {
423
- variant: "default",
424
- size: "default"
425
- }
434
+ defaultVariants: { variant: "default", size: "default" }
426
435
  }
427
436
  );
428
- var Button = React4.forwardRef(
437
+ var Button = React5.forwardRef(
429
438
  ({
430
439
  className,
431
440
  label,
@@ -435,11 +444,13 @@ var Button = React4.forwardRef(
435
444
  centered = true,
436
445
  isLoading,
437
446
  children,
447
+ labelProps,
448
+ showHelperText = false,
438
449
  ...props
439
450
  }, ref) => {
440
451
  const Comp = "button";
441
452
  const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
442
- return /* @__PURE__ */ React4.createElement("div", { className: "flex flex-col" }, label && /* @__PURE__ */ React4.createElement(Label, { className: "hawa-mb-2" }, label), /* @__PURE__ */ React4.createElement(
453
+ return /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React5.createElement(
443
454
  Comp,
444
455
  {
445
456
  className: cn(
@@ -449,7 +460,7 @@ var Button = React4.forwardRef(
449
460
  ref,
450
461
  ...props
451
462
  },
452
- isLoading ? /* @__PURE__ */ React4.createElement(
463
+ isLoading ? /* @__PURE__ */ React5.createElement(
453
464
  Loading,
454
465
  {
455
466
  design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
@@ -458,14 +469,14 @@ var Button = React4.forwardRef(
458
469
  size: size === "sm" || size === "xs" ? "xs" : "button"
459
470
  }
460
471
  ) : children
461
- ));
472
+ ), showHelperText && /* @__PURE__ */ React5.createElement(HelperText, { helperText: props.helperText }));
462
473
  }
463
474
  );
464
475
  Button.displayName = "Button";
465
476
 
466
477
  // elements/card/Card.tsx
467
- var React5 = __toESM(require("react"));
468
- var Card = React5.forwardRef(
478
+ var React6 = __toESM(require("react"));
479
+ var Card = React6.forwardRef(
469
480
  ({
470
481
  className,
471
482
  variant = "default",
@@ -484,7 +495,7 @@ var Card = React5.forwardRef(
484
495
  clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
485
496
  )
486
497
  };
487
- return /* @__PURE__ */ React5.createElement(
498
+ return /* @__PURE__ */ React6.createElement(
488
499
  "div",
489
500
  {
490
501
  ref,
@@ -494,7 +505,7 @@ var Card = React5.forwardRef(
494
505
  );
495
506
  }
496
507
  );
497
- var CardHeader = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
508
+ var CardHeader = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
498
509
  "div",
499
510
  {
500
511
  ref,
@@ -505,7 +516,7 @@ var CardHeader = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE_
505
516
  ...props
506
517
  }
507
518
  ));
508
- var CardTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
519
+ var CardTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
509
520
  "h3",
510
521
  {
511
522
  ref,
@@ -513,7 +524,7 @@ var CardTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__
513
524
  ...props
514
525
  }
515
526
  ));
516
- var CardDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
527
+ var CardDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
517
528
  "p",
518
529
  {
519
530
  ref,
@@ -521,8 +532,8 @@ var CardDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__
521
532
  ...props
522
533
  }
523
534
  ));
524
- var CardContent = React5.forwardRef(
525
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
535
+ var CardContent = React6.forwardRef(
536
+ ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
526
537
  "div",
527
538
  {
528
539
  ref,
@@ -535,7 +546,7 @@ var CardContent = React5.forwardRef(
535
546
  }
536
547
  )
537
548
  );
538
- var CardFooter = React5.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React5.createElement(
549
+ var CardFooter = React6.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React6.createElement(
539
550
  "div",
540
551
  {
541
552
  ref,
@@ -556,6 +567,73 @@ Card.displayName = "Card";
556
567
 
557
568
  // elements/radio/Radio.tsx
558
569
  var import_react3 = __toESM(require("react"));
570
+
571
+ // elements/popover/Popover.tsx
572
+ var React7 = __toESM(require("react"));
573
+ var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
574
+ var PopoverContent = React7.forwardRef(
575
+ ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React7.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React7.createElement(
576
+ PopoverPrimitive.Content,
577
+ {
578
+ ref,
579
+ align,
580
+ sideOffset,
581
+ className: cn(
582
+ "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",
583
+ className
584
+ ),
585
+ ...props
586
+ }
587
+ ))
588
+ );
589
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
590
+ var Popover = ({
591
+ trigger,
592
+ children,
593
+ className,
594
+ align = "center",
595
+ side,
596
+ sideOffset = 4,
597
+ open,
598
+ width = "default",
599
+ disableTrigger,
600
+ contentProps,
601
+ triggerProps,
602
+ ...props
603
+ }) => {
604
+ let widthStyles = {
605
+ trigger: "var(--radix-popover-trigger-width)",
606
+ default: "auto"
607
+ };
608
+ return /* @__PURE__ */ React7.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React7.createElement(
609
+ PopoverPrimitive.Trigger,
610
+ {
611
+ className: "hawa-w-full",
612
+ disabled: disableTrigger,
613
+ ...triggerProps
614
+ },
615
+ trigger
616
+ ), /* @__PURE__ */ React7.createElement(
617
+ PopoverContent,
618
+ {
619
+ side,
620
+ className,
621
+ align,
622
+ sideOffset,
623
+ style: {
624
+ width: widthStyles[width],
625
+ maxWidth: "var(--radix-popover-content-available-width)",
626
+ maxHeight: "var(--radix-popover-content-available-height)"
627
+ },
628
+ ...contentProps
629
+ },
630
+ children
631
+ ));
632
+ };
633
+ var PopoverTrigger = PopoverPrimitive.Trigger;
634
+ var PopoverRoot = PopoverPrimitive.Root;
635
+
636
+ // elements/radio/Radio.tsx
559
637
  var Radio = (0, import_react3.forwardRef)(
560
638
  ({
561
639
  design = "default",
@@ -570,9 +648,6 @@ var Radio = (0, import_react3.forwardRef)(
570
648
  ...props
571
649
  }, ref) => {
572
650
  var _a, _b, _c;
573
- const [selectedOption, setSelectedOption] = (0, import_react3.useState)(
574
- props.defaultValue || props.value
575
- );
576
651
  let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
577
652
  let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
578
653
  ${props.disabled ? "" : "hover:hawa-bg-muted"}`;
@@ -594,6 +669,10 @@ var Radio = (0, import_react3.forwardRef)(
594
669
  const [parentDirection, setParentDirection] = import_react3.default.useState(
595
670
  null
596
671
  );
672
+ const [selectedOption, setSelectedOption] = (0, import_react3.useState)(
673
+ props.defaultValue || props.value
674
+ );
675
+ const [openTooltip, setOpenTooltip] = (0, import_react3.useState)(null);
597
676
  const parentRef = (0, import_react3.useRef)(null);
598
677
  (0, import_react3.useEffect)(() => {
599
678
  var _a2;
@@ -611,6 +690,14 @@ var Radio = (0, import_react3.forwardRef)(
611
690
  console.log("onChange was not provided");
612
691
  }
613
692
  };
693
+ const radio_option_tabs_styling = [
694
+ "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
695
+ !props.disabled && "hawa-cursor-pointer",
696
+ orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
697
+ orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
698
+ orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
699
+ tabSizeStyle[size]
700
+ ];
614
701
  switch (design) {
615
702
  case "tabs":
616
703
  return /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react3.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react3.default.createElement(
@@ -625,29 +712,59 @@ var Radio = (0, import_react3.forwardRef)(
625
712
  tabsContainerClassName
626
713
  )
627
714
  },
628
- (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react3.default.createElement(
629
- "li",
630
- {
631
- "aria-current": "page",
632
- onClick: () => {
633
- if (props.disabled)
634
- return;
635
- handleChange(opt);
715
+ (_b = props.options) == null ? void 0 : _b.map((opt, o) => {
716
+ return opt.tooltip ? /* @__PURE__ */ import_react3.default.createElement(
717
+ PopoverRoot,
718
+ {
719
+ key: o,
720
+ open: o === openTooltip,
721
+ onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
636
722
  },
637
- className: cn(
638
- "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
639
- !props.disabled && "hawa-cursor-pointer",
640
- orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
641
- orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
642
- orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
643
- tabSizeStyle[size],
644
- selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
723
+ /* @__PURE__ */ import_react3.default.createElement(
724
+ PopoverTrigger,
725
+ {
726
+ onMouseEnter: () => setOpenTooltip(o),
727
+ onMouseLeave: () => setOpenTooltip(null),
728
+ asChild: true
729
+ },
730
+ /* @__PURE__ */ import_react3.default.createElement(
731
+ "li",
732
+ {
733
+ "aria-current": "page",
734
+ onClick: () => {
735
+ if (props.disabled || opt.disabled)
736
+ return;
737
+ handleChange(opt);
738
+ },
739
+ className: cn(
740
+ ...radio_option_tabs_styling,
741
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
742
+ )
743
+ },
744
+ opt.icon && opt.icon,
745
+ opt.label
746
+ )
645
747
  ),
646
- key: o
647
- },
648
- opt.icon && opt.icon,
649
- opt.label
650
- ))
748
+ /* @__PURE__ */ import_react3.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
749
+ ) : /* @__PURE__ */ import_react3.default.createElement(
750
+ "li",
751
+ {
752
+ key: o,
753
+ "aria-current": "page",
754
+ onClick: () => {
755
+ if (props.disabled || opt.disabled)
756
+ return;
757
+ handleChange(opt);
758
+ },
759
+ className: cn(
760
+ ...radio_option_tabs_styling,
761
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
762
+ )
763
+ },
764
+ opt.icon && opt.icon,
765
+ opt.label
766
+ );
767
+ })
651
768
  ), !forceHideHelperText && /* @__PURE__ */ import_react3.default.createElement(
652
769
  "p",
653
770
  {
@@ -761,7 +878,7 @@ var Radio = (0, import_react3.forwardRef)(
761
878
  );
762
879
 
763
880
  // elements/textarea/Textarea.tsx
764
- var React8 = __toESM(require("react"));
881
+ var React10 = __toESM(require("react"));
765
882
 
766
883
  // elements/skeleton/Skeleton.tsx
767
884
  var import_react4 = __toESM(require("react"));
@@ -799,7 +916,7 @@ function Skeleton({
799
916
  }
800
917
 
801
918
  // elements/textarea/Textarea.tsx
802
- var Textarea = React8.forwardRef(
919
+ var Textarea = React10.forwardRef(
803
920
  ({
804
921
  className,
805
922
  classNames,
@@ -811,7 +928,7 @@ var Textarea = React8.forwardRef(
811
928
  isLoading,
812
929
  ...props
813
930
  }, ref) => {
814
- return /* @__PURE__ */ React8.createElement(
931
+ return /* @__PURE__ */ React10.createElement(
815
932
  "div",
816
933
  {
817
934
  className: cn(
@@ -820,7 +937,7 @@ var Textarea = React8.forwardRef(
820
937
  className
821
938
  )
822
939
  },
823
- /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React8.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React8.createElement(
940
+ /* @__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(
824
941
  "div",
825
942
  {
826
943
  className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
@@ -829,7 +946,7 @@ var Textarea = React8.forwardRef(
829
946
  "/",
830
947
  textareaProps == null ? void 0 : textareaProps.maxLength
831
948
  )),
832
- isLoading ? /* @__PURE__ */ React8.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React8.createElement(
949
+ isLoading ? /* @__PURE__ */ React10.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React10.createElement(
833
950
  "textarea",
834
951
  {
835
952
  ...textareaProps,
@@ -840,7 +957,7 @@ var Textarea = React8.forwardRef(
840
957
  ref
841
958
  }
842
959
  ),
843
- /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React8.createElement(
960
+ /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React10.createElement(
844
961
  "p",
845
962
  {
846
963
  className: cn(
@@ -849,7 +966,7 @@ var Textarea = React8.forwardRef(
849
966
  )
850
967
  },
851
968
  props.helperText
852
- ), showCount && countPosition === "bottom" && /* @__PURE__ */ React8.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))
969
+ ), 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))
853
970
  );
854
971
  }
855
972
  );
@@ -1126,69 +1243,6 @@ var FeedbackRating = ({
1126
1243
  // blocks/feedback/FeedbackEmoji.tsx
1127
1244
  var import_react10 = __toESM(require("react"));
1128
1245
 
1129
- // elements/popover/Popover.tsx
1130
- var React11 = __toESM(require("react"));
1131
- var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
1132
- var PopoverContent = React11.forwardRef(
1133
- ({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React11.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React11.createElement(
1134
- PopoverPrimitive.Content,
1135
- {
1136
- ref,
1137
- align,
1138
- sideOffset,
1139
- className: cn(
1140
- "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",
1141
- className
1142
- ),
1143
- ...props
1144
- }
1145
- ))
1146
- );
1147
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1148
- var Popover = ({
1149
- trigger,
1150
- children,
1151
- className,
1152
- align = "center",
1153
- side,
1154
- sideOffset = 4,
1155
- open,
1156
- width = "default",
1157
- disableTrigger,
1158
- contentProps,
1159
- triggerProps,
1160
- ...props
1161
- }) => {
1162
- let widthStyles = {
1163
- trigger: "var(--radix-popover-trigger-width)",
1164
- default: "auto"
1165
- };
1166
- return /* @__PURE__ */ React11.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React11.createElement(
1167
- PopoverPrimitive.Trigger,
1168
- {
1169
- className: "hawa-w-full",
1170
- disabled: disableTrigger,
1171
- ...triggerProps
1172
- },
1173
- trigger
1174
- ), /* @__PURE__ */ React11.createElement(
1175
- PopoverContent,
1176
- {
1177
- side,
1178
- className,
1179
- align,
1180
- sideOffset,
1181
- style: {
1182
- width: widthStyles[width],
1183
- maxWidth: "var(--radix-popover-content-available-width)",
1184
- maxHeight: "var(--radix-popover-content-available-height)"
1185
- },
1186
- ...contentProps
1187
- },
1188
- children
1189
- ));
1190
- };
1191
-
1192
1246
  // icons/Emojis.tsx
1193
1247
  var import_react7 = __toESM(require("react"));
1194
1248
  var VeryGoodEmoji = () => /* @__PURE__ */ import_react7.default.createElement(