@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.
- package/dist/accordion/index.js +30 -2399
- package/dist/accordion/index.mjs +19 -461
- package/dist/alert/index.mjs +0 -1
- package/dist/appStores/index.js +75 -0
- package/dist/appStores/index.mjs +38 -0
- package/dist/avatar/index.mjs +118 -3
- package/dist/backToTop/index.mjs +102 -4
- package/dist/badge/index.js +127 -0
- package/dist/badge/index.mjs +84 -0
- package/dist/blocks/auth/index.js +1173 -3092
- package/dist/blocks/auth/index.mjs +16 -10
- package/dist/blocks/feedback/index.js +864 -2913
- package/dist/blocks/feedback/index.mjs +14 -8
- package/dist/blocks/index.js +5714 -5316
- package/dist/blocks/index.mjs +390 -45
- package/dist/blocks/misc/index.js +634 -2409
- package/dist/blocks/misc/index.mjs +14 -8
- package/dist/blocks/pricing/index.js +522 -524
- package/dist/blocks/pricing/index.mjs +1861 -45
- package/dist/breadcrumb/index.js +63 -0
- package/dist/breadcrumb/index.mjs +26 -0
- package/dist/card/index.mjs +83 -8
- package/dist/checkbox/index.mjs +138 -3
- package/dist/chip/index.js +129 -0
- package/dist/chip/index.mjs +8 -0
- package/dist/{chunk-X6PCWJYD.mjs → chunk-2R2QPJT7.mjs} +761 -1104
- package/dist/chunk-677VOLD4.mjs +464 -0
- package/dist/chunk-72HYR6WB.mjs +88 -0
- package/dist/chunk-A25EXELT.mjs +131 -0
- package/dist/{chunk-OE27DSIY.mjs → chunk-F6TKEDDP.mjs} +2 -4
- package/dist/{chunk-YFC2GSJ6.mjs → chunk-P2O6R3S6.mjs} +66 -5
- package/dist/{chunk-GXXX5UB4.mjs → chunk-QGKW5R5F.mjs} +59 -20
- package/dist/chunk-TR56G3NM.mjs +2350 -0
- package/dist/chunk-UAVBFK53.mjs +346 -0
- package/dist/combobox/index.mjs +153 -7
- package/dist/dataTable/index.mjs +355 -8
- package/dist/elements/index.js +800 -1148
- package/dist/elements/index.mjs +1 -11
- package/dist/fileDropzone/index.mjs +226 -4
- package/dist/index.js +1721 -1721
- package/dist/index.mjs +1663 -1663
- package/dist/layout/index.js +493 -510
- package/dist/layout/index.mjs +1 -1
- package/dist/loading/index.mjs +0 -1
- package/dist/logos/index.mjs +204 -3
- package/dist/navigationMenu/index.mjs +155 -13
- package/dist/phoneInput/index.js +2074 -0
- package/dist/phoneInput/index.mjs +1776 -0
- package/dist/pinInput/index.js +130 -0
- package/dist/pinInput/index.mjs +88 -0
- package/dist/progress/index.js +71 -0
- package/dist/progress/index.mjs +29 -0
- package/dist/radio/index.mjs +202 -4
- package/dist/scrollArea/index.js +90 -0
- package/dist/scrollArea/index.mjs +47 -0
- package/dist/select/index.mjs +1 -1
- package/dist/sheet/index.mjs +137 -12
- package/dist/sortButton/index.mjs +40 -4
- package/dist/stopPropagationWrapper/index.js +48 -0
- package/dist/stopPropagationWrapper/index.mjs +11 -0
- package/dist/switch/index.mjs +79 -3
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +68 -6
- package/dist/textarea/index.mjs +54 -4
- package/package.json +2 -2
- package/dist/Chip-DJ6ThZc_.d.ts +0 -21
- package/dist/Chip-eal8vwDz.d.mts +0 -21
- package/dist/accordion/index.d.mts +0 -42
- package/dist/accordion/index.d.ts +0 -42
- package/dist/alert/index.d.mts +0 -28
- package/dist/alert/index.d.ts +0 -28
- package/dist/avatar/index.d.mts +0 -15
- package/dist/avatar/index.d.ts +0 -15
- package/dist/backToTop/index.d.mts +0 -15
- package/dist/backToTop/index.d.ts +0 -15
- package/dist/button/index.d.mts +0 -16
- package/dist/button/index.d.ts +0 -16
- package/dist/card/index.d.mts +0 -17
- package/dist/card/index.d.ts +0 -17
- package/dist/checkbox/index.d.mts +0 -20
- package/dist/checkbox/index.d.ts +0 -20
- package/dist/chunk-BK5WF7UO.mjs +0 -231
- package/dist/chunk-CXWYC6FS.mjs +0 -360
- package/dist/chunk-D2USGMDT.mjs +0 -208
- package/dist/chunk-DX4SLF2L.mjs +0 -45
- package/dist/chunk-ENNSA4VR.mjs +0 -5566
- package/dist/chunk-GXSYCLZZ.mjs +0 -158
- package/dist/chunk-IQPGAHUR.mjs +0 -107
- package/dist/chunk-POT2IP62.mjs +0 -123
- package/dist/chunk-TWDZB2VH.mjs +0 -151
- package/dist/chunk-VBTYVVA7.mjs +0 -93
- package/dist/chunk-VCGW5DIP.mjs +0 -170
- package/dist/chunk-X3SMPIA3.mjs +0 -0
- package/dist/chunk-XA646BZ2.mjs +0 -143
- package/dist/chunk-ZCUUQ5VV.mjs +0 -84
- package/dist/combobox/index.d.mts +0 -32
- package/dist/combobox/index.d.ts +0 -32
- package/dist/command/index.d.mts +0 -48
- package/dist/command/index.d.ts +0 -48
- package/dist/commonTypes-gbO4hPli.d.mts +0 -7
- package/dist/commonTypes-gbO4hPli.d.ts +0 -7
- package/dist/dataTable/index.d.mts +0 -39
- package/dist/dataTable/index.d.ts +0 -39
- package/dist/dialog/index.d.mts +0 -57
- package/dist/dialog/index.d.ts +0 -57
- package/dist/dropdownMenu/index.d.mts +0 -95
- package/dist/dropdownMenu/index.d.ts +0 -95
- package/dist/fileDropzone/index.d.mts +0 -37
- package/dist/fileDropzone/index.d.ts +0 -37
- package/dist/input/index.d.mts +0 -36
- package/dist/input/index.d.ts +0 -36
- package/dist/label/index.d.mts +0 -12
- package/dist/label/index.d.ts +0 -12
- package/dist/loading/index.d.mts +0 -15
- package/dist/loading/index.d.ts +0 -15
- package/dist/logos/index.d.mts +0 -27
- package/dist/logos/index.d.ts +0 -27
- package/dist/navigationMenu/index.d.mts +0 -39
- package/dist/navigationMenu/index.d.ts +0 -39
- package/dist/popover/index.d.mts +0 -23
- package/dist/popover/index.d.ts +0 -23
- package/dist/radio/index.d.mts +0 -28
- package/dist/radio/index.d.ts +0 -28
- package/dist/select/index.d.mts +0 -43
- package/dist/select/index.d.ts +0 -43
- package/dist/sheet/index.d.mts +0 -30
- package/dist/sheet/index.d.ts +0 -30
- package/dist/skeleton/index.d.mts +0 -10
- package/dist/skeleton/index.d.ts +0 -10
- package/dist/sortButton/index.d.mts +0 -10
- package/dist/sortButton/index.d.ts +0 -10
- package/dist/splitButton/index.d.mts +0 -15
- package/dist/splitButton/index.d.ts +0 -15
- package/dist/switch/index.d.mts +0 -12
- package/dist/switch/index.d.ts +0 -12
- package/dist/table/index.d.mts +0 -21
- package/dist/table/index.d.ts +0 -21
- package/dist/tabs/index.d.mts +0 -16
- package/dist/tabs/index.d.ts +0 -16
- package/dist/textarea/index.d.mts +0 -17
- package/dist/textarea/index.d.ts +0 -17
- package/dist/tooltip/index.d.mts +0 -26
- package/dist/tooltip/index.d.ts +0 -26
- /package/dist/{chunk-A7OPD7H7.mjs → chunk-B6UCD4GP.mjs} +0 -0
- /package/dist/{chunk-O2ALK7UE.mjs → chunk-Z4M72OD3.mjs} +0 -0
|
@@ -39,8 +39,11 @@ module.exports = __toCommonJS(pricing_exports);
|
|
|
39
39
|
// components/blocks/pricing/PricingPlans.tsx
|
|
40
40
|
var import_react41 = __toESM(require("react"));
|
|
41
41
|
|
|
42
|
-
// components/
|
|
43
|
-
var
|
|
42
|
+
// components/blocks/cards/ActionCard.tsx
|
|
43
|
+
var import_react = __toESM(require("react"));
|
|
44
|
+
|
|
45
|
+
// components/blocks/cards/AdCard.tsx
|
|
46
|
+
var import_react2 = __toESM(require("react"));
|
|
44
47
|
|
|
45
48
|
// components/util.ts
|
|
46
49
|
var import_clsx = require("clsx");
|
|
@@ -49,8 +52,12 @@ function cn(...inputs) {
|
|
|
49
52
|
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
50
53
|
}
|
|
51
54
|
|
|
55
|
+
// components/blocks/cards/PricingCard.tsx
|
|
56
|
+
var import_react38 = __toESM(require("react"));
|
|
57
|
+
|
|
52
58
|
// components/elements/card/Card.tsx
|
|
53
|
-
var
|
|
59
|
+
var React3 = __toESM(require("react"));
|
|
60
|
+
var Card = React3.forwardRef(
|
|
54
61
|
({ className, variant = "default", clickable = false, ...props }, ref) => {
|
|
55
62
|
let variantStyles = {
|
|
56
63
|
default: cn(
|
|
@@ -63,7 +70,7 @@ var Card = React.forwardRef(
|
|
|
63
70
|
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"
|
|
64
71
|
)
|
|
65
72
|
};
|
|
66
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ React3.createElement(
|
|
67
74
|
"div",
|
|
68
75
|
{
|
|
69
76
|
ref,
|
|
@@ -73,7 +80,7 @@ var Card = React.forwardRef(
|
|
|
73
80
|
);
|
|
74
81
|
}
|
|
75
82
|
);
|
|
76
|
-
var CardHeader =
|
|
83
|
+
var CardHeader = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
77
84
|
"div",
|
|
78
85
|
{
|
|
79
86
|
ref,
|
|
@@ -84,7 +91,7 @@ var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
84
91
|
...props
|
|
85
92
|
}
|
|
86
93
|
));
|
|
87
|
-
var CardTitle =
|
|
94
|
+
var CardTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
88
95
|
"h3",
|
|
89
96
|
{
|
|
90
97
|
ref,
|
|
@@ -92,7 +99,7 @@ var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
92
99
|
...props
|
|
93
100
|
}
|
|
94
101
|
));
|
|
95
|
-
var CardDescription =
|
|
102
|
+
var CardDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
96
103
|
"p",
|
|
97
104
|
{
|
|
98
105
|
ref,
|
|
@@ -100,8 +107,8 @@ var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
100
107
|
...props
|
|
101
108
|
}
|
|
102
109
|
));
|
|
103
|
-
var CardContent =
|
|
104
|
-
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */
|
|
110
|
+
var CardContent = React3.forwardRef(
|
|
111
|
+
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
105
112
|
"div",
|
|
106
113
|
{
|
|
107
114
|
ref,
|
|
@@ -114,7 +121,7 @@ var CardContent = React.forwardRef(
|
|
|
114
121
|
}
|
|
115
122
|
)
|
|
116
123
|
);
|
|
117
|
-
var CardFooter =
|
|
124
|
+
var CardFooter = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
|
|
118
125
|
"div",
|
|
119
126
|
{
|
|
120
127
|
ref,
|
|
@@ -130,7 +137,7 @@ CardTitle.displayName = "CardTitle";
|
|
|
130
137
|
Card.displayName = "Card";
|
|
131
138
|
|
|
132
139
|
// components/elements/loading/Loading.tsx
|
|
133
|
-
var
|
|
140
|
+
var import_react3 = __toESM(require("react"));
|
|
134
141
|
var Loading = ({
|
|
135
142
|
design = "spinner",
|
|
136
143
|
size = "sm",
|
|
@@ -152,12 +159,12 @@ var Loading = ({
|
|
|
152
159
|
};
|
|
153
160
|
switch (design.split("-")[0]) {
|
|
154
161
|
case "dots":
|
|
155
|
-
return /* @__PURE__ */
|
|
162
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
|
156
163
|
"div",
|
|
157
164
|
{
|
|
158
165
|
className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
|
|
159
166
|
},
|
|
160
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
|
161
168
|
"div",
|
|
162
169
|
{
|
|
163
170
|
className: cn(
|
|
@@ -168,7 +175,7 @@ var Loading = ({
|
|
|
168
175
|
)
|
|
169
176
|
}
|
|
170
177
|
),
|
|
171
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
|
172
179
|
"div",
|
|
173
180
|
{
|
|
174
181
|
className: cn(
|
|
@@ -179,7 +186,7 @@ var Loading = ({
|
|
|
179
186
|
)
|
|
180
187
|
}
|
|
181
188
|
),
|
|
182
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
|
183
190
|
"div",
|
|
184
191
|
{
|
|
185
192
|
className: cn(
|
|
@@ -192,7 +199,7 @@ var Loading = ({
|
|
|
192
199
|
)
|
|
193
200
|
);
|
|
194
201
|
case "square":
|
|
195
|
-
return /* @__PURE__ */
|
|
202
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
|
196
203
|
"svg",
|
|
197
204
|
{
|
|
198
205
|
className: cn("squircle-container", sizeStyles[size]),
|
|
@@ -200,7 +207,7 @@ var Loading = ({
|
|
|
200
207
|
height: "35",
|
|
201
208
|
width: "35"
|
|
202
209
|
},
|
|
203
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
|
204
211
|
"rect",
|
|
205
212
|
{
|
|
206
213
|
className: "squircle-track",
|
|
@@ -212,7 +219,7 @@ var Loading = ({
|
|
|
212
219
|
height: "32.5"
|
|
213
220
|
}
|
|
214
221
|
),
|
|
215
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
|
216
223
|
"rect",
|
|
217
224
|
{
|
|
218
225
|
className: "square-car",
|
|
@@ -227,7 +234,7 @@ var Loading = ({
|
|
|
227
234
|
)
|
|
228
235
|
);
|
|
229
236
|
case "squircle":
|
|
230
|
-
return /* @__PURE__ */
|
|
237
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
|
231
238
|
"svg",
|
|
232
239
|
{
|
|
233
240
|
className: cn("squircle-container", sizeStyles[size]),
|
|
@@ -238,7 +245,7 @@ var Loading = ({
|
|
|
238
245
|
width: "37",
|
|
239
246
|
preserveAspectRatio: "xMidYMid meet"
|
|
240
247
|
},
|
|
241
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
|
242
249
|
"path",
|
|
243
250
|
{
|
|
244
251
|
className: "squircle-track",
|
|
@@ -248,7 +255,7 @@ var Loading = ({
|
|
|
248
255
|
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"
|
|
249
256
|
}
|
|
250
257
|
),
|
|
251
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
|
252
259
|
"path",
|
|
253
260
|
{
|
|
254
261
|
className: "squircle-car",
|
|
@@ -260,11 +267,11 @@ var Loading = ({
|
|
|
260
267
|
)
|
|
261
268
|
);
|
|
262
269
|
case "progress":
|
|
263
|
-
return /* @__PURE__ */
|
|
270
|
+
return /* @__PURE__ */ import_react3.default.createElement("div", { className: "progress-loading" });
|
|
264
271
|
case "orbit":
|
|
265
|
-
return /* @__PURE__ */
|
|
272
|
+
return /* @__PURE__ */ import_react3.default.createElement("div", { className: "orbit-container" });
|
|
266
273
|
default:
|
|
267
|
-
return /* @__PURE__ */
|
|
274
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
|
268
275
|
"svg",
|
|
269
276
|
{
|
|
270
277
|
className: cn("circle-container", sizeStyles[size]),
|
|
@@ -272,7 +279,7 @@ var Loading = ({
|
|
|
272
279
|
height: "40",
|
|
273
280
|
width: "40"
|
|
274
281
|
},
|
|
275
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
|
276
283
|
"circle",
|
|
277
284
|
{
|
|
278
285
|
className: cn("circle-track", {
|
|
@@ -287,7 +294,7 @@ var Loading = ({
|
|
|
287
294
|
fill: "none"
|
|
288
295
|
}
|
|
289
296
|
),
|
|
290
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
|
291
298
|
"circle",
|
|
292
299
|
{
|
|
293
300
|
className: cn("circle-car", {
|
|
@@ -307,9 +314,9 @@ var Loading = ({
|
|
|
307
314
|
};
|
|
308
315
|
|
|
309
316
|
// components/elements/tooltip/Tooltip.tsx
|
|
310
|
-
var
|
|
317
|
+
var import_react4 = __toESM(require("react"));
|
|
311
318
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
312
|
-
var TooltipContent =
|
|
319
|
+
var TooltipContent = import_react4.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react4.default.createElement(
|
|
313
320
|
TooltipPrimitive.Content,
|
|
314
321
|
{
|
|
315
322
|
ref,
|
|
@@ -322,7 +329,7 @@ var TooltipContent = import_react2.default.forwardRef(({ className, sideOffset =
|
|
|
322
329
|
}
|
|
323
330
|
));
|
|
324
331
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
325
|
-
var TooltipArrow =
|
|
332
|
+
var TooltipArrow = import_react4.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react4.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
|
326
333
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
327
334
|
var Tooltip = ({
|
|
328
335
|
side,
|
|
@@ -337,13 +344,13 @@ var Tooltip = ({
|
|
|
337
344
|
delayDuration = 300,
|
|
338
345
|
...props
|
|
339
346
|
}) => {
|
|
340
|
-
return /* @__PURE__ */
|
|
347
|
+
return /* @__PURE__ */ import_react4.default.createElement(
|
|
341
348
|
TooltipPrimitive.TooltipProvider,
|
|
342
349
|
{
|
|
343
350
|
delayDuration,
|
|
344
351
|
...providerProps
|
|
345
352
|
},
|
|
346
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
|
347
354
|
TooltipPrimitive.Root,
|
|
348
355
|
{
|
|
349
356
|
open,
|
|
@@ -351,14 +358,14 @@ var Tooltip = ({
|
|
|
351
358
|
onOpenChange,
|
|
352
359
|
...props
|
|
353
360
|
},
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ import_react4.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
|
362
|
+
/* @__PURE__ */ import_react4.default.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
|
|
356
363
|
)
|
|
357
364
|
);
|
|
358
365
|
};
|
|
359
366
|
|
|
360
367
|
// components/elements/skeleton/Skeleton.tsx
|
|
361
|
-
var
|
|
368
|
+
var import_react5 = __toESM(require("react"));
|
|
362
369
|
function Skeleton({
|
|
363
370
|
className,
|
|
364
371
|
content,
|
|
@@ -370,7 +377,7 @@ function Skeleton({
|
|
|
370
377
|
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
|
371
378
|
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"
|
|
372
379
|
};
|
|
373
|
-
return /* @__PURE__ */
|
|
380
|
+
return /* @__PURE__ */ import_react5.default.createElement(
|
|
374
381
|
"div",
|
|
375
382
|
{
|
|
376
383
|
className: cn(
|
|
@@ -385,9 +392,9 @@ function Skeleton({
|
|
|
385
392
|
}
|
|
386
393
|
|
|
387
394
|
// components/elements/dropdownMenu/DropdownMenu.tsx
|
|
388
|
-
var
|
|
395
|
+
var React7 = __toESM(require("react"));
|
|
389
396
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
390
|
-
var DropdownMenuSubTrigger =
|
|
397
|
+
var DropdownMenuSubTrigger = React7.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
391
398
|
DropdownMenuPrimitive.SubTrigger,
|
|
392
399
|
{
|
|
393
400
|
ref,
|
|
@@ -398,9 +405,9 @@ var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ..
|
|
|
398
405
|
),
|
|
399
406
|
...props
|
|
400
407
|
},
|
|
401
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
|
402
409
|
" ",
|
|
403
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ React7.createElement(
|
|
404
411
|
"svg",
|
|
405
412
|
{
|
|
406
413
|
"aria-label": "Chevron Right Icon",
|
|
@@ -412,7 +419,7 @@ var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ..
|
|
|
412
419
|
width: "1em",
|
|
413
420
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
|
414
421
|
},
|
|
415
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ React7.createElement(
|
|
416
423
|
"path",
|
|
417
424
|
{
|
|
418
425
|
fillRule: "evenodd",
|
|
@@ -422,7 +429,7 @@ var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ..
|
|
|
422
429
|
)
|
|
423
430
|
));
|
|
424
431
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
425
|
-
var DropdownMenuSubContent =
|
|
432
|
+
var DropdownMenuSubContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
426
433
|
DropdownMenuPrimitive.SubContent,
|
|
427
434
|
{
|
|
428
435
|
ref,
|
|
@@ -434,7 +441,7 @@ var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) =>
|
|
|
434
441
|
}
|
|
435
442
|
));
|
|
436
443
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
437
|
-
var DropdownMenuContent =
|
|
444
|
+
var DropdownMenuContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React7.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React7.createElement(
|
|
438
445
|
DropdownMenuPrimitive.Content,
|
|
439
446
|
{
|
|
440
447
|
ref,
|
|
@@ -447,8 +454,8 @@ var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
447
454
|
}
|
|
448
455
|
)));
|
|
449
456
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
450
|
-
var DropdownMenuItem =
|
|
451
|
-
return /* @__PURE__ */
|
|
457
|
+
var DropdownMenuItem = React7.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
|
|
458
|
+
return /* @__PURE__ */ React7.createElement("a", { href: slug }, /* @__PURE__ */ React7.createElement(
|
|
452
459
|
DropdownMenuPrimitive.Item,
|
|
453
460
|
{
|
|
454
461
|
disabled: props.disabled,
|
|
@@ -461,14 +468,14 @@ var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, ...p
|
|
|
461
468
|
),
|
|
462
469
|
...props
|
|
463
470
|
},
|
|
464
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
|
465
472
|
props.end && props.end,
|
|
466
|
-
!props.end && props.shortcut && /* @__PURE__ */
|
|
467
|
-
!props.end && badged && /* @__PURE__ */
|
|
473
|
+
!props.end && props.shortcut && /* @__PURE__ */ React7.createElement(DropdownMenuShortcut, null, props.shortcut),
|
|
474
|
+
!props.end && badged && /* @__PURE__ */ React7.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
|
468
475
|
));
|
|
469
476
|
});
|
|
470
477
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
471
|
-
var DropdownMenuCheckboxItem =
|
|
478
|
+
var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
472
479
|
DropdownMenuPrimitive.CheckboxItem,
|
|
473
480
|
{
|
|
474
481
|
ref,
|
|
@@ -479,7 +486,7 @@ var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, checked
|
|
|
479
486
|
checked,
|
|
480
487
|
...props
|
|
481
488
|
},
|
|
482
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ React7.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__ */ React7.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React7.createElement(
|
|
483
490
|
"svg",
|
|
484
491
|
{
|
|
485
492
|
"aria-label": "Check Mark",
|
|
@@ -490,12 +497,12 @@ var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, checked
|
|
|
490
497
|
height: "0.60em",
|
|
491
498
|
width: "0.60em"
|
|
492
499
|
},
|
|
493
|
-
/* @__PURE__ */
|
|
500
|
+
/* @__PURE__ */ React7.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" })
|
|
494
501
|
), " ")),
|
|
495
502
|
children
|
|
496
503
|
));
|
|
497
504
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
498
|
-
var DropdownMenuRadioItem =
|
|
505
|
+
var DropdownMenuRadioItem = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
499
506
|
DropdownMenuPrimitive.RadioItem,
|
|
500
507
|
{
|
|
501
508
|
ref,
|
|
@@ -505,7 +512,7 @@ var DropdownMenuRadioItem = React5.forwardRef(({ className, children, ...props }
|
|
|
505
512
|
),
|
|
506
513
|
...props
|
|
507
514
|
},
|
|
508
|
-
/* @__PURE__ */
|
|
515
|
+
/* @__PURE__ */ React7.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__ */ React7.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React7.createElement(
|
|
509
516
|
"svg",
|
|
510
517
|
{
|
|
511
518
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -520,12 +527,12 @@ var DropdownMenuRadioItem = React5.forwardRef(({ className, children, ...props }
|
|
|
520
527
|
strokeLinejoin: "round",
|
|
521
528
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
522
529
|
},
|
|
523
|
-
/* @__PURE__ */
|
|
530
|
+
/* @__PURE__ */ React7.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
|
524
531
|
))),
|
|
525
532
|
children
|
|
526
533
|
));
|
|
527
534
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
528
|
-
var DropdownMenuLabel =
|
|
535
|
+
var DropdownMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
529
536
|
DropdownMenuPrimitive.Label,
|
|
530
537
|
{
|
|
531
538
|
ref,
|
|
@@ -538,7 +545,7 @@ var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref)
|
|
|
538
545
|
}
|
|
539
546
|
));
|
|
540
547
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
541
|
-
var DropdownMenuSeparator =
|
|
548
|
+
var DropdownMenuSeparator = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
542
549
|
DropdownMenuPrimitive.Separator,
|
|
543
550
|
{
|
|
544
551
|
ref,
|
|
@@ -551,7 +558,7 @@ var DropdownMenuShortcut = ({
|
|
|
551
558
|
className,
|
|
552
559
|
...props
|
|
553
560
|
}) => {
|
|
554
|
-
return /* @__PURE__ */
|
|
561
|
+
return /* @__PURE__ */ React7.createElement(
|
|
555
562
|
"span",
|
|
556
563
|
{
|
|
557
564
|
className: cn(
|
|
@@ -565,13 +572,94 @@ var DropdownMenuShortcut = ({
|
|
|
565
572
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
566
573
|
|
|
567
574
|
// components/elements/accordion/Accordion.tsx
|
|
568
|
-
var
|
|
575
|
+
var React11 = __toESM(require("react"));
|
|
569
576
|
var AccordionPrimitive3 = __toESM(require("@radix-ui/react-accordion"));
|
|
570
577
|
|
|
578
|
+
// components/elements/chip/Chip.tsx
|
|
579
|
+
var import_react6 = __toESM(require("react"));
|
|
580
|
+
var Chip = import_react6.default.forwardRef(
|
|
581
|
+
({
|
|
582
|
+
label,
|
|
583
|
+
size = "normal",
|
|
584
|
+
icon,
|
|
585
|
+
color,
|
|
586
|
+
radius = "inherit",
|
|
587
|
+
dotType,
|
|
588
|
+
...rest
|
|
589
|
+
}, ref) => {
|
|
590
|
+
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
|
591
|
+
let radiusStyles = {
|
|
592
|
+
inherit: " hawa-rounded",
|
|
593
|
+
full: "hawa-rounded-full",
|
|
594
|
+
none: "hawa-rounded-none"
|
|
595
|
+
};
|
|
596
|
+
let sizeStyles = {
|
|
597
|
+
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
|
598
|
+
normal: "hawa-h-fit hawa-text-xs",
|
|
599
|
+
large: "hawa-text-base"
|
|
600
|
+
};
|
|
601
|
+
let dotStyles = {
|
|
602
|
+
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
|
603
|
+
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
604
|
+
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
|
605
|
+
};
|
|
606
|
+
let dotTypeStyles = {
|
|
607
|
+
available: "hawa-bg-green-500",
|
|
608
|
+
unavailable: "hawa-bg-red-500"
|
|
609
|
+
};
|
|
610
|
+
let colorStyles = {
|
|
611
|
+
green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
|
|
612
|
+
blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
|
|
613
|
+
red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
|
|
614
|
+
yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
|
|
615
|
+
orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
|
|
616
|
+
purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
|
|
617
|
+
cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
|
|
618
|
+
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
|
|
619
|
+
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
|
620
|
+
};
|
|
621
|
+
if (label) {
|
|
622
|
+
return /* @__PURE__ */ import_react6.default.createElement(
|
|
623
|
+
"span",
|
|
624
|
+
{
|
|
625
|
+
...rest,
|
|
626
|
+
ref,
|
|
627
|
+
className: cn(
|
|
628
|
+
defaultStyles,
|
|
629
|
+
sizeStyles[size],
|
|
630
|
+
radiusStyles[radius],
|
|
631
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
632
|
+
)
|
|
633
|
+
},
|
|
634
|
+
dotType && /* @__PURE__ */ import_react6.default.createElement(
|
|
635
|
+
"span",
|
|
636
|
+
{
|
|
637
|
+
className: cn(dotStyles[size], dotTypeStyles[dotType])
|
|
638
|
+
}
|
|
639
|
+
),
|
|
640
|
+
icon && icon,
|
|
641
|
+
label
|
|
642
|
+
);
|
|
643
|
+
} else {
|
|
644
|
+
return /* @__PURE__ */ import_react6.default.createElement(
|
|
645
|
+
"span",
|
|
646
|
+
{
|
|
647
|
+
...rest,
|
|
648
|
+
ref,
|
|
649
|
+
className: cn(
|
|
650
|
+
"hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
651
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
652
|
+
)
|
|
653
|
+
}
|
|
654
|
+
);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
);
|
|
658
|
+
|
|
571
659
|
// components/elements/accordion/AccordionContent.tsx
|
|
572
|
-
var
|
|
660
|
+
var React9 = __toESM(require("react"));
|
|
573
661
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
574
|
-
var AccordionContent =
|
|
662
|
+
var AccordionContent = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React9.createElement(
|
|
575
663
|
AccordionPrimitive.Content,
|
|
576
664
|
{
|
|
577
665
|
ref,
|
|
@@ -581,14 +669,14 @@ var AccordionContent = React6.forwardRef(({ className, children, ...props }, ref
|
|
|
581
669
|
) : className,
|
|
582
670
|
...props
|
|
583
671
|
},
|
|
584
|
-
/* @__PURE__ */
|
|
672
|
+
/* @__PURE__ */ React9.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
|
|
585
673
|
));
|
|
586
674
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
587
675
|
|
|
588
676
|
// components/elements/accordion/AccordionTrigger.tsx
|
|
589
|
-
var
|
|
677
|
+
var React10 = __toESM(require("react"));
|
|
590
678
|
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
|
|
591
|
-
var AccordionTrigger =
|
|
679
|
+
var AccordionTrigger = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React10.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React10.createElement(
|
|
592
680
|
AccordionPrimitive2.Trigger,
|
|
593
681
|
{
|
|
594
682
|
ref,
|
|
@@ -600,7 +688,7 @@ var AccordionTrigger = React7.forwardRef(({ className, children, ...props }, ref
|
|
|
600
688
|
...props
|
|
601
689
|
},
|
|
602
690
|
children,
|
|
603
|
-
!props.hideArrow && /* @__PURE__ */
|
|
691
|
+
!props.hideArrow && /* @__PURE__ */ React10.createElement(
|
|
604
692
|
"svg",
|
|
605
693
|
{
|
|
606
694
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -614,13 +702,13 @@ var AccordionTrigger = React7.forwardRef(({ className, children, ...props }, ref
|
|
|
614
702
|
strokeLinejoin: "round",
|
|
615
703
|
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
|
616
704
|
},
|
|
617
|
-
/* @__PURE__ */
|
|
705
|
+
/* @__PURE__ */ React10.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
618
706
|
)
|
|
619
707
|
)));
|
|
620
708
|
AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
621
709
|
|
|
622
710
|
// components/elements/accordion/Accordion.tsx
|
|
623
|
-
var Accordion =
|
|
711
|
+
var Accordion = React11.forwardRef(
|
|
624
712
|
({
|
|
625
713
|
items,
|
|
626
714
|
design = "default",
|
|
@@ -629,7 +717,7 @@ var Accordion = React8.forwardRef(
|
|
|
629
717
|
contentclassNames,
|
|
630
718
|
className,
|
|
631
719
|
...props
|
|
632
|
-
}, ref) => /* @__PURE__ */
|
|
720
|
+
}, ref) => /* @__PURE__ */ React11.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React11.createElement(
|
|
633
721
|
"div",
|
|
634
722
|
{
|
|
635
723
|
className: cn("hawa-flex hawa-flex-col", {
|
|
@@ -637,7 +725,7 @@ var Accordion = React8.forwardRef(
|
|
|
637
725
|
"hawa-gap-0": design === "default"
|
|
638
726
|
})
|
|
639
727
|
},
|
|
640
|
-
items.map((item, index) => /* @__PURE__ */
|
|
728
|
+
items.map((item, index) => /* @__PURE__ */ React11.createElement(
|
|
641
729
|
AccordionPrimitive3.Item,
|
|
642
730
|
{
|
|
643
731
|
disabled: item.disabled || false,
|
|
@@ -645,7 +733,7 @@ var Accordion = React8.forwardRef(
|
|
|
645
733
|
key: index,
|
|
646
734
|
value: `item-${index}`
|
|
647
735
|
},
|
|
648
|
-
/* @__PURE__ */
|
|
736
|
+
/* @__PURE__ */ React11.createElement(
|
|
649
737
|
AccordionTrigger,
|
|
650
738
|
{
|
|
651
739
|
disabled: item.disabled || false,
|
|
@@ -658,7 +746,7 @@ var Accordion = React8.forwardRef(
|
|
|
658
746
|
triggerclassNames
|
|
659
747
|
)
|
|
660
748
|
},
|
|
661
|
-
/* @__PURE__ */
|
|
749
|
+
/* @__PURE__ */ React11.createElement(
|
|
662
750
|
"span",
|
|
663
751
|
{
|
|
664
752
|
className: cn(
|
|
@@ -668,10 +756,10 @@ var Accordion = React8.forwardRef(
|
|
|
668
756
|
},
|
|
669
757
|
item.trigger,
|
|
670
758
|
" ",
|
|
671
|
-
item.chip && /* @__PURE__ */
|
|
759
|
+
item.chip && /* @__PURE__ */ React11.createElement(Chip, { ...item.chip })
|
|
672
760
|
)
|
|
673
761
|
),
|
|
674
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ React11.createElement(
|
|
675
763
|
AccordionContent,
|
|
676
764
|
{
|
|
677
765
|
"aria-disabled": item.disabled || false,
|
|
@@ -691,25 +779,25 @@ var Accordion = React8.forwardRef(
|
|
|
691
779
|
Accordion.displayName = "Accordion";
|
|
692
780
|
|
|
693
781
|
// components/elements/accordion/AccordionItem.tsx
|
|
694
|
-
var
|
|
782
|
+
var React12 = __toESM(require("react"));
|
|
695
783
|
var AccordionPrimitive4 = __toESM(require("@radix-ui/react-accordion"));
|
|
696
|
-
var AccordionItem =
|
|
784
|
+
var AccordionItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
|
|
697
785
|
AccordionItem.displayName = "AccordionItem";
|
|
698
786
|
|
|
699
787
|
// components/elements/accordion/AccordionRoot.tsx
|
|
700
788
|
var AccordionPrimitive5 = __toESM(require("@radix-ui/react-accordion"));
|
|
701
789
|
|
|
702
790
|
// components/elements/logos/Logos.tsx
|
|
703
|
-
var
|
|
791
|
+
var import_react7 = __toESM(require("react"));
|
|
704
792
|
|
|
705
793
|
// components/elements/navigationMenu/NavigationMenu.tsx
|
|
706
|
-
var
|
|
794
|
+
var React14 = __toESM(require("react"));
|
|
707
795
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
|
708
796
|
var import_class_variance_authority = require("class-variance-authority");
|
|
709
797
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority.cva)(
|
|
710
798
|
"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 "
|
|
711
799
|
);
|
|
712
|
-
var NavigationMenuRoot =
|
|
800
|
+
var NavigationMenuRoot = React14.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
713
801
|
NavigationMenuPrimitive.Root,
|
|
714
802
|
{
|
|
715
803
|
ref,
|
|
@@ -721,9 +809,9 @@ var NavigationMenuRoot = React11.forwardRef(({ className, children, viewportClas
|
|
|
721
809
|
...props
|
|
722
810
|
},
|
|
723
811
|
children,
|
|
724
|
-
/* @__PURE__ */
|
|
812
|
+
/* @__PURE__ */ React14.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
|
725
813
|
));
|
|
726
|
-
var NavigationMenuList =
|
|
814
|
+
var NavigationMenuList = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
727
815
|
NavigationMenuPrimitive.List,
|
|
728
816
|
{
|
|
729
817
|
ref,
|
|
@@ -734,7 +822,7 @@ var NavigationMenuList = React11.forwardRef(({ className, ...props }, ref) => /*
|
|
|
734
822
|
...props
|
|
735
823
|
}
|
|
736
824
|
));
|
|
737
|
-
var NavigationMenuTrigger =
|
|
825
|
+
var NavigationMenuTrigger = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
738
826
|
NavigationMenuPrimitive.Trigger,
|
|
739
827
|
{
|
|
740
828
|
ref,
|
|
@@ -742,7 +830,7 @@ var NavigationMenuTrigger = React11.forwardRef(({ className, children, ...props
|
|
|
742
830
|
...props
|
|
743
831
|
},
|
|
744
832
|
children,
|
|
745
|
-
/* @__PURE__ */
|
|
833
|
+
/* @__PURE__ */ React14.createElement(
|
|
746
834
|
"svg",
|
|
747
835
|
{
|
|
748
836
|
"aria-label": "Chevron Icon",
|
|
@@ -758,10 +846,10 @@ var NavigationMenuTrigger = React11.forwardRef(({ className, children, ...props
|
|
|
758
846
|
"aria-hidden": "true",
|
|
759
847
|
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
760
848
|
},
|
|
761
|
-
/* @__PURE__ */
|
|
849
|
+
/* @__PURE__ */ React14.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
762
850
|
)
|
|
763
851
|
));
|
|
764
|
-
var NavigationMenuContent =
|
|
852
|
+
var NavigationMenuContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
765
853
|
NavigationMenuPrimitive.Content,
|
|
766
854
|
{
|
|
767
855
|
ref,
|
|
@@ -775,14 +863,14 @@ var NavigationMenuContent = React11.forwardRef(({ className, ...props }, ref) =>
|
|
|
775
863
|
...props
|
|
776
864
|
}
|
|
777
865
|
));
|
|
778
|
-
var NavigationMenuViewport =
|
|
866
|
+
var NavigationMenuViewport = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
779
867
|
"div",
|
|
780
868
|
{
|
|
781
869
|
className: cn(
|
|
782
870
|
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
|
783
871
|
)
|
|
784
872
|
},
|
|
785
|
-
/* @__PURE__ */
|
|
873
|
+
/* @__PURE__ */ React14.createElement(
|
|
786
874
|
NavigationMenuPrimitive.Viewport,
|
|
787
875
|
{
|
|
788
876
|
className: cn(
|
|
@@ -799,7 +887,7 @@ var NavigationMenuViewport = React11.forwardRef(({ className, ...props }, ref) =
|
|
|
799
887
|
}
|
|
800
888
|
)
|
|
801
889
|
));
|
|
802
|
-
var NavigationMenuIndicator =
|
|
890
|
+
var NavigationMenuIndicator = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
803
891
|
NavigationMenuPrimitive.Indicator,
|
|
804
892
|
{
|
|
805
893
|
ref,
|
|
@@ -809,7 +897,7 @@ var NavigationMenuIndicator = React11.forwardRef(({ className, ...props }, ref)
|
|
|
809
897
|
),
|
|
810
898
|
...props
|
|
811
899
|
},
|
|
812
|
-
/* @__PURE__ */
|
|
900
|
+
/* @__PURE__ */ React14.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" })
|
|
813
901
|
));
|
|
814
902
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
815
903
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
@@ -819,11 +907,11 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
|
819
907
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
820
908
|
|
|
821
909
|
// components/elements/sheet/Sheet.tsx
|
|
822
|
-
var
|
|
910
|
+
var React15 = __toESM(require("react"));
|
|
823
911
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
824
912
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
825
913
|
var SheetPortal = SheetPrimitive.Portal;
|
|
826
|
-
var SheetOverlay =
|
|
914
|
+
var SheetOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15.createElement(
|
|
827
915
|
SheetPrimitive.Overlay,
|
|
828
916
|
{
|
|
829
917
|
className: cn(
|
|
@@ -850,8 +938,8 @@ var sheetVariants = (0, import_class_variance_authority2.cva)(
|
|
|
850
938
|
}
|
|
851
939
|
}
|
|
852
940
|
);
|
|
853
|
-
var SheetContent =
|
|
854
|
-
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */
|
|
941
|
+
var SheetContent = React15.forwardRef(
|
|
942
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React15.createElement(SheetPortal, null, /* @__PURE__ */ React15.createElement(SheetOverlay, null), /* @__PURE__ */ React15.createElement(
|
|
855
943
|
SheetPrimitive.Content,
|
|
856
944
|
{
|
|
857
945
|
ref,
|
|
@@ -864,7 +952,7 @@ var SheetContent = React12.forwardRef(
|
|
|
864
952
|
...props
|
|
865
953
|
},
|
|
866
954
|
children,
|
|
867
|
-
!hideCloseButton && /* @__PURE__ */
|
|
955
|
+
!hideCloseButton && /* @__PURE__ */ React15.createElement(
|
|
868
956
|
SheetPrimitive.Close,
|
|
869
957
|
{
|
|
870
958
|
className: cn(
|
|
@@ -876,7 +964,7 @@ var SheetContent = React12.forwardRef(
|
|
|
876
964
|
}
|
|
877
965
|
)
|
|
878
966
|
},
|
|
879
|
-
/* @__PURE__ */
|
|
967
|
+
/* @__PURE__ */ React15.createElement(
|
|
880
968
|
"svg",
|
|
881
969
|
{
|
|
882
970
|
"aria-label": "Close Icon",
|
|
@@ -885,7 +973,7 @@ var SheetContent = React12.forwardRef(
|
|
|
885
973
|
fill: "currentColor",
|
|
886
974
|
viewBox: "0 0 20 20"
|
|
887
975
|
},
|
|
888
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ React15.createElement(
|
|
889
977
|
"path",
|
|
890
978
|
{
|
|
891
979
|
fillRule: "evenodd",
|
|
@@ -894,14 +982,14 @@ var SheetContent = React12.forwardRef(
|
|
|
894
982
|
}
|
|
895
983
|
)
|
|
896
984
|
),
|
|
897
|
-
/* @__PURE__ */
|
|
985
|
+
/* @__PURE__ */ React15.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
898
986
|
)
|
|
899
987
|
))
|
|
900
988
|
);
|
|
901
989
|
var SheetHeader = ({
|
|
902
990
|
className,
|
|
903
991
|
...props
|
|
904
|
-
}) => /* @__PURE__ */
|
|
992
|
+
}) => /* @__PURE__ */ React15.createElement(
|
|
905
993
|
"div",
|
|
906
994
|
{
|
|
907
995
|
className: cn(
|
|
@@ -914,7 +1002,7 @@ var SheetHeader = ({
|
|
|
914
1002
|
var SheetFooter = ({
|
|
915
1003
|
className,
|
|
916
1004
|
...props
|
|
917
|
-
}) => /* @__PURE__ */
|
|
1005
|
+
}) => /* @__PURE__ */ React15.createElement(
|
|
918
1006
|
"div",
|
|
919
1007
|
{
|
|
920
1008
|
className: cn(
|
|
@@ -924,7 +1012,7 @@ var SheetFooter = ({
|
|
|
924
1012
|
...props
|
|
925
1013
|
}
|
|
926
1014
|
);
|
|
927
|
-
var SheetTitle =
|
|
1015
|
+
var SheetTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15.createElement(
|
|
928
1016
|
SheetPrimitive.Title,
|
|
929
1017
|
{
|
|
930
1018
|
ref,
|
|
@@ -935,7 +1023,7 @@ var SheetTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
935
1023
|
...props
|
|
936
1024
|
}
|
|
937
1025
|
));
|
|
938
|
-
var SheetDescription =
|
|
1026
|
+
var SheetDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15.createElement(
|
|
939
1027
|
SheetPrimitive.Description,
|
|
940
1028
|
{
|
|
941
1029
|
ref,
|
|
@@ -951,10 +1039,10 @@ SheetFooter.displayName = "SheetFooter";
|
|
|
951
1039
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
952
1040
|
|
|
953
1041
|
// components/elements/dialog/Dialog.tsx
|
|
954
|
-
var
|
|
1042
|
+
var React16 = __toESM(require("react"));
|
|
955
1043
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
956
|
-
var DialogPortal = ({ ...props }) => /* @__PURE__ */
|
|
957
|
-
var DialogOverlay =
|
|
1044
|
+
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React16.createElement(DialogPrimitive.Portal, { ...props });
|
|
1045
|
+
var DialogOverlay = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
|
|
958
1046
|
DialogPrimitive.Overlay,
|
|
959
1047
|
{
|
|
960
1048
|
ref,
|
|
@@ -965,7 +1053,7 @@ var DialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
965
1053
|
...props
|
|
966
1054
|
}
|
|
967
1055
|
));
|
|
968
|
-
var DialogContent =
|
|
1056
|
+
var DialogContent = React16.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React16.createElement(DialogPortal, null, /* @__PURE__ */ React16.createElement(DialogOverlay, null), /* @__PURE__ */ React16.createElement(
|
|
969
1057
|
DialogPrimitive.Content,
|
|
970
1058
|
{
|
|
971
1059
|
onPointerDownOutside: (e) => {
|
|
@@ -981,7 +1069,7 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
981
1069
|
...props
|
|
982
1070
|
},
|
|
983
1071
|
children,
|
|
984
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1072
|
+
!hideCloseButton && /* @__PURE__ */ React16.createElement(
|
|
985
1073
|
DialogPrimitive.Close,
|
|
986
1074
|
{
|
|
987
1075
|
className: cn(
|
|
@@ -989,7 +1077,7 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
989
1077
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
990
1078
|
)
|
|
991
1079
|
},
|
|
992
|
-
/* @__PURE__ */
|
|
1080
|
+
/* @__PURE__ */ React16.createElement(
|
|
993
1081
|
"svg",
|
|
994
1082
|
{
|
|
995
1083
|
"aria-label": "Close Icon",
|
|
@@ -998,7 +1086,7 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
998
1086
|
fill: "currentColor",
|
|
999
1087
|
viewBox: "0 0 20 20"
|
|
1000
1088
|
},
|
|
1001
|
-
/* @__PURE__ */
|
|
1089
|
+
/* @__PURE__ */ React16.createElement(
|
|
1002
1090
|
"path",
|
|
1003
1091
|
{
|
|
1004
1092
|
fillRule: "evenodd",
|
|
@@ -1007,10 +1095,10 @@ var DialogContent = React13.forwardRef(({ className, children, persist, hideClos
|
|
|
1007
1095
|
}
|
|
1008
1096
|
)
|
|
1009
1097
|
),
|
|
1010
|
-
/* @__PURE__ */
|
|
1098
|
+
/* @__PURE__ */ React16.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1011
1099
|
)
|
|
1012
1100
|
)));
|
|
1013
|
-
var DialogCarouselContent =
|
|
1101
|
+
var DialogCarouselContent = React16.forwardRef(
|
|
1014
1102
|
({
|
|
1015
1103
|
className,
|
|
1016
1104
|
children,
|
|
@@ -1019,7 +1107,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1019
1107
|
hideCloseButton,
|
|
1020
1108
|
hidePrevButton,
|
|
1021
1109
|
...props
|
|
1022
|
-
}, ref) => /* @__PURE__ */
|
|
1110
|
+
}, ref) => /* @__PURE__ */ React16.createElement(DialogPortal, null, /* @__PURE__ */ React16.createElement(DialogOverlay, null), /* @__PURE__ */ React16.createElement(
|
|
1023
1111
|
DialogPrimitive.Content,
|
|
1024
1112
|
{
|
|
1025
1113
|
onPointerDownOutside: (e) => {
|
|
@@ -1035,7 +1123,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1035
1123
|
...props
|
|
1036
1124
|
},
|
|
1037
1125
|
children,
|
|
1038
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ React16.createElement(
|
|
1039
1127
|
"div",
|
|
1040
1128
|
{
|
|
1041
1129
|
className: cn(
|
|
@@ -1043,7 +1131,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1043
1131
|
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
|
1044
1132
|
)
|
|
1045
1133
|
},
|
|
1046
|
-
hidePrevButton ? /* @__PURE__ */
|
|
1134
|
+
hidePrevButton ? /* @__PURE__ */ React16.createElement("div", null) : /* @__PURE__ */ React16.createElement(
|
|
1047
1135
|
"div",
|
|
1048
1136
|
{
|
|
1049
1137
|
onClick: onPrev,
|
|
@@ -1052,7 +1140,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1052
1140
|
props.dir === "rtl" && "hawa-rotate-180"
|
|
1053
1141
|
)
|
|
1054
1142
|
},
|
|
1055
|
-
/* @__PURE__ */
|
|
1143
|
+
/* @__PURE__ */ React16.createElement(
|
|
1056
1144
|
"svg",
|
|
1057
1145
|
{
|
|
1058
1146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1066,10 +1154,10 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1066
1154
|
strokeLinecap: "round",
|
|
1067
1155
|
strokeLinejoin: "round"
|
|
1068
1156
|
},
|
|
1069
|
-
/* @__PURE__ */
|
|
1157
|
+
/* @__PURE__ */ React16.createElement("path", { d: "m15 18-6-6 6-6" })
|
|
1070
1158
|
)
|
|
1071
1159
|
),
|
|
1072
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1160
|
+
!hideCloseButton && /* @__PURE__ */ React16.createElement(
|
|
1073
1161
|
DialogPrimitive.Close,
|
|
1074
1162
|
{
|
|
1075
1163
|
className: cn(
|
|
@@ -1077,7 +1165,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1077
1165
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
1078
1166
|
)
|
|
1079
1167
|
},
|
|
1080
|
-
/* @__PURE__ */
|
|
1168
|
+
/* @__PURE__ */ React16.createElement(
|
|
1081
1169
|
"svg",
|
|
1082
1170
|
{
|
|
1083
1171
|
"aria-label": "Close Icon",
|
|
@@ -1086,7 +1174,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1086
1174
|
fill: "currentColor",
|
|
1087
1175
|
viewBox: "0 0 20 20"
|
|
1088
1176
|
},
|
|
1089
|
-
/* @__PURE__ */
|
|
1177
|
+
/* @__PURE__ */ React16.createElement(
|
|
1090
1178
|
"path",
|
|
1091
1179
|
{
|
|
1092
1180
|
fillRule: "evenodd",
|
|
@@ -1095,7 +1183,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1095
1183
|
}
|
|
1096
1184
|
)
|
|
1097
1185
|
),
|
|
1098
|
-
/* @__PURE__ */
|
|
1186
|
+
/* @__PURE__ */ React16.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1099
1187
|
)
|
|
1100
1188
|
)
|
|
1101
1189
|
))
|
|
@@ -1103,7 +1191,7 @@ var DialogCarouselContent = React13.forwardRef(
|
|
|
1103
1191
|
var DialogHeader = ({
|
|
1104
1192
|
className,
|
|
1105
1193
|
...props
|
|
1106
|
-
}) => /* @__PURE__ */
|
|
1194
|
+
}) => /* @__PURE__ */ React16.createElement(
|
|
1107
1195
|
"div",
|
|
1108
1196
|
{
|
|
1109
1197
|
className: cn(
|
|
@@ -1113,7 +1201,7 @@ var DialogHeader = ({
|
|
|
1113
1201
|
...props
|
|
1114
1202
|
}
|
|
1115
1203
|
);
|
|
1116
|
-
var DialogTitle =
|
|
1204
|
+
var DialogTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
|
|
1117
1205
|
DialogPrimitive.Title,
|
|
1118
1206
|
{
|
|
1119
1207
|
ref,
|
|
@@ -1124,7 +1212,7 @@ var DialogTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1124
1212
|
...props
|
|
1125
1213
|
}
|
|
1126
1214
|
));
|
|
1127
|
-
var DialogDescription =
|
|
1215
|
+
var DialogDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
|
|
1128
1216
|
DialogPrimitive.Description,
|
|
1129
1217
|
{
|
|
1130
1218
|
ref,
|
|
@@ -1138,7 +1226,7 @@ var DialogDescription = React13.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1138
1226
|
var DialogFooter = ({
|
|
1139
1227
|
className,
|
|
1140
1228
|
...props
|
|
1141
|
-
}) => /* @__PURE__ */
|
|
1229
|
+
}) => /* @__PURE__ */ React16.createElement(
|
|
1142
1230
|
"div",
|
|
1143
1231
|
{
|
|
1144
1232
|
className: cn(
|
|
@@ -1154,12 +1242,12 @@ var DialogCarousel = ({
|
|
|
1154
1242
|
children,
|
|
1155
1243
|
direction
|
|
1156
1244
|
}) => {
|
|
1157
|
-
|
|
1245
|
+
React16.useEffect(() => {
|
|
1158
1246
|
if (stepsApi) {
|
|
1159
1247
|
stepsApi.reInit();
|
|
1160
1248
|
}
|
|
1161
1249
|
}, [stepsApi, children]);
|
|
1162
|
-
return /* @__PURE__ */
|
|
1250
|
+
return /* @__PURE__ */ React16.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React16.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React16.createElement(
|
|
1163
1251
|
"div",
|
|
1164
1252
|
{
|
|
1165
1253
|
className: "hawa-flex",
|
|
@@ -1167,7 +1255,7 @@ var DialogCarousel = ({
|
|
|
1167
1255
|
transition: "height 0.2s"
|
|
1168
1256
|
}
|
|
1169
1257
|
},
|
|
1170
|
-
|
|
1258
|
+
React16.Children.map(children, (child, index) => /* @__PURE__ */ React16.createElement(
|
|
1171
1259
|
"div",
|
|
1172
1260
|
{
|
|
1173
1261
|
className: cn(
|
|
@@ -1184,14 +1272,14 @@ var DialogSteps = ({
|
|
|
1184
1272
|
visibleStepRef,
|
|
1185
1273
|
children
|
|
1186
1274
|
}) => {
|
|
1187
|
-
const [dialogHeight, setDialogHeight] =
|
|
1188
|
-
|
|
1275
|
+
const [dialogHeight, setDialogHeight] = React16.useState(null);
|
|
1276
|
+
React16.useEffect(() => {
|
|
1189
1277
|
if (visibleStepRef.current) {
|
|
1190
1278
|
setDialogHeight(visibleStepRef.current.offsetHeight);
|
|
1191
1279
|
console.log("height is ", visibleStepRef.current.offsetHeight);
|
|
1192
1280
|
}
|
|
1193
1281
|
}, [currentStep, visibleStepRef]);
|
|
1194
|
-
return /* @__PURE__ */
|
|
1282
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1195
1283
|
"div",
|
|
1196
1284
|
{
|
|
1197
1285
|
className: "hawa-relative hawa-overflow-clip",
|
|
@@ -1200,7 +1288,7 @@ var DialogSteps = ({
|
|
|
1200
1288
|
transition: "height 0.2s"
|
|
1201
1289
|
}
|
|
1202
1290
|
},
|
|
1203
|
-
|
|
1291
|
+
React16.Children.map(children, (child, index) => /* @__PURE__ */ React16.createElement(
|
|
1204
1292
|
"div",
|
|
1205
1293
|
{
|
|
1206
1294
|
ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
|
|
@@ -1218,7 +1306,7 @@ var DialogStep = ({
|
|
|
1218
1306
|
className,
|
|
1219
1307
|
stepRef
|
|
1220
1308
|
}) => {
|
|
1221
|
-
return /* @__PURE__ */
|
|
1309
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1222
1310
|
"div",
|
|
1223
1311
|
{
|
|
1224
1312
|
id,
|
|
@@ -1229,7 +1317,7 @@ var DialogStep = ({
|
|
|
1229
1317
|
);
|
|
1230
1318
|
};
|
|
1231
1319
|
var DialogBody = ({ children, className }) => {
|
|
1232
|
-
return /* @__PURE__ */
|
|
1320
|
+
return /* @__PURE__ */ React16.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
|
1233
1321
|
};
|
|
1234
1322
|
DialogBody.displayName = "DialogBody";
|
|
1235
1323
|
DialogStep.displayName = "DialogStep";
|
|
@@ -1245,10 +1333,10 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
1245
1333
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1246
1334
|
|
|
1247
1335
|
// components/elements/alert/Alert.tsx
|
|
1248
|
-
var
|
|
1336
|
+
var import_react8 = __toESM(require("react"));
|
|
1249
1337
|
|
|
1250
1338
|
// components/elements/button/Button.tsx
|
|
1251
|
-
var
|
|
1339
|
+
var React17 = __toESM(require("react"));
|
|
1252
1340
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
1253
1341
|
var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
1254
1342
|
"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",
|
|
@@ -1283,7 +1371,7 @@ var buttonVariants = (0, import_class_variance_authority3.cva)(
|
|
|
1283
1371
|
}
|
|
1284
1372
|
}
|
|
1285
1373
|
);
|
|
1286
|
-
var Button =
|
|
1374
|
+
var Button = React17.forwardRef(
|
|
1287
1375
|
({
|
|
1288
1376
|
className,
|
|
1289
1377
|
variant,
|
|
@@ -1296,7 +1384,7 @@ var Button = React14.forwardRef(
|
|
|
1296
1384
|
}, ref) => {
|
|
1297
1385
|
const Comp = "button";
|
|
1298
1386
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
|
1299
|
-
return /* @__PURE__ */
|
|
1387
|
+
return /* @__PURE__ */ React17.createElement(
|
|
1300
1388
|
Comp,
|
|
1301
1389
|
{
|
|
1302
1390
|
className: cn(
|
|
@@ -1306,7 +1394,7 @@ var Button = React14.forwardRef(
|
|
|
1306
1394
|
ref,
|
|
1307
1395
|
...props
|
|
1308
1396
|
},
|
|
1309
|
-
isLoading ? /* @__PURE__ */
|
|
1397
|
+
isLoading ? /* @__PURE__ */ React17.createElement(
|
|
1310
1398
|
Loading,
|
|
1311
1399
|
{
|
|
1312
1400
|
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
|
@@ -1321,21 +1409,21 @@ var Button = React14.forwardRef(
|
|
|
1321
1409
|
Button.displayName = "Button";
|
|
1322
1410
|
|
|
1323
1411
|
// components/elements/avatar/Avatar.tsx
|
|
1324
|
-
var
|
|
1412
|
+
var import_react10 = __toESM(require("react"));
|
|
1325
1413
|
|
|
1326
1414
|
// components/elements/FileUploader.tsx
|
|
1327
|
-
var
|
|
1415
|
+
var import_react9 = __toESM(require("react"));
|
|
1328
1416
|
|
|
1329
1417
|
// components/elements/dataTable/DataTable.tsx
|
|
1330
|
-
var
|
|
1418
|
+
var React24 = __toESM(require("react"));
|
|
1331
1419
|
var import_react_table = require("@tanstack/react-table");
|
|
1332
1420
|
|
|
1333
1421
|
// components/elements/input/Input.tsx
|
|
1334
|
-
var
|
|
1422
|
+
var import_react11 = __toESM(require("react"));
|
|
1335
1423
|
|
|
1336
1424
|
// components/elements/label/Label.tsx
|
|
1337
|
-
var
|
|
1338
|
-
var Label2 =
|
|
1425
|
+
var React21 = __toESM(require("react"));
|
|
1426
|
+
var Label2 = React21.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React21.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React21.createElement(
|
|
1339
1427
|
"label",
|
|
1340
1428
|
{
|
|
1341
1429
|
ref,
|
|
@@ -1346,8 +1434,8 @@ var Label2 = React18.forwardRef(({ className, hint, hintSide, required, children
|
|
|
1346
1434
|
...props
|
|
1347
1435
|
},
|
|
1348
1436
|
children,
|
|
1349
|
-
required && /* @__PURE__ */
|
|
1350
|
-
), hint && /* @__PURE__ */
|
|
1437
|
+
required && /* @__PURE__ */ React21.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
|
1438
|
+
), hint && /* @__PURE__ */ React21.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React21.createElement(
|
|
1351
1439
|
"svg",
|
|
1352
1440
|
{
|
|
1353
1441
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1359,14 +1447,14 @@ var Label2 = React18.forwardRef(({ className, hint, hintSide, required, children
|
|
|
1359
1447
|
strokeLinecap: "round",
|
|
1360
1448
|
strokeLinejoin: "round"
|
|
1361
1449
|
},
|
|
1362
|
-
/* @__PURE__ */
|
|
1363
|
-
/* @__PURE__ */
|
|
1364
|
-
/* @__PURE__ */
|
|
1450
|
+
/* @__PURE__ */ React21.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1451
|
+
/* @__PURE__ */ React21.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
1452
|
+
/* @__PURE__ */ React21.createElement("path", { d: "M12 17h.01" })
|
|
1365
1453
|
))));
|
|
1366
1454
|
Label2.displayName = "Label";
|
|
1367
1455
|
|
|
1368
1456
|
// components/elements/input/Input.tsx
|
|
1369
|
-
var Input = (0,
|
|
1457
|
+
var Input = (0, import_react11.forwardRef)(
|
|
1370
1458
|
({
|
|
1371
1459
|
margin = "none",
|
|
1372
1460
|
width = "full",
|
|
@@ -1393,7 +1481,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1393
1481
|
};
|
|
1394
1482
|
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
|
1395
1483
|
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
|
1396
|
-
return /* @__PURE__ */
|
|
1484
|
+
return /* @__PURE__ */ import_react11.default.createElement(
|
|
1397
1485
|
"div",
|
|
1398
1486
|
{
|
|
1399
1487
|
className: cn(
|
|
@@ -1404,8 +1492,8 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1404
1492
|
"hawa-w-full hawa-gap-2"
|
|
1405
1493
|
)
|
|
1406
1494
|
},
|
|
1407
|
-
props.label && /* @__PURE__ */
|
|
1408
|
-
props.isLoading ? /* @__PURE__ */
|
|
1495
|
+
props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label),
|
|
1496
|
+
props.isLoading ? /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react11.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react11.default.createElement(
|
|
1409
1497
|
"div",
|
|
1410
1498
|
{
|
|
1411
1499
|
className: cn(
|
|
@@ -1413,7 +1501,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1413
1501
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
1414
1502
|
)
|
|
1415
1503
|
}
|
|
1416
|
-
), /* @__PURE__ */
|
|
1504
|
+
), /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react11.default.createElement(
|
|
1417
1505
|
"div",
|
|
1418
1506
|
{
|
|
1419
1507
|
className: cn(
|
|
@@ -1422,7 +1510,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1422
1510
|
)
|
|
1423
1511
|
},
|
|
1424
1512
|
props.endIcon
|
|
1425
|
-
), /* @__PURE__ */
|
|
1513
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
1426
1514
|
"input",
|
|
1427
1515
|
{
|
|
1428
1516
|
required: true,
|
|
@@ -1448,7 +1536,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1448
1536
|
inputProps == null ? void 0 : inputProps.className
|
|
1449
1537
|
)
|
|
1450
1538
|
}
|
|
1451
|
-
)), !forceHideHelperText && /* @__PURE__ */
|
|
1539
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
|
1452
1540
|
"p",
|
|
1453
1541
|
{
|
|
1454
1542
|
className: cn(
|
|
@@ -1457,7 +1545,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1457
1545
|
)
|
|
1458
1546
|
},
|
|
1459
1547
|
props.helperText
|
|
1460
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */
|
|
1548
|
+
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
|
1461
1549
|
"div",
|
|
1462
1550
|
{
|
|
1463
1551
|
className: cn(
|
|
@@ -1466,7 +1554,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1466
1554
|
)
|
|
1467
1555
|
},
|
|
1468
1556
|
props.helperText
|
|
1469
|
-
), showCount && /* @__PURE__ */
|
|
1557
|
+
), showCount && /* @__PURE__ */ import_react11.default.createElement(
|
|
1470
1558
|
"div",
|
|
1471
1559
|
{
|
|
1472
1560
|
className: cn(
|
|
@@ -1487,8 +1575,8 @@ var Input = (0, import_react8.forwardRef)(
|
|
|
1487
1575
|
);
|
|
1488
1576
|
|
|
1489
1577
|
// components/elements/table/Table.tsx
|
|
1490
|
-
var
|
|
1491
|
-
var Table =
|
|
1578
|
+
var React23 = __toESM(require("react"));
|
|
1579
|
+
var Table = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React23.createElement(
|
|
1492
1580
|
"table",
|
|
1493
1581
|
{
|
|
1494
1582
|
ref,
|
|
@@ -1497,7 +1585,7 @@ var Table = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1497
1585
|
}
|
|
1498
1586
|
)));
|
|
1499
1587
|
Table.displayName = "Table";
|
|
1500
|
-
var TableHeader =
|
|
1588
|
+
var TableHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
|
1501
1589
|
"thead",
|
|
1502
1590
|
{
|
|
1503
1591
|
ref,
|
|
@@ -1506,8 +1594,8 @@ var TableHeader = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1506
1594
|
}
|
|
1507
1595
|
));
|
|
1508
1596
|
TableHeader.displayName = "TableHeader";
|
|
1509
|
-
var TableHead =
|
|
1510
|
-
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */
|
|
1597
|
+
var TableHead = React23.forwardRef(
|
|
1598
|
+
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
|
1511
1599
|
"th",
|
|
1512
1600
|
{
|
|
1513
1601
|
ref,
|
|
@@ -1526,9 +1614,9 @@ var TableHead = React20.forwardRef(
|
|
|
1526
1614
|
)
|
|
1527
1615
|
);
|
|
1528
1616
|
TableHead.displayName = "TableHead";
|
|
1529
|
-
var TableBody =
|
|
1617
|
+
var TableBody = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
|
|
1530
1618
|
TableBody.displayName = "TableBody";
|
|
1531
|
-
var TableFooter =
|
|
1619
|
+
var TableFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
|
1532
1620
|
"tfoot",
|
|
1533
1621
|
{
|
|
1534
1622
|
ref,
|
|
@@ -1540,7 +1628,7 @@ var TableFooter = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1540
1628
|
}
|
|
1541
1629
|
));
|
|
1542
1630
|
TableFooter.displayName = "TableFooter";
|
|
1543
|
-
var TableRow =
|
|
1631
|
+
var TableRow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
|
1544
1632
|
"tr",
|
|
1545
1633
|
{
|
|
1546
1634
|
ref,
|
|
@@ -1554,14 +1642,14 @@ var TableRow = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1554
1642
|
}
|
|
1555
1643
|
));
|
|
1556
1644
|
TableRow.displayName = "TableRow";
|
|
1557
|
-
var TableCell =
|
|
1645
|
+
var TableCell = React23.forwardRef(
|
|
1558
1646
|
({ className, enablePadding = true, padding = "default", ...props }, ref) => {
|
|
1559
1647
|
let paddingStyles = {
|
|
1560
1648
|
condensed: "hawa-p-0 hawa-px-4",
|
|
1561
1649
|
default: "hawa-p-4",
|
|
1562
1650
|
noPadding: "hawa-p-0"
|
|
1563
1651
|
};
|
|
1564
|
-
return /* @__PURE__ */
|
|
1652
|
+
return /* @__PURE__ */ React23.createElement(
|
|
1565
1653
|
"td",
|
|
1566
1654
|
{
|
|
1567
1655
|
ref,
|
|
@@ -1583,7 +1671,7 @@ var TableCell = React20.forwardRef(
|
|
|
1583
1671
|
}
|
|
1584
1672
|
);
|
|
1585
1673
|
TableCell.displayName = "TableCell";
|
|
1586
|
-
var TableCaption =
|
|
1674
|
+
var TableCaption = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
|
1587
1675
|
"caption",
|
|
1588
1676
|
{
|
|
1589
1677
|
ref,
|
|
@@ -1597,10 +1685,10 @@ var TableCaption = React20.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1597
1685
|
TableCaption.displayName = "TableCaption";
|
|
1598
1686
|
|
|
1599
1687
|
// components/elements/backToTop/BackToTop.tsx
|
|
1600
|
-
var
|
|
1688
|
+
var import_react12 = __toESM(require("react"));
|
|
1601
1689
|
|
|
1602
1690
|
// components/elements/radio/Radio.tsx
|
|
1603
|
-
var
|
|
1691
|
+
var import_react13 = __toESM(require("react"));
|
|
1604
1692
|
var Radio = ({
|
|
1605
1693
|
design = "default",
|
|
1606
1694
|
width = "default",
|
|
@@ -1611,7 +1699,7 @@ var Radio = ({
|
|
|
1611
1699
|
...props
|
|
1612
1700
|
}) => {
|
|
1613
1701
|
var _a, _b, _c;
|
|
1614
|
-
const [selectedOption, setSelectedOption] = (0,
|
|
1702
|
+
const [selectedOption, setSelectedOption] = (0, import_react13.useState)(props.defaultValue);
|
|
1615
1703
|
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
|
1616
1704
|
let inactiveTabStyle = "hawa-inline-block hawa-w-full hawa-transition-all hover:hawa-bg-muted hawa-bg-primary-foreground dark:hover:hawa-text-white";
|
|
1617
1705
|
let orientationStyle = {
|
|
@@ -1629,11 +1717,11 @@ var Radio = ({
|
|
|
1629
1717
|
default: "hawa-max-w-fit",
|
|
1630
1718
|
full: "hawa-w-full"
|
|
1631
1719
|
};
|
|
1632
|
-
const [parentDirection, setParentDirection] =
|
|
1720
|
+
const [parentDirection, setParentDirection] = import_react13.default.useState(
|
|
1633
1721
|
null
|
|
1634
1722
|
);
|
|
1635
|
-
const parentRef = (0,
|
|
1636
|
-
(0,
|
|
1723
|
+
const parentRef = (0, import_react13.useRef)(null);
|
|
1724
|
+
(0, import_react13.useEffect)(() => {
|
|
1637
1725
|
var _a2;
|
|
1638
1726
|
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
|
1639
1727
|
if (parentNode) {
|
|
@@ -1643,7 +1731,7 @@ var Radio = ({
|
|
|
1643
1731
|
});
|
|
1644
1732
|
switch (design) {
|
|
1645
1733
|
case "tabs":
|
|
1646
|
-
return /* @__PURE__ */
|
|
1734
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
|
1647
1735
|
"ul",
|
|
1648
1736
|
{
|
|
1649
1737
|
ref: parentRef,
|
|
@@ -1655,7 +1743,7 @@ var Radio = ({
|
|
|
1655
1743
|
tabsContainerClassName
|
|
1656
1744
|
)
|
|
1657
1745
|
},
|
|
1658
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */
|
|
1746
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react13.default.createElement(
|
|
1659
1747
|
"li",
|
|
1660
1748
|
{
|
|
1661
1749
|
"aria-current": "page",
|
|
@@ -1683,13 +1771,13 @@ var Radio = ({
|
|
|
1683
1771
|
))
|
|
1684
1772
|
);
|
|
1685
1773
|
case "bordered":
|
|
1686
|
-
return /* @__PURE__ */
|
|
1774
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement(
|
|
1687
1775
|
"div",
|
|
1688
1776
|
{
|
|
1689
1777
|
key: i,
|
|
1690
1778
|
className: "hawa-rounded hawa-border hawa-border-gray-200 "
|
|
1691
1779
|
},
|
|
1692
|
-
/* @__PURE__ */
|
|
1780
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
|
1693
1781
|
"div",
|
|
1694
1782
|
{
|
|
1695
1783
|
className: cn(
|
|
@@ -1698,7 +1786,7 @@ var Radio = ({
|
|
|
1698
1786
|
),
|
|
1699
1787
|
key: i + 1
|
|
1700
1788
|
},
|
|
1701
|
-
/* @__PURE__ */
|
|
1789
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
|
1702
1790
|
"input",
|
|
1703
1791
|
{
|
|
1704
1792
|
disabled: opt.disabled,
|
|
@@ -1708,7 +1796,7 @@ var Radio = ({
|
|
|
1708
1796
|
name: "bordered-radio"
|
|
1709
1797
|
}
|
|
1710
1798
|
),
|
|
1711
|
-
/* @__PURE__ */
|
|
1799
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
|
1712
1800
|
"label",
|
|
1713
1801
|
{
|
|
1714
1802
|
htmlFor: opt.value.toString(),
|
|
@@ -1722,7 +1810,7 @@ var Radio = ({
|
|
|
1722
1810
|
)
|
|
1723
1811
|
)));
|
|
1724
1812
|
case "cards":
|
|
1725
|
-
return /* @__PURE__ */
|
|
1813
|
+
return /* @__PURE__ */ import_react13.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react13.default.createElement("li", { key: o }, /* @__PURE__ */ import_react13.default.createElement(
|
|
1726
1814
|
"input",
|
|
1727
1815
|
{
|
|
1728
1816
|
type: "radio",
|
|
@@ -1733,7 +1821,7 @@ var Radio = ({
|
|
|
1733
1821
|
required: true,
|
|
1734
1822
|
disabled: opt.disabled
|
|
1735
1823
|
}
|
|
1736
|
-
), /* @__PURE__ */
|
|
1824
|
+
), /* @__PURE__ */ import_react13.default.createElement(
|
|
1737
1825
|
"label",
|
|
1738
1826
|
{
|
|
1739
1827
|
htmlFor: opt.value.toString(),
|
|
@@ -1742,10 +1830,10 @@ var Radio = ({
|
|
|
1742
1830
|
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
|
|
1743
1831
|
)
|
|
1744
1832
|
},
|
|
1745
|
-
/* @__PURE__ */
|
|
1833
|
+
/* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
|
1746
1834
|
))));
|
|
1747
1835
|
default:
|
|
1748
|
-
return /* @__PURE__ */
|
|
1836
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react13.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react13.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement(
|
|
1749
1837
|
"div",
|
|
1750
1838
|
{
|
|
1751
1839
|
className: cn(
|
|
@@ -1754,7 +1842,7 @@ var Radio = ({
|
|
|
1754
1842
|
),
|
|
1755
1843
|
key: i + 1
|
|
1756
1844
|
},
|
|
1757
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
|
1758
1846
|
"input",
|
|
1759
1847
|
{
|
|
1760
1848
|
disabled: opt.disabled,
|
|
@@ -1772,7 +1860,7 @@ var Radio = ({
|
|
|
1772
1860
|
}
|
|
1773
1861
|
}
|
|
1774
1862
|
),
|
|
1775
|
-
/* @__PURE__ */
|
|
1863
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
|
1776
1864
|
"label",
|
|
1777
1865
|
{
|
|
1778
1866
|
htmlFor: opt.value.toString(),
|
|
@@ -1783,7 +1871,7 @@ var Radio = ({
|
|
|
1783
1871
|
},
|
|
1784
1872
|
opt.label
|
|
1785
1873
|
)
|
|
1786
|
-
))), /* @__PURE__ */
|
|
1874
|
+
))), /* @__PURE__ */ import_react13.default.createElement(
|
|
1787
1875
|
"p",
|
|
1788
1876
|
{
|
|
1789
1877
|
className: cn(
|
|
@@ -1797,13 +1885,13 @@ var Radio = ({
|
|
|
1797
1885
|
};
|
|
1798
1886
|
|
|
1799
1887
|
// components/elements/combobox/Combobox.tsx
|
|
1800
|
-
var
|
|
1888
|
+
var React29 = __toESM(require("react"));
|
|
1801
1889
|
var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
|
|
1802
1890
|
|
|
1803
1891
|
// components/elements/command/Command.tsx
|
|
1804
|
-
var
|
|
1892
|
+
var React27 = __toESM(require("react"));
|
|
1805
1893
|
var import_cmdk = require("cmdk");
|
|
1806
|
-
var Command =
|
|
1894
|
+
var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
|
1807
1895
|
import_cmdk.Command,
|
|
1808
1896
|
{
|
|
1809
1897
|
ref,
|
|
@@ -1815,13 +1903,13 @@ var Command = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1815
1903
|
}
|
|
1816
1904
|
));
|
|
1817
1905
|
Command.displayName = import_cmdk.Command.displayName;
|
|
1818
|
-
var CommandInput =
|
|
1906
|
+
var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
|
1819
1907
|
"div",
|
|
1820
1908
|
{
|
|
1821
1909
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
|
1822
1910
|
"cmdk-input-wrapper": ""
|
|
1823
1911
|
},
|
|
1824
|
-
/* @__PURE__ */
|
|
1912
|
+
/* @__PURE__ */ React27.createElement(
|
|
1825
1913
|
"svg",
|
|
1826
1914
|
{
|
|
1827
1915
|
"aria-label": "Search Icon",
|
|
@@ -1836,10 +1924,10 @@ var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1836
1924
|
strokeLinejoin: "round",
|
|
1837
1925
|
className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
|
|
1838
1926
|
},
|
|
1839
|
-
/* @__PURE__ */
|
|
1840
|
-
/* @__PURE__ */
|
|
1927
|
+
/* @__PURE__ */ React27.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
|
1928
|
+
/* @__PURE__ */ React27.createElement("path", { d: "m21 21-4.3-4.3" })
|
|
1841
1929
|
),
|
|
1842
|
-
/* @__PURE__ */
|
|
1930
|
+
/* @__PURE__ */ React27.createElement(
|
|
1843
1931
|
import_cmdk.Command.Input,
|
|
1844
1932
|
{
|
|
1845
1933
|
ref,
|
|
@@ -1852,7 +1940,7 @@ var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1852
1940
|
)
|
|
1853
1941
|
));
|
|
1854
1942
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
1855
|
-
var CommandList =
|
|
1943
|
+
var CommandList = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
|
1856
1944
|
import_cmdk.Command.List,
|
|
1857
1945
|
{
|
|
1858
1946
|
ref,
|
|
@@ -1864,7 +1952,7 @@ var CommandList = React24.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1864
1952
|
}
|
|
1865
1953
|
));
|
|
1866
1954
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
1867
|
-
var CommandEmpty =
|
|
1955
|
+
var CommandEmpty = React27.forwardRef((props, ref) => /* @__PURE__ */ React27.createElement(
|
|
1868
1956
|
import_cmdk.Command.Empty,
|
|
1869
1957
|
{
|
|
1870
1958
|
ref,
|
|
@@ -1873,7 +1961,7 @@ var CommandEmpty = React24.forwardRef((props, ref) => /* @__PURE__ */ React24.cr
|
|
|
1873
1961
|
}
|
|
1874
1962
|
));
|
|
1875
1963
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
1876
|
-
var CommandGroup =
|
|
1964
|
+
var CommandGroup = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
|
1877
1965
|
import_cmdk.Command.Group,
|
|
1878
1966
|
{
|
|
1879
1967
|
ref,
|
|
@@ -1885,7 +1973,7 @@ var CommandGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1885
1973
|
}
|
|
1886
1974
|
));
|
|
1887
1975
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
1888
|
-
var CommandSeparator =
|
|
1976
|
+
var CommandSeparator = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
|
1889
1977
|
import_cmdk.Command.Separator,
|
|
1890
1978
|
{
|
|
1891
1979
|
ref,
|
|
@@ -1894,7 +1982,7 @@ var CommandSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1894
1982
|
}
|
|
1895
1983
|
));
|
|
1896
1984
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
1897
|
-
var CommandItem =
|
|
1985
|
+
var CommandItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
|
1898
1986
|
import_cmdk.Command.Item,
|
|
1899
1987
|
{
|
|
1900
1988
|
ref,
|
|
@@ -1910,7 +1998,7 @@ var CommandShortcut = ({
|
|
|
1910
1998
|
className,
|
|
1911
1999
|
...props
|
|
1912
2000
|
}) => {
|
|
1913
|
-
return /* @__PURE__ */
|
|
2001
|
+
return /* @__PURE__ */ React27.createElement(
|
|
1914
2002
|
"span",
|
|
1915
2003
|
{
|
|
1916
2004
|
className: cn(
|
|
@@ -1924,9 +2012,9 @@ var CommandShortcut = ({
|
|
|
1924
2012
|
CommandShortcut.displayName = "CommandShortcut";
|
|
1925
2013
|
|
|
1926
2014
|
// components/elements/popover/Popover.tsx
|
|
1927
|
-
var
|
|
2015
|
+
var React28 = __toESM(require("react"));
|
|
1928
2016
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
1929
|
-
var PopoverContent =
|
|
2017
|
+
var PopoverContent = React28.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React28.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React28.createElement(
|
|
1930
2018
|
PopoverPrimitive.Content,
|
|
1931
2019
|
{
|
|
1932
2020
|
ref,
|
|
@@ -1943,7 +2031,7 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
|
1943
2031
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1944
2032
|
|
|
1945
2033
|
// components/elements/combobox/Combobox.tsx
|
|
1946
|
-
var Combobox =
|
|
2034
|
+
var Combobox = React29.forwardRef(
|
|
1947
2035
|
({
|
|
1948
2036
|
labelKey = "label",
|
|
1949
2037
|
valueKey = "value",
|
|
@@ -1954,8 +2042,8 @@ var Combobox = React26.forwardRef(
|
|
|
1954
2042
|
...props
|
|
1955
2043
|
}, ref) => {
|
|
1956
2044
|
var _a, _b, _c;
|
|
1957
|
-
const [open, setOpen] =
|
|
1958
|
-
const [value, setValue] =
|
|
2045
|
+
const [open, setOpen] = React29.useState(false);
|
|
2046
|
+
const [value, setValue] = React29.useState(defaultValue);
|
|
1959
2047
|
function getProperty(obj, key) {
|
|
1960
2048
|
return obj[key];
|
|
1961
2049
|
}
|
|
@@ -1964,7 +2052,7 @@ var Combobox = React26.forwardRef(
|
|
|
1964
2052
|
setOpen(open2);
|
|
1965
2053
|
}
|
|
1966
2054
|
};
|
|
1967
|
-
return /* @__PURE__ */
|
|
2055
|
+
return /* @__PURE__ */ React29.createElement(
|
|
1968
2056
|
"div",
|
|
1969
2057
|
{
|
|
1970
2058
|
className: cn(
|
|
@@ -1972,8 +2060,8 @@ var Combobox = React26.forwardRef(
|
|
|
1972
2060
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
|
1973
2061
|
)
|
|
1974
2062
|
},
|
|
1975
|
-
props.label && /* @__PURE__ */
|
|
1976
|
-
/* @__PURE__ */
|
|
2063
|
+
props.label && /* @__PURE__ */ React29.createElement(Label2, { ...labelProps }, props.label),
|
|
2064
|
+
/* @__PURE__ */ React29.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React29.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React29.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React29.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React29.createElement(
|
|
1977
2065
|
"div",
|
|
1978
2066
|
{
|
|
1979
2067
|
className: cn(
|
|
@@ -1981,7 +2069,7 @@ var Combobox = React26.forwardRef(
|
|
|
1981
2069
|
props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
1982
2070
|
)
|
|
1983
2071
|
}
|
|
1984
|
-
), /* @__PURE__ */
|
|
2072
|
+
), /* @__PURE__ */ React29.createElement(
|
|
1985
2073
|
"button",
|
|
1986
2074
|
{
|
|
1987
2075
|
role: "combobox",
|
|
@@ -1995,7 +2083,7 @@ var Combobox = React26.forwardRef(
|
|
|
1995
2083
|
data.find((item) => item[valueKey] === value) || {},
|
|
1996
2084
|
labelKey
|
|
1997
2085
|
) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
|
|
1998
|
-
/* @__PURE__ */
|
|
2086
|
+
/* @__PURE__ */ React29.createElement(
|
|
1999
2087
|
"svg",
|
|
2000
2088
|
{
|
|
2001
2089
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2011,9 +2099,9 @@ var Combobox = React26.forwardRef(
|
|
|
2011
2099
|
strokeLinecap: "round",
|
|
2012
2100
|
strokeLinejoin: "round"
|
|
2013
2101
|
},
|
|
2014
|
-
/* @__PURE__ */
|
|
2102
|
+
/* @__PURE__ */ React29.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
2015
2103
|
)
|
|
2016
|
-
), /* @__PURE__ */
|
|
2104
|
+
), /* @__PURE__ */ React29.createElement(
|
|
2017
2105
|
"p",
|
|
2018
2106
|
{
|
|
2019
2107
|
className: cn(
|
|
@@ -2022,17 +2110,17 @@ var Combobox = React26.forwardRef(
|
|
|
2022
2110
|
)
|
|
2023
2111
|
},
|
|
2024
2112
|
props.helperText
|
|
2025
|
-
))), /* @__PURE__ */
|
|
2113
|
+
))), /* @__PURE__ */ React29.createElement(
|
|
2026
2114
|
PopoverContent,
|
|
2027
2115
|
{
|
|
2028
2116
|
className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
|
|
2029
2117
|
},
|
|
2030
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ React29.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React29.createElement(
|
|
2031
2119
|
CommandInput,
|
|
2032
2120
|
{
|
|
2033
2121
|
placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
|
|
2034
2122
|
}
|
|
2035
|
-
), /* @__PURE__ */
|
|
2123
|
+
), /* @__PURE__ */ React29.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React29.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React29.createElement(
|
|
2036
2124
|
CommandItem,
|
|
2037
2125
|
{
|
|
2038
2126
|
key: i,
|
|
@@ -2047,7 +2135,7 @@ var Combobox = React26.forwardRef(
|
|
|
2047
2135
|
setOpen(false);
|
|
2048
2136
|
}
|
|
2049
2137
|
},
|
|
2050
|
-
/* @__PURE__ */
|
|
2138
|
+
/* @__PURE__ */ React29.createElement(
|
|
2051
2139
|
"svg",
|
|
2052
2140
|
{
|
|
2053
2141
|
"aria-label": "Check Icon",
|
|
@@ -2065,7 +2153,7 @@ var Combobox = React26.forwardRef(
|
|
|
2065
2153
|
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
2066
2154
|
)
|
|
2067
2155
|
},
|
|
2068
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ React29.createElement("polyline", { points: "20 6 9 17 4 12" })
|
|
2069
2157
|
),
|
|
2070
2158
|
getProperty(item, labelKey)
|
|
2071
2159
|
))))
|
|
@@ -2075,8 +2163,8 @@ var Combobox = React26.forwardRef(
|
|
|
2075
2163
|
);
|
|
2076
2164
|
|
|
2077
2165
|
// components/elements/textarea/Textarea.tsx
|
|
2078
|
-
var
|
|
2079
|
-
var Textarea =
|
|
2166
|
+
var React30 = __toESM(require("react"));
|
|
2167
|
+
var Textarea = React30.forwardRef(
|
|
2080
2168
|
({
|
|
2081
2169
|
className,
|
|
2082
2170
|
labelProps,
|
|
@@ -2086,7 +2174,7 @@ var Textarea = React27.forwardRef(
|
|
|
2086
2174
|
countPosition = "bottom",
|
|
2087
2175
|
...props
|
|
2088
2176
|
}, ref) => {
|
|
2089
|
-
return /* @__PURE__ */
|
|
2177
|
+
return /* @__PURE__ */ React30.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React30.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React30.createElement(
|
|
2090
2178
|
"textarea",
|
|
2091
2179
|
{
|
|
2092
2180
|
className: cn(
|
|
@@ -2096,7 +2184,7 @@ var Textarea = React27.forwardRef(
|
|
|
2096
2184
|
ref,
|
|
2097
2185
|
...textareaProps
|
|
2098
2186
|
}
|
|
2099
|
-
), /* @__PURE__ */
|
|
2187
|
+
), /* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React30.createElement(
|
|
2100
2188
|
"p",
|
|
2101
2189
|
{
|
|
2102
2190
|
className: cn(
|
|
@@ -2105,7 +2193,7 @@ var Textarea = React27.forwardRef(
|
|
|
2105
2193
|
)
|
|
2106
2194
|
},
|
|
2107
2195
|
props.helperText
|
|
2108
|
-
), showCount && /* @__PURE__ */
|
|
2196
|
+
), showCount && /* @__PURE__ */ React30.createElement(
|
|
2109
2197
|
"div",
|
|
2110
2198
|
{
|
|
2111
2199
|
className: cn(
|
|
@@ -2124,101 +2212,18 @@ var Textarea = React27.forwardRef(
|
|
|
2124
2212
|
Textarea.displayName = "Textarea";
|
|
2125
2213
|
|
|
2126
2214
|
// components/elements/fileDropzone/FileDropzone.tsx
|
|
2127
|
-
var
|
|
2215
|
+
var import_react14 = __toESM(require("react"));
|
|
2128
2216
|
var import_react_dropzone = require("react-dropzone");
|
|
2129
2217
|
var import_clsx2 = __toESM(require("clsx"));
|
|
2130
2218
|
|
|
2131
2219
|
// components/elements/sortButton/SortButton.tsx
|
|
2132
|
-
var
|
|
2220
|
+
var import_react15 = __toESM(require("react"));
|
|
2133
2221
|
|
|
2134
2222
|
// components/elements/tabs/Tabs.tsx
|
|
2135
|
-
var
|
|
2223
|
+
var React33 = __toESM(require("react"));
|
|
2136
2224
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
var import_react13 = __toESM(require("react"));
|
|
2140
|
-
var Chip = import_react13.default.forwardRef(
|
|
2141
|
-
({
|
|
2142
|
-
label,
|
|
2143
|
-
size = "normal",
|
|
2144
|
-
icon,
|
|
2145
|
-
color,
|
|
2146
|
-
radius = "inherit",
|
|
2147
|
-
dotType,
|
|
2148
|
-
...rest
|
|
2149
|
-
}, ref) => {
|
|
2150
|
-
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
|
2151
|
-
let radiusStyles = {
|
|
2152
|
-
inherit: " hawa-rounded",
|
|
2153
|
-
full: "hawa-rounded-full",
|
|
2154
|
-
none: "hawa-rounded-none"
|
|
2155
|
-
};
|
|
2156
|
-
let sizeStyles = {
|
|
2157
|
-
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
|
2158
|
-
normal: "hawa-h-fit hawa-text-xs",
|
|
2159
|
-
large: "hawa-text-base"
|
|
2160
|
-
};
|
|
2161
|
-
let dotStyles = {
|
|
2162
|
-
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
|
2163
|
-
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
2164
|
-
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
|
2165
|
-
};
|
|
2166
|
-
let dotTypeStyles = {
|
|
2167
|
-
available: "hawa-bg-green-500",
|
|
2168
|
-
unavailable: "hawa-bg-red-500"
|
|
2169
|
-
};
|
|
2170
|
-
let colorStyles = {
|
|
2171
|
-
green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
|
|
2172
|
-
blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
|
|
2173
|
-
red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
|
|
2174
|
-
yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
|
|
2175
|
-
orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
|
|
2176
|
-
purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
|
|
2177
|
-
cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
|
|
2178
|
-
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
|
|
2179
|
-
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
|
2180
|
-
};
|
|
2181
|
-
if (label) {
|
|
2182
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
|
2183
|
-
"span",
|
|
2184
|
-
{
|
|
2185
|
-
...rest,
|
|
2186
|
-
ref,
|
|
2187
|
-
className: cn(
|
|
2188
|
-
defaultStyles,
|
|
2189
|
-
sizeStyles[size],
|
|
2190
|
-
radiusStyles[radius],
|
|
2191
|
-
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
2192
|
-
)
|
|
2193
|
-
},
|
|
2194
|
-
dotType && /* @__PURE__ */ import_react13.default.createElement(
|
|
2195
|
-
"span",
|
|
2196
|
-
{
|
|
2197
|
-
className: cn(dotStyles[size], dotTypeStyles[dotType])
|
|
2198
|
-
}
|
|
2199
|
-
),
|
|
2200
|
-
icon && icon,
|
|
2201
|
-
label
|
|
2202
|
-
);
|
|
2203
|
-
} else {
|
|
2204
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
|
2205
|
-
"span",
|
|
2206
|
-
{
|
|
2207
|
-
...rest,
|
|
2208
|
-
ref,
|
|
2209
|
-
className: cn(
|
|
2210
|
-
"hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
2211
|
-
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
2212
|
-
)
|
|
2213
|
-
}
|
|
2214
|
-
);
|
|
2215
|
-
}
|
|
2216
|
-
}
|
|
2217
|
-
);
|
|
2218
|
-
|
|
2219
|
-
// components/elements/tabs/Tabs.tsx
|
|
2220
|
-
var TabsContext = React31.createContext({ orientation: "vertical" });
|
|
2221
|
-
var Tabs = React31.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React31.createElement(
|
|
2225
|
+
var TabsContext = React33.createContext({ orientation: "vertical" });
|
|
2226
|
+
var Tabs = React33.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React33.createElement(
|
|
2222
2227
|
TabsPrimitive.Root,
|
|
2223
2228
|
{
|
|
2224
2229
|
ref,
|
|
@@ -2229,12 +2234,12 @@ var Tabs = React31.forwardRef(({ className, orientation, ...props }, ref) => /*
|
|
|
2229
2234
|
),
|
|
2230
2235
|
...props
|
|
2231
2236
|
},
|
|
2232
|
-
/* @__PURE__ */
|
|
2237
|
+
/* @__PURE__ */ React33.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
|
|
2233
2238
|
));
|
|
2234
2239
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
2235
|
-
var TabsList =
|
|
2236
|
-
const { orientation } =
|
|
2237
|
-
return /* @__PURE__ */
|
|
2240
|
+
var TabsList = React33.forwardRef(({ className, ...props }, ref) => {
|
|
2241
|
+
const { orientation } = React33.useContext(TabsContext);
|
|
2242
|
+
return /* @__PURE__ */ React33.createElement(
|
|
2238
2243
|
TabsPrimitive.List,
|
|
2239
2244
|
{
|
|
2240
2245
|
ref,
|
|
@@ -2248,8 +2253,8 @@ var TabsList = React31.forwardRef(({ className, ...props }, ref) => {
|
|
|
2248
2253
|
);
|
|
2249
2254
|
});
|
|
2250
2255
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
2251
|
-
var TabsTrigger =
|
|
2252
|
-
return /* @__PURE__ */
|
|
2256
|
+
var TabsTrigger = React33.forwardRef(({ className, chipProps, ...props }, ref) => {
|
|
2257
|
+
return /* @__PURE__ */ React33.createElement(
|
|
2253
2258
|
TabsPrimitive.Trigger,
|
|
2254
2259
|
{
|
|
2255
2260
|
ref,
|
|
@@ -2260,11 +2265,11 @@ var TabsTrigger = React31.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
|
2260
2265
|
...props
|
|
2261
2266
|
},
|
|
2262
2267
|
props.children,
|
|
2263
|
-
chipProps && /* @__PURE__ */
|
|
2268
|
+
chipProps && /* @__PURE__ */ React33.createElement(Chip, { ...chipProps })
|
|
2264
2269
|
);
|
|
2265
2270
|
});
|
|
2266
2271
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
2267
|
-
var TabsContent =
|
|
2272
|
+
var TabsContent = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
|
|
2268
2273
|
TabsPrimitive.Content,
|
|
2269
2274
|
{
|
|
2270
2275
|
ref,
|
|
@@ -2278,21 +2283,21 @@ var TabsContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2278
2283
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
2279
2284
|
|
|
2280
2285
|
// components/elements/select/Select.tsx
|
|
2281
|
-
var
|
|
2286
|
+
var import_react16 = __toESM(require("react"));
|
|
2282
2287
|
var import_react_select = __toESM(require("react-select"));
|
|
2283
2288
|
var import_creatable = __toESM(require("react-select/creatable"));
|
|
2284
2289
|
var import_clsx3 = __toESM(require("clsx"));
|
|
2285
2290
|
|
|
2286
2291
|
// components/elements/switch/Switch.tsx
|
|
2287
|
-
var
|
|
2292
|
+
var React35 = __toESM(require("react"));
|
|
2288
2293
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
|
2289
|
-
var Switch =
|
|
2294
|
+
var Switch = React35.forwardRef(
|
|
2290
2295
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
|
2291
|
-
const [parentDirection, setParentDirection] =
|
|
2296
|
+
const [parentDirection, setParentDirection] = React35.useState(
|
|
2292
2297
|
null
|
|
2293
2298
|
);
|
|
2294
|
-
const parentRef =
|
|
2295
|
-
|
|
2299
|
+
const parentRef = React35.useRef(null);
|
|
2300
|
+
React35.useEffect(() => {
|
|
2296
2301
|
var _a;
|
|
2297
2302
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
|
2298
2303
|
if (parentNode) {
|
|
@@ -2320,13 +2325,13 @@ var Switch = React33.forwardRef(
|
|
|
2320
2325
|
full: "hawa-rounded-full",
|
|
2321
2326
|
inherit: "hawa-rounded-inner"
|
|
2322
2327
|
};
|
|
2323
|
-
return /* @__PURE__ */
|
|
2328
|
+
return /* @__PURE__ */ React35.createElement(
|
|
2324
2329
|
"div",
|
|
2325
2330
|
{
|
|
2326
2331
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
|
2327
2332
|
ref: parentRef
|
|
2328
2333
|
},
|
|
2329
|
-
/* @__PURE__ */
|
|
2334
|
+
/* @__PURE__ */ React35.createElement(
|
|
2330
2335
|
SwitchPrimitives.Root,
|
|
2331
2336
|
{
|
|
2332
2337
|
className: cn(
|
|
@@ -2340,7 +2345,7 @@ var Switch = React33.forwardRef(
|
|
|
2340
2345
|
...props,
|
|
2341
2346
|
ref
|
|
2342
2347
|
},
|
|
2343
|
-
/* @__PURE__ */
|
|
2348
|
+
/* @__PURE__ */ React35.createElement(
|
|
2344
2349
|
SwitchPrimitives.Thumb,
|
|
2345
2350
|
{
|
|
2346
2351
|
className: cn(
|
|
@@ -2354,16 +2359,16 @@ var Switch = React33.forwardRef(
|
|
|
2354
2359
|
}
|
|
2355
2360
|
)
|
|
2356
2361
|
),
|
|
2357
|
-
label && /* @__PURE__ */
|
|
2362
|
+
label && /* @__PURE__ */ React35.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
|
2358
2363
|
);
|
|
2359
2364
|
}
|
|
2360
2365
|
);
|
|
2361
2366
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
2362
2367
|
|
|
2363
2368
|
// components/elements/checkbox/Checkbox.tsx
|
|
2364
|
-
var
|
|
2369
|
+
var React36 = __toESM(require("react"));
|
|
2365
2370
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
2366
|
-
var CheckboxElement =
|
|
2371
|
+
var CheckboxElement = React36.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
|
2367
2372
|
let checkboxRadius = {
|
|
2368
2373
|
none: "hawa-rounded-none",
|
|
2369
2374
|
inherit: "hawa-rounded-sm",
|
|
@@ -2385,7 +2390,7 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
|
2385
2390
|
lg: "1em",
|
|
2386
2391
|
xl: "1.25em"
|
|
2387
2392
|
};
|
|
2388
|
-
return /* @__PURE__ */
|
|
2393
|
+
return /* @__PURE__ */ React36.createElement(
|
|
2389
2394
|
CheckboxPrimitive.Root,
|
|
2390
2395
|
{
|
|
2391
2396
|
ref,
|
|
@@ -2397,14 +2402,14 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
|
2397
2402
|
),
|
|
2398
2403
|
...props
|
|
2399
2404
|
},
|
|
2400
|
-
/* @__PURE__ */
|
|
2405
|
+
/* @__PURE__ */ React36.createElement(
|
|
2401
2406
|
CheckboxPrimitive.Indicator,
|
|
2402
2407
|
{
|
|
2403
2408
|
className: cn(
|
|
2404
2409
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
|
2405
2410
|
)
|
|
2406
2411
|
},
|
|
2407
|
-
/* @__PURE__ */
|
|
2412
|
+
/* @__PURE__ */ React36.createElement(
|
|
2408
2413
|
"svg",
|
|
2409
2414
|
{
|
|
2410
2415
|
"aria-label": "Check Mark",
|
|
@@ -2415,7 +2420,7 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
|
2415
2420
|
height: checkboxIndicatorSizes[size],
|
|
2416
2421
|
width: checkboxIndicatorSizes[size]
|
|
2417
2422
|
},
|
|
2418
|
-
/* @__PURE__ */
|
|
2423
|
+
/* @__PURE__ */ React36.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" })
|
|
2419
2424
|
),
|
|
2420
2425
|
" "
|
|
2421
2426
|
)
|
|
@@ -2423,151 +2428,89 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
|
2423
2428
|
});
|
|
2424
2429
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
|
2425
2430
|
|
|
2426
|
-
// components/elements/
|
|
2427
|
-
var
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
+
// components/elements/progress/Progress.tsx
|
|
2432
|
+
var React37 = __toESM(require("react"));
|
|
2433
|
+
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
2434
|
+
var Progress = React37.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
2435
|
+
ProgressPrimitive.Root,
|
|
2436
|
+
{
|
|
2437
|
+
ref,
|
|
2438
|
+
className: cn(
|
|
2439
|
+
"hawa-relative hawa-h-4 hawa-w-full hawa-overflow-hidden hawa-rounded hawa-bg-secondary",
|
|
2440
|
+
className
|
|
2441
|
+
),
|
|
2442
|
+
...props
|
|
2443
|
+
},
|
|
2444
|
+
/* @__PURE__ */ React37.createElement(
|
|
2445
|
+
ProgressPrimitive.Indicator,
|
|
2446
|
+
{
|
|
2447
|
+
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
|
2448
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
2449
|
+
}
|
|
2450
|
+
)
|
|
2451
|
+
));
|
|
2452
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2431
2453
|
|
|
2432
|
-
// components/elements/
|
|
2454
|
+
// components/elements/breadcrumb/Breadcrumb.tsx
|
|
2433
2455
|
var import_react17 = __toESM(require("react"));
|
|
2434
|
-
var PricingCard = ({
|
|
2435
|
-
size = "medium",
|
|
2436
|
-
direction = "ltr",
|
|
2437
|
-
endButton = true,
|
|
2438
|
-
recommended,
|
|
2439
|
-
currentPlan = false,
|
|
2440
|
-
...props
|
|
2441
|
-
}) => {
|
|
2442
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
2443
|
-
let cardSizes = {
|
|
2444
|
-
small: "hawa-w-full hawa-max-w-sm hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
2445
|
-
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
2446
|
-
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
|
2447
|
-
};
|
|
2448
|
-
return /* @__PURE__ */ import_react17.default.createElement(
|
|
2449
|
-
Card,
|
|
2450
|
-
{
|
|
2451
|
-
dir: direction,
|
|
2452
|
-
className: cn(
|
|
2453
|
-
currentPlan ? "hawa-border-2 hawa-border-primary dark:hawa-border-primary/70 " : "hawa-border",
|
|
2454
|
-
cardSizes[size],
|
|
2455
|
-
"hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-gap-4 hawa-p-4",
|
|
2456
|
-
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
|
2457
|
-
)
|
|
2458
|
-
},
|
|
2459
|
-
recommended && /* @__PURE__ */ import_react17.default.createElement(
|
|
2460
|
-
"div",
|
|
2461
|
-
{
|
|
2462
|
-
className: "hawa-absolute -hawa-left-[1px] hawa-top-0 -hawa-translate-y-full hawa-rounded-t hawa-border hawa-bg-primary hawa-p-2 hawa-text-center hawa-text-primary-foreground",
|
|
2463
|
-
style: { width: "calc(100% + 2px)" }
|
|
2464
|
-
},
|
|
2465
|
-
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
|
2466
|
-
),
|
|
2467
|
-
/* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ import_react17.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react17.default.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ import_react17.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react17.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react17.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoading ? /* @__PURE__ */ import_react17.default.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react17.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react17.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react17.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react17.default.createElement("span", { className: "hawa-ml-1 hawa-whitespace-nowrap hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ import_react17.default.createElement(Separator2, null), /* @__PURE__ */ import_react17.default.createElement(
|
|
2468
|
-
"div",
|
|
2469
|
-
{
|
|
2470
|
-
className: cn(
|
|
2471
|
-
"hawa-flex hawa-h-full hawa-justify-between hawa-gap-4",
|
|
2472
|
-
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
|
2473
|
-
)
|
|
2474
|
-
},
|
|
2475
|
-
props.features && /* @__PURE__ */ import_react17.default.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
|
2476
|
-
return /* @__PURE__ */ import_react17.default.createElement(
|
|
2477
|
-
"li",
|
|
2478
|
-
{
|
|
2479
|
-
key: o,
|
|
2480
|
-
className: cn(
|
|
2481
|
-
"hawa-flex hawa-flex-row hawa-justify-between hawa-gap-2",
|
|
2482
|
-
!feature.included && "hawa-line-through"
|
|
2483
|
-
)
|
|
2484
|
-
},
|
|
2485
|
-
/* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ import_react17.default.createElement(
|
|
2486
|
-
"svg",
|
|
2487
|
-
{
|
|
2488
|
-
"aria-label": "Check Icon",
|
|
2489
|
-
"aria-hidden": "true",
|
|
2490
|
-
className: "hawa-m-2 hawa-h-5 hawa-w-5 hawa-flex-shrink-0 hawa-text-primary",
|
|
2491
|
-
fill: "currentColor",
|
|
2492
|
-
viewBox: "0 0 20 20"
|
|
2493
|
-
},
|
|
2494
|
-
/* @__PURE__ */ import_react17.default.createElement(
|
|
2495
|
-
"path",
|
|
2496
|
-
{
|
|
2497
|
-
fillRule: "evenodd",
|
|
2498
|
-
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
2499
|
-
clipRule: "evenodd"
|
|
2500
|
-
}
|
|
2501
|
-
)
|
|
2502
|
-
) : /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ import_react17.default.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ import_react17.default.createElement(Chip, { label: "soon", color: "oceanic", size: "small" }))),
|
|
2503
|
-
feature.hint && /* @__PURE__ */ import_react17.default.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ import_react17.default.createElement(
|
|
2504
|
-
"svg",
|
|
2505
|
-
{
|
|
2506
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2507
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
|
2508
|
-
viewBox: "0 0 24 24",
|
|
2509
|
-
fill: "none",
|
|
2510
|
-
stroke: "currentColor",
|
|
2511
|
-
strokeWidth: "2",
|
|
2512
|
-
strokeLinecap: "round",
|
|
2513
|
-
strokeLinejoin: "round"
|
|
2514
|
-
},
|
|
2515
|
-
/* @__PURE__ */ import_react17.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2516
|
-
/* @__PURE__ */ import_react17.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
2517
|
-
/* @__PURE__ */ import_react17.default.createElement("path", { d: "M12 17h.01" })
|
|
2518
|
-
))
|
|
2519
|
-
);
|
|
2520
|
-
})),
|
|
2521
|
-
/* @__PURE__ */ import_react17.default.createElement(
|
|
2522
|
-
Button,
|
|
2523
|
-
{
|
|
2524
|
-
onClick: props.onPlanClicked,
|
|
2525
|
-
disabled: currentPlan,
|
|
2526
|
-
className: "hawa-w-full"
|
|
2527
|
-
},
|
|
2528
|
-
(_i = props.texts) == null ? void 0 : _i.buttonText
|
|
2529
|
-
)
|
|
2530
|
-
))
|
|
2531
|
-
);
|
|
2532
|
-
};
|
|
2533
2456
|
|
|
2534
|
-
// components/elements/
|
|
2457
|
+
// components/elements/appStores/AppStores.tsx
|
|
2535
2458
|
var import_react18 = __toESM(require("react"));
|
|
2536
2459
|
|
|
2537
|
-
// components/elements/
|
|
2460
|
+
// components/elements/badge/Badge.tsx
|
|
2538
2461
|
var import_react19 = __toESM(require("react"));
|
|
2539
2462
|
|
|
2540
|
-
// components/elements/
|
|
2463
|
+
// components/elements/phoneInput/PhoneInput.tsx
|
|
2541
2464
|
var import_react20 = __toESM(require("react"));
|
|
2542
2465
|
|
|
2543
|
-
// components/elements/
|
|
2466
|
+
// components/elements/pinInput/PinInput.tsx
|
|
2544
2467
|
var import_react21 = __toESM(require("react"));
|
|
2545
2468
|
|
|
2546
|
-
// components/elements/
|
|
2547
|
-
var
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2469
|
+
// components/elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
|
2470
|
+
var import_react22 = __toESM(require("react"));
|
|
2471
|
+
|
|
2472
|
+
// components/elements/scrollArea/ScrollArea.tsx
|
|
2473
|
+
var React44 = __toESM(require("react"));
|
|
2474
|
+
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
2475
|
+
var ScrollArea = React44.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React44.createElement(
|
|
2476
|
+
ScrollAreaPrimitive.Root,
|
|
2551
2477
|
{
|
|
2552
2478
|
ref,
|
|
2479
|
+
className: cn("hawa-relative hawa-overflow-hidden", className),
|
|
2480
|
+
...props
|
|
2481
|
+
},
|
|
2482
|
+
/* @__PURE__ */ React44.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
|
2483
|
+
/* @__PURE__ */ React44.createElement(ScrollBar, { orientation }),
|
|
2484
|
+
/* @__PURE__ */ React44.createElement(ScrollAreaPrimitive.Corner, null)
|
|
2485
|
+
));
|
|
2486
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2487
|
+
var ScrollBar = React44.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React44.createElement(
|
|
2488
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2489
|
+
{
|
|
2490
|
+
ref,
|
|
2491
|
+
orientation,
|
|
2553
2492
|
className: cn(
|
|
2554
|
-
"hawa-
|
|
2493
|
+
"hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
|
|
2494
|
+
orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
|
|
2495
|
+
orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
|
|
2555
2496
|
className
|
|
2556
2497
|
),
|
|
2557
2498
|
...props
|
|
2558
2499
|
},
|
|
2559
|
-
/* @__PURE__ */
|
|
2560
|
-
|
|
2500
|
+
/* @__PURE__ */ React44.createElement(
|
|
2501
|
+
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
2561
2502
|
{
|
|
2562
|
-
className:
|
|
2563
|
-
|
|
2503
|
+
className: cn(
|
|
2504
|
+
"hawa-relative hawa-rounded-full hawa-bg-border",
|
|
2505
|
+
orientation === "vertical" && "hawa-flex-1"
|
|
2506
|
+
)
|
|
2564
2507
|
}
|
|
2565
2508
|
)
|
|
2566
2509
|
));
|
|
2567
|
-
|
|
2510
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
2568
2511
|
|
|
2569
2512
|
// components/elements/ProgressCircle.tsx
|
|
2570
|
-
var
|
|
2513
|
+
var import_react23 = __toESM(require("react"));
|
|
2571
2514
|
var size2config = {
|
|
2572
2515
|
xs: {
|
|
2573
2516
|
radius: 15,
|
|
@@ -2599,7 +2542,7 @@ function getLimitedValue(input) {
|
|
|
2599
2542
|
return input;
|
|
2600
2543
|
}
|
|
2601
2544
|
}
|
|
2602
|
-
var ProgressCircle =
|
|
2545
|
+
var ProgressCircle = import_react23.default.forwardRef((props, ref) => {
|
|
2603
2546
|
const {
|
|
2604
2547
|
value: inputValue,
|
|
2605
2548
|
size = "md",
|
|
@@ -2619,7 +2562,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
|
2619
2562
|
const circumference = normalizedRadius * 2 * Math.PI;
|
|
2620
2563
|
const strokeDashoffset = value / 100 * circumference;
|
|
2621
2564
|
const offset = circumference - strokeDashoffset;
|
|
2622
|
-
return /* @__PURE__ */
|
|
2565
|
+
return /* @__PURE__ */ import_react23.default.createElement(import_react23.default.Fragment, null, /* @__PURE__ */ import_react23.default.createElement(
|
|
2623
2566
|
"div",
|
|
2624
2567
|
{
|
|
2625
2568
|
ref,
|
|
@@ -2628,7 +2571,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
|
2628
2571
|
className
|
|
2629
2572
|
)
|
|
2630
2573
|
},
|
|
2631
|
-
/* @__PURE__ */
|
|
2574
|
+
/* @__PURE__ */ import_react23.default.createElement(
|
|
2632
2575
|
"svg",
|
|
2633
2576
|
{
|
|
2634
2577
|
width: radius * 2,
|
|
@@ -2636,7 +2579,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
|
2636
2579
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
|
2637
2580
|
className: "hawa-rotate-180 hawa-transform"
|
|
2638
2581
|
},
|
|
2639
|
-
/* @__PURE__ */
|
|
2582
|
+
/* @__PURE__ */ import_react23.default.createElement(
|
|
2640
2583
|
"circle",
|
|
2641
2584
|
{
|
|
2642
2585
|
r: normalizedRadius,
|
|
@@ -2652,7 +2595,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
|
2652
2595
|
)
|
|
2653
2596
|
}
|
|
2654
2597
|
),
|
|
2655
|
-
value > 0 ? /* @__PURE__ */
|
|
2598
|
+
value > 0 ? /* @__PURE__ */ import_react23.default.createElement(
|
|
2656
2599
|
"circle",
|
|
2657
2600
|
{
|
|
2658
2601
|
r: normalizedRadius,
|
|
@@ -2672,32 +2615,32 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
|
2672
2615
|
}
|
|
2673
2616
|
) : null
|
|
2674
2617
|
),
|
|
2675
|
-
/* @__PURE__ */
|
|
2618
|
+
/* @__PURE__ */ import_react23.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
|
2676
2619
|
));
|
|
2677
2620
|
});
|
|
2678
2621
|
ProgressCircle.displayName = "ProgressCircle";
|
|
2679
2622
|
|
|
2680
2623
|
// components/elements/Pagination.tsx
|
|
2681
|
-
var
|
|
2624
|
+
var import_react24 = __toESM(require("react"));
|
|
2682
2625
|
var import_react_headless_pagination = require("react-headless-pagination");
|
|
2683
2626
|
|
|
2684
2627
|
// components/elements/PasswordInput.tsx
|
|
2685
|
-
var
|
|
2628
|
+
var import_react28 = __toESM(require("react"));
|
|
2686
2629
|
|
|
2687
2630
|
// components/icons/Emojis.tsx
|
|
2688
|
-
var
|
|
2631
|
+
var import_react25 = __toESM(require("react"));
|
|
2689
2632
|
|
|
2690
2633
|
// components/icons/InputIcons.tsx
|
|
2691
|
-
var
|
|
2634
|
+
var import_react26 = __toESM(require("react"));
|
|
2692
2635
|
|
|
2693
2636
|
// components/icons/CommonIcons.tsx
|
|
2694
|
-
var
|
|
2637
|
+
var import_react27 = __toESM(require("react"));
|
|
2695
2638
|
var CheckMark = ({ size = "default", className }) => {
|
|
2696
2639
|
let sizeStyles = {
|
|
2697
2640
|
default: "hawa-h-5 hawa-w-5",
|
|
2698
2641
|
sm: "hawa-h-3 hawa-w-3"
|
|
2699
2642
|
};
|
|
2700
|
-
return /* @__PURE__ */
|
|
2643
|
+
return /* @__PURE__ */ import_react27.default.createElement(
|
|
2701
2644
|
"svg",
|
|
2702
2645
|
{
|
|
2703
2646
|
className: cn(sizeStyles[size], className),
|
|
@@ -2705,7 +2648,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
|
2705
2648
|
fill: "currentColor",
|
|
2706
2649
|
viewBox: "0 0 20 20"
|
|
2707
2650
|
},
|
|
2708
|
-
/* @__PURE__ */
|
|
2651
|
+
/* @__PURE__ */ import_react27.default.createElement(
|
|
2709
2652
|
"path",
|
|
2710
2653
|
{
|
|
2711
2654
|
fillRule: "evenodd",
|
|
@@ -2720,7 +2663,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
|
2720
2663
|
default: "hawa-h-5 hawa-w-5",
|
|
2721
2664
|
sm: "hawa-h-3 hawa-w-3"
|
|
2722
2665
|
};
|
|
2723
|
-
return /* @__PURE__ */
|
|
2666
|
+
return /* @__PURE__ */ import_react27.default.createElement(
|
|
2724
2667
|
"svg",
|
|
2725
2668
|
{
|
|
2726
2669
|
className: cn(sizeStyles[size], className),
|
|
@@ -2728,7 +2671,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
|
2728
2671
|
fill: "currentColor",
|
|
2729
2672
|
viewBox: "0 0 20 20"
|
|
2730
2673
|
},
|
|
2731
|
-
/* @__PURE__ */
|
|
2674
|
+
/* @__PURE__ */ import_react27.default.createElement(
|
|
2732
2675
|
"path",
|
|
2733
2676
|
{
|
|
2734
2677
|
fillRule: "evenodd",
|
|
@@ -2740,9 +2683,9 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
|
2740
2683
|
};
|
|
2741
2684
|
|
|
2742
2685
|
// components/elements/Slider.tsx
|
|
2743
|
-
var
|
|
2686
|
+
var React51 = __toESM(require("react"));
|
|
2744
2687
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
|
2745
|
-
var Slider =
|
|
2688
|
+
var Slider = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
|
2746
2689
|
SliderPrimitive.Root,
|
|
2747
2690
|
{
|
|
2748
2691
|
ref,
|
|
@@ -2752,22 +2695,22 @@ var Slider = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2752
2695
|
),
|
|
2753
2696
|
...props
|
|
2754
2697
|
},
|
|
2755
|
-
/* @__PURE__ */
|
|
2756
|
-
/* @__PURE__ */
|
|
2698
|
+
/* @__PURE__ */ React51.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__ */ React51.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
|
2699
|
+
/* @__PURE__ */ React51.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" })
|
|
2757
2700
|
));
|
|
2758
2701
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
2759
2702
|
|
|
2760
2703
|
// components/elements/SimpleTable.tsx
|
|
2761
|
-
var
|
|
2704
|
+
var React52 = __toESM(require("react"));
|
|
2762
2705
|
var import_react_table2 = require("@tanstack/react-table");
|
|
2763
2706
|
|
|
2764
2707
|
// components/elements/Separator.tsx
|
|
2765
|
-
var
|
|
2708
|
+
var React53 = __toESM(require("react"));
|
|
2766
2709
|
var Separator2 = ({
|
|
2767
2710
|
className,
|
|
2768
2711
|
orientation = "horizontal",
|
|
2769
2712
|
...props
|
|
2770
|
-
}) => /* @__PURE__ */
|
|
2713
|
+
}) => /* @__PURE__ */ React53.createElement(
|
|
2771
2714
|
"div",
|
|
2772
2715
|
{
|
|
2773
2716
|
className: cn(
|
|
@@ -2779,50 +2722,7 @@ var Separator2 = ({
|
|
|
2779
2722
|
}
|
|
2780
2723
|
);
|
|
2781
2724
|
|
|
2782
|
-
// components/elements/ScrollArea.tsx
|
|
2783
|
-
var React52 = __toESM(require("react"));
|
|
2784
|
-
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
2785
|
-
var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
|
2786
|
-
ScrollAreaPrimitive.Root,
|
|
2787
|
-
{
|
|
2788
|
-
ref,
|
|
2789
|
-
className: cn("hawa-relative hawa-overflow-hidden", className),
|
|
2790
|
-
...props
|
|
2791
|
-
},
|
|
2792
|
-
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
|
2793
|
-
/* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
|
|
2794
|
-
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
|
|
2795
|
-
));
|
|
2796
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2797
|
-
var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
|
2798
|
-
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2799
|
-
{
|
|
2800
|
-
ref,
|
|
2801
|
-
orientation,
|
|
2802
|
-
className: cn(
|
|
2803
|
-
"hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
|
|
2804
|
-
orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
|
|
2805
|
-
orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
|
|
2806
|
-
className
|
|
2807
|
-
),
|
|
2808
|
-
...props
|
|
2809
|
-
},
|
|
2810
|
-
/* @__PURE__ */ React52.createElement(
|
|
2811
|
-
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
2812
|
-
{
|
|
2813
|
-
className: cn(
|
|
2814
|
-
"hawa-relative hawa-rounded-full hawa-bg-border",
|
|
2815
|
-
orientation === "vertical" && "hawa-flex-1"
|
|
2816
|
-
)
|
|
2817
|
-
}
|
|
2818
|
-
)
|
|
2819
|
-
));
|
|
2820
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
2821
|
-
|
|
2822
2725
|
// components/elements/ScrollIndicator.tsx
|
|
2823
|
-
var import_react28 = __toESM(require("react"));
|
|
2824
|
-
|
|
2825
|
-
// components/elements/StopPropagationWrapper.tsx
|
|
2826
2726
|
var import_react29 = __toESM(require("react"));
|
|
2827
2727
|
|
|
2828
2728
|
// components/elements/ColorPicker.tsx
|
|
@@ -2972,19 +2872,117 @@ var import_react35 = __toESM(require("react"));
|
|
|
2972
2872
|
// components/hooks/useToast.ts
|
|
2973
2873
|
var React60 = __toESM(require("react"));
|
|
2974
2874
|
|
|
2975
|
-
// components/elements/
|
|
2875
|
+
// components/elements/DestroyableCard.tsx
|
|
2976
2876
|
var import_react36 = __toESM(require("react"));
|
|
2977
2877
|
|
|
2978
|
-
// components/elements/
|
|
2878
|
+
// components/elements/InterfaceSettings.tsx
|
|
2979
2879
|
var import_react37 = __toESM(require("react"));
|
|
2980
2880
|
|
|
2981
|
-
// components/
|
|
2982
|
-
var
|
|
2881
|
+
// components/blocks/cards/PricingCard.tsx
|
|
2882
|
+
var PricingCard = ({
|
|
2883
|
+
size = "medium",
|
|
2884
|
+
direction = "ltr",
|
|
2885
|
+
endButton = true,
|
|
2886
|
+
recommended,
|
|
2887
|
+
currentPlan = false,
|
|
2888
|
+
...props
|
|
2889
|
+
}) => {
|
|
2890
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
2891
|
+
let cardSizes = {
|
|
2892
|
+
small: "hawa-w-full hawa-max-w-sm hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
2893
|
+
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
2894
|
+
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
|
2895
|
+
};
|
|
2896
|
+
return /* @__PURE__ */ import_react38.default.createElement(
|
|
2897
|
+
Card,
|
|
2898
|
+
{
|
|
2899
|
+
dir: direction,
|
|
2900
|
+
className: cn(
|
|
2901
|
+
currentPlan ? "hawa-border-2 hawa-border-primary dark:hawa-border-primary/70 " : "hawa-border",
|
|
2902
|
+
cardSizes[size],
|
|
2903
|
+
"hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-gap-4 hawa-p-4",
|
|
2904
|
+
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
|
2905
|
+
)
|
|
2906
|
+
},
|
|
2907
|
+
recommended && /* @__PURE__ */ import_react38.default.createElement(
|
|
2908
|
+
"div",
|
|
2909
|
+
{
|
|
2910
|
+
className: "hawa-absolute -hawa-left-[1px] hawa-top-0 -hawa-translate-y-full hawa-rounded-t hawa-border hawa-bg-primary hawa-p-2 hawa-text-center hawa-text-primary-foreground",
|
|
2911
|
+
style: { width: "calc(100% + 2px)" }
|
|
2912
|
+
},
|
|
2913
|
+
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
|
2914
|
+
),
|
|
2915
|
+
/* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ import_react38.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react38.default.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ import_react38.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react38.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react38.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoading ? /* @__PURE__ */ import_react38.default.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react38.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react38.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react38.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react38.default.createElement("span", { className: "hawa-ml-1 hawa-whitespace-nowrap hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ import_react38.default.createElement(Separator2, null), /* @__PURE__ */ import_react38.default.createElement(
|
|
2916
|
+
"div",
|
|
2917
|
+
{
|
|
2918
|
+
className: cn(
|
|
2919
|
+
"hawa-flex hawa-h-full hawa-justify-between hawa-gap-4",
|
|
2920
|
+
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
|
2921
|
+
)
|
|
2922
|
+
},
|
|
2923
|
+
props.features && /* @__PURE__ */ import_react38.default.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
|
2924
|
+
return /* @__PURE__ */ import_react38.default.createElement(
|
|
2925
|
+
"li",
|
|
2926
|
+
{
|
|
2927
|
+
key: o,
|
|
2928
|
+
className: cn(
|
|
2929
|
+
"hawa-flex hawa-flex-row hawa-justify-between hawa-gap-2",
|
|
2930
|
+
!feature.included && "hawa-line-through"
|
|
2931
|
+
)
|
|
2932
|
+
},
|
|
2933
|
+
/* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ import_react38.default.createElement(
|
|
2934
|
+
"svg",
|
|
2935
|
+
{
|
|
2936
|
+
"aria-label": "Check Icon",
|
|
2937
|
+
"aria-hidden": "true",
|
|
2938
|
+
className: "hawa-m-2 hawa-h-5 hawa-w-5 hawa-flex-shrink-0 hawa-text-primary",
|
|
2939
|
+
fill: "currentColor",
|
|
2940
|
+
viewBox: "0 0 20 20"
|
|
2941
|
+
},
|
|
2942
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
|
2943
|
+
"path",
|
|
2944
|
+
{
|
|
2945
|
+
fillRule: "evenodd",
|
|
2946
|
+
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
2947
|
+
clipRule: "evenodd"
|
|
2948
|
+
}
|
|
2949
|
+
)
|
|
2950
|
+
) : /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ import_react38.default.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ import_react38.default.createElement(Chip, { label: "soon", color: "oceanic", size: "small" }))),
|
|
2951
|
+
feature.hint && /* @__PURE__ */ import_react38.default.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ import_react38.default.createElement(
|
|
2952
|
+
"svg",
|
|
2953
|
+
{
|
|
2954
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2955
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
|
2956
|
+
viewBox: "0 0 24 24",
|
|
2957
|
+
fill: "none",
|
|
2958
|
+
stroke: "currentColor",
|
|
2959
|
+
strokeWidth: "2",
|
|
2960
|
+
strokeLinecap: "round",
|
|
2961
|
+
strokeLinejoin: "round"
|
|
2962
|
+
},
|
|
2963
|
+
/* @__PURE__ */ import_react38.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2964
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
2965
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "M12 17h.01" })
|
|
2966
|
+
))
|
|
2967
|
+
);
|
|
2968
|
+
})),
|
|
2969
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
|
2970
|
+
Button,
|
|
2971
|
+
{
|
|
2972
|
+
onClick: props.onPlanClicked,
|
|
2973
|
+
disabled: currentPlan,
|
|
2974
|
+
className: "hawa-w-full"
|
|
2975
|
+
},
|
|
2976
|
+
(_i = props.texts) == null ? void 0 : _i.buttonText
|
|
2977
|
+
)
|
|
2978
|
+
))
|
|
2979
|
+
);
|
|
2980
|
+
};
|
|
2983
2981
|
|
|
2984
|
-
// components/
|
|
2982
|
+
// components/blocks/cards/ItemCard.tsx
|
|
2985
2983
|
var import_react39 = __toESM(require("react"));
|
|
2986
2984
|
|
|
2987
|
-
// components/
|
|
2985
|
+
// components/blocks/cards/LandingCard.tsx
|
|
2988
2986
|
var import_react40 = __toESM(require("react"));
|
|
2989
2987
|
|
|
2990
2988
|
// components/blocks/pricing/PricingPlans.tsx
|