@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
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
 
3
3
  // elements/fileDropzone/FileDropzone.tsx
4
- import React6, { useEffect as useEffect2, useState as useState2 } from "react";
4
+ import React7, { useEffect as useEffect2, useState as useState2 } from "react";
5
5
  import { useDropzone } from "react-dropzone";
6
6
  import clsx2 from "clsx";
7
7
 
8
8
  // elements/alert/Alert.tsx
9
- import React5, { useRef, useState, useEffect } from "react";
9
+ import React6, { useRef, useState, useEffect } from "react";
10
10
 
11
11
  // util/index.ts
12
12
  import { clsx } from "clsx";
@@ -16,16 +16,28 @@ function cn(...inputs) {
16
16
  }
17
17
 
18
18
  // elements/button/Button.tsx
19
- import * as React4 from "react";
19
+ import * as React5 from "react";
20
20
  import { cva } from "class-variance-authority";
21
21
 
22
+ // elements/helperText/HelperText.tsx
23
+ var HelperText = ({ helperText }) => /* @__PURE__ */ React.createElement(
24
+ "p",
25
+ {
26
+ className: cn(
27
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
28
+ helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
29
+ )
30
+ },
31
+ helperText
32
+ );
33
+
22
34
  // elements/label/Label.tsx
23
- import * as React2 from "react";
35
+ import * as React3 from "react";
24
36
 
25
37
  // elements/tooltip/Tooltip.tsx
26
- import React from "react";
38
+ import React2 from "react";
27
39
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
28
- var TooltipContent = React.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ React.createElement(
40
+ var TooltipContent = React2.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ React2.createElement(
29
41
  TooltipPrimitive.Content,
30
42
  {
31
43
  ref,
@@ -42,7 +54,7 @@ var TooltipContent = React.forwardRef(({ className, sideOffset = 4, size = "defa
42
54
  }
43
55
  ));
44
56
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
45
- var TooltipArrow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
57
+ var TooltipArrow = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
46
58
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
47
59
  var Tooltip = ({
48
60
  side,
@@ -59,13 +71,13 @@ var Tooltip = ({
59
71
  delayDuration = 300,
60
72
  ...props
61
73
  }) => {
62
- return /* @__PURE__ */ React.createElement(
74
+ return /* @__PURE__ */ React2.createElement(
63
75
  TooltipPrimitive.TooltipProvider,
64
76
  {
65
77
  delayDuration,
66
78
  ...providerProps
67
79
  },
68
- /* @__PURE__ */ React.createElement(
80
+ /* @__PURE__ */ React2.createElement(
69
81
  TooltipPrimitive.Root,
70
82
  {
71
83
  open: !disabled && open,
@@ -73,8 +85,8 @@ var Tooltip = ({
73
85
  onOpenChange,
74
86
  ...props
75
87
  },
76
- /* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
77
- /* @__PURE__ */ React.createElement(
88
+ /* @__PURE__ */ React2.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
89
+ /* @__PURE__ */ React2.createElement(
78
90
  TooltipContent,
79
91
  {
80
92
  size,
@@ -94,7 +106,7 @@ var Tooltip = ({
94
106
  };
95
107
 
96
108
  // elements/label/Label.tsx
97
- 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(
109
+ 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(
98
110
  "label",
99
111
  {
100
112
  ref,
@@ -105,8 +117,8 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
105
117
  ...props
106
118
  },
107
119
  children,
108
- required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
109
- ), hint && /* @__PURE__ */ React2.createElement(
120
+ required && /* @__PURE__ */ React3.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
121
+ ), hint && /* @__PURE__ */ React3.createElement(
110
122
  Tooltip,
111
123
  {
112
124
  content: hint,
@@ -116,7 +128,7 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
116
128
  onClick: (event) => event.preventDefault()
117
129
  }
118
130
  },
119
- /* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement(
131
+ /* @__PURE__ */ React3.createElement("div", null, /* @__PURE__ */ React3.createElement(
120
132
  "svg",
121
133
  {
122
134
  xmlns: "http://www.w3.org/2000/svg",
@@ -128,15 +140,15 @@ var Label = React2.forwardRef(({ className, hint, hintSide, required, children,
128
140
  strokeLinecap: "round",
129
141
  strokeLinejoin: "round"
130
142
  },
131
- /* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
132
- /* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
133
- /* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
143
+ /* @__PURE__ */ React3.createElement("circle", { cx: "12", cy: "12", r: "10" }),
144
+ /* @__PURE__ */ React3.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
145
+ /* @__PURE__ */ React3.createElement("path", { d: "M12 17h.01" })
134
146
  ))
135
147
  )));
136
148
  Label.displayName = "Label";
137
149
 
138
150
  // elements/loading/Loading.tsx
139
- import React3 from "react";
151
+ import React4 from "react";
140
152
  var Loading = ({
141
153
  design = "spinner",
142
154
  size = "normal",
@@ -167,7 +179,7 @@ var Loading = ({
167
179
  };
168
180
  switch (design.split("-")[0]) {
169
181
  case "dots":
170
- return /* @__PURE__ */ React3.createElement(
182
+ return /* @__PURE__ */ React4.createElement(
171
183
  "div",
172
184
  {
173
185
  className: cn(
@@ -175,7 +187,7 @@ var Loading = ({
175
187
  classNames == null ? void 0 : classNames.container
176
188
  )
177
189
  },
178
- /* @__PURE__ */ React3.createElement(
190
+ /* @__PURE__ */ React4.createElement(
179
191
  "div",
180
192
  {
181
193
  className: cn(
@@ -186,7 +198,7 @@ var Loading = ({
186
198
  )
187
199
  }
188
200
  ),
189
- /* @__PURE__ */ React3.createElement(
201
+ /* @__PURE__ */ React4.createElement(
190
202
  "div",
191
203
  {
192
204
  className: cn(
@@ -197,7 +209,7 @@ var Loading = ({
197
209
  )
198
210
  }
199
211
  ),
200
- /* @__PURE__ */ React3.createElement(
212
+ /* @__PURE__ */ React4.createElement(
201
213
  "div",
202
214
  {
203
215
  className: cn(
@@ -210,7 +222,7 @@ var Loading = ({
210
222
  )
211
223
  );
212
224
  case "square":
213
- return /* @__PURE__ */ React3.createElement(
225
+ return /* @__PURE__ */ React4.createElement(
214
226
  "svg",
215
227
  {
216
228
  className: cn(
@@ -222,7 +234,7 @@ var Loading = ({
222
234
  height: "35",
223
235
  width: "35"
224
236
  },
225
- /* @__PURE__ */ React3.createElement(
237
+ /* @__PURE__ */ React4.createElement(
226
238
  "rect",
227
239
  {
228
240
  className: "squircle-track",
@@ -234,7 +246,7 @@ var Loading = ({
234
246
  height: "32.5"
235
247
  }
236
248
  ),
237
- /* @__PURE__ */ React3.createElement(
249
+ /* @__PURE__ */ React4.createElement(
238
250
  "rect",
239
251
  {
240
252
  className: "square-car",
@@ -249,7 +261,7 @@ var Loading = ({
249
261
  )
250
262
  );
251
263
  case "squircle":
252
- return /* @__PURE__ */ React3.createElement(
264
+ return /* @__PURE__ */ React4.createElement(
253
265
  "svg",
254
266
  {
255
267
  x: "0px",
@@ -264,7 +276,7 @@ var Loading = ({
264
276
  classNames == null ? void 0 : classNames.container
265
277
  )
266
278
  },
267
- /* @__PURE__ */ React3.createElement(
279
+ /* @__PURE__ */ React4.createElement(
268
280
  "path",
269
281
  {
270
282
  className: cn("squircle-track", classNames == null ? void 0 : classNames.track),
@@ -274,7 +286,7 @@ var Loading = ({
274
286
  d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
275
287
  }
276
288
  ),
277
- /* @__PURE__ */ React3.createElement(
289
+ /* @__PURE__ */ React4.createElement(
278
290
  "path",
279
291
  {
280
292
  className: cn("squircle-car", classNames == null ? void 0 : classNames.car),
@@ -286,7 +298,7 @@ var Loading = ({
286
298
  )
287
299
  );
288
300
  case "progress":
289
- return /* @__PURE__ */ React3.createElement(
301
+ return /* @__PURE__ */ React4.createElement(
290
302
  "div",
291
303
  {
292
304
  className: cn(
@@ -297,9 +309,9 @@ var Loading = ({
297
309
  }
298
310
  );
299
311
  case "orbit":
300
- return /* @__PURE__ */ React3.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
312
+ return /* @__PURE__ */ React4.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
301
313
  default:
302
- return /* @__PURE__ */ React3.createElement(
314
+ return /* @__PURE__ */ React4.createElement(
303
315
  "svg",
304
316
  {
305
317
  viewBox: "0 0 40 40",
@@ -311,7 +323,7 @@ var Loading = ({
311
323
  classNames == null ? void 0 : classNames.container
312
324
  )
313
325
  },
314
- /* @__PURE__ */ React3.createElement(
326
+ /* @__PURE__ */ React4.createElement(
315
327
  "circle",
316
328
  {
317
329
  className: cn(
@@ -330,7 +342,7 @@ var Loading = ({
330
342
  pathLength: "100"
331
343
  }
332
344
  ),
333
- /* @__PURE__ */ React3.createElement(
345
+ /* @__PURE__ */ React4.createElement(
334
346
  "circle",
335
347
  {
336
348
  className: cn(
@@ -381,13 +393,10 @@ var buttonVariants = cva(
381
393
  smallIcon: "hawa-h-7 hawa-w-7"
382
394
  }
383
395
  },
384
- defaultVariants: {
385
- variant: "default",
386
- size: "default"
387
- }
396
+ defaultVariants: { variant: "default", size: "default" }
388
397
  }
389
398
  );
390
- var Button = React4.forwardRef(
399
+ var Button = React5.forwardRef(
391
400
  ({
392
401
  className,
393
402
  label,
@@ -397,11 +406,13 @@ var Button = React4.forwardRef(
397
406
  centered = true,
398
407
  isLoading,
399
408
  children,
409
+ labelProps,
410
+ showHelperText = false,
400
411
  ...props
401
412
  }, ref) => {
402
413
  const Comp = "button";
403
414
  const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
404
- return /* @__PURE__ */ React4.createElement("div", { className: "flex flex-col" }, label && /* @__PURE__ */ React4.createElement(Label, { className: "hawa-mb-2" }, label), /* @__PURE__ */ React4.createElement(
415
+ return /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React5.createElement(
405
416
  Comp,
406
417
  {
407
418
  className: cn(
@@ -411,7 +422,7 @@ var Button = React4.forwardRef(
411
422
  ref,
412
423
  ...props
413
424
  },
414
- isLoading ? /* @__PURE__ */ React4.createElement(
425
+ isLoading ? /* @__PURE__ */ React5.createElement(
415
426
  Loading,
416
427
  {
417
428
  design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
@@ -420,7 +431,7 @@ var Button = React4.forwardRef(
420
431
  size: size === "sm" || size === "xs" ? "xs" : "button"
421
432
  }
422
433
  ) : children
423
- ));
434
+ ), showHelperText && /* @__PURE__ */ React5.createElement(HelperText, { helperText: props.helperText }));
424
435
  }
425
436
  );
426
437
  Button.displayName = "Button";
@@ -471,7 +482,7 @@ var Alert = ({
471
482
  hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-700 hawa-via-red-500 hawa-to-yellow-600 ",
472
483
  oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-500 hawa-via-blue-700 hawa-to-purple-500"
473
484
  };
474
- return /* @__PURE__ */ React5.createElement("div", { ref: alertRef }, /* @__PURE__ */ React5.createElement(
485
+ return /* @__PURE__ */ React6.createElement("div", { ref: alertRef }, /* @__PURE__ */ React6.createElement(
475
486
  "div",
476
487
  {
477
488
  "data-testid": "alert",
@@ -485,13 +496,13 @@ var Alert = ({
485
496
  className
486
497
  )
487
498
  },
488
- /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ React5.createElement(
499
+ /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ React6.createElement(
489
500
  "div",
490
501
  {
491
502
  className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
492
503
  },
493
504
  icon
494
- ), /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React5.createElement(
505
+ ), /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React6.createElement(
495
506
  "span",
496
507
  {
497
508
  className: cn(
@@ -500,7 +511,7 @@ var Alert = ({
500
511
  )
501
512
  },
502
513
  props.title
503
- ), /* @__PURE__ */ React5.createElement(
514
+ ), /* @__PURE__ */ React6.createElement(
504
515
  "span",
505
516
  {
506
517
  className: cn(
@@ -509,7 +520,7 @@ var Alert = ({
509
520
  )
510
521
  },
511
522
  props.text
512
- ), props.actions && /* @__PURE__ */ React5.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ React5.createElement(
523
+ ), props.actions && /* @__PURE__ */ React6.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ React6.createElement(
513
524
  Button,
514
525
  {
515
526
  key: index,
@@ -518,7 +529,7 @@ var Alert = ({
518
529
  },
519
530
  act.label
520
531
  ))))),
521
- !props.persistent && /* @__PURE__ */ React5.createElement(
532
+ !props.persistent && /* @__PURE__ */ React6.createElement(
522
533
  "button",
523
534
  {
524
535
  type: "button",
@@ -545,8 +556,8 @@ var Alert = ({
545
556
  }
546
557
  }
547
558
  },
548
- /* @__PURE__ */ React5.createElement("span", { className: "hawa-sr-only" }, "Close"),
549
- /* @__PURE__ */ React5.createElement(
559
+ /* @__PURE__ */ React6.createElement("span", { className: "hawa-sr-only" }, "Close"),
560
+ /* @__PURE__ */ React6.createElement(
550
561
  "svg",
551
562
  {
552
563
  "aria-label": "Close Icon",
@@ -555,7 +566,7 @@ var Alert = ({
555
566
  fill: "currentColor",
556
567
  viewBox: "0 0 20 20"
557
568
  },
558
- /* @__PURE__ */ React5.createElement(
569
+ /* @__PURE__ */ React6.createElement(
559
570
  "path",
560
571
  {
561
572
  fillRule: "evenodd",
@@ -644,7 +655,7 @@ var FileDropzone = ({
644
655
  const errs = fileRejections.map((rej, i) => {
645
656
  switch (rej.errors[0].code) {
646
657
  case "file-too-large":
647
- return /* @__PURE__ */ React6.createElement(
658
+ return /* @__PURE__ */ React7.createElement(
648
659
  Alert,
649
660
  {
650
661
  key: i,
@@ -654,7 +665,7 @@ var FileDropzone = ({
654
665
  }
655
666
  );
656
667
  case "too-many-files":
657
- return /* @__PURE__ */ React6.createElement(
668
+ return /* @__PURE__ */ React7.createElement(
658
669
  Alert,
659
670
  {
660
671
  key: i,
@@ -664,7 +675,7 @@ var FileDropzone = ({
664
675
  }
665
676
  );
666
677
  case "file-invalid-type":
667
- return /* @__PURE__ */ React6.createElement(
678
+ return /* @__PURE__ */ React7.createElement(
668
679
  Alert,
669
680
  {
670
681
  key: i,
@@ -674,7 +685,7 @@ var FileDropzone = ({
674
685
  }
675
686
  );
676
687
  default:
677
- return /* @__PURE__ */ React6.createElement(
688
+ return /* @__PURE__ */ React7.createElement(
678
689
  Alert,
679
690
  {
680
691
  key: i,
@@ -685,7 +696,7 @@ var FileDropzone = ({
685
696
  );
686
697
  }
687
698
  });
688
- const thumbs = files == null ? void 0 : files.map((file, index) => /* @__PURE__ */ React6.createElement("div", { className: "hawa-relative hawa-rounded", key: index }, /* @__PURE__ */ React6.createElement(
699
+ const thumbs = files == null ? void 0 : files.map((file, index) => /* @__PURE__ */ React7.createElement("div", { className: "hawa-relative hawa-rounded", key: index }, /* @__PURE__ */ React7.createElement(
689
700
  "button",
690
701
  {
691
702
  onClick: (e) => {
@@ -698,7 +709,7 @@ var FileDropzone = ({
698
709
  className: "hawa-absolute hawa-left-0 hawa-ml-auto hawa-inline-flex hawa-items-center hawa-rounded-inner hawa-rounded-bl-none hawa-rounded-tr-none hawa-bg-gray-900 hawa-p-1.5 hawa-text-sm hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-200 hover:hawa-text-gray-900 dark:hover:hawa-bg-gray-600 dark:hover:hawa-text-white",
699
710
  "data-modal-toggle": "defaultModal"
700
711
  },
701
- /* @__PURE__ */ React6.createElement(
712
+ /* @__PURE__ */ React7.createElement(
702
713
  "svg",
703
714
  {
704
715
  "aria-hidden": "true",
@@ -706,7 +717,7 @@ var FileDropzone = ({
706
717
  fill: "currentColor",
707
718
  viewBox: "0 0 20 20"
708
719
  },
709
- /* @__PURE__ */ React6.createElement(
720
+ /* @__PURE__ */ React7.createElement(
710
721
  "path",
711
722
  {
712
723
  fillRule: "evenodd",
@@ -715,8 +726,8 @@ var FileDropzone = ({
715
726
  }
716
727
  )
717
728
  ),
718
- /* @__PURE__ */ React6.createElement("span", { className: "hawa-sr-only" }, "Close modal")
719
- ), /* @__PURE__ */ React6.createElement(
729
+ /* @__PURE__ */ React7.createElement("span", { className: "hawa-sr-only" }, "Close modal")
730
+ ), /* @__PURE__ */ React7.createElement(
720
731
  "div",
721
732
  {
722
733
  style: {
@@ -735,7 +746,7 @@ var FileDropzone = ({
735
746
  key: file.name
736
747
  }
737
748
  )));
738
- return /* @__PURE__ */ React6.createElement("div", null, label && /* @__PURE__ */ React6.createElement("div", { className: "hawa-mb-2 hawa-block hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label), /* @__PURE__ */ React6.createElement(
749
+ return /* @__PURE__ */ React7.createElement("div", null, label && /* @__PURE__ */ React7.createElement("div", { className: "hawa-mb-2 hawa-block hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label), /* @__PURE__ */ React7.createElement(
739
750
  "div",
740
751
  {
741
752
  className: clsx2(
@@ -743,7 +754,7 @@ var FileDropzone = ({
743
754
  isDragActive ? "hawa-bg-muted" : "hawa-bg-muted/20 hover:hawa-bg-muted/50 "
744
755
  )
745
756
  },
746
- /* @__PURE__ */ React6.createElement("div", { ...getRootProps({}) }, /* @__PURE__ */ React6.createElement("p", { ...getInputProps() }), /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4 hawa-text-center" }, /* @__PURE__ */ React6.createElement(
757
+ /* @__PURE__ */ React7.createElement("div", { ...getRootProps({}) }, /* @__PURE__ */ React7.createElement("p", { ...getInputProps() }), /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4 hawa-text-center" }, /* @__PURE__ */ React7.createElement(
747
758
  "svg",
748
759
  {
749
760
  stroke: "currentColor",
@@ -755,28 +766,28 @@ var FileDropzone = ({
755
766
  height: "1.5em",
756
767
  width: "1.5em"
757
768
  },
758
- /* @__PURE__ */ React6.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
759
- /* @__PURE__ */ React6.createElement("path", { d: "M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" }),
760
- /* @__PURE__ */ React6.createElement("path", { d: "M13 13l9 3l-4 2l-2 4l-3 -9" }),
761
- /* @__PURE__ */ React6.createElement("path", { d: "M3 3l0 .01" }),
762
- /* @__PURE__ */ React6.createElement("path", { d: "M7 3l0 .01" }),
763
- /* @__PURE__ */ React6.createElement("path", { d: "M11 3l0 .01" }),
764
- /* @__PURE__ */ React6.createElement("path", { d: "M15 3l0 .01" }),
765
- /* @__PURE__ */ React6.createElement("path", { d: "M3 7l0 .01" }),
766
- /* @__PURE__ */ React6.createElement("path", { d: "M3 11l0 .01" }),
767
- /* @__PURE__ */ React6.createElement("path", { d: "M3 15l0 .01" })
768
- ), typeof texts.clickHereToUpload === "function" ? texts.clickHereToUpload() : texts.clickHereToUpload), /* @__PURE__ */ React6.createElement("div", { className: "hawa-select-none hawa-pt-2 hawa-text-center hawa-text-xs" }, texts.acceptedFileTypes, " ", accept.split(",")), /* @__PURE__ */ React6.createElement("div", { className: "hawa-select-none hawa-pb-2 hawa-pt-1 hawa-text-center hawa-text-xs" }, texts.maxFileSize, " ", max)),
769
- acceptedFiles.length > 0 && /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-justify-center hawa-rounded-lg hawa-p-2 " }, /* @__PURE__ */ React6.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
770
- acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ React6.createElement("aside", { className: "hawa-flex hawa-flex-row hawa-flex-wrap hawa-justify-center hawa-gap-2 hawa-rounded-lg hawa-p-2" }, thumbs) : null,
771
- /* @__PURE__ */ React6.createElement("div", { className: "px-4" }, ((_b = (_a = fileRejections[0]) == null ? void 0 : _a.errors[0]) == null ? void 0 : _b.code) && errs)
772
- ), disclaimer && /* @__PURE__ */ React6.createElement("div", { className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50" }, (_c = texts.disclaimer) != null ? _c : "By uploading a file you agree to our", " ", /* @__PURE__ */ React6.createElement(
769
+ /* @__PURE__ */ React7.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
770
+ /* @__PURE__ */ React7.createElement("path", { d: "M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" }),
771
+ /* @__PURE__ */ React7.createElement("path", { d: "M13 13l9 3l-4 2l-2 4l-3 -9" }),
772
+ /* @__PURE__ */ React7.createElement("path", { d: "M3 3l0 .01" }),
773
+ /* @__PURE__ */ React7.createElement("path", { d: "M7 3l0 .01" }),
774
+ /* @__PURE__ */ React7.createElement("path", { d: "M11 3l0 .01" }),
775
+ /* @__PURE__ */ React7.createElement("path", { d: "M15 3l0 .01" }),
776
+ /* @__PURE__ */ React7.createElement("path", { d: "M3 7l0 .01" }),
777
+ /* @__PURE__ */ React7.createElement("path", { d: "M3 11l0 .01" }),
778
+ /* @__PURE__ */ React7.createElement("path", { d: "M3 15l0 .01" })
779
+ ), typeof texts.clickHereToUpload === "function" ? texts.clickHereToUpload() : texts.clickHereToUpload), /* @__PURE__ */ React7.createElement("div", { className: "hawa-select-none hawa-pt-2 hawa-text-center hawa-text-xs" }, texts.acceptedFileTypes, " ", accept.split(",")), /* @__PURE__ */ React7.createElement("div", { className: "hawa-select-none hawa-pb-2 hawa-pt-1 hawa-text-center hawa-text-xs" }, texts.maxFileSize, " ", max)),
780
+ acceptedFiles.length > 0 && /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-justify-center hawa-rounded-lg hawa-p-2 " }, /* @__PURE__ */ React7.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
781
+ acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ React7.createElement("aside", { className: "hawa-flex hawa-flex-row hawa-flex-wrap hawa-justify-center hawa-gap-2 hawa-rounded-lg hawa-p-2" }, thumbs) : null,
782
+ /* @__PURE__ */ React7.createElement("div", { className: "px-4" }, ((_b = (_a = fileRejections[0]) == null ? void 0 : _a.errors[0]) == null ? void 0 : _b.code) && errs)
783
+ ), disclaimer && /* @__PURE__ */ React7.createElement("div", { className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50" }, (_c = texts.disclaimer) != null ? _c : "By uploading a file you agree to our", " ", /* @__PURE__ */ React7.createElement(
773
784
  "a",
774
785
  {
775
786
  href: termsLink,
776
787
  className: "clickable-link hawa-text-muted-foreground/50"
777
788
  },
778
789
  (_d = texts.terms) != null ? _d : "Terms"
779
- ), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ React6.createElement(
790
+ ), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ React7.createElement(
780
791
  "a",
781
792
  {
782
793
  href: privacyLink,