@sikka/hawa 0.13.11-next → 0.13.12-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/index.js +736 -735
- package/dist/index.mjs +609 -608
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// components/elements/cards/ActionCard.tsx
|
|
2
|
-
import
|
|
2
|
+
import React, { useState } from "react";
|
|
3
3
|
var ActionCard = (props) => {
|
|
4
4
|
const [hovered, setHovered] = useState(false);
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React.createElement(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
8
8
|
className: "hawa-group hawa-relative hawa-h-full hawa-w-full hawa-rounded hawa-border hawa-bg-background hawa-bg-cover hawa-bg-center hawa-transition-all hawa-duration-500 hover:hawa-drop-shadow-2xl",
|
|
@@ -12,7 +12,7 @@ var ActionCard = (props) => {
|
|
|
12
12
|
onMouseEnter: () => setHovered(true),
|
|
13
13
|
onMouseLeave: () => setHovered(false)
|
|
14
14
|
},
|
|
15
|
-
props.blank ? /* @__PURE__ */
|
|
15
|
+
props.blank ? /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ React.createElement(
|
|
16
16
|
"svg",
|
|
17
17
|
{
|
|
18
18
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
|
@@ -24,11 +24,11 @@ var ActionCard = (props) => {
|
|
|
24
24
|
width: "1em",
|
|
25
25
|
xmlns: "http://www.w3.org/2000/svg"
|
|
26
26
|
},
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
)) : /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
!props.blank && /* @__PURE__ */
|
|
31
|
-
), /* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ React.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
|
28
|
+
)) : /* @__PURE__ */ React.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
|
29
|
+
/* @__PURE__ */ React.createElement("div", { className: "hawa-absolute hawa-bottom-2 hawa-right-2 hawa-z-10 hawa-opacity-0 hawa-transition-all hawa-duration-200 group-hover:hawa-opacity-100" }, props.inCardActions),
|
|
30
|
+
!props.blank && /* @__PURE__ */ React.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ React.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ React.createElement("p", { className: "hawa-text-white" }, props.subtitle))
|
|
31
|
+
), /* @__PURE__ */ React.createElement(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
34
|
className: `hawa-flex hawa-flex-row hawa-justify-between hawa-text-sm hawa-transition-all hawa-duration-200 ${hovered ? "hawa-opacity-100" : "hawa-opacity-0"}`
|
|
@@ -39,7 +39,7 @@ var ActionCard = (props) => {
|
|
|
39
39
|
|
|
40
40
|
// components/elements/cards/AdCard.tsx
|
|
41
41
|
import clsx from "clsx";
|
|
42
|
-
import
|
|
42
|
+
import React2, { useState as useState2, useEffect, useRef } from "react";
|
|
43
43
|
var AdCard = ({ orientation, ...props }) => {
|
|
44
44
|
const adRef = useRef(null);
|
|
45
45
|
const [closed, setClosed] = useState2(false);
|
|
@@ -69,22 +69,22 @@ var AdCard = ({ orientation, ...props }) => {
|
|
|
69
69
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
|
70
70
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
|
71
71
|
};
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ React2.createElement("div", { ref: adRef }, /* @__PURE__ */ React2.createElement(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
75
|
className: clsx(cardStyles[orientation], ""),
|
|
76
76
|
...props,
|
|
77
77
|
onClick: props.handleClick
|
|
78
78
|
},
|
|
79
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start " }, /* @__PURE__ */ React2.createElement(
|
|
80
80
|
"img",
|
|
81
81
|
{
|
|
82
82
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
|
83
83
|
className: imageStyles[orientation]
|
|
84
84
|
}
|
|
85
85
|
)),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
props.canHide && /* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ React2.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ React2.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ React2.createElement("div", { className: "hawa-text-[12px]" }, props.description)),
|
|
87
|
+
props.canHide && /* @__PURE__ */ React2.createElement(
|
|
88
88
|
"span",
|
|
89
89
|
{
|
|
90
90
|
onClick: (e) => {
|
|
@@ -111,10 +111,10 @@ var AdCard = ({ orientation, ...props }) => {
|
|
|
111
111
|
|
|
112
112
|
// components/elements/cards/PricingCard.tsx
|
|
113
113
|
import clsx3 from "clsx";
|
|
114
|
-
import
|
|
114
|
+
import React6 from "react";
|
|
115
115
|
|
|
116
116
|
// components/elements/Button.tsx
|
|
117
|
-
import * as
|
|
117
|
+
import * as React4 from "react";
|
|
118
118
|
import { cva } from "class-variance-authority";
|
|
119
119
|
|
|
120
120
|
// components/util.ts
|
|
@@ -125,7 +125,7 @@ function cn(...inputs) {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
// components/elements/Loading.tsx
|
|
128
|
-
import
|
|
128
|
+
import React3 from "react";
|
|
129
129
|
var Loading = ({
|
|
130
130
|
design = "spinner",
|
|
131
131
|
size = "sm",
|
|
@@ -146,7 +146,7 @@ var Loading = ({
|
|
|
146
146
|
};
|
|
147
147
|
switch (design.split("-")[0]) {
|
|
148
148
|
case "dots":
|
|
149
|
-
return /* @__PURE__ */
|
|
149
|
+
return /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React3.createElement(
|
|
150
150
|
"div",
|
|
151
151
|
{
|
|
152
152
|
className: cn(
|
|
@@ -156,7 +156,7 @@ var Loading = ({
|
|
|
156
156
|
color ? color : "hawa-bg-primary"
|
|
157
157
|
)
|
|
158
158
|
}
|
|
159
|
-
), /* @__PURE__ */
|
|
159
|
+
), /* @__PURE__ */ React3.createElement(
|
|
160
160
|
"div",
|
|
161
161
|
{
|
|
162
162
|
className: cn(
|
|
@@ -166,7 +166,7 @@ var Loading = ({
|
|
|
166
166
|
color ? color : "hawa-bg-primary"
|
|
167
167
|
)
|
|
168
168
|
}
|
|
169
|
-
), /* @__PURE__ */
|
|
169
|
+
), /* @__PURE__ */ React3.createElement(
|
|
170
170
|
"div",
|
|
171
171
|
{
|
|
172
172
|
className: cn(
|
|
@@ -178,20 +178,20 @@ var Loading = ({
|
|
|
178
178
|
}
|
|
179
179
|
));
|
|
180
180
|
default:
|
|
181
|
-
return /* @__PURE__ */
|
|
181
|
+
return /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-x-3" }, /* @__PURE__ */ React3.createElement("div", { "aria-label": "Loading...", role: "status" }, /* @__PURE__ */ React3.createElement(
|
|
182
182
|
"svg",
|
|
183
183
|
{
|
|
184
184
|
className: cn(sizeStyles[size], "hawa-animate-spin"),
|
|
185
185
|
viewBox: "3 3 18 18"
|
|
186
186
|
},
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ React3.createElement(
|
|
188
188
|
"path",
|
|
189
189
|
{
|
|
190
190
|
className: "hawa-fill-primary/20",
|
|
191
191
|
d: "M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"
|
|
192
192
|
}
|
|
193
193
|
),
|
|
194
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ React3.createElement(
|
|
195
195
|
"path",
|
|
196
196
|
{
|
|
197
197
|
className: color ? color : "hawa-fill-primary",
|
|
@@ -235,7 +235,7 @@ var buttonVariants = cva(
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
);
|
|
238
|
-
var Button =
|
|
238
|
+
var Button = React4.forwardRef(
|
|
239
239
|
({
|
|
240
240
|
className,
|
|
241
241
|
variant,
|
|
@@ -248,7 +248,7 @@ var Button = React5.forwardRef(
|
|
|
248
248
|
}, ref) => {
|
|
249
249
|
const Comp = "button";
|
|
250
250
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
|
251
|
-
return /* @__PURE__ */
|
|
251
|
+
return /* @__PURE__ */ React4.createElement(
|
|
252
252
|
Comp,
|
|
253
253
|
{
|
|
254
254
|
className: cn(
|
|
@@ -258,7 +258,7 @@ var Button = React5.forwardRef(
|
|
|
258
258
|
ref,
|
|
259
259
|
...props
|
|
260
260
|
},
|
|
261
|
-
isLoading ? /* @__PURE__ */
|
|
261
|
+
isLoading ? /* @__PURE__ */ React4.createElement(
|
|
262
262
|
Loading,
|
|
263
263
|
{
|
|
264
264
|
design: "dots-pulse",
|
|
@@ -272,8 +272,8 @@ var Button = React5.forwardRef(
|
|
|
272
272
|
Button.displayName = "Button";
|
|
273
273
|
|
|
274
274
|
// components/elements/Card.tsx
|
|
275
|
-
import * as
|
|
276
|
-
var Card =
|
|
275
|
+
import * as React5 from "react";
|
|
276
|
+
var Card = React5.forwardRef(
|
|
277
277
|
({ className, variant = "default", clickable = false, ...props }, ref) => {
|
|
278
278
|
let variantStyles = {
|
|
279
279
|
default: cn(
|
|
@@ -285,7 +285,7 @@ var Card = React6.forwardRef(
|
|
|
285
285
|
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"
|
|
286
286
|
)
|
|
287
287
|
};
|
|
288
|
-
return /* @__PURE__ */
|
|
288
|
+
return /* @__PURE__ */ React5.createElement(
|
|
289
289
|
"div",
|
|
290
290
|
{
|
|
291
291
|
ref,
|
|
@@ -296,7 +296,7 @@ var Card = React6.forwardRef(
|
|
|
296
296
|
}
|
|
297
297
|
);
|
|
298
298
|
Card.displayName = "Card";
|
|
299
|
-
var CardHeader =
|
|
299
|
+
var CardHeader = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
|
300
300
|
"div",
|
|
301
301
|
{
|
|
302
302
|
ref,
|
|
@@ -308,7 +308,7 @@ var CardHeader = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
308
308
|
}
|
|
309
309
|
));
|
|
310
310
|
CardHeader.displayName = "CardHeader";
|
|
311
|
-
var CardTitle =
|
|
311
|
+
var CardTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
|
312
312
|
"h3",
|
|
313
313
|
{
|
|
314
314
|
ref,
|
|
@@ -317,7 +317,7 @@ var CardTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
317
317
|
}
|
|
318
318
|
));
|
|
319
319
|
CardTitle.displayName = "CardTitle";
|
|
320
|
-
var CardDescription =
|
|
320
|
+
var CardDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
|
321
321
|
"p",
|
|
322
322
|
{
|
|
323
323
|
ref,
|
|
@@ -326,8 +326,8 @@ var CardDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
326
326
|
}
|
|
327
327
|
));
|
|
328
328
|
CardDescription.displayName = "CardDescription";
|
|
329
|
-
var CardContent =
|
|
330
|
-
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */
|
|
329
|
+
var CardContent = React5.forwardRef(
|
|
330
|
+
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
|
331
331
|
"div",
|
|
332
332
|
{
|
|
333
333
|
ref,
|
|
@@ -341,7 +341,7 @@ var CardContent = React6.forwardRef(
|
|
|
341
341
|
)
|
|
342
342
|
);
|
|
343
343
|
CardContent.displayName = "CardContent";
|
|
344
|
-
var CardFooter =
|
|
344
|
+
var CardFooter = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
|
345
345
|
"div",
|
|
346
346
|
{
|
|
347
347
|
ref,
|
|
@@ -363,7 +363,7 @@ var PricingCard = ({
|
|
|
363
363
|
medium: "hawa-mx-1 hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
364
364
|
large: "hawa-mx-1 hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
|
365
365
|
};
|
|
366
|
-
return /* @__PURE__ */
|
|
366
|
+
return /* @__PURE__ */ React6.createElement(
|
|
367
367
|
Card,
|
|
368
368
|
{
|
|
369
369
|
dir: direction,
|
|
@@ -373,11 +373,11 @@ var PricingCard = ({
|
|
|
373
373
|
"hawa-flex hawa-flex-col hawa-gap-4 hawa-rounded hawa-p-4 "
|
|
374
374
|
)
|
|
375
375
|
},
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
props.features && /* @__PURE__ */
|
|
380
|
-
return /* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ React6.createElement("h5", { className: "hawa-text-md 0 hawa-font-bold hawa-text-primary/70" }, props.texts.title),
|
|
377
|
+
/* @__PURE__ */ React6.createElement("div", { className: " hawa-text-primary hawa-flex hawa-items-baseline" }, /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price), /* @__PURE__ */ React6.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, props.texts.currencyText)), /* @__PURE__ */ React6.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", props.texts.cycleText)),
|
|
378
|
+
/* @__PURE__ */ React6.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, props.texts.subtitle),
|
|
379
|
+
props.features && /* @__PURE__ */ React6.createElement("ul", { role: "list", className: "hawa-space-y-0 " }, props.features?.map((feature, o) => {
|
|
380
|
+
return /* @__PURE__ */ React6.createElement("li", { key: o, className: "hawa-flex" }, /* @__PURE__ */ React6.createElement(
|
|
381
381
|
"svg",
|
|
382
382
|
{
|
|
383
383
|
"aria-label": "Check Icon",
|
|
@@ -386,7 +386,7 @@ var PricingCard = ({
|
|
|
386
386
|
fill: "currentColor",
|
|
387
387
|
viewBox: "0 0 20 20"
|
|
388
388
|
},
|
|
389
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ React6.createElement(
|
|
390
390
|
"path",
|
|
391
391
|
{
|
|
392
392
|
fillRule: "evenodd",
|
|
@@ -394,9 +394,9 @@ var PricingCard = ({
|
|
|
394
394
|
clipRule: "evenodd"
|
|
395
395
|
}
|
|
396
396
|
)
|
|
397
|
-
), /* @__PURE__ */
|
|
397
|
+
), /* @__PURE__ */ React6.createElement("span", { className: "hawa-flex hawa-items-center hawa-text-center hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text));
|
|
398
398
|
})),
|
|
399
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ React6.createElement(
|
|
400
400
|
Button,
|
|
401
401
|
{
|
|
402
402
|
onClick: props.onPlanClicked,
|
|
@@ -409,17 +409,17 @@ var PricingCard = ({
|
|
|
409
409
|
};
|
|
410
410
|
|
|
411
411
|
// components/elements/cards/ItemCard.tsx
|
|
412
|
-
import
|
|
412
|
+
import React9, { useEffect as useEffect2, useState as useState3 } from "react";
|
|
413
413
|
import clsx4 from "clsx";
|
|
414
414
|
|
|
415
415
|
// components/elements/DropdownMenu.tsx
|
|
416
|
-
import * as
|
|
416
|
+
import * as React7 from "react";
|
|
417
417
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
418
418
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
|
419
419
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
420
420
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
421
421
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
422
|
-
var DropdownMenuSubTrigger =
|
|
422
|
+
var DropdownMenuSubTrigger = React7.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
423
423
|
DropdownMenuPrimitive.SubTrigger,
|
|
424
424
|
{
|
|
425
425
|
ref,
|
|
@@ -430,9 +430,9 @@ var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ..
|
|
|
430
430
|
),
|
|
431
431
|
...props
|
|
432
432
|
},
|
|
433
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
|
434
434
|
" ",
|
|
435
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ React7.createElement(
|
|
436
436
|
"svg",
|
|
437
437
|
{
|
|
438
438
|
"aria-label": "Chevron Right Icon",
|
|
@@ -444,7 +444,7 @@ var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ..
|
|
|
444
444
|
width: "1em",
|
|
445
445
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
|
446
446
|
},
|
|
447
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ React7.createElement(
|
|
448
448
|
"path",
|
|
449
449
|
{
|
|
450
450
|
fillRule: "evenodd",
|
|
@@ -454,7 +454,7 @@ var DropdownMenuSubTrigger = React8.forwardRef(({ className, inset, children, ..
|
|
|
454
454
|
)
|
|
455
455
|
));
|
|
456
456
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
457
|
-
var DropdownMenuSubContent =
|
|
457
|
+
var DropdownMenuSubContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
458
458
|
DropdownMenuPrimitive.SubContent,
|
|
459
459
|
{
|
|
460
460
|
ref,
|
|
@@ -466,7 +466,7 @@ var DropdownMenuSubContent = React8.forwardRef(({ className, ...props }, ref) =>
|
|
|
466
466
|
}
|
|
467
467
|
));
|
|
468
468
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
469
|
-
var DropdownMenuContent =
|
|
469
|
+
var DropdownMenuContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React7.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React7.createElement(
|
|
470
470
|
DropdownMenuPrimitive.Content,
|
|
471
471
|
{
|
|
472
472
|
ref,
|
|
@@ -479,8 +479,8 @@ var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
479
479
|
}
|
|
480
480
|
)));
|
|
481
481
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
482
|
-
var DropdownMenuItem =
|
|
483
|
-
return /* @__PURE__ */
|
|
482
|
+
var DropdownMenuItem = React7.forwardRef(({ className, inset, ...props }, ref) => {
|
|
483
|
+
return /* @__PURE__ */ React7.createElement(
|
|
484
484
|
DropdownMenuPrimitive.Item,
|
|
485
485
|
{
|
|
486
486
|
disabled: props.disabled,
|
|
@@ -493,12 +493,12 @@ var DropdownMenuItem = React8.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
493
493
|
),
|
|
494
494
|
...props
|
|
495
495
|
},
|
|
496
|
-
/* @__PURE__ */
|
|
496
|
+
/* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
|
497
497
|
props.end && props.end
|
|
498
498
|
);
|
|
499
499
|
});
|
|
500
500
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
501
|
-
var DropdownMenuCheckboxItem =
|
|
501
|
+
var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
502
502
|
DropdownMenuPrimitive.CheckboxItem,
|
|
503
503
|
{
|
|
504
504
|
ref,
|
|
@@ -509,7 +509,7 @@ var DropdownMenuCheckboxItem = React8.forwardRef(({ className, children, checked
|
|
|
509
509
|
checked,
|
|
510
510
|
...props
|
|
511
511
|
},
|
|
512
|
-
/* @__PURE__ */
|
|
512
|
+
/* @__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(
|
|
513
513
|
"svg",
|
|
514
514
|
{
|
|
515
515
|
"aria-label": "Check Mark",
|
|
@@ -520,12 +520,12 @@ var DropdownMenuCheckboxItem = React8.forwardRef(({ className, children, checked
|
|
|
520
520
|
height: "0.60em",
|
|
521
521
|
width: "0.60em"
|
|
522
522
|
},
|
|
523
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__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" })
|
|
524
524
|
), " ")),
|
|
525
525
|
children
|
|
526
526
|
));
|
|
527
527
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
528
|
-
var DropdownMenuRadioItem =
|
|
528
|
+
var DropdownMenuRadioItem = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
529
529
|
DropdownMenuPrimitive.RadioItem,
|
|
530
530
|
{
|
|
531
531
|
ref,
|
|
@@ -535,7 +535,7 @@ var DropdownMenuRadioItem = React8.forwardRef(({ className, children, ...props }
|
|
|
535
535
|
),
|
|
536
536
|
...props
|
|
537
537
|
},
|
|
538
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__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(
|
|
539
539
|
"svg",
|
|
540
540
|
{
|
|
541
541
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -550,12 +550,12 @@ var DropdownMenuRadioItem = React8.forwardRef(({ className, children, ...props }
|
|
|
550
550
|
strokeLinejoin: "round",
|
|
551
551
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
552
552
|
},
|
|
553
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ React7.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
|
554
554
|
))),
|
|
555
555
|
children
|
|
556
556
|
));
|
|
557
557
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
558
|
-
var DropdownMenuLabel =
|
|
558
|
+
var DropdownMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
559
559
|
DropdownMenuPrimitive.Label,
|
|
560
560
|
{
|
|
561
561
|
ref,
|
|
@@ -568,7 +568,7 @@ var DropdownMenuLabel = React8.forwardRef(({ className, inset, ...props }, ref)
|
|
|
568
568
|
}
|
|
569
569
|
));
|
|
570
570
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
571
|
-
var DropdownMenuSeparator =
|
|
571
|
+
var DropdownMenuSeparator = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
|
|
572
572
|
DropdownMenuPrimitive.Separator,
|
|
573
573
|
{
|
|
574
574
|
ref,
|
|
@@ -581,7 +581,7 @@ var DropdownMenuShortcut = ({
|
|
|
581
581
|
className,
|
|
582
582
|
...props
|
|
583
583
|
}) => {
|
|
584
|
-
return /* @__PURE__ */
|
|
584
|
+
return /* @__PURE__ */ React7.createElement(
|
|
585
585
|
"span",
|
|
586
586
|
{
|
|
587
587
|
className: cn(
|
|
@@ -619,7 +619,7 @@ var DropdownMenu = ({
|
|
|
619
619
|
default: "hawa-px-2 hawa-py-3 ",
|
|
620
620
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
|
621
621
|
};
|
|
622
|
-
return /* @__PURE__ */
|
|
622
|
+
return /* @__PURE__ */ React7.createElement(
|
|
623
623
|
DropdownMenuRoot,
|
|
624
624
|
{
|
|
625
625
|
onOpenChange,
|
|
@@ -627,8 +627,8 @@ var DropdownMenu = ({
|
|
|
627
627
|
modal: false,
|
|
628
628
|
dir: direction
|
|
629
629
|
},
|
|
630
|
-
/* @__PURE__ */
|
|
631
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ React7.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
|
|
631
|
+
/* @__PURE__ */ React7.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React7.createElement(
|
|
632
632
|
DropdownMenuContent,
|
|
633
633
|
{
|
|
634
634
|
side,
|
|
@@ -643,13 +643,13 @@ var DropdownMenu = ({
|
|
|
643
643
|
},
|
|
644
644
|
items && items.map((item, index) => {
|
|
645
645
|
if (item.itemType === "separator") {
|
|
646
|
-
return /* @__PURE__ */
|
|
646
|
+
return /* @__PURE__ */ React7.createElement(DropdownMenuSeparator, { key: index });
|
|
647
647
|
} else if (item.itemType === "label") {
|
|
648
|
-
return /* @__PURE__ */
|
|
648
|
+
return /* @__PURE__ */ React7.createElement(DropdownMenuLabel, { key: index }, item.label);
|
|
649
649
|
} else if (item.itemType === "custom") {
|
|
650
|
-
return /* @__PURE__ */
|
|
650
|
+
return /* @__PURE__ */ React7.createElement("div", { key: index }, item.content);
|
|
651
651
|
} else {
|
|
652
|
-
return item.subitems ? /* @__PURE__ */
|
|
652
|
+
return item.subitems ? /* @__PURE__ */ React7.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React7.createElement(
|
|
653
653
|
DropdownMenuSubTrigger,
|
|
654
654
|
{
|
|
655
655
|
className: cn(sizeStyles[size]),
|
|
@@ -657,7 +657,7 @@ var DropdownMenu = ({
|
|
|
657
657
|
},
|
|
658
658
|
item.icon && item.icon,
|
|
659
659
|
item.label && item.label
|
|
660
|
-
), /* @__PURE__ */
|
|
660
|
+
), /* @__PURE__ */ React7.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React7.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React7.createElement(
|
|
661
661
|
DropdownMenuItem,
|
|
662
662
|
{
|
|
663
663
|
key: subIndex,
|
|
@@ -675,7 +675,7 @@ var DropdownMenu = ({
|
|
|
675
675
|
},
|
|
676
676
|
subitem.icon && subitem.icon,
|
|
677
677
|
subitem.label && subitem.label
|
|
678
|
-
))))) : /* @__PURE__ */
|
|
678
|
+
))))) : /* @__PURE__ */ React7.createElement(
|
|
679
679
|
DropdownMenuItem,
|
|
680
680
|
{
|
|
681
681
|
key: index,
|
|
@@ -725,12 +725,12 @@ var DropdownMenu = ({
|
|
|
725
725
|
};
|
|
726
726
|
|
|
727
727
|
// components/elements/StopPropagationWrapper.tsx
|
|
728
|
-
import
|
|
728
|
+
import React8 from "react";
|
|
729
729
|
var StopPropagationWrapper = (props) => {
|
|
730
730
|
const handleClick = (e) => {
|
|
731
731
|
e.stopPropagation();
|
|
732
732
|
};
|
|
733
|
-
return /* @__PURE__ */
|
|
733
|
+
return /* @__PURE__ */ React8.createElement("div", { onClick: handleClick }, props.children);
|
|
734
734
|
};
|
|
735
735
|
|
|
736
736
|
// components/elements/cards/ItemCard.tsx
|
|
@@ -775,7 +775,7 @@ var ItemCard = ({
|
|
|
775
775
|
};
|
|
776
776
|
return () => window.onclick = null;
|
|
777
777
|
}, [openActionHeader]);
|
|
778
|
-
return /* @__PURE__ */
|
|
778
|
+
return /* @__PURE__ */ React9.createElement(
|
|
779
779
|
"div",
|
|
780
780
|
{
|
|
781
781
|
className: clsx4(
|
|
@@ -791,7 +791,7 @@ var ItemCard = ({
|
|
|
791
791
|
},
|
|
792
792
|
...props
|
|
793
793
|
},
|
|
794
|
-
cardImage && /* @__PURE__ */
|
|
794
|
+
cardImage && /* @__PURE__ */ React9.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ React9.createElement(
|
|
795
795
|
"img",
|
|
796
796
|
{
|
|
797
797
|
src: cardImage,
|
|
@@ -800,7 +800,7 @@ var ItemCard = ({
|
|
|
800
800
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
|
801
801
|
)
|
|
802
802
|
}
|
|
803
|
-
), clickableImage && /* @__PURE__ */
|
|
803
|
+
), clickableImage && /* @__PURE__ */ React9.createElement("div", { className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-center hawa-opacity-0 hawa-transition-all group-hover:hawa-opacity-100 " }, /* @__PURE__ */ React9.createElement(
|
|
804
804
|
Button,
|
|
805
805
|
{
|
|
806
806
|
variant: "secondary",
|
|
@@ -810,19 +810,19 @@ var ItemCard = ({
|
|
|
810
810
|
clickableImageActionIcon,
|
|
811
811
|
clickableImageActionText
|
|
812
812
|
))),
|
|
813
|
-
/* @__PURE__ */
|
|
813
|
+
/* @__PURE__ */ React9.createElement("div", { className: "hawa-relative hawa-w-full hawa-p-4 xs:hawa-p-6 xs:hawa-pb-2 xs:hawa-px-2" }, headerActions && /* @__PURE__ */ React9.createElement("div", { className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-flex hawa-justify-end hawa-pr-3 hawa-pt-3" }, /* @__PURE__ */ React9.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React9.createElement(
|
|
814
814
|
DropdownMenu,
|
|
815
815
|
{
|
|
816
816
|
items: headerActions,
|
|
817
|
-
trigger: /* @__PURE__ */
|
|
817
|
+
trigger: /* @__PURE__ */ React9.createElement(
|
|
818
818
|
Button,
|
|
819
819
|
{
|
|
820
820
|
variant: "ghost",
|
|
821
821
|
size: "smallIcon",
|
|
822
822
|
onClick: handleOpenActionHeader
|
|
823
823
|
},
|
|
824
|
-
/* @__PURE__ */
|
|
825
|
-
/* @__PURE__ */
|
|
824
|
+
/* @__PURE__ */ React9.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
|
825
|
+
/* @__PURE__ */ React9.createElement(
|
|
826
826
|
"svg",
|
|
827
827
|
{
|
|
828
828
|
className: "hawa-h-5 hawa-w-5",
|
|
@@ -830,11 +830,11 @@ var ItemCard = ({
|
|
|
830
830
|
fill: "currentColor",
|
|
831
831
|
viewBox: "0 0 20 20"
|
|
832
832
|
},
|
|
833
|
-
/* @__PURE__ */
|
|
833
|
+
/* @__PURE__ */ React9.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
|
834
834
|
)
|
|
835
835
|
)
|
|
836
836
|
}
|
|
837
|
-
))), /* @__PURE__ */
|
|
837
|
+
))), /* @__PURE__ */ React9.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ React9.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ React9.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ React9.createElement(
|
|
838
838
|
"div",
|
|
839
839
|
{
|
|
840
840
|
className: clsx4(
|
|
@@ -843,13 +843,13 @@ var ItemCard = ({
|
|
|
843
843
|
)
|
|
844
844
|
},
|
|
845
845
|
counts,
|
|
846
|
-
/* @__PURE__ */
|
|
846
|
+
/* @__PURE__ */ React9.createElement(StopPropagationWrapper, null, actions)
|
|
847
847
|
) : null)
|
|
848
848
|
);
|
|
849
849
|
};
|
|
850
850
|
|
|
851
851
|
// components/elements/cards/LandingCard.tsx
|
|
852
|
-
import
|
|
852
|
+
import React10, { useEffect as useEffect3, useState as useState4 } from "react";
|
|
853
853
|
var LandingCard = (props) => {
|
|
854
854
|
let defaultStyle = "hawa-block hawa-rounded hawa-border hawa-border-gray-200 hawa-bg-white hawa-shadow-sm hover:hawa-shadow-lg hawa-transition-all dark:hawa-border-gray-700 dark:hawa-bg-gray-800 ";
|
|
855
855
|
let orientationStyles = {
|
|
@@ -874,18 +874,18 @@ var LandingCard = (props) => {
|
|
|
874
874
|
};
|
|
875
875
|
return () => window.onclick = null;
|
|
876
876
|
}, [openActionHeader]);
|
|
877
|
-
return /* @__PURE__ */
|
|
877
|
+
return /* @__PURE__ */ React10.createElement(Card, { className: props.className }, /* @__PURE__ */ React10.createElement(CardHeader, null, props.icon, /* @__PURE__ */ React10.createElement(CardTitle, null, props.title), /* @__PURE__ */ React10.createElement(CardDescription, null, props.subtitle)));
|
|
878
878
|
};
|
|
879
879
|
|
|
880
880
|
// components/elements/SplitButton.tsx
|
|
881
|
-
import * as
|
|
881
|
+
import * as React11 from "react";
|
|
882
882
|
var SplitButton = ({
|
|
883
883
|
variant,
|
|
884
884
|
direction = "ltr",
|
|
885
885
|
menuItems = [],
|
|
886
886
|
children,
|
|
887
887
|
...props
|
|
888
|
-
}) => /* @__PURE__ */
|
|
888
|
+
}) => /* @__PURE__ */ React11.createElement(
|
|
889
889
|
"div",
|
|
890
890
|
{
|
|
891
891
|
className: cn(
|
|
@@ -893,7 +893,7 @@ var SplitButton = ({
|
|
|
893
893
|
direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
894
894
|
)
|
|
895
895
|
},
|
|
896
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ React11.createElement(
|
|
897
897
|
Button,
|
|
898
898
|
{
|
|
899
899
|
variant,
|
|
@@ -905,14 +905,14 @@ var SplitButton = ({
|
|
|
905
905
|
},
|
|
906
906
|
children
|
|
907
907
|
),
|
|
908
|
-
/* @__PURE__ */
|
|
908
|
+
/* @__PURE__ */ React11.createElement(
|
|
909
909
|
DropdownMenu,
|
|
910
910
|
{
|
|
911
911
|
size: "sm",
|
|
912
912
|
width: "sm",
|
|
913
913
|
direction,
|
|
914
914
|
items: menuItems,
|
|
915
|
-
trigger: /* @__PURE__ */
|
|
915
|
+
trigger: /* @__PURE__ */ React11.createElement(
|
|
916
916
|
Button,
|
|
917
917
|
{
|
|
918
918
|
asChild: true,
|
|
@@ -924,7 +924,7 @@ var SplitButton = ({
|
|
|
924
924
|
props.className
|
|
925
925
|
)
|
|
926
926
|
},
|
|
927
|
-
/* @__PURE__ */
|
|
927
|
+
/* @__PURE__ */ React11.createElement(
|
|
928
928
|
"svg",
|
|
929
929
|
{
|
|
930
930
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -937,7 +937,7 @@ var SplitButton = ({
|
|
|
937
937
|
strokeLinecap: "round",
|
|
938
938
|
strokeLinejoin: "round"
|
|
939
939
|
},
|
|
940
|
-
/* @__PURE__ */
|
|
940
|
+
/* @__PURE__ */ React11.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
941
941
|
)
|
|
942
942
|
)
|
|
943
943
|
}
|
|
@@ -946,13 +946,13 @@ var SplitButton = ({
|
|
|
946
946
|
SplitButton.displayName = "SplitButton";
|
|
947
947
|
|
|
948
948
|
// components/elements/Dialog.tsx
|
|
949
|
-
import * as
|
|
949
|
+
import * as React12 from "react";
|
|
950
950
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
951
951
|
var Dialog = DialogPrimitive.Root;
|
|
952
952
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
953
|
-
var DialogPortal = ({ ...props }) => /* @__PURE__ */
|
|
953
|
+
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React12.createElement(DialogPrimitive.Portal, { ...props });
|
|
954
954
|
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
|
|
955
|
-
var DialogOverlay =
|
|
955
|
+
var DialogOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
956
956
|
DialogPrimitive.Overlay,
|
|
957
957
|
{
|
|
958
958
|
ref,
|
|
@@ -964,7 +964,7 @@ var DialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
964
964
|
}
|
|
965
965
|
));
|
|
966
966
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
967
|
-
var DialogContent =
|
|
967
|
+
var DialogContent = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React12.createElement(DialogPortal, null, /* @__PURE__ */ React12.createElement(DialogOverlay, null), /* @__PURE__ */ React12.createElement(
|
|
968
968
|
DialogPrimitive.Content,
|
|
969
969
|
{
|
|
970
970
|
onPointerDownOutside: (e) => {
|
|
@@ -980,7 +980,7 @@ var DialogContent = React13.forwardRef(({ className, children, ...props }, ref)
|
|
|
980
980
|
...props
|
|
981
981
|
},
|
|
982
982
|
children,
|
|
983
|
-
/* @__PURE__ */
|
|
983
|
+
/* @__PURE__ */ React12.createElement(
|
|
984
984
|
DialogPrimitive.Close,
|
|
985
985
|
{
|
|
986
986
|
className: cn(
|
|
@@ -988,7 +988,7 @@ var DialogContent = React13.forwardRef(({ className, children, ...props }, ref)
|
|
|
988
988
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
989
989
|
)
|
|
990
990
|
},
|
|
991
|
-
/* @__PURE__ */
|
|
991
|
+
/* @__PURE__ */ React12.createElement(
|
|
992
992
|
"svg",
|
|
993
993
|
{
|
|
994
994
|
"aria-label": "Close Icon",
|
|
@@ -997,7 +997,7 @@ var DialogContent = React13.forwardRef(({ className, children, ...props }, ref)
|
|
|
997
997
|
fill: "currentColor",
|
|
998
998
|
viewBox: "0 0 20 20"
|
|
999
999
|
},
|
|
1000
|
-
/* @__PURE__ */
|
|
1000
|
+
/* @__PURE__ */ React12.createElement(
|
|
1001
1001
|
"path",
|
|
1002
1002
|
{
|
|
1003
1003
|
fillRule: "evenodd",
|
|
@@ -1006,14 +1006,14 @@ var DialogContent = React13.forwardRef(({ className, children, ...props }, ref)
|
|
|
1006
1006
|
}
|
|
1007
1007
|
)
|
|
1008
1008
|
),
|
|
1009
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ React12.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1010
1010
|
)
|
|
1011
1011
|
)));
|
|
1012
1012
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
1013
1013
|
var DialogHeader = ({
|
|
1014
1014
|
className,
|
|
1015
1015
|
...props
|
|
1016
|
-
}) => /* @__PURE__ */
|
|
1016
|
+
}) => /* @__PURE__ */ React12.createElement(
|
|
1017
1017
|
"div",
|
|
1018
1018
|
{
|
|
1019
1019
|
className: cn(
|
|
@@ -1024,7 +1024,7 @@ var DialogHeader = ({
|
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
1026
|
DialogHeader.displayName = "DialogHeader";
|
|
1027
|
-
var DialogTitle =
|
|
1027
|
+
var DialogTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1028
1028
|
DialogPrimitive.Title,
|
|
1029
1029
|
{
|
|
1030
1030
|
ref,
|
|
@@ -1036,7 +1036,7 @@ var DialogTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1036
1036
|
}
|
|
1037
1037
|
));
|
|
1038
1038
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1039
|
-
var DialogDescription =
|
|
1039
|
+
var DialogDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
|
1040
1040
|
DialogPrimitive.Description,
|
|
1041
1041
|
{
|
|
1042
1042
|
ref,
|
|
@@ -1051,7 +1051,7 @@ DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
|
1051
1051
|
var DialogFooter = ({
|
|
1052
1052
|
className,
|
|
1053
1053
|
...props
|
|
1054
|
-
}) => /* @__PURE__ */
|
|
1054
|
+
}) => /* @__PURE__ */ React12.createElement(
|
|
1055
1055
|
"div",
|
|
1056
1056
|
{
|
|
1057
1057
|
className: cn(
|
|
@@ -1064,15 +1064,15 @@ var DialogFooter = ({
|
|
|
1064
1064
|
DialogFooter.displayName = "DialogFooter";
|
|
1065
1065
|
|
|
1066
1066
|
// components/elements/Breadcrumb.tsx
|
|
1067
|
-
import
|
|
1067
|
+
import React13 from "react";
|
|
1068
1068
|
var Breadcrumb = ({ breadcrumbLinks, separator = ">" }) => {
|
|
1069
|
-
return /* @__PURE__ */
|
|
1069
|
+
return /* @__PURE__ */ React13.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ React13.createElement(
|
|
1070
1070
|
"div",
|
|
1071
1071
|
{
|
|
1072
1072
|
key: index,
|
|
1073
1073
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
|
1074
1074
|
},
|
|
1075
|
-
/* @__PURE__ */
|
|
1075
|
+
/* @__PURE__ */ React13.createElement(
|
|
1076
1076
|
"a",
|
|
1077
1077
|
{
|
|
1078
1078
|
href: singleBreadcrumbLink.href,
|
|
@@ -1080,14 +1080,14 @@ var Breadcrumb = ({ breadcrumbLinks, separator = ">" }) => {
|
|
|
1080
1080
|
},
|
|
1081
1081
|
singleBreadcrumbLink.label
|
|
1082
1082
|
),
|
|
1083
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
|
1083
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ React13.createElement("div", null, separator) : /* @__PURE__ */ React13.createElement("div", null, separator) : null
|
|
1084
1084
|
)));
|
|
1085
1085
|
};
|
|
1086
1086
|
|
|
1087
1087
|
// components/elements/Tooltip.tsx
|
|
1088
|
-
import
|
|
1088
|
+
import React14 from "react";
|
|
1089
1089
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
1090
|
-
var TooltipContent =
|
|
1090
|
+
var TooltipContent = React14.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React14.createElement(
|
|
1091
1091
|
TooltipPrimitive.Content,
|
|
1092
1092
|
{
|
|
1093
1093
|
ref,
|
|
@@ -1100,7 +1100,7 @@ var TooltipContent = React15.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
1100
1100
|
}
|
|
1101
1101
|
));
|
|
1102
1102
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
1103
|
-
var TooltipArrow =
|
|
1103
|
+
var TooltipArrow = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
|
1104
1104
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
1105
1105
|
var Tooltip = ({
|
|
1106
1106
|
side,
|
|
@@ -1112,20 +1112,20 @@ var Tooltip = ({
|
|
|
1112
1112
|
delayDuration = 300,
|
|
1113
1113
|
...props
|
|
1114
1114
|
}) => {
|
|
1115
|
-
return /* @__PURE__ */
|
|
1115
|
+
return /* @__PURE__ */ React14.createElement(TooltipPrimitive.TooltipProvider, { delayDuration }, /* @__PURE__ */ React14.createElement(
|
|
1116
1116
|
TooltipPrimitive.Root,
|
|
1117
1117
|
{
|
|
1118
1118
|
open,
|
|
1119
1119
|
defaultOpen,
|
|
1120
1120
|
onOpenChange
|
|
1121
1121
|
},
|
|
1122
|
-
/* @__PURE__ */
|
|
1123
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ React14.createElement(TooltipPrimitive.Trigger, { asChild: true }, children),
|
|
1123
|
+
/* @__PURE__ */ React14.createElement(TooltipContent, { side, align: "center", ...props }, content)
|
|
1124
1124
|
));
|
|
1125
1125
|
};
|
|
1126
1126
|
|
|
1127
1127
|
// components/elements/CodeBlock.tsx
|
|
1128
|
-
import
|
|
1128
|
+
import React15, { useState as useState6 } from "react";
|
|
1129
1129
|
|
|
1130
1130
|
// components/hooks/useClipboard.ts
|
|
1131
1131
|
import { useState as useState5 } from "react";
|
|
@@ -1175,7 +1175,7 @@ var CodeBlock = ({
|
|
|
1175
1175
|
sm: "hawa-w-full hawa-max-w-sm",
|
|
1176
1176
|
xs: "hawa-w-full hawa-max-w-xs"
|
|
1177
1177
|
};
|
|
1178
|
-
return /* @__PURE__ */
|
|
1178
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1179
1179
|
"div",
|
|
1180
1180
|
{
|
|
1181
1181
|
className: cn(
|
|
@@ -1184,7 +1184,7 @@ var CodeBlock = ({
|
|
|
1184
1184
|
className
|
|
1185
1185
|
)
|
|
1186
1186
|
},
|
|
1187
|
-
fileName && /* @__PURE__ */
|
|
1187
|
+
fileName && /* @__PURE__ */ React15.createElement(
|
|
1188
1188
|
"div",
|
|
1189
1189
|
{
|
|
1190
1190
|
className: cn(
|
|
@@ -1192,7 +1192,7 @@ var CodeBlock = ({
|
|
|
1192
1192
|
fileName && tabs ? "hawa-bg-gray-300 dark:hawa-bg-muted/50" : "hawa-bg-gray-200"
|
|
1193
1193
|
)
|
|
1194
1194
|
},
|
|
1195
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ React15.createElement(
|
|
1196
1196
|
"div",
|
|
1197
1197
|
{
|
|
1198
1198
|
className: cn(
|
|
@@ -1202,7 +1202,7 @@ var CodeBlock = ({
|
|
|
1202
1202
|
fileName
|
|
1203
1203
|
)
|
|
1204
1204
|
),
|
|
1205
|
-
tabs && /* @__PURE__ */
|
|
1205
|
+
tabs && /* @__PURE__ */ React15.createElement(
|
|
1206
1206
|
"div",
|
|
1207
1207
|
{
|
|
1208
1208
|
className: cn(
|
|
@@ -1210,7 +1210,7 @@ var CodeBlock = ({
|
|
|
1210
1210
|
tabs && fileName && "hawa-rounded-t-none"
|
|
1211
1211
|
)
|
|
1212
1212
|
},
|
|
1213
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
|
1213
|
+
tabs.map((tab, i) => /* @__PURE__ */ React15.createElement(
|
|
1214
1214
|
"div",
|
|
1215
1215
|
{
|
|
1216
1216
|
key: i,
|
|
@@ -1218,7 +1218,7 @@ var CodeBlock = ({
|
|
|
1218
1218
|
selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent"
|
|
1219
1219
|
)
|
|
1220
1220
|
},
|
|
1221
|
-
/* @__PURE__ */
|
|
1221
|
+
/* @__PURE__ */ React15.createElement(
|
|
1222
1222
|
"div",
|
|
1223
1223
|
{
|
|
1224
1224
|
onClick: () => setSelectedTab(i),
|
|
@@ -1230,7 +1230,7 @@ var CodeBlock = ({
|
|
|
1230
1230
|
)
|
|
1231
1231
|
))
|
|
1232
1232
|
),
|
|
1233
|
-
/* @__PURE__ */
|
|
1233
|
+
/* @__PURE__ */ React15.createElement(
|
|
1234
1234
|
"div",
|
|
1235
1235
|
{
|
|
1236
1236
|
className: cn(
|
|
@@ -1238,23 +1238,23 @@ var CodeBlock = ({
|
|
|
1238
1238
|
tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
|
|
1239
1239
|
)
|
|
1240
1240
|
},
|
|
1241
|
-
/* @__PURE__ */
|
|
1241
|
+
/* @__PURE__ */ React15.createElement(
|
|
1242
1242
|
Highlight,
|
|
1243
1243
|
{
|
|
1244
1244
|
theme,
|
|
1245
1245
|
code: tabs ? tabs[selectedTab].code : code || "",
|
|
1246
1246
|
language
|
|
1247
1247
|
},
|
|
1248
|
-
({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
|
1248
|
+
({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React15.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-text-foreground hawa-font-mono" }, tokens.map((line, i) => /* @__PURE__ */ React15.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React15.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React15.createElement("span", { key, ...getTokenProps({ token }) })))))
|
|
1249
1249
|
),
|
|
1250
|
-
/* @__PURE__ */
|
|
1250
|
+
/* @__PURE__ */ React15.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ React15.createElement(
|
|
1251
1251
|
Tooltip,
|
|
1252
1252
|
{
|
|
1253
1253
|
open: clipboard.copied,
|
|
1254
1254
|
side: "left",
|
|
1255
|
-
content: /* @__PURE__ */
|
|
1255
|
+
content: /* @__PURE__ */ React15.createElement("div", null, "Copied!")
|
|
1256
1256
|
},
|
|
1257
|
-
/* @__PURE__ */
|
|
1257
|
+
/* @__PURE__ */ React15.createElement(
|
|
1258
1258
|
Button,
|
|
1259
1259
|
{
|
|
1260
1260
|
size: "icon",
|
|
@@ -1262,7 +1262,7 @@ var CodeBlock = ({
|
|
|
1262
1262
|
variant: "outline",
|
|
1263
1263
|
className: "hawa-opacity-50 sm:hawa-opacity-100 hawa-text-foreground"
|
|
1264
1264
|
},
|
|
1265
|
-
/* @__PURE__ */
|
|
1265
|
+
/* @__PURE__ */ React15.createElement(
|
|
1266
1266
|
"svg",
|
|
1267
1267
|
{
|
|
1268
1268
|
"aria-label": "Copy Icon",
|
|
@@ -1275,8 +1275,8 @@ var CodeBlock = ({
|
|
|
1275
1275
|
height: "1em",
|
|
1276
1276
|
width: "1em"
|
|
1277
1277
|
},
|
|
1278
|
-
/* @__PURE__ */
|
|
1279
|
-
/* @__PURE__ */
|
|
1278
|
+
/* @__PURE__ */ React15.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
1279
|
+
/* @__PURE__ */ React15.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
|
1280
1280
|
)
|
|
1281
1281
|
)
|
|
1282
1282
|
))
|
|
@@ -1285,7 +1285,7 @@ var CodeBlock = ({
|
|
|
1285
1285
|
};
|
|
1286
1286
|
|
|
1287
1287
|
// components/elements/Checkbox.tsx
|
|
1288
|
-
import * as
|
|
1288
|
+
import * as React16 from "react";
|
|
1289
1289
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1290
1290
|
var Checkbox = ({
|
|
1291
1291
|
id,
|
|
@@ -1294,7 +1294,7 @@ var Checkbox = ({
|
|
|
1294
1294
|
helperText,
|
|
1295
1295
|
...checkboxProps
|
|
1296
1296
|
}) => {
|
|
1297
|
-
return /* @__PURE__ */
|
|
1297
|
+
return /* @__PURE__ */ React16.createElement("div", { className: "hawa-items-top hawa-flex hawa-gap-2 " }, /* @__PURE__ */ React16.createElement(CheckboxElement, { id, ...checkboxProps }), (label || helperText) && /* @__PURE__ */ React16.createElement("div", { className: "hawa-grid hawa-gap-1.5 hawa-leading-none" }, label && /* @__PURE__ */ React16.createElement(
|
|
1298
1298
|
"label",
|
|
1299
1299
|
{
|
|
1300
1300
|
htmlFor: id,
|
|
@@ -1304,7 +1304,7 @@ var Checkbox = ({
|
|
|
1304
1304
|
)
|
|
1305
1305
|
},
|
|
1306
1306
|
label
|
|
1307
|
-
), sublabel && /* @__PURE__ */
|
|
1307
|
+
), sublabel && /* @__PURE__ */ React16.createElement(
|
|
1308
1308
|
"label",
|
|
1309
1309
|
{
|
|
1310
1310
|
htmlFor: id,
|
|
@@ -1314,7 +1314,7 @@ var Checkbox = ({
|
|
|
1314
1314
|
)
|
|
1315
1315
|
},
|
|
1316
1316
|
sublabel
|
|
1317
|
-
), helperText && !checkboxProps.disabled && /* @__PURE__ */
|
|
1317
|
+
), helperText && !checkboxProps.disabled && /* @__PURE__ */ React16.createElement(
|
|
1318
1318
|
"label",
|
|
1319
1319
|
{
|
|
1320
1320
|
htmlFor: id,
|
|
@@ -1326,7 +1326,7 @@ var Checkbox = ({
|
|
|
1326
1326
|
helperText
|
|
1327
1327
|
)));
|
|
1328
1328
|
};
|
|
1329
|
-
var CheckboxElement =
|
|
1329
|
+
var CheckboxElement = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
|
|
1330
1330
|
CheckboxPrimitive.Root,
|
|
1331
1331
|
{
|
|
1332
1332
|
ref,
|
|
@@ -1336,14 +1336,14 @@ var CheckboxElement = React17.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1336
1336
|
),
|
|
1337
1337
|
...props
|
|
1338
1338
|
},
|
|
1339
|
-
/* @__PURE__ */
|
|
1339
|
+
/* @__PURE__ */ React16.createElement(
|
|
1340
1340
|
CheckboxPrimitive.Indicator,
|
|
1341
1341
|
{
|
|
1342
1342
|
className: cn(
|
|
1343
1343
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
|
1344
1344
|
)
|
|
1345
1345
|
},
|
|
1346
|
-
/* @__PURE__ */
|
|
1346
|
+
/* @__PURE__ */ React16.createElement(
|
|
1347
1347
|
"svg",
|
|
1348
1348
|
{
|
|
1349
1349
|
"aria-label": "Check Mark",
|
|
@@ -1354,7 +1354,7 @@ var CheckboxElement = React17.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1354
1354
|
height: "0.60em",
|
|
1355
1355
|
width: "0.60em"
|
|
1356
1356
|
},
|
|
1357
|
-
/* @__PURE__ */
|
|
1357
|
+
/* @__PURE__ */ React16.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" })
|
|
1358
1358
|
),
|
|
1359
1359
|
" "
|
|
1360
1360
|
)
|
|
@@ -1362,7 +1362,7 @@ var CheckboxElement = React17.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1362
1362
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
|
1363
1363
|
|
|
1364
1364
|
// components/elements/Toast.tsx
|
|
1365
|
-
import * as
|
|
1365
|
+
import * as React17 from "react";
|
|
1366
1366
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
1367
1367
|
import { cva as cva2 } from "class-variance-authority";
|
|
1368
1368
|
var toastVariants = cva2(
|
|
@@ -1387,7 +1387,7 @@ var toastVariants = cva2(
|
|
|
1387
1387
|
}
|
|
1388
1388
|
);
|
|
1389
1389
|
var ToastProvider = ToastPrimitives.Provider;
|
|
1390
|
-
var ToastViewport =
|
|
1390
|
+
var ToastViewport = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
|
|
1391
1391
|
ToastPrimitives.Viewport,
|
|
1392
1392
|
{
|
|
1393
1393
|
ref,
|
|
@@ -1399,8 +1399,8 @@ var ToastViewport = React18.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1399
1399
|
}
|
|
1400
1400
|
));
|
|
1401
1401
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
1402
|
-
var Toast =
|
|
1403
|
-
return /* @__PURE__ */
|
|
1402
|
+
var Toast = React17.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
|
1403
|
+
return /* @__PURE__ */ React17.createElement(
|
|
1404
1404
|
ToastPrimitives.Root,
|
|
1405
1405
|
{
|
|
1406
1406
|
ref,
|
|
@@ -1415,8 +1415,8 @@ var Toast = React18.forwardRef(({ className, variant, severity = "none", directi
|
|
|
1415
1415
|
);
|
|
1416
1416
|
});
|
|
1417
1417
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
1418
|
-
var ToastAction =
|
|
1419
|
-
return /* @__PURE__ */
|
|
1418
|
+
var ToastAction = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1419
|
+
return /* @__PURE__ */ React17.createElement(
|
|
1420
1420
|
ToastPrimitives.Action,
|
|
1421
1421
|
{
|
|
1422
1422
|
ref,
|
|
@@ -1433,7 +1433,7 @@ var ToastAction = React18.forwardRef(({ className, ...props }, ref) => {
|
|
|
1433
1433
|
);
|
|
1434
1434
|
});
|
|
1435
1435
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
1436
|
-
var ToastClose =
|
|
1436
|
+
var ToastClose = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
|
|
1437
1437
|
ToastPrimitives.Close,
|
|
1438
1438
|
{
|
|
1439
1439
|
ref,
|
|
@@ -1444,7 +1444,7 @@ var ToastClose = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1444
1444
|
"toast-close": "",
|
|
1445
1445
|
...props
|
|
1446
1446
|
},
|
|
1447
|
-
/* @__PURE__ */
|
|
1447
|
+
/* @__PURE__ */ React17.createElement(
|
|
1448
1448
|
"svg",
|
|
1449
1449
|
{
|
|
1450
1450
|
"aria-label": "Close Icon",
|
|
@@ -1453,7 +1453,7 @@ var ToastClose = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1453
1453
|
fill: "currentColor",
|
|
1454
1454
|
viewBox: "0 0 20 20"
|
|
1455
1455
|
},
|
|
1456
|
-
/* @__PURE__ */
|
|
1456
|
+
/* @__PURE__ */ React17.createElement(
|
|
1457
1457
|
"path",
|
|
1458
1458
|
{
|
|
1459
1459
|
fillRule: "evenodd",
|
|
@@ -1464,7 +1464,7 @@ var ToastClose = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1464
1464
|
)
|
|
1465
1465
|
));
|
|
1466
1466
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
1467
|
-
var ToastTitle =
|
|
1467
|
+
var ToastTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
|
|
1468
1468
|
ToastPrimitives.Title,
|
|
1469
1469
|
{
|
|
1470
1470
|
ref,
|
|
@@ -1473,7 +1473,7 @@ var ToastTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1473
1473
|
}
|
|
1474
1474
|
));
|
|
1475
1475
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
1476
|
-
var ToastDescription =
|
|
1476
|
+
var ToastDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
|
|
1477
1477
|
ToastPrimitives.Description,
|
|
1478
1478
|
{
|
|
1479
1479
|
ref,
|
|
@@ -1484,10 +1484,10 @@ var ToastDescription = React18.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1484
1484
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
1485
1485
|
|
|
1486
1486
|
// components/elements/Toaster.tsx
|
|
1487
|
-
import
|
|
1487
|
+
import React19 from "react";
|
|
1488
1488
|
|
|
1489
1489
|
// components/hooks/useToast.ts
|
|
1490
|
-
import * as
|
|
1490
|
+
import * as React18 from "react";
|
|
1491
1491
|
var TOAST_LIMIT = 5;
|
|
1492
1492
|
var TOAST_REMOVE_DELAY = 1e5;
|
|
1493
1493
|
var count = 0;
|
|
@@ -1583,8 +1583,8 @@ function toast({ ...props }) {
|
|
|
1583
1583
|
};
|
|
1584
1584
|
}
|
|
1585
1585
|
function useToast() {
|
|
1586
|
-
const [state, setState] =
|
|
1587
|
-
|
|
1586
|
+
const [state, setState] = React18.useState(memoryState);
|
|
1587
|
+
React18.useEffect(() => {
|
|
1588
1588
|
listeners.push(setState);
|
|
1589
1589
|
return () => {
|
|
1590
1590
|
const index = listeners.indexOf(setState);
|
|
@@ -1604,9 +1604,9 @@ function useToast() {
|
|
|
1604
1604
|
function Toaster(props) {
|
|
1605
1605
|
const { toasts } = useToast();
|
|
1606
1606
|
let isRTL = props.direction === "rtl";
|
|
1607
|
-
return /* @__PURE__ */
|
|
1608
|
-
return /* @__PURE__ */
|
|
1609
|
-
}), /* @__PURE__ */
|
|
1607
|
+
return /* @__PURE__ */ React19.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, toasts.map(function({ id, title, description, action, ...toastProps }) {
|
|
1608
|
+
return /* @__PURE__ */ React19.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React19.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ React19.createElement(ToastTitle, null, title), description && /* @__PURE__ */ React19.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ React19.createElement(ToastClose, null));
|
|
1609
|
+
}), /* @__PURE__ */ React19.createElement(
|
|
1610
1610
|
ToastViewport,
|
|
1611
1611
|
{
|
|
1612
1612
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
|
@@ -1615,7 +1615,7 @@ function Toaster(props) {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
|
|
1617
1617
|
// components/elements/Switch.tsx
|
|
1618
|
-
import * as
|
|
1618
|
+
import * as React20 from "react";
|
|
1619
1619
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
1620
1620
|
var rootSize = {
|
|
1621
1621
|
default: "hawa-h-[25px] hawa-w-[42px]",
|
|
@@ -1627,13 +1627,13 @@ var thumbSize = {
|
|
|
1627
1627
|
sm: "hawa-h-[16px] hawa-w-[16px]",
|
|
1628
1628
|
lg: "hawa-h-[26px] hawa-w-[26px]"
|
|
1629
1629
|
};
|
|
1630
|
-
var Switch =
|
|
1630
|
+
var Switch = React20.forwardRef(
|
|
1631
1631
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
|
1632
|
-
const [parentDirection, setParentDirection] =
|
|
1632
|
+
const [parentDirection, setParentDirection] = React20.useState(
|
|
1633
1633
|
null
|
|
1634
1634
|
);
|
|
1635
|
-
const parentRef =
|
|
1636
|
-
|
|
1635
|
+
const parentRef = React20.useRef(null);
|
|
1636
|
+
React20.useEffect(() => {
|
|
1637
1637
|
const parentNode = parentRef.current?.parentNode;
|
|
1638
1638
|
if (parentNode) {
|
|
1639
1639
|
const dir = window.getComputedStyle(parentNode).direction;
|
|
@@ -1650,13 +1650,13 @@ var Switch = React21.forwardRef(
|
|
|
1650
1650
|
full: "hawa-rounded-full",
|
|
1651
1651
|
inherit: "hawa-rounded-inner"
|
|
1652
1652
|
};
|
|
1653
|
-
return /* @__PURE__ */
|
|
1653
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1654
1654
|
"div",
|
|
1655
1655
|
{
|
|
1656
1656
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
|
1657
1657
|
ref: parentRef
|
|
1658
1658
|
},
|
|
1659
|
-
/* @__PURE__ */
|
|
1659
|
+
/* @__PURE__ */ React20.createElement(
|
|
1660
1660
|
SwitchPrimitives.Root,
|
|
1661
1661
|
{
|
|
1662
1662
|
className: cn(
|
|
@@ -1668,7 +1668,7 @@ var Switch = React21.forwardRef(
|
|
|
1668
1668
|
...props,
|
|
1669
1669
|
ref
|
|
1670
1670
|
},
|
|
1671
|
-
/* @__PURE__ */
|
|
1671
|
+
/* @__PURE__ */ React20.createElement(
|
|
1672
1672
|
SwitchPrimitives.Thumb,
|
|
1673
1673
|
{
|
|
1674
1674
|
className: cn(
|
|
@@ -1680,19 +1680,19 @@ var Switch = React21.forwardRef(
|
|
|
1680
1680
|
}
|
|
1681
1681
|
)
|
|
1682
1682
|
),
|
|
1683
|
-
label && /* @__PURE__ */
|
|
1683
|
+
label && /* @__PURE__ */ React20.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
|
1684
1684
|
);
|
|
1685
1685
|
}
|
|
1686
1686
|
);
|
|
1687
1687
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1688
1688
|
|
|
1689
1689
|
// components/elements/Radio.tsx
|
|
1690
|
-
import
|
|
1690
|
+
import React22, { useState as useState9, useRef as useRef3, useEffect as useEffect7 } from "react";
|
|
1691
1691
|
|
|
1692
1692
|
// components/elements/Label.tsx
|
|
1693
|
-
import * as
|
|
1694
|
-
var Label2 =
|
|
1695
|
-
({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */
|
|
1693
|
+
import * as React21 from "react";
|
|
1694
|
+
var Label2 = React21.forwardRef(
|
|
1695
|
+
({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React21.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-center" }, /* @__PURE__ */ React21.createElement(
|
|
1696
1696
|
"label",
|
|
1697
1697
|
{
|
|
1698
1698
|
ref,
|
|
@@ -1703,8 +1703,8 @@ var Label2 = React22.forwardRef(
|
|
|
1703
1703
|
...props
|
|
1704
1704
|
},
|
|
1705
1705
|
children,
|
|
1706
|
-
required && /* @__PURE__ */
|
|
1707
|
-
), hint && /* @__PURE__ */
|
|
1706
|
+
required && /* @__PURE__ */ React21.createElement("span", { className: "hawa-text-red-500 hawa-mx-0.5" }, "*")
|
|
1707
|
+
), hint && /* @__PURE__ */ React21.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React21.createElement(
|
|
1708
1708
|
"svg",
|
|
1709
1709
|
{
|
|
1710
1710
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1716,9 +1716,9 @@ var Label2 = React22.forwardRef(
|
|
|
1716
1716
|
strokeLinecap: "round",
|
|
1717
1717
|
strokeLinejoin: "round"
|
|
1718
1718
|
},
|
|
1719
|
-
/* @__PURE__ */
|
|
1720
|
-
/* @__PURE__ */
|
|
1721
|
-
/* @__PURE__ */
|
|
1719
|
+
/* @__PURE__ */ React21.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1720
|
+
/* @__PURE__ */ React21.createElement("line", { x1: "12", x2: "12", y1: "8", y2: "12" }),
|
|
1721
|
+
/* @__PURE__ */ React21.createElement("line", { x1: "12", x2: "12.01", y1: "16", y2: "16" })
|
|
1722
1722
|
)))
|
|
1723
1723
|
);
|
|
1724
1724
|
Label2.displayName = "Label";
|
|
@@ -1742,7 +1742,7 @@ var Radio = ({
|
|
|
1742
1742
|
default: "hawa-max-w-fit",
|
|
1743
1743
|
full: "hawa-w-full"
|
|
1744
1744
|
};
|
|
1745
|
-
const [parentDirection, setParentDirection] =
|
|
1745
|
+
const [parentDirection, setParentDirection] = React22.useState(
|
|
1746
1746
|
null
|
|
1747
1747
|
);
|
|
1748
1748
|
const parentRef = useRef3(null);
|
|
@@ -1755,7 +1755,7 @@ var Radio = ({
|
|
|
1755
1755
|
});
|
|
1756
1756
|
switch (design) {
|
|
1757
1757
|
case "tabs":
|
|
1758
|
-
return /* @__PURE__ */
|
|
1758
|
+
return /* @__PURE__ */ React22.createElement(
|
|
1759
1759
|
"ul",
|
|
1760
1760
|
{
|
|
1761
1761
|
ref: parentRef,
|
|
@@ -1766,7 +1766,7 @@ var Radio = ({
|
|
|
1766
1766
|
orientationStyle[orientation]
|
|
1767
1767
|
)
|
|
1768
1768
|
},
|
|
1769
|
-
props.options?.map((opt, o) => /* @__PURE__ */
|
|
1769
|
+
props.options?.map((opt, o) => /* @__PURE__ */ React22.createElement(
|
|
1770
1770
|
"li",
|
|
1771
1771
|
{
|
|
1772
1772
|
"aria-current": "page",
|
|
@@ -1789,13 +1789,13 @@ var Radio = ({
|
|
|
1789
1789
|
))
|
|
1790
1790
|
);
|
|
1791
1791
|
case "bordered":
|
|
1792
|
-
return /* @__PURE__ */
|
|
1792
|
+
return /* @__PURE__ */ React22.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React22.createElement(
|
|
1793
1793
|
"div",
|
|
1794
1794
|
{
|
|
1795
1795
|
key: i,
|
|
1796
1796
|
className: "hawa-rounded hawa-border hawa-border-gray-200 "
|
|
1797
1797
|
},
|
|
1798
|
-
/* @__PURE__ */
|
|
1798
|
+
/* @__PURE__ */ React22.createElement(
|
|
1799
1799
|
"div",
|
|
1800
1800
|
{
|
|
1801
1801
|
className: cn(
|
|
@@ -1804,7 +1804,7 @@ var Radio = ({
|
|
|
1804
1804
|
),
|
|
1805
1805
|
key: i + 1
|
|
1806
1806
|
},
|
|
1807
|
-
/* @__PURE__ */
|
|
1807
|
+
/* @__PURE__ */ React22.createElement(
|
|
1808
1808
|
"input",
|
|
1809
1809
|
{
|
|
1810
1810
|
disabled: opt.disabled,
|
|
@@ -1814,7 +1814,7 @@ var Radio = ({
|
|
|
1814
1814
|
name: "bordered-radio"
|
|
1815
1815
|
}
|
|
1816
1816
|
),
|
|
1817
|
-
/* @__PURE__ */
|
|
1817
|
+
/* @__PURE__ */ React22.createElement(
|
|
1818
1818
|
"label",
|
|
1819
1819
|
{
|
|
1820
1820
|
htmlFor: opt.value.toString(),
|
|
@@ -1828,7 +1828,7 @@ var Radio = ({
|
|
|
1828
1828
|
)
|
|
1829
1829
|
)));
|
|
1830
1830
|
case "cards":
|
|
1831
|
-
return /* @__PURE__ */
|
|
1831
|
+
return /* @__PURE__ */ React22.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options?.map((opt, o) => /* @__PURE__ */ React22.createElement("li", { key: o }, /* @__PURE__ */ React22.createElement(
|
|
1832
1832
|
"input",
|
|
1833
1833
|
{
|
|
1834
1834
|
type: "radio",
|
|
@@ -1839,7 +1839,7 @@ var Radio = ({
|
|
|
1839
1839
|
required: true,
|
|
1840
1840
|
disabled: opt.disabled
|
|
1841
1841
|
}
|
|
1842
|
-
), /* @__PURE__ */
|
|
1842
|
+
), /* @__PURE__ */ React22.createElement(
|
|
1843
1843
|
"label",
|
|
1844
1844
|
{
|
|
1845
1845
|
htmlFor: opt.value.toString(),
|
|
@@ -1848,10 +1848,10 @@ var Radio = ({
|
|
|
1848
1848
|
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"
|
|
1849
1849
|
)
|
|
1850
1850
|
},
|
|
1851
|
-
/* @__PURE__ */
|
|
1851
|
+
/* @__PURE__ */ React22.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ React22.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ React22.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
|
1852
1852
|
))));
|
|
1853
1853
|
default:
|
|
1854
|
-
return /* @__PURE__ */
|
|
1854
|
+
return /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, labelProps && /* @__PURE__ */ React22.createElement(Label2, { ...labelProps }, labelProps.children), /* @__PURE__ */ React22.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React22.createElement(
|
|
1855
1855
|
"div",
|
|
1856
1856
|
{
|
|
1857
1857
|
className: cn(
|
|
@@ -1860,7 +1860,7 @@ var Radio = ({
|
|
|
1860
1860
|
),
|
|
1861
1861
|
key: i + 1
|
|
1862
1862
|
},
|
|
1863
|
-
/* @__PURE__ */
|
|
1863
|
+
/* @__PURE__ */ React22.createElement(
|
|
1864
1864
|
"input",
|
|
1865
1865
|
{
|
|
1866
1866
|
disabled: opt.disabled,
|
|
@@ -1874,7 +1874,7 @@ var Radio = ({
|
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
1876
|
),
|
|
1877
|
-
/* @__PURE__ */
|
|
1877
|
+
/* @__PURE__ */ React22.createElement(
|
|
1878
1878
|
"label",
|
|
1879
1879
|
{
|
|
1880
1880
|
htmlFor: opt.value.toString(),
|
|
@@ -1885,12 +1885,12 @@ var Radio = ({
|
|
|
1885
1885
|
},
|
|
1886
1886
|
opt.label
|
|
1887
1887
|
)
|
|
1888
|
-
))), props.helperText && /* @__PURE__ */
|
|
1888
|
+
))), props.helperText && /* @__PURE__ */ React22.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText));
|
|
1889
1889
|
}
|
|
1890
1890
|
};
|
|
1891
1891
|
|
|
1892
1892
|
// components/elements/Skeleton.tsx
|
|
1893
|
-
import
|
|
1893
|
+
import React23 from "react";
|
|
1894
1894
|
function Skeleton({
|
|
1895
1895
|
className,
|
|
1896
1896
|
content,
|
|
@@ -1902,7 +1902,7 @@ function Skeleton({
|
|
|
1902
1902
|
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
|
1903
1903
|
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"
|
|
1904
1904
|
};
|
|
1905
|
-
return /* @__PURE__ */
|
|
1905
|
+
return /* @__PURE__ */ React23.createElement(
|
|
1906
1906
|
"div",
|
|
1907
1907
|
{
|
|
1908
1908
|
className: cn(
|
|
@@ -1923,7 +1923,7 @@ function Skeleton({
|
|
|
1923
1923
|
}
|
|
1924
1924
|
|
|
1925
1925
|
// components/elements/Chip.tsx
|
|
1926
|
-
import
|
|
1926
|
+
import React24 from "react";
|
|
1927
1927
|
import clsx5 from "clsx";
|
|
1928
1928
|
var Chip = ({
|
|
1929
1929
|
label,
|
|
@@ -1965,7 +1965,7 @@ var Chip = ({
|
|
|
1965
1965
|
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
|
1966
1966
|
};
|
|
1967
1967
|
if (label) {
|
|
1968
|
-
return /* @__PURE__ */
|
|
1968
|
+
return /* @__PURE__ */ React24.createElement(
|
|
1969
1969
|
"span",
|
|
1970
1970
|
{
|
|
1971
1971
|
className: clsx5(
|
|
@@ -1975,7 +1975,7 @@ var Chip = ({
|
|
|
1975
1975
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
|
1976
1976
|
)
|
|
1977
1977
|
},
|
|
1978
|
-
dotType && /* @__PURE__ */
|
|
1978
|
+
dotType && /* @__PURE__ */ React24.createElement(
|
|
1979
1979
|
"span",
|
|
1980
1980
|
{
|
|
1981
1981
|
className: clsx5(dotStyles[size], dotTypeStyles[dotType])
|
|
@@ -1985,7 +1985,7 @@ var Chip = ({
|
|
|
1985
1985
|
label
|
|
1986
1986
|
);
|
|
1987
1987
|
} else {
|
|
1988
|
-
return /* @__PURE__ */
|
|
1988
|
+
return /* @__PURE__ */ React24.createElement(
|
|
1989
1989
|
"span",
|
|
1990
1990
|
{
|
|
1991
1991
|
className: clsx5(
|
|
@@ -1998,7 +1998,7 @@ var Chip = ({
|
|
|
1998
1998
|
};
|
|
1999
1999
|
|
|
2000
2000
|
// components/elements/Alert.tsx
|
|
2001
|
-
import
|
|
2001
|
+
import React25, { useRef as useRef4, useState as useState10, useEffect as useEffect8 } from "react";
|
|
2002
2002
|
import clsx6 from "clsx";
|
|
2003
2003
|
var Alert = ({
|
|
2004
2004
|
variant = "normal",
|
|
@@ -2042,7 +2042,7 @@ var Alert = ({
|
|
|
2042
2042
|
error: "hawa-text-destructive-foreground hawa-bg-destructive/90",
|
|
2043
2043
|
success: "hawa-text-success-foreground hawa-bg-success/90"
|
|
2044
2044
|
};
|
|
2045
|
-
return /* @__PURE__ */
|
|
2045
|
+
return /* @__PURE__ */ React25.createElement("div", { ref: alertRef }, /* @__PURE__ */ React25.createElement(
|
|
2046
2046
|
"div",
|
|
2047
2047
|
{
|
|
2048
2048
|
role: "alert",
|
|
@@ -2054,13 +2054,13 @@ var Alert = ({
|
|
|
2054
2054
|
className
|
|
2055
2055
|
)
|
|
2056
2056
|
},
|
|
2057
|
-
/* @__PURE__ */
|
|
2057
|
+
/* @__PURE__ */ React25.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ React25.createElement(
|
|
2058
2058
|
"div",
|
|
2059
2059
|
{
|
|
2060
2060
|
className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
|
|
2061
2061
|
},
|
|
2062
2062
|
icon
|
|
2063
|
-
), /* @__PURE__ */
|
|
2063
|
+
), /* @__PURE__ */ React25.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React25.createElement(
|
|
2064
2064
|
"span",
|
|
2065
2065
|
{
|
|
2066
2066
|
className: clsx6(
|
|
@@ -2069,13 +2069,13 @@ var Alert = ({
|
|
|
2069
2069
|
)
|
|
2070
2070
|
},
|
|
2071
2071
|
props.title
|
|
2072
|
-
), /* @__PURE__ */
|
|
2072
|
+
), /* @__PURE__ */ React25.createElement(
|
|
2073
2073
|
"span",
|
|
2074
2074
|
{
|
|
2075
2075
|
className: clsx6(direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8")
|
|
2076
2076
|
},
|
|
2077
2077
|
props.text
|
|
2078
|
-
), props.actions && /* @__PURE__ */
|
|
2078
|
+
), props.actions && /* @__PURE__ */ React25.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ React25.createElement(
|
|
2079
2079
|
Button,
|
|
2080
2080
|
{
|
|
2081
2081
|
key: index,
|
|
@@ -2084,7 +2084,7 @@ var Alert = ({
|
|
|
2084
2084
|
},
|
|
2085
2085
|
act.label
|
|
2086
2086
|
))))),
|
|
2087
|
-
!props.persistant && /* @__PURE__ */
|
|
2087
|
+
!props.persistant && /* @__PURE__ */ React25.createElement(
|
|
2088
2088
|
"button",
|
|
2089
2089
|
{
|
|
2090
2090
|
type: "button",
|
|
@@ -2104,8 +2104,8 @@ var Alert = ({
|
|
|
2104
2104
|
}, 200);
|
|
2105
2105
|
}
|
|
2106
2106
|
},
|
|
2107
|
-
/* @__PURE__ */
|
|
2108
|
-
/* @__PURE__ */
|
|
2107
|
+
/* @__PURE__ */ React25.createElement("span", { className: "hawa-sr-only" }, "Close"),
|
|
2108
|
+
/* @__PURE__ */ React25.createElement(
|
|
2109
2109
|
"svg",
|
|
2110
2110
|
{
|
|
2111
2111
|
"aria-label": "Close Icon",
|
|
@@ -2114,7 +2114,7 @@ var Alert = ({
|
|
|
2114
2114
|
fill: "currentColor",
|
|
2115
2115
|
viewBox: "0 0 20 20"
|
|
2116
2116
|
},
|
|
2117
|
-
/* @__PURE__ */
|
|
2117
|
+
/* @__PURE__ */ React25.createElement(
|
|
2118
2118
|
"path",
|
|
2119
2119
|
{
|
|
2120
2120
|
fillRule: "evenodd",
|
|
@@ -2128,9 +2128,9 @@ var Alert = ({
|
|
|
2128
2128
|
};
|
|
2129
2129
|
|
|
2130
2130
|
// components/elements/Popover.tsx
|
|
2131
|
-
import * as
|
|
2131
|
+
import * as React26 from "react";
|
|
2132
2132
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2133
|
-
var PopoverContent =
|
|
2133
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React26.createElement(
|
|
2134
2134
|
PopoverPrimitive.Content,
|
|
2135
2135
|
{
|
|
2136
2136
|
ref,
|
|
@@ -2154,7 +2154,7 @@ var Popover = ({
|
|
|
2154
2154
|
open,
|
|
2155
2155
|
disableTrigger,
|
|
2156
2156
|
...props
|
|
2157
|
-
}) => /* @__PURE__ */
|
|
2157
|
+
}) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(PopoverPrimitive.Trigger, { disabled: disableTrigger }, trigger), /* @__PURE__ */ React26.createElement(
|
|
2158
2158
|
PopoverContent,
|
|
2159
2159
|
{
|
|
2160
2160
|
side,
|
|
@@ -2167,10 +2167,10 @@ var Popover = ({
|
|
|
2167
2167
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2168
2168
|
|
|
2169
2169
|
// components/elements/Textarea.tsx
|
|
2170
|
-
import * as
|
|
2171
|
-
var Textarea =
|
|
2170
|
+
import * as React27 from "react";
|
|
2171
|
+
var Textarea = React27.forwardRef(
|
|
2172
2172
|
({ className, ...props }, ref) => {
|
|
2173
|
-
return /* @__PURE__ */
|
|
2173
|
+
return /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React27.createElement(
|
|
2174
2174
|
"textarea",
|
|
2175
2175
|
{
|
|
2176
2176
|
className: cn(
|
|
@@ -2180,15 +2180,15 @@ var Textarea = React28.forwardRef(
|
|
|
2180
2180
|
ref,
|
|
2181
2181
|
...props
|
|
2182
2182
|
}
|
|
2183
|
-
), props.helperText && /* @__PURE__ */
|
|
2183
|
+
), props.helperText && /* @__PURE__ */ React27.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText));
|
|
2184
2184
|
}
|
|
2185
2185
|
);
|
|
2186
2186
|
Textarea.displayName = "Textarea";
|
|
2187
2187
|
|
|
2188
2188
|
// components/elements/Slider.tsx
|
|
2189
|
-
import * as
|
|
2189
|
+
import * as React28 from "react";
|
|
2190
2190
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
2191
|
-
var Slider =
|
|
2191
|
+
var Slider = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
|
2192
2192
|
SliderPrimitive.Root,
|
|
2193
2193
|
{
|
|
2194
2194
|
ref,
|
|
@@ -2198,13 +2198,13 @@ var Slider = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2198
2198
|
),
|
|
2199
2199
|
...props
|
|
2200
2200
|
},
|
|
2201
|
-
/* @__PURE__ */
|
|
2202
|
-
/* @__PURE__ */
|
|
2201
|
+
/* @__PURE__ */ React28.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-bg-background hawa-border" }, /* @__PURE__ */ React28.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
|
2202
|
+
/* @__PURE__ */ React28.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" })
|
|
2203
2203
|
));
|
|
2204
2204
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
2205
2205
|
|
|
2206
2206
|
// components/elements/ColorPicker.tsx
|
|
2207
|
-
import
|
|
2207
|
+
import React29, {
|
|
2208
2208
|
useState as useState11,
|
|
2209
2209
|
useEffect as useEffect9
|
|
2210
2210
|
} from "react";
|
|
@@ -2237,7 +2237,7 @@ var ColorPicker = ({
|
|
|
2237
2237
|
inputElement.dispatchEvent(event);
|
|
2238
2238
|
}
|
|
2239
2239
|
};
|
|
2240
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, props.label && /* @__PURE__ */ React29.createElement(
|
|
2241
2241
|
Label2,
|
|
2242
2242
|
{
|
|
2243
2243
|
htmlFor: props.id,
|
|
@@ -2246,13 +2246,13 @@ var ColorPicker = ({
|
|
|
2246
2246
|
required: props.isRequired
|
|
2247
2247
|
},
|
|
2248
2248
|
props.label
|
|
2249
|
-
), /* @__PURE__ */
|
|
2249
|
+
), /* @__PURE__ */ React29.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full" }, /* @__PURE__ */ React29.createElement(
|
|
2250
2250
|
"div",
|
|
2251
2251
|
{
|
|
2252
2252
|
style: { height: 40, backgroundColor: selectedColor },
|
|
2253
2253
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
|
2254
2254
|
},
|
|
2255
|
-
/* @__PURE__ */
|
|
2255
|
+
/* @__PURE__ */ React29.createElement(
|
|
2256
2256
|
"input",
|
|
2257
2257
|
{
|
|
2258
2258
|
type: "color",
|
|
@@ -2270,7 +2270,7 @@ var ColorPicker = ({
|
|
|
2270
2270
|
...colorPickerProps
|
|
2271
2271
|
}
|
|
2272
2272
|
)
|
|
2273
|
-
), /* @__PURE__ */
|
|
2273
|
+
), /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-max-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-w-full hawa-gap-0" }, /* @__PURE__ */ React29.createElement(
|
|
2274
2274
|
"input",
|
|
2275
2275
|
{
|
|
2276
2276
|
maxLength: 7,
|
|
@@ -2283,7 +2283,7 @@ var ColorPicker = ({
|
|
|
2283
2283
|
),
|
|
2284
2284
|
...textInputProps
|
|
2285
2285
|
}
|
|
2286
|
-
))), /* @__PURE__ */
|
|
2286
|
+
))), /* @__PURE__ */ React29.createElement(
|
|
2287
2287
|
"p",
|
|
2288
2288
|
{
|
|
2289
2289
|
className: cn(
|
|
@@ -2296,7 +2296,7 @@ var ColorPicker = ({
|
|
|
2296
2296
|
};
|
|
2297
2297
|
|
|
2298
2298
|
// components/elements/DestroyableCard.tsx
|
|
2299
|
-
import
|
|
2299
|
+
import React30, { useRef as useRef5, useState as useState12 } from "react";
|
|
2300
2300
|
var DestroyableCard = ({
|
|
2301
2301
|
position = "bottom-right",
|
|
2302
2302
|
fixed,
|
|
@@ -2309,7 +2309,7 @@ var DestroyableCard = ({
|
|
|
2309
2309
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
|
2310
2310
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
|
2311
2311
|
};
|
|
2312
|
-
return /* @__PURE__ */
|
|
2312
|
+
return /* @__PURE__ */ React30.createElement(
|
|
2313
2313
|
"div",
|
|
2314
2314
|
{
|
|
2315
2315
|
className: cn(
|
|
@@ -2318,7 +2318,7 @@ var DestroyableCard = ({
|
|
|
2318
2318
|
),
|
|
2319
2319
|
ref: popUpRef
|
|
2320
2320
|
},
|
|
2321
|
-
/* @__PURE__ */
|
|
2321
|
+
/* @__PURE__ */ React30.createElement(
|
|
2322
2322
|
Card,
|
|
2323
2323
|
{
|
|
2324
2324
|
className: cn(
|
|
@@ -2327,7 +2327,7 @@ var DestroyableCard = ({
|
|
|
2327
2327
|
),
|
|
2328
2328
|
dir: direction
|
|
2329
2329
|
},
|
|
2330
|
-
/* @__PURE__ */
|
|
2330
|
+
/* @__PURE__ */ React30.createElement(
|
|
2331
2331
|
"button",
|
|
2332
2332
|
{
|
|
2333
2333
|
type: "button",
|
|
@@ -2346,7 +2346,7 @@ var DestroyableCard = ({
|
|
|
2346
2346
|
}, 200);
|
|
2347
2347
|
}
|
|
2348
2348
|
},
|
|
2349
|
-
/* @__PURE__ */
|
|
2349
|
+
/* @__PURE__ */ React30.createElement(
|
|
2350
2350
|
"svg",
|
|
2351
2351
|
{
|
|
2352
2352
|
"aria-hidden": "true",
|
|
@@ -2354,7 +2354,7 @@ var DestroyableCard = ({
|
|
|
2354
2354
|
fill: "currentColor",
|
|
2355
2355
|
viewBox: "0 0 20 20"
|
|
2356
2356
|
},
|
|
2357
|
-
/* @__PURE__ */
|
|
2357
|
+
/* @__PURE__ */ React30.createElement(
|
|
2358
2358
|
"path",
|
|
2359
2359
|
{
|
|
2360
2360
|
fillRule: "evenodd",
|
|
@@ -2364,13 +2364,13 @@ var DestroyableCard = ({
|
|
|
2364
2364
|
)
|
|
2365
2365
|
)
|
|
2366
2366
|
),
|
|
2367
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ React30.createElement(CardContent, { headless: true }, props.children)
|
|
2368
2368
|
)
|
|
2369
2369
|
);
|
|
2370
2370
|
};
|
|
2371
2371
|
|
|
2372
2372
|
// components/elements/PinInput.tsx
|
|
2373
|
-
import
|
|
2373
|
+
import React31, { useEffect as useEffect10, useState as useState13 } from "react";
|
|
2374
2374
|
import clsx7 from "clsx";
|
|
2375
2375
|
var PinInput = ({
|
|
2376
2376
|
label,
|
|
@@ -2414,13 +2414,13 @@ var PinInput = ({
|
|
|
2414
2414
|
}
|
|
2415
2415
|
}
|
|
2416
2416
|
};
|
|
2417
|
-
return /* @__PURE__ */
|
|
2417
|
+
return /* @__PURE__ */ React31.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React31.createElement(
|
|
2418
2418
|
"div",
|
|
2419
2419
|
{
|
|
2420
2420
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
|
2421
2421
|
dir: "ltr"
|
|
2422
2422
|
},
|
|
2423
|
-
pin.map((value, index) => /* @__PURE__ */
|
|
2423
|
+
pin.map((value, index) => /* @__PURE__ */ React31.createElement(
|
|
2424
2424
|
"input",
|
|
2425
2425
|
{
|
|
2426
2426
|
key: index,
|
|
@@ -2439,11 +2439,11 @@ var PinInput = ({
|
|
|
2439
2439
|
...props
|
|
2440
2440
|
}
|
|
2441
2441
|
))
|
|
2442
|
-
), props.helperText && /* @__PURE__ */
|
|
2442
|
+
), props.helperText && /* @__PURE__ */ React31.createElement("p", { className: "hawa-my-0 hawa-text-xs hawa-text-helper-color" }, props.helperText));
|
|
2443
2443
|
};
|
|
2444
2444
|
|
|
2445
2445
|
// components/elements/FileDropzone.tsx
|
|
2446
|
-
import
|
|
2446
|
+
import React32, { useEffect as useEffect11, useState as useState14 } from "react";
|
|
2447
2447
|
import { useDropzone } from "react-dropzone";
|
|
2448
2448
|
import clsx8 from "clsx";
|
|
2449
2449
|
var FileDropzone = ({
|
|
@@ -2520,7 +2520,7 @@ var FileDropzone = ({
|
|
|
2520
2520
|
const errs = fileRejections.map((rej, i) => {
|
|
2521
2521
|
switch (rej.errors[0].code) {
|
|
2522
2522
|
case "file-too-large":
|
|
2523
|
-
return /* @__PURE__ */
|
|
2523
|
+
return /* @__PURE__ */ React32.createElement(
|
|
2524
2524
|
Alert,
|
|
2525
2525
|
{
|
|
2526
2526
|
key: i,
|
|
@@ -2530,7 +2530,7 @@ var FileDropzone = ({
|
|
|
2530
2530
|
}
|
|
2531
2531
|
);
|
|
2532
2532
|
case "too-many-files":
|
|
2533
|
-
return /* @__PURE__ */
|
|
2533
|
+
return /* @__PURE__ */ React32.createElement(
|
|
2534
2534
|
Alert,
|
|
2535
2535
|
{
|
|
2536
2536
|
key: i,
|
|
@@ -2540,7 +2540,7 @@ var FileDropzone = ({
|
|
|
2540
2540
|
}
|
|
2541
2541
|
);
|
|
2542
2542
|
case "file-invalid-type":
|
|
2543
|
-
return /* @__PURE__ */
|
|
2543
|
+
return /* @__PURE__ */ React32.createElement(
|
|
2544
2544
|
Alert,
|
|
2545
2545
|
{
|
|
2546
2546
|
key: i,
|
|
@@ -2550,7 +2550,7 @@ var FileDropzone = ({
|
|
|
2550
2550
|
}
|
|
2551
2551
|
);
|
|
2552
2552
|
default:
|
|
2553
|
-
return /* @__PURE__ */
|
|
2553
|
+
return /* @__PURE__ */ React32.createElement(
|
|
2554
2554
|
Alert,
|
|
2555
2555
|
{
|
|
2556
2556
|
key: i,
|
|
@@ -2561,7 +2561,7 @@ var FileDropzone = ({
|
|
|
2561
2561
|
);
|
|
2562
2562
|
}
|
|
2563
2563
|
});
|
|
2564
|
-
const thumbs = files?.map((file, index) => /* @__PURE__ */
|
|
2564
|
+
const thumbs = files?.map((file, index) => /* @__PURE__ */ React32.createElement("div", { className: "hawa-relative hawa-rounded", key: index }, /* @__PURE__ */ React32.createElement(
|
|
2565
2565
|
"button",
|
|
2566
2566
|
{
|
|
2567
2567
|
onClick: (e) => {
|
|
@@ -2574,7 +2574,7 @@ var FileDropzone = ({
|
|
|
2574
2574
|
className: "hawa-absolute hawa-left-0 hawa-ml-auto hawa-inline-flex hawa-items-center hawa-rounded-inner hawa-rounded-bl-none hawa-rounded-tr-none hawa-bg-gray-900 hawa-p-1.5 hawa-text-sm hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-200 hover:hawa-text-gray-900 dark:hover:hawa-bg-gray-600 dark:hover:hawa-text-white",
|
|
2575
2575
|
"data-modal-toggle": "defaultModal"
|
|
2576
2576
|
},
|
|
2577
|
-
/* @__PURE__ */
|
|
2577
|
+
/* @__PURE__ */ React32.createElement(
|
|
2578
2578
|
"svg",
|
|
2579
2579
|
{
|
|
2580
2580
|
"aria-hidden": "true",
|
|
@@ -2582,7 +2582,7 @@ var FileDropzone = ({
|
|
|
2582
2582
|
fill: "currentColor",
|
|
2583
2583
|
viewBox: "0 0 20 20"
|
|
2584
2584
|
},
|
|
2585
|
-
/* @__PURE__ */
|
|
2585
|
+
/* @__PURE__ */ React32.createElement(
|
|
2586
2586
|
"path",
|
|
2587
2587
|
{
|
|
2588
2588
|
fillRule: "evenodd",
|
|
@@ -2591,8 +2591,8 @@ var FileDropzone = ({
|
|
|
2591
2591
|
}
|
|
2592
2592
|
)
|
|
2593
2593
|
),
|
|
2594
|
-
/* @__PURE__ */
|
|
2595
|
-
), /* @__PURE__ */
|
|
2594
|
+
/* @__PURE__ */ React32.createElement("span", { className: "hawa-sr-only" }, "Close modal")
|
|
2595
|
+
), /* @__PURE__ */ React32.createElement(
|
|
2596
2596
|
"div",
|
|
2597
2597
|
{
|
|
2598
2598
|
style: {
|
|
@@ -2611,7 +2611,7 @@ var FileDropzone = ({
|
|
|
2611
2611
|
key: file.name
|
|
2612
2612
|
}
|
|
2613
2613
|
)));
|
|
2614
|
-
return /* @__PURE__ */
|
|
2614
|
+
return /* @__PURE__ */ React32.createElement("div", null, label && /* @__PURE__ */ React32.createElement("div", { className: "hawa-mb-2 hawa-block hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label), /* @__PURE__ */ React32.createElement(
|
|
2615
2615
|
"div",
|
|
2616
2616
|
{
|
|
2617
2617
|
className: clsx8(
|
|
@@ -2619,7 +2619,7 @@ var FileDropzone = ({
|
|
|
2619
2619
|
isDragActive ? "hawa-bg-muted" : "hawa-bg-muted/20 hover:hawa-bg-muted/50 "
|
|
2620
2620
|
)
|
|
2621
2621
|
},
|
|
2622
|
-
/* @__PURE__ */
|
|
2622
|
+
/* @__PURE__ */ React32.createElement("div", { ...getRootProps({}) }, /* @__PURE__ */ React32.createElement("p", { ...getInputProps() }), /* @__PURE__ */ React32.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4 hawa-text-center" }, /* @__PURE__ */ React32.createElement(
|
|
2623
2623
|
"svg",
|
|
2624
2624
|
{
|
|
2625
2625
|
stroke: "currentColor",
|
|
@@ -2631,28 +2631,28 @@ var FileDropzone = ({
|
|
|
2631
2631
|
height: "1.5em",
|
|
2632
2632
|
width: "1.5em"
|
|
2633
2633
|
},
|
|
2634
|
-
/* @__PURE__ */
|
|
2635
|
-
/* @__PURE__ */
|
|
2636
|
-
/* @__PURE__ */
|
|
2637
|
-
/* @__PURE__ */
|
|
2638
|
-
/* @__PURE__ */
|
|
2639
|
-
/* @__PURE__ */
|
|
2640
|
-
/* @__PURE__ */
|
|
2641
|
-
/* @__PURE__ */
|
|
2642
|
-
/* @__PURE__ */
|
|
2643
|
-
/* @__PURE__ */
|
|
2644
|
-
), typeof texts.clickHereToUpload === "function" ? texts.clickHereToUpload() : texts.clickHereToUpload), /* @__PURE__ */
|
|
2645
|
-
acceptedFiles.length > 0 && /* @__PURE__ */
|
|
2646
|
-
acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */
|
|
2647
|
-
/* @__PURE__ */
|
|
2648
|
-
), disclaimer && /* @__PURE__ */
|
|
2634
|
+
/* @__PURE__ */ React32.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
2635
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" }),
|
|
2636
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M13 13l9 3l-4 2l-2 4l-3 -9" }),
|
|
2637
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M3 3l0 .01" }),
|
|
2638
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M7 3l0 .01" }),
|
|
2639
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M11 3l0 .01" }),
|
|
2640
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M15 3l0 .01" }),
|
|
2641
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M3 7l0 .01" }),
|
|
2642
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M3 11l0 .01" }),
|
|
2643
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M3 15l0 .01" })
|
|
2644
|
+
), typeof texts.clickHereToUpload === "function" ? texts.clickHereToUpload() : texts.clickHereToUpload), /* @__PURE__ */ React32.createElement("div", { className: "hawa-pt-2 hawa-text-center hawa-text-xs hawa-select-none" }, texts.acceptedFileTypes, " ", accept.split(",")), /* @__PURE__ */ React32.createElement("div", { className: "hawa-pb-2 hawa-pt-1 hawa-text-center hawa-text-xs hawa-select-none" }, texts.maxFileSize, " ", max)),
|
|
2645
|
+
acceptedFiles.length > 0 && /* @__PURE__ */ React32.createElement("div", { className: "hawa-flex hawa-justify-center hawa-rounded-lg hawa-p-2 " }, /* @__PURE__ */ React32.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
|
|
2646
|
+
acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ React32.createElement("aside", { className: "hawa-flex hawa-flex-row hawa-flex-wrap hawa-justify-center hawa-gap-2 hawa-rounded-lg hawa-p-2" }, thumbs) : null,
|
|
2647
|
+
/* @__PURE__ */ React32.createElement("div", { className: "px-4" }, fileRejections[0]?.errors[0]?.code && errs)
|
|
2648
|
+
), disclaimer && /* @__PURE__ */ React32.createElement("div", { className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50" }, texts.disclaimer ?? "By uploading a file you agree to our", " ", /* @__PURE__ */ React32.createElement(
|
|
2649
2649
|
"a",
|
|
2650
2650
|
{
|
|
2651
2651
|
href: termsLink,
|
|
2652
2652
|
className: "clickable-link hawa-text-muted-foreground/50"
|
|
2653
2653
|
},
|
|
2654
2654
|
texts.terms ?? "Terms"
|
|
2655
|
-
), " ", texts.and ?? "and", " ", /* @__PURE__ */
|
|
2655
|
+
), " ", texts.and ?? "and", " ", /* @__PURE__ */ React32.createElement(
|
|
2656
2656
|
"a",
|
|
2657
2657
|
{
|
|
2658
2658
|
href: privacyLink,
|
|
@@ -2663,7 +2663,7 @@ var FileDropzone = ({
|
|
|
2663
2663
|
};
|
|
2664
2664
|
|
|
2665
2665
|
// components/elements/PhoneInput.tsx
|
|
2666
|
-
import
|
|
2666
|
+
import React34, { useState as useState15, useRef as useRef6, useEffect as useEffect12 } from "react";
|
|
2667
2667
|
|
|
2668
2668
|
// components/countries.ts
|
|
2669
2669
|
var countries = [
|
|
@@ -4360,15 +4360,15 @@ var countries_default = countries;
|
|
|
4360
4360
|
|
|
4361
4361
|
// components/elements/Select.tsx
|
|
4362
4362
|
import clsx9 from "clsx";
|
|
4363
|
-
import
|
|
4363
|
+
import React33 from "react";
|
|
4364
4364
|
import ReactSelect from "react-select";
|
|
4365
4365
|
import CreatableSelect from "react-select/creatable";
|
|
4366
4366
|
var Select = ({ labelKey = "label", ...props }) => {
|
|
4367
4367
|
const NoOption = () => {
|
|
4368
|
-
return /* @__PURE__ */
|
|
4368
|
+
return /* @__PURE__ */ React33.createElement("div", null, props.texts?.noOptions ?? "No Items Found");
|
|
4369
4369
|
};
|
|
4370
4370
|
const Control = ({ children, innerProps, innerRef }) => {
|
|
4371
|
-
return /* @__PURE__ */
|
|
4371
|
+
return /* @__PURE__ */ React33.createElement(
|
|
4372
4372
|
"div",
|
|
4373
4373
|
{
|
|
4374
4374
|
ref: innerRef,
|
|
@@ -4381,7 +4381,7 @@ var Select = ({ labelKey = "label", ...props }) => {
|
|
|
4381
4381
|
);
|
|
4382
4382
|
};
|
|
4383
4383
|
const Option = ({ children, innerProps, innerRef }) => {
|
|
4384
|
-
return /* @__PURE__ */
|
|
4384
|
+
return /* @__PURE__ */ React33.createElement(
|
|
4385
4385
|
"div",
|
|
4386
4386
|
{
|
|
4387
4387
|
ref: innerRef,
|
|
@@ -4402,7 +4402,7 @@ var Select = ({ labelKey = "label", ...props }) => {
|
|
|
4402
4402
|
...menuProps
|
|
4403
4403
|
}) => {
|
|
4404
4404
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
|
4405
|
-
return /* @__PURE__ */
|
|
4405
|
+
return /* @__PURE__ */ React33.createElement(
|
|
4406
4406
|
"div",
|
|
4407
4407
|
{
|
|
4408
4408
|
className: cn(
|
|
@@ -4416,7 +4416,7 @@ var Select = ({ labelKey = "label", ...props }) => {
|
|
|
4416
4416
|
children
|
|
4417
4417
|
);
|
|
4418
4418
|
};
|
|
4419
|
-
return /* @__PURE__ */
|
|
4419
|
+
return /* @__PURE__ */ React33.createElement(
|
|
4420
4420
|
"div",
|
|
4421
4421
|
{
|
|
4422
4422
|
className: cn(
|
|
@@ -4424,10 +4424,10 @@ var Select = ({ labelKey = "label", ...props }) => {
|
|
|
4424
4424
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
|
4425
4425
|
)
|
|
4426
4426
|
},
|
|
4427
|
-
props.label && /* @__PURE__ */
|
|
4428
|
-
props.isLoading ? /* @__PURE__ */
|
|
4427
|
+
props.label && /* @__PURE__ */ React33.createElement(Label2, null, props.label),
|
|
4428
|
+
props.isLoading ? /* @__PURE__ */ React33.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
|
4429
4429
|
// TODO: enable keyboard to go to the next item in the list
|
|
4430
|
-
/* @__PURE__ */
|
|
4430
|
+
/* @__PURE__ */ React33.createElement(
|
|
4431
4431
|
ReactSelect,
|
|
4432
4432
|
{
|
|
4433
4433
|
noOptionsMessage: NoOption,
|
|
@@ -4464,7 +4464,7 @@ var Select = ({ labelKey = "label", ...props }) => {
|
|
|
4464
4464
|
isSearchable: props.isSearchable
|
|
4465
4465
|
}
|
|
4466
4466
|
)
|
|
4467
|
-
) : /* @__PURE__ */
|
|
4467
|
+
) : /* @__PURE__ */ React33.createElement(
|
|
4468
4468
|
CreatableSelect,
|
|
4469
4469
|
{
|
|
4470
4470
|
formatCreateLabel: (inputValue) => `${props.texts?.createLabel ?? "Create"} "${inputValue}"`,
|
|
@@ -4491,7 +4491,7 @@ var Select = ({ labelKey = "label", ...props }) => {
|
|
|
4491
4491
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
|
4492
4492
|
}
|
|
4493
4493
|
),
|
|
4494
|
-
props.helperText && /* @__PURE__ */
|
|
4494
|
+
props.helperText && /* @__PURE__ */ React33.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText)
|
|
4495
4495
|
);
|
|
4496
4496
|
};
|
|
4497
4497
|
|
|
@@ -4513,7 +4513,7 @@ var PhoneInput = (props) => {
|
|
|
4513
4513
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
|
4514
4514
|
}
|
|
4515
4515
|
};
|
|
4516
|
-
return /* @__PURE__ */
|
|
4516
|
+
return /* @__PURE__ */ React34.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, props.label && /* @__PURE__ */ React34.createElement(Label2, null, props.label), /* @__PURE__ */ React34.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full" }, /* @__PURE__ */ React34.createElement(
|
|
4517
4517
|
Select,
|
|
4518
4518
|
{
|
|
4519
4519
|
width: "fit",
|
|
@@ -4528,7 +4528,7 @@ var PhoneInput = (props) => {
|
|
|
4528
4528
|
value: countryCode?.label,
|
|
4529
4529
|
onChange: setCountryCode
|
|
4530
4530
|
}
|
|
4531
|
-
), /* @__PURE__ */
|
|
4531
|
+
), /* @__PURE__ */ React34.createElement("div", { className: "hawa-flex hawa-max-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-w-full hawa-gap-0" }, /* @__PURE__ */ React34.createElement(
|
|
4532
4532
|
"input",
|
|
4533
4533
|
{
|
|
4534
4534
|
ref: inputRef,
|
|
@@ -4541,7 +4541,7 @@ var PhoneInput = (props) => {
|
|
|
4541
4541
|
type: "tel",
|
|
4542
4542
|
placeholder: "531045453"
|
|
4543
4543
|
}
|
|
4544
|
-
))), /* @__PURE__ */
|
|
4544
|
+
))), /* @__PURE__ */ React34.createElement(
|
|
4545
4545
|
"p",
|
|
4546
4546
|
{
|
|
4547
4547
|
className: cn(
|
|
@@ -4556,75 +4556,75 @@ var PhoneInput = (props) => {
|
|
|
4556
4556
|
}
|
|
4557
4557
|
|
|
4558
4558
|
// components/elements/AppStores.tsx
|
|
4559
|
-
import
|
|
4559
|
+
import React35 from "react";
|
|
4560
4560
|
var AppStores = (props) => {
|
|
4561
|
-
return /* @__PURE__ */
|
|
4561
|
+
return /* @__PURE__ */ React35.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ React35.createElement("div", null, props.store === "apple" ? props.mode === "dark" ? /* @__PURE__ */ React35.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white" }, /* @__PURE__ */ React35.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React35.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React35.createElement(
|
|
4562
4562
|
"path",
|
|
4563
4563
|
{
|
|
4564
4564
|
fill: "currentColor",
|
|
4565
4565
|
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
|
4566
4566
|
}
|
|
4567
|
-
))), /* @__PURE__ */
|
|
4567
|
+
))), /* @__PURE__ */ React35.createElement("div", null, /* @__PURE__ */ React35.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React35.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ React35.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-transparent hawa-text-black" }, /* @__PURE__ */ React35.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React35.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React35.createElement(
|
|
4568
4568
|
"path",
|
|
4569
4569
|
{
|
|
4570
4570
|
fill: "currentColor",
|
|
4571
4571
|
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
|
4572
4572
|
}
|
|
4573
|
-
))), /* @__PURE__ */
|
|
4573
|
+
))), /* @__PURE__ */ React35.createElement("div", null, /* @__PURE__ */ React35.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React35.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold" }, "App Store"))) : props.mode === "dark" ? /* @__PURE__ */ React35.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white" }, /* @__PURE__ */ React35.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React35.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React35.createElement(
|
|
4574
4574
|
"path",
|
|
4575
4575
|
{
|
|
4576
4576
|
fill: "#FFD400",
|
|
4577
4577
|
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
|
4578
4578
|
}
|
|
4579
|
-
), /* @__PURE__ */
|
|
4579
|
+
), /* @__PURE__ */ React35.createElement(
|
|
4580
4580
|
"path",
|
|
4581
4581
|
{
|
|
4582
4582
|
fill: "#FF3333",
|
|
4583
4583
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
|
4584
4584
|
}
|
|
4585
|
-
), /* @__PURE__ */
|
|
4585
|
+
), /* @__PURE__ */ React35.createElement(
|
|
4586
4586
|
"path",
|
|
4587
4587
|
{
|
|
4588
4588
|
fill: "#48FF48",
|
|
4589
4589
|
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
|
4590
4590
|
}
|
|
4591
|
-
), /* @__PURE__ */
|
|
4591
|
+
), /* @__PURE__ */ React35.createElement(
|
|
4592
4592
|
"path",
|
|
4593
4593
|
{
|
|
4594
4594
|
fill: "#3BCCFF",
|
|
4595
4595
|
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
|
4596
4596
|
}
|
|
4597
|
-
))), /* @__PURE__ */
|
|
4597
|
+
))), /* @__PURE__ */ React35.createElement("div", null, /* @__PURE__ */ React35.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ React35.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold" }, "Google Play"))) : /* @__PURE__ */ React35.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-white hawa-text-black" }, /* @__PURE__ */ React35.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React35.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React35.createElement(
|
|
4598
4598
|
"path",
|
|
4599
4599
|
{
|
|
4600
4600
|
fill: "#FFD400",
|
|
4601
4601
|
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
|
4602
4602
|
}
|
|
4603
|
-
), /* @__PURE__ */
|
|
4603
|
+
), /* @__PURE__ */ React35.createElement(
|
|
4604
4604
|
"path",
|
|
4605
4605
|
{
|
|
4606
4606
|
fill: "#FF3333",
|
|
4607
4607
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
|
4608
4608
|
}
|
|
4609
|
-
), /* @__PURE__ */
|
|
4609
|
+
), /* @__PURE__ */ React35.createElement(
|
|
4610
4610
|
"path",
|
|
4611
4611
|
{
|
|
4612
4612
|
fill: "#48FF48",
|
|
4613
4613
|
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
|
4614
4614
|
}
|
|
4615
|
-
), /* @__PURE__ */
|
|
4615
|
+
), /* @__PURE__ */ React35.createElement(
|
|
4616
4616
|
"path",
|
|
4617
4617
|
{
|
|
4618
4618
|
fill: "#3BCCFF",
|
|
4619
4619
|
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
|
4620
4620
|
}
|
|
4621
|
-
))), /* @__PURE__ */
|
|
4621
|
+
))), /* @__PURE__ */ React35.createElement("div", null, /* @__PURE__ */ React35.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ React35.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
|
4622
4622
|
};
|
|
4623
4623
|
|
|
4624
4624
|
// components/elements/SortButton.tsx
|
|
4625
|
-
import
|
|
4625
|
+
import React36 from "react";
|
|
4626
4626
|
var SortButton = (props) => {
|
|
4627
|
-
return /* @__PURE__ */
|
|
4627
|
+
return /* @__PURE__ */ React36.createElement(
|
|
4628
4628
|
Button,
|
|
4629
4629
|
{
|
|
4630
4630
|
variant: "ghost",
|
|
@@ -4636,7 +4636,7 @@ var SortButton = (props) => {
|
|
|
4636
4636
|
onClick: props.onSort
|
|
4637
4637
|
},
|
|
4638
4638
|
props.label,
|
|
4639
|
-
/* @__PURE__ */
|
|
4639
|
+
/* @__PURE__ */ React36.createElement(
|
|
4640
4640
|
"svg",
|
|
4641
4641
|
{
|
|
4642
4642
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4648,16 +4648,16 @@ var SortButton = (props) => {
|
|
|
4648
4648
|
strokeLinejoin: "round",
|
|
4649
4649
|
className: props.condensed ? "hawa-h-3 hawa-w-3" : "hawa-h-4 hawa-w-4"
|
|
4650
4650
|
},
|
|
4651
|
-
/* @__PURE__ */
|
|
4652
|
-
/* @__PURE__ */
|
|
4653
|
-
/* @__PURE__ */
|
|
4654
|
-
/* @__PURE__ */
|
|
4651
|
+
/* @__PURE__ */ React36.createElement("path", { d: "m21 16-4 4-4-4" }),
|
|
4652
|
+
/* @__PURE__ */ React36.createElement("path", { d: "M17 20V4" }),
|
|
4653
|
+
/* @__PURE__ */ React36.createElement("path", { d: "m3 8 4-4 4 4" }),
|
|
4654
|
+
/* @__PURE__ */ React36.createElement("path", { d: "M7 4v16" })
|
|
4655
4655
|
)
|
|
4656
4656
|
);
|
|
4657
4657
|
};
|
|
4658
4658
|
|
|
4659
4659
|
// components/elements/DataTable.tsx
|
|
4660
|
-
import * as
|
|
4660
|
+
import * as React39 from "react";
|
|
4661
4661
|
import {
|
|
4662
4662
|
flexRender,
|
|
4663
4663
|
getCoreRowModel,
|
|
@@ -4669,8 +4669,8 @@ import {
|
|
|
4669
4669
|
} from "@tanstack/react-table";
|
|
4670
4670
|
|
|
4671
4671
|
// components/elements/Table.tsx
|
|
4672
|
-
import * as
|
|
4673
|
-
var Table =
|
|
4672
|
+
import * as React37 from "react";
|
|
4673
|
+
var Table = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React37.createElement(
|
|
4674
4674
|
"table",
|
|
4675
4675
|
{
|
|
4676
4676
|
ref,
|
|
@@ -4679,7 +4679,7 @@ var Table = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
4679
4679
|
}
|
|
4680
4680
|
)));
|
|
4681
4681
|
Table.displayName = "Table";
|
|
4682
|
-
var TableHeader =
|
|
4682
|
+
var TableHeader = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
4683
4683
|
"thead",
|
|
4684
4684
|
{
|
|
4685
4685
|
ref,
|
|
@@ -4688,8 +4688,8 @@ var TableHeader = React38.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4688
4688
|
}
|
|
4689
4689
|
));
|
|
4690
4690
|
TableHeader.displayName = "TableHeader";
|
|
4691
|
-
var TableHead =
|
|
4692
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
4691
|
+
var TableHead = React37.forwardRef(
|
|
4692
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
4693
4693
|
"th",
|
|
4694
4694
|
{
|
|
4695
4695
|
ref,
|
|
@@ -4708,7 +4708,7 @@ var TableHead = React38.forwardRef(
|
|
|
4708
4708
|
)
|
|
4709
4709
|
);
|
|
4710
4710
|
TableHead.displayName = "TableHead";
|
|
4711
|
-
var TableBody =
|
|
4711
|
+
var TableBody = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
4712
4712
|
"tbody",
|
|
4713
4713
|
{
|
|
4714
4714
|
ref,
|
|
@@ -4721,7 +4721,7 @@ var TableBody = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4721
4721
|
}
|
|
4722
4722
|
));
|
|
4723
4723
|
TableBody.displayName = "TableBody";
|
|
4724
|
-
var TableFooter =
|
|
4724
|
+
var TableFooter = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
4725
4725
|
"tfoot",
|
|
4726
4726
|
{
|
|
4727
4727
|
ref,
|
|
@@ -4733,7 +4733,7 @@ var TableFooter = React38.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4733
4733
|
}
|
|
4734
4734
|
));
|
|
4735
4735
|
TableFooter.displayName = "TableFooter";
|
|
4736
|
-
var TableRow =
|
|
4736
|
+
var TableRow = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
4737
4737
|
"tr",
|
|
4738
4738
|
{
|
|
4739
4739
|
ref,
|
|
@@ -4749,8 +4749,8 @@ var TableRow = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4749
4749
|
}
|
|
4750
4750
|
));
|
|
4751
4751
|
TableRow.displayName = "TableRow";
|
|
4752
|
-
var TableCell =
|
|
4753
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
4752
|
+
var TableCell = React37.forwardRef(
|
|
4753
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
4754
4754
|
"td",
|
|
4755
4755
|
{
|
|
4756
4756
|
ref,
|
|
@@ -4768,7 +4768,7 @@ var TableCell = React38.forwardRef(
|
|
|
4768
4768
|
)
|
|
4769
4769
|
);
|
|
4770
4770
|
TableCell.displayName = "TableCell";
|
|
4771
|
-
var TableCaption =
|
|
4771
|
+
var TableCaption = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React37.createElement(
|
|
4772
4772
|
"caption",
|
|
4773
4773
|
{
|
|
4774
4774
|
ref,
|
|
@@ -4782,7 +4782,7 @@ var TableCaption = React38.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4782
4782
|
TableCaption.displayName = "TableCaption";
|
|
4783
4783
|
|
|
4784
4784
|
// components/elements/Input.tsx
|
|
4785
|
-
import
|
|
4785
|
+
import React38 from "react";
|
|
4786
4786
|
var Input = ({
|
|
4787
4787
|
margin = "none",
|
|
4788
4788
|
width = "full",
|
|
@@ -4803,7 +4803,7 @@ var Input = ({
|
|
|
4803
4803
|
};
|
|
4804
4804
|
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
|
4805
4805
|
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
|
4806
|
-
return /* @__PURE__ */
|
|
4806
|
+
return /* @__PURE__ */ React38.createElement(
|
|
4807
4807
|
"div",
|
|
4808
4808
|
{
|
|
4809
4809
|
className: cn(
|
|
@@ -4814,7 +4814,7 @@ var Input = ({
|
|
|
4814
4814
|
"hawa-w-full hawa-gap-2"
|
|
4815
4815
|
)
|
|
4816
4816
|
},
|
|
4817
|
-
props.label && /* @__PURE__ */
|
|
4817
|
+
props.label && /* @__PURE__ */ React38.createElement(
|
|
4818
4818
|
Label2,
|
|
4819
4819
|
{
|
|
4820
4820
|
htmlFor: props.id,
|
|
@@ -4824,7 +4824,7 @@ var Input = ({
|
|
|
4824
4824
|
},
|
|
4825
4825
|
props.label
|
|
4826
4826
|
),
|
|
4827
|
-
props.isLoading ? /* @__PURE__ */
|
|
4827
|
+
props.isLoading ? /* @__PURE__ */ React38.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React38.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement(
|
|
4828
4828
|
"div",
|
|
4829
4829
|
{
|
|
4830
4830
|
className: cn(
|
|
@@ -4832,7 +4832,7 @@ var Input = ({
|
|
|
4832
4832
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
4833
4833
|
)
|
|
4834
4834
|
}
|
|
4835
|
-
), /* @__PURE__ */
|
|
4835
|
+
), /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement("div", { className: cn("hawa-relative") }, props.icon && /* @__PURE__ */ React38.createElement("div", { className: "hawa-absolute hawa-left-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.icon), /* @__PURE__ */ React38.createElement(
|
|
4836
4836
|
"input",
|
|
4837
4837
|
{
|
|
4838
4838
|
required: true,
|
|
@@ -4854,7 +4854,7 @@ var Input = ({
|
|
|
4854
4854
|
disabled: preview,
|
|
4855
4855
|
style: { height: 40 }
|
|
4856
4856
|
}
|
|
4857
|
-
)), props.iconInside && /* @__PURE__ */
|
|
4857
|
+
)), props.iconInside && /* @__PURE__ */ React38.createElement("div", { className: "hawa-absolute hawa-right-1 hawa-top-[41px] hawa-mx-1 hawa--translate-y-1/2" }, props.iconInside), !forceHideHelperText && /* @__PURE__ */ React38.createElement(
|
|
4858
4858
|
"p",
|
|
4859
4859
|
{
|
|
4860
4860
|
className: cn(
|
|
@@ -4874,16 +4874,16 @@ var DataTable = ({
|
|
|
4874
4874
|
paginationPosition = "bottom",
|
|
4875
4875
|
...props
|
|
4876
4876
|
}) => {
|
|
4877
|
-
const [sorting, setSorting] =
|
|
4877
|
+
const [sorting, setSorting] = React39.useState([
|
|
4878
4878
|
{ id: props.defaultSort || "", desc: false }
|
|
4879
4879
|
]);
|
|
4880
|
-
const [columnFilters, setColumnFilters] =
|
|
4880
|
+
const [columnFilters, setColumnFilters] = React39.useState(
|
|
4881
4881
|
[]
|
|
4882
4882
|
);
|
|
4883
|
-
const [globalFilter, setGlobalFilter] =
|
|
4884
|
-
const [expanded, setExpanded] =
|
|
4885
|
-
const [columnVisibility, setColumnVisibility] =
|
|
4886
|
-
const [rowSelection, setRowSelection] =
|
|
4883
|
+
const [globalFilter, setGlobalFilter] = React39.useState("");
|
|
4884
|
+
const [expanded, setExpanded] = React39.useState({});
|
|
4885
|
+
const [columnVisibility, setColumnVisibility] = React39.useState({});
|
|
4886
|
+
const [rowSelection, setRowSelection] = React39.useState({});
|
|
4887
4887
|
const table = useReactTable({
|
|
4888
4888
|
data,
|
|
4889
4889
|
columns,
|
|
@@ -4912,7 +4912,7 @@ var DataTable = ({
|
|
|
4912
4912
|
label: `${item} / ${pageText}`,
|
|
4913
4913
|
value: item
|
|
4914
4914
|
}));
|
|
4915
|
-
return /* @__PURE__ */
|
|
4915
|
+
return /* @__PURE__ */ React39.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React39.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ React39.createElement(
|
|
4916
4916
|
Input,
|
|
4917
4917
|
{
|
|
4918
4918
|
forceHideHelperText: true,
|
|
@@ -4922,7 +4922,7 @@ var DataTable = ({
|
|
|
4922
4922
|
margin: "none",
|
|
4923
4923
|
className: "hawa-w-full md:hawa-max-w-sm"
|
|
4924
4924
|
}
|
|
4925
|
-
)), props.isLoading ? /* @__PURE__ */
|
|
4925
|
+
)), props.isLoading ? /* @__PURE__ */ React39.createElement(Skeleton, { className: "hawa-h-[130px] hawa-w-full" }) : /* @__PURE__ */ React39.createElement(
|
|
4926
4926
|
"div",
|
|
4927
4927
|
{
|
|
4928
4928
|
className: cn(
|
|
@@ -4930,9 +4930,9 @@ var DataTable = ({
|
|
|
4930
4930
|
paginationPosition === "top" ? "hawa-flex-col-reverse" : "hawa-flex-col"
|
|
4931
4931
|
)
|
|
4932
4932
|
},
|
|
4933
|
-
/* @__PURE__ */
|
|
4933
|
+
/* @__PURE__ */ React39.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React39.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React39.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React39.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
|
4934
4934
|
let isSortable = header.column.columnDef.meta?.sortable;
|
|
4935
|
-
return /* @__PURE__ */
|
|
4935
|
+
return /* @__PURE__ */ React39.createElement(
|
|
4936
4936
|
TableHead,
|
|
4937
4937
|
{
|
|
4938
4938
|
dir: props.direction,
|
|
@@ -4945,13 +4945,13 @@ var DataTable = ({
|
|
|
4945
4945
|
header.getContext()
|
|
4946
4946
|
)
|
|
4947
4947
|
);
|
|
4948
|
-
})))), /* @__PURE__ */
|
|
4948
|
+
})))), /* @__PURE__ */ React39.createElement(TableBody, null, table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React39.createElement(
|
|
4949
4949
|
TableRow,
|
|
4950
4950
|
{
|
|
4951
4951
|
key: row.id,
|
|
4952
4952
|
"data-state": row.getIsSelected() && "selected"
|
|
4953
4953
|
},
|
|
4954
|
-
row.getVisibleCells().map((cell) => /* @__PURE__ */
|
|
4954
|
+
row.getVisibleCells().map((cell) => /* @__PURE__ */ React39.createElement(
|
|
4955
4955
|
TableCell,
|
|
4956
4956
|
{
|
|
4957
4957
|
dir: props.direction,
|
|
@@ -4963,7 +4963,7 @@ var DataTable = ({
|
|
|
4963
4963
|
cell.getContext()
|
|
4964
4964
|
)
|
|
4965
4965
|
))
|
|
4966
|
-
)) : /* @__PURE__ */
|
|
4966
|
+
)) : /* @__PURE__ */ React39.createElement(TableRow, null, /* @__PURE__ */ React39.createElement(
|
|
4967
4967
|
TableCell,
|
|
4968
4968
|
{
|
|
4969
4969
|
colSpan: columns.length,
|
|
@@ -4971,16 +4971,16 @@ var DataTable = ({
|
|
|
4971
4971
|
},
|
|
4972
4972
|
props.texts?.noData
|
|
4973
4973
|
))))),
|
|
4974
|
-
/* @__PURE__ */
|
|
4974
|
+
/* @__PURE__ */ React39.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between" }, !props.showCount && /* @__PURE__ */ React39.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }), props.showCount && /* @__PURE__ */ React39.createElement(
|
|
4975
4975
|
"div",
|
|
4976
4976
|
{
|
|
4977
4977
|
className: "text-sm text-muted-foreground",
|
|
4978
4978
|
dir: props.direction
|
|
4979
4979
|
},
|
|
4980
|
-
/* @__PURE__ */
|
|
4980
|
+
/* @__PURE__ */ React39.createElement("span", null, props.texts?.total),
|
|
4981
4981
|
" ",
|
|
4982
|
-
/* @__PURE__ */
|
|
4983
|
-
), table.getPageCount() !== 0 && /* @__PURE__ */
|
|
4982
|
+
/* @__PURE__ */ React39.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
|
|
4983
|
+
), table.getPageCount() !== 0 && /* @__PURE__ */ React39.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, props.enableGoTo && /* @__PURE__ */ React39.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React39.createElement("span", { className: "hawa-text-sm" }, props.texts?.goTo), /* @__PURE__ */ React39.createElement(
|
|
4984
4984
|
"input",
|
|
4985
4985
|
{
|
|
4986
4986
|
max: table.getPageCount(),
|
|
@@ -4997,7 +4997,7 @@ var DataTable = ({
|
|
|
4997
4997
|
},
|
|
4998
4998
|
className: "hawa-w-16 hawa-text-sm hawa-border hawa-rounded hawa-p-1 hawa-px-2"
|
|
4999
4999
|
}
|
|
5000
|
-
)), /* @__PURE__ */
|
|
5000
|
+
)), /* @__PURE__ */ React39.createElement(
|
|
5001
5001
|
DropdownMenu,
|
|
5002
5002
|
{
|
|
5003
5003
|
size: "sm",
|
|
@@ -5010,7 +5010,7 @@ var DataTable = ({
|
|
|
5010
5010
|
{ label: `40 / ${pageText}`, value: 40 },
|
|
5011
5011
|
{ label: `50 / ${pageText}`, value: 50 }
|
|
5012
5012
|
],
|
|
5013
|
-
trigger: /* @__PURE__ */
|
|
5013
|
+
trigger: /* @__PURE__ */ React39.createElement(
|
|
5014
5014
|
Button,
|
|
5015
5015
|
{
|
|
5016
5016
|
variant: "outline",
|
|
@@ -5021,7 +5021,7 @@ var DataTable = ({
|
|
|
5021
5021
|
),
|
|
5022
5022
|
onItemSelect: (e) => table.setPageSize(Number(e))
|
|
5023
5023
|
}
|
|
5024
|
-
), /* @__PURE__ */
|
|
5024
|
+
), /* @__PURE__ */ React39.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React39.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React39.createElement("div", null, props.texts?.page), /* @__PURE__ */ React39.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React39.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React39.createElement("span", null, props.texts?.of), /* @__PURE__ */ React39.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React39.createElement(
|
|
5025
5025
|
Button,
|
|
5026
5026
|
{
|
|
5027
5027
|
"aria-label": "Previous Table Page",
|
|
@@ -5031,7 +5031,7 @@ var DataTable = ({
|
|
|
5031
5031
|
disabled: !table.getCanPreviousPage(),
|
|
5032
5032
|
className: cn(props.direction === "ltr" && "hawa-rotate-180")
|
|
5033
5033
|
},
|
|
5034
|
-
/* @__PURE__ */
|
|
5034
|
+
/* @__PURE__ */ React39.createElement(
|
|
5035
5035
|
"svg",
|
|
5036
5036
|
{
|
|
5037
5037
|
"aria-label": "Chevron Right Icon",
|
|
@@ -5042,7 +5042,7 @@ var DataTable = ({
|
|
|
5042
5042
|
height: "1em",
|
|
5043
5043
|
width: "1em"
|
|
5044
5044
|
},
|
|
5045
|
-
/* @__PURE__ */
|
|
5045
|
+
/* @__PURE__ */ React39.createElement(
|
|
5046
5046
|
"path",
|
|
5047
5047
|
{
|
|
5048
5048
|
fillRule: "evenodd",
|
|
@@ -5050,7 +5050,7 @@ var DataTable = ({
|
|
|
5050
5050
|
}
|
|
5051
5051
|
)
|
|
5052
5052
|
)
|
|
5053
|
-
), /* @__PURE__ */
|
|
5053
|
+
), /* @__PURE__ */ React39.createElement(
|
|
5054
5054
|
Button,
|
|
5055
5055
|
{
|
|
5056
5056
|
"aria-label": "Next Table Page",
|
|
@@ -5060,7 +5060,7 @@ var DataTable = ({
|
|
|
5060
5060
|
disabled: !table.getCanNextPage(),
|
|
5061
5061
|
className: cn(props.direction === "rtl" && "hawa-rotate-180")
|
|
5062
5062
|
},
|
|
5063
|
-
/* @__PURE__ */
|
|
5063
|
+
/* @__PURE__ */ React39.createElement(
|
|
5064
5064
|
"svg",
|
|
5065
5065
|
{
|
|
5066
5066
|
"aria-label": "Chevron Right Icon",
|
|
@@ -5071,7 +5071,7 @@ var DataTable = ({
|
|
|
5071
5071
|
strokeWidth: "0",
|
|
5072
5072
|
viewBox: "0 0 16 16"
|
|
5073
5073
|
},
|
|
5074
|
-
/* @__PURE__ */
|
|
5074
|
+
/* @__PURE__ */ React39.createElement(
|
|
5075
5075
|
"path",
|
|
5076
5076
|
{
|
|
5077
5077
|
fillRule: "evenodd",
|
|
@@ -5084,7 +5084,7 @@ var DataTable = ({
|
|
|
5084
5084
|
};
|
|
5085
5085
|
|
|
5086
5086
|
// components/elements/SimpleTable.tsx
|
|
5087
|
-
import * as
|
|
5087
|
+
import * as React40 from "react";
|
|
5088
5088
|
import {
|
|
5089
5089
|
flexRender as flexRender2,
|
|
5090
5090
|
getCoreRowModel as getCoreRowModel2,
|
|
@@ -5100,8 +5100,8 @@ var SimpleTable = ({
|
|
|
5100
5100
|
columns,
|
|
5101
5101
|
getCoreRowModel: getCoreRowModel2()
|
|
5102
5102
|
});
|
|
5103
|
-
return /* @__PURE__ */
|
|
5104
|
-
return /* @__PURE__ */
|
|
5103
|
+
return /* @__PURE__ */ React40.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, props.isLoading ? /* @__PURE__ */ React40.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React40.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React40.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React40.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
|
5104
|
+
return /* @__PURE__ */ React40.createElement(
|
|
5105
5105
|
TableHead,
|
|
5106
5106
|
{
|
|
5107
5107
|
condensed: props.condensed,
|
|
@@ -5113,13 +5113,13 @@ var SimpleTable = ({
|
|
|
5113
5113
|
header.getContext()
|
|
5114
5114
|
)
|
|
5115
5115
|
);
|
|
5116
|
-
})))), /* @__PURE__ */
|
|
5116
|
+
})))), /* @__PURE__ */ React40.createElement(TableBody, null, table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React40.createElement(
|
|
5117
5117
|
TableRow,
|
|
5118
5118
|
{
|
|
5119
5119
|
key: row.id,
|
|
5120
5120
|
"data-state": row.getIsSelected() && "selected"
|
|
5121
5121
|
},
|
|
5122
|
-
row.getVisibleCells().map((cell) => /* @__PURE__ */
|
|
5122
|
+
row.getVisibleCells().map((cell) => /* @__PURE__ */ React40.createElement(
|
|
5123
5123
|
TableCell,
|
|
5124
5124
|
{
|
|
5125
5125
|
dir: props.direction,
|
|
@@ -5131,7 +5131,7 @@ var SimpleTable = ({
|
|
|
5131
5131
|
cell.getContext()
|
|
5132
5132
|
)
|
|
5133
5133
|
))
|
|
5134
|
-
)) : /* @__PURE__ */
|
|
5134
|
+
)) : /* @__PURE__ */ React40.createElement(TableRow, null, /* @__PURE__ */ React40.createElement(
|
|
5135
5135
|
TableCell,
|
|
5136
5136
|
{
|
|
5137
5137
|
colSpan: columns.length,
|
|
@@ -5142,9 +5142,9 @@ var SimpleTable = ({
|
|
|
5142
5142
|
};
|
|
5143
5143
|
|
|
5144
5144
|
// components/elements/Accordion.tsx
|
|
5145
|
-
import * as
|
|
5145
|
+
import * as React41 from "react";
|
|
5146
5146
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
5147
|
-
var Accordion =
|
|
5147
|
+
var Accordion = React41.forwardRef(
|
|
5148
5148
|
({
|
|
5149
5149
|
items,
|
|
5150
5150
|
itemClassNames,
|
|
@@ -5152,21 +5152,21 @@ var Accordion = React42.forwardRef(
|
|
|
5152
5152
|
contentclassNames,
|
|
5153
5153
|
className,
|
|
5154
5154
|
...props
|
|
5155
|
-
}, ref) => /* @__PURE__ */
|
|
5155
|
+
}, ref) => /* @__PURE__ */ React41.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, items.map((item, index) => /* @__PURE__ */ React41.createElement(
|
|
5156
5156
|
AccordionItem,
|
|
5157
5157
|
{
|
|
5158
5158
|
className: itemClassNames,
|
|
5159
5159
|
key: index,
|
|
5160
5160
|
value: `item-${index}`
|
|
5161
5161
|
},
|
|
5162
|
-
/* @__PURE__ */
|
|
5163
|
-
/* @__PURE__ */
|
|
5162
|
+
/* @__PURE__ */ React41.createElement(AccordionTrigger, { className: triggerclassNames }, item.trigger),
|
|
5163
|
+
/* @__PURE__ */ React41.createElement(AccordionContent, { className: contentclassNames }, item.content)
|
|
5164
5164
|
)))
|
|
5165
5165
|
);
|
|
5166
5166
|
Accordion.displayName = "Accordion";
|
|
5167
|
-
var AccordionItem =
|
|
5167
|
+
var AccordionItem = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
|
|
5168
5168
|
AccordionItem.displayName = "AccordionItem";
|
|
5169
|
-
var AccordionTrigger =
|
|
5169
|
+
var AccordionTrigger = React41.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React41.createElement(AccordionPrimitive.Header, { className: "hawa-flex" }, /* @__PURE__ */ React41.createElement(
|
|
5170
5170
|
AccordionPrimitive.Trigger,
|
|
5171
5171
|
{
|
|
5172
5172
|
ref,
|
|
@@ -5177,7 +5177,7 @@ var AccordionTrigger = React42.forwardRef(({ className, children, ...props }, re
|
|
|
5177
5177
|
...props
|
|
5178
5178
|
},
|
|
5179
5179
|
children,
|
|
5180
|
-
/* @__PURE__ */
|
|
5180
|
+
/* @__PURE__ */ React41.createElement(
|
|
5181
5181
|
"svg",
|
|
5182
5182
|
{
|
|
5183
5183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5191,11 +5191,11 @@ var AccordionTrigger = React42.forwardRef(({ className, children, ...props }, re
|
|
|
5191
5191
|
strokeLinejoin: "round",
|
|
5192
5192
|
className: "hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
|
5193
5193
|
},
|
|
5194
|
-
/* @__PURE__ */
|
|
5194
|
+
/* @__PURE__ */ React41.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
5195
5195
|
)
|
|
5196
5196
|
)));
|
|
5197
5197
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
5198
|
-
var AccordionContent =
|
|
5198
|
+
var AccordionContent = React41.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
|
5199
5199
|
AccordionPrimitive.Content,
|
|
5200
5200
|
{
|
|
5201
5201
|
ref,
|
|
@@ -5205,18 +5205,18 @@ var AccordionContent = React42.forwardRef(({ className, children, ...props }, re
|
|
|
5205
5205
|
),
|
|
5206
5206
|
...props
|
|
5207
5207
|
},
|
|
5208
|
-
/* @__PURE__ */
|
|
5208
|
+
/* @__PURE__ */ React41.createElement("div", { className: "hawa-bg-background hawa-border hawa-p-4" }, children)
|
|
5209
5209
|
));
|
|
5210
5210
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
5211
5211
|
var AccordionRoot = AccordionPrimitive.Root;
|
|
5212
5212
|
|
|
5213
5213
|
// components/elements/Separator.tsx
|
|
5214
|
-
import * as
|
|
5214
|
+
import * as React42 from "react";
|
|
5215
5215
|
var Separator2 = ({
|
|
5216
5216
|
className,
|
|
5217
5217
|
orientation = "horizontal",
|
|
5218
5218
|
...props
|
|
5219
|
-
}) => /* @__PURE__ */
|
|
5219
|
+
}) => /* @__PURE__ */ React42.createElement(
|
|
5220
5220
|
"div",
|
|
5221
5221
|
{
|
|
5222
5222
|
className: cn(
|
|
@@ -5229,9 +5229,9 @@ var Separator2 = ({
|
|
|
5229
5229
|
);
|
|
5230
5230
|
|
|
5231
5231
|
// components/elements/Progress.tsx
|
|
5232
|
-
import * as
|
|
5232
|
+
import * as React43 from "react";
|
|
5233
5233
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
5234
|
-
var Progress =
|
|
5234
|
+
var Progress = React43.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React43.createElement(
|
|
5235
5235
|
ProgressPrimitive.Root,
|
|
5236
5236
|
{
|
|
5237
5237
|
ref,
|
|
@@ -5241,7 +5241,7 @@ var Progress = React44.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
5241
5241
|
),
|
|
5242
5242
|
...props
|
|
5243
5243
|
},
|
|
5244
|
-
/* @__PURE__ */
|
|
5244
|
+
/* @__PURE__ */ React43.createElement(
|
|
5245
5245
|
ProgressPrimitive.Indicator,
|
|
5246
5246
|
{
|
|
5247
5247
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
|
@@ -5252,7 +5252,7 @@ var Progress = React44.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
5252
5252
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
5253
5253
|
|
|
5254
5254
|
// components/elements/BackToTop.tsx
|
|
5255
|
-
import
|
|
5255
|
+
import React44, { useState as useState17, useEffect as useEffect13, useRef as useRef7 } from "react";
|
|
5256
5256
|
import { clsx as clsx10 } from "clsx";
|
|
5257
5257
|
var BackToTop = ({ ...props }) => {
|
|
5258
5258
|
const [visible, setVisible] = useState17(false);
|
|
@@ -5316,7 +5316,7 @@ var BackToTop = ({ ...props }) => {
|
|
|
5316
5316
|
};
|
|
5317
5317
|
return style;
|
|
5318
5318
|
};
|
|
5319
|
-
return /* @__PURE__ */
|
|
5319
|
+
return /* @__PURE__ */ React44.createElement(
|
|
5320
5320
|
Button,
|
|
5321
5321
|
{
|
|
5322
5322
|
className: cn(
|
|
@@ -5331,7 +5331,7 @@ var BackToTop = ({ ...props }) => {
|
|
|
5331
5331
|
ref: self,
|
|
5332
5332
|
size: "icon"
|
|
5333
5333
|
},
|
|
5334
|
-
/* @__PURE__ */
|
|
5334
|
+
/* @__PURE__ */ React44.createElement(
|
|
5335
5335
|
"svg",
|
|
5336
5336
|
{
|
|
5337
5337
|
className: clsx10(
|
|
@@ -5341,13 +5341,13 @@ var BackToTop = ({ ...props }) => {
|
|
|
5341
5341
|
viewBox: "0 0 20 20",
|
|
5342
5342
|
fill: "currentColor"
|
|
5343
5343
|
},
|
|
5344
|
-
/* @__PURE__ */
|
|
5344
|
+
/* @__PURE__ */ React44.createElement("path", { d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" })
|
|
5345
5345
|
)
|
|
5346
5346
|
);
|
|
5347
5347
|
};
|
|
5348
5348
|
|
|
5349
5349
|
// components/elements/ScrollIndicator.tsx
|
|
5350
|
-
import
|
|
5350
|
+
import React45, { useState as useState18, useEffect as useEffect14 } from "react";
|
|
5351
5351
|
var ScrollIndicator = ({
|
|
5352
5352
|
anchor,
|
|
5353
5353
|
inContainer = false
|
|
@@ -5371,7 +5371,7 @@ var ScrollIndicator = ({
|
|
|
5371
5371
|
anchor.current?.removeEventListener("scroll", onScroll);
|
|
5372
5372
|
};
|
|
5373
5373
|
}, [anchor]);
|
|
5374
|
-
return /* @__PURE__ */
|
|
5374
|
+
return /* @__PURE__ */ React45.createElement(
|
|
5375
5375
|
"div",
|
|
5376
5376
|
{
|
|
5377
5377
|
style: {
|
|
@@ -5387,7 +5387,7 @@ var ScrollIndicator = ({
|
|
|
5387
5387
|
};
|
|
5388
5388
|
|
|
5389
5389
|
// components/elements/Badge.tsx
|
|
5390
|
-
import
|
|
5390
|
+
import React46, { useEffect as useEffect15, useState as useState19, useRef as useRef8 } from "react";
|
|
5391
5391
|
var Badge = ({ anchor, position = "right" }) => {
|
|
5392
5392
|
const [badgePosition, setBadgePosition] = useState19(null);
|
|
5393
5393
|
const indicatorRef = useRef8(null);
|
|
@@ -5413,7 +5413,7 @@ var Badge = ({ anchor, position = "right" }) => {
|
|
|
5413
5413
|
window.removeEventListener("resize", handlePositioning);
|
|
5414
5414
|
};
|
|
5415
5415
|
}, [anchor]);
|
|
5416
|
-
return /* @__PURE__ */
|
|
5416
|
+
return /* @__PURE__ */ React46.createElement("div", { ref: indicatorRef, className: "hawa-relative" }, badgePosition && /* @__PURE__ */ React46.createElement(
|
|
5417
5417
|
"div",
|
|
5418
5418
|
{
|
|
5419
5419
|
style: {
|
|
@@ -5432,14 +5432,14 @@ var BadgedComponent = ({
|
|
|
5432
5432
|
position
|
|
5433
5433
|
}) => {
|
|
5434
5434
|
const ref = useRef8(null);
|
|
5435
|
-
return /* @__PURE__ */
|
|
5435
|
+
return /* @__PURE__ */ React46.createElement("div", { className: cn("hawa-relative", className), ref }, !hideBadge && /* @__PURE__ */ React46.createElement(Badge, { position, anchor: ref }), children);
|
|
5436
5436
|
};
|
|
5437
5437
|
|
|
5438
5438
|
// components/elements/Tabs.tsx
|
|
5439
|
-
import * as
|
|
5439
|
+
import * as React47 from "react";
|
|
5440
5440
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
5441
|
-
var TabsContext =
|
|
5442
|
-
var Tabs =
|
|
5441
|
+
var TabsContext = React47.createContext({ orientation: "vertical" });
|
|
5442
|
+
var Tabs = React47.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React47.createElement(
|
|
5443
5443
|
TabsPrimitive.Root,
|
|
5444
5444
|
{
|
|
5445
5445
|
ref,
|
|
@@ -5450,13 +5450,13 @@ var Tabs = React48.forwardRef(({ className, orientation, ...props }, ref) => /*
|
|
|
5450
5450
|
),
|
|
5451
5451
|
...props
|
|
5452
5452
|
},
|
|
5453
|
-
/* @__PURE__ */
|
|
5453
|
+
/* @__PURE__ */ React47.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
|
|
5454
5454
|
));
|
|
5455
5455
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
5456
|
-
var TabsList =
|
|
5457
|
-
const { orientation } =
|
|
5456
|
+
var TabsList = React47.forwardRef(({ className, ...props }, ref) => {
|
|
5457
|
+
const { orientation } = React47.useContext(TabsContext);
|
|
5458
5458
|
console.log("orient ", orientation);
|
|
5459
|
-
return /* @__PURE__ */
|
|
5459
|
+
return /* @__PURE__ */ React47.createElement(
|
|
5460
5460
|
TabsPrimitive.List,
|
|
5461
5461
|
{
|
|
5462
5462
|
ref,
|
|
@@ -5470,8 +5470,8 @@ var TabsList = React48.forwardRef(({ className, ...props }, ref) => {
|
|
|
5470
5470
|
);
|
|
5471
5471
|
});
|
|
5472
5472
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
5473
|
-
var TabsTrigger =
|
|
5474
|
-
return /* @__PURE__ */
|
|
5473
|
+
var TabsTrigger = React47.forwardRef(({ className, chipProps, ...props }, ref) => {
|
|
5474
|
+
return /* @__PURE__ */ React47.createElement(
|
|
5475
5475
|
TabsPrimitive.Trigger,
|
|
5476
5476
|
{
|
|
5477
5477
|
ref,
|
|
@@ -5482,11 +5482,11 @@ var TabsTrigger = React48.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
|
5482
5482
|
...props
|
|
5483
5483
|
},
|
|
5484
5484
|
props.children,
|
|
5485
|
-
chipProps && /* @__PURE__ */
|
|
5485
|
+
chipProps && /* @__PURE__ */ React47.createElement(Chip, { ...chipProps })
|
|
5486
5486
|
);
|
|
5487
5487
|
});
|
|
5488
5488
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
5489
|
-
var TabsContent =
|
|
5489
|
+
var TabsContent = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(
|
|
5490
5490
|
TabsPrimitive.Content,
|
|
5491
5491
|
{
|
|
5492
5492
|
ref,
|
|
@@ -5500,21 +5500,21 @@ var TabsContent = React48.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
5500
5500
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
5501
5501
|
|
|
5502
5502
|
// components/elements/ScrollArea.tsx
|
|
5503
|
-
import * as
|
|
5503
|
+
import * as React48 from "react";
|
|
5504
5504
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
5505
|
-
var ScrollArea =
|
|
5505
|
+
var ScrollArea = React48.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React48.createElement(
|
|
5506
5506
|
ScrollAreaPrimitive.Root,
|
|
5507
5507
|
{
|
|
5508
5508
|
ref,
|
|
5509
5509
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
|
5510
5510
|
...props
|
|
5511
5511
|
},
|
|
5512
|
-
/* @__PURE__ */
|
|
5513
|
-
/* @__PURE__ */
|
|
5514
|
-
/* @__PURE__ */
|
|
5512
|
+
/* @__PURE__ */ React48.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
|
5513
|
+
/* @__PURE__ */ React48.createElement(ScrollBar, { orientation }),
|
|
5514
|
+
/* @__PURE__ */ React48.createElement(ScrollAreaPrimitive.Corner, null)
|
|
5515
5515
|
));
|
|
5516
5516
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
5517
|
-
var ScrollBar =
|
|
5517
|
+
var ScrollBar = React48.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React48.createElement(
|
|
5518
5518
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
5519
5519
|
{
|
|
5520
5520
|
ref,
|
|
@@ -5527,7 +5527,7 @@ var ScrollBar = React49.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
5527
5527
|
),
|
|
5528
5528
|
...props
|
|
5529
5529
|
},
|
|
5530
|
-
/* @__PURE__ */
|
|
5530
|
+
/* @__PURE__ */ React48.createElement(
|
|
5531
5531
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
5532
5532
|
{
|
|
5533
5533
|
className: cn(
|
|
@@ -5540,9 +5540,9 @@ var ScrollBar = React49.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
5540
5540
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
5541
5541
|
|
|
5542
5542
|
// components/elements/Logos.tsx
|
|
5543
|
-
import
|
|
5543
|
+
import React49 from "react";
|
|
5544
5544
|
var Logos = {
|
|
5545
|
-
hawa: (props) => /* @__PURE__ */
|
|
5545
|
+
hawa: (props) => /* @__PURE__ */ React49.createElement(
|
|
5546
5546
|
"svg",
|
|
5547
5547
|
{
|
|
5548
5548
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5550,7 +5550,7 @@ var Logos = {
|
|
|
5550
5550
|
viewBox: "0 0 765 765",
|
|
5551
5551
|
...props
|
|
5552
5552
|
},
|
|
5553
|
-
/* @__PURE__ */
|
|
5553
|
+
/* @__PURE__ */ React49.createElement(
|
|
5554
5554
|
"path",
|
|
5555
5555
|
{
|
|
5556
5556
|
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
|
@@ -5558,7 +5558,7 @@ var Logos = {
|
|
|
5558
5558
|
}
|
|
5559
5559
|
)
|
|
5560
5560
|
),
|
|
5561
|
-
sikka: (props) => /* @__PURE__ */
|
|
5561
|
+
sikka: (props) => /* @__PURE__ */ React49.createElement(
|
|
5562
5562
|
"svg",
|
|
5563
5563
|
{
|
|
5564
5564
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5568,11 +5568,11 @@ var Logos = {
|
|
|
5568
5568
|
fill: "currentColor",
|
|
5569
5569
|
...props
|
|
5570
5570
|
},
|
|
5571
|
-
/* @__PURE__ */
|
|
5572
|
-
/* @__PURE__ */
|
|
5573
|
-
/* @__PURE__ */
|
|
5571
|
+
/* @__PURE__ */ React49.createElement("defs", null, /* @__PURE__ */ React49.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
|
|
5572
|
+
/* @__PURE__ */ React49.createElement("clipPath", { id: "b" }, /* @__PURE__ */ React49.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
|
|
5573
|
+
/* @__PURE__ */ React49.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ React49.createElement("defs", null, /* @__PURE__ */ React49.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ React49.createElement("clipPath", { id: "d" }, /* @__PURE__ */ React49.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ React49.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ React49.createElement("path", { d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9" })))
|
|
5574
5574
|
),
|
|
5575
|
-
mail: (props) => /* @__PURE__ */
|
|
5575
|
+
mail: (props) => /* @__PURE__ */ React49.createElement(
|
|
5576
5576
|
"svg",
|
|
5577
5577
|
{
|
|
5578
5578
|
stroke: "currentColor",
|
|
@@ -5586,10 +5586,10 @@ var Logos = {
|
|
|
5586
5586
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5587
5587
|
...props
|
|
5588
5588
|
},
|
|
5589
|
-
/* @__PURE__ */
|
|
5590
|
-
/* @__PURE__ */
|
|
5589
|
+
/* @__PURE__ */ React49.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
|
5590
|
+
/* @__PURE__ */ React49.createElement("polyline", { points: "22,6 12,13 2,6" })
|
|
5591
5591
|
),
|
|
5592
|
-
phone: (props) => /* @__PURE__ */
|
|
5592
|
+
phone: (props) => /* @__PURE__ */ React49.createElement(
|
|
5593
5593
|
"svg",
|
|
5594
5594
|
{
|
|
5595
5595
|
stroke: "currentColor",
|
|
@@ -5602,7 +5602,7 @@ var Logos = {
|
|
|
5602
5602
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5603
5603
|
...props
|
|
5604
5604
|
},
|
|
5605
|
-
/* @__PURE__ */
|
|
5605
|
+
/* @__PURE__ */ React49.createElement(
|
|
5606
5606
|
"path",
|
|
5607
5607
|
{
|
|
5608
5608
|
"stroke-linecap": "round",
|
|
@@ -5611,14 +5611,14 @@ var Logos = {
|
|
|
5611
5611
|
}
|
|
5612
5612
|
)
|
|
5613
5613
|
),
|
|
5614
|
-
twitter: (props) => /* @__PURE__ */
|
|
5614
|
+
twitter: (props) => /* @__PURE__ */ React49.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5615
5615
|
"path",
|
|
5616
5616
|
{
|
|
5617
5617
|
fill: "currentColor",
|
|
5618
5618
|
d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
|
|
5619
5619
|
}
|
|
5620
5620
|
)),
|
|
5621
|
-
instagram: (props) => /* @__PURE__ */
|
|
5621
|
+
instagram: (props) => /* @__PURE__ */ React49.createElement(
|
|
5622
5622
|
"svg",
|
|
5623
5623
|
{
|
|
5624
5624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5626,23 +5626,23 @@ var Logos = {
|
|
|
5626
5626
|
viewBox: "0 0 16 16",
|
|
5627
5627
|
...props
|
|
5628
5628
|
},
|
|
5629
|
-
/* @__PURE__ */
|
|
5629
|
+
/* @__PURE__ */ React49.createElement("path", { d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z" })
|
|
5630
5630
|
),
|
|
5631
|
-
microsoft: (props) => /* @__PURE__ */
|
|
5631
|
+
microsoft: (props) => /* @__PURE__ */ React49.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5632
5632
|
"path",
|
|
5633
5633
|
{
|
|
5634
5634
|
fill: "currentColor",
|
|
5635
5635
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
|
5636
5636
|
}
|
|
5637
5637
|
)),
|
|
5638
|
-
github: (props) => /* @__PURE__ */
|
|
5638
|
+
github: (props) => /* @__PURE__ */ React49.createElement(
|
|
5639
5639
|
"svg",
|
|
5640
5640
|
{
|
|
5641
5641
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5642
5642
|
viewBox: "0 0 438.549 438.549",
|
|
5643
5643
|
...props
|
|
5644
5644
|
},
|
|
5645
|
-
/* @__PURE__ */
|
|
5645
|
+
/* @__PURE__ */ React49.createElement(
|
|
5646
5646
|
"path",
|
|
5647
5647
|
{
|
|
5648
5648
|
fill: "currentColor",
|
|
@@ -5650,77 +5650,77 @@ var Logos = {
|
|
|
5650
5650
|
}
|
|
5651
5651
|
)
|
|
5652
5652
|
),
|
|
5653
|
-
radix: (props) => /* @__PURE__ */
|
|
5653
|
+
radix: (props) => /* @__PURE__ */ React49.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5654
5654
|
"path",
|
|
5655
5655
|
{
|
|
5656
5656
|
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
|
5657
5657
|
fill: "currentcolor"
|
|
5658
5658
|
}
|
|
5659
|
-
), /* @__PURE__ */
|
|
5659
|
+
), /* @__PURE__ */ React49.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ React49.createElement(
|
|
5660
5660
|
"path",
|
|
5661
5661
|
{
|
|
5662
5662
|
d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
|
|
5663
5663
|
fill: "currentcolor"
|
|
5664
5664
|
}
|
|
5665
5665
|
)),
|
|
5666
|
-
aria: (props) => /* @__PURE__ */
|
|
5667
|
-
npm: (props) => /* @__PURE__ */
|
|
5666
|
+
aria: (props) => /* @__PURE__ */ React49.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ React49.createElement("path", { d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z" })),
|
|
5667
|
+
npm: (props) => /* @__PURE__ */ React49.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5668
5668
|
"path",
|
|
5669
5669
|
{
|
|
5670
5670
|
d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
|
|
5671
5671
|
fill: "currentColor"
|
|
5672
5672
|
}
|
|
5673
5673
|
)),
|
|
5674
|
-
yarn: (props) => /* @__PURE__ */
|
|
5674
|
+
yarn: (props) => /* @__PURE__ */ React49.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5675
5675
|
"path",
|
|
5676
5676
|
{
|
|
5677
5677
|
d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
|
|
5678
5678
|
fill: "currentColor"
|
|
5679
5679
|
}
|
|
5680
5680
|
)),
|
|
5681
|
-
pnpm: (props) => /* @__PURE__ */
|
|
5681
|
+
pnpm: (props) => /* @__PURE__ */ React49.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5682
5682
|
"path",
|
|
5683
5683
|
{
|
|
5684
5684
|
d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
|
|
5685
5685
|
fill: "currentColor"
|
|
5686
5686
|
}
|
|
5687
5687
|
)),
|
|
5688
|
-
react: (props) => /* @__PURE__ */
|
|
5688
|
+
react: (props) => /* @__PURE__ */ React49.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5689
5689
|
"path",
|
|
5690
5690
|
{
|
|
5691
5691
|
d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
|
|
5692
5692
|
fill: "currentColor"
|
|
5693
5693
|
}
|
|
5694
5694
|
)),
|
|
5695
|
-
tailwind: (props) => /* @__PURE__ */
|
|
5695
|
+
tailwind: (props) => /* @__PURE__ */ React49.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5696
5696
|
"path",
|
|
5697
5697
|
{
|
|
5698
5698
|
d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
|
|
5699
5699
|
fill: "currentColor"
|
|
5700
5700
|
}
|
|
5701
5701
|
)),
|
|
5702
|
-
google: (props) => /* @__PURE__ */
|
|
5702
|
+
google: (props) => /* @__PURE__ */ React49.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5703
5703
|
"path",
|
|
5704
5704
|
{
|
|
5705
5705
|
fill: "currentColor",
|
|
5706
5706
|
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
|
5707
5707
|
}
|
|
5708
5708
|
)),
|
|
5709
|
-
apple: (props) => /* @__PURE__ */
|
|
5709
|
+
apple: (props) => /* @__PURE__ */ React49.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5710
5710
|
"path",
|
|
5711
5711
|
{
|
|
5712
5712
|
d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
|
|
5713
5713
|
fill: "currentColor"
|
|
5714
5714
|
}
|
|
5715
5715
|
)),
|
|
5716
|
-
paypal: (props) => /* @__PURE__ */
|
|
5716
|
+
paypal: (props) => /* @__PURE__ */ React49.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React49.createElement(
|
|
5717
5717
|
"path",
|
|
5718
5718
|
{
|
|
5719
5719
|
d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
|
|
5720
5720
|
fill: "currentColor"
|
|
5721
5721
|
}
|
|
5722
5722
|
)),
|
|
5723
|
-
spinner: (props) => /* @__PURE__ */
|
|
5723
|
+
spinner: (props) => /* @__PURE__ */ React49.createElement(
|
|
5724
5724
|
"svg",
|
|
5725
5725
|
{
|
|
5726
5726
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5734,9 +5734,9 @@ var Logos = {
|
|
|
5734
5734
|
strokeLinejoin: "round",
|
|
5735
5735
|
...props
|
|
5736
5736
|
},
|
|
5737
|
-
/* @__PURE__ */
|
|
5737
|
+
/* @__PURE__ */ React49.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
5738
5738
|
),
|
|
5739
|
-
whatsapp: (props) => /* @__PURE__ */
|
|
5739
|
+
whatsapp: (props) => /* @__PURE__ */ React49.createElement(
|
|
5740
5740
|
"svg",
|
|
5741
5741
|
{
|
|
5742
5742
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5746,14 +5746,14 @@ var Logos = {
|
|
|
5746
5746
|
fill: "currentColor",
|
|
5747
5747
|
...props
|
|
5748
5748
|
},
|
|
5749
|
-
/* @__PURE__ */
|
|
5749
|
+
/* @__PURE__ */ React49.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })
|
|
5750
5750
|
)
|
|
5751
5751
|
};
|
|
5752
5752
|
|
|
5753
5753
|
// components/elements/Command.tsx
|
|
5754
|
-
import * as
|
|
5754
|
+
import * as React50 from "react";
|
|
5755
5755
|
import { Command as CommandPrimitive } from "cmdk";
|
|
5756
|
-
var Command =
|
|
5756
|
+
var Command = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React50.createElement(
|
|
5757
5757
|
CommandPrimitive,
|
|
5758
5758
|
{
|
|
5759
5759
|
ref,
|
|
@@ -5766,15 +5766,15 @@ var Command = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
5766
5766
|
));
|
|
5767
5767
|
Command.displayName = CommandPrimitive.displayName;
|
|
5768
5768
|
var CommandDialog = ({ children, ...props }) => {
|
|
5769
|
-
return /* @__PURE__ */
|
|
5769
|
+
return /* @__PURE__ */ React50.createElement(Dialog, { ...props }, /* @__PURE__ */ React50.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React50.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
|
|
5770
5770
|
};
|
|
5771
|
-
var CommandInput =
|
|
5771
|
+
var CommandInput = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React50.createElement(
|
|
5772
5772
|
"div",
|
|
5773
5773
|
{
|
|
5774
5774
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
|
5775
5775
|
"cmdk-input-wrapper": ""
|
|
5776
5776
|
},
|
|
5777
|
-
/* @__PURE__ */
|
|
5777
|
+
/* @__PURE__ */ React50.createElement(
|
|
5778
5778
|
"svg",
|
|
5779
5779
|
{
|
|
5780
5780
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5788,10 +5788,10 @@ var CommandInput = React51.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5788
5788
|
strokeLinejoin: "round",
|
|
5789
5789
|
className: "hawa-mr-2 hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-opacity-50"
|
|
5790
5790
|
},
|
|
5791
|
-
/* @__PURE__ */
|
|
5792
|
-
/* @__PURE__ */
|
|
5791
|
+
/* @__PURE__ */ React50.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
|
5792
|
+
/* @__PURE__ */ React50.createElement("path", { d: "m21 21-4.3-4.3" })
|
|
5793
5793
|
),
|
|
5794
|
-
/* @__PURE__ */
|
|
5794
|
+
/* @__PURE__ */ React50.createElement(
|
|
5795
5795
|
CommandPrimitive.Input,
|
|
5796
5796
|
{
|
|
5797
5797
|
ref,
|
|
@@ -5804,7 +5804,7 @@ var CommandInput = React51.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5804
5804
|
)
|
|
5805
5805
|
));
|
|
5806
5806
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
5807
|
-
var CommandList =
|
|
5807
|
+
var CommandList = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React50.createElement(
|
|
5808
5808
|
CommandPrimitive.List,
|
|
5809
5809
|
{
|
|
5810
5810
|
ref,
|
|
@@ -5816,7 +5816,7 @@ var CommandList = React51.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
5816
5816
|
}
|
|
5817
5817
|
));
|
|
5818
5818
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
5819
|
-
var CommandEmpty =
|
|
5819
|
+
var CommandEmpty = React50.forwardRef((props, ref) => /* @__PURE__ */ React50.createElement(
|
|
5820
5820
|
CommandPrimitive.Empty,
|
|
5821
5821
|
{
|
|
5822
5822
|
ref,
|
|
@@ -5825,7 +5825,7 @@ var CommandEmpty = React51.forwardRef((props, ref) => /* @__PURE__ */ React51.cr
|
|
|
5825
5825
|
}
|
|
5826
5826
|
));
|
|
5827
5827
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
5828
|
-
var CommandGroup =
|
|
5828
|
+
var CommandGroup = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React50.createElement(
|
|
5829
5829
|
CommandPrimitive.Group,
|
|
5830
5830
|
{
|
|
5831
5831
|
ref,
|
|
@@ -5837,7 +5837,7 @@ var CommandGroup = React51.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5837
5837
|
}
|
|
5838
5838
|
));
|
|
5839
5839
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
5840
|
-
var CommandSeparator =
|
|
5840
|
+
var CommandSeparator = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React50.createElement(
|
|
5841
5841
|
CommandPrimitive.Separator,
|
|
5842
5842
|
{
|
|
5843
5843
|
ref,
|
|
@@ -5846,7 +5846,7 @@ var CommandSeparator = React51.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
5846
5846
|
}
|
|
5847
5847
|
));
|
|
5848
5848
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
5849
|
-
var CommandItem =
|
|
5849
|
+
var CommandItem = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React50.createElement(
|
|
5850
5850
|
CommandPrimitive.Item,
|
|
5851
5851
|
{
|
|
5852
5852
|
ref,
|
|
@@ -5862,7 +5862,7 @@ var CommandShortcut = ({
|
|
|
5862
5862
|
className,
|
|
5863
5863
|
...props
|
|
5864
5864
|
}) => {
|
|
5865
|
-
return /* @__PURE__ */
|
|
5865
|
+
return /* @__PURE__ */ React50.createElement(
|
|
5866
5866
|
"span",
|
|
5867
5867
|
{
|
|
5868
5868
|
className: cn(
|
|
@@ -5876,7 +5876,7 @@ var CommandShortcut = ({
|
|
|
5876
5876
|
CommandShortcut.displayName = "CommandShortcut";
|
|
5877
5877
|
|
|
5878
5878
|
// components/elements/Combobox.tsx
|
|
5879
|
-
import * as
|
|
5879
|
+
import * as React51 from "react";
|
|
5880
5880
|
import * as PopoverPrimitive2 from "@radix-ui/react-popover";
|
|
5881
5881
|
var Combobox = ({
|
|
5882
5882
|
labelKey = "label",
|
|
@@ -5886,12 +5886,12 @@ var Combobox = ({
|
|
|
5886
5886
|
data,
|
|
5887
5887
|
...props
|
|
5888
5888
|
}) => {
|
|
5889
|
-
const [open, setOpen] =
|
|
5890
|
-
const [value, setValue] =
|
|
5889
|
+
const [open, setOpen] = React51.useState(false);
|
|
5890
|
+
const [value, setValue] = React51.useState(defaultValue);
|
|
5891
5891
|
function getProperty(obj, key) {
|
|
5892
5892
|
return obj[key];
|
|
5893
5893
|
}
|
|
5894
|
-
return /* @__PURE__ */
|
|
5894
|
+
return /* @__PURE__ */ React51.createElement(
|
|
5895
5895
|
"div",
|
|
5896
5896
|
{
|
|
5897
5897
|
className: cn(
|
|
@@ -5899,8 +5899,8 @@ var Combobox = ({
|
|
|
5899
5899
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
|
5900
5900
|
)
|
|
5901
5901
|
},
|
|
5902
|
-
props.label && /* @__PURE__ */
|
|
5903
|
-
/* @__PURE__ */
|
|
5902
|
+
props.label && /* @__PURE__ */ React51.createElement(Label2, null, props.label),
|
|
5903
|
+
/* @__PURE__ */ React51.createElement(PopoverPrimitive2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React51.createElement(PopoverTrigger, { disabled: props.isLoading || props.preview }, props.isLoading ? /* @__PURE__ */ React51.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React51.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React51.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2 " }, /* @__PURE__ */ React51.createElement(
|
|
5904
5904
|
"div",
|
|
5905
5905
|
{
|
|
5906
5906
|
className: cn(
|
|
@@ -5908,7 +5908,7 @@ var Combobox = ({
|
|
|
5908
5908
|
props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
5909
5909
|
)
|
|
5910
5910
|
}
|
|
5911
|
-
), /* @__PURE__ */
|
|
5911
|
+
), /* @__PURE__ */ React51.createElement(
|
|
5912
5912
|
"button",
|
|
5913
5913
|
{
|
|
5914
5914
|
role: "combobox",
|
|
@@ -5922,7 +5922,7 @@ var Combobox = ({
|
|
|
5922
5922
|
data.find((item) => item[valueKey] === value) || {},
|
|
5923
5923
|
labelKey
|
|
5924
5924
|
) : props.placeholder || "...",
|
|
5925
|
-
/* @__PURE__ */
|
|
5925
|
+
/* @__PURE__ */ React51.createElement(
|
|
5926
5926
|
"svg",
|
|
5927
5927
|
{
|
|
5928
5928
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5937,9 +5937,9 @@ var Combobox = ({
|
|
|
5937
5937
|
strokeLinecap: "round",
|
|
5938
5938
|
strokeLinejoin: "round"
|
|
5939
5939
|
},
|
|
5940
|
-
/* @__PURE__ */
|
|
5940
|
+
/* @__PURE__ */ React51.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
5941
5941
|
)
|
|
5942
|
-
), /* @__PURE__ */
|
|
5942
|
+
), /* @__PURE__ */ React51.createElement(
|
|
5943
5943
|
"p",
|
|
5944
5944
|
{
|
|
5945
5945
|
className: cn(
|
|
@@ -5948,7 +5948,7 @@ var Combobox = ({
|
|
|
5948
5948
|
)
|
|
5949
5949
|
},
|
|
5950
5950
|
props.helperText
|
|
5951
|
-
), " ")), /* @__PURE__ */
|
|
5951
|
+
), " ")), /* @__PURE__ */ React51.createElement(PopoverContent, { className: cn("popover-w-parent") }, /* @__PURE__ */ React51.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React51.createElement(CommandInput, { placeholder: props.searchPlaceholder }), /* @__PURE__ */ React51.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React51.createElement(CommandGroup, { className: " hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item) => /* @__PURE__ */ React51.createElement(
|
|
5952
5952
|
CommandItem,
|
|
5953
5953
|
{
|
|
5954
5954
|
key: getProperty(item, valueKey),
|
|
@@ -5963,7 +5963,7 @@ var Combobox = ({
|
|
|
5963
5963
|
setOpen(false);
|
|
5964
5964
|
}
|
|
5965
5965
|
},
|
|
5966
|
-
/* @__PURE__ */
|
|
5966
|
+
/* @__PURE__ */ React51.createElement(
|
|
5967
5967
|
"svg",
|
|
5968
5968
|
{
|
|
5969
5969
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5980,7 +5980,7 @@ var Combobox = ({
|
|
|
5980
5980
|
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
5981
5981
|
)
|
|
5982
5982
|
},
|
|
5983
|
-
/* @__PURE__ */
|
|
5983
|
+
/* @__PURE__ */ React51.createElement("polyline", { points: "20 6 9 17 4 12" })
|
|
5984
5984
|
),
|
|
5985
5985
|
getProperty(item, labelKey)
|
|
5986
5986
|
))))))
|
|
@@ -5988,13 +5988,13 @@ var Combobox = ({
|
|
|
5988
5988
|
};
|
|
5989
5989
|
|
|
5990
5990
|
// components/elements/Count.tsx
|
|
5991
|
-
import
|
|
5991
|
+
import React52 from "react";
|
|
5992
5992
|
var Count = (props) => {
|
|
5993
|
-
return /* @__PURE__ */
|
|
5993
|
+
return /* @__PURE__ */ React52.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ React52.createElement("div", null, props.icon), /* @__PURE__ */ React52.createElement("div", { className: "hawa-text-sm" }, props.count));
|
|
5994
5994
|
};
|
|
5995
5995
|
|
|
5996
5996
|
// components/elements/InterfaceSettings.tsx
|
|
5997
|
-
import
|
|
5997
|
+
import React53, { useState as useState21 } from "react";
|
|
5998
5998
|
var InterfaceSettings = ({
|
|
5999
5999
|
orientation = "horizontal",
|
|
6000
6000
|
width = "default",
|
|
@@ -6006,7 +6006,7 @@ var InterfaceSettings = ({
|
|
|
6006
6006
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
|
6007
6007
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
|
6008
6008
|
};
|
|
6009
|
-
return /* @__PURE__ */
|
|
6009
|
+
return /* @__PURE__ */ React53.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ React53.createElement(
|
|
6010
6010
|
Radio,
|
|
6011
6011
|
{
|
|
6012
6012
|
width,
|
|
@@ -6021,7 +6021,7 @@ var InterfaceSettings = ({
|
|
|
6021
6021
|
{ value: "en", label: "English" }
|
|
6022
6022
|
]
|
|
6023
6023
|
}
|
|
6024
|
-
), /* @__PURE__ */
|
|
6024
|
+
), /* @__PURE__ */ React53.createElement(
|
|
6025
6025
|
Radio,
|
|
6026
6026
|
{
|
|
6027
6027
|
width,
|
|
@@ -6034,7 +6034,7 @@ var InterfaceSettings = ({
|
|
|
6034
6034
|
options: [
|
|
6035
6035
|
{
|
|
6036
6036
|
value: "light",
|
|
6037
|
-
label: /* @__PURE__ */
|
|
6037
|
+
label: /* @__PURE__ */ React53.createElement(
|
|
6038
6038
|
"svg",
|
|
6039
6039
|
{
|
|
6040
6040
|
width: "15",
|
|
@@ -6044,7 +6044,7 @@ var InterfaceSettings = ({
|
|
|
6044
6044
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6045
6045
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
6046
6046
|
},
|
|
6047
|
-
/* @__PURE__ */
|
|
6047
|
+
/* @__PURE__ */ React53.createElement(
|
|
6048
6048
|
"path",
|
|
6049
6049
|
{
|
|
6050
6050
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
@@ -6055,7 +6055,7 @@ var InterfaceSettings = ({
|
|
|
6055
6055
|
},
|
|
6056
6056
|
{
|
|
6057
6057
|
value: "dark",
|
|
6058
|
-
label: /* @__PURE__ */
|
|
6058
|
+
label: /* @__PURE__ */ React53.createElement(
|
|
6059
6059
|
"svg",
|
|
6060
6060
|
{
|
|
6061
6061
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6066,7 +6066,7 @@ var InterfaceSettings = ({
|
|
|
6066
6066
|
stroke: "currentColor",
|
|
6067
6067
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
6068
6068
|
},
|
|
6069
|
-
/* @__PURE__ */
|
|
6069
|
+
/* @__PURE__ */ React53.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
6070
6070
|
)
|
|
6071
6071
|
}
|
|
6072
6072
|
]
|
|
@@ -6075,14 +6075,14 @@ var InterfaceSettings = ({
|
|
|
6075
6075
|
};
|
|
6076
6076
|
|
|
6077
6077
|
// components/elements/Sheet.tsx
|
|
6078
|
-
import * as
|
|
6078
|
+
import * as React54 from "react";
|
|
6079
6079
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
6080
6080
|
import { cva as cva3 } from "class-variance-authority";
|
|
6081
6081
|
var Sheet = SheetPrimitive.Root;
|
|
6082
6082
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
6083
6083
|
var SheetClose = SheetPrimitive.Close;
|
|
6084
6084
|
var SheetPortal = SheetPrimitive.Portal;
|
|
6085
|
-
var SheetOverlay =
|
|
6085
|
+
var SheetOverlay = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React54.createElement(
|
|
6086
6086
|
SheetPrimitive.Overlay,
|
|
6087
6087
|
{
|
|
6088
6088
|
className: cn(
|
|
@@ -6110,7 +6110,7 @@ var sheetVariants = cva3(
|
|
|
6110
6110
|
}
|
|
6111
6111
|
}
|
|
6112
6112
|
);
|
|
6113
|
-
var SheetContent =
|
|
6113
|
+
var SheetContent = React54.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ React54.createElement(SheetPortal, null, /* @__PURE__ */ React54.createElement(SheetOverlay, null), /* @__PURE__ */ React54.createElement(
|
|
6114
6114
|
SheetPrimitive.Content,
|
|
6115
6115
|
{
|
|
6116
6116
|
ref,
|
|
@@ -6118,7 +6118,7 @@ var SheetContent = React55.forwardRef(({ side = "right", className, children, ..
|
|
|
6118
6118
|
...props
|
|
6119
6119
|
},
|
|
6120
6120
|
children,
|
|
6121
|
-
/* @__PURE__ */
|
|
6121
|
+
/* @__PURE__ */ React54.createElement(SheetPrimitive.Close, { className: "hawa-absolute hawa-right-4 hawa-top-4 hawa-rounded-sm hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-secondary" }, /* @__PURE__ */ React54.createElement(
|
|
6122
6122
|
"svg",
|
|
6123
6123
|
{
|
|
6124
6124
|
"aria-label": "Close Icon",
|
|
@@ -6127,7 +6127,7 @@ var SheetContent = React55.forwardRef(({ side = "right", className, children, ..
|
|
|
6127
6127
|
fill: "currentColor",
|
|
6128
6128
|
viewBox: "0 0 20 20"
|
|
6129
6129
|
},
|
|
6130
|
-
/* @__PURE__ */
|
|
6130
|
+
/* @__PURE__ */ React54.createElement(
|
|
6131
6131
|
"path",
|
|
6132
6132
|
{
|
|
6133
6133
|
fillRule: "evenodd",
|
|
@@ -6135,13 +6135,13 @@ var SheetContent = React55.forwardRef(({ side = "right", className, children, ..
|
|
|
6135
6135
|
clipRule: "evenodd"
|
|
6136
6136
|
}
|
|
6137
6137
|
)
|
|
6138
|
-
), /* @__PURE__ */
|
|
6138
|
+
), /* @__PURE__ */ React54.createElement("span", { className: "hawa-sr-only" }, "Close"))
|
|
6139
6139
|
)));
|
|
6140
6140
|
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
6141
6141
|
var SheetHeader = ({
|
|
6142
6142
|
className,
|
|
6143
6143
|
...props
|
|
6144
|
-
}) => /* @__PURE__ */
|
|
6144
|
+
}) => /* @__PURE__ */ React54.createElement(
|
|
6145
6145
|
"div",
|
|
6146
6146
|
{
|
|
6147
6147
|
className: cn(
|
|
@@ -6155,7 +6155,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
6155
6155
|
var SheetFooter = ({
|
|
6156
6156
|
className,
|
|
6157
6157
|
...props
|
|
6158
|
-
}) => /* @__PURE__ */
|
|
6158
|
+
}) => /* @__PURE__ */ React54.createElement(
|
|
6159
6159
|
"div",
|
|
6160
6160
|
{
|
|
6161
6161
|
className: cn(
|
|
@@ -6166,7 +6166,7 @@ var SheetFooter = ({
|
|
|
6166
6166
|
}
|
|
6167
6167
|
);
|
|
6168
6168
|
SheetFooter.displayName = "SheetFooter";
|
|
6169
|
-
var SheetTitle =
|
|
6169
|
+
var SheetTitle = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React54.createElement(
|
|
6170
6170
|
SheetPrimitive.Title,
|
|
6171
6171
|
{
|
|
6172
6172
|
ref,
|
|
@@ -6178,7 +6178,7 @@ var SheetTitle = React55.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
6178
6178
|
}
|
|
6179
6179
|
));
|
|
6180
6180
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
6181
|
-
var SheetDescription =
|
|
6181
|
+
var SheetDescription = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React54.createElement(
|
|
6182
6182
|
SheetPrimitive.Description,
|
|
6183
6183
|
{
|
|
6184
6184
|
ref,
|
|
@@ -6189,7 +6189,7 @@ var SheetDescription = React55.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
6189
6189
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
6190
6190
|
|
|
6191
6191
|
// components/elements/ProgressCircle.tsx
|
|
6192
|
-
import
|
|
6192
|
+
import React55 from "react";
|
|
6193
6193
|
var size2config = {
|
|
6194
6194
|
xs: {
|
|
6195
6195
|
radius: 15,
|
|
@@ -6221,7 +6221,7 @@ function getLimitedValue(input) {
|
|
|
6221
6221
|
return input;
|
|
6222
6222
|
}
|
|
6223
6223
|
}
|
|
6224
|
-
var ProgressCircle =
|
|
6224
|
+
var ProgressCircle = React55.forwardRef((props, ref) => {
|
|
6225
6225
|
const {
|
|
6226
6226
|
value: inputValue,
|
|
6227
6227
|
size = "md",
|
|
@@ -6241,7 +6241,7 @@ var ProgressCircle = React56.forwardRef((props, ref) => {
|
|
|
6241
6241
|
const circumference = normalizedRadius * 2 * Math.PI;
|
|
6242
6242
|
const strokeDashoffset = value / 100 * circumference;
|
|
6243
6243
|
const offset = circumference - strokeDashoffset;
|
|
6244
|
-
return /* @__PURE__ */
|
|
6244
|
+
return /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(
|
|
6245
6245
|
"div",
|
|
6246
6246
|
{
|
|
6247
6247
|
ref,
|
|
@@ -6251,7 +6251,7 @@ var ProgressCircle = React56.forwardRef((props, ref) => {
|
|
|
6251
6251
|
className
|
|
6252
6252
|
)
|
|
6253
6253
|
},
|
|
6254
|
-
/* @__PURE__ */
|
|
6254
|
+
/* @__PURE__ */ React55.createElement(
|
|
6255
6255
|
"svg",
|
|
6256
6256
|
{
|
|
6257
6257
|
width: radius * 2,
|
|
@@ -6259,7 +6259,7 @@ var ProgressCircle = React56.forwardRef((props, ref) => {
|
|
|
6259
6259
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
|
6260
6260
|
className: "hawa-transform hawa-rotate-180"
|
|
6261
6261
|
},
|
|
6262
|
-
/* @__PURE__ */
|
|
6262
|
+
/* @__PURE__ */ React55.createElement(
|
|
6263
6263
|
"circle",
|
|
6264
6264
|
{
|
|
6265
6265
|
r: normalizedRadius,
|
|
@@ -6275,7 +6275,7 @@ var ProgressCircle = React56.forwardRef((props, ref) => {
|
|
|
6275
6275
|
)
|
|
6276
6276
|
}
|
|
6277
6277
|
),
|
|
6278
|
-
value > 0 ? /* @__PURE__ */
|
|
6278
|
+
value > 0 ? /* @__PURE__ */ React55.createElement(
|
|
6279
6279
|
"circle",
|
|
6280
6280
|
{
|
|
6281
6281
|
r: normalizedRadius,
|
|
@@ -6295,16 +6295,16 @@ var ProgressCircle = React56.forwardRef((props, ref) => {
|
|
|
6295
6295
|
}
|
|
6296
6296
|
) : null
|
|
6297
6297
|
),
|
|
6298
|
-
/* @__PURE__ */
|
|
6298
|
+
/* @__PURE__ */ React55.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
|
6299
6299
|
));
|
|
6300
6300
|
});
|
|
6301
6301
|
ProgressCircle.displayName = "ProgressCircle";
|
|
6302
6302
|
|
|
6303
6303
|
// components/elements/NavigationMenu.tsx
|
|
6304
|
-
import * as
|
|
6304
|
+
import * as React56 from "react";
|
|
6305
6305
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
6306
6306
|
import { cva as cva4 } from "class-variance-authority";
|
|
6307
|
-
var NavigationMenuRoot =
|
|
6307
|
+
var NavigationMenuRoot = React56.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
6308
6308
|
NavigationMenuPrimitive.Root,
|
|
6309
6309
|
{
|
|
6310
6310
|
ref,
|
|
@@ -6316,10 +6316,10 @@ var NavigationMenuRoot = React57.forwardRef(({ className, children, ...props },
|
|
|
6316
6316
|
...props
|
|
6317
6317
|
},
|
|
6318
6318
|
children,
|
|
6319
|
-
/* @__PURE__ */
|
|
6319
|
+
/* @__PURE__ */ React56.createElement(NavigationMenuViewport, { className: props.viewportClassNames })
|
|
6320
6320
|
));
|
|
6321
6321
|
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
6322
|
-
var NavigationMenuList =
|
|
6322
|
+
var NavigationMenuList = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
6323
6323
|
NavigationMenuPrimitive.List,
|
|
6324
6324
|
{
|
|
6325
6325
|
ref,
|
|
@@ -6335,7 +6335,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
6335
6335
|
var navigationMenuTriggerStyle = cva4(
|
|
6336
6336
|
"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 "
|
|
6337
6337
|
);
|
|
6338
|
-
var NavigationMenuTrigger =
|
|
6338
|
+
var NavigationMenuTrigger = React56.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
6339
6339
|
NavigationMenuPrimitive.Trigger,
|
|
6340
6340
|
{
|
|
6341
6341
|
ref,
|
|
@@ -6344,7 +6344,7 @@ var NavigationMenuTrigger = React57.forwardRef(({ className, children, ...props
|
|
|
6344
6344
|
},
|
|
6345
6345
|
children,
|
|
6346
6346
|
" ",
|
|
6347
|
-
/* @__PURE__ */
|
|
6347
|
+
/* @__PURE__ */ React56.createElement(
|
|
6348
6348
|
"svg",
|
|
6349
6349
|
{
|
|
6350
6350
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6359,11 +6359,11 @@ var NavigationMenuTrigger = React57.forwardRef(({ className, children, ...props
|
|
|
6359
6359
|
"aria-hidden": "true",
|
|
6360
6360
|
className: "hawa-relative hawa-top-[1px] hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
6361
6361
|
},
|
|
6362
|
-
/* @__PURE__ */
|
|
6362
|
+
/* @__PURE__ */ React56.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
6363
6363
|
)
|
|
6364
6364
|
));
|
|
6365
6365
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
6366
|
-
var NavigationMenuContent =
|
|
6366
|
+
var NavigationMenuContent = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
6367
6367
|
NavigationMenuPrimitive.Content,
|
|
6368
6368
|
{
|
|
6369
6369
|
ref,
|
|
@@ -6379,15 +6379,15 @@ var NavigationMenuContent = React57.forwardRef(({ className, ...props }, ref) =>
|
|
|
6379
6379
|
));
|
|
6380
6380
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
6381
6381
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
6382
|
-
var NavMenuItem = (props) => /* @__PURE__ */
|
|
6383
|
-
var NavigationMenuViewport =
|
|
6382
|
+
var NavMenuItem = (props) => /* @__PURE__ */ React56.createElement(NavigationMenuLink, null, /* @__PURE__ */ React56.createElement("div", { className: "hawa-max-w-md hawa-cursor-pointer hawa-p-4 hawa-py-2 hawa-rounded hawa-flex hawa-flex-row hawa-gap-4 hawa-items-center hawa-transition-all hover:hawa-bg-muted" }, props.icon && props.icon, /* @__PURE__ */ React56.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React56.createElement("h1", { className: "hawa-font-bold hawa-text-xl" }, props.title), /* @__PURE__ */ React56.createElement("p", { className: "hawa-text-sm" }, props.subtitle))));
|
|
6383
|
+
var NavigationMenuViewport = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
6384
6384
|
"div",
|
|
6385
6385
|
{
|
|
6386
6386
|
className: cn(
|
|
6387
6387
|
"hawa-absolute hawa-w-full hawa-top-full hawa-flex hawa-justify-center"
|
|
6388
6388
|
)
|
|
6389
6389
|
},
|
|
6390
|
-
/* @__PURE__ */
|
|
6390
|
+
/* @__PURE__ */ React56.createElement(
|
|
6391
6391
|
NavigationMenuPrimitive.Viewport,
|
|
6392
6392
|
{
|
|
6393
6393
|
className: cn(
|
|
@@ -6401,7 +6401,7 @@ var NavigationMenuViewport = React57.forwardRef(({ className, ...props }, ref) =
|
|
|
6401
6401
|
)
|
|
6402
6402
|
));
|
|
6403
6403
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
6404
|
-
var NavigationMenuIndicator =
|
|
6404
|
+
var NavigationMenuIndicator = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
6405
6405
|
NavigationMenuPrimitive.Indicator,
|
|
6406
6406
|
{
|
|
6407
6407
|
ref,
|
|
@@ -6411,11 +6411,11 @@ var NavigationMenuIndicator = React57.forwardRef(({ className, ...props }, ref)
|
|
|
6411
6411
|
),
|
|
6412
6412
|
...props
|
|
6413
6413
|
},
|
|
6414
|
-
/* @__PURE__ */
|
|
6414
|
+
/* @__PURE__ */ React56.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" })
|
|
6415
6415
|
));
|
|
6416
6416
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
6417
6417
|
var NavigationMenu = (props) => {
|
|
6418
|
-
return /* @__PURE__ */
|
|
6418
|
+
return /* @__PURE__ */ React56.createElement(
|
|
6419
6419
|
NavigationMenuRoot,
|
|
6420
6420
|
{
|
|
6421
6421
|
dir: props.direction,
|
|
@@ -6423,7 +6423,7 @@ var NavigationMenu = (props) => {
|
|
|
6423
6423
|
className: props.rootClassNames,
|
|
6424
6424
|
viewportClassNames: props.viewportClassNames
|
|
6425
6425
|
},
|
|
6426
|
-
/* @__PURE__ */
|
|
6426
|
+
/* @__PURE__ */ React56.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React56.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React56.createElement(React56.Fragment, null, /* @__PURE__ */ React56.createElement(NavigationMenuTrigger, null, item.trigger), /* @__PURE__ */ React56.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React56.createElement(
|
|
6427
6427
|
NavigationMenuLink,
|
|
6428
6428
|
{
|
|
6429
6429
|
onClick: () => {
|
|
@@ -6442,28 +6442,28 @@ var NavigationMenu = (props) => {
|
|
|
6442
6442
|
};
|
|
6443
6443
|
|
|
6444
6444
|
// components/layout/Stats.tsx
|
|
6445
|
-
import
|
|
6445
|
+
import React57 from "react";
|
|
6446
6446
|
var Stats = ({ variant = "default", ...props }) => {
|
|
6447
|
-
return /* @__PURE__ */
|
|
6447
|
+
return /* @__PURE__ */ React57.createElement(
|
|
6448
6448
|
Card,
|
|
6449
6449
|
{
|
|
6450
6450
|
onClick: props.handleClick,
|
|
6451
6451
|
clickable: Boolean(props.handleClick),
|
|
6452
6452
|
className: cn(props.className)
|
|
6453
6453
|
},
|
|
6454
|
-
/* @__PURE__ */
|
|
6455
|
-
/* @__PURE__ */
|
|
6454
|
+
/* @__PURE__ */ React57.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between hawa-p-4 hawa-items-center" }, /* @__PURE__ */ React57.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, props.label), props.icon && /* @__PURE__ */ React57.createElement("span", null, props.icon)),
|
|
6455
|
+
/* @__PURE__ */ React57.createElement(CardContent, null, props.isLoading ? /* @__PURE__ */ React57.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ React57.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, props.number), props.isLoading && props.helperText ? /* @__PURE__ */ React57.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : props.helperText && /* @__PURE__ */ React57.createElement("p", { className: "hawa-text-xs hawa-text-muted-foreground" }, props.helperText), props.isLoading && props.chart ? /* @__PURE__ */ React57.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : props.chart)
|
|
6456
6456
|
);
|
|
6457
6457
|
};
|
|
6458
6458
|
|
|
6459
6459
|
// components/layout/Sidebar.tsx
|
|
6460
|
-
import * as
|
|
6460
|
+
import * as React58 from "react";
|
|
6461
6461
|
import * as AccordionPrimitive2 from "@radix-ui/react-accordion";
|
|
6462
6462
|
var Accordion2 = AccordionPrimitive2.Root;
|
|
6463
6463
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
|
6464
|
-
var AccordionItem2 =
|
|
6464
|
+
var AccordionItem2 = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(AccordionPrimitive2.Item, { ref, className: cn(className), ...props }));
|
|
6465
6465
|
AccordionItem2.displayName = "AccordionItem";
|
|
6466
|
-
var AccordionTrigger2 =
|
|
6466
|
+
var AccordionTrigger2 = React58.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React58.createElement(AccordionPrimitive2.Header, { className: "flex" }, /* @__PURE__ */ React58.createElement(
|
|
6467
6467
|
AccordionPrimitive2.Trigger,
|
|
6468
6468
|
{
|
|
6469
6469
|
ref,
|
|
@@ -6471,7 +6471,7 @@ var AccordionTrigger2 = React59.forwardRef(({ className, showArrow, children, ..
|
|
|
6471
6471
|
...props
|
|
6472
6472
|
},
|
|
6473
6473
|
children,
|
|
6474
|
-
showArrow && /* @__PURE__ */
|
|
6474
|
+
showArrow && /* @__PURE__ */ React58.createElement(
|
|
6475
6475
|
"svg",
|
|
6476
6476
|
{
|
|
6477
6477
|
"aria-label": "Chevron Right Icon",
|
|
@@ -6482,11 +6482,11 @@ var AccordionTrigger2 = React59.forwardRef(({ className, showArrow, children, ..
|
|
|
6482
6482
|
width: "1em",
|
|
6483
6483
|
className: "hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
|
6484
6484
|
},
|
|
6485
|
-
/* @__PURE__ */
|
|
6485
|
+
/* @__PURE__ */ React58.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
|
6486
6486
|
)
|
|
6487
6487
|
)));
|
|
6488
6488
|
AccordionTrigger2.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
6489
|
-
var AccordionContent2 =
|
|
6489
|
+
var AccordionContent2 = React58.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
|
6490
6490
|
AccordionPrimitive2.Content,
|
|
6491
6491
|
{
|
|
6492
6492
|
ref,
|
|
@@ -6496,7 +6496,7 @@ var AccordionContent2 = React59.forwardRef(({ className, children, ...props }, r
|
|
|
6496
6496
|
),
|
|
6497
6497
|
...props
|
|
6498
6498
|
},
|
|
6499
|
-
/* @__PURE__ */
|
|
6499
|
+
/* @__PURE__ */ React58.createElement("div", null, children)
|
|
6500
6500
|
));
|
|
6501
6501
|
AccordionContent2.displayName = AccordionPrimitive2.Content.displayName;
|
|
6502
6502
|
var SidebarGroup = ({
|
|
@@ -6510,7 +6510,7 @@ var SidebarGroup = ({
|
|
|
6510
6510
|
direction,
|
|
6511
6511
|
isOpen
|
|
6512
6512
|
}) => {
|
|
6513
|
-
return /* @__PURE__ */
|
|
6513
|
+
return /* @__PURE__ */ React58.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React58.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React58.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React58.createElement(
|
|
6514
6514
|
Accordion2,
|
|
6515
6515
|
{
|
|
6516
6516
|
value: openedItem,
|
|
@@ -6521,7 +6521,7 @@ var SidebarGroup = ({
|
|
|
6521
6521
|
collapsible: true,
|
|
6522
6522
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
|
6523
6523
|
},
|
|
6524
|
-
items.map((item, idx) => /* @__PURE__ */
|
|
6524
|
+
items.map((item, idx) => /* @__PURE__ */ React58.createElement(
|
|
6525
6525
|
SidebarItem,
|
|
6526
6526
|
{
|
|
6527
6527
|
isOpen,
|
|
@@ -6547,14 +6547,14 @@ var SidebarItem = ({
|
|
|
6547
6547
|
return props.selectedItem === value ? "hawa-bg-primary hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
|
6548
6548
|
};
|
|
6549
6549
|
if (item.subitems) {
|
|
6550
|
-
return /* @__PURE__ */
|
|
6550
|
+
return /* @__PURE__ */ React58.createElement(
|
|
6551
6551
|
AccordionItem2,
|
|
6552
6552
|
{
|
|
6553
6553
|
value: item.value,
|
|
6554
6554
|
className: "hawa-overflow-x-clip",
|
|
6555
6555
|
dir: direction
|
|
6556
6556
|
},
|
|
6557
|
-
/* @__PURE__ */
|
|
6557
|
+
/* @__PURE__ */ React58.createElement(
|
|
6558
6558
|
AccordionTrigger2,
|
|
6559
6559
|
{
|
|
6560
6560
|
className: cn(
|
|
@@ -6566,7 +6566,7 @@ var SidebarItem = ({
|
|
|
6566
6566
|
),
|
|
6567
6567
|
showArrow: isOpen
|
|
6568
6568
|
},
|
|
6569
|
-
/* @__PURE__ */
|
|
6569
|
+
/* @__PURE__ */ React58.createElement(
|
|
6570
6570
|
"div",
|
|
6571
6571
|
{
|
|
6572
6572
|
className: cn(
|
|
@@ -6575,7 +6575,7 @@ var SidebarItem = ({
|
|
|
6575
6575
|
)
|
|
6576
6576
|
},
|
|
6577
6577
|
item.icon && item.icon,
|
|
6578
|
-
/* @__PURE__ */
|
|
6578
|
+
/* @__PURE__ */ React58.createElement(
|
|
6579
6579
|
"span",
|
|
6580
6580
|
{
|
|
6581
6581
|
className: cn(
|
|
@@ -6587,14 +6587,14 @@ var SidebarItem = ({
|
|
|
6587
6587
|
)
|
|
6588
6588
|
)
|
|
6589
6589
|
),
|
|
6590
|
-
item.subitems && /* @__PURE__ */
|
|
6590
|
+
item.subitems && /* @__PURE__ */ React58.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React58.createElement(
|
|
6591
6591
|
"div",
|
|
6592
6592
|
{
|
|
6593
6593
|
className: cn(
|
|
6594
6594
|
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
|
6595
6595
|
)
|
|
6596
6596
|
},
|
|
6597
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
|
6597
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React58.createElement(
|
|
6598
6598
|
"li",
|
|
6599
6599
|
{
|
|
6600
6600
|
key: idx,
|
|
@@ -6619,7 +6619,7 @@ var SidebarItem = ({
|
|
|
6619
6619
|
))
|
|
6620
6620
|
);
|
|
6621
6621
|
} else {
|
|
6622
|
-
return /* @__PURE__ */
|
|
6622
|
+
return /* @__PURE__ */ React58.createElement(
|
|
6623
6623
|
"div",
|
|
6624
6624
|
{
|
|
6625
6625
|
dir: direction,
|
|
@@ -6637,7 +6637,7 @@ var SidebarItem = ({
|
|
|
6637
6637
|
"hawa-overflow-x-clip "
|
|
6638
6638
|
)
|
|
6639
6639
|
},
|
|
6640
|
-
/* @__PURE__ */
|
|
6640
|
+
/* @__PURE__ */ React58.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React58.createElement(
|
|
6641
6641
|
"span",
|
|
6642
6642
|
{
|
|
6643
6643
|
className: cn(
|
|
@@ -6652,13 +6652,13 @@ var SidebarItem = ({
|
|
|
6652
6652
|
};
|
|
6653
6653
|
|
|
6654
6654
|
// components/layout/Copyrights.tsx
|
|
6655
|
-
import
|
|
6655
|
+
import React59 from "react";
|
|
6656
6656
|
var Copyrights = (props) => {
|
|
6657
|
-
return /* @__PURE__ */
|
|
6657
|
+
return /* @__PURE__ */ React59.createElement("div", { className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400" }, props.withLogo ? /* @__PURE__ */ React59.createElement("a", { href: props.onLogoClicked }, /* @__PURE__ */ React59.createElement("div", { className: "hawa-cursor-pointer" }, /* @__PURE__ */ React59.createElement("image", { href: props.logoURL, width: 100, height: 50 }))) : null, /* @__PURE__ */ React59.createElement("div", null, props.version), props.credits ? props.credits : null);
|
|
6658
6658
|
};
|
|
6659
6659
|
|
|
6660
6660
|
// components/layout/Navbar.tsx
|
|
6661
|
-
import
|
|
6661
|
+
import React60, { useState as useState22 } from "react";
|
|
6662
6662
|
|
|
6663
6663
|
// components/elements/Collapsible.tsx
|
|
6664
6664
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
@@ -6674,13 +6674,13 @@ var Navbar = ({
|
|
|
6674
6674
|
...props
|
|
6675
6675
|
}) => {
|
|
6676
6676
|
const [isOpen, setIsOpen] = useState22(false);
|
|
6677
|
-
return /* @__PURE__ */
|
|
6677
|
+
return /* @__PURE__ */ React60.createElement("nav", { className: " hawa-transition-all hawa-sticky hawa-top-2" }, /* @__PURE__ */ React60.createElement(
|
|
6678
6678
|
Collapsible,
|
|
6679
6679
|
{
|
|
6680
6680
|
className: "hawa-p-2 hawa-relative hawa-m-2 hawa-rounded",
|
|
6681
6681
|
style: { backgroundColor: backgroundColor || "#1f2937" }
|
|
6682
6682
|
},
|
|
6683
|
-
/* @__PURE__ */
|
|
6683
|
+
/* @__PURE__ */ React60.createElement("div", { className: "hawa-flex hawa-justify-between hawa-items-center hawa-px-3 " }, /* @__PURE__ */ React60.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ React60.createElement(
|
|
6684
6684
|
"div",
|
|
6685
6685
|
{
|
|
6686
6686
|
className: "hawa-text-white hawa-text-xl hawa-p-1.5 hawa-font-bold",
|
|
@@ -6691,21 +6691,21 @@ var Navbar = ({
|
|
|
6691
6691
|
}
|
|
6692
6692
|
},
|
|
6693
6693
|
logo
|
|
6694
|
-
)), /* @__PURE__ */
|
|
6694
|
+
)), /* @__PURE__ */ React60.createElement("div", { className: "hawa-hidden md:hawa-flex " }, props.menuItems?.map((item) => /* @__PURE__ */ React60.createElement(
|
|
6695
6695
|
"div",
|
|
6696
6696
|
{
|
|
6697
6697
|
onClick: item.action,
|
|
6698
6698
|
className: "hawa-p-1.5 hawa-px-2 hawa-text-sm hawa-text-center hawa-rounded hawa-text-white hover:hawa-text-black hover:hawa-bg-gray-300 hawa-transition-all hawa-cursor-pointer"
|
|
6699
6699
|
},
|
|
6700
6700
|
item.label
|
|
6701
|
-
))), /* @__PURE__ */
|
|
6701
|
+
))), /* @__PURE__ */ React60.createElement("div", { className: "md:hawa-hidden hawa-flex hawa-h-fit hawa-p-0 hawa-m-0" }, /* @__PURE__ */ React60.createElement(
|
|
6702
6702
|
CollapsibleTrigger2,
|
|
6703
6703
|
{
|
|
6704
6704
|
onClick: () => setIsOpen(!isOpen),
|
|
6705
6705
|
className: "hawa-text-white selection:hawa-p-0 hawa-h-full ",
|
|
6706
6706
|
"aria-label": "Toggle menu"
|
|
6707
6707
|
},
|
|
6708
|
-
/* @__PURE__ */
|
|
6708
|
+
/* @__PURE__ */ React60.createElement(
|
|
6709
6709
|
"svg",
|
|
6710
6710
|
{
|
|
6711
6711
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6722,11 +6722,11 @@ var Navbar = ({
|
|
|
6722
6722
|
isOpen ? "hawa-invisible" : "hawa-visible"
|
|
6723
6723
|
)
|
|
6724
6724
|
},
|
|
6725
|
-
/* @__PURE__ */
|
|
6726
|
-
/* @__PURE__ */
|
|
6727
|
-
/* @__PURE__ */
|
|
6725
|
+
/* @__PURE__ */ React60.createElement("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
|
6726
|
+
/* @__PURE__ */ React60.createElement("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
|
6727
|
+
/* @__PURE__ */ React60.createElement("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
|
6728
6728
|
),
|
|
6729
|
-
/* @__PURE__ */
|
|
6729
|
+
/* @__PURE__ */ React60.createElement(
|
|
6730
6730
|
"svg",
|
|
6731
6731
|
{
|
|
6732
6732
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6743,11 +6743,11 @@ var Navbar = ({
|
|
|
6743
6743
|
!isOpen ? "hawa-invisible" : "hawa-visible"
|
|
6744
6744
|
)
|
|
6745
6745
|
},
|
|
6746
|
-
/* @__PURE__ */
|
|
6747
|
-
/* @__PURE__ */
|
|
6746
|
+
/* @__PURE__ */ React60.createElement("path", { d: "M18 6 6 18" }),
|
|
6747
|
+
/* @__PURE__ */ React60.createElement("path", { d: "m6 6 12 12" })
|
|
6748
6748
|
)
|
|
6749
6749
|
))),
|
|
6750
|
-
/* @__PURE__ */
|
|
6750
|
+
/* @__PURE__ */ React60.createElement(
|
|
6751
6751
|
CollapsibleContent2,
|
|
6752
6752
|
{
|
|
6753
6753
|
className: cn(
|
|
@@ -6762,7 +6762,7 @@ var Navbar = ({
|
|
|
6762
6762
|
zIndex: -100
|
|
6763
6763
|
}
|
|
6764
6764
|
},
|
|
6765
|
-
props.menuItems?.map((item) => /* @__PURE__ */
|
|
6765
|
+
props.menuItems?.map((item) => /* @__PURE__ */ React60.createElement(
|
|
6766
6766
|
"div",
|
|
6767
6767
|
{
|
|
6768
6768
|
onClick: item.action,
|
|
@@ -6775,7 +6775,7 @@ var Navbar = ({
|
|
|
6775
6775
|
};
|
|
6776
6776
|
|
|
6777
6777
|
// components/layout/AppLayout.tsx
|
|
6778
|
-
import
|
|
6778
|
+
import React61, { useEffect as useEffect16, useRef as useRef9, useState as useState23 } from "react";
|
|
6779
6779
|
var AppLayout = ({
|
|
6780
6780
|
direction = "ltr",
|
|
6781
6781
|
drawerSize = "md",
|
|
@@ -6838,7 +6838,7 @@ var AppLayout = ({
|
|
|
6838
6838
|
document.removeEventListener("click", handleClickOutside, true);
|
|
6839
6839
|
};
|
|
6840
6840
|
}, [keepOpen]);
|
|
6841
|
-
return /* @__PURE__ */
|
|
6841
|
+
return /* @__PURE__ */ React61.createElement("div", { className: "hawa-fixed hawa-left-0" }, props.topBar && /* @__PURE__ */ React61.createElement(
|
|
6842
6842
|
"div",
|
|
6843
6843
|
{
|
|
6844
6844
|
className: cn(
|
|
@@ -6846,7 +6846,7 @@ var AppLayout = ({
|
|
|
6846
6846
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
6847
6847
|
)
|
|
6848
6848
|
},
|
|
6849
|
-
size > 600 ? /* @__PURE__ */
|
|
6849
|
+
size > 600 ? /* @__PURE__ */ React61.createElement(
|
|
6850
6850
|
"div",
|
|
6851
6851
|
{
|
|
6852
6852
|
className: cn(
|
|
@@ -6868,24 +6868,24 @@ var AppLayout = ({
|
|
|
6868
6868
|
props.pageTitle
|
|
6869
6869
|
) : (
|
|
6870
6870
|
// Mobile Drawer Menu Button
|
|
6871
|
-
/* @__PURE__ */
|
|
6871
|
+
/* @__PURE__ */ React61.createElement(
|
|
6872
6872
|
"div",
|
|
6873
6873
|
{
|
|
6874
6874
|
dir: direction,
|
|
6875
6875
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
6876
6876
|
},
|
|
6877
|
-
/* @__PURE__ */
|
|
6877
|
+
/* @__PURE__ */ React61.createElement(
|
|
6878
6878
|
"div",
|
|
6879
6879
|
{
|
|
6880
6880
|
onClick: () => setOpenSideMenu(true),
|
|
6881
6881
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
6882
6882
|
},
|
|
6883
|
-
/* @__PURE__ */
|
|
6883
|
+
/* @__PURE__ */ React61.createElement(MenuIcon, null)
|
|
6884
6884
|
),
|
|
6885
|
-
props.pageTitle ? /* @__PURE__ */
|
|
6885
|
+
props.pageTitle ? /* @__PURE__ */ React61.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ React61.createElement("div", null)
|
|
6886
6886
|
)
|
|
6887
6887
|
),
|
|
6888
|
-
/* @__PURE__ */
|
|
6888
|
+
/* @__PURE__ */ React61.createElement(
|
|
6889
6889
|
"div",
|
|
6890
6890
|
{
|
|
6891
6891
|
className: cn(
|
|
@@ -6893,16 +6893,16 @@ var AppLayout = ({
|
|
|
6893
6893
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
6894
6894
|
)
|
|
6895
6895
|
},
|
|
6896
|
-
size > 600 ? /* @__PURE__ */
|
|
6896
|
+
size > 600 ? /* @__PURE__ */ React61.createElement(
|
|
6897
6897
|
"div",
|
|
6898
6898
|
{
|
|
6899
6899
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
|
6900
6900
|
},
|
|
6901
|
-
/* @__PURE__ */
|
|
6901
|
+
/* @__PURE__ */ React61.createElement("div", { className: "hawa-font-bold" }, props.username),
|
|
6902
6902
|
" ",
|
|
6903
|
-
/* @__PURE__ */
|
|
6903
|
+
/* @__PURE__ */ React61.createElement("div", null, props.email)
|
|
6904
6904
|
) : null,
|
|
6905
|
-
/* @__PURE__ */
|
|
6905
|
+
/* @__PURE__ */ React61.createElement(
|
|
6906
6906
|
DropdownMenu,
|
|
6907
6907
|
{
|
|
6908
6908
|
triggerClassname: "hawa-mx-2",
|
|
@@ -6914,7 +6914,7 @@ var AppLayout = ({
|
|
|
6914
6914
|
direction: isRTL ? "rtl" : "ltr",
|
|
6915
6915
|
items: props.profileMenuItems,
|
|
6916
6916
|
onItemSelect: (e) => console.log("selecting item ", e),
|
|
6917
|
-
trigger: /* @__PURE__ */
|
|
6917
|
+
trigger: /* @__PURE__ */ React61.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ React61.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React61.createElement(
|
|
6918
6918
|
"svg",
|
|
6919
6919
|
{
|
|
6920
6920
|
"aria-label": "Avatar Icon",
|
|
@@ -6922,7 +6922,7 @@ var AppLayout = ({
|
|
|
6922
6922
|
fill: "currentColor",
|
|
6923
6923
|
viewBox: "0 0 20 20"
|
|
6924
6924
|
},
|
|
6925
|
-
/* @__PURE__ */
|
|
6925
|
+
/* @__PURE__ */ React61.createElement(
|
|
6926
6926
|
"path",
|
|
6927
6927
|
{
|
|
6928
6928
|
fillRule: "evenodd",
|
|
@@ -6934,7 +6934,7 @@ var AppLayout = ({
|
|
|
6934
6934
|
}
|
|
6935
6935
|
)
|
|
6936
6936
|
)
|
|
6937
|
-
), /* @__PURE__ */
|
|
6937
|
+
), /* @__PURE__ */ React61.createElement(
|
|
6938
6938
|
"div",
|
|
6939
6939
|
{
|
|
6940
6940
|
className: cn(
|
|
@@ -6962,7 +6962,7 @@ var AppLayout = ({
|
|
|
6962
6962
|
},
|
|
6963
6963
|
ref
|
|
6964
6964
|
},
|
|
6965
|
-
/* @__PURE__ */
|
|
6965
|
+
/* @__PURE__ */ React61.createElement(
|
|
6966
6966
|
"div",
|
|
6967
6967
|
{
|
|
6968
6968
|
onClick: props.onLogoClick,
|
|
@@ -6975,7 +6975,7 @@ var AppLayout = ({
|
|
|
6975
6975
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
6976
6976
|
}
|
|
6977
6977
|
},
|
|
6978
|
-
/* @__PURE__ */
|
|
6978
|
+
/* @__PURE__ */ React61.createElement(
|
|
6979
6979
|
"img",
|
|
6980
6980
|
{
|
|
6981
6981
|
className: cn(
|
|
@@ -6985,7 +6985,7 @@ var AppLayout = ({
|
|
|
6985
6985
|
src: props.logoLink
|
|
6986
6986
|
}
|
|
6987
6987
|
),
|
|
6988
|
-
size > 600 ? /* @__PURE__ */
|
|
6988
|
+
size > 600 ? /* @__PURE__ */ React61.createElement(
|
|
6989
6989
|
"img",
|
|
6990
6990
|
{
|
|
6991
6991
|
className: cn(
|
|
@@ -6997,7 +6997,7 @@ var AppLayout = ({
|
|
|
6997
6997
|
}
|
|
6998
6998
|
) : null
|
|
6999
6999
|
),
|
|
7000
|
-
/* @__PURE__ */
|
|
7000
|
+
/* @__PURE__ */ React61.createElement(
|
|
7001
7001
|
"div",
|
|
7002
7002
|
{
|
|
7003
7003
|
className: cn(
|
|
@@ -7008,7 +7008,7 @@ var AppLayout = ({
|
|
|
7008
7008
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
7009
7009
|
}
|
|
7010
7010
|
},
|
|
7011
|
-
/* @__PURE__ */
|
|
7011
|
+
/* @__PURE__ */ React61.createElement(
|
|
7012
7012
|
SidebarGroup,
|
|
7013
7013
|
{
|
|
7014
7014
|
direction,
|
|
@@ -7030,7 +7030,7 @@ var AppLayout = ({
|
|
|
7030
7030
|
}
|
|
7031
7031
|
)
|
|
7032
7032
|
),
|
|
7033
|
-
/* @__PURE__ */
|
|
7033
|
+
/* @__PURE__ */ React61.createElement(
|
|
7034
7034
|
"div",
|
|
7035
7035
|
{
|
|
7036
7036
|
className: cn(
|
|
@@ -7042,15 +7042,15 @@ var AppLayout = ({
|
|
|
7042
7042
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
7043
7043
|
}
|
|
7044
7044
|
},
|
|
7045
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
|
7046
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
|
7045
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React61.createElement(React61.Fragment, null, DrawerFooterActions) : null,
|
|
7046
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ React61.createElement(
|
|
7047
7047
|
Tooltip,
|
|
7048
7048
|
{
|
|
7049
7049
|
side: "left",
|
|
7050
7050
|
delayDuration: 500,
|
|
7051
7051
|
content: keepOpen ? props.texts?.collapseSidebar || "Collapse Sidebar" : props.texts?.expandSidebar || "Expand Sidebar"
|
|
7052
7052
|
},
|
|
7053
|
-
/* @__PURE__ */
|
|
7053
|
+
/* @__PURE__ */ React61.createElement(
|
|
7054
7054
|
Button,
|
|
7055
7055
|
{
|
|
7056
7056
|
variant: "light",
|
|
@@ -7063,7 +7063,7 @@ var AppLayout = ({
|
|
|
7063
7063
|
},
|
|
7064
7064
|
size: "smallIcon"
|
|
7065
7065
|
},
|
|
7066
|
-
/* @__PURE__ */
|
|
7066
|
+
/* @__PURE__ */ React61.createElement(
|
|
7067
7067
|
"svg",
|
|
7068
7068
|
{
|
|
7069
7069
|
className: cn(
|
|
@@ -7073,7 +7073,7 @@ var AppLayout = ({
|
|
|
7073
7073
|
fill: "currentColor",
|
|
7074
7074
|
viewBox: "0 0 20 20"
|
|
7075
7075
|
},
|
|
7076
|
-
/* @__PURE__ */
|
|
7076
|
+
/* @__PURE__ */ React61.createElement(
|
|
7077
7077
|
"path",
|
|
7078
7078
|
{
|
|
7079
7079
|
fillRule: "evenodd",
|
|
@@ -7085,7 +7085,7 @@ var AppLayout = ({
|
|
|
7085
7085
|
)
|
|
7086
7086
|
) : null
|
|
7087
7087
|
)
|
|
7088
|
-
), /* @__PURE__ */
|
|
7088
|
+
), /* @__PURE__ */ React61.createElement(
|
|
7089
7089
|
"div",
|
|
7090
7090
|
{
|
|
7091
7091
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all",
|
|
@@ -7104,7 +7104,7 @@ var AppLayout = ({
|
|
|
7104
7104
|
props.children
|
|
7105
7105
|
));
|
|
7106
7106
|
};
|
|
7107
|
-
var MenuIcon = () => /* @__PURE__ */
|
|
7107
|
+
var MenuIcon = () => /* @__PURE__ */ React61.createElement(
|
|
7108
7108
|
"svg",
|
|
7109
7109
|
{
|
|
7110
7110
|
"aria-label": "Menu Button",
|
|
@@ -7116,7 +7116,7 @@ var MenuIcon = () => /* @__PURE__ */ React62.createElement(
|
|
|
7116
7116
|
height: "1.6em",
|
|
7117
7117
|
width: "1.6em"
|
|
7118
7118
|
},
|
|
7119
|
-
/* @__PURE__ */
|
|
7119
|
+
/* @__PURE__ */ React61.createElement(
|
|
7120
7120
|
"path",
|
|
7121
7121
|
{
|
|
7122
7122
|
fillRule: "evenodd",
|
|
@@ -7127,11 +7127,11 @@ var MenuIcon = () => /* @__PURE__ */ React62.createElement(
|
|
|
7127
7127
|
);
|
|
7128
7128
|
|
|
7129
7129
|
// components/layout/AppTopbar.tsx
|
|
7130
|
-
import
|
|
7130
|
+
import React62 from "react";
|
|
7131
7131
|
var AppTopbar = ({ ...props }) => {
|
|
7132
7132
|
const isRTL = props.direction === "ltr";
|
|
7133
7133
|
const size = 1200;
|
|
7134
|
-
return /* @__PURE__ */
|
|
7134
|
+
return /* @__PURE__ */ React62.createElement(
|
|
7135
7135
|
"div",
|
|
7136
7136
|
{
|
|
7137
7137
|
className: cn(
|
|
@@ -7139,24 +7139,24 @@ var AppTopbar = ({ ...props }) => {
|
|
|
7139
7139
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
7140
7140
|
)
|
|
7141
7141
|
},
|
|
7142
|
-
size > 600 ? /* @__PURE__ */
|
|
7142
|
+
size > 600 ? /* @__PURE__ */ React62.createElement(
|
|
7143
7143
|
"div",
|
|
7144
7144
|
null,
|
|
7145
7145
|
"page title"
|
|
7146
7146
|
) : (
|
|
7147
7147
|
// Mobile Drawer Menu Button
|
|
7148
|
-
/* @__PURE__ */
|
|
7148
|
+
/* @__PURE__ */ React62.createElement(
|
|
7149
7149
|
"div",
|
|
7150
7150
|
{
|
|
7151
7151
|
dir: props.direction,
|
|
7152
7152
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
7153
7153
|
},
|
|
7154
|
-
/* @__PURE__ */
|
|
7154
|
+
/* @__PURE__ */ React62.createElement(
|
|
7155
7155
|
"div",
|
|
7156
7156
|
{
|
|
7157
7157
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
7158
7158
|
},
|
|
7159
|
-
/* @__PURE__ */
|
|
7159
|
+
/* @__PURE__ */ React62.createElement(
|
|
7160
7160
|
"svg",
|
|
7161
7161
|
{
|
|
7162
7162
|
stroke: "currentColor",
|
|
@@ -7167,7 +7167,7 @@ var AppTopbar = ({ ...props }) => {
|
|
|
7167
7167
|
height: "1.6em",
|
|
7168
7168
|
width: "1.6em"
|
|
7169
7169
|
},
|
|
7170
|
-
/* @__PURE__ */
|
|
7170
|
+
/* @__PURE__ */ React62.createElement(
|
|
7171
7171
|
"path",
|
|
7172
7172
|
{
|
|
7173
7173
|
fillRule: "evenodd",
|
|
@@ -7180,7 +7180,7 @@ var AppTopbar = ({ ...props }) => {
|
|
|
7180
7180
|
"Mobile title"
|
|
7181
7181
|
)
|
|
7182
7182
|
),
|
|
7183
|
-
/* @__PURE__ */
|
|
7183
|
+
/* @__PURE__ */ React62.createElement(
|
|
7184
7184
|
"div",
|
|
7185
7185
|
{
|
|
7186
7186
|
className: cn(
|
|
@@ -7188,16 +7188,16 @@ var AppTopbar = ({ ...props }) => {
|
|
|
7188
7188
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
7189
7189
|
)
|
|
7190
7190
|
},
|
|
7191
|
-
size > 600 ? /* @__PURE__ */
|
|
7191
|
+
size > 600 ? /* @__PURE__ */ React62.createElement(
|
|
7192
7192
|
"div",
|
|
7193
7193
|
{
|
|
7194
7194
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
|
7195
7195
|
},
|
|
7196
|
-
/* @__PURE__ */
|
|
7196
|
+
/* @__PURE__ */ React62.createElement("div", { className: "hawa-font-bold" }, props.username),
|
|
7197
7197
|
" ",
|
|
7198
|
-
/* @__PURE__ */
|
|
7198
|
+
/* @__PURE__ */ React62.createElement("div", null, props.email)
|
|
7199
7199
|
) : null,
|
|
7200
|
-
/* @__PURE__ */
|
|
7200
|
+
/* @__PURE__ */ React62.createElement(
|
|
7201
7201
|
DropdownMenu,
|
|
7202
7202
|
{
|
|
7203
7203
|
triggerClassname: "hawa-mx-2",
|
|
@@ -7208,7 +7208,7 @@ var AppTopbar = ({ ...props }) => {
|
|
|
7208
7208
|
direction: isRTL ? "rtl" : "ltr",
|
|
7209
7209
|
items: props.profileMenuItems,
|
|
7210
7210
|
onItemSelect: (e) => console.log("selecting item ", e),
|
|
7211
|
-
trigger: /* @__PURE__ */
|
|
7211
|
+
trigger: /* @__PURE__ */ React62.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ React62.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React62.createElement(
|
|
7212
7212
|
"svg",
|
|
7213
7213
|
{
|
|
7214
7214
|
"aria-label": "Avatar Icon",
|
|
@@ -7216,7 +7216,7 @@ var AppTopbar = ({ ...props }) => {
|
|
|
7216
7216
|
fill: "currentColor",
|
|
7217
7217
|
viewBox: "0 0 20 20"
|
|
7218
7218
|
},
|
|
7219
|
-
/* @__PURE__ */
|
|
7219
|
+
/* @__PURE__ */ React62.createElement(
|
|
7220
7220
|
"path",
|
|
7221
7221
|
{
|
|
7222
7222
|
fillRule: "evenodd",
|
|
@@ -7232,7 +7232,7 @@ var AppTopbar = ({ ...props }) => {
|
|
|
7232
7232
|
};
|
|
7233
7233
|
|
|
7234
7234
|
// components/layout/DocsLayout.tsx
|
|
7235
|
-
import
|
|
7235
|
+
import React65, { useEffect as useEffect18, useRef as useRef10, useState as useState25 } from "react";
|
|
7236
7236
|
|
|
7237
7237
|
// components/hooks/useBreakpoint.ts
|
|
7238
7238
|
import { useState as useState24, useEffect as useEffect17 } from "react";
|
|
@@ -7254,7 +7254,7 @@ var useBreakpoint = () => {
|
|
|
7254
7254
|
};
|
|
7255
7255
|
|
|
7256
7256
|
// components/layout/DocsSidebar.tsx
|
|
7257
|
-
import
|
|
7257
|
+
import React64 from "react";
|
|
7258
7258
|
var DocsSidebar = ({ test, ...props }) => {
|
|
7259
7259
|
const pages = [
|
|
7260
7260
|
"Introduction",
|
|
@@ -7263,11 +7263,11 @@ var DocsSidebar = ({ test, ...props }) => {
|
|
|
7263
7263
|
"API Reference",
|
|
7264
7264
|
"FAQ"
|
|
7265
7265
|
];
|
|
7266
|
-
const [currentPage, setCurrentPage] =
|
|
7266
|
+
const [currentPage, setCurrentPage] = React64.useState(pages[0]);
|
|
7267
7267
|
const handlePageClick = (page) => {
|
|
7268
7268
|
setCurrentPage(page);
|
|
7269
7269
|
};
|
|
7270
|
-
return /* @__PURE__ */
|
|
7270
|
+
return /* @__PURE__ */ React64.createElement("div", { className: "hawa-flex hawa-flex-col hawa-overflow-x-clip" }, pages.map((page, index) => /* @__PURE__ */ React64.createElement(
|
|
7271
7271
|
"a",
|
|
7272
7272
|
{
|
|
7273
7273
|
key: index,
|
|
@@ -7336,7 +7336,7 @@ var DocsLayout = ({
|
|
|
7336
7336
|
};
|
|
7337
7337
|
}, [keepOpen]);
|
|
7338
7338
|
let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
|
7339
|
-
return /* @__PURE__ */
|
|
7339
|
+
return /* @__PURE__ */ React65.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ React65.createElement(
|
|
7340
7340
|
"div",
|
|
7341
7341
|
{
|
|
7342
7342
|
className: cn(
|
|
@@ -7344,7 +7344,7 @@ var DocsLayout = ({
|
|
|
7344
7344
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
7345
7345
|
)
|
|
7346
7346
|
},
|
|
7347
|
-
size > 600 ? /* @__PURE__ */
|
|
7347
|
+
size > 600 ? /* @__PURE__ */ React65.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ React65.createElement(
|
|
7348
7348
|
"img",
|
|
7349
7349
|
{
|
|
7350
7350
|
className: cn(
|
|
@@ -7355,18 +7355,18 @@ var DocsLayout = ({
|
|
|
7355
7355
|
}
|
|
7356
7356
|
)) : (
|
|
7357
7357
|
// Mobile Drawer Menu Button
|
|
7358
|
-
/* @__PURE__ */
|
|
7358
|
+
/* @__PURE__ */ React65.createElement(
|
|
7359
7359
|
"div",
|
|
7360
7360
|
{
|
|
7361
7361
|
dir: direction,
|
|
7362
7362
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
7363
7363
|
},
|
|
7364
|
-
/* @__PURE__ */
|
|
7364
|
+
/* @__PURE__ */ React65.createElement(Sheet, null, /* @__PURE__ */ React65.createElement(SheetTrigger, null, " ", /* @__PURE__ */ React65.createElement(
|
|
7365
7365
|
"div",
|
|
7366
7366
|
{
|
|
7367
7367
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
7368
7368
|
},
|
|
7369
|
-
/* @__PURE__ */
|
|
7369
|
+
/* @__PURE__ */ React65.createElement(
|
|
7370
7370
|
"svg",
|
|
7371
7371
|
{
|
|
7372
7372
|
"aria-label": "Menu Icon",
|
|
@@ -7378,7 +7378,7 @@ var DocsLayout = ({
|
|
|
7378
7378
|
height: "1.6em",
|
|
7379
7379
|
width: "1.6em"
|
|
7380
7380
|
},
|
|
7381
|
-
/* @__PURE__ */
|
|
7381
|
+
/* @__PURE__ */ React65.createElement(
|
|
7382
7382
|
"path",
|
|
7383
7383
|
{
|
|
7384
7384
|
fillRule: "evenodd",
|
|
@@ -7387,18 +7387,18 @@ var DocsLayout = ({
|
|
|
7387
7387
|
}
|
|
7388
7388
|
)
|
|
7389
7389
|
)
|
|
7390
|
-
)), /* @__PURE__ */
|
|
7390
|
+
)), /* @__PURE__ */ React65.createElement(
|
|
7391
7391
|
SheetContent,
|
|
7392
7392
|
{
|
|
7393
7393
|
side: isRTL ? "right" : "left",
|
|
7394
7394
|
className: "hawa-pt-10"
|
|
7395
7395
|
},
|
|
7396
7396
|
" ",
|
|
7397
|
-
/* @__PURE__ */
|
|
7397
|
+
/* @__PURE__ */ React65.createElement(DocsSidebar, null)
|
|
7398
7398
|
))
|
|
7399
7399
|
)
|
|
7400
7400
|
),
|
|
7401
|
-
/* @__PURE__ */
|
|
7401
|
+
/* @__PURE__ */ React65.createElement(
|
|
7402
7402
|
"div",
|
|
7403
7403
|
{
|
|
7404
7404
|
className: cn(
|
|
@@ -7406,9 +7406,9 @@ var DocsLayout = ({
|
|
|
7406
7406
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
7407
7407
|
)
|
|
7408
7408
|
},
|
|
7409
|
-
/* @__PURE__ */
|
|
7409
|
+
/* @__PURE__ */ React65.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ React65.createElement(Logos.github, { className: "hawa-w-4 hawa-h-4" }))
|
|
7410
7410
|
)
|
|
7411
|
-
), /* @__PURE__ */
|
|
7411
|
+
), /* @__PURE__ */ React65.createElement(
|
|
7412
7412
|
"div",
|
|
7413
7413
|
{
|
|
7414
7414
|
className: cn(
|
|
@@ -7432,8 +7432,8 @@ var DocsLayout = ({
|
|
|
7432
7432
|
},
|
|
7433
7433
|
ref
|
|
7434
7434
|
},
|
|
7435
|
-
/* @__PURE__ */
|
|
7436
|
-
), /* @__PURE__ */
|
|
7435
|
+
/* @__PURE__ */ React65.createElement(DocsSidebar, null)
|
|
7436
|
+
), /* @__PURE__ */ React65.createElement("div", null, "overlay sidebar"), /* @__PURE__ */ React65.createElement(
|
|
7437
7437
|
"div",
|
|
7438
7438
|
{
|
|
7439
7439
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
|
@@ -7463,76 +7463,77 @@ import { parsePhoneNumber } from "libphonenumber-js";
|
|
|
7463
7463
|
import * as z from "zod";
|
|
7464
7464
|
|
|
7465
7465
|
// components/blocks/auth/AuthButtons.tsx
|
|
7466
|
-
import
|
|
7466
|
+
import React66 from "react";
|
|
7467
7467
|
var AuthButtons = (props) => {
|
|
7468
|
-
return /* @__PURE__ */
|
|
7468
|
+
return /* @__PURE__ */ React66.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaGoogle && /* @__PURE__ */ React66.createElement(
|
|
7469
7469
|
Button,
|
|
7470
7470
|
{
|
|
7471
7471
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7472
7472
|
variant: "outline",
|
|
7473
7473
|
onClick: props.handleGoogle
|
|
7474
7474
|
},
|
|
7475
|
-
/* @__PURE__ */
|
|
7475
|
+
/* @__PURE__ */ React66.createElement(Logos.google, { className: "hawa-h-4 hawa-w-4" }),
|
|
7476
7476
|
props.texts?.continueWithGoogle ?? "Continue With Google"
|
|
7477
|
-
), props.viaGithub && /* @__PURE__ */
|
|
7477
|
+
), props.viaGithub && /* @__PURE__ */ React66.createElement(
|
|
7478
7478
|
Button,
|
|
7479
7479
|
{
|
|
7480
7480
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7481
7481
|
variant: "outline",
|
|
7482
7482
|
onClick: props.handleGithub
|
|
7483
7483
|
},
|
|
7484
|
-
/* @__PURE__ */
|
|
7484
|
+
/* @__PURE__ */ React66.createElement(Logos.github, { className: "hawa-h-4 hawa-w-4" }),
|
|
7485
7485
|
props.texts?.continueWithGithub ?? "Continue With Github"
|
|
7486
|
-
), props.viaTwitter && /* @__PURE__ */
|
|
7486
|
+
), props.viaTwitter && /* @__PURE__ */ React66.createElement(
|
|
7487
7487
|
Button,
|
|
7488
7488
|
{
|
|
7489
7489
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7490
7490
|
variant: "outline",
|
|
7491
7491
|
onClick: props.handleTwitter
|
|
7492
7492
|
},
|
|
7493
|
-
/* @__PURE__ */
|
|
7493
|
+
/* @__PURE__ */ React66.createElement(Logos.twitter, { className: "hawa-h-4 hawa-w-4" }),
|
|
7494
7494
|
props.texts?.continueWithTwitter ?? "Continue With Twitter"
|
|
7495
|
-
), props.viaApple && /* @__PURE__ */
|
|
7495
|
+
), props.viaApple && /* @__PURE__ */ React66.createElement(
|
|
7496
7496
|
Button,
|
|
7497
7497
|
{
|
|
7498
7498
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7499
7499
|
variant: "outline",
|
|
7500
7500
|
onClick: props.handleApple
|
|
7501
7501
|
},
|
|
7502
|
-
/* @__PURE__ */
|
|
7502
|
+
/* @__PURE__ */ React66.createElement(Logos.apple, { className: "hawa-h-4 hawa-w-4" }),
|
|
7503
7503
|
props.texts?.continueWithApple ?? "Continue With Apple"
|
|
7504
|
-
), props.viaMicrosoft && /* @__PURE__ */
|
|
7504
|
+
), props.viaMicrosoft && /* @__PURE__ */ React66.createElement(
|
|
7505
7505
|
Button,
|
|
7506
7506
|
{
|
|
7507
7507
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7508
7508
|
variant: "outline",
|
|
7509
7509
|
onClick: props.handleMicrosoft
|
|
7510
7510
|
},
|
|
7511
|
-
/* @__PURE__ */
|
|
7511
|
+
/* @__PURE__ */ React66.createElement(Logos.microsoft, { className: "hawa-h-4 hawa-w-4" }),
|
|
7512
7512
|
props.texts?.continueWithMicrosoft ?? "Continue With Microsoft"
|
|
7513
|
-
), props.viaEmail && /* @__PURE__ */
|
|
7513
|
+
), props.viaEmail && /* @__PURE__ */ React66.createElement(
|
|
7514
7514
|
Button,
|
|
7515
7515
|
{
|
|
7516
7516
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7517
7517
|
variant: "outline",
|
|
7518
7518
|
onClick: props.handleEmail
|
|
7519
7519
|
},
|
|
7520
|
-
/* @__PURE__ */
|
|
7520
|
+
/* @__PURE__ */ React66.createElement(Logos.mail, { className: "hawa-h-4 hawa-w-4" }),
|
|
7521
7521
|
props.texts?.continueWithEmail ?? "Continue With Email"
|
|
7522
|
-
), props.viaPhone && /* @__PURE__ */
|
|
7522
|
+
), props.viaPhone && /* @__PURE__ */ React66.createElement(
|
|
7523
7523
|
Button,
|
|
7524
7524
|
{
|
|
7525
7525
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7526
7526
|
variant: "outline",
|
|
7527
7527
|
onClick: props.handlePhone
|
|
7528
7528
|
},
|
|
7529
|
-
/* @__PURE__ */
|
|
7529
|
+
/* @__PURE__ */ React66.createElement(Logos.phone, { className: "hawa-h-4 hawa-w-4" }),
|
|
7530
7530
|
props.texts?.continueWithPhone ?? "Continue With Phone"
|
|
7531
7531
|
));
|
|
7532
7532
|
};
|
|
7533
7533
|
|
|
7534
7534
|
// components/icons/index.tsx
|
|
7535
|
-
|
|
7535
|
+
import React67 from "react";
|
|
7536
|
+
var EyeIcon = (props) => /* @__PURE__ */ React67.createElement("div", { className: props.classNames }, /* @__PURE__ */ React67.createElement(
|
|
7536
7537
|
"svg",
|
|
7537
7538
|
{
|
|
7538
7539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7545,10 +7546,10 @@ var EyeIcon = (props) => /* @__PURE__ */ React.createElement("div", { className:
|
|
|
7545
7546
|
"stroke-linecap": "round",
|
|
7546
7547
|
"stroke-linejoin": "round"
|
|
7547
7548
|
},
|
|
7548
|
-
/* @__PURE__ */
|
|
7549
|
-
/* @__PURE__ */
|
|
7549
|
+
/* @__PURE__ */ React67.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
7550
|
+
/* @__PURE__ */ React67.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
|
7550
7551
|
));
|
|
7551
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
|
7552
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ React67.createElement("div", { className: props.classNames }, /* @__PURE__ */ React67.createElement(
|
|
7552
7553
|
"svg",
|
|
7553
7554
|
{
|
|
7554
7555
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7561,10 +7562,10 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ React.createElement("div", { clas
|
|
|
7561
7562
|
"stroke-linecap": "round",
|
|
7562
7563
|
"stroke-linejoin": "round"
|
|
7563
7564
|
},
|
|
7564
|
-
/* @__PURE__ */
|
|
7565
|
-
/* @__PURE__ */
|
|
7566
|
-
/* @__PURE__ */
|
|
7567
|
-
/* @__PURE__ */
|
|
7565
|
+
/* @__PURE__ */ React67.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
|
7566
|
+
/* @__PURE__ */ React67.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
|
7567
|
+
/* @__PURE__ */ React67.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
|
7568
|
+
/* @__PURE__ */ React67.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
|
7568
7569
|
));
|
|
7569
7570
|
|
|
7570
7571
|
// components/blocks/auth/LoginForm.tsx
|