@sikka/hawa 0.26.3-next → 0.26.5-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 (41) hide show
  1. package/dist/blocks/auth/index.js +4 -2
  2. package/dist/blocks/auth/index.mjs +4 -2
  3. package/dist/blocks/feedback/index.js +68 -60
  4. package/dist/blocks/feedback/index.mjs +5 -3
  5. package/dist/blocks/index.js +72 -62
  6. package/dist/blocks/index.mjs +8 -4
  7. package/dist/blocks/misc/index.js +41 -28
  8. package/dist/blocks/misc/index.mjs +1 -1
  9. package/dist/blocks/pricing/index.js +24 -31
  10. package/dist/blocks/pricing/index.mjs +1 -1
  11. package/dist/chunk-LT3VHLAG.mjs +70 -0
  12. package/dist/{chunk-2UQWMSFQ.mjs → chunk-M2ZS3EDT.mjs} +24 -31
  13. package/dist/{chunk-I7I5JJHC.mjs → chunk-SUS6O2PO.mjs} +65 -59
  14. package/dist/codeBlock/index.js +41 -28
  15. package/dist/codeBlock/index.mjs +41 -28
  16. package/dist/elements/index.d.mts +3 -0
  17. package/dist/elements/index.d.ts +3 -0
  18. package/dist/elements/index.js +65 -59
  19. package/dist/elements/index.mjs +1 -1
  20. package/dist/index.d.mts +3 -0
  21. package/dist/index.d.ts +3 -0
  22. package/dist/index.js +72 -62
  23. package/dist/index.mjs +72 -62
  24. package/dist/interfaceSettings/index.js +24 -31
  25. package/dist/interfaceSettings/index.mjs +24 -31
  26. package/dist/radio/index.js +24 -31
  27. package/dist/radio/index.mjs +24 -31
  28. package/dist/signature/index.js +1 -1
  29. package/dist/signature/index.mjs +1 -1
  30. package/dist/textarea/index.d.mts +3 -0
  31. package/dist/textarea/index.d.ts +3 -0
  32. package/dist/textarea/index.js +41 -28
  33. package/dist/textarea/index.mjs +41 -28
  34. package/package.json +4 -4
  35. package/dist/blocks/feedback/index.css +0 -5
  36. package/dist/blocks/index.css +0 -5
  37. package/dist/blocks/misc/index.css +0 -5
  38. package/dist/chunk-2XKXPVD3.mjs +0 -57
  39. package/dist/codeBlock/index.css +0 -5
  40. package/dist/elements/index.css +0 -5
  41. package/dist/textarea/index.css +0 -5
@@ -0,0 +1,70 @@
1
+ import {
2
+ Label,
3
+ cn
4
+ } from "./chunk-FYH74ZRQ.mjs";
5
+
6
+ // components/elements/textarea/Textarea.tsx
7
+ import * as React from "react";
8
+ var Textarea = React.forwardRef(
9
+ ({
10
+ className,
11
+ classNames,
12
+ labelProps,
13
+ showCount,
14
+ forceHideHelperText,
15
+ textareaProps,
16
+ countPosition = "bottom",
17
+ ...props
18
+ }, ref) => {
19
+ return /* @__PURE__ */ React.createElement(
20
+ "div",
21
+ {
22
+ className: cn(
23
+ "textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
24
+ !forceHideHelperText && "hawa-gap-2",
25
+ className
26
+ )
27
+ },
28
+ props.label && /* @__PURE__ */ React.createElement(Label, { ...labelProps }, props.label),
29
+ /* @__PURE__ */ React.createElement(
30
+ "textarea",
31
+ {
32
+ className: cn(
33
+ "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
34
+ classNames == null ? void 0 : classNames.textarea
35
+ ),
36
+ ref,
37
+ ...textareaProps
38
+ }
39
+ ),
40
+ /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React.createElement(
41
+ "p",
42
+ {
43
+ className: cn(
44
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
45
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
46
+ )
47
+ },
48
+ props.helperText
49
+ ), showCount && /* @__PURE__ */ React.createElement(
50
+ "div",
51
+ {
52
+ className: cn(
53
+ "hawa-text-start hawa-text-xs hawa-transition-all",
54
+ {
55
+ "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
56
+ }
57
+ )
58
+ },
59
+ (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
60
+ "/",
61
+ textareaProps == null ? void 0 : textareaProps.maxLength
62
+ ))
63
+ );
64
+ }
65
+ );
66
+ Textarea.displayName = "Textarea";
67
+
68
+ export {
69
+ Textarea
70
+ };
@@ -90,45 +90,38 @@ var Radio = ({
90
90
  ))
91
91
  );
92
92
  case "bordered":
93
- return /* @__PURE__ */ React.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React.createElement(
93
+ return /* @__PURE__ */ React.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ React.createElement(
94
94
  "div",
95
95
  {
96
- key: i,
97
- className: "hawa-w-full hawa-rounded hawa-border hawa-border-gray-200"
96
+ className: cn(
97
+ "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
98
+ props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
99
+ ),
100
+ key: i + 1
98
101
  },
99
102
  /* @__PURE__ */ React.createElement(
100
- "div",
103
+ "input",
104
+ {
105
+ disabled: opt.disabled,
106
+ id: opt.value.toString(),
107
+ type: "radio",
108
+ value: opt.value,
109
+ name,
110
+ onChange: () => handleChange(opt)
111
+ }
112
+ ),
113
+ /* @__PURE__ */ React.createElement(
114
+ "label",
101
115
  {
116
+ htmlFor: opt.value.toString(),
102
117
  className: cn(
103
- "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
104
- props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
105
- ),
106
- key: i + 1
118
+ "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
119
+ opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
120
+ )
107
121
  },
108
- /* @__PURE__ */ React.createElement(
109
- "input",
110
- {
111
- disabled: opt.disabled,
112
- id: opt.value.toString(),
113
- type: "radio",
114
- value: opt.value,
115
- name,
116
- onChange: () => handleChange(opt)
117
- }
118
- ),
119
- /* @__PURE__ */ React.createElement(
120
- "label",
121
- {
122
- htmlFor: opt.value.toString(),
123
- className: cn(
124
- "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium dark:hawa-text-white",
125
- opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
126
- )
127
- },
128
- opt.label
129
- )
122
+ opt.label
130
123
  )
131
- )));
124
+ ))));
132
125
  case "cards":
133
126
  return /* @__PURE__ */ React.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React.createElement(
134
127
  "input",
@@ -2541,45 +2541,38 @@ var Radio = ({
2541
2541
  ))
2542
2542
  );
2543
2543
  case "bordered":
2544
- return /* @__PURE__ */ React9.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React9.createElement(
2544
+ 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(
2545
2545
  "div",
2546
2546
  {
2547
- key: i,
2548
- className: "hawa-w-full hawa-rounded hawa-border hawa-border-gray-200"
2547
+ className: cn(
2548
+ "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
2549
+ props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
2550
+ ),
2551
+ key: i + 1
2549
2552
  },
2550
2553
  /* @__PURE__ */ React9.createElement(
2551
- "div",
2554
+ "input",
2555
+ {
2556
+ disabled: opt.disabled,
2557
+ id: opt.value.toString(),
2558
+ type: "radio",
2559
+ value: opt.value,
2560
+ name,
2561
+ onChange: () => handleChange(opt)
2562
+ }
2563
+ ),
2564
+ /* @__PURE__ */ React9.createElement(
2565
+ "label",
2552
2566
  {
2567
+ htmlFor: opt.value.toString(),
2553
2568
  className: cn(
2554
- "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
2555
- props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
2556
- ),
2557
- key: i + 1
2569
+ "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
2570
+ opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
2571
+ )
2558
2572
  },
2559
- /* @__PURE__ */ React9.createElement(
2560
- "input",
2561
- {
2562
- disabled: opt.disabled,
2563
- id: opt.value.toString(),
2564
- type: "radio",
2565
- value: opt.value,
2566
- name,
2567
- onChange: () => handleChange(opt)
2568
- }
2569
- ),
2570
- /* @__PURE__ */ React9.createElement(
2571
- "label",
2572
- {
2573
- htmlFor: opt.value.toString(),
2574
- className: cn(
2575
- "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium dark:hawa-text-white",
2576
- opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
2577
- )
2578
- },
2579
- opt.label
2580
- )
2573
+ opt.label
2581
2574
  )
2582
- )));
2575
+ ))));
2583
2576
  case "cards":
2584
2577
  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(
2585
2578
  "input",
@@ -2653,6 +2646,7 @@ import * as React10 from "react";
2653
2646
  var Textarea = React10.forwardRef(
2654
2647
  ({
2655
2648
  className,
2649
+ classNames,
2656
2650
  labelProps,
2657
2651
  showCount,
2658
2652
  forceHideHelperText,
@@ -2660,39 +2654,51 @@ var Textarea = React10.forwardRef(
2660
2654
  countPosition = "bottom",
2661
2655
  ...props
2662
2656
  }, ref) => {
2663
- return /* @__PURE__ */ React10.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2 textarea-main " }, props.label && /* @__PURE__ */ React10.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React10.createElement(
2664
- "textarea",
2665
- {
2666
- className: cn(
2667
- "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
2668
- className
2669
- ),
2670
- ref,
2671
- ...textareaProps
2672
- }
2673
- ), /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React10.createElement(
2674
- "p",
2675
- {
2676
- className: cn(
2677
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
2678
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
2679
- )
2680
- },
2681
- props.helperText
2682
- ), showCount && /* @__PURE__ */ React10.createElement(
2657
+ return /* @__PURE__ */ React10.createElement(
2683
2658
  "div",
2684
2659
  {
2685
2660
  className: cn(
2686
- "hawa-text-start hawa-text-xs hawa-transition-all",
2687
- {
2688
- "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
2689
- }
2661
+ "textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
2662
+ !forceHideHelperText && "hawa-gap-2",
2663
+ className
2690
2664
  )
2691
2665
  },
2692
- (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
2693
- "/",
2694
- textareaProps == null ? void 0 : textareaProps.maxLength
2695
- )));
2666
+ props.label && /* @__PURE__ */ React10.createElement(Label, { ...labelProps }, props.label),
2667
+ /* @__PURE__ */ React10.createElement(
2668
+ "textarea",
2669
+ {
2670
+ className: cn(
2671
+ "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
2672
+ classNames == null ? void 0 : classNames.textarea
2673
+ ),
2674
+ ref,
2675
+ ...textareaProps
2676
+ }
2677
+ ),
2678
+ /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React10.createElement(
2679
+ "p",
2680
+ {
2681
+ className: cn(
2682
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
2683
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
2684
+ )
2685
+ },
2686
+ props.helperText
2687
+ ), showCount && /* @__PURE__ */ React10.createElement(
2688
+ "div",
2689
+ {
2690
+ className: cn(
2691
+ "hawa-text-start hawa-text-xs hawa-transition-all",
2692
+ {
2693
+ "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
2694
+ }
2695
+ )
2696
+ },
2697
+ (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
2698
+ "/",
2699
+ textareaProps == null ? void 0 : textareaProps.maxLength
2700
+ ))
2701
+ );
2696
2702
  }
2697
2703
  );
2698
2704
  Textarea.displayName = "Textarea";
@@ -1982,6 +1982,7 @@ var React28 = __toESM(require("react"));
1982
1982
  var Textarea = React28.forwardRef(
1983
1983
  ({
1984
1984
  className,
1985
+ classNames,
1985
1986
  labelProps,
1986
1987
  showCount,
1987
1988
  forceHideHelperText,
@@ -1989,39 +1990,51 @@ var Textarea = React28.forwardRef(
1989
1990
  countPosition = "bottom",
1990
1991
  ...props
1991
1992
  }, ref) => {
1992
- return /* @__PURE__ */ React28.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2 textarea-main " }, props.label && /* @__PURE__ */ React28.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React28.createElement(
1993
- "textarea",
1994
- {
1995
- className: cn(
1996
- "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1997
- className
1998
- ),
1999
- ref,
2000
- ...textareaProps
2001
- }
2002
- ), /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(
2003
- "p",
2004
- {
2005
- className: cn(
2006
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
2007
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
2008
- )
2009
- },
2010
- props.helperText
2011
- ), showCount && /* @__PURE__ */ React28.createElement(
1993
+ return /* @__PURE__ */ React28.createElement(
2012
1994
  "div",
2013
1995
  {
2014
1996
  className: cn(
2015
- "hawa-text-start hawa-text-xs hawa-transition-all",
2016
- {
2017
- "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
2018
- }
1997
+ "textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
1998
+ !forceHideHelperText && "hawa-gap-2",
1999
+ className
2019
2000
  )
2020
2001
  },
2021
- (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
2022
- "/",
2023
- textareaProps == null ? void 0 : textareaProps.maxLength
2024
- )));
2002
+ props.label && /* @__PURE__ */ React28.createElement(Label2, { ...labelProps }, props.label),
2003
+ /* @__PURE__ */ React28.createElement(
2004
+ "textarea",
2005
+ {
2006
+ className: cn(
2007
+ "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
2008
+ classNames == null ? void 0 : classNames.textarea
2009
+ ),
2010
+ ref,
2011
+ ...textareaProps
2012
+ }
2013
+ ),
2014
+ /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(
2015
+ "p",
2016
+ {
2017
+ className: cn(
2018
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
2019
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
2020
+ )
2021
+ },
2022
+ props.helperText
2023
+ ), showCount && /* @__PURE__ */ React28.createElement(
2024
+ "div",
2025
+ {
2026
+ className: cn(
2027
+ "hawa-text-start hawa-text-xs hawa-transition-all",
2028
+ {
2029
+ "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
2030
+ }
2031
+ )
2032
+ },
2033
+ (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
2034
+ "/",
2035
+ textareaProps == null ? void 0 : textareaProps.maxLength
2036
+ ))
2037
+ );
2025
2038
  }
2026
2039
  );
2027
2040
  Textarea.displayName = "Textarea";
@@ -1855,6 +1855,7 @@ import * as React26 from "react";
1855
1855
  var Textarea = React26.forwardRef(
1856
1856
  ({
1857
1857
  className,
1858
+ classNames,
1858
1859
  labelProps,
1859
1860
  showCount,
1860
1861
  forceHideHelperText,
@@ -1862,39 +1863,51 @@ var Textarea = React26.forwardRef(
1862
1863
  countPosition = "bottom",
1863
1864
  ...props
1864
1865
  }, ref) => {
1865
- return /* @__PURE__ */ React26.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2 textarea-main " }, props.label && /* @__PURE__ */ React26.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React26.createElement(
1866
- "textarea",
1867
- {
1868
- className: cn(
1869
- "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1870
- className
1871
- ),
1872
- ref,
1873
- ...textareaProps
1874
- }
1875
- ), /* @__PURE__ */ React26.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React26.createElement(
1876
- "p",
1877
- {
1878
- className: cn(
1879
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1880
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1881
- )
1882
- },
1883
- props.helperText
1884
- ), showCount && /* @__PURE__ */ React26.createElement(
1866
+ return /* @__PURE__ */ React26.createElement(
1885
1867
  "div",
1886
1868
  {
1887
1869
  className: cn(
1888
- "hawa-text-start hawa-text-xs hawa-transition-all",
1889
- {
1890
- "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
1891
- }
1870
+ "textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
1871
+ !forceHideHelperText && "hawa-gap-2",
1872
+ className
1892
1873
  )
1893
1874
  },
1894
- (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
1895
- "/",
1896
- textareaProps == null ? void 0 : textareaProps.maxLength
1897
- )));
1875
+ props.label && /* @__PURE__ */ React26.createElement(Label, { ...labelProps }, props.label),
1876
+ /* @__PURE__ */ React26.createElement(
1877
+ "textarea",
1878
+ {
1879
+ className: cn(
1880
+ "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1881
+ classNames == null ? void 0 : classNames.textarea
1882
+ ),
1883
+ ref,
1884
+ ...textareaProps
1885
+ }
1886
+ ),
1887
+ /* @__PURE__ */ React26.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React26.createElement(
1888
+ "p",
1889
+ {
1890
+ className: cn(
1891
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1892
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1893
+ )
1894
+ },
1895
+ props.helperText
1896
+ ), showCount && /* @__PURE__ */ React26.createElement(
1897
+ "div",
1898
+ {
1899
+ className: cn(
1900
+ "hawa-text-start hawa-text-xs hawa-transition-all",
1901
+ {
1902
+ "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
1903
+ }
1904
+ )
1905
+ },
1906
+ (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
1907
+ "/",
1908
+ textareaProps == null ? void 0 : textareaProps.maxLength
1909
+ ))
1910
+ );
1898
1911
  }
1899
1912
  );
1900
1913
  Textarea.displayName = "Textarea";
@@ -388,6 +388,9 @@ interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement
388
388
  textareaProps?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
389
389
  showCount?: boolean;
390
390
  countPosition?: "top" | "bottom";
391
+ classNames?: {
392
+ textarea?: string;
393
+ };
391
394
  }
392
395
  declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
393
396
 
@@ -388,6 +388,9 @@ interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement
388
388
  textareaProps?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
389
389
  showCount?: boolean;
390
390
  countPosition?: "top" | "bottom";
391
+ classNames?: {
392
+ textarea?: string;
393
+ };
391
394
  }
392
395
  declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
393
396
 
@@ -2980,45 +2980,38 @@ var Radio = ({
2980
2980
  ))
2981
2981
  );
2982
2982
  case "bordered":
2983
- return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
2983
+ return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react11.default.createElement(
2984
2984
  "div",
2985
2985
  {
2986
- key: i,
2987
- className: "hawa-w-full hawa-rounded hawa-border hawa-border-gray-200"
2986
+ className: cn(
2987
+ "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
2988
+ props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
2989
+ ),
2990
+ key: i + 1
2988
2991
  },
2989
2992
  /* @__PURE__ */ import_react11.default.createElement(
2990
- "div",
2993
+ "input",
2994
+ {
2995
+ disabled: opt.disabled,
2996
+ id: opt.value.toString(),
2997
+ type: "radio",
2998
+ value: opt.value,
2999
+ name,
3000
+ onChange: () => handleChange(opt)
3001
+ }
3002
+ ),
3003
+ /* @__PURE__ */ import_react11.default.createElement(
3004
+ "label",
2991
3005
  {
3006
+ htmlFor: opt.value.toString(),
2992
3007
  className: cn(
2993
- "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
2994
- props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
2995
- ),
2996
- key: i + 1
3008
+ "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
3009
+ opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
3010
+ )
2997
3011
  },
2998
- /* @__PURE__ */ import_react11.default.createElement(
2999
- "input",
3000
- {
3001
- disabled: opt.disabled,
3002
- id: opt.value.toString(),
3003
- type: "radio",
3004
- value: opt.value,
3005
- name,
3006
- onChange: () => handleChange(opt)
3007
- }
3008
- ),
3009
- /* @__PURE__ */ import_react11.default.createElement(
3010
- "label",
3011
- {
3012
- htmlFor: opt.value.toString(),
3013
- className: cn(
3014
- "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium dark:hawa-text-white",
3015
- opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
3016
- )
3017
- },
3018
- opt.label
3019
- )
3012
+ opt.label
3020
3013
  )
3021
- )));
3014
+ ))));
3022
3015
  case "cards":
3023
3016
  return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react11.default.createElement(
3024
3017
  "input",
@@ -3420,6 +3413,7 @@ var React28 = __toESM(require("react"));
3420
3413
  var Textarea = React28.forwardRef(
3421
3414
  ({
3422
3415
  className,
3416
+ classNames,
3423
3417
  labelProps,
3424
3418
  showCount,
3425
3419
  forceHideHelperText,
@@ -3427,39 +3421,51 @@ var Textarea = React28.forwardRef(
3427
3421
  countPosition = "bottom",
3428
3422
  ...props
3429
3423
  }, ref) => {
3430
- return /* @__PURE__ */ React28.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2 textarea-main " }, props.label && /* @__PURE__ */ React28.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React28.createElement(
3431
- "textarea",
3432
- {
3433
- className: cn(
3434
- "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
3435
- className
3436
- ),
3437
- ref,
3438
- ...textareaProps
3439
- }
3440
- ), /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(
3441
- "p",
3442
- {
3443
- className: cn(
3444
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
3445
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
3446
- )
3447
- },
3448
- props.helperText
3449
- ), showCount && /* @__PURE__ */ React28.createElement(
3424
+ return /* @__PURE__ */ React28.createElement(
3450
3425
  "div",
3451
3426
  {
3452
3427
  className: cn(
3453
- "hawa-text-start hawa-text-xs hawa-transition-all",
3454
- {
3455
- "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
3456
- }
3428
+ "textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
3429
+ !forceHideHelperText && "hawa-gap-2",
3430
+ className
3457
3431
  )
3458
3432
  },
3459
- (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
3460
- "/",
3461
- textareaProps == null ? void 0 : textareaProps.maxLength
3462
- )));
3433
+ props.label && /* @__PURE__ */ React28.createElement(Label2, { ...labelProps }, props.label),
3434
+ /* @__PURE__ */ React28.createElement(
3435
+ "textarea",
3436
+ {
3437
+ className: cn(
3438
+ "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
3439
+ classNames == null ? void 0 : classNames.textarea
3440
+ ),
3441
+ ref,
3442
+ ...textareaProps
3443
+ }
3444
+ ),
3445
+ /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(
3446
+ "p",
3447
+ {
3448
+ className: cn(
3449
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
3450
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
3451
+ )
3452
+ },
3453
+ props.helperText
3454
+ ), showCount && /* @__PURE__ */ React28.createElement(
3455
+ "div",
3456
+ {
3457
+ className: cn(
3458
+ "hawa-text-start hawa-text-xs hawa-transition-all",
3459
+ {
3460
+ "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
3461
+ }
3462
+ )
3463
+ },
3464
+ (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
3465
+ "/",
3466
+ textareaProps == null ? void 0 : textareaProps.maxLength
3467
+ ))
3468
+ );
3463
3469
  }
3464
3470
  );
3465
3471
  Textarea.displayName = "Textarea";