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