@sikka/hawa 0.36.2-next → 0.37.1-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/appLayout/index.js +1 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +1 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +24 -25
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +24 -25
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.js +308 -192
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +270 -154
- package/dist/blocks/misc/index.mjs +53 -19
- package/dist/blocks/pricing/index.js +107 -22
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/card/index.d.mts +3 -1
- package/dist/card/index.d.ts +3 -1
- package/dist/card/index.js +13 -11
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +13 -11
- package/dist/card/index.mjs.map +1 -1
- package/dist/{chunk-WABHQMUI.mjs → chunk-BPHQFAWM.mjs} +1 -1
- package/dist/{chunk-MVKP55SZ.mjs → chunk-BTDR3VAG.mjs} +1 -1
- package/dist/{chunk-7L2JUNG2.mjs → chunk-DS3AACQJ.mjs} +1 -1
- package/dist/{chunk-BXBSZD5X.mjs → chunk-MDHDHEPZ.mjs} +1 -1
- package/dist/{chunk-6QIOEUE2.mjs → chunk-ODOCZAWC.mjs} +1 -1
- package/dist/{chunk-YP2CCKZG.mjs → chunk-PXGL7ZXQ.mjs} +13 -11
- package/dist/{chunk-HLYAX77R.mjs → chunk-QXH7ZDMN.mjs} +12 -15
- package/dist/{chunk-T33FXOHA.mjs → chunk-QYWOI3DO.mjs} +152 -41
- package/dist/{chunk-NNPNQK6F.mjs → chunk-RNFJAEEU.mjs} +13 -11
- package/dist/{chunk-OPYDG34F.mjs → chunk-ZBUBNKF6.mjs} +93 -1
- package/dist/{chunk-CJ57JBYA.mjs → chunk-ZTUWU652.mjs} +95 -12
- package/dist/combobox/index.d.mts +1 -4
- package/dist/combobox/index.d.ts +1 -4
- package/dist/combobox/index.js +2 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +2 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.d.mts +4 -36
- package/dist/command/index.d.ts +4 -36
- package/dist/command/index.js +43 -5
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +39 -3
- package/dist/command/index.mjs.map +1 -1
- package/dist/destroyableCard/index.js +13 -11
- package/dist/destroyableCard/index.js.map +1 -1
- package/dist/destroyableCard/index.mjs +13 -11
- package/dist/destroyableCard/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +31 -3
- package/dist/elements/index.d.ts +31 -3
- package/dist/elements/index.js +450 -295
- package/dist/elements/index.mjs +43 -6
- package/dist/hooks/index.d.mts +25 -1
- package/dist/hooks/index.d.ts +25 -1
- package/dist/hooks/index.js +96 -0
- package/dist/hooks/index.mjs +9 -1
- package/dist/index-e_Ob_SnB.d.mts +63 -0
- package/dist/index-e_Ob_SnB.d.ts +63 -0
- package/dist/index.css +20 -3
- package/dist/index.d.mts +55 -3
- package/dist/index.d.ts +55 -3
- package/dist/index.js +966 -718
- package/dist/index.mjs +494 -252
- package/dist/layout/index.js +14 -12
- package/dist/layout/index.mjs +3 -3
- package/dist/phoneInput/index.js +11 -14
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +11 -14
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/scrollArea/index.js +94 -11
- package/dist/scrollArea/index.js.map +1 -1
- package/dist/scrollArea/index.mjs +94 -11
- package/dist/scrollArea/index.mjs.map +1 -1
- package/dist/select/index.js +11 -14
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +11 -14
- package/dist/select/index.mjs.map +1 -1
- package/dist/stats/index.js +13 -11
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +13 -11
- package/dist/stats/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +3 -1
- package/dist/tabs/index.d.ts +3 -1
- package/dist/tabs/index.js +189 -32
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +184 -27
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/elements/index.js
CHANGED
@@ -37,6 +37,7 @@ __export(elements_exports, {
|
|
37
37
|
AccordionRoot: () => AccordionRoot,
|
38
38
|
AccordionTrigger: () => AccordionTrigger,
|
39
39
|
Alert: () => Alert,
|
40
|
+
AppCommand: () => AppCommand,
|
40
41
|
AppStores: () => AppStores,
|
41
42
|
Avatar: () => Avatar,
|
42
43
|
BackToTop: () => BackToTop,
|
@@ -100,6 +101,7 @@ __export(elements_exports, {
|
|
100
101
|
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
101
102
|
FileDropzone: () => FileDropzone,
|
102
103
|
FileUploader: () => FileUploader,
|
104
|
+
FullCommand: () => FullCommand,
|
103
105
|
Input: () => Input,
|
104
106
|
InterfaceSettings: () => InterfaceSettings,
|
105
107
|
Label: () => Label2,
|
@@ -236,17 +238,19 @@ var Card = React.forwardRef(
|
|
236
238
|
);
|
237
239
|
}
|
238
240
|
);
|
239
|
-
var CardHeader = React.forwardRef(
|
240
|
-
"div",
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
241
|
+
var CardHeader = React.forwardRef(
|
242
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React.createElement(
|
243
|
+
"div",
|
244
|
+
{
|
245
|
+
ref,
|
246
|
+
className: cn(
|
247
|
+
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
|
248
|
+
className
|
249
|
+
),
|
250
|
+
...props
|
251
|
+
}
|
252
|
+
), props.actions && /* @__PURE__ */ React.createElement("div", { className: "hawa-p-6" }, props.actions))
|
253
|
+
);
|
250
254
|
var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
251
255
|
"h3",
|
252
256
|
{
|
@@ -3640,6 +3644,7 @@ var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
|
|
3640
3644
|
|
3641
3645
|
// elements/command/Command.tsx
|
3642
3646
|
var React27 = __toESM(require("react"));
|
3647
|
+
var import_react_dialog = require("@radix-ui/react-dialog");
|
3643
3648
|
var import_cmdk = require("cmdk");
|
3644
3649
|
var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
3645
3650
|
import_cmdk.Command,
|
@@ -3653,7 +3658,7 @@ var Command = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
3653
3658
|
}
|
3654
3659
|
));
|
3655
3660
|
var CommandDialog = ({ children, ...props }) => {
|
3656
|
-
return /* @__PURE__ */ React27.createElement(Dialog, { ...props }, /* @__PURE__ */ React27.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React27.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)));
|
3661
|
+
return /* @__PURE__ */ React27.createElement(import_react_dialog.Dialog, { ...props }, /* @__PURE__ */ React27.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React27.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)));
|
3657
3662
|
};
|
3658
3663
|
var CommandInput = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
3659
3664
|
"div",
|
@@ -3748,13 +3753,47 @@ var CommandShortcut = ({
|
|
3748
3753
|
"span",
|
3749
3754
|
{
|
3750
3755
|
className: cn(
|
3751
|
-
"hawa-
|
3756
|
+
"hawa-ms-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground",
|
3752
3757
|
className
|
3753
3758
|
),
|
3754
3759
|
...props
|
3755
3760
|
}
|
3756
3761
|
);
|
3757
3762
|
};
|
3763
|
+
var FullCommand = ({ items, direction = "ltr", texts }) => {
|
3764
|
+
return /* @__PURE__ */ React27.createElement(
|
3765
|
+
Command,
|
3766
|
+
{
|
3767
|
+
dir: direction,
|
3768
|
+
className: "hawa-rounded-lg hawa-border hawa-shadow-md !hawa-h-full"
|
3769
|
+
},
|
3770
|
+
/* @__PURE__ */ React27.createElement(
|
3771
|
+
CommandInput,
|
3772
|
+
{
|
3773
|
+
placeholder: (texts == null ? void 0 : texts.searchPlaceholder) || "Type a command or search..."
|
3774
|
+
}
|
3775
|
+
),
|
3776
|
+
/* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(CommandEmpty, null, (texts == null ? void 0 : texts.emptyText) || "No results found."), items.map((item, index) => {
|
3777
|
+
var _a;
|
3778
|
+
if (item.type === "group") {
|
3779
|
+
return /* @__PURE__ */ React27.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React27.createElement(CommandItem, { key: subIndex, onSelect: subItem.action }, /* @__PURE__ */ React27.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }), /* @__PURE__ */ React27.createElement("span", null, subItem.text), subItem.shortcut && /* @__PURE__ */ React27.createElement(CommandShortcut, null, subItem.shortcut))));
|
3780
|
+
} else if (item.type === "separator") {
|
3781
|
+
return /* @__PURE__ */ React27.createElement(CommandSeparator, { key: index });
|
3782
|
+
}
|
3783
|
+
return null;
|
3784
|
+
}))
|
3785
|
+
);
|
3786
|
+
};
|
3787
|
+
var AppCommand = ({ commandProps, dialogProps }) => {
|
3788
|
+
return /* @__PURE__ */ React27.createElement(import_react_dialog.Dialog, { ...dialogProps }, /* @__PURE__ */ React27.createElement(
|
3789
|
+
DialogContent,
|
3790
|
+
{
|
3791
|
+
hideCloseButton: true,
|
3792
|
+
className: "hawa-overflow-hidden !hawa-p-0 hawa-shadow-l "
|
3793
|
+
},
|
3794
|
+
/* @__PURE__ */ React27.createElement(FullCommand, { ...commandProps })
|
3795
|
+
));
|
3796
|
+
};
|
3758
3797
|
CommandShortcut.displayName = "CommandShortcut";
|
3759
3798
|
CommandItem.displayName = import_cmdk.Command.Item.displayName;
|
3760
3799
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
@@ -4247,7 +4286,7 @@ var SortButton = (props) => {
|
|
4247
4286
|
};
|
4248
4287
|
|
4249
4288
|
// elements/tabs/Tabs.tsx
|
4250
|
-
var
|
4289
|
+
var React42 = __toESM(require("react"));
|
4251
4290
|
|
4252
4291
|
// hooks/useIsomorphicEffect.ts
|
4253
4292
|
var import_react16 = require("react");
|
@@ -4356,6 +4395,9 @@ var useMeasureDirty = (ref) => {
|
|
4356
4395
|
// hooks/useClickOutside.ts
|
4357
4396
|
var import_react31 = require("react");
|
4358
4397
|
|
4398
|
+
// hooks/useShortcuts.ts
|
4399
|
+
var import_react32 = require("react");
|
4400
|
+
|
4359
4401
|
// elements/tabs/Tabs.tsx
|
4360
4402
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4361
4403
|
var import_tailwind_variants = require("tailwind-variants");
|
@@ -4415,14 +4457,137 @@ var FloatBox = ({
|
|
4415
4457
|
);
|
4416
4458
|
};
|
4417
4459
|
|
4460
|
+
// elements/scrollArea/ScrollArea.tsx
|
4461
|
+
var React41 = __toESM(require("react"));
|
4462
|
+
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
4463
|
+
var ScrollArea = React41.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => {
|
4464
|
+
const scrollAreaRef = React41.useRef(null);
|
4465
|
+
const isDragging = React41.useRef(false);
|
4466
|
+
const startPos = React41.useRef({ x: 0, y: 0 });
|
4467
|
+
const scrollPos = React41.useRef({ top: 0, left: 0 });
|
4468
|
+
const [showLeftFade, setShowLeftFade] = React41.useState(false);
|
4469
|
+
const [showRightFade, setShowRightFade] = React41.useState(false);
|
4470
|
+
const checkOverflow = () => {
|
4471
|
+
if (scrollAreaRef.current) {
|
4472
|
+
const { scrollLeft, scrollWidth, clientWidth } = scrollAreaRef.current;
|
4473
|
+
setShowLeftFade(scrollLeft > 0);
|
4474
|
+
setShowRightFade(scrollLeft + clientWidth < scrollWidth);
|
4475
|
+
}
|
4476
|
+
};
|
4477
|
+
const onMouseDown = (e) => {
|
4478
|
+
isDragging.current = true;
|
4479
|
+
startPos.current = { x: e.clientX, y: e.clientY };
|
4480
|
+
if (scrollAreaRef.current) {
|
4481
|
+
scrollPos.current = {
|
4482
|
+
top: scrollAreaRef.current.scrollTop,
|
4483
|
+
left: scrollAreaRef.current.scrollLeft
|
4484
|
+
};
|
4485
|
+
}
|
4486
|
+
document.addEventListener("mousemove", onMouseMove);
|
4487
|
+
document.addEventListener("mouseup", onMouseUp);
|
4488
|
+
};
|
4489
|
+
const onMouseMove = (e) => {
|
4490
|
+
if (!isDragging.current || !scrollAreaRef.current)
|
4491
|
+
return;
|
4492
|
+
const dx = e.clientX - startPos.current.x;
|
4493
|
+
const dy = e.clientY - startPos.current.y;
|
4494
|
+
if (orientation === "vertical") {
|
4495
|
+
scrollAreaRef.current.scrollTop = scrollPos.current.top - dy;
|
4496
|
+
} else {
|
4497
|
+
scrollAreaRef.current.scrollLeft = scrollPos.current.left - dx;
|
4498
|
+
checkOverflow();
|
4499
|
+
}
|
4500
|
+
};
|
4501
|
+
const onMouseUp = () => {
|
4502
|
+
isDragging.current = false;
|
4503
|
+
document.removeEventListener("mousemove", onMouseMove);
|
4504
|
+
document.removeEventListener("mouseup", onMouseUp);
|
4505
|
+
};
|
4506
|
+
React41.useEffect(() => {
|
4507
|
+
checkOverflow();
|
4508
|
+
if (scrollAreaRef.current) {
|
4509
|
+
scrollAreaRef.current.addEventListener("scroll", checkOverflow);
|
4510
|
+
window.addEventListener("resize", checkOverflow);
|
4511
|
+
}
|
4512
|
+
return () => {
|
4513
|
+
if (scrollAreaRef.current) {
|
4514
|
+
scrollAreaRef.current.removeEventListener("scroll", checkOverflow);
|
4515
|
+
}
|
4516
|
+
window.removeEventListener("resize", checkOverflow);
|
4517
|
+
};
|
4518
|
+
}, []);
|
4519
|
+
return /* @__PURE__ */ React41.createElement(
|
4520
|
+
ScrollAreaPrimitive.Root,
|
4521
|
+
{
|
4522
|
+
ref,
|
4523
|
+
className: cn("hawa-relative hawa-overflow-hidden", className),
|
4524
|
+
...props
|
4525
|
+
},
|
4526
|
+
/* @__PURE__ */ React41.createElement(
|
4527
|
+
"div",
|
4528
|
+
{
|
4529
|
+
className: cn(
|
4530
|
+
"hawa-pointer-events-none hawa-absolute hawa-bg-background/ hawa-h-full hawa-w-[50px] hawa-z-10 hawa-start-0 hawa-mask-fade-right",
|
4531
|
+
showLeftFade ? "hawa-block" : "hawa-hidden"
|
4532
|
+
)
|
4533
|
+
}
|
4534
|
+
),
|
4535
|
+
/* @__PURE__ */ React41.createElement(
|
4536
|
+
"div",
|
4537
|
+
{
|
4538
|
+
className: cn(
|
4539
|
+
"hawa-pointer-events-none hawa-absolute hawa-bg-background/ hawa-mask-fade-left hawa-end-0 hawa-h-full hawa-w-[50px] hawa-z-10 ",
|
4540
|
+
showRightFade ? "hawa-block" : "hawa-hidden"
|
4541
|
+
)
|
4542
|
+
}
|
4543
|
+
),
|
4544
|
+
/* @__PURE__ */ React41.createElement(
|
4545
|
+
ScrollAreaPrimitive.Viewport,
|
4546
|
+
{
|
4547
|
+
ref: scrollAreaRef,
|
4548
|
+
className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]",
|
4549
|
+
onMouseDown
|
4550
|
+
},
|
4551
|
+
children
|
4552
|
+
),
|
4553
|
+
/* @__PURE__ */ React41.createElement(ScrollBar, { orientation }),
|
4554
|
+
/* @__PURE__ */ React41.createElement(ScrollAreaPrimitive.Corner, null)
|
4555
|
+
);
|
4556
|
+
});
|
4557
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
4558
|
+
var ScrollBar = React41.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4559
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
4560
|
+
{
|
4561
|
+
ref,
|
4562
|
+
orientation,
|
4563
|
+
className: cn(
|
4564
|
+
"hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
|
4565
|
+
orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
|
4566
|
+
orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
|
4567
|
+
className
|
4568
|
+
),
|
4569
|
+
...props
|
4570
|
+
},
|
4571
|
+
/* @__PURE__ */ React41.createElement(
|
4572
|
+
ScrollAreaPrimitive.ScrollAreaThumb,
|
4573
|
+
{
|
4574
|
+
className: cn(
|
4575
|
+
"hawa-relative hawa-rounded-full hawa-bg-border",
|
4576
|
+
orientation === "vertical" && "hawa-flex-1"
|
4577
|
+
)
|
4578
|
+
}
|
4579
|
+
)
|
4580
|
+
));
|
4581
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
4582
|
+
|
4418
4583
|
// elements/tabs/Tabs.tsx
|
4419
4584
|
var tabsListVariant = (0, import_tailwind_variants.tv)({
|
4420
4585
|
base: "",
|
4421
4586
|
variants: {
|
4422
4587
|
variant: {
|
4423
|
-
default: "hawa-flex hawa-w-fit hawa-
|
4424
|
-
underlined: "hawa-flex hawa-w-fit hawa-
|
4425
|
-
underlined_tabs: "hawa-flex hawa-w-fit hawa-
|
4588
|
+
default: "hawa-flex hawa-w-fit hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
4589
|
+
underlined: "hawa-flex hawa-w-fit hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
4590
|
+
underlined_tabs: "hawa-flex hawa-w-fit hawa-items-center hawa-justify-start hawa-gap-1 hawa-text-muted-foreground"
|
4426
4591
|
},
|
4427
4592
|
orientation: { horizontal: "", vertical: "" }
|
4428
4593
|
},
|
@@ -4474,8 +4639,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4474
4639
|
],
|
4475
4640
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4476
4641
|
});
|
4477
|
-
var TabsContext =
|
4478
|
-
var Tabs =
|
4642
|
+
var TabsContext = React42.createContext({ orientation: "horizontal", variant: "default" });
|
4643
|
+
var Tabs = React42.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
4479
4644
|
TabsPrimitive.Root,
|
4480
4645
|
{
|
4481
4646
|
ref,
|
@@ -4486,28 +4651,59 @@ var Tabs = React41.forwardRef(({ className, orientation, variant = "default", ..
|
|
4486
4651
|
),
|
4487
4652
|
...props
|
4488
4653
|
},
|
4489
|
-
/* @__PURE__ */
|
4654
|
+
/* @__PURE__ */ React42.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4490
4655
|
));
|
4491
|
-
var TabsList =
|
4492
|
-
const { orientation, variant } =
|
4493
|
-
|
4494
|
-
|
4495
|
-
{
|
4496
|
-
ref,
|
4497
|
-
className: cn(
|
4498
|
-
tabsListVariant({ variant, orientation }),
|
4499
|
-
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
4500
|
-
className
|
4501
|
-
),
|
4502
|
-
...props
|
4503
|
-
}
|
4656
|
+
var TabsList = React42.forwardRef(({ className, ...props }, ref) => {
|
4657
|
+
const { orientation, variant } = React42.useContext(TabsContext);
|
4658
|
+
const [size, setSize] = React42.useState(
|
4659
|
+
typeof window !== "undefined" && window.innerWidth || 1200
|
4504
4660
|
);
|
4661
|
+
React42.useEffect(() => {
|
4662
|
+
if (typeof window !== "undefined") {
|
4663
|
+
const resize = () => {
|
4664
|
+
setSize(window.innerWidth);
|
4665
|
+
};
|
4666
|
+
resize();
|
4667
|
+
window.addEventListener("resize", resize);
|
4668
|
+
return () => {
|
4669
|
+
window.removeEventListener("resize", resize);
|
4670
|
+
};
|
4671
|
+
}
|
4672
|
+
}, []);
|
4673
|
+
if ((props.scrollable || size < 768) && orientation === "horizontal") {
|
4674
|
+
return /* @__PURE__ */ React42.createElement(ScrollArea, { orientation: "horizontal" }, /* @__PURE__ */ React42.createElement(
|
4675
|
+
TabsPrimitive.List,
|
4676
|
+
{
|
4677
|
+
ref,
|
4678
|
+
className: cn(
|
4679
|
+
tabsListVariant({ variant, orientation }),
|
4680
|
+
"hawa-flex-row hawa-flex-nowrap",
|
4681
|
+
className
|
4682
|
+
),
|
4683
|
+
...props
|
4684
|
+
}
|
4685
|
+
));
|
4686
|
+
} else {
|
4687
|
+
return /* @__PURE__ */ React42.createElement(
|
4688
|
+
TabsPrimitive.List,
|
4689
|
+
{
|
4690
|
+
ref,
|
4691
|
+
className: cn(
|
4692
|
+
tabsListVariant({ variant, orientation }),
|
4693
|
+
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
4694
|
+
"hawa-flex-wrap",
|
4695
|
+
className
|
4696
|
+
),
|
4697
|
+
...props
|
4698
|
+
}
|
4699
|
+
);
|
4700
|
+
}
|
4505
4701
|
});
|
4506
|
-
var TabsTrigger =
|
4507
|
-
const { orientation, variant } =
|
4508
|
-
const tabTriggerRef =
|
4702
|
+
var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4703
|
+
const { orientation, variant } = React42.useContext(TabsContext);
|
4704
|
+
const tabTriggerRef = React42.useRef(null);
|
4509
4705
|
const { width } = useMeasureDirty(tabTriggerRef);
|
4510
|
-
return /* @__PURE__ */
|
4706
|
+
return /* @__PURE__ */ React42.createElement(
|
4511
4707
|
TabsPrimitive.Trigger,
|
4512
4708
|
{
|
4513
4709
|
ref: tabTriggerRef,
|
@@ -4519,8 +4715,8 @@ var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4519
4715
|
...props
|
4520
4716
|
},
|
4521
4717
|
props.children,
|
4522
|
-
chipProps && /* @__PURE__ */
|
4523
|
-
/* @__PURE__ */
|
4718
|
+
chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps }),
|
4719
|
+
/* @__PURE__ */ React42.createElement(
|
4524
4720
|
FloatBox,
|
4525
4721
|
{
|
4526
4722
|
withArrow: true,
|
@@ -4533,7 +4729,7 @@ var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4533
4729
|
)
|
4534
4730
|
);
|
4535
4731
|
});
|
4536
|
-
var TabsContent =
|
4732
|
+
var TabsContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
4537
4733
|
TabsPrimitive.Content,
|
4538
4734
|
{
|
4539
4735
|
ref,
|
@@ -4550,7 +4746,7 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4550
4746
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4551
4747
|
|
4552
4748
|
// elements/select/Select.tsx
|
4553
|
-
var
|
4749
|
+
var import_react33 = __toESM(require("react"));
|
4554
4750
|
var import_react_select = __toESM(require("react-select"));
|
4555
4751
|
var import_creatable = __toESM(require("react-select/creatable"));
|
4556
4752
|
var import_clsx3 = __toESM(require("clsx"));
|
@@ -4561,10 +4757,10 @@ var Select = ({
|
|
4561
4757
|
}) => {
|
4562
4758
|
const NoOption = () => {
|
4563
4759
|
var _a, _b;
|
4564
|
-
return /* @__PURE__ */
|
4760
|
+
return /* @__PURE__ */ import_react33.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4565
4761
|
};
|
4566
4762
|
const Control = ({ children, innerProps, innerRef }) => {
|
4567
|
-
return /* @__PURE__ */
|
4763
|
+
return /* @__PURE__ */ import_react33.default.createElement(
|
4568
4764
|
"div",
|
4569
4765
|
{
|
4570
4766
|
ref: innerRef,
|
@@ -4577,7 +4773,7 @@ var Select = ({
|
|
4577
4773
|
);
|
4578
4774
|
};
|
4579
4775
|
const Option = ({ children, innerProps, innerRef }) => {
|
4580
|
-
return /* @__PURE__ */
|
4776
|
+
return /* @__PURE__ */ import_react33.default.createElement(
|
4581
4777
|
"div",
|
4582
4778
|
{
|
4583
4779
|
ref: innerRef,
|
@@ -4598,7 +4794,7 @@ var Select = ({
|
|
4598
4794
|
...menuProps
|
4599
4795
|
}) => {
|
4600
4796
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4601
|
-
return /* @__PURE__ */
|
4797
|
+
return /* @__PURE__ */ import_react33.default.createElement(
|
4602
4798
|
"div",
|
4603
4799
|
{
|
4604
4800
|
className: cn(
|
@@ -4612,7 +4808,11 @@ var Select = ({
|
|
4612
4808
|
children
|
4613
4809
|
);
|
4614
4810
|
};
|
4615
|
-
|
4811
|
+
let phoneCodeStyles = "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px]";
|
4812
|
+
let selectContainerStyles = "hawa-rounded hawa-block hawa-w-full hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm";
|
4813
|
+
let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
|
4814
|
+
let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
|
4815
|
+
return /* @__PURE__ */ import_react33.default.createElement(
|
4616
4816
|
"div",
|
4617
4817
|
{
|
4618
4818
|
className: cn(
|
@@ -4620,10 +4820,10 @@ var Select = ({
|
|
4620
4820
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4621
4821
|
)
|
4622
4822
|
},
|
4623
|
-
props.label && /* @__PURE__ */
|
4624
|
-
props.isLoading ? /* @__PURE__ */
|
4823
|
+
props.label && /* @__PURE__ */ import_react33.default.createElement(Label2, { ...labelProps }, props.label),
|
4824
|
+
props.isLoading ? /* @__PURE__ */ import_react33.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4625
4825
|
// TODO: enable keyboard to go to the next item in the list
|
4626
|
-
/* @__PURE__ */
|
4826
|
+
/* @__PURE__ */ import_react33.default.createElement(
|
4627
4827
|
import_react_select.default,
|
4628
4828
|
{
|
4629
4829
|
noOptionsMessage: NoOption,
|
@@ -4633,26 +4833,22 @@ var Select = ({
|
|
4633
4833
|
props.controlClassNames
|
4634
4834
|
),
|
4635
4835
|
container: () => cn(
|
4636
|
-
|
4637
|
-
props.phoneCode &&
|
4638
|
-
"hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
|
4836
|
+
selectContainerStyles,
|
4837
|
+
props.phoneCode && phoneCodeStyles,
|
4639
4838
|
props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
|
4640
4839
|
props.isMulti && "hawa-ps-0 "
|
4641
4840
|
),
|
4642
|
-
placeholder: () =>
|
4841
|
+
placeholder: () => selectPlaceholderStyles,
|
4643
4842
|
valueContainer: () => "hawa-text-foreground hawa-px-1 ",
|
4644
4843
|
singleValue: () => "hawa-text-foreground",
|
4645
4844
|
indicatorsContainer: () => cn(
|
4646
|
-
|
4845
|
+
selectIndicatorContainerStyles,
|
4647
4846
|
props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
|
4648
4847
|
)
|
4649
4848
|
},
|
4650
4849
|
unstyled: true,
|
4651
|
-
|
4652
|
-
|
4653
|
-
Menu,
|
4654
|
-
IndicatorsContainer: () => null
|
4655
|
-
} : {
|
4850
|
+
autoFocus: false,
|
4851
|
+
components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
|
4656
4852
|
Option,
|
4657
4853
|
Menu,
|
4658
4854
|
// Control: (e) => (
|
@@ -4661,7 +4857,7 @@ var Select = ({
|
|
4661
4857
|
// {...e}
|
4662
4858
|
// />
|
4663
4859
|
// ),
|
4664
|
-
ValueContainer: (e) => /* @__PURE__ */
|
4860
|
+
ValueContainer: (e) => /* @__PURE__ */ import_react33.default.createElement(
|
4665
4861
|
"div",
|
4666
4862
|
{
|
4667
4863
|
className: cn(
|
@@ -4671,13 +4867,10 @@ var Select = ({
|
|
4671
4867
|
...e
|
4672
4868
|
}
|
4673
4869
|
),
|
4674
|
-
MultiValueContainer: (e) => /* @__PURE__ */
|
4870
|
+
MultiValueContainer: (e) => /* @__PURE__ */ import_react33.default.createElement(
|
4675
4871
|
"div",
|
4676
4872
|
{
|
4677
|
-
className:
|
4678
|
-
// e.className,
|
4679
|
-
"hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
|
4680
|
-
),
|
4873
|
+
className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
|
4681
4874
|
...e
|
4682
4875
|
}
|
4683
4876
|
)
|
@@ -4693,7 +4886,7 @@ var Select = ({
|
|
4693
4886
|
isSearchable: props.isSearchable
|
4694
4887
|
}
|
4695
4888
|
)
|
4696
|
-
) : /* @__PURE__ */
|
4889
|
+
) : /* @__PURE__ */ import_react33.default.createElement(
|
4697
4890
|
import_creatable.default,
|
4698
4891
|
{
|
4699
4892
|
formatCreateLabel: (inputValue) => {
|
@@ -4723,7 +4916,7 @@ var Select = ({
|
|
4723
4916
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4724
4917
|
}
|
4725
4918
|
),
|
4726
|
-
!props.hideHelperText && /* @__PURE__ */
|
4919
|
+
!props.hideHelperText && /* @__PURE__ */ import_react33.default.createElement(
|
4727
4920
|
"p",
|
4728
4921
|
{
|
4729
4922
|
className: cn(
|
@@ -4737,15 +4930,15 @@ var Select = ({
|
|
4737
4930
|
};
|
4738
4931
|
|
4739
4932
|
// elements/switch/Switch.tsx
|
4740
|
-
var
|
4933
|
+
var React44 = __toESM(require("react"));
|
4741
4934
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
4742
|
-
var Switch =
|
4935
|
+
var Switch = React44.forwardRef(
|
4743
4936
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4744
|
-
const [parentDirection, setParentDirection] =
|
4937
|
+
const [parentDirection, setParentDirection] = React44.useState(
|
4745
4938
|
null
|
4746
4939
|
);
|
4747
|
-
const parentRef =
|
4748
|
-
|
4940
|
+
const parentRef = React44.useRef(null);
|
4941
|
+
React44.useEffect(() => {
|
4749
4942
|
var _a;
|
4750
4943
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4751
4944
|
if (parentNode) {
|
@@ -4773,13 +4966,13 @@ var Switch = React43.forwardRef(
|
|
4773
4966
|
full: "hawa-rounded-full",
|
4774
4967
|
inherit: "hawa-rounded-inner"
|
4775
4968
|
};
|
4776
|
-
return /* @__PURE__ */
|
4969
|
+
return /* @__PURE__ */ React44.createElement(
|
4777
4970
|
"div",
|
4778
4971
|
{
|
4779
4972
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4780
4973
|
ref: parentRef
|
4781
4974
|
},
|
4782
|
-
/* @__PURE__ */
|
4975
|
+
/* @__PURE__ */ React44.createElement(
|
4783
4976
|
SwitchPrimitives.Root,
|
4784
4977
|
{
|
4785
4978
|
className: cn(
|
@@ -4793,7 +4986,7 @@ var Switch = React43.forwardRef(
|
|
4793
4986
|
...props,
|
4794
4987
|
ref
|
4795
4988
|
},
|
4796
|
-
/* @__PURE__ */
|
4989
|
+
/* @__PURE__ */ React44.createElement(
|
4797
4990
|
SwitchPrimitives.Thumb,
|
4798
4991
|
{
|
4799
4992
|
className: cn(
|
@@ -4807,14 +5000,14 @@ var Switch = React43.forwardRef(
|
|
4807
5000
|
}
|
4808
5001
|
)
|
4809
5002
|
),
|
4810
|
-
label && /* @__PURE__ */
|
5003
|
+
label && /* @__PURE__ */ React44.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
4811
5004
|
);
|
4812
5005
|
}
|
4813
5006
|
);
|
4814
5007
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
4815
5008
|
|
4816
5009
|
// elements/checkbox/Checkbox.tsx
|
4817
|
-
var
|
5010
|
+
var React45 = __toESM(require("react"));
|
4818
5011
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
4819
5012
|
var Checkbox = ({
|
4820
5013
|
id,
|
@@ -4834,7 +5027,7 @@ var Checkbox = ({
|
|
4834
5027
|
lg: 0.9,
|
4835
5028
|
xl: 1
|
4836
5029
|
};
|
4837
|
-
return /* @__PURE__ */
|
5030
|
+
return /* @__PURE__ */ React45.createElement(
|
4838
5031
|
"div",
|
4839
5032
|
{
|
4840
5033
|
className: cn(
|
@@ -4842,7 +5035,7 @@ var Checkbox = ({
|
|
4842
5035
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
4843
5036
|
)
|
4844
5037
|
},
|
4845
|
-
/* @__PURE__ */
|
5038
|
+
/* @__PURE__ */ React45.createElement(
|
4846
5039
|
CheckboxElement,
|
4847
5040
|
{
|
4848
5041
|
...props,
|
@@ -4852,7 +5045,7 @@ var Checkbox = ({
|
|
4852
5045
|
id
|
4853
5046
|
}
|
4854
5047
|
),
|
4855
|
-
(label || helperText) && /* @__PURE__ */
|
5048
|
+
(label || helperText) && /* @__PURE__ */ React45.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React45.createElement(
|
4856
5049
|
"label",
|
4857
5050
|
{
|
4858
5051
|
htmlFor: id,
|
@@ -4866,7 +5059,7 @@ var Checkbox = ({
|
|
4866
5059
|
}
|
4867
5060
|
},
|
4868
5061
|
label
|
4869
|
-
), sublabel && /* @__PURE__ */
|
5062
|
+
), sublabel && /* @__PURE__ */ React45.createElement(
|
4870
5063
|
"label",
|
4871
5064
|
{
|
4872
5065
|
htmlFor: id,
|
@@ -4876,7 +5069,7 @@ var Checkbox = ({
|
|
4876
5069
|
)
|
4877
5070
|
},
|
4878
5071
|
sublabel
|
4879
|
-
), helperText && !disabled && /* @__PURE__ */
|
5072
|
+
), helperText && !disabled && /* @__PURE__ */ React45.createElement(
|
4880
5073
|
"label",
|
4881
5074
|
{
|
4882
5075
|
htmlFor: id,
|
@@ -4889,7 +5082,7 @@ var Checkbox = ({
|
|
4889
5082
|
))
|
4890
5083
|
);
|
4891
5084
|
};
|
4892
|
-
var CheckboxElement =
|
5085
|
+
var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
4893
5086
|
let checkboxRadius = {
|
4894
5087
|
none: "hawa-rounded-none",
|
4895
5088
|
inherit: "hawa-rounded-sm",
|
@@ -4911,7 +5104,7 @@ var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default"
|
|
4911
5104
|
lg: "1em",
|
4912
5105
|
xl: "1.25em"
|
4913
5106
|
};
|
4914
|
-
return /* @__PURE__ */
|
5107
|
+
return /* @__PURE__ */ React45.createElement(
|
4915
5108
|
CheckboxPrimitive.Root,
|
4916
5109
|
{
|
4917
5110
|
ref,
|
@@ -4923,14 +5116,14 @@ var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default"
|
|
4923
5116
|
),
|
4924
5117
|
...props
|
4925
5118
|
},
|
4926
|
-
/* @__PURE__ */
|
5119
|
+
/* @__PURE__ */ React45.createElement(
|
4927
5120
|
CheckboxPrimitive.Indicator,
|
4928
5121
|
{
|
4929
5122
|
className: cn(
|
4930
5123
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
4931
5124
|
)
|
4932
5125
|
},
|
4933
|
-
/* @__PURE__ */
|
5126
|
+
/* @__PURE__ */ React45.createElement(
|
4934
5127
|
"svg",
|
4935
5128
|
{
|
4936
5129
|
"aria-label": "Check Mark",
|
@@ -4941,7 +5134,7 @@ var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default"
|
|
4941
5134
|
height: checkboxIndicatorSizes[size],
|
4942
5135
|
width: checkboxIndicatorSizes[size]
|
4943
5136
|
},
|
4944
|
-
/* @__PURE__ */
|
5137
|
+
/* @__PURE__ */ React45.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" })
|
4945
5138
|
),
|
4946
5139
|
" "
|
4947
5140
|
)
|
@@ -4950,9 +5143,9 @@ var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default"
|
|
4950
5143
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
4951
5144
|
|
4952
5145
|
// elements/progress/Progress.tsx
|
4953
|
-
var
|
5146
|
+
var React46 = __toESM(require("react"));
|
4954
5147
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
4955
|
-
var Progress =
|
5148
|
+
var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React46.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React46.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React46.createElement(
|
4956
5149
|
ProgressPrimitive.Root,
|
4957
5150
|
{
|
4958
5151
|
ref,
|
@@ -4962,7 +5155,7 @@ var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4962
5155
|
),
|
4963
5156
|
...props
|
4964
5157
|
},
|
4965
|
-
/* @__PURE__ */
|
5158
|
+
/* @__PURE__ */ React46.createElement(
|
4966
5159
|
ProgressPrimitive.Indicator,
|
4967
5160
|
{
|
4968
5161
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -4973,7 +5166,7 @@ var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4973
5166
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
4974
5167
|
|
4975
5168
|
// elements/breadcrumb/Breadcrumb.tsx
|
4976
|
-
var
|
5169
|
+
var import_react34 = __toESM(require("react"));
|
4977
5170
|
var Breadcrumb = ({
|
4978
5171
|
breadcrumbLinks,
|
4979
5172
|
separator = ">",
|
@@ -4984,7 +5177,7 @@ var Breadcrumb = ({
|
|
4984
5177
|
small: "hawa-text-sm",
|
4985
5178
|
xs: "hawa-text-xs"
|
4986
5179
|
};
|
4987
|
-
return /* @__PURE__ */
|
5180
|
+
return /* @__PURE__ */ import_react34.default.createElement(
|
4988
5181
|
"div",
|
4989
5182
|
{
|
4990
5183
|
className: cn(
|
@@ -4992,13 +5185,13 @@ var Breadcrumb = ({
|
|
4992
5185
|
textStyles[size]
|
4993
5186
|
)
|
4994
5187
|
},
|
4995
|
-
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */
|
5188
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react34.default.createElement(
|
4996
5189
|
"div",
|
4997
5190
|
{
|
4998
5191
|
key: index,
|
4999
5192
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
5000
5193
|
},
|
5001
|
-
/* @__PURE__ */
|
5194
|
+
/* @__PURE__ */ import_react34.default.createElement(
|
5002
5195
|
"a",
|
5003
5196
|
{
|
5004
5197
|
href: singleBreadcrumbLink.href,
|
@@ -5006,49 +5199,49 @@ var Breadcrumb = ({
|
|
5006
5199
|
},
|
5007
5200
|
singleBreadcrumbLink.label
|
5008
5201
|
),
|
5009
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
5202
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ import_react34.default.createElement("div", null, separator) : /* @__PURE__ */ import_react34.default.createElement("div", null, separator) : null
|
5010
5203
|
))
|
5011
5204
|
);
|
5012
5205
|
};
|
5013
5206
|
|
5014
5207
|
// elements/appStores/AppStores.tsx
|
5015
|
-
var
|
5208
|
+
var import_react35 = __toESM(require("react"));
|
5016
5209
|
var AppStores = (props) => {
|
5017
|
-
return /* @__PURE__ */
|
5210
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ import_react35.default.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ import_react35.default.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 dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ import_react35.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react35.default.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ import_react35.default.createElement(
|
5018
5211
|
"path",
|
5019
5212
|
{
|
5020
5213
|
fill: "currentColor",
|
5021
5214
|
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"
|
5022
5215
|
}
|
5023
|
-
))), /* @__PURE__ */
|
5216
|
+
))), /* @__PURE__ */ import_react35.default.createElement("div", null, /* @__PURE__ */ import_react35.default.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ import_react35.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ import_react35.default.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-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ import_react35.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react35.default.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ import_react35.default.createElement(
|
5024
5217
|
"path",
|
5025
5218
|
{
|
5026
5219
|
fill: "#FFD400",
|
5027
5220
|
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"
|
5028
5221
|
}
|
5029
|
-
), /* @__PURE__ */
|
5222
|
+
), /* @__PURE__ */ import_react35.default.createElement(
|
5030
5223
|
"path",
|
5031
5224
|
{
|
5032
5225
|
fill: "#FF3333",
|
5033
5226
|
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"
|
5034
5227
|
}
|
5035
|
-
), /* @__PURE__ */
|
5228
|
+
), /* @__PURE__ */ import_react35.default.createElement(
|
5036
5229
|
"path",
|
5037
5230
|
{
|
5038
5231
|
fill: "#48FF48",
|
5039
5232
|
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"
|
5040
5233
|
}
|
5041
|
-
), /* @__PURE__ */
|
5234
|
+
), /* @__PURE__ */ import_react35.default.createElement(
|
5042
5235
|
"path",
|
5043
5236
|
{
|
5044
5237
|
fill: "#3BCCFF",
|
5045
5238
|
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"
|
5046
5239
|
}
|
5047
|
-
))), /* @__PURE__ */
|
5240
|
+
))), /* @__PURE__ */ import_react35.default.createElement("div", null, /* @__PURE__ */ import_react35.default.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ import_react35.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
5048
5241
|
};
|
5049
5242
|
|
5050
5243
|
// elements/badge/Badge.tsx
|
5051
|
-
var
|
5244
|
+
var import_react36 = __toESM(require("react"));
|
5052
5245
|
var Badge = ({
|
5053
5246
|
anchor,
|
5054
5247
|
position = "right",
|
@@ -5056,14 +5249,14 @@ var Badge = ({
|
|
5056
5249
|
text,
|
5057
5250
|
className
|
5058
5251
|
}) => {
|
5059
|
-
const [badgePosition, setBadgePosition] = (0,
|
5060
|
-
const indicatorRef = (0,
|
5252
|
+
const [badgePosition, setBadgePosition] = (0, import_react36.useState)(null);
|
5253
|
+
const indicatorRef = (0, import_react36.useRef)(null);
|
5061
5254
|
const sizeStyles2 = {
|
5062
5255
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
5063
5256
|
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
5064
5257
|
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
5065
5258
|
};
|
5066
|
-
(0,
|
5259
|
+
(0, import_react36.useEffect)(() => {
|
5067
5260
|
const handlePositioning = () => {
|
5068
5261
|
var _a;
|
5069
5262
|
if (anchor.current && indicatorRef.current) {
|
@@ -5086,7 +5279,7 @@ var Badge = ({
|
|
5086
5279
|
window.removeEventListener("resize", handlePositioning);
|
5087
5280
|
};
|
5088
5281
|
}, [anchor]);
|
5089
|
-
return /* @__PURE__ */
|
5282
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ import_react36.default.createElement(
|
5090
5283
|
"div",
|
5091
5284
|
{
|
5092
5285
|
style: {
|
@@ -5111,8 +5304,8 @@ var BadgedComponent = ({
|
|
5111
5304
|
size,
|
5112
5305
|
text
|
5113
5306
|
}) => {
|
5114
|
-
const ref = (0,
|
5115
|
-
return /* @__PURE__ */
|
5307
|
+
const ref = (0, import_react36.useRef)(null);
|
5308
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react36.default.createElement(
|
5116
5309
|
Badge,
|
5117
5310
|
{
|
5118
5311
|
size,
|
@@ -5125,7 +5318,7 @@ var BadgedComponent = ({
|
|
5125
5318
|
};
|
5126
5319
|
|
5127
5320
|
// elements/phoneInput/PhoneInput.tsx
|
5128
|
-
var
|
5321
|
+
var import_react37 = __toESM(require("react"));
|
5129
5322
|
|
5130
5323
|
// countries.ts
|
5131
5324
|
var countries = [
|
@@ -6827,9 +7020,9 @@ var PhoneInput = ({
|
|
6827
7020
|
countryCodes,
|
6828
7021
|
...props
|
6829
7022
|
}) => {
|
6830
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
6831
|
-
const [countryCode, setCountryCode] = (0,
|
6832
|
-
const inputRef = (0,
|
7023
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react37.useState)("");
|
7024
|
+
const [countryCode, setCountryCode] = (0, import_react37.useState)(props.preferredCountry);
|
7025
|
+
const inputRef = (0, import_react37.useRef)(null);
|
6833
7026
|
const handleInputChange = (e) => {
|
6834
7027
|
console.log("test e ", e.target.value);
|
6835
7028
|
const validChars = /^[0-9-()]+$/;
|
@@ -6843,7 +7036,7 @@ var PhoneInput = ({
|
|
6843
7036
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
6844
7037
|
}
|
6845
7038
|
};
|
6846
|
-
return /* @__PURE__ */
|
7039
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react37.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react37.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react37.default.createElement(
|
6847
7040
|
Select,
|
6848
7041
|
{
|
6849
7042
|
phoneCode: true,
|
@@ -6859,7 +7052,7 @@ var PhoneInput = ({
|
|
6859
7052
|
value: countryCode == null ? void 0 : countryCode.label,
|
6860
7053
|
defaultValue: props.preferredCountry
|
6861
7054
|
}
|
6862
|
-
), /* @__PURE__ */
|
7055
|
+
), /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react37.default.createElement(
|
6863
7056
|
"input",
|
6864
7057
|
{
|
6865
7058
|
type: "tel",
|
@@ -6873,7 +7066,7 @@ var PhoneInput = ({
|
|
6873
7066
|
),
|
6874
7067
|
...inputProps
|
6875
7068
|
}
|
6876
|
-
))), /* @__PURE__ */
|
7069
|
+
))), /* @__PURE__ */ import_react37.default.createElement(
|
6877
7070
|
"p",
|
6878
7071
|
{
|
6879
7072
|
className: cn(
|
@@ -6886,7 +7079,7 @@ var PhoneInput = ({
|
|
6886
7079
|
};
|
6887
7080
|
|
6888
7081
|
// elements/pinInput/PinInput.tsx
|
6889
|
-
var
|
7082
|
+
var import_react38 = __toESM(require("react"));
|
6890
7083
|
var PinInput = ({
|
6891
7084
|
label,
|
6892
7085
|
icon,
|
@@ -6896,7 +7089,7 @@ var PinInput = ({
|
|
6896
7089
|
inputProps,
|
6897
7090
|
...props
|
6898
7091
|
}) => {
|
6899
|
-
const [pin, setPin] = (0,
|
7092
|
+
const [pin, setPin] = (0, import_react38.useState)(Array.from(Array(digits)));
|
6900
7093
|
const handleKeyDown = (e, index) => {
|
6901
7094
|
let backTo = 0;
|
6902
7095
|
if (e.key === "Backspace") {
|
@@ -6905,7 +7098,7 @@ var PinInput = ({
|
|
6905
7098
|
previousInput == null ? void 0 : previousInput.focus();
|
6906
7099
|
}
|
6907
7100
|
};
|
6908
|
-
(0,
|
7101
|
+
(0, import_react38.useEffect)(() => {
|
6909
7102
|
let unfilled = pin.includes(void 0);
|
6910
7103
|
if (!unfilled && getPins) {
|
6911
7104
|
getPins(pin);
|
@@ -6930,13 +7123,13 @@ var PinInput = ({
|
|
6930
7123
|
}
|
6931
7124
|
}
|
6932
7125
|
};
|
6933
|
-
return /* @__PURE__ */
|
7126
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react38.default.createElement(
|
6934
7127
|
"div",
|
6935
7128
|
{
|
6936
7129
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
6937
7130
|
dir: "ltr"
|
6938
7131
|
},
|
6939
|
-
pin.map((value, index) => /* @__PURE__ */
|
7132
|
+
pin.map((value, index) => /* @__PURE__ */ import_react38.default.createElement(
|
6940
7133
|
"input",
|
6941
7134
|
{
|
6942
7135
|
key: index,
|
@@ -6956,7 +7149,7 @@ var PinInput = ({
|
|
6956
7149
|
...inputProps
|
6957
7150
|
}
|
6958
7151
|
))
|
6959
|
-
), /* @__PURE__ */
|
7152
|
+
), /* @__PURE__ */ import_react38.default.createElement(
|
6960
7153
|
"p",
|
6961
7154
|
{
|
6962
7155
|
className: cn(
|
@@ -6969,56 +7162,16 @@ var PinInput = ({
|
|
6969
7162
|
};
|
6970
7163
|
|
6971
7164
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
6972
|
-
var
|
7165
|
+
var import_react39 = __toESM(require("react"));
|
6973
7166
|
var StopPropagationWrapper = (props) => {
|
6974
7167
|
const handleClick = (e) => {
|
6975
7168
|
e.stopPropagation();
|
6976
7169
|
};
|
6977
|
-
return /* @__PURE__ */
|
7170
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", { onClick: handleClick }, props.children);
|
6978
7171
|
};
|
6979
7172
|
|
6980
|
-
// elements/scrollArea/ScrollArea.tsx
|
6981
|
-
var React52 = __toESM(require("react"));
|
6982
|
-
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
6983
|
-
var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
6984
|
-
ScrollAreaPrimitive.Root,
|
6985
|
-
{
|
6986
|
-
ref,
|
6987
|
-
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6988
|
-
...props
|
6989
|
-
},
|
6990
|
-
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
6991
|
-
/* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
|
6992
|
-
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
|
6993
|
-
));
|
6994
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
6995
|
-
var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
6996
|
-
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
6997
|
-
{
|
6998
|
-
ref,
|
6999
|
-
orientation,
|
7000
|
-
className: cn(
|
7001
|
-
"hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
|
7002
|
-
orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
|
7003
|
-
orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
|
7004
|
-
className
|
7005
|
-
),
|
7006
|
-
...props
|
7007
|
-
},
|
7008
|
-
/* @__PURE__ */ React52.createElement(
|
7009
|
-
ScrollAreaPrimitive.ScrollAreaThumb,
|
7010
|
-
{
|
7011
|
-
className: cn(
|
7012
|
-
"hawa-relative hawa-rounded-full hawa-bg-border",
|
7013
|
-
orientation === "vertical" && "hawa-flex-1"
|
7014
|
-
)
|
7015
|
-
}
|
7016
|
-
)
|
7017
|
-
));
|
7018
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
7019
|
-
|
7020
7173
|
// elements/colorPicker/ColorPicker.tsx
|
7021
|
-
var
|
7174
|
+
var import_react40 = __toESM(require("react"));
|
7022
7175
|
var ColorPicker = ({
|
7023
7176
|
containerProps,
|
7024
7177
|
colorPickerProps,
|
@@ -7029,8 +7182,8 @@ var ColorPicker = ({
|
|
7029
7182
|
preview = false,
|
7030
7183
|
...props
|
7031
7184
|
}) => {
|
7032
|
-
const [selectedColor, setSelectedColor] = (0,
|
7033
|
-
(0,
|
7185
|
+
const [selectedColor, setSelectedColor] = (0, import_react40.useState)(props.color);
|
7186
|
+
(0, import_react40.useEffect)(() => {
|
7034
7187
|
if (selectedColor && selectedColor[0] !== "#") {
|
7035
7188
|
setSelectedColor(`#${selectedColor}`);
|
7036
7189
|
}
|
@@ -7047,13 +7200,13 @@ var ColorPicker = ({
|
|
7047
7200
|
props.handleChange(e);
|
7048
7201
|
}
|
7049
7202
|
};
|
7050
|
-
return /* @__PURE__ */
|
7203
|
+
return /* @__PURE__ */ import_react40.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react40.default.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ import_react40.default.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ import_react40.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react40.default.createElement(
|
7051
7204
|
"div",
|
7052
7205
|
{
|
7053
7206
|
style: { height: 40, backgroundColor: selectedColor },
|
7054
7207
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
7055
7208
|
},
|
7056
|
-
/* @__PURE__ */
|
7209
|
+
/* @__PURE__ */ import_react40.default.createElement(
|
7057
7210
|
"input",
|
7058
7211
|
{
|
7059
7212
|
disabled: preview,
|
@@ -7072,7 +7225,7 @@ var ColorPicker = ({
|
|
7072
7225
|
...colorPickerProps
|
7073
7226
|
}
|
7074
7227
|
)
|
7075
|
-
), /* @__PURE__ */
|
7228
|
+
), /* @__PURE__ */ import_react40.default.createElement("div", { className: "hawa-relative hawa-flex hawa-max-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react40.default.createElement(
|
7076
7229
|
"input",
|
7077
7230
|
{
|
7078
7231
|
disabled: preview,
|
@@ -7091,7 +7244,7 @@ var ColorPicker = ({
|
|
7091
7244
|
},
|
7092
7245
|
...textInputProps
|
7093
7246
|
}
|
7094
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
7247
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react40.default.createElement(
|
7095
7248
|
"p",
|
7096
7249
|
{
|
7097
7250
|
className: cn(
|
@@ -7104,7 +7257,7 @@ var ColorPicker = ({
|
|
7104
7257
|
};
|
7105
7258
|
|
7106
7259
|
// elements/progressCircle/ProgressCircle.tsx
|
7107
|
-
var
|
7260
|
+
var import_react41 = __toESM(require("react"));
|
7108
7261
|
var size2config = {
|
7109
7262
|
xs: { radius: 15, strokeWidth: 3 },
|
7110
7263
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -7121,7 +7274,7 @@ function getLimitedValue(input) {
|
|
7121
7274
|
return input;
|
7122
7275
|
}
|
7123
7276
|
}
|
7124
|
-
var ProgressCircle =
|
7277
|
+
var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
7125
7278
|
const {
|
7126
7279
|
value: inputValue,
|
7127
7280
|
size = "md",
|
@@ -7141,7 +7294,7 @@ var ProgressCircle = import_react40.default.forwardRef((props, ref) => {
|
|
7141
7294
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7142
7295
|
const strokeDashoffset = value / 100 * circumference;
|
7143
7296
|
const offset = circumference - strokeDashoffset;
|
7144
|
-
return /* @__PURE__ */
|
7297
|
+
return /* @__PURE__ */ import_react41.default.createElement(import_react41.default.Fragment, null, /* @__PURE__ */ import_react41.default.createElement(
|
7145
7298
|
"div",
|
7146
7299
|
{
|
7147
7300
|
ref,
|
@@ -7150,7 +7303,7 @@ var ProgressCircle = import_react40.default.forwardRef((props, ref) => {
|
|
7150
7303
|
className
|
7151
7304
|
)
|
7152
7305
|
},
|
7153
|
-
/* @__PURE__ */
|
7306
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7154
7307
|
"svg",
|
7155
7308
|
{
|
7156
7309
|
width: radius * 2,
|
@@ -7158,7 +7311,7 @@ var ProgressCircle = import_react40.default.forwardRef((props, ref) => {
|
|
7158
7311
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7159
7312
|
className: "hawa-rotate-180 hawa-transform"
|
7160
7313
|
},
|
7161
|
-
/* @__PURE__ */
|
7314
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7162
7315
|
"circle",
|
7163
7316
|
{
|
7164
7317
|
r: normalizedRadius,
|
@@ -7174,7 +7327,7 @@ var ProgressCircle = import_react40.default.forwardRef((props, ref) => {
|
|
7174
7327
|
)
|
7175
7328
|
}
|
7176
7329
|
),
|
7177
|
-
value > 0 ? /* @__PURE__ */
|
7330
|
+
value > 0 ? /* @__PURE__ */ import_react41.default.createElement(
|
7178
7331
|
"circle",
|
7179
7332
|
{
|
7180
7333
|
r: normalizedRadius,
|
@@ -7194,24 +7347,24 @@ var ProgressCircle = import_react40.default.forwardRef((props, ref) => {
|
|
7194
7347
|
}
|
7195
7348
|
) : null
|
7196
7349
|
),
|
7197
|
-
/* @__PURE__ */
|
7350
|
+
/* @__PURE__ */ import_react41.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7198
7351
|
));
|
7199
7352
|
});
|
7200
7353
|
ProgressCircle.displayName = "ProgressCircle";
|
7201
7354
|
|
7202
7355
|
// elements/pagination/Pagination.tsx
|
7203
|
-
var
|
7356
|
+
var import_react42 = __toESM(require("react"));
|
7204
7357
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7205
7358
|
var Pagination = ({
|
7206
7359
|
direction,
|
7207
7360
|
totalPages,
|
7208
7361
|
currentPage
|
7209
7362
|
}) => {
|
7210
|
-
const [page, setPage] =
|
7363
|
+
const [page, setPage] = import_react42.default.useState(currentPage || 0);
|
7211
7364
|
const handlePageChange = (page2) => {
|
7212
7365
|
setPage(page2);
|
7213
7366
|
};
|
7214
|
-
return /* @__PURE__ */
|
7367
|
+
return /* @__PURE__ */ import_react42.default.createElement(
|
7215
7368
|
import_react_headless_pagination.Pagination,
|
7216
7369
|
{
|
7217
7370
|
totalPages,
|
@@ -7223,10 +7376,10 @@ var Pagination = ({
|
|
7223
7376
|
truncableText: "...",
|
7224
7377
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7225
7378
|
},
|
7226
|
-
/* @__PURE__ */
|
7379
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7227
7380
|
import_react_headless_pagination.Pagination.PrevButton,
|
7228
7381
|
{
|
7229
|
-
as: /* @__PURE__ */
|
7382
|
+
as: /* @__PURE__ */ import_react42.default.createElement(
|
7230
7383
|
"button",
|
7231
7384
|
{
|
7232
7385
|
"aria-label": "Previous Table Page",
|
@@ -7236,7 +7389,7 @@ var Pagination = ({
|
|
7236
7389
|
),
|
7237
7390
|
style: { minWidth: 36 }
|
7238
7391
|
},
|
7239
|
-
/* @__PURE__ */
|
7392
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7240
7393
|
"svg",
|
7241
7394
|
{
|
7242
7395
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7249,7 +7402,7 @@ var Pagination = ({
|
|
7249
7402
|
strokeLinecap: "round",
|
7250
7403
|
strokeLinejoin: "round"
|
7251
7404
|
},
|
7252
|
-
/* @__PURE__ */
|
7405
|
+
/* @__PURE__ */ import_react42.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7253
7406
|
)
|
7254
7407
|
),
|
7255
7408
|
className: cn(
|
@@ -7262,17 +7415,17 @@ var Pagination = ({
|
|
7262
7415
|
},
|
7263
7416
|
"Previous"
|
7264
7417
|
),
|
7265
|
-
/* @__PURE__ */
|
7418
|
+
/* @__PURE__ */ import_react42.default.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ import_react42.default.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ import_react42.default.createElement(
|
7266
7419
|
import_react_headless_pagination.Pagination.PageButton,
|
7267
7420
|
{
|
7268
7421
|
className: "hawa-tap-highlight-transparent hawa-text-default-foreground data-[focus-visible=true]:hawa-outline-focus data-[disabled=true]:hawa-text-default-300 hawa-min-w-9 hawa-text-small hawa-box-border hawa-flex hawa-h-9 hawa-w-9 hawa-cursor-pointer hawa-touch-none hawa-select-none hawa-flex-wrap hawa-items-center hawa-justify-center hawa-truncate hawa-rounded hawa-border hawa-bg-card hawa-outline-none hawa-transition-all hover:hawa-scale-[1.1] data-[disabled=true]:hawa-pointer-events-none data-[focus-visible=true]:hawa-z-10 data-[pressed=true]:hawa-scale-[0.97] data-[focus-visible=true]:hawa-outline-2 data-[focus-visible=true]:hawa-outline-offset-2",
|
7269
7422
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7270
7423
|
}
|
7271
7424
|
))),
|
7272
|
-
/* @__PURE__ */
|
7425
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7273
7426
|
import_react_headless_pagination.Pagination.NextButton,
|
7274
7427
|
{
|
7275
|
-
as: /* @__PURE__ */
|
7428
|
+
as: /* @__PURE__ */ import_react42.default.createElement(
|
7276
7429
|
"button",
|
7277
7430
|
{
|
7278
7431
|
"aria-label": "Previous Table Page",
|
@@ -7282,7 +7435,7 @@ var Pagination = ({
|
|
7282
7435
|
),
|
7283
7436
|
style: { minWidth: 36 }
|
7284
7437
|
},
|
7285
|
-
/* @__PURE__ */
|
7438
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7286
7439
|
"svg",
|
7287
7440
|
{
|
7288
7441
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7295,7 +7448,7 @@ var Pagination = ({
|
|
7295
7448
|
strokeLinecap: "round",
|
7296
7449
|
strokeLinejoin: "round"
|
7297
7450
|
},
|
7298
|
-
/* @__PURE__ */
|
7451
|
+
/* @__PURE__ */ import_react42.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7299
7452
|
)
|
7300
7453
|
),
|
7301
7454
|
className: cn(
|
@@ -7312,14 +7465,14 @@ var Pagination = ({
|
|
7312
7465
|
};
|
7313
7466
|
|
7314
7467
|
// elements/passwordInput/PasswordInput.tsx
|
7315
|
-
var
|
7468
|
+
var import_react46 = __toESM(require("react"));
|
7316
7469
|
|
7317
7470
|
// icons/Emojis.tsx
|
7318
|
-
var
|
7471
|
+
var import_react43 = __toESM(require("react"));
|
7319
7472
|
|
7320
7473
|
// icons/InputIcons.tsx
|
7321
|
-
var
|
7322
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7474
|
+
var import_react44 = __toESM(require("react"));
|
7475
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react44.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react44.default.createElement(
|
7323
7476
|
"svg",
|
7324
7477
|
{
|
7325
7478
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7330,10 +7483,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react43.default.createElement("d
|
|
7330
7483
|
strokeLinecap: "round",
|
7331
7484
|
strokeLinejoin: "round"
|
7332
7485
|
},
|
7333
|
-
/* @__PURE__ */
|
7334
|
-
/* @__PURE__ */
|
7486
|
+
/* @__PURE__ */ import_react44.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7487
|
+
/* @__PURE__ */ import_react44.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7335
7488
|
));
|
7336
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7489
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react44.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react44.default.createElement(
|
7337
7490
|
"svg",
|
7338
7491
|
{
|
7339
7492
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7344,20 +7497,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react43.default.createElem
|
|
7344
7497
|
strokeLinecap: "round",
|
7345
7498
|
strokeLinejoin: "round"
|
7346
7499
|
},
|
7347
|
-
/* @__PURE__ */
|
7348
|
-
/* @__PURE__ */
|
7349
|
-
/* @__PURE__ */
|
7350
|
-
/* @__PURE__ */
|
7500
|
+
/* @__PURE__ */ import_react44.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7501
|
+
/* @__PURE__ */ import_react44.default.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" }),
|
7502
|
+
/* @__PURE__ */ import_react44.default.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" }),
|
7503
|
+
/* @__PURE__ */ import_react44.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7351
7504
|
));
|
7352
7505
|
|
7353
7506
|
// icons/CommonIcons.tsx
|
7354
|
-
var
|
7507
|
+
var import_react45 = __toESM(require("react"));
|
7355
7508
|
var CheckMark = ({ size = "default", className }) => {
|
7356
7509
|
let sizeStyles2 = {
|
7357
7510
|
default: "hawa-h-5 hawa-w-5",
|
7358
7511
|
sm: "hawa-h-3 hawa-w-3"
|
7359
7512
|
};
|
7360
|
-
return /* @__PURE__ */
|
7513
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7361
7514
|
"svg",
|
7362
7515
|
{
|
7363
7516
|
className: cn(sizeStyles2[size], className),
|
@@ -7365,7 +7518,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7365
7518
|
fill: "currentColor",
|
7366
7519
|
viewBox: "0 0 20 20"
|
7367
7520
|
},
|
7368
|
-
/* @__PURE__ */
|
7521
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7369
7522
|
"path",
|
7370
7523
|
{
|
7371
7524
|
fillRule: "evenodd",
|
@@ -7380,7 +7533,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7380
7533
|
default: "hawa-h-5 hawa-w-5",
|
7381
7534
|
sm: "hawa-h-3 hawa-w-3"
|
7382
7535
|
};
|
7383
|
-
return /* @__PURE__ */
|
7536
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7384
7537
|
"svg",
|
7385
7538
|
{
|
7386
7539
|
className: cn(sizeStyles2[size], className),
|
@@ -7388,7 +7541,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7388
7541
|
fill: "currentColor",
|
7389
7542
|
viewBox: "0 0 20 20"
|
7390
7543
|
},
|
7391
|
-
/* @__PURE__ */
|
7544
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7392
7545
|
"path",
|
7393
7546
|
{
|
7394
7547
|
fillRule: "evenodd",
|
@@ -7426,7 +7579,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7426
7579
|
strong: "80%",
|
7427
7580
|
"very-strong": "100%"
|
7428
7581
|
}[currentStrengthLevel];
|
7429
|
-
return /* @__PURE__ */
|
7582
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ import_react46.default.createElement(
|
7430
7583
|
"div",
|
7431
7584
|
{
|
7432
7585
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7438,16 +7591,16 @@ var PasswordInput = ({
|
|
7438
7591
|
hidePopover,
|
7439
7592
|
...props
|
7440
7593
|
}) => {
|
7441
|
-
const [inputValue, setInputValue] = (0,
|
7442
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
7443
|
-
const [currentStr, setCurrentStr] = (0,
|
7444
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
7445
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
7446
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
7447
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
7448
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
7449
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
7450
|
-
(0,
|
7594
|
+
const [inputValue, setInputValue] = (0, import_react46.useState)("");
|
7595
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react46.useState)(false);
|
7596
|
+
const [currentStr, setCurrentStr] = (0, import_react46.useState)(0);
|
7597
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react46.useState)(false);
|
7598
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react46.useState)(false);
|
7599
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react46.useState)(false);
|
7600
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react46.useState)(false);
|
7601
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react46.useState)(false);
|
7602
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react46.useState)(false);
|
7603
|
+
(0, import_react46.useEffect)(() => {
|
7451
7604
|
const calculateStrength = () => {
|
7452
7605
|
let strengthScore = 0;
|
7453
7606
|
if (lengthCriteriaMet)
|
@@ -7486,7 +7639,7 @@ var PasswordInput = ({
|
|
7486
7639
|
setIsInputFocused(false);
|
7487
7640
|
};
|
7488
7641
|
const getCriteriaClass = (isMet) => isMet ? "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-green-500" : "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-red-600";
|
7489
|
-
return /* @__PURE__ */
|
7642
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", null, /* @__PURE__ */ import_react46.default.createElement(
|
7490
7643
|
Popover,
|
7491
7644
|
{
|
7492
7645
|
width: "trigger",
|
@@ -7495,7 +7648,7 @@ var PasswordInput = ({
|
|
7495
7648
|
onOpenChange: setIsInputFocused,
|
7496
7649
|
triggerProps: { asChild: true },
|
7497
7650
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7498
|
-
trigger: /* @__PURE__ */
|
7651
|
+
trigger: /* @__PURE__ */ import_react46.default.createElement(
|
7499
7652
|
"div",
|
7500
7653
|
{
|
7501
7654
|
onClick: (e) => {
|
@@ -7505,7 +7658,7 @@ var PasswordInput = ({
|
|
7505
7658
|
}
|
7506
7659
|
}
|
7507
7660
|
},
|
7508
|
-
/* @__PURE__ */
|
7661
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7509
7662
|
Input,
|
7510
7663
|
{
|
7511
7664
|
width: "full",
|
@@ -7515,21 +7668,21 @@ var PasswordInput = ({
|
|
7515
7668
|
onFocus: handleInputFocus,
|
7516
7669
|
onBlur: handleInputBlur,
|
7517
7670
|
type: passwordVisible ? "text" : "password",
|
7518
|
-
endIcon: /* @__PURE__ */
|
7671
|
+
endIcon: /* @__PURE__ */ import_react46.default.createElement(
|
7519
7672
|
"div",
|
7520
7673
|
{
|
7521
7674
|
className: "hawa-cursor-pointer",
|
7522
7675
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7523
7676
|
},
|
7524
|
-
passwordVisible ? /* @__PURE__ */
|
7677
|
+
passwordVisible ? /* @__PURE__ */ import_react46.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react46.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7525
7678
|
" "
|
7526
7679
|
)
|
7527
7680
|
}
|
7528
7681
|
)
|
7529
7682
|
)
|
7530
7683
|
},
|
7531
|
-
/* @__PURE__ */
|
7532
|
-
), /* @__PURE__ */
|
7684
|
+
/* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react46.default.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react46.default.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ import_react46.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react46.default.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ import_react46.default.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ import_react46.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react46.default.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ import_react46.default.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ import_react46.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react46.default.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ import_react46.default.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ import_react46.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react46.default.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ import_react46.default.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ import_react46.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react46.default.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7685
|
+
), /* @__PURE__ */ import_react46.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7533
7686
|
};
|
7534
7687
|
|
7535
7688
|
// elements/slider/Slider.tsx
|
@@ -7644,12 +7797,12 @@ var Separator2 = ({
|
|
7644
7797
|
);
|
7645
7798
|
|
7646
7799
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7647
|
-
var
|
7800
|
+
var import_react47 = __toESM(require("react"));
|
7648
7801
|
var ScrollIndicator = ({
|
7649
7802
|
anchor,
|
7650
7803
|
inContainer = false
|
7651
7804
|
}) => {
|
7652
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7805
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react47.useState)(0);
|
7653
7806
|
const onScroll = () => {
|
7654
7807
|
const scrollElement = anchor.current;
|
7655
7808
|
if (scrollElement) {
|
@@ -7660,7 +7813,7 @@ var ScrollIndicator = ({
|
|
7660
7813
|
setScrollPercentage(percentageScrolled);
|
7661
7814
|
}
|
7662
7815
|
};
|
7663
|
-
(0,
|
7816
|
+
(0, import_react47.useEffect)(() => {
|
7664
7817
|
if (!anchor.current)
|
7665
7818
|
return;
|
7666
7819
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7669,7 +7822,7 @@ var ScrollIndicator = ({
|
|
7669
7822
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7670
7823
|
};
|
7671
7824
|
}, [anchor]);
|
7672
|
-
return /* @__PURE__ */
|
7825
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
7673
7826
|
"div",
|
7674
7827
|
{
|
7675
7828
|
style: {
|
@@ -7685,11 +7838,11 @@ var ScrollIndicator = ({
|
|
7685
7838
|
};
|
7686
7839
|
|
7687
7840
|
// elements/codeBlock/CodeBlock.tsx
|
7688
|
-
var
|
7841
|
+
var import_react48 = __toESM(require("react"));
|
7689
7842
|
var import_prism_react_renderer = require("prism-react-renderer");
|
7690
7843
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7691
7844
|
require("prismjs/components/prism-bash");
|
7692
|
-
var CopyIcon = () => /* @__PURE__ */
|
7845
|
+
var CopyIcon = () => /* @__PURE__ */ import_react48.default.createElement(
|
7693
7846
|
"svg",
|
7694
7847
|
{
|
7695
7848
|
"aria-label": "Copy",
|
@@ -7702,8 +7855,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react47.default.createElement(
|
|
7702
7855
|
height: "1em",
|
7703
7856
|
width: "1em"
|
7704
7857
|
},
|
7705
|
-
/* @__PURE__ */
|
7706
|
-
/* @__PURE__ */
|
7858
|
+
/* @__PURE__ */ import_react48.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7859
|
+
/* @__PURE__ */ import_react48.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
7707
7860
|
);
|
7708
7861
|
var CodeBlock = ({
|
7709
7862
|
tabs,
|
@@ -7717,7 +7870,7 @@ var CodeBlock = ({
|
|
7717
7870
|
...props
|
7718
7871
|
}) => {
|
7719
7872
|
const clipboard = useClipboard();
|
7720
|
-
const [selectedTab, setSelectedTab] = (0,
|
7873
|
+
const [selectedTab, setSelectedTab] = (0, import_react48.useState)(0);
|
7721
7874
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
7722
7875
|
let widthStyles = {
|
7723
7876
|
full: "hawa-w-full",
|
@@ -7725,7 +7878,7 @@ var CodeBlock = ({
|
|
7725
7878
|
sm: "hawa-w-full hawa-max-w-sm",
|
7726
7879
|
xs: "hawa-w-full hawa-max-w-xs"
|
7727
7880
|
};
|
7728
|
-
return /* @__PURE__ */
|
7881
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
7729
7882
|
"div",
|
7730
7883
|
{
|
7731
7884
|
className: cn(
|
@@ -7734,7 +7887,7 @@ var CodeBlock = ({
|
|
7734
7887
|
classNames == null ? void 0 : classNames.root
|
7735
7888
|
)
|
7736
7889
|
},
|
7737
|
-
fileName && /* @__PURE__ */
|
7890
|
+
fileName && /* @__PURE__ */ import_react48.default.createElement(
|
7738
7891
|
"div",
|
7739
7892
|
{
|
7740
7893
|
className: cn(
|
@@ -7743,7 +7896,7 @@ var CodeBlock = ({
|
|
7743
7896
|
classNames == null ? void 0 : classNames.fileName
|
7744
7897
|
)
|
7745
7898
|
},
|
7746
|
-
/* @__PURE__ */
|
7899
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7747
7900
|
"div",
|
7748
7901
|
{
|
7749
7902
|
className: cn(
|
@@ -7753,7 +7906,7 @@ var CodeBlock = ({
|
|
7753
7906
|
fileName
|
7754
7907
|
)
|
7755
7908
|
),
|
7756
|
-
tabs && /* @__PURE__ */
|
7909
|
+
tabs && /* @__PURE__ */ import_react48.default.createElement(
|
7757
7910
|
"div",
|
7758
7911
|
{
|
7759
7912
|
className: cn(
|
@@ -7762,7 +7915,7 @@ var CodeBlock = ({
|
|
7762
7915
|
classNames == null ? void 0 : classNames.tabs
|
7763
7916
|
)
|
7764
7917
|
},
|
7765
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7918
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react48.default.createElement(
|
7766
7919
|
"div",
|
7767
7920
|
{
|
7768
7921
|
key: i,
|
@@ -7771,7 +7924,7 @@ var CodeBlock = ({
|
|
7771
7924
|
classNames == null ? void 0 : classNames.tab
|
7772
7925
|
)
|
7773
7926
|
},
|
7774
|
-
/* @__PURE__ */
|
7927
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7775
7928
|
"div",
|
7776
7929
|
{
|
7777
7930
|
onClick: () => setSelectedTab(i),
|
@@ -7783,7 +7936,7 @@ var CodeBlock = ({
|
|
7783
7936
|
)
|
7784
7937
|
))
|
7785
7938
|
),
|
7786
|
-
/* @__PURE__ */
|
7939
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7787
7940
|
"div",
|
7788
7941
|
{
|
7789
7942
|
className: cn(
|
@@ -7793,22 +7946,22 @@ var CodeBlock = ({
|
|
7793
7946
|
"hawa-overflow-y-auto"
|
7794
7947
|
)
|
7795
7948
|
},
|
7796
|
-
/* @__PURE__ */
|
7949
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7797
7950
|
"div",
|
7798
7951
|
{
|
7799
7952
|
className: cn(
|
7800
7953
|
"hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3 hawa-top-3"
|
7801
7954
|
)
|
7802
7955
|
},
|
7803
|
-
/* @__PURE__ */
|
7956
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7804
7957
|
Tooltip,
|
7805
7958
|
{
|
7806
7959
|
open: clipboard.copied,
|
7807
7960
|
side: "left",
|
7808
|
-
content: /* @__PURE__ */
|
7961
|
+
content: /* @__PURE__ */ import_react48.default.createElement("div", null, "Copied!"),
|
7809
7962
|
triggerProps: { asChild: true }
|
7810
7963
|
},
|
7811
|
-
/* @__PURE__ */
|
7964
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7812
7965
|
Button,
|
7813
7966
|
{
|
7814
7967
|
size: "smallIcon",
|
@@ -7816,18 +7969,18 @@ var CodeBlock = ({
|
|
7816
7969
|
variant: "outline",
|
7817
7970
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7818
7971
|
},
|
7819
|
-
/* @__PURE__ */
|
7972
|
+
/* @__PURE__ */ import_react48.default.createElement(CopyIcon, null)
|
7820
7973
|
)
|
7821
7974
|
)
|
7822
7975
|
),
|
7823
|
-
/* @__PURE__ */
|
7976
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7824
7977
|
import_prism_react_renderer.Highlight,
|
7825
7978
|
{
|
7826
7979
|
theme,
|
7827
7980
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7828
7981
|
language
|
7829
7982
|
},
|
7830
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
7983
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react48.default.createElement(
|
7831
7984
|
"pre",
|
7832
7985
|
{
|
7833
7986
|
className: cn(
|
@@ -7837,7 +7990,7 @@ var CodeBlock = ({
|
|
7837
7990
|
wrapText && "hawa-text-wrap"
|
7838
7991
|
)
|
7839
7992
|
},
|
7840
|
-
tokens.map((line, i) => /* @__PURE__ */
|
7993
|
+
tokens.map((line, i) => /* @__PURE__ */ import_react48.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react48.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react48.default.createElement("span", { key, ...getTokenProps({ token }) }))))
|
7841
7994
|
)
|
7842
7995
|
)
|
7843
7996
|
)
|
@@ -7845,7 +7998,7 @@ var CodeBlock = ({
|
|
7845
7998
|
};
|
7846
7999
|
|
7847
8000
|
// elements/carousel/Carousel.tsx
|
7848
|
-
var
|
8001
|
+
var import_react49 = __toESM(require("react"));
|
7849
8002
|
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
7850
8003
|
var Carousel = ({
|
7851
8004
|
items,
|
@@ -7861,8 +8014,8 @@ var Carousel = ({
|
|
7861
8014
|
direction,
|
7862
8015
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
7863
8016
|
});
|
7864
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
7865
|
-
(0,
|
8017
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react49.useState)(0);
|
8018
|
+
(0, import_react49.useEffect)(() => {
|
7866
8019
|
function selectHandler() {
|
7867
8020
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
7868
8021
|
setSelectedIndex(index || 0);
|
@@ -7872,7 +8025,7 @@ var Carousel = ({
|
|
7872
8025
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
7873
8026
|
};
|
7874
8027
|
}, [emblaApi]);
|
7875
|
-
(0,
|
8028
|
+
(0, import_react49.useEffect)(() => {
|
7876
8029
|
let autoplayTimer;
|
7877
8030
|
if (autoplay && emblaApi) {
|
7878
8031
|
autoplayTimer = setInterval(() => {
|
@@ -7884,17 +8037,17 @@ var Carousel = ({
|
|
7884
8037
|
clearInterval(autoplayTimer);
|
7885
8038
|
};
|
7886
8039
|
}, [emblaApi, autoplay, autoplayInterval]);
|
7887
|
-
const length =
|
8040
|
+
const length = import_react49.default.Children.count(items);
|
7888
8041
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
7889
8042
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
7890
|
-
return /* @__PURE__ */
|
8043
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ import_react49.default.createElement(
|
7891
8044
|
"div",
|
7892
8045
|
{
|
7893
8046
|
key: i,
|
7894
8047
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
7895
8048
|
},
|
7896
8049
|
item
|
7897
|
-
))))), /* @__PURE__ */
|
8050
|
+
))))), /* @__PURE__ */ import_react49.default.createElement(
|
7898
8051
|
Dots,
|
7899
8052
|
{
|
7900
8053
|
direction,
|
@@ -7902,7 +8055,7 @@ var Carousel = ({
|
|
7902
8055
|
selectedIndex,
|
7903
8056
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
7904
8057
|
}
|
7905
|
-
), showArrows && /* @__PURE__ */
|
8058
|
+
), showArrows && /* @__PURE__ */ import_react49.default.createElement(
|
7906
8059
|
CarouselControls,
|
7907
8060
|
{
|
7908
8061
|
canScrollNext,
|
@@ -7919,7 +8072,7 @@ var Dots = ({
|
|
7919
8072
|
direction
|
7920
8073
|
}) => {
|
7921
8074
|
const arr = new Array(itemsLength).fill(0);
|
7922
|
-
return /* @__PURE__ */
|
8075
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
7923
8076
|
"div",
|
7924
8077
|
{
|
7925
8078
|
dir: direction,
|
@@ -7927,7 +8080,7 @@ var Dots = ({
|
|
7927
8080
|
},
|
7928
8081
|
arr.map((_, index) => {
|
7929
8082
|
const selected = index === selectedIndex;
|
7930
|
-
return /* @__PURE__ */
|
8083
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
7931
8084
|
"div",
|
7932
8085
|
{
|
7933
8086
|
key: index,
|
@@ -7942,7 +8095,7 @@ var Dots = ({
|
|
7942
8095
|
);
|
7943
8096
|
};
|
7944
8097
|
var CarouselControls = (props) => {
|
7945
|
-
return /* @__PURE__ */
|
8098
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react49.default.createElement(
|
7946
8099
|
"button",
|
7947
8100
|
{
|
7948
8101
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -7953,7 +8106,7 @@ var CarouselControls = (props) => {
|
|
7953
8106
|
props.canScrollPrev && "hawa-bg-primary"
|
7954
8107
|
)
|
7955
8108
|
},
|
7956
|
-
/* @__PURE__ */
|
8109
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7957
8110
|
"svg",
|
7958
8111
|
{
|
7959
8112
|
"aria-label": "Chevron Right Icon",
|
@@ -7962,9 +8115,9 @@ var CarouselControls = (props) => {
|
|
7962
8115
|
viewBox: "0 0 16 16",
|
7963
8116
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
7964
8117
|
},
|
7965
|
-
/* @__PURE__ */
|
8118
|
+
/* @__PURE__ */ import_react49.default.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" })
|
7966
8119
|
)
|
7967
|
-
), /* @__PURE__ */
|
8120
|
+
), /* @__PURE__ */ import_react49.default.createElement(
|
7968
8121
|
"button",
|
7969
8122
|
{
|
7970
8123
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -7975,7 +8128,7 @@ var CarouselControls = (props) => {
|
|
7975
8128
|
props.canScrollNext && "hawa-bg-primary"
|
7976
8129
|
)
|
7977
8130
|
},
|
7978
|
-
/* @__PURE__ */
|
8131
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7979
8132
|
"svg",
|
7980
8133
|
{
|
7981
8134
|
"aria-label": "Chevron Right Icon",
|
@@ -7984,15 +8137,15 @@ var CarouselControls = (props) => {
|
|
7984
8137
|
viewBox: "0 0 16 16",
|
7985
8138
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
7986
8139
|
},
|
7987
|
-
/* @__PURE__ */
|
8140
|
+
/* @__PURE__ */ import_react49.default.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" })
|
7988
8141
|
)
|
7989
8142
|
));
|
7990
8143
|
};
|
7991
8144
|
|
7992
8145
|
// elements/count/Count.tsx
|
7993
|
-
var
|
8146
|
+
var import_react50 = __toESM(require("react"));
|
7994
8147
|
var Count = (props) => {
|
7995
|
-
return /* @__PURE__ */
|
8148
|
+
return /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ import_react50.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-text-sm" }, props.count));
|
7996
8149
|
};
|
7997
8150
|
|
7998
8151
|
// elements/toast/Toast.tsx
|
@@ -8133,11 +8286,11 @@ var ToastDescription = React67.forwardRef(({ className, size = "default", ...pro
|
|
8133
8286
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
8134
8287
|
|
8135
8288
|
// elements/toaster/Toaster.tsx
|
8136
|
-
var
|
8289
|
+
var import_react51 = __toESM(require("react"));
|
8137
8290
|
function Toaster(props) {
|
8138
8291
|
var _a;
|
8139
8292
|
let isRTL = props.direction === "rtl";
|
8140
|
-
return /* @__PURE__ */
|
8293
|
+
return /* @__PURE__ */ import_react51.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8141
8294
|
id,
|
8142
8295
|
title,
|
8143
8296
|
description,
|
@@ -8145,7 +8298,7 @@ function Toaster(props) {
|
|
8145
8298
|
action,
|
8146
8299
|
...toastProps
|
8147
8300
|
}) {
|
8148
|
-
return /* @__PURE__ */
|
8301
|
+
return /* @__PURE__ */ import_react51.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react51.default.createElement(
|
8149
8302
|
"div",
|
8150
8303
|
{
|
8151
8304
|
className: cn(
|
@@ -8153,9 +8306,9 @@ function Toaster(props) {
|
|
8153
8306
|
action && "hawa-justify-between"
|
8154
8307
|
)
|
8155
8308
|
},
|
8156
|
-
/* @__PURE__ */
|
8157
|
-
/* @__PURE__ */
|
8158
|
-
/* @__PURE__ */
|
8309
|
+
/* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ import_react51.default.createElement(ToastClose, null)),
|
8310
|
+
/* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
8311
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8159
8312
|
"div",
|
8160
8313
|
{
|
8161
8314
|
className: cn(
|
@@ -8163,11 +8316,11 @@ function Toaster(props) {
|
|
8163
8316
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8164
8317
|
)
|
8165
8318
|
},
|
8166
|
-
/* @__PURE__ */
|
8167
|
-
action && /* @__PURE__ */
|
8319
|
+
/* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ import_react51.default.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ import_react51.default.createElement(ToastDescription, { size }, description)),
|
8320
|
+
action && /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8168
8321
|
)
|
8169
8322
|
));
|
8170
|
-
}), /* @__PURE__ */
|
8323
|
+
}), /* @__PURE__ */ import_react51.default.createElement(
|
8171
8324
|
ToastViewport,
|
8172
8325
|
{
|
8173
8326
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8176,20 +8329,20 @@ function Toaster(props) {
|
|
8176
8329
|
}
|
8177
8330
|
|
8178
8331
|
// elements/destroyableCard/DestroyableCard.tsx
|
8179
|
-
var
|
8332
|
+
var import_react52 = __toESM(require("react"));
|
8180
8333
|
var DestroyableCard = ({
|
8181
8334
|
position = "bottom-right",
|
8182
8335
|
fixed,
|
8183
8336
|
direction,
|
8184
8337
|
...props
|
8185
8338
|
}) => {
|
8186
|
-
const [closed, setClosed] = (0,
|
8187
|
-
const popUpRef = (0,
|
8339
|
+
const [closed, setClosed] = (0, import_react52.useState)(false);
|
8340
|
+
const popUpRef = (0, import_react52.useRef)(null);
|
8188
8341
|
const boxPosition = {
|
8189
8342
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8190
8343
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8191
8344
|
};
|
8192
|
-
return /* @__PURE__ */
|
8345
|
+
return /* @__PURE__ */ import_react52.default.createElement(
|
8193
8346
|
"div",
|
8194
8347
|
{
|
8195
8348
|
className: cn(
|
@@ -8198,7 +8351,7 @@ var DestroyableCard = ({
|
|
8198
8351
|
),
|
8199
8352
|
ref: popUpRef
|
8200
8353
|
},
|
8201
|
-
/* @__PURE__ */
|
8354
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8202
8355
|
Card,
|
8203
8356
|
{
|
8204
8357
|
className: cn(
|
@@ -8207,7 +8360,7 @@ var DestroyableCard = ({
|
|
8207
8360
|
),
|
8208
8361
|
dir: direction
|
8209
8362
|
},
|
8210
|
-
/* @__PURE__ */
|
8363
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8211
8364
|
"button",
|
8212
8365
|
{
|
8213
8366
|
type: "button",
|
@@ -8226,7 +8379,7 @@ var DestroyableCard = ({
|
|
8226
8379
|
}, 200);
|
8227
8380
|
}
|
8228
8381
|
},
|
8229
|
-
/* @__PURE__ */
|
8382
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8230
8383
|
"svg",
|
8231
8384
|
{
|
8232
8385
|
"aria-hidden": "true",
|
@@ -8234,7 +8387,7 @@ var DestroyableCard = ({
|
|
8234
8387
|
fill: "currentColor",
|
8235
8388
|
viewBox: "0 0 20 20"
|
8236
8389
|
},
|
8237
|
-
/* @__PURE__ */
|
8390
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8238
8391
|
"path",
|
8239
8392
|
{
|
8240
8393
|
fillRule: "evenodd",
|
@@ -8244,13 +8397,13 @@ var DestroyableCard = ({
|
|
8244
8397
|
)
|
8245
8398
|
)
|
8246
8399
|
),
|
8247
|
-
/* @__PURE__ */
|
8400
|
+
/* @__PURE__ */ import_react52.default.createElement(CardContent, { headless: true }, props.children)
|
8248
8401
|
)
|
8249
8402
|
);
|
8250
8403
|
};
|
8251
8404
|
|
8252
8405
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
8253
|
-
var
|
8406
|
+
var import_react53 = __toESM(require("react"));
|
8254
8407
|
var InterfaceSettings = ({
|
8255
8408
|
orientation = "horizontal",
|
8256
8409
|
width = "default",
|
@@ -8258,13 +8411,13 @@ var InterfaceSettings = ({
|
|
8258
8411
|
handleLanguage,
|
8259
8412
|
...props
|
8260
8413
|
}) => {
|
8261
|
-
const [color, setColor] = (0,
|
8262
|
-
const [language, setLanguage] = (0,
|
8414
|
+
const [color, setColor] = (0, import_react53.useState)(props.currentColorMode);
|
8415
|
+
const [language, setLanguage] = (0, import_react53.useState)(props.currentLanguage);
|
8263
8416
|
let orientationStyle = {
|
8264
8417
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
8265
8418
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
8266
8419
|
};
|
8267
|
-
return /* @__PURE__ */
|
8420
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react53.default.createElement(
|
8268
8421
|
Radio,
|
8269
8422
|
{
|
8270
8423
|
name: "language",
|
@@ -8282,7 +8435,7 @@ var InterfaceSettings = ({
|
|
8282
8435
|
{ value: "en", label: "English" }
|
8283
8436
|
]
|
8284
8437
|
}
|
8285
|
-
), /* @__PURE__ */
|
8438
|
+
), /* @__PURE__ */ import_react53.default.createElement(
|
8286
8439
|
Radio,
|
8287
8440
|
{
|
8288
8441
|
name: "theme",
|
@@ -8298,7 +8451,7 @@ var InterfaceSettings = ({
|
|
8298
8451
|
options: [
|
8299
8452
|
{
|
8300
8453
|
value: "light",
|
8301
|
-
label: /* @__PURE__ */
|
8454
|
+
label: /* @__PURE__ */ import_react53.default.createElement(
|
8302
8455
|
"svg",
|
8303
8456
|
{
|
8304
8457
|
width: "15",
|
@@ -8308,7 +8461,7 @@ var InterfaceSettings = ({
|
|
8308
8461
|
xmlns: "http://www.w3.org/2000/svg",
|
8309
8462
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8310
8463
|
},
|
8311
|
-
/* @__PURE__ */
|
8464
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8312
8465
|
"path",
|
8313
8466
|
{
|
8314
8467
|
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",
|
@@ -8319,7 +8472,7 @@ var InterfaceSettings = ({
|
|
8319
8472
|
},
|
8320
8473
|
{
|
8321
8474
|
value: "dark",
|
8322
|
-
label: /* @__PURE__ */
|
8475
|
+
label: /* @__PURE__ */ import_react53.default.createElement(
|
8323
8476
|
"svg",
|
8324
8477
|
{
|
8325
8478
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8330,7 +8483,7 @@ var InterfaceSettings = ({
|
|
8330
8483
|
stroke: "currentColor",
|
8331
8484
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8332
8485
|
},
|
8333
|
-
/* @__PURE__ */
|
8486
|
+
/* @__PURE__ */ import_react53.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8334
8487
|
)
|
8335
8488
|
}
|
8336
8489
|
]
|
@@ -8339,14 +8492,14 @@ var InterfaceSettings = ({
|
|
8339
8492
|
};
|
8340
8493
|
|
8341
8494
|
// elements/phoneMockup/PhoneMockup.tsx
|
8342
|
-
var
|
8495
|
+
var import_react54 = __toESM(require("react"));
|
8343
8496
|
var PhoneMockup = ({
|
8344
8497
|
children,
|
8345
8498
|
upperOverlayGradiant,
|
8346
8499
|
lowerOverlayGradiant,
|
8347
8500
|
phone,
|
8348
8501
|
hideButtons
|
8349
|
-
}) => /* @__PURE__ */
|
8502
|
+
}) => /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-relative hawa-mx-auto hawa-h-[600px] hawa-w-[300px] hawa-rounded-[2.5rem] hawa-border-[14px] hawa-border-gray-800 hawa-bg-gray-800 hawa-dark:border-gray-800" }, !hideButtons && /* @__PURE__ */ import_react54.default.createElement(import_react54.default.Fragment, null, /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[72px] hawa-h-[32px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[124px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[178px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-absolute hawa--right-[16px] hawa-top-[142px] hawa-h-[64px] hawa-w-[3px] hawa-rounded-r-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" })), /* @__PURE__ */ import_react54.default.createElement("div", { className: "no-scrollbar hawa-left-0 hawa-h-[572px] hawa-w-[272px] hawa-overflow-y-scroll hawa-rounded-[2rem] hawa-bg-white hawa-[clip-path:inset(0px_-1px_0px_0px_round_2rem)] hawa-dark:bg-gray-800" }, children), upperOverlayGradiant && /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-left-0 hawa-top-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-t-[2rem] hawa-bg-gradient-to-t hawa-from-transparent hawa-to-black hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }), lowerOverlayGradiant && /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-bottom-0 hawa-left-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-b-[2rem] hawa-bg-gradient-to-t hawa-from-black hawa-to-transparent hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }));
|
8350
8503
|
// Annotate the CommonJS export names for ESM import in node:
|
8351
8504
|
0 && (module.exports = {
|
8352
8505
|
Accordion,
|
@@ -8355,6 +8508,7 @@ var PhoneMockup = ({
|
|
8355
8508
|
AccordionRoot,
|
8356
8509
|
AccordionTrigger,
|
8357
8510
|
Alert,
|
8511
|
+
AppCommand,
|
8358
8512
|
AppStores,
|
8359
8513
|
Avatar,
|
8360
8514
|
BackToTop,
|
@@ -8418,6 +8572,7 @@ var PhoneMockup = ({
|
|
8418
8572
|
DropdownMenuTrigger,
|
8419
8573
|
FileDropzone,
|
8420
8574
|
FileUploader,
|
8575
|
+
FullCommand,
|
8421
8576
|
Input,
|
8422
8577
|
InterfaceSettings,
|
8423
8578
|
Label,
|