@sikka/hawa 0.23.2-next → 0.23.7-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 (145) hide show
  1. package/dist/accordion/index.js +30 -2399
  2. package/dist/accordion/index.mjs +19 -461
  3. package/dist/alert/index.mjs +0 -1
  4. package/dist/appStores/index.js +75 -0
  5. package/dist/appStores/index.mjs +38 -0
  6. package/dist/avatar/index.mjs +118 -3
  7. package/dist/backToTop/index.mjs +102 -4
  8. package/dist/badge/index.js +127 -0
  9. package/dist/badge/index.mjs +84 -0
  10. package/dist/blocks/auth/index.js +1173 -3092
  11. package/dist/blocks/auth/index.mjs +16 -10
  12. package/dist/blocks/feedback/index.js +864 -2913
  13. package/dist/blocks/feedback/index.mjs +14 -8
  14. package/dist/blocks/index.js +5714 -5316
  15. package/dist/blocks/index.mjs +390 -45
  16. package/dist/blocks/misc/index.js +634 -2409
  17. package/dist/blocks/misc/index.mjs +14 -8
  18. package/dist/blocks/pricing/index.js +522 -524
  19. package/dist/blocks/pricing/index.mjs +1861 -45
  20. package/dist/breadcrumb/index.js +63 -0
  21. package/dist/breadcrumb/index.mjs +26 -0
  22. package/dist/card/index.mjs +83 -8
  23. package/dist/checkbox/index.mjs +138 -3
  24. package/dist/chip/index.js +129 -0
  25. package/dist/chip/index.mjs +8 -0
  26. package/dist/{chunk-X6PCWJYD.mjs → chunk-2R2QPJT7.mjs} +761 -1104
  27. package/dist/chunk-677VOLD4.mjs +464 -0
  28. package/dist/chunk-72HYR6WB.mjs +88 -0
  29. package/dist/chunk-A25EXELT.mjs +131 -0
  30. package/dist/{chunk-OE27DSIY.mjs → chunk-F6TKEDDP.mjs} +2 -4
  31. package/dist/{chunk-YFC2GSJ6.mjs → chunk-P2O6R3S6.mjs} +66 -5
  32. package/dist/{chunk-GXXX5UB4.mjs → chunk-QGKW5R5F.mjs} +59 -20
  33. package/dist/chunk-TR56G3NM.mjs +2350 -0
  34. package/dist/chunk-UAVBFK53.mjs +346 -0
  35. package/dist/combobox/index.mjs +153 -7
  36. package/dist/dataTable/index.mjs +355 -8
  37. package/dist/elements/index.js +800 -1148
  38. package/dist/elements/index.mjs +1 -11
  39. package/dist/fileDropzone/index.mjs +226 -4
  40. package/dist/index.js +1721 -1721
  41. package/dist/index.mjs +1663 -1663
  42. package/dist/layout/index.js +493 -510
  43. package/dist/layout/index.mjs +1 -1
  44. package/dist/loading/index.mjs +0 -1
  45. package/dist/logos/index.mjs +204 -3
  46. package/dist/navigationMenu/index.mjs +155 -13
  47. package/dist/phoneInput/index.js +2074 -0
  48. package/dist/phoneInput/index.mjs +1776 -0
  49. package/dist/pinInput/index.js +130 -0
  50. package/dist/pinInput/index.mjs +88 -0
  51. package/dist/progress/index.js +71 -0
  52. package/dist/progress/index.mjs +29 -0
  53. package/dist/radio/index.mjs +202 -4
  54. package/dist/scrollArea/index.js +90 -0
  55. package/dist/scrollArea/index.mjs +47 -0
  56. package/dist/select/index.mjs +1 -1
  57. package/dist/sheet/index.mjs +137 -12
  58. package/dist/sortButton/index.mjs +40 -4
  59. package/dist/stopPropagationWrapper/index.js +48 -0
  60. package/dist/stopPropagationWrapper/index.mjs +11 -0
  61. package/dist/switch/index.mjs +79 -3
  62. package/dist/tabs/index.js +1 -1
  63. package/dist/tabs/index.mjs +68 -6
  64. package/dist/textarea/index.mjs +54 -4
  65. package/package.json +2 -2
  66. package/dist/Chip-DJ6ThZc_.d.ts +0 -21
  67. package/dist/Chip-eal8vwDz.d.mts +0 -21
  68. package/dist/accordion/index.d.mts +0 -42
  69. package/dist/accordion/index.d.ts +0 -42
  70. package/dist/alert/index.d.mts +0 -28
  71. package/dist/alert/index.d.ts +0 -28
  72. package/dist/avatar/index.d.mts +0 -15
  73. package/dist/avatar/index.d.ts +0 -15
  74. package/dist/backToTop/index.d.mts +0 -15
  75. package/dist/backToTop/index.d.ts +0 -15
  76. package/dist/button/index.d.mts +0 -16
  77. package/dist/button/index.d.ts +0 -16
  78. package/dist/card/index.d.mts +0 -17
  79. package/dist/card/index.d.ts +0 -17
  80. package/dist/checkbox/index.d.mts +0 -20
  81. package/dist/checkbox/index.d.ts +0 -20
  82. package/dist/chunk-BK5WF7UO.mjs +0 -231
  83. package/dist/chunk-CXWYC6FS.mjs +0 -360
  84. package/dist/chunk-D2USGMDT.mjs +0 -208
  85. package/dist/chunk-DX4SLF2L.mjs +0 -45
  86. package/dist/chunk-ENNSA4VR.mjs +0 -5566
  87. package/dist/chunk-GXSYCLZZ.mjs +0 -158
  88. package/dist/chunk-IQPGAHUR.mjs +0 -107
  89. package/dist/chunk-POT2IP62.mjs +0 -123
  90. package/dist/chunk-TWDZB2VH.mjs +0 -151
  91. package/dist/chunk-VBTYVVA7.mjs +0 -93
  92. package/dist/chunk-VCGW5DIP.mjs +0 -170
  93. package/dist/chunk-X3SMPIA3.mjs +0 -0
  94. package/dist/chunk-XA646BZ2.mjs +0 -143
  95. package/dist/chunk-ZCUUQ5VV.mjs +0 -84
  96. package/dist/combobox/index.d.mts +0 -32
  97. package/dist/combobox/index.d.ts +0 -32
  98. package/dist/command/index.d.mts +0 -48
  99. package/dist/command/index.d.ts +0 -48
  100. package/dist/commonTypes-gbO4hPli.d.mts +0 -7
  101. package/dist/commonTypes-gbO4hPli.d.ts +0 -7
  102. package/dist/dataTable/index.d.mts +0 -39
  103. package/dist/dataTable/index.d.ts +0 -39
  104. package/dist/dialog/index.d.mts +0 -57
  105. package/dist/dialog/index.d.ts +0 -57
  106. package/dist/dropdownMenu/index.d.mts +0 -95
  107. package/dist/dropdownMenu/index.d.ts +0 -95
  108. package/dist/fileDropzone/index.d.mts +0 -37
  109. package/dist/fileDropzone/index.d.ts +0 -37
  110. package/dist/input/index.d.mts +0 -36
  111. package/dist/input/index.d.ts +0 -36
  112. package/dist/label/index.d.mts +0 -12
  113. package/dist/label/index.d.ts +0 -12
  114. package/dist/loading/index.d.mts +0 -15
  115. package/dist/loading/index.d.ts +0 -15
  116. package/dist/logos/index.d.mts +0 -27
  117. package/dist/logos/index.d.ts +0 -27
  118. package/dist/navigationMenu/index.d.mts +0 -39
  119. package/dist/navigationMenu/index.d.ts +0 -39
  120. package/dist/popover/index.d.mts +0 -23
  121. package/dist/popover/index.d.ts +0 -23
  122. package/dist/radio/index.d.mts +0 -28
  123. package/dist/radio/index.d.ts +0 -28
  124. package/dist/select/index.d.mts +0 -43
  125. package/dist/select/index.d.ts +0 -43
  126. package/dist/sheet/index.d.mts +0 -30
  127. package/dist/sheet/index.d.ts +0 -30
  128. package/dist/skeleton/index.d.mts +0 -10
  129. package/dist/skeleton/index.d.ts +0 -10
  130. package/dist/sortButton/index.d.mts +0 -10
  131. package/dist/sortButton/index.d.ts +0 -10
  132. package/dist/splitButton/index.d.mts +0 -15
  133. package/dist/splitButton/index.d.ts +0 -15
  134. package/dist/switch/index.d.mts +0 -12
  135. package/dist/switch/index.d.ts +0 -12
  136. package/dist/table/index.d.mts +0 -21
  137. package/dist/table/index.d.ts +0 -21
  138. package/dist/tabs/index.d.mts +0 -16
  139. package/dist/tabs/index.d.ts +0 -16
  140. package/dist/textarea/index.d.mts +0 -17
  141. package/dist/textarea/index.d.ts +0 -17
  142. package/dist/tooltip/index.d.mts +0 -26
  143. package/dist/tooltip/index.d.ts +0 -26
  144. /package/dist/{chunk-A7OPD7H7.mjs → chunk-B6UCD4GP.mjs} +0 -0
  145. /package/dist/{chunk-O2ALK7UE.mjs → chunk-Z4M72OD3.mjs} +0 -0
@@ -39,1779 +39,21 @@ __export(accordion_exports, {
39
39
  module.exports = __toCommonJS(accordion_exports);
40
40
 
41
41
  // components/elements/accordion/Accordion.tsx
42
- var React65 = __toESM(require("react"));
42
+ var React4 = __toESM(require("react"));
43
43
  var AccordionPrimitive3 = __toESM(require("@radix-ui/react-accordion"));
44
44
 
45
- // components/elements/card/Card.tsx
46
- var React = __toESM(require("react"));
47
-
48
- // components/util.ts
49
- var import_clsx = require("clsx");
50
- var import_tailwind_merge = require("tailwind-merge");
51
- function cn(...inputs) {
52
- return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
53
- }
54
-
55
- // components/elements/card/Card.tsx
56
- var Card = React.forwardRef(
57
- ({ className, variant = "default", clickable = false, ...props }, ref) => {
58
- let variantStyles = {
59
- default: cn(
60
- "hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
61
- clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"
62
- ),
63
- neoBrutalism: cn(
64
- "neo-brutalism",
65
- // "hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms]",
66
- 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"
67
- )
68
- };
69
- return /* @__PURE__ */ React.createElement(
70
- "div",
71
- {
72
- ref,
73
- className: cn(className, variantStyles[variant]),
74
- ...props
75
- }
76
- );
77
- }
78
- );
79
- var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
80
- "div",
81
- {
82
- ref,
83
- className: cn(
84
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
85
- className
86
- ),
87
- ...props
88
- }
89
- ));
90
- var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
91
- "h3",
92
- {
93
- ref,
94
- className: cn("hawa-text-2xl hawa-font-semibold ", className),
95
- ...props
96
- }
97
- ));
98
- var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
99
- "p",
100
- {
101
- ref,
102
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
103
- ...props
104
- }
105
- ));
106
- var CardContent = React.forwardRef(
107
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React.createElement(
108
- "div",
109
- {
110
- ref,
111
- className: cn(
112
- noPadding ? "hawa-p-0" : "hawa-p-6",
113
- headless ? "hawa-pt-6" : "hawa-pt-0",
114
- className
115
- ),
116
- ...props
117
- }
118
- )
119
- );
120
- var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
121
- "div",
122
- {
123
- ref,
124
- className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className),
125
- ...props
126
- }
127
- ));
128
- CardDescription.displayName = "CardDescription";
129
- CardContent.displayName = "CardContent";
130
- CardHeader.displayName = "CardHeader";
131
- CardFooter.displayName = "CardFooter";
132
- CardTitle.displayName = "CardTitle";
133
- Card.displayName = "Card";
134
-
135
- // components/elements/loading/Loading.tsx
136
- var import_react = __toESM(require("react"));
137
- var Loading = ({
138
- design = "spinner",
139
- size = "sm",
140
- themeMode = "light",
141
- color,
142
- ...props
143
- }) => {
144
- let sizeStyles = {
145
- button: "hawa-h-4 hawa-w-4",
146
- xs: "hawa-h-1 hawa-w-1",
147
- sm: "hawa-h-6 hawa-w-6",
148
- normal: "hawa-h-8 hawa-w-8",
149
- lg: "hawa-h-14 hawa-w-14",
150
- xl: "hawa-h-24 hawa-w-24"
151
- };
152
- let animationStyles = {
153
- pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
154
- bounce: "hawa-animate-bounce"
155
- };
156
- switch (design.split("-")[0]) {
157
- case "dots":
158
- return /* @__PURE__ */ import_react.default.createElement(
159
- "div",
160
- {
161
- className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
162
- },
163
- /* @__PURE__ */ import_react.default.createElement(
164
- "div",
165
- {
166
- className: cn(
167
- "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
168
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
169
- animationStyles[design.split("-")[1]],
170
- color ? color : "hawa-bg-primary"
171
- )
172
- }
173
- ),
174
- /* @__PURE__ */ import_react.default.createElement(
175
- "div",
176
- {
177
- className: cn(
178
- "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
179
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
180
- animationStyles[design.split("-")[1]],
181
- color ? color : "hawa-bg-primary"
182
- )
183
- }
184
- ),
185
- /* @__PURE__ */ import_react.default.createElement(
186
- "div",
187
- {
188
- className: cn(
189
- "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
190
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
191
- animationStyles[design.split("-")[1]],
192
- color ? color : "hawa-bg-primary"
193
- )
194
- }
195
- )
196
- );
197
- case "square":
198
- return /* @__PURE__ */ import_react.default.createElement(
199
- "svg",
200
- {
201
- className: cn("squircle-container", sizeStyles[size]),
202
- viewBox: "0 0 35 35",
203
- height: "35",
204
- width: "35"
205
- },
206
- /* @__PURE__ */ import_react.default.createElement(
207
- "rect",
208
- {
209
- className: "squircle-track",
210
- x: "2.5",
211
- y: "2.5",
212
- fill: "none",
213
- strokeWidth: "5px",
214
- width: "32.5",
215
- height: "32.5"
216
- }
217
- ),
218
- /* @__PURE__ */ import_react.default.createElement(
219
- "rect",
220
- {
221
- className: "square-car",
222
- x: "2.5",
223
- y: "2.5",
224
- fill: "none",
225
- strokeWidth: "5px",
226
- width: "32.5",
227
- height: "32.5",
228
- pathLength: "100"
229
- }
230
- )
231
- );
232
- case "squircle":
233
- return /* @__PURE__ */ import_react.default.createElement(
234
- "svg",
235
- {
236
- className: cn("squircle-container", sizeStyles[size]),
237
- x: "0px",
238
- y: "0px",
239
- viewBox: "0 0 37 37",
240
- height: "37",
241
- width: "37",
242
- preserveAspectRatio: "xMidYMid meet"
243
- },
244
- /* @__PURE__ */ import_react.default.createElement(
245
- "path",
246
- {
247
- className: "squircle-track",
248
- fill: "none",
249
- strokeWidth: "5",
250
- pathLength: "100",
251
- 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"
252
- }
253
- ),
254
- /* @__PURE__ */ import_react.default.createElement(
255
- "path",
256
- {
257
- className: "squircle-car",
258
- fill: "none",
259
- strokeWidth: "5",
260
- pathLength: "100",
261
- 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"
262
- }
263
- )
264
- );
265
- case "progress":
266
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "progress-loading" });
267
- case "orbit":
268
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "orbit-container" });
269
- default:
270
- return /* @__PURE__ */ import_react.default.createElement(
271
- "svg",
272
- {
273
- className: cn("circle-container", sizeStyles[size]),
274
- viewBox: "0 0 40 40",
275
- height: "40",
276
- width: "40"
277
- },
278
- /* @__PURE__ */ import_react.default.createElement(
279
- "circle",
280
- {
281
- className: cn("circle-track", {
282
- "hawa-stroke-primary-foreground": themeMode === "dark",
283
- "hawa-stroke-primary": themeMode === "light"
284
- }),
285
- cx: "20",
286
- cy: "20",
287
- r: "17.5",
288
- pathLength: "100",
289
- strokeWidth: "5px",
290
- fill: "none"
291
- }
292
- ),
293
- /* @__PURE__ */ import_react.default.createElement(
294
- "circle",
295
- {
296
- className: cn("circle-car", {
297
- "hawa-stroke-primary-foreground": themeMode === "dark",
298
- "hawa-stroke-primary": themeMode === "light"
299
- }),
300
- cx: "20",
301
- cy: "20",
302
- r: "17.5",
303
- pathLength: "100",
304
- strokeWidth: "5px",
305
- fill: "none"
306
- }
307
- )
308
- );
309
- }
310
- };
311
-
312
- // components/elements/tooltip/Tooltip.tsx
313
- var import_react2 = __toESM(require("react"));
314
- var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
315
- var TooltipContent = import_react2.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react2.default.createElement(
316
- TooltipPrimitive.Content,
317
- {
318
- ref,
319
- sideOffset,
320
- className: cn(
321
- "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",
322
- className
323
- ),
324
- ...props
325
- }
326
- ));
327
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
328
- var TooltipArrow = import_react2.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
329
- TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
330
- var Tooltip = ({
331
- side,
332
- open,
333
- content,
334
- children,
335
- defaultOpen,
336
- onOpenChange,
337
- triggerProps,
338
- contentProps,
339
- providerProps,
340
- delayDuration = 300,
341
- ...props
342
- }) => {
343
- return /* @__PURE__ */ import_react2.default.createElement(
344
- TooltipPrimitive.TooltipProvider,
345
- {
346
- delayDuration,
347
- ...providerProps
348
- },
349
- /* @__PURE__ */ import_react2.default.createElement(
350
- TooltipPrimitive.Root,
351
- {
352
- open,
353
- defaultOpen,
354
- onOpenChange,
355
- ...props
356
- },
357
- /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
358
- /* @__PURE__ */ import_react2.default.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
359
- )
360
- );
361
- };
362
-
363
- // components/elements/skeleton/Skeleton.tsx
364
- var import_react3 = __toESM(require("react"));
365
- function Skeleton({
366
- className,
367
- content,
368
- animation = "pulse",
369
- ...props
370
- }) {
371
- const animationStyles = {
372
- none: "hawa-rounded hawa-bg-muted",
373
- pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
374
- shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
375
- };
376
- return /* @__PURE__ */ import_react3.default.createElement(
377
- "div",
378
- {
379
- className: cn(
380
- animationStyles[animation],
381
- content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
382
- className
383
- ),
384
- ...props
385
- },
386
- content && content
387
- );
388
- }
389
-
390
- // components/elements/dropdownMenu/DropdownMenu.tsx
391
- var React5 = __toESM(require("react"));
392
- var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
393
- var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
394
- DropdownMenuPrimitive.SubTrigger,
395
- {
396
- ref,
397
- className: cn(
398
- "hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none focus:hawa-bg-accent data-[state=open]:hawa-bg-accent",
399
- inset && "hawa-pl-8",
400
- className
401
- ),
402
- ...props
403
- },
404
- /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
405
- " ",
406
- /* @__PURE__ */ React5.createElement(
407
- "svg",
408
- {
409
- "aria-label": "Chevron Right Icon",
410
- stroke: "currentColor",
411
- fill: "currentColor",
412
- strokeWidth: "0",
413
- viewBox: "0 0 16 16",
414
- height: "1em",
415
- width: "1em",
416
- className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
417
- },
418
- /* @__PURE__ */ React5.createElement(
419
- "path",
420
- {
421
- fillRule: "evenodd",
422
- d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
423
- }
424
- )
425
- )
426
- ));
427
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
428
- var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
429
- DropdownMenuPrimitive.SubContent,
430
- {
431
- ref,
432
- className: cn(
433
- "hawa-z-50 hawa-min-w-[8rem] hawa-gap-1 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-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",
434
- className
435
- ),
436
- ...props
437
- }
438
- ));
439
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
440
- var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React5.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React5.createElement(
441
- DropdownMenuPrimitive.Content,
442
- {
443
- ref,
444
- sideOffset,
445
- className: cn(
446
- "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-md data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-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",
447
- className
448
- ),
449
- ...props
450
- }
451
- )));
452
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
453
- var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
454
- return /* @__PURE__ */ React5.createElement("a", { href: slug }, /* @__PURE__ */ React5.createElement(
455
- DropdownMenuPrimitive.Item,
456
- {
457
- disabled: props.disabled,
458
- ref,
459
- className: cn(
460
- "hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
461
- inset && "hawa-pl-8",
462
- props.end && Array.isArray(props.children) && props.children[1] && "hawa-gap-6",
463
- className
464
- ),
465
- ...props
466
- },
467
- /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
468
- props.end && props.end,
469
- !props.end && props.shortcut && /* @__PURE__ */ React5.createElement(DropdownMenuShortcut, null, props.shortcut),
470
- !props.end && badged && /* @__PURE__ */ React5.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
471
- ));
472
- });
473
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
474
- var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React5.createElement(
475
- DropdownMenuPrimitive.CheckboxItem,
476
- {
477
- ref,
478
- className: cn(
479
- "hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
480
- className
481
- ),
482
- checked,
483
- ...props
484
- },
485
- /* @__PURE__ */ React5.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__ */ React5.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React5.createElement(
486
- "svg",
487
- {
488
- "aria-label": "Check Mark",
489
- stroke: "currentColor",
490
- fill: "currentColor",
491
- strokeWidth: "0",
492
- viewBox: "0 0 512 512",
493
- height: "0.60em",
494
- width: "0.60em"
495
- },
496
- /* @__PURE__ */ React5.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" })
497
- ), " ")),
498
- children
499
- ));
500
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
501
- var DropdownMenuRadioItem = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
502
- DropdownMenuPrimitive.RadioItem,
503
- {
504
- ref,
505
- className: cn(
506
- "hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
507
- className
508
- ),
509
- ...props
510
- },
511
- /* @__PURE__ */ React5.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__ */ React5.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React5.createElement(
512
- "svg",
513
- {
514
- xmlns: "http://www.w3.org/2000/svg",
515
- width: "24",
516
- "aria-label": "Circle",
517
- height: "24",
518
- viewBox: "0 0 24 24",
519
- fill: "none",
520
- stroke: "currentColor",
521
- strokeWidth: "2",
522
- strokeLinecap: "round",
523
- strokeLinejoin: "round",
524
- className: "hawa-h-2 hawa-w-2 hawa-fill-current"
525
- },
526
- /* @__PURE__ */ React5.createElement("circle", { cx: "12", cy: "12", r: "10" })
527
- ))),
528
- children
529
- ));
530
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
531
- var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React5.createElement(
532
- DropdownMenuPrimitive.Label,
533
- {
534
- ref,
535
- className: cn(
536
- "hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
537
- inset && "hawa-pl-8",
538
- className
539
- ),
540
- ...props
541
- }
542
- ));
543
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
544
- var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
545
- DropdownMenuPrimitive.Separator,
546
- {
547
- ref,
548
- className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
549
- ...props
550
- }
551
- ));
552
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
553
- var DropdownMenuShortcut = ({
554
- className,
555
- ...props
556
- }) => {
557
- return /* @__PURE__ */ React5.createElement(
558
- "span",
559
- {
560
- className: cn(
561
- "hawa-text-xs hawa-tracking-widest hawa-opacity-60",
562
- className
563
- ),
564
- ...props
565
- }
566
- );
567
- };
568
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
569
-
570
- // components/elements/logos/Logos.tsx
571
- var import_react4 = __toESM(require("react"));
572
-
573
- // components/elements/navigationMenu/NavigationMenu.tsx
574
- var React7 = __toESM(require("react"));
575
- var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
576
- var import_class_variance_authority = require("class-variance-authority");
577
- var navigationMenuTriggerStyle = (0, import_class_variance_authority.cva)(
578
- "hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
579
- );
580
- var NavigationMenuRoot = React7.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React7.createElement(
581
- NavigationMenuPrimitive.Root,
582
- {
583
- ref,
584
- className: cn(
585
- "hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center",
586
- // "hawa-max-w-max",
587
- className
588
- ),
589
- ...props
590
- },
591
- children,
592
- /* @__PURE__ */ React7.createElement(NavigationMenuViewport, { className: viewportClassNames })
593
- ));
594
- var NavigationMenuList = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
595
- NavigationMenuPrimitive.List,
596
- {
597
- ref,
598
- className: cn(
599
- "hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
600
- className
601
- ),
602
- ...props
603
- }
604
- ));
605
- var NavigationMenuTrigger = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
606
- NavigationMenuPrimitive.Trigger,
607
- {
608
- ref,
609
- className: cn(navigationMenuTriggerStyle(), "hawa-group", className),
610
- ...props
611
- },
612
- children,
613
- /* @__PURE__ */ React7.createElement(
614
- "svg",
615
- {
616
- "aria-label": "Chevron Icon",
617
- xmlns: "http://www.w3.org/2000/svg",
618
- width: "24",
619
- height: "24",
620
- viewBox: "0 0 24 24",
621
- fill: "none",
622
- stroke: "currentColor",
623
- strokeWidth: "2",
624
- strokeLinecap: "round",
625
- strokeLinejoin: "round",
626
- "aria-hidden": "true",
627
- className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
628
- },
629
- /* @__PURE__ */ React7.createElement("path", { d: "m6 9 6 6 6-6" })
630
- )
631
- ));
632
- var NavigationMenuContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
633
- NavigationMenuPrimitive.Content,
634
- {
635
- ref,
636
- className: cn(
637
- "hawa-absolute hawa-left-0 hawa-top-0 hawa-w-full hawa-rounded ",
638
- // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
639
- // animation
640
- "data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52",
641
- className
642
- ),
643
- ...props
644
- }
645
- ));
646
- var NavigationMenuViewport = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
647
- "div",
648
- {
649
- className: cn(
650
- "hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
651
- )
652
- },
653
- /* @__PURE__ */ React7.createElement(
654
- NavigationMenuPrimitive.Viewport,
655
- {
656
- className: cn(
657
- "hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ",
658
- // hawa-h-[var(--radix-navigation-menu-viewport-height)]
659
- // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
660
- className
661
- ),
662
- style: {
663
- height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
664
- },
665
- ref,
666
- ...props
667
- }
668
- )
669
- ));
670
- var NavigationMenuIndicator = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
671
- NavigationMenuPrimitive.Indicator,
672
- {
673
- ref,
674
- className: cn(
675
- "hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in",
676
- className
677
- ),
678
- ...props
679
- },
680
- /* @__PURE__ */ React7.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
681
- ));
682
- NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
683
- NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
684
- NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
685
- NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
686
- NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
687
- NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
688
-
689
- // components/elements/sheet/Sheet.tsx
690
- var React8 = __toESM(require("react"));
691
- var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
692
- var import_class_variance_authority2 = require("class-variance-authority");
693
- var SheetPortal = SheetPrimitive.Portal;
694
- var SheetOverlay = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
695
- SheetPrimitive.Overlay,
696
- {
697
- className: cn(
698
- "hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0",
699
- className
700
- ),
701
- ...props,
702
- ref
703
- }
704
- ));
705
- var sheetVariants = (0, import_class_variance_authority2.cva)(
706
- "hawa-fixed hawa-z-50 hawa-gap-4 hawa-bg-background hawa-p-2 hawa-shadow-lg hawa-transition hawa-ease-in-out data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-duration-300 data-[state=open]:hawa-duration-300",
707
- {
708
- variants: {
709
- side: {
710
- top: "hawa-inset-x-0 hawa-top-0 hawa-border-b data-[state=closed]:hawa-slide-out-to-top data-[state=open]:hawa-slide-in-from-top",
711
- bottom: "hawa-inset-x-0 hawa-bottom-0 hawa-border-t data-[state=closed]:hawa-slide-out-to-bottom data-[state=open]:hawa-slide-in-from-bottom",
712
- left: "hawa-inset-y-0 hawa-left-0 hawa-h-full hawa-w-3/4 hawa-border-r data-[state=closed]:hawa-slide-out-to-left data-[state=open]:hawa-slide-in-from-left sm:hawa-max-w-sm",
713
- right: "hawa-inset-y-0 hawa-right-0 hawa-h-full hawa-w-3/4 hawa-border-l data-[state=closed]:hawa-slide-out-to-right data-[state=open]:hawa-slide-in-from-right sm:hawa-max-w-sm"
714
- }
715
- },
716
- defaultVariants: {
717
- side: "right"
718
- }
719
- }
720
- );
721
- var SheetContent = React8.forwardRef(
722
- ({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React8.createElement(SheetPortal, null, /* @__PURE__ */ React8.createElement(SheetOverlay, null), /* @__PURE__ */ React8.createElement(
723
- SheetPrimitive.Content,
724
- {
725
- ref,
726
- className: cn(sheetVariants({ side }), className),
727
- onPointerDownOutside: (e) => {
728
- if (persist) {
729
- e.preventDefault();
730
- }
731
- },
732
- ...props
733
- },
734
- children,
735
- !hideCloseButton && /* @__PURE__ */ React8.createElement(
736
- SheetPrimitive.Close,
737
- {
738
- className: cn(
739
- "hawa-absolute hawa-rounded-sm hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-secondary",
740
- {
741
- "hawa-right-4 hawa-top-4": side === "left" || side === "bottom",
742
- "hawa-left-4 hawa-top-4": side === "right",
743
- "hawa-bottom-4 hawa-right-4": side === "top"
744
- }
745
- )
746
- },
747
- /* @__PURE__ */ React8.createElement(
748
- "svg",
749
- {
750
- "aria-label": "Close Icon",
751
- "aria-hidden": "true",
752
- className: "hawa-h-5 hawa-w-5",
753
- fill: "currentColor",
754
- viewBox: "0 0 20 20"
755
- },
756
- /* @__PURE__ */ React8.createElement(
757
- "path",
758
- {
759
- fillRule: "evenodd",
760
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
761
- clipRule: "evenodd"
762
- }
763
- )
764
- ),
765
- /* @__PURE__ */ React8.createElement("span", { className: "hawa-sr-only" }, "Close")
766
- )
767
- ))
768
- );
769
- var SheetHeader = ({
770
- className,
771
- ...props
772
- }) => /* @__PURE__ */ React8.createElement(
773
- "div",
774
- {
775
- className: cn(
776
- "hawa-flex hawa-flex-col hawa-space-y-2 hawa-text-center sm:hawa-text-left",
777
- className
778
- ),
779
- ...props
780
- }
781
- );
782
- var SheetFooter = ({
783
- className,
784
- ...props
785
- }) => /* @__PURE__ */ React8.createElement(
786
- "div",
787
- {
788
- className: cn(
789
- "hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-space-x-2",
790
- className
791
- ),
792
- ...props
793
- }
794
- );
795
- var SheetTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
796
- SheetPrimitive.Title,
797
- {
798
- ref,
799
- className: cn(
800
- "hawa-text-lg hawa-font-semibold hawa-text-foreground",
801
- className
802
- ),
803
- ...props
804
- }
805
- ));
806
- var SheetDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
807
- SheetPrimitive.Description,
808
- {
809
- ref,
810
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
811
- ...props
812
- }
813
- ));
814
- SheetDescription.displayName = SheetPrimitive.Description.displayName;
815
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
816
- SheetContent.displayName = SheetPrimitive.Content.displayName;
817
- SheetHeader.displayName = "SheetHeader";
818
- SheetFooter.displayName = "SheetFooter";
819
- SheetTitle.displayName = SheetPrimitive.Title.displayName;
820
-
821
- // components/elements/dialog/Dialog.tsx
822
- var React9 = __toESM(require("react"));
823
- var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
824
- var DialogPortal = ({ ...props }) => /* @__PURE__ */ React9.createElement(DialogPrimitive.Portal, { ...props });
825
- var DialogOverlay = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
826
- DialogPrimitive.Overlay,
827
- {
828
- ref,
829
- className: cn(
830
- "hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0",
831
- className
832
- ),
833
- ...props
834
- }
835
- ));
836
- var DialogContent = React9.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React9.createElement(DialogPortal, null, /* @__PURE__ */ React9.createElement(DialogOverlay, null), /* @__PURE__ */ React9.createElement(
837
- DialogPrimitive.Content,
838
- {
839
- onPointerDownOutside: (e) => {
840
- if (persist) {
841
- e.preventDefault();
842
- }
843
- },
844
- ref,
845
- className: cn(
846
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
847
- className
848
- ),
849
- ...props
850
- },
851
- children,
852
- !hideCloseButton && /* @__PURE__ */ React9.createElement(
853
- DialogPrimitive.Close,
854
- {
855
- className: cn(
856
- "hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
857
- props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
858
- )
859
- },
860
- /* @__PURE__ */ React9.createElement(
861
- "svg",
862
- {
863
- "aria-label": "Close Icon",
864
- "aria-hidden": "true",
865
- className: "hawa-h-5 hawa-w-5",
866
- fill: "currentColor",
867
- viewBox: "0 0 20 20"
868
- },
869
- /* @__PURE__ */ React9.createElement(
870
- "path",
871
- {
872
- fillRule: "evenodd",
873
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
874
- clipRule: "evenodd"
875
- }
876
- )
877
- ),
878
- /* @__PURE__ */ React9.createElement("span", { className: "hawa-sr-only" }, "Close")
879
- )
880
- )));
881
- var DialogCarouselContent = React9.forwardRef(
882
- ({
883
- className,
884
- children,
885
- onPrev,
886
- persist,
887
- hideCloseButton,
888
- hidePrevButton,
889
- ...props
890
- }, ref) => /* @__PURE__ */ React9.createElement(DialogPortal, null, /* @__PURE__ */ React9.createElement(DialogOverlay, null), /* @__PURE__ */ React9.createElement(
891
- DialogPrimitive.Content,
892
- {
893
- onPointerDownOutside: (e) => {
894
- if (persist) {
895
- e.preventDefault();
896
- }
897
- },
898
- ref,
899
- className: cn(
900
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-pt-14 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
901
- className
902
- ),
903
- ...props
904
- },
905
- children,
906
- /* @__PURE__ */ React9.createElement(
907
- "div",
908
- {
909
- className: cn(
910
- "hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
911
- onPrev ? "hawa-justify-between" : "hawa-justify-end"
912
- )
913
- },
914
- hidePrevButton ? /* @__PURE__ */ React9.createElement("div", null) : /* @__PURE__ */ React9.createElement(
915
- "div",
916
- {
917
- onClick: onPrev,
918
- className: cn(
919
- "hawa-end-0 hawa-cursor-pointer hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
920
- props.dir === "rtl" && "hawa-rotate-180"
921
- )
922
- },
923
- /* @__PURE__ */ React9.createElement(
924
- "svg",
925
- {
926
- xmlns: "http://www.w3.org/2000/svg",
927
- width: "24",
928
- height: "24",
929
- viewBox: "0 0 24 24",
930
- fill: "none",
931
- className: "hawa-h-6 hawa-w-6",
932
- stroke: "currentColor",
933
- strokeWidth: "2",
934
- strokeLinecap: "round",
935
- strokeLinejoin: "round"
936
- },
937
- /* @__PURE__ */ React9.createElement("path", { d: "m15 18-6-6 6-6" })
938
- )
939
- ),
940
- !hideCloseButton && /* @__PURE__ */ React9.createElement(
941
- DialogPrimitive.Close,
942
- {
943
- className: cn(
944
- "hawa-end-0 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground ",
945
- props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
946
- )
947
- },
948
- /* @__PURE__ */ React9.createElement(
949
- "svg",
950
- {
951
- "aria-label": "Close Icon",
952
- "aria-hidden": "true",
953
- className: "hawa-h-6 hawa-w-6",
954
- fill: "currentColor",
955
- viewBox: "0 0 20 20"
956
- },
957
- /* @__PURE__ */ React9.createElement(
958
- "path",
959
- {
960
- fillRule: "evenodd",
961
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
962
- clipRule: "evenodd"
963
- }
964
- )
965
- ),
966
- /* @__PURE__ */ React9.createElement("span", { className: "hawa-sr-only" }, "Close")
967
- )
968
- )
969
- ))
970
- );
971
- var DialogHeader = ({
972
- className,
973
- ...props
974
- }) => /* @__PURE__ */ React9.createElement(
975
- "div",
976
- {
977
- className: cn(
978
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-text-center sm:hawa-text-left",
979
- className
980
- ),
981
- ...props
982
- }
983
- );
984
- var DialogTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
985
- DialogPrimitive.Title,
986
- {
987
- ref,
988
- className: cn(
989
- "hawa-text-start hawa-text-lg hawa-font-semibold hawa-leading-none hawa-tracking-tight",
990
- className
991
- ),
992
- ...props
993
- }
994
- ));
995
- var DialogDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
996
- DialogPrimitive.Description,
997
- {
998
- ref,
999
- className: cn(
1000
- "hawa-text-start hawa-text-sm hawa-text-muted-foreground",
1001
- className
1002
- ),
1003
- ...props
1004
- }
1005
- ));
1006
- var DialogFooter = ({
1007
- className,
1008
- ...props
1009
- }) => /* @__PURE__ */ React9.createElement(
1010
- "div",
1011
- {
1012
- className: cn(
1013
- "hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-gap-2",
1014
- className
1015
- ),
1016
- ...props
1017
- }
1018
- );
1019
- var DialogCarousel = ({
1020
- stepsApi,
1021
- stepsRef,
1022
- children,
1023
- direction
1024
- }) => {
1025
- React9.useEffect(() => {
1026
- if (stepsApi) {
1027
- stepsApi.reInit();
1028
- }
1029
- }, [stepsApi, children]);
1030
- return /* @__PURE__ */ React9.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React9.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React9.createElement(
1031
- "div",
1032
- {
1033
- className: "hawa-flex",
1034
- style: {
1035
- transition: "height 0.2s"
1036
- }
1037
- },
1038
- React9.Children.map(children, (child, index) => /* @__PURE__ */ React9.createElement(
1039
- "div",
1040
- {
1041
- className: cn(
1042
- "hawa-flex hawa-h-fit hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
1043
- ),
1044
- key: index
1045
- },
1046
- child
1047
- ))
1048
- )));
1049
- };
1050
- var DialogSteps = ({
1051
- currentStep,
1052
- visibleStepRef,
1053
- children
1054
- }) => {
1055
- const [dialogHeight, setDialogHeight] = React9.useState(null);
1056
- React9.useEffect(() => {
1057
- if (visibleStepRef.current) {
1058
- setDialogHeight(visibleStepRef.current.offsetHeight);
1059
- console.log("height is ", visibleStepRef.current.offsetHeight);
1060
- }
1061
- }, [currentStep, visibleStepRef]);
1062
- return /* @__PURE__ */ React9.createElement(
1063
- "div",
1064
- {
1065
- className: "hawa-relative hawa-overflow-clip",
1066
- style: {
1067
- height: dialogHeight || "fit-content",
1068
- transition: "height 0.2s"
1069
- }
1070
- },
1071
- React9.Children.map(children, (child, index) => /* @__PURE__ */ React9.createElement(
1072
- "div",
1073
- {
1074
- ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
1075
- className: cn(
1076
- currentStep === `step-${index + 1}` ? "hawa-visible hawa-block" : "hawa-invisible hawa-hidden"
1077
- )
1078
- },
1079
- child
1080
- ))
1081
- );
1082
- };
1083
- var DialogStep = ({
1084
- id,
1085
- children,
1086
- className,
1087
- stepRef
1088
- }) => {
1089
- return /* @__PURE__ */ React9.createElement(
1090
- "div",
1091
- {
1092
- id,
1093
- ref: stepRef,
1094
- className: cn("hawa-w-full hawa-px-1", className)
1095
- },
1096
- children
1097
- );
1098
- };
1099
- var DialogBody = ({ children, className }) => {
1100
- return /* @__PURE__ */ React9.createElement("div", { className: cn("hawa-py-6", className) }, children);
1101
- };
1102
- DialogBody.displayName = "DialogBody";
1103
- DialogStep.displayName = "DialogStep";
1104
- DialogSteps.displayName = "DialogSteps";
1105
- DialogCarousel.displayName = "DialogCarousel";
1106
- DialogCarouselContent.displayName = "DialogCarouselContent";
1107
- DialogHeader.displayName = "DialogHeader";
1108
- DialogFooter.displayName = "DialogFooter";
1109
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
1110
- DialogPortal.displayName = DialogPrimitive.Portal.displayName;
1111
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1112
- DialogContent.displayName = DialogPrimitive.Content.displayName;
1113
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
1114
-
1115
- // components/elements/alert/Alert.tsx
1116
- var import_react5 = __toESM(require("react"));
1117
-
1118
- // components/elements/button/Button.tsx
1119
- var React10 = __toESM(require("react"));
1120
- var import_class_variance_authority3 = require("class-variance-authority");
1121
- var buttonVariants = (0, import_class_variance_authority3.cva)(
1122
- "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",
1123
- {
1124
- variants: {
1125
- variant: {
1126
- default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
1127
- light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
1128
- destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
1129
- outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
1130
- secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
1131
- ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
1132
- link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
1133
- combobox: "hawa-bg-background hawa-border",
1134
- neoBrutalism: "neo-brutalism"
1135
- // "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
1136
- },
1137
- size: {
1138
- default: "hawa-h-10 hawa-px-4 hawa-py-2",
1139
- heightless: "hawa-px-4 hawa-py-4",
1140
- xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
1141
- sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
1142
- lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
1143
- xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
1144
- icon: "hawa-h-10 hawa-w-10",
1145
- smallIcon: "hawa-h-7 hawa-w-7"
1146
- }
1147
- },
1148
- defaultVariants: {
1149
- variant: "default",
1150
- size: "default"
1151
- }
1152
- }
1153
- );
1154
- var Button = React10.forwardRef(
1155
- ({
1156
- className,
1157
- variant,
1158
- size,
1159
- asChild = false,
1160
- centered = true,
1161
- isLoading,
1162
- children,
1163
- ...props
1164
- }, ref) => {
1165
- const Comp = "button";
1166
- const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
1167
- return /* @__PURE__ */ React10.createElement(
1168
- Comp,
1169
- {
1170
- className: cn(
1171
- buttonVariants({ variant, size, className }),
1172
- centered && "hawa-justify-center"
1173
- ),
1174
- ref,
1175
- ...props
1176
- },
1177
- isLoading ? /* @__PURE__ */ React10.createElement(
1178
- Loading,
1179
- {
1180
- design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
1181
- themeMode: variant === "outline" ? "light" : "dark",
1182
- color: loadingColor,
1183
- size: size === "sm" || size === "xs" ? "xs" : "button"
1184
- }
1185
- ) : children
1186
- );
1187
- }
1188
- );
1189
- Button.displayName = "Button";
1190
-
1191
- // components/elements/avatar/Avatar.tsx
1192
- var import_react7 = __toESM(require("react"));
1193
-
1194
- // components/elements/FileUploader.tsx
1195
- var import_react6 = __toESM(require("react"));
1196
-
1197
- // components/elements/dataTable/DataTable.tsx
1198
- var React17 = __toESM(require("react"));
1199
- var import_react_table = require("@tanstack/react-table");
1200
-
1201
- // components/elements/input/Input.tsx
1202
- var import_react8 = __toESM(require("react"));
1203
-
1204
- // components/elements/label/Label.tsx
1205
- var React14 = __toESM(require("react"));
1206
- var Label2 = React14.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React14.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React14.createElement(
1207
- "label",
1208
- {
1209
- ref,
1210
- className: cn(
1211
- "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
1212
- className
1213
- ),
1214
- ...props
1215
- },
1216
- children,
1217
- required && /* @__PURE__ */ React14.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
1218
- ), hint && /* @__PURE__ */ React14.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React14.createElement(
1219
- "svg",
1220
- {
1221
- xmlns: "http://www.w3.org/2000/svg",
1222
- className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
1223
- viewBox: "0 0 24 24",
1224
- fill: "none",
1225
- stroke: "currentColor",
1226
- strokeWidth: "2",
1227
- strokeLinecap: "round",
1228
- strokeLinejoin: "round"
1229
- },
1230
- /* @__PURE__ */ React14.createElement("circle", { cx: "12", cy: "12", r: "10" }),
1231
- /* @__PURE__ */ React14.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
1232
- /* @__PURE__ */ React14.createElement("path", { d: "M12 17h.01" })
1233
- ))));
1234
- Label2.displayName = "Label";
1235
-
1236
- // components/elements/input/Input.tsx
1237
- var Input = (0, import_react8.forwardRef)(
1238
- ({
1239
- margin = "none",
1240
- width = "full",
1241
- preview = false,
1242
- forceHideHelperText = false,
1243
- labelProps,
1244
- placeholder,
1245
- showCount,
1246
- inputProps,
1247
- countPosition = "bottom",
1248
- ...props
1249
- }, ref) => {
1250
- var _a;
1251
- let marginStyles = {
1252
- none: "hawa-mb-0",
1253
- normal: "hawa-mb-3",
1254
- large: "hawa-mb-5"
1255
- };
1256
- let widthStyles = {
1257
- small: "hawa-w-full hawa-max-w-2xs",
1258
- normal: "hawa-w-1/2",
1259
- full: "hawa-w-full",
1260
- auto: ""
1261
- };
1262
- let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
1263
- let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
1264
- return /* @__PURE__ */ import_react8.default.createElement(
1265
- "div",
1266
- {
1267
- className: cn(
1268
- defaultStyle,
1269
- marginStyles[margin],
1270
- widthStyles[width],
1271
- props.containerClassName,
1272
- "hawa-w-full hawa-gap-2"
1273
- )
1274
- },
1275
- props.label && /* @__PURE__ */ import_react8.default.createElement(Label2, { ...labelProps }, props.label),
1276
- props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react8.default.createElement(
1277
- "div",
1278
- {
1279
- className: cn(
1280
- "hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
1281
- preview ? "hawa-opacity-100" : "hawa-opacity-0"
1282
- )
1283
- }
1284
- ), /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react8.default.createElement(
1285
- "div",
1286
- {
1287
- className: cn(
1288
- "hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2",
1289
- (_a = props.endIconProps) == null ? void 0 : _a.className
1290
- )
1291
- },
1292
- props.endIcon
1293
- ), /* @__PURE__ */ import_react8.default.createElement(
1294
- "input",
1295
- {
1296
- required: true,
1297
- dir: props.dir,
1298
- type: props.type,
1299
- value: props.value,
1300
- onChange: props.onChange,
1301
- autoComplete: props.autoComplete,
1302
- defaultValue: props.defaultValue,
1303
- placeholder,
1304
- disabled: props.disabled || preview,
1305
- style: { height: 40 },
1306
- ...inputProps,
1307
- className: cn(
1308
- defaultInputStyle,
1309
- " focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 dark:hawa-text-white",
1310
- {
1311
- "hawa-pe-9": props.endIcon,
1312
- "hawa-ps-9": props.startIcon,
1313
- "hawa-pe-[60px]": countPosition === "center"
1314
- },
1315
- preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
1316
- inputProps == null ? void 0 : inputProps.className
1317
- )
1318
- }
1319
- )), !forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
1320
- "p",
1321
- {
1322
- className: cn(
1323
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1324
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1325
- )
1326
- },
1327
- props.helperText
1328
- ), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
1329
- "div",
1330
- {
1331
- className: cn(
1332
- "hawa-absolute hawa-end-0 hawa-top-[47px] hawa-z-20 hawa-translate-y-1/2 hawa-rounded hawa-bg-background hawa-text-start hawa-text-xs hawa-text-helper-color hawa-drop-shadow-md hawa-transition-all",
1333
- props.helperText ? "hawa-border hawa-p-1" : "hawa-border-none hawa-p-0"
1334
- )
1335
- },
1336
- props.helperText
1337
- ), showCount && /* @__PURE__ */ import_react8.default.createElement(
1338
- "div",
1339
- {
1340
- className: cn(
1341
- "hawa-absolute hawa-translate-y-1/2 hawa-text-start hawa-text-xs hawa-transition-all",
1342
- {
1343
- "hawa-end-0 hawa-top-[62px]": countPosition === "bottom",
1344
- "hawa-bottom-[62px] hawa-end-0": countPosition === "top",
1345
- "hawa-end-2": countPosition === "center"
1346
- }
1347
- )
1348
- },
1349
- props.value ? String(props.value).length : 0,
1350
- "/",
1351
- props.maxLength
1352
- )))
1353
- );
1354
- }
1355
- );
1356
-
1357
- // components/elements/table/Table.tsx
1358
- var React16 = __toESM(require("react"));
1359
- var Table = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React16.createElement(
1360
- "table",
1361
- {
1362
- ref,
1363
- className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className),
1364
- ...props
1365
- }
1366
- )));
1367
- Table.displayName = "Table";
1368
- var TableHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
1369
- "thead",
1370
- {
1371
- ref,
1372
- className: cn("[&_tr]:hawa-border-b", "hawa-bg-muted/50", className),
1373
- ...props
1374
- }
1375
- ));
1376
- TableHeader.displayName = "TableHeader";
1377
- var TableHead = React16.forwardRef(
1378
- ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React16.createElement(
1379
- "th",
1380
- {
1381
- ref,
1382
- className: cn(
1383
- "hawa-bg-muted/60 hawa-text-start hawa-align-middle hawa-font-medium hawa-text-muted-foreground dark:hawa-bg-muted/40 [&:has([role=checkbox])]:hawa-pr-0 [&:not(:last-child)&:not(:first-child)]:hawa-border-x",
1384
- dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
1385
- condensed ? "hawa-h-8" : "hawa-h-12",
1386
- clickable ? "hawa-px-1" : "hawa-px-4",
1387
- //First and last columns
1388
- clickable ? " [&:not(:last-child)&:not(:first-child)]:hawa-p-1" : "hawa-px-4",
1389
- //Columns in between
1390
- className
1391
- ),
1392
- ...props
1393
- }
1394
- )
1395
- );
1396
- TableHead.displayName = "TableHead";
1397
- var TableBody = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
1398
- TableBody.displayName = "TableBody";
1399
- var TableFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
1400
- "tfoot",
1401
- {
1402
- ref,
1403
- className: cn(
1404
- "hawa-bg-primary hawa-font-medium hawa-text-primary-foreground",
1405
- className
1406
- ),
1407
- ...props
1408
- }
1409
- ));
1410
- TableFooter.displayName = "TableFooter";
1411
- var TableRow = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
1412
- "tr",
1413
- {
1414
- ref,
1415
- className: cn(
1416
- "hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
1417
- "[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
1418
- "[&:not(:last-child)]:hawa-border-b",
1419
- className
1420
- ),
1421
- ...props
1422
- }
1423
- ));
1424
- TableRow.displayName = "TableRow";
1425
- var TableCell = React16.forwardRef(
1426
- ({ className, enablePadding = true, padding = "default", ...props }, ref) => {
1427
- let paddingStyles = {
1428
- condensed: "hawa-p-0 hawa-px-4",
1429
- default: "hawa-p-4",
1430
- noPadding: "hawa-p-0"
1431
- };
1432
- return /* @__PURE__ */ React16.createElement(
1433
- "td",
1434
- {
1435
- ref,
1436
- className: cn(
1437
- paddingStyles[padding],
1438
- // "border-x",
1439
- // enablePadding ? "hawa-p-4" : "hawa-p-0",
1440
- // props.disablePadding ? "hawa-p-0" : "hawa-p-4",
1441
- // props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4",
1442
- "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ",
1443
- "[&:not(:last-child)&:not(:first-child)]:hawa-border-x",
1444
- // "[&:not(:last-child)]:hawa-border-r",
1445
- props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
1446
- className
1447
- ),
1448
- ...props
1449
- }
1450
- );
1451
- }
1452
- );
1453
- TableCell.displayName = "TableCell";
1454
- var TableCaption = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
1455
- "caption",
1456
- {
1457
- ref,
1458
- className: cn(
1459
- "hawa-mt-4 hawa-text-sm hawa-text-muted-foreground",
1460
- className
1461
- ),
1462
- ...props
1463
- }
1464
- ));
1465
- TableCaption.displayName = "TableCaption";
1466
-
1467
- // components/elements/backToTop/BackToTop.tsx
1468
- var import_react9 = __toESM(require("react"));
1469
-
1470
- // components/elements/radio/Radio.tsx
1471
- var import_react10 = __toESM(require("react"));
1472
-
1473
- // components/elements/combobox/Combobox.tsx
1474
- var React22 = __toESM(require("react"));
1475
- var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
1476
-
1477
- // components/elements/command/Command.tsx
1478
- var React20 = __toESM(require("react"));
1479
- var import_cmdk = require("cmdk");
1480
- var Command = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1481
- import_cmdk.Command,
1482
- {
1483
- ref,
1484
- className: cn(
1485
- "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
1486
- className
1487
- ),
1488
- ...props
1489
- }
1490
- ));
1491
- Command.displayName = import_cmdk.Command.displayName;
1492
- var CommandInput = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1493
- "div",
1494
- {
1495
- className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
1496
- "cmdk-input-wrapper": ""
1497
- },
1498
- /* @__PURE__ */ React20.createElement(
1499
- "svg",
1500
- {
1501
- "aria-label": "Search Icon",
1502
- xmlns: "http://www.w3.org/2000/svg",
1503
- width: "24",
1504
- height: "24",
1505
- viewBox: "0 0 24 24",
1506
- fill: "none",
1507
- stroke: "currentColor",
1508
- strokeWidth: "2",
1509
- strokeLinecap: "round",
1510
- strokeLinejoin: "round",
1511
- className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
1512
- },
1513
- /* @__PURE__ */ React20.createElement("circle", { cx: "11", cy: "11", r: "8" }),
1514
- /* @__PURE__ */ React20.createElement("path", { d: "m21 21-4.3-4.3" })
1515
- ),
1516
- /* @__PURE__ */ React20.createElement(
1517
- import_cmdk.Command.Input,
1518
- {
1519
- ref,
1520
- className: cn(
1521
- "hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1522
- className
1523
- ),
1524
- ...props
1525
- }
1526
- )
1527
- ));
1528
- CommandInput.displayName = import_cmdk.Command.Input.displayName;
1529
- var CommandList = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1530
- import_cmdk.Command.List,
1531
- {
1532
- ref,
1533
- className: cn(
1534
- "hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden",
1535
- className
1536
- ),
1537
- ...props
1538
- }
1539
- ));
1540
- CommandList.displayName = import_cmdk.Command.List.displayName;
1541
- var CommandEmpty = React20.forwardRef((props, ref) => /* @__PURE__ */ React20.createElement(
1542
- import_cmdk.Command.Empty,
1543
- {
1544
- ref,
1545
- className: "hawa-py-6 hawa-text-center hawa-text-sm",
1546
- ...props
1547
- }
1548
- ));
1549
- CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
1550
- var CommandGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1551
- import_cmdk.Command.Group,
1552
- {
1553
- ref,
1554
- className: cn(
1555
- "hawa-overflow-hidden hawa-p-1 hawa-text-foreground [&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-py-1.5 [&_[cmdk-group-heading]]:hawa-text-xs [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground",
1556
- className
1557
- ),
1558
- ...props
1559
- }
1560
- ));
1561
- CommandGroup.displayName = import_cmdk.Command.Group.displayName;
1562
- var CommandSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1563
- import_cmdk.Command.Separator,
1564
- {
1565
- ref,
1566
- className: cn("hawa--mx-1 hawa-h-px hawa-bg-border", className),
1567
- ...props
1568
- }
1569
- ));
1570
- CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
1571
- var CommandItem = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1572
- import_cmdk.Command.Item,
1573
- {
1574
- ref,
1575
- className: cn(
1576
- "hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
1577
- className
1578
- ),
1579
- ...props
1580
- }
1581
- ));
1582
- CommandItem.displayName = import_cmdk.Command.Item.displayName;
1583
- var CommandShortcut = ({
1584
- className,
1585
- ...props
1586
- }) => {
1587
- return /* @__PURE__ */ React20.createElement(
1588
- "span",
1589
- {
1590
- className: cn(
1591
- "hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground",
1592
- className
1593
- ),
1594
- ...props
1595
- }
1596
- );
1597
- };
1598
- CommandShortcut.displayName = "CommandShortcut";
1599
-
1600
- // components/elements/popover/Popover.tsx
1601
- var React21 = __toESM(require("react"));
1602
- var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
1603
- var PopoverContent = React21.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React21.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React21.createElement(
1604
- PopoverPrimitive.Content,
1605
- {
1606
- ref,
1607
- align,
1608
- sideOffset,
1609
- className: cn(
1610
- "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-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",
1611
- className
1612
- ),
1613
- ...props
1614
- }
1615
- )));
1616
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1617
- var PopoverTrigger = PopoverPrimitive.Trigger;
1618
-
1619
- // components/elements/combobox/Combobox.tsx
1620
- var Combobox = React22.forwardRef(
1621
- ({
1622
- labelKey = "label",
1623
- valueKey = "value",
1624
- defaultValue = "",
1625
- popoverClassName,
1626
- labelProps,
1627
- data,
1628
- ...props
1629
- }, ref) => {
1630
- var _a, _b, _c;
1631
- const [open, setOpen] = React22.useState(false);
1632
- const [value, setValue] = React22.useState(defaultValue);
1633
- function getProperty(obj, key) {
1634
- return obj[key];
1635
- }
1636
- const handleOpenChange = (open2) => {
1637
- if (!(props.isLoading || props.preview)) {
1638
- setOpen(open2);
1639
- }
1640
- };
1641
- return /* @__PURE__ */ React22.createElement(
1642
- "div",
1643
- {
1644
- className: cn(
1645
- "hawa-relative hawa-flex hawa-h-fit hawa-flex-col hawa-gap-2",
1646
- props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
1647
- )
1648
- },
1649
- props.label && /* @__PURE__ */ React22.createElement(Label2, { ...labelProps }, props.label),
1650
- /* @__PURE__ */ React22.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React22.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React22.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React22.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React22.createElement(
1651
- "div",
1652
- {
1653
- className: cn(
1654
- "hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
1655
- props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
1656
- )
1657
- }
1658
- ), /* @__PURE__ */ React22.createElement(
1659
- "button",
1660
- {
1661
- role: "combobox",
1662
- "aria-expanded": open,
1663
- className: cn(
1664
- "hawa-inline-flex hawa-h-10 hawa-w-full hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-md hawa-border hawa-py-2 hawa-text-sm hawa-font-normal hawa-text-primary hawa-ring-offset-background hawa-transition-all 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",
1665
- props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
1666
- )
1667
- },
1668
- value ? getProperty(
1669
- data.find((item) => item[valueKey] === value) || {},
1670
- labelKey
1671
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
1672
- /* @__PURE__ */ React22.createElement(
1673
- "svg",
1674
- {
1675
- xmlns: "http://www.w3.org/2000/svg",
1676
- className: cn(
1677
- "hawa-icon hawa-transition-all",
1678
- !props.preview ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0"
1679
- ),
1680
- "aria-label": "Chevron down icon",
1681
- viewBox: "0 0 24 24",
1682
- fill: "none",
1683
- stroke: "currentColor",
1684
- strokeWidth: "2",
1685
- strokeLinecap: "round",
1686
- strokeLinejoin: "round"
1687
- },
1688
- /* @__PURE__ */ React22.createElement("path", { d: "m6 9 6 6 6-6" })
1689
- )
1690
- ), /* @__PURE__ */ React22.createElement(
1691
- "p",
1692
- {
1693
- className: cn(
1694
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1695
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1696
- )
1697
- },
1698
- props.helperText
1699
- ))), /* @__PURE__ */ React22.createElement(
1700
- PopoverContent,
1701
- {
1702
- className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
1703
- },
1704
- /* @__PURE__ */ React22.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React22.createElement(
1705
- CommandInput,
1706
- {
1707
- placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
1708
- }
1709
- ), /* @__PURE__ */ React22.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React22.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React22.createElement(
1710
- CommandItem,
1711
- {
1712
- key: i,
1713
- onSelect: () => {
1714
- const newValue = getProperty(item, valueKey);
1715
- setValue(newValue === value ? "" : newValue);
1716
- if (props.onChange) {
1717
- props.onChange(
1718
- newValue === value ? "" : newValue
1719
- );
1720
- }
1721
- setOpen(false);
1722
- }
1723
- },
1724
- /* @__PURE__ */ React22.createElement(
1725
- "svg",
1726
- {
1727
- "aria-label": "Check Icon",
1728
- xmlns: "http://www.w3.org/2000/svg",
1729
- width: "24",
1730
- height: "24",
1731
- viewBox: "0 0 24 24",
1732
- fill: "none",
1733
- stroke: "currentColor",
1734
- strokeWidth: "2",
1735
- strokeLinecap: "round",
1736
- strokeLinejoin: "round",
1737
- className: cn(
1738
- "hawa-icon hawa-mr-2",
1739
- value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
1740
- )
1741
- },
1742
- /* @__PURE__ */ React22.createElement("polyline", { points: "20 6 9 17 4 12" })
1743
- ),
1744
- getProperty(item, labelKey)
1745
- ))))
1746
- ))
1747
- );
1748
- }
1749
- );
1750
-
1751
- // components/elements/textarea/Textarea.tsx
1752
- var React23 = __toESM(require("react"));
1753
- var Textarea = React23.forwardRef(
1754
- ({
1755
- className,
1756
- labelProps,
1757
- showCount,
1758
- forceHideHelperText,
1759
- textareaProps,
1760
- countPosition = "bottom",
1761
- ...props
1762
- }, ref) => {
1763
- return /* @__PURE__ */ React23.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React23.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React23.createElement(
1764
- "textarea",
1765
- {
1766
- className: cn(
1767
- "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1768
- className
1769
- ),
1770
- ref,
1771
- ...textareaProps
1772
- }
1773
- ), /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React23.createElement(
1774
- "p",
1775
- {
1776
- className: cn(
1777
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1778
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1779
- )
1780
- },
1781
- props.helperText
1782
- ), showCount && /* @__PURE__ */ React23.createElement(
1783
- "div",
1784
- {
1785
- className: cn(
1786
- " hawa-text-start hawa-text-xs hawa-transition-all ",
1787
- {
1788
- "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
1789
- }
1790
- )
1791
- },
1792
- (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
1793
- "/",
1794
- textareaProps == null ? void 0 : textareaProps.maxLength
1795
- )));
1796
- }
1797
- );
1798
- Textarea.displayName = "Textarea";
1799
-
1800
- // components/elements/fileDropzone/FileDropzone.tsx
1801
- var import_react11 = __toESM(require("react"));
1802
- var import_react_dropzone = require("react-dropzone");
1803
- var import_clsx2 = __toESM(require("clsx"));
1804
-
1805
- // components/elements/sortButton/SortButton.tsx
1806
- var import_react12 = __toESM(require("react"));
45
+ // components/elements/chip/Chip.tsx
46
+ var import_react = __toESM(require("react"));
1807
47
 
1808
- // components/elements/tabs/Tabs.tsx
1809
- var React27 = __toESM(require("react"));
1810
- var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
48
+ // components/util.ts
49
+ var import_clsx = require("clsx");
50
+ var import_tailwind_merge = require("tailwind-merge");
51
+ function cn(...inputs) {
52
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
53
+ }
1811
54
 
1812
- // components/elements/Chip.tsx
1813
- var import_react13 = __toESM(require("react"));
1814
- var Chip = import_react13.default.forwardRef(
55
+ // components/elements/chip/Chip.tsx
56
+ var Chip = import_react.default.forwardRef(
1815
57
  ({
1816
58
  label,
1817
59
  size = "normal",
@@ -1853,7 +95,7 @@ var Chip = import_react13.default.forwardRef(
1853
95
  oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
1854
96
  };
1855
97
  if (label) {
1856
- return /* @__PURE__ */ import_react13.default.createElement(
98
+ return /* @__PURE__ */ import_react.default.createElement(
1857
99
  "span",
1858
100
  {
1859
101
  ...rest,
@@ -1865,7 +107,7 @@ var Chip = import_react13.default.forwardRef(
1865
107
  color ? colorStyles[color] : "hawa-border hawa-bg-none"
1866
108
  )
1867
109
  },
1868
- dotType && /* @__PURE__ */ import_react13.default.createElement(
110
+ dotType && /* @__PURE__ */ import_react.default.createElement(
1869
111
  "span",
1870
112
  {
1871
113
  className: cn(dotStyles[size], dotTypeStyles[dotType])
@@ -1875,7 +117,7 @@ var Chip = import_react13.default.forwardRef(
1875
117
  label
1876
118
  );
1877
119
  } else {
1878
- return /* @__PURE__ */ import_react13.default.createElement(
120
+ return /* @__PURE__ */ import_react.default.createElement(
1879
121
  "span",
1880
122
  {
1881
123
  ...rest,
@@ -1890,621 +132,10 @@ var Chip = import_react13.default.forwardRef(
1890
132
  }
1891
133
  );
1892
134
 
1893
- // components/elements/tabs/Tabs.tsx
1894
- var TabsContext = React27.createContext({ orientation: "vertical" });
1895
- var Tabs = React27.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React27.createElement(
1896
- TabsPrimitive.Root,
1897
- {
1898
- ref,
1899
- className: cn(
1900
- "hawa-flex hawa-gap-2",
1901
- orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
1902
- className
1903
- ),
1904
- ...props
1905
- },
1906
- /* @__PURE__ */ React27.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
1907
- ));
1908
- Tabs.displayName = TabsPrimitive.Root.displayName;
1909
- var TabsList = React27.forwardRef(({ className, ...props }, ref) => {
1910
- const { orientation } = React27.useContext(TabsContext);
1911
- return /* @__PURE__ */ React27.createElement(
1912
- TabsPrimitive.List,
1913
- {
1914
- ref,
1915
- className: cn(
1916
- "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
1917
- orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
1918
- className
1919
- ),
1920
- ...props
1921
- }
1922
- );
1923
- });
1924
- TabsList.displayName = TabsPrimitive.List.displayName;
1925
- var TabsTrigger = React27.forwardRef(({ className, chipProps, ...props }, ref) => {
1926
- return /* @__PURE__ */ React27.createElement(
1927
- TabsPrimitive.Trigger,
1928
- {
1929
- ref,
1930
- className: cn(
1931
- "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-border hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all 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 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground data-[state=active]:hawa-shadow-sm dark:hawa-border-primary/10",
1932
- className
1933
- ),
1934
- ...props
1935
- },
1936
- props.children,
1937
- chipProps && /* @__PURE__ */ React27.createElement(Chip, { ...chipProps })
1938
- );
1939
- });
1940
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
1941
- var TabsContent = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
1942
- TabsPrimitive.Content,
1943
- {
1944
- ref,
1945
- className: cn(
1946
- "hawa-ring-offset-hawa-background hawa-w-full focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2",
1947
- className
1948
- ),
1949
- ...props
1950
- }
1951
- ));
1952
- TabsContent.displayName = TabsPrimitive.Content.displayName;
1953
-
1954
- // components/elements/select/Select.tsx
1955
- var import_react14 = __toESM(require("react"));
1956
- var import_react_select = __toESM(require("react-select"));
1957
- var import_creatable = __toESM(require("react-select/creatable"));
1958
- var import_clsx3 = __toESM(require("clsx"));
1959
-
1960
- // components/elements/switch/Switch.tsx
1961
- var React29 = __toESM(require("react"));
1962
- var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
1963
- var Switch = React29.forwardRef(
1964
- ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
1965
- const [parentDirection, setParentDirection] = React29.useState(
1966
- null
1967
- );
1968
- const parentRef = React29.useRef(null);
1969
- React29.useEffect(() => {
1970
- var _a;
1971
- const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
1972
- if (parentNode) {
1973
- const dir = window.getComputedStyle(parentNode).direction;
1974
- setParentDirection(dir);
1975
- }
1976
- });
1977
- const rootSize = {
1978
- default: "hawa-h-[25px] hawa-w-[42px]",
1979
- sm: "hawa-h-[20px] hawa-w-[37px]",
1980
- lg: "hawa-h-[30px] hawa-w-[47px]"
1981
- };
1982
- const thumbSize = {
1983
- default: "hawa-h-[21px] hawa-w-[21px]",
1984
- sm: "hawa-h-[16px] hawa-w-[16px]",
1985
- lg: "hawa-h-[26px] hawa-w-[26px]"
1986
- };
1987
- const rootRoundednessStyles = {
1988
- none: "hawa-rounded-none",
1989
- full: "hawa-rounded-full",
1990
- inherit: "hawa-rounded"
1991
- };
1992
- const thumbRoundednessStyles = {
1993
- none: "hawa-rounded-none",
1994
- full: "hawa-rounded-full",
1995
- inherit: "hawa-rounded-inner"
1996
- };
1997
- return /* @__PURE__ */ React29.createElement(
1998
- "div",
1999
- {
2000
- className: "hawa-flex hawa-flex-row hawa-items-center",
2001
- ref: parentRef
2002
- },
2003
- /* @__PURE__ */ React29.createElement(
2004
- SwitchPrimitives.Root,
2005
- {
2006
- className: cn(
2007
- "data-[state=unchecked]:hawa-bg-primary/20",
2008
- "data-[state=checked]:hawa-bg-primary",
2009
- "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
2010
- rootRoundednessStyles[roundedness],
2011
- className,
2012
- rootSize[size]
2013
- ),
2014
- ...props,
2015
- ref
2016
- },
2017
- /* @__PURE__ */ React29.createElement(
2018
- SwitchPrimitives.Thumb,
2019
- {
2020
- className: cn(
2021
- thumbSize[size],
2022
- "hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
2023
- "data-[state=checked]:hawa-bg-primary-foreground",
2024
- "hawa-bg-white dark:hawa-bg-background",
2025
- thumbRoundednessStyles[roundedness],
2026
- parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
2027
- )
2028
- }
2029
- )
2030
- ),
2031
- label && /* @__PURE__ */ React29.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
2032
- );
2033
- }
2034
- );
2035
- Switch.displayName = SwitchPrimitives.Root.displayName;
2036
-
2037
- // components/elements/checkbox/Checkbox.tsx
2038
- var React30 = __toESM(require("react"));
2039
- var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
2040
- var CheckboxElement = React30.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
2041
- let checkboxRadius = {
2042
- none: "hawa-rounded-none",
2043
- inherit: "hawa-rounded-sm",
2044
- full: "hawa-rounded-full"
2045
- };
2046
- let checkboxSizes = {
2047
- xs: "hawa-w-3 hawa-h-3",
2048
- sm: "hawa-w-6 hawa-h-6",
2049
- default: "hawa-icon",
2050
- md: "hawa-w-8 hawa-h-8",
2051
- lg: "hawa-w-10 hawa-h-10",
2052
- xl: "hawa-w-12 hawa-h-12"
2053
- };
2054
- let checkboxIndicatorSizes = {
2055
- xs: "0.5em",
2056
- default: "0.60em",
2057
- sm: "0.75em",
2058
- md: "0.875em",
2059
- lg: "1em",
2060
- xl: "1.25em"
2061
- };
2062
- return /* @__PURE__ */ React30.createElement(
2063
- CheckboxPrimitive.Root,
2064
- {
2065
- ref,
2066
- className: cn(
2067
- "hawa-peer hawa-shrink-0 hawa-border hawa-border-primary hawa-ring-offset-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50 data-[state=checked]:hawa-bg-primary data-[state=checked]:hawa-text-primary-foreground",
2068
- checkboxSizes[size],
2069
- checkboxRadius[radius],
2070
- className
2071
- ),
2072
- ...props
2073
- },
2074
- /* @__PURE__ */ React30.createElement(
2075
- CheckboxPrimitive.Indicator,
2076
- {
2077
- className: cn(
2078
- "hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
2079
- )
2080
- },
2081
- /* @__PURE__ */ React30.createElement(
2082
- "svg",
2083
- {
2084
- "aria-label": "Check Mark",
2085
- stroke: "currentColor",
2086
- fill: "currentColor",
2087
- strokeWidth: "0",
2088
- viewBox: "0 0 512 512",
2089
- height: checkboxIndicatorSizes[size],
2090
- width: checkboxIndicatorSizes[size]
2091
- },
2092
- /* @__PURE__ */ React30.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" })
2093
- ),
2094
- " "
2095
- )
2096
- );
2097
- });
2098
- CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
2099
-
2100
- // components/elements/cards/ActionCard.tsx
2101
- var import_react15 = __toESM(require("react"));
2102
-
2103
- // components/elements/cards/AdCard.tsx
2104
- var import_react16 = __toESM(require("react"));
2105
-
2106
- // components/elements/cards/PricingCard.tsx
2107
- var import_react17 = __toESM(require("react"));
2108
-
2109
- // components/elements/cards/ItemCard.tsx
2110
- var import_react18 = __toESM(require("react"));
2111
-
2112
- // components/elements/cards/LandingCard.tsx
2113
- var import_react19 = __toESM(require("react"));
2114
-
2115
- // components/elements/PinInput.tsx
2116
- var import_react20 = __toESM(require("react"));
2117
-
2118
- // components/elements/PhoneInput.tsx
2119
- var import_react21 = __toESM(require("react"));
2120
-
2121
- // components/elements/Progress.tsx
2122
- var React38 = __toESM(require("react"));
2123
- var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
2124
- var Progress = React38.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React38.createElement(
2125
- ProgressPrimitive.Root,
2126
- {
2127
- ref,
2128
- className: cn(
2129
- "hawa-relative hawa-h-4 hawa-w-full hawa-overflow-hidden hawa-rounded hawa-bg-secondary",
2130
- className
2131
- ),
2132
- ...props
2133
- },
2134
- /* @__PURE__ */ React38.createElement(
2135
- ProgressPrimitive.Indicator,
2136
- {
2137
- className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
2138
- style: { transform: `translateX(-${100 - (value || 0)}%)` }
2139
- }
2140
- )
2141
- ));
2142
- Progress.displayName = ProgressPrimitive.Root.displayName;
2143
-
2144
- // components/elements/ProgressCircle.tsx
2145
- var import_react22 = __toESM(require("react"));
2146
- var size2config = {
2147
- xs: {
2148
- radius: 15,
2149
- strokeWidth: 3
2150
- },
2151
- sm: {
2152
- radius: 19,
2153
- strokeWidth: 4
2154
- },
2155
- md: {
2156
- radius: 32,
2157
- strokeWidth: 6
2158
- },
2159
- lg: {
2160
- radius: 52,
2161
- strokeWidth: 8
2162
- },
2163
- xl: {
2164
- radius: 80,
2165
- strokeWidth: 10
2166
- }
2167
- };
2168
- function getLimitedValue(input) {
2169
- if (input === void 0) {
2170
- return 0;
2171
- } else if (input > 100) {
2172
- return 100;
2173
- } else {
2174
- return input;
2175
- }
2176
- }
2177
- var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
2178
- const {
2179
- value: inputValue,
2180
- size = "md",
2181
- className,
2182
- showAnimation = true,
2183
- color,
2184
- tooltip,
2185
- radius: inputRadius,
2186
- strokeWidth: inputStrokeWidth,
2187
- children,
2188
- ...other
2189
- } = props;
2190
- const value = getLimitedValue(inputValue);
2191
- const radius = inputRadius != null ? inputRadius : size2config[size].radius;
2192
- const strokeWidth = inputStrokeWidth != null ? inputStrokeWidth : size2config[size].strokeWidth;
2193
- const normalizedRadius = radius - strokeWidth / 2;
2194
- const circumference = normalizedRadius * 2 * Math.PI;
2195
- const strokeDashoffset = value / 100 * circumference;
2196
- const offset = circumference - strokeDashoffset;
2197
- return /* @__PURE__ */ import_react22.default.createElement(import_react22.default.Fragment, null, /* @__PURE__ */ import_react22.default.createElement(
2198
- "div",
2199
- {
2200
- ref,
2201
- className: cn(
2202
- "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
2203
- className
2204
- )
2205
- },
2206
- /* @__PURE__ */ import_react22.default.createElement(
2207
- "svg",
2208
- {
2209
- width: radius * 2,
2210
- height: radius * 2,
2211
- viewBox: `0 0 ${radius * 2} ${radius * 2}`,
2212
- className: "hawa-rotate-180 hawa-transform"
2213
- },
2214
- /* @__PURE__ */ import_react22.default.createElement(
2215
- "circle",
2216
- {
2217
- r: normalizedRadius,
2218
- cx: radius,
2219
- cy: radius,
2220
- strokeWidth,
2221
- fill: "transparent",
2222
- stroke: "",
2223
- strokeLinecap: "round",
2224
- className: cn(
2225
- "hawa-transition-colors hawa-ease-linear",
2226
- " hawa-stroke-primary/20"
2227
- )
2228
- }
2229
- ),
2230
- value > 0 ? /* @__PURE__ */ import_react22.default.createElement(
2231
- "circle",
2232
- {
2233
- r: normalizedRadius,
2234
- cx: radius,
2235
- cy: radius,
2236
- strokeWidth,
2237
- strokeDasharray: circumference + " " + circumference,
2238
- strokeDashoffset: offset,
2239
- fill: "transparent",
2240
- stroke: "",
2241
- strokeLinecap: "round",
2242
- className: cn(
2243
- "hawa-transition-colors hawa-ease-linear",
2244
- "hawa-stroke-primary",
2245
- showAnimation ? "hawa-transition-all hawa-duration-300 hawa-ease-in-out" : ""
2246
- )
2247
- }
2248
- ) : null
2249
- ),
2250
- /* @__PURE__ */ import_react22.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
2251
- ));
2252
- });
2253
- ProgressCircle.displayName = "ProgressCircle";
2254
-
2255
- // components/elements/Pagination.tsx
2256
- var import_react23 = __toESM(require("react"));
2257
- var import_react_headless_pagination = require("react-headless-pagination");
2258
-
2259
- // components/elements/PasswordInput.tsx
2260
- var import_react27 = __toESM(require("react"));
2261
-
2262
- // components/icons/Emojis.tsx
2263
- var import_react24 = __toESM(require("react"));
2264
-
2265
- // components/icons/InputIcons.tsx
2266
- var import_react25 = __toESM(require("react"));
2267
-
2268
- // components/icons/CommonIcons.tsx
2269
- var import_react26 = __toESM(require("react"));
2270
-
2271
- // components/elements/Slider.tsx
2272
- var React45 = __toESM(require("react"));
2273
- var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
2274
- var Slider = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React45.createElement(
2275
- SliderPrimitive.Root,
2276
- {
2277
- ref,
2278
- className: cn(
2279
- "hawa-relative hawa-flex hawa-w-full hawa-touch-none hawa-select-none hawa-items-center",
2280
- className
2281
- ),
2282
- ...props
2283
- },
2284
- /* @__PURE__ */ React45.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React45.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
2285
- /* @__PURE__ */ React45.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background 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" })
2286
- ));
2287
- Slider.displayName = SliderPrimitive.Root.displayName;
2288
-
2289
- // components/elements/SimpleTable.tsx
2290
- var React46 = __toESM(require("react"));
2291
- var import_react_table2 = require("@tanstack/react-table");
2292
-
2293
- // components/elements/Separator.tsx
2294
- var React47 = __toESM(require("react"));
2295
-
2296
- // components/elements/ScrollArea.tsx
2297
- var React48 = __toESM(require("react"));
2298
- var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
2299
- var ScrollArea = React48.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React48.createElement(
2300
- ScrollAreaPrimitive.Root,
2301
- {
2302
- ref,
2303
- className: cn("hawa-relative hawa-overflow-hidden", className),
2304
- ...props
2305
- },
2306
- /* @__PURE__ */ React48.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
2307
- /* @__PURE__ */ React48.createElement(ScrollBar, { orientation }),
2308
- /* @__PURE__ */ React48.createElement(ScrollAreaPrimitive.Corner, null)
2309
- ));
2310
- ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
2311
- var ScrollBar = React48.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React48.createElement(
2312
- ScrollAreaPrimitive.ScrollAreaScrollbar,
2313
- {
2314
- ref,
2315
- orientation,
2316
- className: cn(
2317
- "hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
2318
- orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
2319
- orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
2320
- className
2321
- ),
2322
- ...props
2323
- },
2324
- /* @__PURE__ */ React48.createElement(
2325
- ScrollAreaPrimitive.ScrollAreaThumb,
2326
- {
2327
- className: cn(
2328
- "hawa-relative hawa-rounded-full hawa-bg-border",
2329
- orientation === "vertical" && "hawa-flex-1"
2330
- )
2331
- }
2332
- )
2333
- ));
2334
- ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
2335
-
2336
- // components/elements/ScrollIndicator.tsx
2337
- var import_react28 = __toESM(require("react"));
2338
-
2339
- // components/elements/StopPropagationWrapper.tsx
2340
- var import_react29 = __toESM(require("react"));
2341
-
2342
- // components/elements/ColorPicker.tsx
2343
- var import_react30 = __toESM(require("react"));
2344
-
2345
- // components/elements/CodeBlock.tsx
2346
- var import_react32 = __toESM(require("react"));
2347
- var import_prism_react_renderer = require("prism-react-renderer");
2348
-
2349
- // components/hooks/useClipboard.ts
2350
- var import_react31 = require("react");
2351
-
2352
- // components/elements/Carousel.tsx
2353
- var import_react33 = __toESM(require("react"));
2354
- var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
2355
-
2356
- // components/elements/Count.tsx
2357
- var import_react34 = __toESM(require("react"));
2358
-
2359
- // components/elements/Toast.tsx
2360
- var React55 = __toESM(require("react"));
2361
- var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
2362
- var import_class_variance_authority4 = require("class-variance-authority");
2363
- var toastVariants = (0, import_class_variance_authority4.cva)(
2364
- "hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-space-x-4 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
2365
- {
2366
- variants: {
2367
- variant: {
2368
- default: "hawa-border hawa-bg-background hawa-text-foreground",
2369
- destructive: "hawa-destructive hawa-group hawa-border-destructive hawa-bg-destructive hawa-text-destructive-foreground"
2370
- },
2371
- severity: {
2372
- info: "hawa-info hawa-group hawa-text-info-foreground hawa-bg-info",
2373
- warning: "hawa-warning hawa-group hawa-text-warning-foreground hawa-bg-warning",
2374
- error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-white",
2375
- success: "hawa-success hawa-group hawa-text-success-foreground hawa-bg-success",
2376
- none: ""
2377
- }
2378
- },
2379
- defaultVariants: {
2380
- variant: "default"
2381
- }
2382
- }
2383
- );
2384
- var ToastViewport = React55.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React55.createElement(
2385
- ToastPrimitives.Viewport,
2386
- {
2387
- ref,
2388
- className: cn(
2389
- "hawa-fixed hawa-top-0 hawa-z-[100] hawa-flex hawa-max-h-screen hawa-w-full hawa-flex-col-reverse hawa-p-4 sm:hawa-bottom-0 sm:hawa-right-0 sm:hawa-top-auto sm:hawa-flex-col md:hawa-max-w-[420px]",
2390
- className
2391
- ),
2392
- ...props
2393
- }
2394
- ));
2395
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
2396
- var Toast = React55.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
2397
- return /* @__PURE__ */ React55.createElement(
2398
- ToastPrimitives.Root,
2399
- {
2400
- ref,
2401
- className: cn(
2402
- toastVariants({ variant, severity }),
2403
- className,
2404
- direction === "rtl" ? "hawa-p-6 hawa-pl-0 hawa-pr-10 data-[state=closed]:hawa-slide-out-to-left-full" : "hawa-p-6 hawa-pr-8 data-[state=closed]:hawa-slide-out-to-right-full"
2405
- ),
2406
- dir: direction,
2407
- ...props
2408
- }
2409
- );
2410
- });
2411
- Toast.displayName = ToastPrimitives.Root.displayName;
2412
- var ToastAction = React55.forwardRef(({ className, ...props }, ref) => {
2413
- return /* @__PURE__ */ React55.createElement(
2414
- ToastPrimitives.Action,
2415
- {
2416
- ref,
2417
- className: cn(
2418
- "hawa-inline-flex hawa-h-8 hawa-shrink-0 hawa-items-center hawa-justify-center hawa-rounded-md hawa-border hawa-bg-transparent hawa-px-3 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors hover:hawa-bg-secondary hover:hawa-text-secondary-foreground focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
2419
- "group-[.info]:hawa-border-muted/40 group-[.info]:hover:hawa-border-info/30 group-[.info]:hover:hawa-bg-info group-[.info]:hover:hawa-text-info-foreground group-[.info]:focus:hawa-ring-info",
2420
- "group-[.error]:hawa-border-muted/40 group-[.error]:hover:hawa-border-error/30 group-[.error]:hover:hawa-bg-error group-[.error]:hover:hawa-text-error-foreground group-[.error]:focus:hawa-ring-error",
2421
- "group-[.success]:hawa-border-muted/40 group-[.success]:hover:hawa-border-success/30 group-[.success]:hover:hawa-bg-success group-[.success]:hover:hawa-text-success-foreground group-[.success]:focus:hawa-ring-success",
2422
- "group-[.warning]:hawa-border-muted/40 group-[.warning]:hover:hawa-border-warning/30 group-[.warning]:hover:hawa-bg-warning group-[.warning]:hover:hawa-text-warning-foreground group-[.warning]:focus:hawa-ring-warning",
2423
- className
2424
- ),
2425
- ...props
2426
- }
2427
- );
2428
- });
2429
- ToastAction.displayName = ToastPrimitives.Action.displayName;
2430
- var ToastClose = React55.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React55.createElement(
2431
- ToastPrimitives.Close,
2432
- {
2433
- ref,
2434
- className: cn(
2435
- "hawa-absolute hawa-right-2 hawa-top-2 hawa-rounded-md hawa-p-1 hawa-text-foreground/50 hawa-opacity-0 hawa-transition-opacity hover:hawa-text-foreground focus:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 group-hover:hawa-opacity-100 group-[.destructive]:hawa-text-red-300 group-[.destructive]:hover:hawa-text-red-50 group-[.destructive]:focus:hawa-ring-red-400 group-[.destructive]:focus:hawa-ring-offset-red-600",
2436
- className
2437
- ),
2438
- "toast-close": "",
2439
- ...props
2440
- },
2441
- /* @__PURE__ */ React55.createElement(
2442
- "svg",
2443
- {
2444
- "aria-label": "Close Icon",
2445
- "aria-hidden": "true",
2446
- className: "hawa-icon",
2447
- fill: "currentColor",
2448
- viewBox: "0 0 20 20"
2449
- },
2450
- /* @__PURE__ */ React55.createElement(
2451
- "path",
2452
- {
2453
- fillRule: "evenodd",
2454
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
2455
- clipRule: "evenodd"
2456
- }
2457
- )
2458
- )
2459
- ));
2460
- ToastClose.displayName = ToastPrimitives.Close.displayName;
2461
- var ToastTitle = React55.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React55.createElement(
2462
- ToastPrimitives.Title,
2463
- {
2464
- ref,
2465
- className: cn(
2466
- "hawa-select-text hawa-text-sm hawa-font-semibold",
2467
- className
2468
- ),
2469
- ...props
2470
- }
2471
- ));
2472
- ToastTitle.displayName = ToastPrimitives.Title.displayName;
2473
- var ToastDescription = React55.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React55.createElement(
2474
- ToastPrimitives.Description,
2475
- {
2476
- ref,
2477
- className: cn("hawa-select-text hawa-text-sm hawa-opacity-90", className),
2478
- ...props
2479
- }
2480
- ));
2481
- ToastDescription.displayName = ToastPrimitives.Description.displayName;
2482
-
2483
- // components/elements/Toaster.tsx
2484
- var import_react35 = __toESM(require("react"));
2485
-
2486
- // components/hooks/useToast.ts
2487
- var React56 = __toESM(require("react"));
2488
-
2489
- // components/elements/Breadcrumb.tsx
2490
- var import_react36 = __toESM(require("react"));
2491
-
2492
- // components/elements/Badge.tsx
2493
- var import_react37 = __toESM(require("react"));
2494
-
2495
- // components/elements/AppStores.tsx
2496
- var import_react38 = __toESM(require("react"));
2497
-
2498
- // components/elements/DestroyableCard.tsx
2499
- var import_react39 = __toESM(require("react"));
2500
-
2501
- // components/elements/InterfaceSettings.tsx
2502
- var import_react40 = __toESM(require("react"));
2503
-
2504
135
  // components/elements/accordion/AccordionContent.tsx
2505
- var React63 = __toESM(require("react"));
136
+ var React2 = __toESM(require("react"));
2506
137
  var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
2507
- var AccordionContent = React63.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React63.createElement(
138
+ var AccordionContent = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React2.createElement(
2508
139
  AccordionPrimitive.Content,
2509
140
  {
2510
141
  ref,
@@ -2514,14 +145,14 @@ var AccordionContent = React63.forwardRef(({ className, children, ...props }, re
2514
145
  ) : className,
2515
146
  ...props
2516
147
  },
2517
- /* @__PURE__ */ React63.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
148
+ /* @__PURE__ */ React2.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
2518
149
  ));
2519
150
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
2520
151
 
2521
152
  // components/elements/accordion/AccordionTrigger.tsx
2522
- var React64 = __toESM(require("react"));
153
+ var React3 = __toESM(require("react"));
2523
154
  var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
2524
- var AccordionTrigger = React64.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React64.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React64.createElement(
155
+ var AccordionTrigger = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React3.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React3.createElement(
2525
156
  AccordionPrimitive2.Trigger,
2526
157
  {
2527
158
  ref,
@@ -2533,7 +164,7 @@ var AccordionTrigger = React64.forwardRef(({ className, children, ...props }, re
2533
164
  ...props
2534
165
  },
2535
166
  children,
2536
- !props.hideArrow && /* @__PURE__ */ React64.createElement(
167
+ !props.hideArrow && /* @__PURE__ */ React3.createElement(
2537
168
  "svg",
2538
169
  {
2539
170
  xmlns: "http://www.w3.org/2000/svg",
@@ -2547,13 +178,13 @@ var AccordionTrigger = React64.forwardRef(({ className, children, ...props }, re
2547
178
  strokeLinejoin: "round",
2548
179
  className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
2549
180
  },
2550
- /* @__PURE__ */ React64.createElement("path", { d: "m6 9 6 6 6-6" })
181
+ /* @__PURE__ */ React3.createElement("path", { d: "m6 9 6 6 6-6" })
2551
182
  )
2552
183
  )));
2553
184
  AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
2554
185
 
2555
186
  // components/elements/accordion/Accordion.tsx
2556
- var Accordion = React65.forwardRef(
187
+ var Accordion = React4.forwardRef(
2557
188
  ({
2558
189
  items,
2559
190
  design = "default",
@@ -2562,7 +193,7 @@ var Accordion = React65.forwardRef(
2562
193
  contentclassNames,
2563
194
  className,
2564
195
  ...props
2565
- }, ref) => /* @__PURE__ */ React65.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React65.createElement(
196
+ }, ref) => /* @__PURE__ */ React4.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React4.createElement(
2566
197
  "div",
2567
198
  {
2568
199
  className: cn("hawa-flex hawa-flex-col", {
@@ -2570,7 +201,7 @@ var Accordion = React65.forwardRef(
2570
201
  "hawa-gap-0": design === "default"
2571
202
  })
2572
203
  },
2573
- items.map((item, index) => /* @__PURE__ */ React65.createElement(
204
+ items.map((item, index) => /* @__PURE__ */ React4.createElement(
2574
205
  AccordionPrimitive3.Item,
2575
206
  {
2576
207
  disabled: item.disabled || false,
@@ -2578,7 +209,7 @@ var Accordion = React65.forwardRef(
2578
209
  key: index,
2579
210
  value: `item-${index}`
2580
211
  },
2581
- /* @__PURE__ */ React65.createElement(
212
+ /* @__PURE__ */ React4.createElement(
2582
213
  AccordionTrigger,
2583
214
  {
2584
215
  disabled: item.disabled || false,
@@ -2591,7 +222,7 @@ var Accordion = React65.forwardRef(
2591
222
  triggerclassNames
2592
223
  )
2593
224
  },
2594
- /* @__PURE__ */ React65.createElement(
225
+ /* @__PURE__ */ React4.createElement(
2595
226
  "span",
2596
227
  {
2597
228
  className: cn(
@@ -2601,10 +232,10 @@ var Accordion = React65.forwardRef(
2601
232
  },
2602
233
  item.trigger,
2603
234
  " ",
2604
- item.chip && /* @__PURE__ */ React65.createElement(Chip, { ...item.chip })
235
+ item.chip && /* @__PURE__ */ React4.createElement(Chip, { ...item.chip })
2605
236
  )
2606
237
  ),
2607
- /* @__PURE__ */ React65.createElement(
238
+ /* @__PURE__ */ React4.createElement(
2608
239
  AccordionContent,
2609
240
  {
2610
241
  "aria-disabled": item.disabled || false,
@@ -2624,9 +255,9 @@ var Accordion = React65.forwardRef(
2624
255
  Accordion.displayName = "Accordion";
2625
256
 
2626
257
  // components/elements/accordion/AccordionItem.tsx
2627
- var React66 = __toESM(require("react"));
258
+ var React5 = __toESM(require("react"));
2628
259
  var AccordionPrimitive4 = __toESM(require("@radix-ui/react-accordion"));
2629
- var AccordionItem = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
260
+ var AccordionItem = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
2630
261
  AccordionItem.displayName = "AccordionItem";
2631
262
 
2632
263
  // components/elements/accordion/AccordionRoot.tsx