@sikka/hawa 0.43.5-next → 0.44.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 (127) hide show
  1. package/dist/alert/index.d.mts +9 -1
  2. package/dist/alert/index.d.ts +9 -1
  3. package/dist/alert/index.js +40 -36
  4. package/dist/alert/index.js.map +1 -1
  5. package/dist/alert/index.mjs +40 -36
  6. package/dist/alert/index.mjs.map +1 -1
  7. package/dist/appLayout/index.js +11 -22
  8. package/dist/appLayout/index.js.map +1 -1
  9. package/dist/appLayout/index.mjs +11 -22
  10. package/dist/appLayout/index.mjs.map +1 -1
  11. package/dist/backToTop/index.js +11 -22
  12. package/dist/backToTop/index.js.map +1 -1
  13. package/dist/backToTop/index.mjs +11 -22
  14. package/dist/backToTop/index.mjs.map +1 -1
  15. package/dist/blocks/auth/index.js +40 -36
  16. package/dist/blocks/auth/index.mjs +33 -18
  17. package/dist/blocks/feedback/index.js +27 -30
  18. package/dist/blocks/feedback/index.mjs +5 -5
  19. package/dist/blocks/index.js +64 -52
  20. package/dist/blocks/index.mjs +2 -2
  21. package/dist/blocks/misc/index.js +11 -22
  22. package/dist/blocks/misc/index.mjs +5 -5
  23. package/dist/blocks/pricing/index.js +27 -30
  24. package/dist/blocks/pricing/index.mjs +4 -4
  25. package/dist/button/index.d.mts +1 -1
  26. package/dist/button/index.d.ts +1 -1
  27. package/dist/button/index.js +11 -22
  28. package/dist/button/index.js.map +1 -1
  29. package/dist/button/index.mjs +11 -22
  30. package/dist/button/index.mjs.map +1 -1
  31. package/dist/calendar/index.js +12 -23
  32. package/dist/calendar/index.js.map +1 -1
  33. package/dist/calendar/index.mjs +12 -23
  34. package/dist/calendar/index.mjs.map +1 -1
  35. package/dist/{chunk-RPJYSE6Y.mjs → chunk-3B7UZCET.mjs} +11 -22
  36. package/dist/{chunk-ZPNZUWM5.mjs → chunk-6LI35F6L.mjs} +11 -22
  37. package/dist/{chunk-PORTGNAK.mjs → chunk-DYYINLRJ.mjs} +1 -1
  38. package/dist/{chunk-WJ6XCEUI.mjs → chunk-FIUKVRL5.mjs} +1 -1
  39. package/dist/{chunk-VWJIORNH.mjs → chunk-FUYMZP4J.mjs} +1 -1
  40. package/dist/{chunk-P7TMXOPP.mjs → chunk-JDCQLGWW.mjs} +1 -1
  41. package/dist/{chunk-QBPDB7E2.mjs → chunk-JKZQWCAQ.mjs} +1 -1
  42. package/dist/{chunk-3MJGVWY2.mjs → chunk-MEXJAHQV.mjs} +55 -32
  43. package/dist/{chunk-QDZMNVKS.mjs → chunk-OE6XZ6LW.mjs} +17 -9
  44. package/dist/{chunk-ZWQWYHT4.mjs → chunk-XC6FSDW7.mjs} +1 -1
  45. package/dist/codeBlock/index.js +11 -22
  46. package/dist/codeBlock/index.js.map +1 -1
  47. package/dist/codeBlock/index.mjs +11 -22
  48. package/dist/codeBlock/index.mjs.map +1 -1
  49. package/dist/colorPicker/index.js +11 -22
  50. package/dist/colorPicker/index.js.map +1 -1
  51. package/dist/colorPicker/index.mjs +11 -22
  52. package/dist/colorPicker/index.mjs.map +1 -1
  53. package/dist/combobox/index.js +11 -22
  54. package/dist/combobox/index.js.map +1 -1
  55. package/dist/combobox/index.mjs +11 -22
  56. package/dist/combobox/index.mjs.map +1 -1
  57. package/dist/dataTable/index.js +11 -22
  58. package/dist/dataTable/index.js.map +1 -1
  59. package/dist/dataTable/index.mjs +11 -22
  60. package/dist/dataTable/index.mjs.map +1 -1
  61. package/dist/datePicker/index.d.mts +1 -1
  62. package/dist/datePicker/index.d.ts +1 -1
  63. package/dist/datePicker/index.js +22 -24
  64. package/dist/datePicker/index.js.map +1 -1
  65. package/dist/datePicker/index.mjs +22 -24
  66. package/dist/datePicker/index.mjs.map +1 -1
  67. package/dist/docsLayout/index.js +11 -22
  68. package/dist/docsLayout/index.js.map +1 -1
  69. package/dist/docsLayout/index.mjs +11 -22
  70. package/dist/docsLayout/index.mjs.map +1 -1
  71. package/dist/elements/index.d.mts +10 -2
  72. package/dist/elements/index.d.ts +10 -2
  73. package/dist/elements/index.js +65 -53
  74. package/dist/elements/index.mjs +3 -3
  75. package/dist/fileDropzone/index.js +40 -36
  76. package/dist/fileDropzone/index.js.map +1 -1
  77. package/dist/fileDropzone/index.mjs +40 -36
  78. package/dist/fileDropzone/index.mjs.map +1 -1
  79. package/dist/index.d.mts +9 -1
  80. package/dist/index.d.ts +9 -1
  81. package/dist/index.js +67 -55
  82. package/dist/index.mjs +67 -55
  83. package/dist/input/index.js +11 -22
  84. package/dist/input/index.js.map +1 -1
  85. package/dist/input/index.mjs +11 -22
  86. package/dist/input/index.mjs.map +1 -1
  87. package/dist/interfaceSettings/index.js +27 -30
  88. package/dist/interfaceSettings/index.js.map +1 -1
  89. package/dist/interfaceSettings/index.mjs +27 -30
  90. package/dist/interfaceSettings/index.mjs.map +1 -1
  91. package/dist/layout/index.js +11 -22
  92. package/dist/layout/index.mjs +2 -2
  93. package/dist/passwordInput/index.js +11 -22
  94. package/dist/passwordInput/index.js.map +1 -1
  95. package/dist/passwordInput/index.mjs +11 -22
  96. package/dist/passwordInput/index.mjs.map +1 -1
  97. package/dist/phoneInput/index.js +11 -22
  98. package/dist/phoneInput/index.js.map +1 -1
  99. package/dist/phoneInput/index.mjs +11 -22
  100. package/dist/phoneInput/index.mjs.map +1 -1
  101. package/dist/pinInput/index.js +11 -22
  102. package/dist/pinInput/index.js.map +1 -1
  103. package/dist/pinInput/index.mjs +11 -22
  104. package/dist/pinInput/index.mjs.map +1 -1
  105. package/dist/radio/index.js +27 -30
  106. package/dist/radio/index.js.map +1 -1
  107. package/dist/radio/index.mjs +27 -30
  108. package/dist/radio/index.mjs.map +1 -1
  109. package/dist/select/index.js +11 -22
  110. package/dist/select/index.js.map +1 -1
  111. package/dist/select/index.mjs +11 -22
  112. package/dist/select/index.mjs.map +1 -1
  113. package/dist/sortButton/index.js +11 -22
  114. package/dist/sortButton/index.js.map +1 -1
  115. package/dist/sortButton/index.mjs +11 -22
  116. package/dist/sortButton/index.mjs.map +1 -1
  117. package/dist/splitButton/index.d.mts +1 -1
  118. package/dist/splitButton/index.d.ts +1 -1
  119. package/dist/splitButton/index.js +11 -22
  120. package/dist/splitButton/index.js.map +1 -1
  121. package/dist/splitButton/index.mjs +11 -22
  122. package/dist/splitButton/index.mjs.map +1 -1
  123. package/dist/textarea/index.js +11 -22
  124. package/dist/textarea/index.js.map +1 -1
  125. package/dist/textarea/index.mjs +11 -22
  126. package/dist/textarea/index.mjs.map +1 -1
  127. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import {
3
3
  Input
4
- } from "../../chunk-QBPDB7E2.mjs";
4
+ } from "../../chunk-JKZQWCAQ.mjs";
5
5
  import {
6
6
  StopPropagationWrapper
7
7
  } from "../../chunk-47APBDKK.mjs";
8
8
  import {
9
9
  Select
10
- } from "../../chunk-PORTGNAK.mjs";
10
+ } from "../../chunk-DYYINLRJ.mjs";
11
11
  import {
12
12
  EyeIcon,
13
13
  HiddenEyeIcon
14
- } from "../../chunk-P7TMXOPP.mjs";
14
+ } from "../../chunk-JDCQLGWW.mjs";
15
15
  import {
16
16
  Button,
17
17
  Card,
@@ -24,7 +24,7 @@ import {
24
24
  Label,
25
25
  Loading,
26
26
  cn
27
- } from "../../chunk-ZPNZUWM5.mjs";
27
+ } from "../../chunk-6LI35F6L.mjs";
28
28
 
29
29
  // blocks/auth/AuthButtons.tsx
30
30
  import React2 from "react";
@@ -663,7 +663,7 @@ var Alert = ({
663
663
  severity = "none",
664
664
  duration,
665
665
  icon,
666
- className,
666
+ classNames,
667
667
  ...props
668
668
  }) => {
669
669
  const alertRef = useRef(null);
@@ -714,21 +714,25 @@ var Alert = ({
714
714
  "hawa-relative hawa-mb-4 hawa-flex hawa-flex-col hawa-rounded hawa-p-4 hawa-text-sm hawa-transition-all",
715
715
  styleVariant[severity],
716
716
  closed ? "hawa-opacity-0" : "hawa-opacity-100",
717
- className
717
+ classNames == null ? void 0 : classNames.root
718
718
  )
719
719
  },
720
720
  /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ React3.createElement(
721
721
  "div",
722
722
  {
723
- className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
723
+ className: cn(
724
+ direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1",
725
+ classNames == null ? void 0 : classNames.icon
726
+ )
724
727
  },
725
728
  icon
726
- ), /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React3.createElement(
729
+ ), /* @__PURE__ */ React3.createElement("div", { className: cn("hawa-flex hawa-flex-col", classNames == null ? void 0 : classNames.content) }, /* @__PURE__ */ React3.createElement(
727
730
  "span",
728
731
  {
729
732
  className: cn(
730
733
  "hawa-font-bold",
731
- direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8"
734
+ direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8",
735
+ classNames == null ? void 0 : classNames.title
732
736
  )
733
737
  },
734
738
  props.title
@@ -737,19 +741,29 @@ var Alert = ({
737
741
  {
738
742
  className: cn(
739
743
  direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8",
740
- props.persistent ? "hawa-w-full" : "hawa-w-[calc(100% - 40px)]"
744
+ props.persistent ? "hawa-w-full" : "hawa-w-[calc(100% - 40px)]",
745
+ classNames == null ? void 0 : classNames.text
741
746
  )
742
747
  },
743
748
  props.text
744
- ), props.actions && /* @__PURE__ */ React3.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ React3.createElement(
745
- Button,
749
+ ), props.actions && /* @__PURE__ */ React3.createElement(
750
+ "div",
746
751
  {
747
- key: index,
748
- variant: act.variant,
749
- onClick: act.onClick()
752
+ className: cn(
753
+ "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2",
754
+ classNames == null ? void 0 : classNames.actions
755
+ )
750
756
  },
751
- act.label
752
- ))))),
757
+ props.actions.map((act, index) => /* @__PURE__ */ React3.createElement(
758
+ Button,
759
+ {
760
+ key: index,
761
+ variant: act.variant,
762
+ onClick: act.onClick()
763
+ },
764
+ act.label
765
+ ))
766
+ ))),
753
767
  !props.persistent && /* @__PURE__ */ React3.createElement(
754
768
  "button",
755
769
  {
@@ -759,7 +773,8 @@ var Alert = ({
759
773
  className: cn(
760
774
  "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-9 hawa-w-9 hawa-items-center hawa-justify-center hawa-rounded-inner hawa-p-1.5 hawa-transition-all hover:hawa-text-gray-900",
761
775
  closeButtonStyle[severity],
762
- direction === "rtl" ? "hawa-left-2" : "hawa-right-2"
776
+ direction === "rtl" ? "hawa-left-2" : "hawa-right-2",
777
+ classNames == null ? void 0 : classNames.closeButton
763
778
  ),
764
779
  onClick: () => {
765
780
  if (props.onAlertClosed) {
@@ -60,28 +60,17 @@ var import_class_variance_authority = require("class-variance-authority");
60
60
  // elements/helperText/HelperText.tsx
61
61
  var import_react = __toESM(require("react"));
62
62
  var HelperText = ({
63
- helperText,
64
- size = "xs"
65
- }) => {
66
- let sizes = {
67
- xs: "hawa-text-xs hawa-h-4",
68
- sm: "hawa-text-sm",
69
- md: "hawa-text-md",
70
- lg: "hawa-text-lg",
71
- xl: "hawa-text-xl"
72
- };
73
- return /* @__PURE__ */ import_react.default.createElement(
74
- "p",
75
- {
76
- className: cn(
77
- "hawa-my-0 hawa-text-start hawa-text-helper-color hawa-transition-all",
78
- helperText ? "hawa-opacity-100" : "hawa-h-0 hawa-opacity-0",
79
- sizes[size]
80
- )
81
- },
82
- helperText
83
- );
84
- };
63
+ helperText
64
+ }) => /* @__PURE__ */ import_react.default.createElement(
65
+ "p",
66
+ {
67
+ className: cn(
68
+ "hawa-my-0 hawa-text-start hawa-text-helper-color hawa-transition-all hawa-text-xs",
69
+ helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-h-0 hawa-opacity-0"
70
+ )
71
+ },
72
+ helperText
73
+ );
85
74
 
86
75
  // elements/label/Label.tsx
87
76
  var React3 = __toESM(require("react"));
@@ -607,6 +596,7 @@ Card.displayName = "Card";
607
596
 
608
597
  // elements/radio/Radio.tsx
609
598
  var import_react4 = __toESM(require("react"));
599
+ var import_react_tabs = require("@radix-ui/react-tabs");
610
600
 
611
601
  // elements/popover/Popover.tsx
612
602
  var React7 = __toESM(require("react"));
@@ -750,9 +740,10 @@ var Radio = (0, import_react4.forwardRef)(
750
740
  )
751
741
  },
752
742
  props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label),
753
- /* @__PURE__ */ import_react4.default.createElement(
754
- "ul",
743
+ /* @__PURE__ */ import_react4.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react4.default.createElement(
744
+ import_react_tabs.TabsList,
755
745
  {
746
+ role: "tablist",
756
747
  ref: parentRef,
757
748
  className: cn(
758
749
  props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
@@ -778,9 +769,12 @@ var Radio = (0, import_react4.forwardRef)(
778
769
  asChild: true
779
770
  },
780
771
  /* @__PURE__ */ import_react4.default.createElement(
781
- "li",
772
+ import_react_tabs.TabsTrigger,
782
773
  {
783
- "aria-current": "page",
774
+ "aria-current": selectedOption === opt.value ? "page" : void 0,
775
+ value: opt.value,
776
+ role: "tab",
777
+ tabIndex: 0,
784
778
  onClick: () => {
785
779
  if (props.disabled || opt.disabled) return;
786
780
  handleChange(opt);
@@ -796,10 +790,12 @@ var Radio = (0, import_react4.forwardRef)(
796
790
  ),
797
791
  /* @__PURE__ */ import_react4.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
798
792
  ) : /* @__PURE__ */ import_react4.default.createElement(
799
- "li",
793
+ import_react_tabs.TabsTrigger,
800
794
  {
801
795
  key: o,
802
- "aria-current": "page",
796
+ role: "tab",
797
+ tabIndex: 0,
798
+ "aria-current": selectedOption === opt.value ? "page" : void 0,
803
799
  onClick: () => {
804
800
  if (props.disabled || opt.disabled) return;
805
801
  handleChange(opt);
@@ -807,13 +803,14 @@ var Radio = (0, import_react4.forwardRef)(
807
803
  className: cn(
808
804
  ...radio_option_tabs_styling,
809
805
  selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
810
- )
806
+ ),
807
+ value: opt.value
811
808
  },
812
809
  opt.icon && opt.icon,
813
810
  opt.label
814
811
  );
815
812
  })
816
- ),
813
+ )),
817
814
  !forceHideHelperText && /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText })
818
815
  );
819
816
  case "bordered":
@@ -1,26 +1,26 @@
1
1
  "use client";
2
2
  import {
3
3
  Textarea
4
- } from "../../chunk-WJ6XCEUI.mjs";
4
+ } from "../../chunk-FIUKVRL5.mjs";
5
5
  import {
6
6
  Select
7
- } from "../../chunk-PORTGNAK.mjs";
7
+ } from "../../chunk-DYYINLRJ.mjs";
8
8
  import {
9
9
  Popover,
10
10
  Radio
11
- } from "../../chunk-QDZMNVKS.mjs";
11
+ } from "../../chunk-OE6XZ6LW.mjs";
12
12
  import {
13
13
  BadEmoji,
14
14
  GoodEmoji,
15
15
  VeryBadEmoji,
16
16
  VeryGoodEmoji
17
- } from "../../chunk-P7TMXOPP.mjs";
17
+ } from "../../chunk-JDCQLGWW.mjs";
18
18
  import {
19
19
  Button,
20
20
  Card,
21
21
  CardContent,
22
22
  cn
23
- } from "../../chunk-ZPNZUWM5.mjs";
23
+ } from "../../chunk-6LI35F6L.mjs";
24
24
 
25
25
  // blocks/feedback/UserReferralSource.tsx
26
26
  import React, { useRef, useState } from "react";
@@ -82,28 +82,17 @@ var import_class_variance_authority = require("class-variance-authority");
82
82
  // elements/helperText/HelperText.tsx
83
83
  var import_react = __toESM(require("react"));
84
84
  var HelperText = ({
85
- helperText,
86
- size = "xs"
87
- }) => {
88
- let sizes = {
89
- xs: "hawa-text-xs hawa-h-4",
90
- sm: "hawa-text-sm",
91
- md: "hawa-text-md",
92
- lg: "hawa-text-lg",
93
- xl: "hawa-text-xl"
94
- };
95
- return /* @__PURE__ */ import_react.default.createElement(
96
- "p",
97
- {
98
- className: cn(
99
- "hawa-my-0 hawa-text-start hawa-text-helper-color hawa-transition-all",
100
- helperText ? "hawa-opacity-100" : "hawa-h-0 hawa-opacity-0",
101
- sizes[size]
102
- )
103
- },
104
- helperText
105
- );
106
- };
85
+ helperText
86
+ }) => /* @__PURE__ */ import_react.default.createElement(
87
+ "p",
88
+ {
89
+ className: cn(
90
+ "hawa-my-0 hawa-text-start hawa-text-helper-color hawa-transition-all hawa-text-xs",
91
+ helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-h-0 hawa-opacity-0"
92
+ )
93
+ },
94
+ helperText
95
+ );
107
96
 
108
97
  // elements/label/Label.tsx
109
98
  var React3 = __toESM(require("react"));
@@ -1163,7 +1152,7 @@ var Alert = ({
1163
1152
  severity = "none",
1164
1153
  duration,
1165
1154
  icon,
1166
- className,
1155
+ classNames,
1167
1156
  ...props
1168
1157
  }) => {
1169
1158
  const alertRef = (0, import_react6.useRef)(null);
@@ -1214,21 +1203,25 @@ var Alert = ({
1214
1203
  "hawa-relative hawa-mb-4 hawa-flex hawa-flex-col hawa-rounded hawa-p-4 hawa-text-sm hawa-transition-all",
1215
1204
  styleVariant[severity],
1216
1205
  closed ? "hawa-opacity-0" : "hawa-opacity-100",
1217
- className
1206
+ classNames == null ? void 0 : classNames.root
1218
1207
  )
1219
1208
  },
1220
1209
  /* @__PURE__ */ import_react6.default.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ import_react6.default.createElement(
1221
1210
  "div",
1222
1211
  {
1223
- className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
1212
+ className: cn(
1213
+ direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1",
1214
+ classNames == null ? void 0 : classNames.icon
1215
+ )
1224
1216
  },
1225
1217
  icon
1226
- ), /* @__PURE__ */ import_react6.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react6.default.createElement(
1218
+ ), /* @__PURE__ */ import_react6.default.createElement("div", { className: cn("hawa-flex hawa-flex-col", classNames == null ? void 0 : classNames.content) }, /* @__PURE__ */ import_react6.default.createElement(
1227
1219
  "span",
1228
1220
  {
1229
1221
  className: cn(
1230
1222
  "hawa-font-bold",
1231
- direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8"
1223
+ direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8",
1224
+ classNames == null ? void 0 : classNames.title
1232
1225
  )
1233
1226
  },
1234
1227
  props.title
@@ -1237,19 +1230,29 @@ var Alert = ({
1237
1230
  {
1238
1231
  className: cn(
1239
1232
  direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8",
1240
- props.persistent ? "hawa-w-full" : "hawa-w-[calc(100% - 40px)]"
1233
+ props.persistent ? "hawa-w-full" : "hawa-w-[calc(100% - 40px)]",
1234
+ classNames == null ? void 0 : classNames.text
1241
1235
  )
1242
1236
  },
1243
1237
  props.text
1244
- ), props.actions && /* @__PURE__ */ import_react6.default.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ import_react6.default.createElement(
1245
- Button,
1238
+ ), props.actions && /* @__PURE__ */ import_react6.default.createElement(
1239
+ "div",
1246
1240
  {
1247
- key: index,
1248
- variant: act.variant,
1249
- onClick: act.onClick()
1241
+ className: cn(
1242
+ "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2",
1243
+ classNames == null ? void 0 : classNames.actions
1244
+ )
1250
1245
  },
1251
- act.label
1252
- ))))),
1246
+ props.actions.map((act, index) => /* @__PURE__ */ import_react6.default.createElement(
1247
+ Button,
1248
+ {
1249
+ key: index,
1250
+ variant: act.variant,
1251
+ onClick: act.onClick()
1252
+ },
1253
+ act.label
1254
+ ))
1255
+ ))),
1253
1256
  !props.persistent && /* @__PURE__ */ import_react6.default.createElement(
1254
1257
  "button",
1255
1258
  {
@@ -1259,7 +1262,8 @@ var Alert = ({
1259
1262
  className: cn(
1260
1263
  "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-9 hawa-w-9 hawa-items-center hawa-justify-center hawa-rounded-inner hawa-p-1.5 hawa-transition-all hover:hawa-text-gray-900",
1261
1264
  closeButtonStyle[severity],
1262
- direction === "rtl" ? "hawa-left-2" : "hawa-right-2"
1265
+ direction === "rtl" ? "hawa-left-2" : "hawa-right-2",
1266
+ classNames == null ? void 0 : classNames.closeButton
1263
1267
  ),
1264
1268
  onClick: () => {
1265
1269
  if (props.onAlertClosed) {
@@ -5062,6 +5066,7 @@ var z6 = __toESM(require("zod"));
5062
5066
 
5063
5067
  // elements/radio/Radio.tsx
5064
5068
  var import_react25 = __toESM(require("react"));
5069
+ var import_react_tabs = require("@radix-ui/react-tabs");
5065
5070
 
5066
5071
  // elements/popover/Popover.tsx
5067
5072
  var React27 = __toESM(require("react"));
@@ -5205,9 +5210,10 @@ var Radio = (0, import_react25.forwardRef)(
5205
5210
  )
5206
5211
  },
5207
5212
  props.label && /* @__PURE__ */ import_react25.default.createElement(Label, { ...labelProps }, props.label),
5208
- /* @__PURE__ */ import_react25.default.createElement(
5209
- "ul",
5213
+ /* @__PURE__ */ import_react25.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react25.default.createElement(
5214
+ import_react_tabs.TabsList,
5210
5215
  {
5216
+ role: "tablist",
5211
5217
  ref: parentRef,
5212
5218
  className: cn(
5213
5219
  props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
@@ -5233,9 +5239,12 @@ var Radio = (0, import_react25.forwardRef)(
5233
5239
  asChild: true
5234
5240
  },
5235
5241
  /* @__PURE__ */ import_react25.default.createElement(
5236
- "li",
5242
+ import_react_tabs.TabsTrigger,
5237
5243
  {
5238
- "aria-current": "page",
5244
+ "aria-current": selectedOption === opt.value ? "page" : void 0,
5245
+ value: opt.value,
5246
+ role: "tab",
5247
+ tabIndex: 0,
5239
5248
  onClick: () => {
5240
5249
  if (props.disabled || opt.disabled) return;
5241
5250
  handleChange(opt);
@@ -5251,10 +5260,12 @@ var Radio = (0, import_react25.forwardRef)(
5251
5260
  ),
5252
5261
  /* @__PURE__ */ import_react25.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
5253
5262
  ) : /* @__PURE__ */ import_react25.default.createElement(
5254
- "li",
5263
+ import_react_tabs.TabsTrigger,
5255
5264
  {
5256
5265
  key: o,
5257
- "aria-current": "page",
5266
+ role: "tab",
5267
+ tabIndex: 0,
5268
+ "aria-current": selectedOption === opt.value ? "page" : void 0,
5258
5269
  onClick: () => {
5259
5270
  if (props.disabled || opt.disabled) return;
5260
5271
  handleChange(opt);
@@ -5262,13 +5273,14 @@ var Radio = (0, import_react25.forwardRef)(
5262
5273
  className: cn(
5263
5274
  ...radio_option_tabs_styling,
5264
5275
  selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
5265
- )
5276
+ ),
5277
+ value: opt.value
5266
5278
  },
5267
5279
  opt.icon && opt.icon,
5268
5280
  opt.label
5269
5281
  );
5270
5282
  })
5271
- ),
5283
+ )),
5272
5284
  !forceHideHelperText && /* @__PURE__ */ import_react25.default.createElement(HelperText, { helperText: props.helperText })
5273
5285
  );
5274
5286
  case "bordered":
@@ -6282,7 +6294,7 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
6282
6294
  defaultVariants: { variant: "default", orientation: "horizontal" }
6283
6295
  });
6284
6296
  var TabsContext = React44.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
6285
- var Tabs = React44.forwardRef(
6297
+ var Tabs2 = React44.forwardRef(
6286
6298
  ({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React44.createElement(
6287
6299
  TabsPrimitive.Root,
6288
6300
  {
@@ -6297,7 +6309,7 @@ var Tabs = React44.forwardRef(
6297
6309
  /* @__PURE__ */ React44.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
6298
6310
  )
6299
6311
  );
6300
- var TabsList = React44.forwardRef(({ className, classNames, ...props }, ref) => {
6312
+ var TabsList2 = React44.forwardRef(({ className, classNames, ...props }, ref) => {
6301
6313
  const { orientation, variant, scrollable } = React44.useContext(TabsContext);
6302
6314
  const { width } = useViewportSize();
6303
6315
  if (scrollable && width < 768 && orientation === "horizontal") {
@@ -6329,7 +6341,7 @@ var TabsList = React44.forwardRef(({ className, classNames, ...props }, ref) =>
6329
6341
  );
6330
6342
  }
6331
6343
  });
6332
- var TabsTrigger = React44.forwardRef(
6344
+ var TabsTrigger2 = React44.forwardRef(
6333
6345
  ({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
6334
6346
  const { orientation, variant } = React44.useContext(TabsContext);
6335
6347
  if (withPopover) {
@@ -6385,22 +6397,22 @@ var TabsContent = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
6385
6397
  ...props
6386
6398
  }
6387
6399
  ));
6388
- Tabs.displayName = TabsPrimitive.Root.displayName;
6389
- TabsList.displayName = TabsPrimitive.List.displayName;
6390
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
6400
+ Tabs2.displayName = TabsPrimitive.Root.displayName;
6401
+ TabsList2.displayName = TabsPrimitive.List.displayName;
6402
+ TabsTrigger2.displayName = TabsPrimitive.Trigger.displayName;
6391
6403
  TabsContent.displayName = TabsPrimitive.Content.displayName;
6392
6404
 
6393
6405
  // blocks/misc/LegalTexts.tsx
6394
6406
  var LegalTexts = ({ tabs, ...props }) => {
6395
6407
  return /* @__PURE__ */ import_react50.default.createElement(
6396
- Tabs,
6408
+ Tabs2,
6397
6409
  {
6398
6410
  value: props.activeTab,
6399
6411
  onValueChange: props.handleTabChange,
6400
6412
  defaultValue: props.defaultTab || tabs[0].value,
6401
6413
  dir: props.direction
6402
6414
  },
6403
- /* @__PURE__ */ import_react50.default.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react50.default.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
6415
+ /* @__PURE__ */ import_react50.default.createElement(TabsList2, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react50.default.createElement(TabsTrigger2, { key: index, value: tab.value }, tab.title))),
6404
6416
  tabs.map((tab, index) => /* @__PURE__ */ import_react50.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react50.default.createElement(
6405
6417
  ScrollArea,
6406
6418
  {
@@ -17,7 +17,7 @@ import {
17
17
  TabsList,
18
18
  TabsTrigger,
19
19
  Textarea
20
- } from "../chunk-3MJGVWY2.mjs";
20
+ } from "../chunk-MEXJAHQV.mjs";
21
21
  import "../chunk-WL7C2A5D.mjs";
22
22
  import {
23
23
  BadEmoji,
@@ -42,7 +42,7 @@ import {
42
42
  VeryBadEmoji,
43
43
  VeryGoodEmoji,
44
44
  cn
45
- } from "../chunk-RPJYSE6Y.mjs";
45
+ } from "../chunk-3B7UZCET.mjs";
46
46
  import "../chunk-2LUXOXAL.mjs";
47
47
 
48
48
  // blocks/auth/AuthButtons.tsx
@@ -555,28 +555,17 @@ var import_class_variance_authority = require("class-variance-authority");
555
555
  // elements/helperText/HelperText.tsx
556
556
  var import_react22 = __toESM(require("react"));
557
557
  var HelperText = ({
558
- helperText,
559
- size = "xs"
560
- }) => {
561
- let sizes = {
562
- xs: "hawa-text-xs hawa-h-4",
563
- sm: "hawa-text-sm",
564
- md: "hawa-text-md",
565
- lg: "hawa-text-lg",
566
- xl: "hawa-text-xl"
567
- };
568
- return /* @__PURE__ */ import_react22.default.createElement(
569
- "p",
570
- {
571
- className: cn(
572
- "hawa-my-0 hawa-text-start hawa-text-helper-color hawa-transition-all",
573
- helperText ? "hawa-opacity-100" : "hawa-h-0 hawa-opacity-0",
574
- sizes[size]
575
- )
576
- },
577
- helperText
578
- );
579
- };
558
+ helperText
559
+ }) => /* @__PURE__ */ import_react22.default.createElement(
560
+ "p",
561
+ {
562
+ className: cn(
563
+ "hawa-my-0 hawa-text-start hawa-text-helper-color hawa-transition-all hawa-text-xs",
564
+ helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-h-0 hawa-opacity-0"
565
+ )
566
+ },
567
+ helperText
568
+ );
580
569
 
581
570
  // elements/label/Label.tsx
582
571
  var React15 = __toESM(require("react"));
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import {
3
3
  Input
4
- } from "../../chunk-QBPDB7E2.mjs";
4
+ } from "../../chunk-JKZQWCAQ.mjs";
5
5
  import {
6
6
  Chip,
7
7
  ScrollArea
8
- } from "../../chunk-VWJIORNH.mjs";
8
+ } from "../../chunk-FUYMZP4J.mjs";
9
9
  import {
10
10
  Textarea
11
- } from "../../chunk-WJ6XCEUI.mjs";
11
+ } from "../../chunk-FIUKVRL5.mjs";
12
12
  import {
13
13
  Select
14
- } from "../../chunk-PORTGNAK.mjs";
14
+ } from "../../chunk-DYYINLRJ.mjs";
15
15
  import {
16
16
  Button,
17
17
  Card,
@@ -21,7 +21,7 @@ import {
21
21
  CardHeader,
22
22
  CardTitle,
23
23
  cn
24
- } from "../../chunk-ZPNZUWM5.mjs";
24
+ } from "../../chunk-6LI35F6L.mjs";
25
25
 
26
26
  // blocks/misc/LegalTexts.tsx
27
27
  import React10 from "react";