@sikka/hawa 0.32.2-next → 0.33.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 (136) hide show
  1. package/dist/{Chip-BT2hUlGJ.d.mts → Chip-BtgTAs8x.d.mts} +1 -1
  2. package/dist/{Chip-Dt7zJ-jZ.d.ts → Chip-DQsP5hFS.d.ts} +1 -1
  3. package/dist/Label-UbMDLtJF.d.mts +14 -0
  4. package/dist/Label-UbMDLtJF.d.ts +14 -0
  5. package/dist/alert/index.js +151 -34
  6. package/dist/alert/index.js.map +1 -1
  7. package/dist/alert/index.mjs +148 -31
  8. package/dist/alert/index.mjs.map +1 -1
  9. package/dist/appLayout/index.js +191 -145
  10. package/dist/appLayout/index.js.map +1 -1
  11. package/dist/appLayout/index.mjs +226 -180
  12. package/dist/appLayout/index.mjs.map +1 -1
  13. package/dist/backToTop/index.js +147 -30
  14. package/dist/backToTop/index.js.map +1 -1
  15. package/dist/backToTop/index.mjs +142 -25
  16. package/dist/backToTop/index.mjs.map +1 -1
  17. package/dist/blocks/auth/index.js +230 -229
  18. package/dist/blocks/auth/index.mjs +4 -4
  19. package/dist/blocks/feedback/index.js +147 -148
  20. package/dist/blocks/feedback/index.mjs +5 -5
  21. package/dist/blocks/index.js +230 -229
  22. package/dist/blocks/index.mjs +3 -3
  23. package/dist/blocks/misc/index.js +155 -154
  24. package/dist/blocks/misc/index.mjs +5 -5
  25. package/dist/blocks/pricing/index.js +174 -173
  26. package/dist/blocks/pricing/index.mjs +4 -4
  27. package/dist/button/index.d.mts +3 -2
  28. package/dist/button/index.d.ts +3 -2
  29. package/dist/button/index.js +138 -21
  30. package/dist/button/index.js.map +1 -1
  31. package/dist/button/index.mjs +138 -21
  32. package/dist/button/index.mjs.map +1 -1
  33. package/dist/calendar/index.d.mts +15 -0
  34. package/dist/calendar/index.d.ts +15 -0
  35. package/dist/calendar/index.js +545 -0
  36. package/dist/calendar/index.js.map +1 -0
  37. package/dist/calendar/index.mjs +509 -0
  38. package/dist/calendar/index.mjs.map +1 -0
  39. package/dist/{chunk-WFPAI2QC.mjs → chunk-3HJ3JXPA.mjs} +130 -174
  40. package/dist/{chunk-XRUPXLOK.mjs → chunk-AW5FW5TY.mjs} +1 -1
  41. package/dist/{chunk-MQWYXMSK.mjs → chunk-CKLK3G32.mjs} +242 -197
  42. package/dist/{chunk-XZLXGXIA.mjs → chunk-E3WWI4I5.mjs} +1 -1
  43. package/dist/{chunk-WUMWQIAW.mjs → chunk-FRYGQYUO.mjs} +1 -1
  44. package/dist/{chunk-S6TZHTWS.mjs → chunk-GEB3LM5A.mjs} +1 -1
  45. package/dist/{chunk-2QAGLSHC.mjs → chunk-IQEBXGLM.mjs} +1 -1
  46. package/dist/{chunk-PA3Z7W32.mjs → chunk-OS2UOK5C.mjs} +147 -146
  47. package/dist/{chunk-3S44N7SB.mjs → chunk-RTGD7N7I.mjs} +1 -1
  48. package/dist/{chunk-WAVKQ44V.mjs → chunk-UBNCETCU.mjs} +1 -1
  49. package/dist/codeBlock/index.js +138 -92
  50. package/dist/codeBlock/index.js.map +1 -1
  51. package/dist/codeBlock/index.mjs +157 -111
  52. package/dist/codeBlock/index.mjs.map +1 -1
  53. package/dist/commonTypes-CgDwjGvU.d.mts +5 -0
  54. package/dist/commonTypes-CgDwjGvU.d.ts +5 -0
  55. package/dist/commonTypes-DZdITB5m.d.mts +4 -0
  56. package/dist/commonTypes-DZdITB5m.d.ts +4 -0
  57. package/dist/dataTable/index.d.mts +2 -1
  58. package/dist/dataTable/index.d.ts +2 -1
  59. package/dist/dataTable/index.js +177 -174
  60. package/dist/dataTable/index.js.map +1 -1
  61. package/dist/dataTable/index.mjs +177 -174
  62. package/dist/dataTable/index.mjs.map +1 -1
  63. package/dist/datePicker/index.d.mts +20 -0
  64. package/dist/datePicker/index.d.ts +20 -0
  65. package/dist/datePicker/index.js +630 -0
  66. package/dist/datePicker/index.js.map +1 -0
  67. package/dist/datePicker/index.mjs +593 -0
  68. package/dist/datePicker/index.mjs.map +1 -0
  69. package/dist/destroyableCard/index.d.mts +1 -1
  70. package/dist/destroyableCard/index.d.ts +1 -1
  71. package/dist/dialog/index.d.mts +1 -1
  72. package/dist/dialog/index.d.ts +1 -1
  73. package/dist/docsLayout/index.js +231 -114
  74. package/dist/docsLayout/index.js.map +1 -1
  75. package/dist/docsLayout/index.mjs +222 -105
  76. package/dist/docsLayout/index.mjs.map +1 -1
  77. package/dist/dropdownMenu/index.d.mts +1 -6
  78. package/dist/dropdownMenu/index.d.ts +1 -6
  79. package/dist/elements/index.d.mts +9 -8
  80. package/dist/elements/index.d.ts +9 -8
  81. package/dist/elements/index.js +54 -51
  82. package/dist/elements/index.mjs +7 -5
  83. package/dist/fileDropzone/index.js +184 -67
  84. package/dist/fileDropzone/index.js.map +1 -1
  85. package/dist/fileDropzone/index.mjs +176 -59
  86. package/dist/fileDropzone/index.mjs.map +1 -1
  87. package/dist/index.css +83 -0
  88. package/dist/index.d.mts +1 -0
  89. package/dist/index.d.ts +1 -0
  90. package/dist/index.js +54 -51
  91. package/dist/index.mjs +74 -71
  92. package/dist/input/index.d.mts +1 -2
  93. package/dist/input/index.d.ts +1 -2
  94. package/dist/label/index.d.mts +2 -1
  95. package/dist/label/index.d.ts +2 -1
  96. package/dist/layout/index.d.mts +1 -1
  97. package/dist/layout/index.d.ts +1 -1
  98. package/dist/layout/index.js +204 -158
  99. package/dist/layout/index.mjs +2 -2
  100. package/dist/phoneInput/index.d.mts +1 -2
  101. package/dist/phoneInput/index.d.ts +1 -2
  102. package/dist/progress/index.d.mts +1 -8
  103. package/dist/progress/index.d.ts +1 -8
  104. package/dist/radio/index.d.mts +1 -9
  105. package/dist/radio/index.d.ts +1 -9
  106. package/dist/scrollArea/index.d.mts +1 -1
  107. package/dist/scrollArea/index.d.ts +1 -1
  108. package/dist/separator/index.d.mts +1 -1
  109. package/dist/separator/index.d.ts +1 -1
  110. package/dist/signature/index.d.mts +2 -1
  111. package/dist/signature/index.d.ts +2 -1
  112. package/dist/simpleTable/index.d.mts +1 -1
  113. package/dist/simpleTable/index.d.ts +1 -1
  114. package/dist/sortButton/index.js +145 -28
  115. package/dist/sortButton/index.js.map +1 -1
  116. package/dist/sortButton/index.mjs +145 -28
  117. package/dist/sortButton/index.mjs.map +1 -1
  118. package/dist/splitButton/index.d.mts +3 -2
  119. package/dist/splitButton/index.d.ts +3 -2
  120. package/dist/splitButton/index.js +145 -28
  121. package/dist/splitButton/index.js.map +1 -1
  122. package/dist/splitButton/index.mjs +145 -28
  123. package/dist/splitButton/index.mjs.map +1 -1
  124. package/dist/tabs/index.d.mts +1 -1
  125. package/dist/tabs/index.d.ts +1 -1
  126. package/dist/textarea/index.d.mts +1 -1
  127. package/dist/textarea/index.d.ts +1 -1
  128. package/dist/toast/index.d.mts +1 -1
  129. package/dist/toast/index.d.ts +1 -1
  130. package/dist/toaster/index.d.mts +22 -4
  131. package/dist/toaster/index.d.ts +22 -4
  132. package/package.json +3 -1
  133. package/dist/commonTypes-CMqMLkhN.d.mts +0 -4
  134. package/dist/commonTypes-CMqMLkhN.d.ts +0 -4
  135. package/dist/commonTypes-D_7LV7Ri.d.mts +0 -5
  136. package/dist/commonTypes-D_7LV7Ri.d.ts +0 -5
@@ -57,11 +57,127 @@ function cn(...inputs) {
57
57
  var import_react7 = __toESM(require("react"));
58
58
 
59
59
  // elements/button/Button.tsx
60
- var React4 = __toESM(require("react"));
60
+ var React6 = __toESM(require("react"));
61
61
  var import_class_variance_authority = require("class-variance-authority");
62
62
 
63
- // elements/loading/Loading.tsx
63
+ // elements/label/Label.tsx
64
+ var React4 = __toESM(require("react"));
65
+
66
+ // elements/tooltip/Tooltip.tsx
64
67
  var import_react3 = __toESM(require("react"));
68
+ var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
69
+ var TooltipContent = import_react3.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react3.default.createElement(
70
+ TooltipPrimitive.Content,
71
+ {
72
+ ref,
73
+ sideOffset,
74
+ className: cn(
75
+ "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-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",
76
+ {
77
+ "hawa-text-xs": size === "small",
78
+ "hawa-text-xl": size === "large"
79
+ },
80
+ className
81
+ ),
82
+ ...props
83
+ }
84
+ ));
85
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
86
+ var TooltipArrow = import_react3.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react3.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
87
+ TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
88
+ var Tooltip = ({
89
+ side,
90
+ size,
91
+ open,
92
+ content,
93
+ children,
94
+ disabled,
95
+ defaultOpen,
96
+ onOpenChange,
97
+ triggerProps,
98
+ contentProps,
99
+ providerProps,
100
+ delayDuration = 300,
101
+ ...props
102
+ }) => {
103
+ return /* @__PURE__ */ import_react3.default.createElement(
104
+ TooltipPrimitive.TooltipProvider,
105
+ {
106
+ delayDuration,
107
+ ...providerProps
108
+ },
109
+ /* @__PURE__ */ import_react3.default.createElement(
110
+ TooltipPrimitive.Root,
111
+ {
112
+ open: !disabled && open,
113
+ defaultOpen,
114
+ onOpenChange,
115
+ ...props
116
+ },
117
+ /* @__PURE__ */ import_react3.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
118
+ /* @__PURE__ */ import_react3.default.createElement(
119
+ TooltipContent,
120
+ {
121
+ size,
122
+ side,
123
+ align: "center",
124
+ ...contentProps,
125
+ style: {
126
+ ...contentProps == null ? void 0 : contentProps.style,
127
+ maxWidth: "var(--radix-tooltip-content-available-width)",
128
+ maxHeight: "var(--radix-tooltip-content-available-height)"
129
+ }
130
+ },
131
+ content
132
+ )
133
+ )
134
+ );
135
+ };
136
+
137
+ // elements/label/Label.tsx
138
+ var Label = React4.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React4.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React4.createElement(
139
+ "label",
140
+ {
141
+ ref,
142
+ className: cn(
143
+ "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
144
+ className
145
+ ),
146
+ ...props
147
+ },
148
+ children,
149
+ required && /* @__PURE__ */ React4.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
150
+ ), hint && /* @__PURE__ */ React4.createElement(
151
+ Tooltip,
152
+ {
153
+ content: hint,
154
+ side: hintSide,
155
+ triggerProps: {
156
+ tabIndex: -1,
157
+ onClick: (event) => event.preventDefault()
158
+ }
159
+ },
160
+ /* @__PURE__ */ React4.createElement("div", null, /* @__PURE__ */ React4.createElement(
161
+ "svg",
162
+ {
163
+ xmlns: "http://www.w3.org/2000/svg",
164
+ className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
165
+ viewBox: "0 0 24 24",
166
+ fill: "none",
167
+ stroke: "currentColor",
168
+ strokeWidth: "2",
169
+ strokeLinecap: "round",
170
+ strokeLinejoin: "round"
171
+ },
172
+ /* @__PURE__ */ React4.createElement("circle", { cx: "12", cy: "12", r: "10" }),
173
+ /* @__PURE__ */ React4.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
174
+ /* @__PURE__ */ React4.createElement("path", { d: "M12 17h.01" })
175
+ ))
176
+ )));
177
+ Label.displayName = "Label";
178
+
179
+ // elements/loading/Loading.tsx
180
+ var import_react4 = __toESM(require("react"));
65
181
  var Loading = ({
66
182
  design = "spinner",
67
183
  size = "normal",
@@ -92,7 +208,7 @@ var Loading = ({
92
208
  };
93
209
  switch (design.split("-")[0]) {
94
210
  case "dots":
95
- return /* @__PURE__ */ import_react3.default.createElement(
211
+ return /* @__PURE__ */ import_react4.default.createElement(
96
212
  "div",
97
213
  {
98
214
  className: cn(
@@ -100,7 +216,7 @@ var Loading = ({
100
216
  classNames == null ? void 0 : classNames.container
101
217
  )
102
218
  },
103
- /* @__PURE__ */ import_react3.default.createElement(
219
+ /* @__PURE__ */ import_react4.default.createElement(
104
220
  "div",
105
221
  {
106
222
  className: cn(
@@ -111,7 +227,7 @@ var Loading = ({
111
227
  )
112
228
  }
113
229
  ),
114
- /* @__PURE__ */ import_react3.default.createElement(
230
+ /* @__PURE__ */ import_react4.default.createElement(
115
231
  "div",
116
232
  {
117
233
  className: cn(
@@ -122,7 +238,7 @@ var Loading = ({
122
238
  )
123
239
  }
124
240
  ),
125
- /* @__PURE__ */ import_react3.default.createElement(
241
+ /* @__PURE__ */ import_react4.default.createElement(
126
242
  "div",
127
243
  {
128
244
  className: cn(
@@ -135,7 +251,7 @@ var Loading = ({
135
251
  )
136
252
  );
137
253
  case "square":
138
- return /* @__PURE__ */ import_react3.default.createElement(
254
+ return /* @__PURE__ */ import_react4.default.createElement(
139
255
  "svg",
140
256
  {
141
257
  className: cn(
@@ -147,7 +263,7 @@ var Loading = ({
147
263
  height: "35",
148
264
  width: "35"
149
265
  },
150
- /* @__PURE__ */ import_react3.default.createElement(
266
+ /* @__PURE__ */ import_react4.default.createElement(
151
267
  "rect",
152
268
  {
153
269
  className: "squircle-track",
@@ -159,7 +275,7 @@ var Loading = ({
159
275
  height: "32.5"
160
276
  }
161
277
  ),
162
- /* @__PURE__ */ import_react3.default.createElement(
278
+ /* @__PURE__ */ import_react4.default.createElement(
163
279
  "rect",
164
280
  {
165
281
  className: "square-car",
@@ -174,7 +290,7 @@ var Loading = ({
174
290
  )
175
291
  );
176
292
  case "squircle":
177
- return /* @__PURE__ */ import_react3.default.createElement(
293
+ return /* @__PURE__ */ import_react4.default.createElement(
178
294
  "svg",
179
295
  {
180
296
  x: "0px",
@@ -189,7 +305,7 @@ var Loading = ({
189
305
  classNames == null ? void 0 : classNames.container
190
306
  )
191
307
  },
192
- /* @__PURE__ */ import_react3.default.createElement(
308
+ /* @__PURE__ */ import_react4.default.createElement(
193
309
  "path",
194
310
  {
195
311
  className: cn("squircle-track", classNames == null ? void 0 : classNames.track),
@@ -199,7 +315,7 @@ var Loading = ({
199
315
  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"
200
316
  }
201
317
  ),
202
- /* @__PURE__ */ import_react3.default.createElement(
318
+ /* @__PURE__ */ import_react4.default.createElement(
203
319
  "path",
204
320
  {
205
321
  className: cn("squircle-car", classNames == null ? void 0 : classNames.car),
@@ -211,7 +327,7 @@ var Loading = ({
211
327
  )
212
328
  );
213
329
  case "progress":
214
- return /* @__PURE__ */ import_react3.default.createElement(
330
+ return /* @__PURE__ */ import_react4.default.createElement(
215
331
  "div",
216
332
  {
217
333
  className: cn(
@@ -222,9 +338,9 @@ var Loading = ({
222
338
  }
223
339
  );
224
340
  case "orbit":
225
- return /* @__PURE__ */ import_react3.default.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
341
+ return /* @__PURE__ */ import_react4.default.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
226
342
  default:
227
- return /* @__PURE__ */ import_react3.default.createElement(
343
+ return /* @__PURE__ */ import_react4.default.createElement(
228
344
  "svg",
229
345
  {
230
346
  viewBox: "0 0 40 40",
@@ -236,7 +352,7 @@ var Loading = ({
236
352
  classNames == null ? void 0 : classNames.container
237
353
  )
238
354
  },
239
- /* @__PURE__ */ import_react3.default.createElement(
355
+ /* @__PURE__ */ import_react4.default.createElement(
240
356
  "circle",
241
357
  {
242
358
  className: cn(
@@ -255,7 +371,7 @@ var Loading = ({
255
371
  pathLength: "100"
256
372
  }
257
373
  ),
258
- /* @__PURE__ */ import_react3.default.createElement(
374
+ /* @__PURE__ */ import_react4.default.createElement(
259
375
  "circle",
260
376
  {
261
377
  className: cn(
@@ -312,9 +428,10 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
312
428
  }
313
429
  }
314
430
  );
315
- var Button = React4.forwardRef(
431
+ var Button = React6.forwardRef(
316
432
  ({
317
433
  className,
434
+ label,
318
435
  variant,
319
436
  size,
320
437
  asChild = false,
@@ -325,7 +442,7 @@ var Button = React4.forwardRef(
325
442
  }, ref) => {
326
443
  const Comp = "button";
327
444
  const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
328
- return /* @__PURE__ */ React4.createElement(
445
+ return /* @__PURE__ */ React6.createElement("div", { className: "flex flex-col" }, label && /* @__PURE__ */ React6.createElement(Label, { className: "hawa-mb-2" }, label), /* @__PURE__ */ React6.createElement(
329
446
  Comp,
330
447
  {
331
448
  className: cn(
@@ -335,7 +452,7 @@ var Button = React4.forwardRef(
335
452
  ref,
336
453
  ...props
337
454
  },
338
- isLoading ? /* @__PURE__ */ React4.createElement(
455
+ isLoading ? /* @__PURE__ */ React6.createElement(
339
456
  Loading,
340
457
  {
341
458
  design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
@@ -344,14 +461,14 @@ var Button = React4.forwardRef(
344
461
  size: size === "sm" || size === "xs" ? "xs" : "button"
345
462
  }
346
463
  ) : children
347
- );
464
+ ));
348
465
  }
349
466
  );
350
467
  Button.displayName = "Button";
351
468
 
352
469
  // elements/card/Card.tsx
353
- var React5 = __toESM(require("react"));
354
- var Card = React5.forwardRef(
470
+ var React7 = __toESM(require("react"));
471
+ var Card = React7.forwardRef(
355
472
  ({
356
473
  className,
357
474
  variant = "default",
@@ -370,7 +487,7 @@ var Card = React5.forwardRef(
370
487
  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"
371
488
  )
372
489
  };
373
- return /* @__PURE__ */ React5.createElement(
490
+ return /* @__PURE__ */ React7.createElement(
374
491
  "div",
375
492
  {
376
493
  ref,
@@ -380,7 +497,7 @@ var Card = React5.forwardRef(
380
497
  );
381
498
  }
382
499
  );
383
- var CardHeader = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
500
+ var CardHeader = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
384
501
  "div",
385
502
  {
386
503
  ref,
@@ -391,7 +508,7 @@ var CardHeader = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE_
391
508
  ...props
392
509
  }
393
510
  ));
394
- var CardTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
511
+ var CardTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
395
512
  "h3",
396
513
  {
397
514
  ref,
@@ -399,7 +516,7 @@ var CardTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__
399
516
  ...props
400
517
  }
401
518
  ));
402
- var CardDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
519
+ var CardDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
403
520
  "p",
404
521
  {
405
522
  ref,
@@ -407,8 +524,8 @@ var CardDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__
407
524
  ...props
408
525
  }
409
526
  ));
410
- var CardContent = React5.forwardRef(
411
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
527
+ var CardContent = React7.forwardRef(
528
+ ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
412
529
  "div",
413
530
  {
414
531
  ref,
@@ -421,7 +538,7 @@ var CardContent = React5.forwardRef(
421
538
  }
422
539
  )
423
540
  );
424
- var CardFooter = React5.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React5.createElement(
541
+ var CardFooter = React7.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React7.createElement(
425
542
  "div",
426
543
  {
427
544
  ref,
@@ -441,12 +558,12 @@ CardTitle.displayName = "CardTitle";
441
558
  Card.displayName = "Card";
442
559
 
443
560
  // elements/separator/Separator.tsx
444
- var React6 = __toESM(require("react"));
561
+ var React8 = __toESM(require("react"));
445
562
  var Separator = ({
446
563
  className,
447
564
  orientation = "horizontal",
448
565
  ...props
449
- }) => /* @__PURE__ */ React6.createElement(
566
+ }) => /* @__PURE__ */ React8.createElement(
450
567
  "div",
451
568
  {
452
569
  className: cn(
@@ -459,7 +576,7 @@ var Separator = ({
459
576
  );
460
577
 
461
578
  // elements/skeleton/Skeleton.tsx
462
- var import_react4 = __toESM(require("react"));
579
+ var import_react5 = __toESM(require("react"));
463
580
  function Skeleton({
464
581
  className,
465
582
  content,
@@ -478,7 +595,7 @@ function Skeleton({
478
595
  right: "hawa-mask-fade-right",
479
596
  left: "hawa-mask-fade-left "
480
597
  };
481
- return /* @__PURE__ */ import_react4.default.createElement(
598
+ return /* @__PURE__ */ import_react5.default.createElement(
482
599
  "div",
483
600
  {
484
601
  className: cn(
@@ -493,77 +610,6 @@ function Skeleton({
493
610
  );
494
611
  }
495
612
 
496
- // elements/tooltip/Tooltip.tsx
497
- var import_react5 = __toESM(require("react"));
498
- var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
499
- var TooltipContent = import_react5.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react5.default.createElement(
500
- TooltipPrimitive.Content,
501
- {
502
- ref,
503
- sideOffset,
504
- className: cn(
505
- "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-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",
506
- {
507
- "hawa-text-xs": size === "small",
508
- "hawa-text-xl": size === "large"
509
- },
510
- className
511
- ),
512
- ...props
513
- }
514
- ));
515
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
516
- var TooltipArrow = import_react5.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react5.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
517
- TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
518
- var Tooltip = ({
519
- side,
520
- size,
521
- open,
522
- content,
523
- children,
524
- disabled,
525
- defaultOpen,
526
- onOpenChange,
527
- triggerProps,
528
- contentProps,
529
- providerProps,
530
- delayDuration = 300,
531
- ...props
532
- }) => {
533
- return /* @__PURE__ */ import_react5.default.createElement(
534
- TooltipPrimitive.TooltipProvider,
535
- {
536
- delayDuration,
537
- ...providerProps
538
- },
539
- /* @__PURE__ */ import_react5.default.createElement(
540
- TooltipPrimitive.Root,
541
- {
542
- open: !disabled && open,
543
- defaultOpen,
544
- onOpenChange,
545
- ...props
546
- },
547
- /* @__PURE__ */ import_react5.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
548
- /* @__PURE__ */ import_react5.default.createElement(
549
- TooltipContent,
550
- {
551
- size,
552
- side,
553
- align: "center",
554
- ...contentProps,
555
- style: {
556
- ...contentProps == null ? void 0 : contentProps.style,
557
- maxWidth: "var(--radix-tooltip-content-available-width)",
558
- maxHeight: "var(--radix-tooltip-content-available-height)"
559
- }
560
- },
561
- content
562
- )
563
- )
564
- );
565
- };
566
-
567
613
  // elements/chip/Chip.tsx
568
614
  var import_react6 = __toESM(require("react"));
569
615
  var Chip = import_react6.default.forwardRef(
@@ -771,9 +817,9 @@ var PricingCard = ({
771
817
  var import_react9 = __toESM(require("react"));
772
818
 
773
819
  // elements/dropdownMenu/DropdownMenu.tsx
774
- var React11 = __toESM(require("react"));
820
+ var React12 = __toESM(require("react"));
775
821
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
776
- var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React11.createElement(
822
+ var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React12.createElement(
777
823
  DropdownMenuPrimitive.SubTrigger,
778
824
  {
779
825
  ref,
@@ -784,9 +830,9 @@ var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, .
784
830
  ),
785
831
  ...props
786
832
  },
787
- /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
833
+ /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
788
834
  " ",
789
- /* @__PURE__ */ React11.createElement(
835
+ /* @__PURE__ */ React12.createElement(
790
836
  "svg",
791
837
  {
792
838
  "aria-label": "Chevron Right Icon",
@@ -798,7 +844,7 @@ var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, .
798
844
  width: "1em",
799
845
  className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
800
846
  },
801
- /* @__PURE__ */ React11.createElement(
847
+ /* @__PURE__ */ React12.createElement(
802
848
  "path",
803
849
  {
804
850
  fillRule: "evenodd",
@@ -808,7 +854,7 @@ var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, .
808
854
  )
809
855
  ));
810
856
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
811
- var DropdownMenuSubContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
857
+ var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
812
858
  DropdownMenuPrimitive.SubContent,
813
859
  {
814
860
  ref,
@@ -820,7 +866,7 @@ var DropdownMenuSubContent = React11.forwardRef(({ className, ...props }, ref) =
820
866
  }
821
867
  ));
822
868
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
823
- var DropdownMenuContent = React11.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React11.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React11.createElement(
869
+ var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React12.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React12.createElement(
824
870
  DropdownMenuPrimitive.Content,
825
871
  {
826
872
  ref,
@@ -833,8 +879,8 @@ var DropdownMenuContent = React11.forwardRef(({ className, sideOffset = 4, ...pr
833
879
  }
834
880
  )));
835
881
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
836
- var DropdownMenuItem = React11.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
837
- return /* @__PURE__ */ React11.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React11.createElement(
882
+ var DropdownMenuItem = React12.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
883
+ return /* @__PURE__ */ React12.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React12.createElement(
838
884
  DropdownMenuPrimitive.Item,
839
885
  {
840
886
  disabled: props.disabled,
@@ -847,14 +893,14 @@ var DropdownMenuItem = React11.forwardRef(({ className, inset, badged, slug, Lin
847
893
  ),
848
894
  ...props
849
895
  },
850
- /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
896
+ /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
851
897
  props.end && props.end,
852
- !props.end && props.shortcut && /* @__PURE__ */ React11.createElement(DropdownMenuShortcut, null, props.shortcut),
853
- !props.end && badged && /* @__PURE__ */ React11.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
898
+ !props.end && props.shortcut && /* @__PURE__ */ React12.createElement(DropdownMenuShortcut, null, props.shortcut),
899
+ !props.end && badged && /* @__PURE__ */ React12.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
854
900
  ));
855
901
  });
856
902
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
857
- var DropdownMenuCheckboxItem = React11.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React11.createElement(
903
+ var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React12.createElement(
858
904
  DropdownMenuPrimitive.CheckboxItem,
859
905
  {
860
906
  ref,
@@ -865,7 +911,7 @@ var DropdownMenuCheckboxItem = React11.forwardRef(({ className, children, checke
865
911
  checked,
866
912
  ...props
867
913
  },
868
- /* @__PURE__ */ React11.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React11.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React11.createElement(
914
+ /* @__PURE__ */ React12.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React12.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React12.createElement(
869
915
  "svg",
870
916
  {
871
917
  "aria-label": "Check Mark",
@@ -876,12 +922,12 @@ var DropdownMenuCheckboxItem = React11.forwardRef(({ className, children, checke
876
922
  height: "0.60em",
877
923
  width: "0.60em"
878
924
  },
879
- /* @__PURE__ */ React11.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
925
+ /* @__PURE__ */ React12.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
880
926
  ), " ")),
881
927
  children
882
928
  ));
883
929
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
884
- var DropdownMenuRadioItem = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React11.createElement(
930
+ var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React12.createElement(
885
931
  DropdownMenuPrimitive.RadioItem,
886
932
  {
887
933
  ref,
@@ -891,7 +937,7 @@ var DropdownMenuRadioItem = React11.forwardRef(({ className, children, ...props
891
937
  ),
892
938
  ...props
893
939
  },
894
- /* @__PURE__ */ React11.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React11.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React11.createElement(
940
+ /* @__PURE__ */ React12.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React12.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React12.createElement(
895
941
  "svg",
896
942
  {
897
943
  xmlns: "http://www.w3.org/2000/svg",
@@ -906,12 +952,12 @@ var DropdownMenuRadioItem = React11.forwardRef(({ className, children, ...props
906
952
  strokeLinejoin: "round",
907
953
  className: "hawa-h-2 hawa-w-2 hawa-fill-current"
908
954
  },
909
- /* @__PURE__ */ React11.createElement("circle", { cx: "12", cy: "12", r: "10" })
955
+ /* @__PURE__ */ React12.createElement("circle", { cx: "12", cy: "12", r: "10" })
910
956
  ))),
911
957
  children
912
958
  ));
913
959
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
914
- var DropdownMenuLabel = React11.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React11.createElement(
960
+ var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React12.createElement(
915
961
  DropdownMenuPrimitive.Label,
916
962
  {
917
963
  ref,
@@ -924,7 +970,7 @@ var DropdownMenuLabel = React11.forwardRef(({ className, inset, ...props }, ref)
924
970
  }
925
971
  ));
926
972
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
927
- var DropdownMenuSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
973
+ var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
928
974
  DropdownMenuPrimitive.Separator,
929
975
  {
930
976
  ref,
@@ -937,7 +983,7 @@ var DropdownMenuShortcut = ({
937
983
  className,
938
984
  ...props
939
985
  }) => {
940
- return /* @__PURE__ */ React11.createElement(
986
+ return /* @__PURE__ */ React12.createElement(
941
987
  "span",
942
988
  {
943
989
  className: cn(
@@ -958,51 +1004,6 @@ var import_react10 = __toESM(require("react"));
958
1004
 
959
1005
  // elements/radio/Radio.tsx
960
1006
  var import_react11 = __toESM(require("react"));
961
-
962
- // elements/label/Label.tsx
963
- var React15 = __toESM(require("react"));
964
- var Label2 = React15.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React15.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React15.createElement(
965
- "label",
966
- {
967
- ref,
968
- className: cn(
969
- "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
970
- className
971
- ),
972
- ...props
973
- },
974
- children,
975
- required && /* @__PURE__ */ React15.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
976
- ), hint && /* @__PURE__ */ React15.createElement(
977
- Tooltip,
978
- {
979
- content: hint,
980
- side: hintSide,
981
- triggerProps: {
982
- tabIndex: -1,
983
- onClick: (event) => event.preventDefault()
984
- }
985
- },
986
- /* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement(
987
- "svg",
988
- {
989
- xmlns: "http://www.w3.org/2000/svg",
990
- className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
991
- viewBox: "0 0 24 24",
992
- fill: "none",
993
- stroke: "currentColor",
994
- strokeWidth: "2",
995
- strokeLinecap: "round",
996
- strokeLinejoin: "round"
997
- },
998
- /* @__PURE__ */ React15.createElement("circle", { cx: "12", cy: "12", r: "10" }),
999
- /* @__PURE__ */ React15.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
1000
- /* @__PURE__ */ React15.createElement("path", { d: "M12 17h.01" })
1001
- ))
1002
- )));
1003
- Label2.displayName = "Label";
1004
-
1005
- // elements/radio/Radio.tsx
1006
1007
  var Radio = (0, import_react11.forwardRef)(
1007
1008
  ({
1008
1009
  design = "default",
@@ -1060,7 +1061,7 @@ var Radio = (0, import_react11.forwardRef)(
1060
1061
  };
1061
1062
  switch (design) {
1062
1063
  case "tabs":
1063
- return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement(
1064
+ return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement(
1064
1065
  "ul",
1065
1066
  {
1066
1067
  ref: parentRef,
@@ -1162,7 +1163,7 @@ var Radio = (0, import_react11.forwardRef)(
1162
1163
  /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
1163
1164
  ))));
1164
1165
  default:
1165
- return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
1166
+ return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
1166
1167
  "div",
1167
1168
  {
1168
1169
  className: cn(