@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
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  cn
4
- } from "./chunk-MQWYXMSK.mjs";
4
+ } from "./chunk-CKLK3G32.mjs";
5
5
 
6
6
  // elements/sheet/Sheet.tsx
7
7
  import * as React from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  cn
4
- } from "./chunk-PA3Z7W32.mjs";
4
+ } from "./chunk-OS2UOK5C.mjs";
5
5
 
6
6
  // elements/scrollArea/ScrollArea.tsx
7
7
  import * as React from "react";
@@ -3,7 +3,7 @@ import {
3
3
  Label,
4
4
  Skeleton,
5
5
  cn
6
- } from "./chunk-PA3Z7W32.mjs";
6
+ } from "./chunk-OS2UOK5C.mjs";
7
7
 
8
8
  // elements/input/Input.tsx
9
9
  import React, { forwardRef } from "react";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Label,
4
4
  cn
5
- } from "./chunk-PA3Z7W32.mjs";
5
+ } from "./chunk-OS2UOK5C.mjs";
6
6
 
7
7
  // elements/radio/Radio.tsx
8
8
  import React, { useState, useRef, useEffect, forwardRef } from "react";
@@ -7,8 +7,122 @@ function cn(...inputs) {
7
7
  return twMerge(clsx(inputs));
8
8
  }
9
9
 
10
- // elements/loading/Loading.tsx
10
+ // elements/tooltip/Tooltip.tsx
11
11
  import React from "react";
12
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
13
+ var TooltipContent = React.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ React.createElement(
14
+ TooltipPrimitive.Content,
15
+ {
16
+ ref,
17
+ sideOffset,
18
+ className: cn(
19
+ "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",
20
+ {
21
+ "hawa-text-xs": size === "small",
22
+ "hawa-text-xl": size === "large"
23
+ },
24
+ className
25
+ ),
26
+ ...props
27
+ }
28
+ ));
29
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
30
+ var TooltipArrow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
31
+ TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
32
+ var Tooltip = ({
33
+ side,
34
+ size,
35
+ open,
36
+ content,
37
+ children,
38
+ disabled,
39
+ defaultOpen,
40
+ onOpenChange,
41
+ triggerProps,
42
+ contentProps,
43
+ providerProps,
44
+ delayDuration = 300,
45
+ ...props
46
+ }) => {
47
+ return /* @__PURE__ */ React.createElement(
48
+ TooltipPrimitive.TooltipProvider,
49
+ {
50
+ delayDuration,
51
+ ...providerProps
52
+ },
53
+ /* @__PURE__ */ React.createElement(
54
+ TooltipPrimitive.Root,
55
+ {
56
+ open: !disabled && open,
57
+ defaultOpen,
58
+ onOpenChange,
59
+ ...props
60
+ },
61
+ /* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
62
+ /* @__PURE__ */ React.createElement(
63
+ TooltipContent,
64
+ {
65
+ size,
66
+ side,
67
+ align: "center",
68
+ ...contentProps,
69
+ style: {
70
+ ...contentProps == null ? void 0 : contentProps.style,
71
+ maxWidth: "var(--radix-tooltip-content-available-width)",
72
+ maxHeight: "var(--radix-tooltip-content-available-height)"
73
+ }
74
+ },
75
+ content
76
+ )
77
+ )
78
+ );
79
+ };
80
+
81
+ // elements/label/Label.tsx
82
+ import * as React2 from "react";
83
+ 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(
84
+ "label",
85
+ {
86
+ ref,
87
+ className: cn(
88
+ "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
89
+ className
90
+ ),
91
+ ...props
92
+ },
93
+ children,
94
+ required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
95
+ ), hint && /* @__PURE__ */ React2.createElement(
96
+ Tooltip,
97
+ {
98
+ content: hint,
99
+ side: hintSide,
100
+ triggerProps: {
101
+ tabIndex: -1,
102
+ onClick: (event) => event.preventDefault()
103
+ }
104
+ },
105
+ /* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement(
106
+ "svg",
107
+ {
108
+ xmlns: "http://www.w3.org/2000/svg",
109
+ className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
110
+ viewBox: "0 0 24 24",
111
+ fill: "none",
112
+ stroke: "currentColor",
113
+ strokeWidth: "2",
114
+ strokeLinecap: "round",
115
+ strokeLinejoin: "round"
116
+ },
117
+ /* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
118
+ /* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
119
+ /* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
120
+ ))
121
+ )));
122
+ Label.displayName = "Label";
123
+
124
+ // elements/loading/Loading.tsx
125
+ import React3 from "react";
12
126
  var Loading = ({
13
127
  design = "spinner",
14
128
  size = "normal",
@@ -39,7 +153,7 @@ var Loading = ({
39
153
  };
40
154
  switch (design.split("-")[0]) {
41
155
  case "dots":
42
- return /* @__PURE__ */ React.createElement(
156
+ return /* @__PURE__ */ React3.createElement(
43
157
  "div",
44
158
  {
45
159
  className: cn(
@@ -47,7 +161,7 @@ var Loading = ({
47
161
  classNames == null ? void 0 : classNames.container
48
162
  )
49
163
  },
50
- /* @__PURE__ */ React.createElement(
164
+ /* @__PURE__ */ React3.createElement(
51
165
  "div",
52
166
  {
53
167
  className: cn(
@@ -58,7 +172,7 @@ var Loading = ({
58
172
  )
59
173
  }
60
174
  ),
61
- /* @__PURE__ */ React.createElement(
175
+ /* @__PURE__ */ React3.createElement(
62
176
  "div",
63
177
  {
64
178
  className: cn(
@@ -69,7 +183,7 @@ var Loading = ({
69
183
  )
70
184
  }
71
185
  ),
72
- /* @__PURE__ */ React.createElement(
186
+ /* @__PURE__ */ React3.createElement(
73
187
  "div",
74
188
  {
75
189
  className: cn(
@@ -82,7 +196,7 @@ var Loading = ({
82
196
  )
83
197
  );
84
198
  case "square":
85
- return /* @__PURE__ */ React.createElement(
199
+ return /* @__PURE__ */ React3.createElement(
86
200
  "svg",
87
201
  {
88
202
  className: cn(
@@ -94,7 +208,7 @@ var Loading = ({
94
208
  height: "35",
95
209
  width: "35"
96
210
  },
97
- /* @__PURE__ */ React.createElement(
211
+ /* @__PURE__ */ React3.createElement(
98
212
  "rect",
99
213
  {
100
214
  className: "squircle-track",
@@ -106,7 +220,7 @@ var Loading = ({
106
220
  height: "32.5"
107
221
  }
108
222
  ),
109
- /* @__PURE__ */ React.createElement(
223
+ /* @__PURE__ */ React3.createElement(
110
224
  "rect",
111
225
  {
112
226
  className: "square-car",
@@ -121,7 +235,7 @@ var Loading = ({
121
235
  )
122
236
  );
123
237
  case "squircle":
124
- return /* @__PURE__ */ React.createElement(
238
+ return /* @__PURE__ */ React3.createElement(
125
239
  "svg",
126
240
  {
127
241
  x: "0px",
@@ -136,7 +250,7 @@ var Loading = ({
136
250
  classNames == null ? void 0 : classNames.container
137
251
  )
138
252
  },
139
- /* @__PURE__ */ React.createElement(
253
+ /* @__PURE__ */ React3.createElement(
140
254
  "path",
141
255
  {
142
256
  className: cn("squircle-track", classNames == null ? void 0 : classNames.track),
@@ -146,7 +260,7 @@ var Loading = ({
146
260
  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"
147
261
  }
148
262
  ),
149
- /* @__PURE__ */ React.createElement(
263
+ /* @__PURE__ */ React3.createElement(
150
264
  "path",
151
265
  {
152
266
  className: cn("squircle-car", classNames == null ? void 0 : classNames.car),
@@ -158,7 +272,7 @@ var Loading = ({
158
272
  )
159
273
  );
160
274
  case "progress":
161
- return /* @__PURE__ */ React.createElement(
275
+ return /* @__PURE__ */ React3.createElement(
162
276
  "div",
163
277
  {
164
278
  className: cn(
@@ -169,9 +283,9 @@ var Loading = ({
169
283
  }
170
284
  );
171
285
  case "orbit":
172
- return /* @__PURE__ */ React.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
286
+ return /* @__PURE__ */ React3.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
173
287
  default:
174
- return /* @__PURE__ */ React.createElement(
288
+ return /* @__PURE__ */ React3.createElement(
175
289
  "svg",
176
290
  {
177
291
  viewBox: "0 0 40 40",
@@ -183,7 +297,7 @@ var Loading = ({
183
297
  classNames == null ? void 0 : classNames.container
184
298
  )
185
299
  },
186
- /* @__PURE__ */ React.createElement(
300
+ /* @__PURE__ */ React3.createElement(
187
301
  "circle",
188
302
  {
189
303
  className: cn(
@@ -202,7 +316,7 @@ var Loading = ({
202
316
  pathLength: "100"
203
317
  }
204
318
  ),
205
- /* @__PURE__ */ React.createElement(
319
+ /* @__PURE__ */ React3.createElement(
206
320
  "circle",
207
321
  {
208
322
  className: cn(
@@ -226,7 +340,7 @@ var Loading = ({
226
340
  };
227
341
 
228
342
  // elements/button/Button.tsx
229
- import * as React2 from "react";
343
+ import * as React4 from "react";
230
344
  import { cva } from "class-variance-authority";
231
345
  var buttonVariants = cva(
232
346
  "hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
@@ -261,9 +375,10 @@ var buttonVariants = cva(
261
375
  }
262
376
  }
263
377
  );
264
- var Button = React2.forwardRef(
378
+ var Button = React4.forwardRef(
265
379
  ({
266
380
  className,
381
+ label,
267
382
  variant,
268
383
  size,
269
384
  asChild = false,
@@ -274,7 +389,7 @@ var Button = React2.forwardRef(
274
389
  }, ref) => {
275
390
  const Comp = "button";
276
391
  const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
277
- return /* @__PURE__ */ React2.createElement(
392
+ return /* @__PURE__ */ React4.createElement("div", { className: "flex flex-col" }, label && /* @__PURE__ */ React4.createElement(Label, { className: "hawa-mb-2" }, label), /* @__PURE__ */ React4.createElement(
278
393
  Comp,
279
394
  {
280
395
  className: cn(
@@ -284,7 +399,7 @@ var Button = React2.forwardRef(
284
399
  ref,
285
400
  ...props
286
401
  },
287
- isLoading ? /* @__PURE__ */ React2.createElement(
402
+ isLoading ? /* @__PURE__ */ React4.createElement(
288
403
  Loading,
289
404
  {
290
405
  design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
@@ -293,14 +408,14 @@ var Button = React2.forwardRef(
293
408
  size: size === "sm" || size === "xs" ? "xs" : "button"
294
409
  }
295
410
  ) : children
296
- );
411
+ ));
297
412
  }
298
413
  );
299
414
  Button.displayName = "Button";
300
415
 
301
416
  // elements/card/Card.tsx
302
- import * as React3 from "react";
303
- var Card = React3.forwardRef(
417
+ import * as React5 from "react";
418
+ var Card = React5.forwardRef(
304
419
  ({
305
420
  className,
306
421
  variant = "default",
@@ -319,7 +434,7 @@ var Card = React3.forwardRef(
319
434
  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"
320
435
  )
321
436
  };
322
- return /* @__PURE__ */ React3.createElement(
437
+ return /* @__PURE__ */ React5.createElement(
323
438
  "div",
324
439
  {
325
440
  ref,
@@ -329,7 +444,7 @@ var Card = React3.forwardRef(
329
444
  );
330
445
  }
331
446
  );
332
- var CardHeader = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
447
+ var CardHeader = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
333
448
  "div",
334
449
  {
335
450
  ref,
@@ -340,7 +455,7 @@ var CardHeader = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE_
340
455
  ...props
341
456
  }
342
457
  ));
343
- var CardTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
458
+ var CardTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
344
459
  "h3",
345
460
  {
346
461
  ref,
@@ -348,7 +463,7 @@ var CardTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__
348
463
  ...props
349
464
  }
350
465
  ));
351
- var CardDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
466
+ var CardDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
352
467
  "p",
353
468
  {
354
469
  ref,
@@ -356,8 +471,8 @@ var CardDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__
356
471
  ...props
357
472
  }
358
473
  ));
359
- var CardContent = React3.forwardRef(
360
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
474
+ var CardContent = React5.forwardRef(
475
+ ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
361
476
  "div",
362
477
  {
363
478
  ref,
@@ -370,7 +485,7 @@ var CardContent = React3.forwardRef(
370
485
  }
371
486
  )
372
487
  );
373
- var CardFooter = React3.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React3.createElement(
488
+ var CardFooter = React5.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React5.createElement(
374
489
  "div",
375
490
  {
376
491
  ref,
@@ -389,120 +504,6 @@ CardFooter.displayName = "CardFooter";
389
504
  CardTitle.displayName = "CardTitle";
390
505
  Card.displayName = "Card";
391
506
 
392
- // elements/tooltip/Tooltip.tsx
393
- import React4 from "react";
394
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
395
- var TooltipContent = React4.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ React4.createElement(
396
- TooltipPrimitive.Content,
397
- {
398
- ref,
399
- sideOffset,
400
- className: cn(
401
- "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",
402
- {
403
- "hawa-text-xs": size === "small",
404
- "hawa-text-xl": size === "large"
405
- },
406
- className
407
- ),
408
- ...props
409
- }
410
- ));
411
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
412
- var TooltipArrow = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React4.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
413
- TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
414
- var Tooltip = ({
415
- side,
416
- size,
417
- open,
418
- content,
419
- children,
420
- disabled,
421
- defaultOpen,
422
- onOpenChange,
423
- triggerProps,
424
- contentProps,
425
- providerProps,
426
- delayDuration = 300,
427
- ...props
428
- }) => {
429
- return /* @__PURE__ */ React4.createElement(
430
- TooltipPrimitive.TooltipProvider,
431
- {
432
- delayDuration,
433
- ...providerProps
434
- },
435
- /* @__PURE__ */ React4.createElement(
436
- TooltipPrimitive.Root,
437
- {
438
- open: !disabled && open,
439
- defaultOpen,
440
- onOpenChange,
441
- ...props
442
- },
443
- /* @__PURE__ */ React4.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
444
- /* @__PURE__ */ React4.createElement(
445
- TooltipContent,
446
- {
447
- size,
448
- side,
449
- align: "center",
450
- ...contentProps,
451
- style: {
452
- ...contentProps == null ? void 0 : contentProps.style,
453
- maxWidth: "var(--radix-tooltip-content-available-width)",
454
- maxHeight: "var(--radix-tooltip-content-available-height)"
455
- }
456
- },
457
- content
458
- )
459
- )
460
- );
461
- };
462
-
463
- // elements/label/Label.tsx
464
- import * as React5 from "react";
465
- var Label = React5.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React5.createElement(
466
- "label",
467
- {
468
- ref,
469
- className: cn(
470
- "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
471
- className
472
- ),
473
- ...props
474
- },
475
- children,
476
- required && /* @__PURE__ */ React5.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
477
- ), hint && /* @__PURE__ */ React5.createElement(
478
- Tooltip,
479
- {
480
- content: hint,
481
- side: hintSide,
482
- triggerProps: {
483
- tabIndex: -1,
484
- onClick: (event) => event.preventDefault()
485
- }
486
- },
487
- /* @__PURE__ */ React5.createElement("div", null, /* @__PURE__ */ React5.createElement(
488
- "svg",
489
- {
490
- xmlns: "http://www.w3.org/2000/svg",
491
- className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
492
- viewBox: "0 0 24 24",
493
- fill: "none",
494
- stroke: "currentColor",
495
- strokeWidth: "2",
496
- strokeLinecap: "round",
497
- strokeLinejoin: "round"
498
- },
499
- /* @__PURE__ */ React5.createElement("circle", { cx: "12", cy: "12", r: "10" }),
500
- /* @__PURE__ */ React5.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
501
- /* @__PURE__ */ React5.createElement("path", { d: "M12 17h.01" })
502
- ))
503
- )));
504
- Label.displayName = "Label";
505
-
506
507
  // elements/skeleton/Skeleton.tsx
507
508
  import React6 from "react";
508
509
  function Skeleton({
@@ -540,6 +541,8 @@ function Skeleton({
540
541
 
541
542
  export {
542
543
  cn,
544
+ Tooltip,
545
+ Label,
543
546
  Loading,
544
547
  Button,
545
548
  Card,
@@ -548,7 +551,5 @@ export {
548
551
  CardDescription,
549
552
  CardContent,
550
553
  CardFooter,
551
- Tooltip,
552
- Label,
553
554
  Skeleton
554
555
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  cn
4
- } from "./chunk-PA3Z7W32.mjs";
4
+ } from "./chunk-OS2UOK5C.mjs";
5
5
 
6
6
  // icons/Emojis.tsx
7
7
  import React from "react";
@@ -3,7 +3,7 @@ import {
3
3
  Label,
4
4
  Skeleton,
5
5
  cn
6
- } from "./chunk-PA3Z7W32.mjs";
6
+ } from "./chunk-OS2UOK5C.mjs";
7
7
 
8
8
  // elements/select/Select.tsx
9
9
  import React from "react";