@sikka/hawa 0.37.1-next → 0.38.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/dist/{Radio-y9uhxitu.d.ts → Radio-lgoClQrv.d.ts} +2 -2
- package/dist/{Radio-BCD7k628.d.mts → Radio-uQ7DtzcI.d.mts} +2 -2
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +1 -0
- package/dist/blocks/auth/index.d.ts +1 -0
- package/dist/blocks/auth/index.js +207 -123
- package/dist/blocks/auth/index.mjs +204 -101
- package/dist/blocks/feedback/index.js +4 -40
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +2 -1
- package/dist/blocks/index.d.ts +2 -1
- package/dist/blocks/index.js +457 -400
- package/dist/blocks/index.mjs +10 -8
- package/dist/blocks/misc/index.js +5 -32
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +4 -22
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/checkbox/index.d.mts +1 -1
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/{chunk-BPHQFAWM.mjs → chunk-4EZL2A64.mjs} +3 -11
- package/dist/{chunk-DS3AACQJ.mjs → chunk-E6C3LDHD.mjs} +1 -1
- package/dist/{chunk-ODOCZAWC.mjs → chunk-E77TUADR.mjs} +1 -1
- package/dist/{chunk-QXH7ZDMN.mjs → chunk-IA5FLRFL.mjs} +3 -11
- package/dist/{chunk-ZTUWU652.mjs → chunk-JJMRBD3S.mjs} +3 -3
- package/dist/{chunk-RNFJAEEU.mjs → chunk-LDJD5ITW.mjs} +1 -0
- package/dist/{chunk-QYWOI3DO.mjs → chunk-MHSSZ6XE.mjs} +204 -144
- package/dist/{chunk-BTDR3VAG.mjs → chunk-Q3HJI7ZE.mjs} +4 -21
- package/dist/{chunk-MDHDHEPZ.mjs → chunk-TMUQCNLO.mjs} +3 -11
- package/dist/{chunk-PXGL7ZXQ.mjs → chunk-V4SUYEVH.mjs} +1 -0
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.d.mts +1 -1
- package/dist/colorPicker/index.d.ts +1 -1
- package/dist/colorPicker/index.js +35 -31
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +33 -29
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.d.mts +2 -2
- package/dist/combobox/index.d.ts +2 -2
- package/dist/combobox/index.js +52 -48
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +52 -48
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.d.mts +1 -1
- package/dist/command/index.d.ts +1 -1
- package/dist/command/index.js +26 -4
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +26 -4
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +1 -10
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +1 -10
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +48 -25
- package/dist/elements/index.d.ts +48 -25
- package/dist/elements/index.js +361 -294
- package/dist/elements/index.mjs +40 -27
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/{index-e_Ob_SnB.d.ts → index-B0aJcA6d.d.mts} +6 -4
- package/dist/{index-e_Ob_SnB.d.mts → index-B0aJcA6d.d.ts} +6 -4
- package/dist/index.css +29 -3
- package/dist/index.d.mts +50 -26
- package/dist/index.d.ts +50 -26
- package/dist/index.js +790 -721
- package/dist/index.mjs +313 -248
- package/dist/input/index.d.mts +1 -1
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.js +46 -42
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +45 -41
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +64 -69
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +57 -62
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +70 -66
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +59 -55
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +50 -55
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +47 -52
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.d.mts +37 -16
- package/dist/pinInput/index.d.ts +37 -16
- package/dist/pinInput/index.js +208 -78
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +203 -77
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/radio/index.d.mts +1 -1
- package/dist/radio/index.d.ts +1 -1
- package/dist/radio/index.js +55 -60
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +50 -55
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.js +2 -2
- package/dist/scrollArea/index.js.map +1 -1
- package/dist/scrollArea/index.mjs +2 -2
- package/dist/scrollArea/index.mjs.map +1 -1
- package/dist/select/index.d.mts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/select/index.js +43 -39
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +43 -39
- package/dist/select/index.mjs.map +1 -1
- package/dist/signature/index.d.mts +1 -1
- package/dist/signature/index.d.ts +1 -1
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs.map +1 -1
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.d.mts +1 -1
- package/dist/stats/index.d.ts +1 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs.map +1 -1
- package/dist/tabs/index.js +2 -2
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +2 -2
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/textarea/index.js +34 -30
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +34 -30
- package/dist/textarea/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/elements/index.js
CHANGED
@@ -122,6 +122,10 @@ __export(elements_exports, {
|
|
122
122
|
PhoneInput: () => PhoneInput,
|
123
123
|
PhoneMockup: () => PhoneMockup,
|
124
124
|
PinInput: () => PinInput,
|
125
|
+
PinInputGroup: () => PinInputGroup,
|
126
|
+
PinInputRoot: () => PinInputRoot,
|
127
|
+
PinInputSeperator: () => PinInputSeperator,
|
128
|
+
PinInputSlot: () => PinInputSlot,
|
125
129
|
Popover: () => Popover,
|
126
130
|
PopoverContent: () => PopoverContent,
|
127
131
|
PopoverPortal: () => PopoverPortal,
|
@@ -2702,16 +2706,7 @@ var Input = (0, import_react11.forwardRef)(
|
|
2702
2706
|
inputProps == null ? void 0 : inputProps.className
|
2703
2707
|
)
|
2704
2708
|
}
|
2705
|
-
)), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
2706
|
-
"p",
|
2707
|
-
{
|
2708
|
-
className: cn(
|
2709
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
2710
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
2711
|
-
)
|
2712
|
-
},
|
2713
|
-
props.helperText
|
2714
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
2709
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(HelperText, { helperText: props.helperText }), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
2715
2710
|
"div",
|
2716
2711
|
{
|
2717
2712
|
className: cn(
|
@@ -3526,16 +3521,7 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3526
3521
|
opt.label
|
3527
3522
|
);
|
3528
3523
|
})
|
3529
|
-
), !forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(
|
3530
|
-
"p",
|
3531
|
-
{
|
3532
|
-
className: cn(
|
3533
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3534
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3535
|
-
)
|
3536
|
-
},
|
3537
|
-
props.helperText
|
3538
|
-
));
|
3524
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText }));
|
3539
3525
|
case "bordered":
|
3540
3526
|
return /* @__PURE__ */ import_react13.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react13.default.createElement(
|
3541
3527
|
"div",
|
@@ -3624,16 +3610,7 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3624
3610
|
},
|
3625
3611
|
opt.label
|
3626
3612
|
)
|
3627
|
-
))), /* @__PURE__ */ import_react13.default.createElement(
|
3628
|
-
"p",
|
3629
|
-
{
|
3630
|
-
className: cn(
|
3631
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3632
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3633
|
-
)
|
3634
|
-
},
|
3635
|
-
props.helperText
|
3636
|
-
));
|
3613
|
+
))), /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText }));
|
3637
3614
|
}
|
3638
3615
|
}
|
3639
3616
|
);
|
@@ -3760,7 +3737,12 @@ var CommandShortcut = ({
|
|
3760
3737
|
}
|
3761
3738
|
);
|
3762
3739
|
};
|
3763
|
-
var FullCommand = ({
|
3740
|
+
var FullCommand = ({
|
3741
|
+
items,
|
3742
|
+
direction = "ltr",
|
3743
|
+
texts,
|
3744
|
+
onActionClick
|
3745
|
+
}) => {
|
3764
3746
|
return /* @__PURE__ */ React27.createElement(
|
3765
3747
|
Command,
|
3766
3748
|
{
|
@@ -3776,7 +3758,20 @@ var FullCommand = ({ items, direction = "ltr", texts }) => {
|
|
3776
3758
|
/* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(CommandEmpty, null, (texts == null ? void 0 : texts.emptyText) || "No results found."), items.map((item, index) => {
|
3777
3759
|
var _a;
|
3778
3760
|
if (item.type === "group") {
|
3779
|
-
return /* @__PURE__ */ React27.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React27.createElement(
|
3761
|
+
return /* @__PURE__ */ React27.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React27.createElement(
|
3762
|
+
CommandItem,
|
3763
|
+
{
|
3764
|
+
key: subIndex,
|
3765
|
+
onSelect: () => {
|
3766
|
+
if (onActionClick)
|
3767
|
+
onActionClick();
|
3768
|
+
subItem.action();
|
3769
|
+
}
|
3770
|
+
},
|
3771
|
+
/* @__PURE__ */ React27.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
|
3772
|
+
/* @__PURE__ */ React27.createElement("span", null, subItem.label),
|
3773
|
+
subItem.shortcut && /* @__PURE__ */ React27.createElement(CommandShortcut, null, subItem.shortcut)
|
3774
|
+
)));
|
3780
3775
|
} else if (item.type === "separator") {
|
3781
3776
|
return /* @__PURE__ */ React27.createElement(CommandSeparator, { key: index });
|
3782
3777
|
}
|
@@ -3784,14 +3779,18 @@ var FullCommand = ({ items, direction = "ltr", texts }) => {
|
|
3784
3779
|
}))
|
3785
3780
|
);
|
3786
3781
|
};
|
3787
|
-
var AppCommand = ({
|
3782
|
+
var AppCommand = ({
|
3783
|
+
commandProps,
|
3784
|
+
dialogProps,
|
3785
|
+
onActionClick
|
3786
|
+
}) => {
|
3788
3787
|
return /* @__PURE__ */ React27.createElement(import_react_dialog.Dialog, { ...dialogProps }, /* @__PURE__ */ React27.createElement(
|
3789
3788
|
DialogContent,
|
3790
3789
|
{
|
3791
3790
|
hideCloseButton: true,
|
3792
3791
|
className: "hawa-overflow-hidden !hawa-p-0 hawa-shadow-l "
|
3793
3792
|
},
|
3794
|
-
/* @__PURE__ */ React27.createElement(FullCommand, { ...commandProps })
|
3793
|
+
/* @__PURE__ */ React27.createElement(FullCommand, { ...commandProps, onActionClick })
|
3795
3794
|
));
|
3796
3795
|
};
|
3797
3796
|
CommandShortcut.displayName = "CommandShortcut";
|
@@ -3881,16 +3880,7 @@ var Combobox = React28.forwardRef(
|
|
3881
3880
|
},
|
3882
3881
|
/* @__PURE__ */ React28.createElement("path", { d: "m6 9 6 6 6-6" })
|
3883
3882
|
)
|
3884
|
-
), /* @__PURE__ */ React28.createElement(
|
3885
|
-
"p",
|
3886
|
-
{
|
3887
|
-
className: cn(
|
3888
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3889
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3890
|
-
)
|
3891
|
-
},
|
3892
|
-
props.helperText
|
3893
|
-
))), /* @__PURE__ */ React28.createElement(
|
3883
|
+
), /* @__PURE__ */ React28.createElement(HelperText, { helperText: props.helperText }))), /* @__PURE__ */ React28.createElement(
|
3894
3884
|
PopoverContent,
|
3895
3885
|
{
|
3896
3886
|
sideOffset: 0,
|
@@ -4014,16 +4004,7 @@ var Textarea = React29.forwardRef(
|
|
4014
4004
|
ref
|
4015
4005
|
}
|
4016
4006
|
),
|
4017
|
-
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(
|
4018
|
-
"p",
|
4019
|
-
{
|
4020
|
-
className: cn(
|
4021
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4022
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4023
|
-
)
|
4024
|
-
},
|
4025
|
-
props.helperText
|
4026
|
-
), showCount && countPosition === "bottom" && /* @__PURE__ */ React29.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
|
4007
|
+
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(HelperText, { helperText: props.helperText }), showCount && countPosition === "bottom" && /* @__PURE__ */ React29.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
|
4027
4008
|
);
|
4028
4009
|
}
|
4029
4010
|
);
|
@@ -4527,7 +4508,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4527
4508
|
"div",
|
4528
4509
|
{
|
4529
4510
|
className: cn(
|
4530
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
4511
|
+
"hawa-pointer-events-none hawa-absolute hawa-bg-background hawa-h-full hawa-w-[50px] hawa-z-10 hawa-start-0 hawa-mask-fade-right",
|
4531
4512
|
showLeftFade ? "hawa-block" : "hawa-hidden"
|
4532
4513
|
)
|
4533
4514
|
}
|
@@ -4536,7 +4517,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4536
4517
|
"div",
|
4537
4518
|
{
|
4538
4519
|
className: cn(
|
4539
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
4520
|
+
"hawa-pointer-events-none hawa-absolute hawa-bg-background hawa-mask-fade-left hawa-end-0 hawa-h-full hawa-w-[50px] hawa-z-10 ",
|
4540
4521
|
showRightFade ? "hawa-block" : "hawa-hidden"
|
4541
4522
|
)
|
4542
4523
|
}
|
@@ -4916,16 +4897,7 @@ var Select = ({
|
|
4916
4897
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4917
4898
|
}
|
4918
4899
|
),
|
4919
|
-
!props.hideHelperText && /* @__PURE__ */ import_react33.default.createElement(
|
4920
|
-
"p",
|
4921
|
-
{
|
4922
|
-
className: cn(
|
4923
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4924
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4925
|
-
)
|
4926
|
-
},
|
4927
|
-
props.helperText
|
4928
|
-
)
|
4900
|
+
!props.hideHelperText && /* @__PURE__ */ import_react33.default.createElement(HelperText, { helperText: props.helperText })
|
4929
4901
|
);
|
4930
4902
|
};
|
4931
4903
|
|
@@ -7066,112 +7038,162 @@ var PhoneInput = ({
|
|
7066
7038
|
),
|
7067
7039
|
...inputProps
|
7068
7040
|
}
|
7069
|
-
))), /* @__PURE__ */ import_react37.default.createElement(
|
7070
|
-
"p",
|
7071
|
-
{
|
7072
|
-
className: cn(
|
7073
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
7074
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7075
|
-
)
|
7076
|
-
},
|
7077
|
-
props.helperText
|
7078
|
-
));
|
7041
|
+
))), /* @__PURE__ */ import_react37.default.createElement(HelperText, { helperText: props.helperText }));
|
7079
7042
|
};
|
7080
7043
|
|
7081
7044
|
// elements/pinInput/PinInput.tsx
|
7082
|
-
var
|
7083
|
-
var
|
7084
|
-
|
7085
|
-
|
7086
|
-
|
7087
|
-
|
7088
|
-
|
7089
|
-
|
7090
|
-
|
7091
|
-
|
7092
|
-
|
7093
|
-
|
7094
|
-
|
7095
|
-
|
7096
|
-
|
7097
|
-
|
7098
|
-
|
7099
|
-
|
7100
|
-
|
7101
|
-
|
7102
|
-
|
7103
|
-
|
7104
|
-
|
7105
|
-
|
7106
|
-
|
7107
|
-
|
7108
|
-
|
7109
|
-
|
7110
|
-
|
7111
|
-
|
7112
|
-
|
7113
|
-
|
7114
|
-
|
7115
|
-
|
7116
|
-
|
7117
|
-
|
7118
|
-
|
7119
|
-
|
7120
|
-
|
7121
|
-
|
7122
|
-
|
7123
|
-
|
7124
|
-
}
|
7125
|
-
};
|
7126
|
-
return /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react38.default.createElement(
|
7127
|
-
"div",
|
7128
|
-
{
|
7129
|
-
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
7130
|
-
dir: "ltr"
|
7131
|
-
},
|
7132
|
-
pin.map((value, index) => /* @__PURE__ */ import_react38.default.createElement(
|
7133
|
-
"input",
|
7045
|
+
var React51 = __toESM(require("react"));
|
7046
|
+
var import_input_otp = require("input-otp");
|
7047
|
+
|
7048
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7049
|
+
var import_react39 = require("react");
|
7050
|
+
|
7051
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7052
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7053
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7054
|
+
return Boolean(className) && array.indexOf(className) === index;
|
7055
|
+
}).join(" ");
|
7056
|
+
|
7057
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7058
|
+
var import_react38 = require("react");
|
7059
|
+
|
7060
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7061
|
+
var defaultAttributes = {
|
7062
|
+
xmlns: "http://www.w3.org/2000/svg",
|
7063
|
+
width: 24,
|
7064
|
+
height: 24,
|
7065
|
+
viewBox: "0 0 24 24",
|
7066
|
+
fill: "none",
|
7067
|
+
stroke: "currentColor",
|
7068
|
+
strokeWidth: 2,
|
7069
|
+
strokeLinecap: "round",
|
7070
|
+
strokeLinejoin: "round"
|
7071
|
+
};
|
7072
|
+
|
7073
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7074
|
+
var Icon = (0, import_react38.forwardRef)(
|
7075
|
+
({
|
7076
|
+
color = "currentColor",
|
7077
|
+
size = 24,
|
7078
|
+
strokeWidth = 2,
|
7079
|
+
absoluteStrokeWidth,
|
7080
|
+
className = "",
|
7081
|
+
children,
|
7082
|
+
iconNode,
|
7083
|
+
...rest
|
7084
|
+
}, ref) => {
|
7085
|
+
return (0, import_react38.createElement)(
|
7086
|
+
"svg",
|
7134
7087
|
{
|
7135
|
-
|
7136
|
-
|
7137
|
-
|
7138
|
-
|
7139
|
-
|
7140
|
-
|
7141
|
-
|
7142
|
-
|
7143
|
-
|
7144
|
-
|
7145
|
-
),
|
7146
|
-
|
7147
|
-
|
7148
|
-
|
7149
|
-
|
7150
|
-
|
7151
|
-
|
7152
|
-
|
7153
|
-
|
7088
|
+
ref,
|
7089
|
+
...defaultAttributes,
|
7090
|
+
width: size,
|
7091
|
+
height: size,
|
7092
|
+
stroke: color,
|
7093
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
7094
|
+
className: mergeClasses("lucide", className),
|
7095
|
+
...rest
|
7096
|
+
},
|
7097
|
+
[
|
7098
|
+
...iconNode.map(([tag, attrs]) => (0, import_react38.createElement)(tag, attrs)),
|
7099
|
+
...Array.isArray(children) ? children : [children]
|
7100
|
+
]
|
7101
|
+
);
|
7102
|
+
}
|
7103
|
+
);
|
7104
|
+
|
7105
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7106
|
+
var createLucideIcon = (iconName, iconNode) => {
|
7107
|
+
const Component = (0, import_react39.forwardRef)(
|
7108
|
+
({ className, ...props }, ref) => (0, import_react39.createElement)(Icon, {
|
7109
|
+
ref,
|
7110
|
+
iconNode,
|
7111
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
7112
|
+
...props
|
7113
|
+
})
|
7114
|
+
);
|
7115
|
+
Component.displayName = `${iconName}`;
|
7116
|
+
return Component;
|
7117
|
+
};
|
7118
|
+
|
7119
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7120
|
+
var Dot = createLucideIcon("Dot", [
|
7121
|
+
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7122
|
+
]);
|
7123
|
+
|
7124
|
+
// elements/pinInput/PinInput.tsx
|
7125
|
+
var PinInputRoot = React51.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7126
|
+
import_input_otp.OTPInput,
|
7127
|
+
{
|
7128
|
+
ref,
|
7129
|
+
containerClassName: cn(
|
7130
|
+
"hawa-flex hawa-items-center hawa-gap-2 has-[:disabled]:hawa-opacity-50",
|
7131
|
+
containerClassName
|
7132
|
+
),
|
7133
|
+
className: cn("disabled:hawa-cursor-not-allowed", className),
|
7134
|
+
...props
|
7135
|
+
}
|
7136
|
+
));
|
7137
|
+
PinInputRoot.displayName = "PinInputRoot";
|
7138
|
+
var PinInputGroup = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7139
|
+
"div",
|
7140
|
+
{
|
7141
|
+
ref,
|
7142
|
+
className: cn("hawa-flex hawa-items-center", className),
|
7143
|
+
...props
|
7144
|
+
}
|
7145
|
+
));
|
7146
|
+
PinInputGroup.displayName = "PinInputGroup";
|
7147
|
+
var PinInputSlot = React51.forwardRef(({ index, className, ...props }, ref) => {
|
7148
|
+
const pinInputContext = React51.useContext(import_input_otp.OTPInputContext);
|
7149
|
+
const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];
|
7150
|
+
return /* @__PURE__ */ React51.createElement(
|
7151
|
+
"div",
|
7154
7152
|
{
|
7153
|
+
ref,
|
7155
7154
|
className: cn(
|
7156
|
-
"hawa-
|
7157
|
-
|
7158
|
-
|
7155
|
+
"hawa-border-input hawa-relative hawa-flex hawa-h-10 hawa-w-10 hawa-items-center hawa-justify-center hawa-border-y hawa-border-r hawa-text-sm hawa-transition-all first:hawa-rounded-l-md first:hawa-border-l last:hawa-rounded-r-md",
|
7156
|
+
isActive && "hawa-ring-ring hawa-ring-offset-background hawa-z-10 hawa-ring-2",
|
7157
|
+
className
|
7158
|
+
),
|
7159
|
+
...props
|
7159
7160
|
},
|
7160
|
-
|
7161
|
-
|
7161
|
+
char,
|
7162
|
+
hasFakeCaret && /* @__PURE__ */ React51.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-inset-0 hawa-flex hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React51.createElement("div", { className: "hawa-animate-caret-blink hawa-bg-foreground hawa-h-4 hawa-w-px hawa-duration-1000" }))
|
7163
|
+
);
|
7164
|
+
});
|
7165
|
+
PinInputSlot.displayName = "PinInputSlot";
|
7166
|
+
var PinInputSeperator = React51.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React51.createElement("div", { ref, role: "separator", ...props }, /* @__PURE__ */ React51.createElement(Dot, null)));
|
7167
|
+
PinInputSeperator.displayName = "PinInputSeperator";
|
7168
|
+
var PinInput = ({
|
7169
|
+
separatorPosition = 0,
|
7170
|
+
...props
|
7171
|
+
}) => {
|
7172
|
+
const maxLength = props.maxLength || 6;
|
7173
|
+
const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);
|
7174
|
+
const firstGroupLength = clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;
|
7175
|
+
const secondGroupLength = maxLength - firstGroupLength;
|
7176
|
+
return /* @__PURE__ */ React51.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React51.createElement(PinInputRoot, { ...props }, firstGroupLength > 0 && /* @__PURE__ */ React51.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(firstGroupLength)].map((_, index) => /* @__PURE__ */ React51.createElement(PinInputSlot, { key: index, index, className: "hawa-w-full" }))), separatorPosition > 0 && separatorPosition < props.maxLength && /* @__PURE__ */ React51.createElement(PinInputSeperator, null), secondGroupLength > 0 && /* @__PURE__ */ React51.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(secondGroupLength)].map((_, index) => /* @__PURE__ */ React51.createElement(
|
7177
|
+
PinInputSlot,
|
7178
|
+
{
|
7179
|
+
key: index + firstGroupLength,
|
7180
|
+
index: index + firstGroupLength,
|
7181
|
+
className: "hawa-w-full"
|
7182
|
+
}
|
7183
|
+
)))), /* @__PURE__ */ React51.createElement(HelperText, { helperText: props.helperText }));
|
7162
7184
|
};
|
7163
7185
|
|
7164
7186
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
7165
|
-
var
|
7187
|
+
var import_react40 = __toESM(require("react"));
|
7166
7188
|
var StopPropagationWrapper = (props) => {
|
7167
7189
|
const handleClick = (e) => {
|
7168
7190
|
e.stopPropagation();
|
7169
7191
|
};
|
7170
|
-
return /* @__PURE__ */
|
7192
|
+
return /* @__PURE__ */ import_react40.default.createElement("div", { onClick: handleClick }, props.children);
|
7171
7193
|
};
|
7172
7194
|
|
7173
7195
|
// elements/colorPicker/ColorPicker.tsx
|
7174
|
-
var
|
7196
|
+
var import_react41 = __toESM(require("react"));
|
7175
7197
|
var ColorPicker = ({
|
7176
7198
|
containerProps,
|
7177
7199
|
colorPickerProps,
|
@@ -7182,8 +7204,8 @@ var ColorPicker = ({
|
|
7182
7204
|
preview = false,
|
7183
7205
|
...props
|
7184
7206
|
}) => {
|
7185
|
-
const [selectedColor, setSelectedColor] = (0,
|
7186
|
-
(0,
|
7207
|
+
const [selectedColor, setSelectedColor] = (0, import_react41.useState)(props.color);
|
7208
|
+
(0, import_react41.useEffect)(() => {
|
7187
7209
|
if (selectedColor && selectedColor[0] !== "#") {
|
7188
7210
|
setSelectedColor(`#${selectedColor}`);
|
7189
7211
|
}
|
@@ -7200,13 +7222,13 @@ var ColorPicker = ({
|
|
7200
7222
|
props.handleChange(e);
|
7201
7223
|
}
|
7202
7224
|
};
|
7203
|
-
return /* @__PURE__ */
|
7225
|
+
return /* @__PURE__ */ import_react41.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react41.default.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ import_react41.default.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ import_react41.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react41.default.createElement(
|
7204
7226
|
"div",
|
7205
7227
|
{
|
7206
7228
|
style: { height: 40, backgroundColor: selectedColor },
|
7207
7229
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
7208
7230
|
},
|
7209
|
-
/* @__PURE__ */
|
7231
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7210
7232
|
"input",
|
7211
7233
|
{
|
7212
7234
|
disabled: preview,
|
@@ -7225,7 +7247,7 @@ var ColorPicker = ({
|
|
7225
7247
|
...colorPickerProps
|
7226
7248
|
}
|
7227
7249
|
)
|
7228
|
-
), /* @__PURE__ */
|
7250
|
+
), /* @__PURE__ */ import_react41.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_react41.default.createElement(
|
7229
7251
|
"input",
|
7230
7252
|
{
|
7231
7253
|
disabled: preview,
|
@@ -7244,20 +7266,11 @@ var ColorPicker = ({
|
|
7244
7266
|
},
|
7245
7267
|
...textInputProps
|
7246
7268
|
}
|
7247
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
7248
|
-
"p",
|
7249
|
-
{
|
7250
|
-
className: cn(
|
7251
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
7252
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7253
|
-
)
|
7254
|
-
},
|
7255
|
-
props.helperText
|
7256
|
-
));
|
7269
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react41.default.createElement(HelperText, { helperText: props.helperText }));
|
7257
7270
|
};
|
7258
7271
|
|
7259
7272
|
// elements/progressCircle/ProgressCircle.tsx
|
7260
|
-
var
|
7273
|
+
var import_react42 = __toESM(require("react"));
|
7261
7274
|
var size2config = {
|
7262
7275
|
xs: { radius: 15, strokeWidth: 3 },
|
7263
7276
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -7274,7 +7287,7 @@ function getLimitedValue(input) {
|
|
7274
7287
|
return input;
|
7275
7288
|
}
|
7276
7289
|
}
|
7277
|
-
var ProgressCircle =
|
7290
|
+
var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
7278
7291
|
const {
|
7279
7292
|
value: inputValue,
|
7280
7293
|
size = "md",
|
@@ -7294,7 +7307,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7294
7307
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7295
7308
|
const strokeDashoffset = value / 100 * circumference;
|
7296
7309
|
const offset = circumference - strokeDashoffset;
|
7297
|
-
return /* @__PURE__ */
|
7310
|
+
return /* @__PURE__ */ import_react42.default.createElement(import_react42.default.Fragment, null, /* @__PURE__ */ import_react42.default.createElement(
|
7298
7311
|
"div",
|
7299
7312
|
{
|
7300
7313
|
ref,
|
@@ -7303,7 +7316,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7303
7316
|
className
|
7304
7317
|
)
|
7305
7318
|
},
|
7306
|
-
/* @__PURE__ */
|
7319
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7307
7320
|
"svg",
|
7308
7321
|
{
|
7309
7322
|
width: radius * 2,
|
@@ -7311,7 +7324,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7311
7324
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7312
7325
|
className: "hawa-rotate-180 hawa-transform"
|
7313
7326
|
},
|
7314
|
-
/* @__PURE__ */
|
7327
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7315
7328
|
"circle",
|
7316
7329
|
{
|
7317
7330
|
r: normalizedRadius,
|
@@ -7327,7 +7340,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7327
7340
|
)
|
7328
7341
|
}
|
7329
7342
|
),
|
7330
|
-
value > 0 ? /* @__PURE__ */
|
7343
|
+
value > 0 ? /* @__PURE__ */ import_react42.default.createElement(
|
7331
7344
|
"circle",
|
7332
7345
|
{
|
7333
7346
|
r: normalizedRadius,
|
@@ -7347,24 +7360,24 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7347
7360
|
}
|
7348
7361
|
) : null
|
7349
7362
|
),
|
7350
|
-
/* @__PURE__ */
|
7363
|
+
/* @__PURE__ */ import_react42.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7351
7364
|
));
|
7352
7365
|
});
|
7353
7366
|
ProgressCircle.displayName = "ProgressCircle";
|
7354
7367
|
|
7355
7368
|
// elements/pagination/Pagination.tsx
|
7356
|
-
var
|
7369
|
+
var import_react43 = __toESM(require("react"));
|
7357
7370
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7358
7371
|
var Pagination = ({
|
7359
7372
|
direction,
|
7360
7373
|
totalPages,
|
7361
7374
|
currentPage
|
7362
7375
|
}) => {
|
7363
|
-
const [page, setPage] =
|
7376
|
+
const [page, setPage] = import_react43.default.useState(currentPage || 0);
|
7364
7377
|
const handlePageChange = (page2) => {
|
7365
7378
|
setPage(page2);
|
7366
7379
|
};
|
7367
|
-
return /* @__PURE__ */
|
7380
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7368
7381
|
import_react_headless_pagination.Pagination,
|
7369
7382
|
{
|
7370
7383
|
totalPages,
|
@@ -7376,10 +7389,10 @@ var Pagination = ({
|
|
7376
7389
|
truncableText: "...",
|
7377
7390
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7378
7391
|
},
|
7379
|
-
/* @__PURE__ */
|
7392
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7380
7393
|
import_react_headless_pagination.Pagination.PrevButton,
|
7381
7394
|
{
|
7382
|
-
as: /* @__PURE__ */
|
7395
|
+
as: /* @__PURE__ */ import_react43.default.createElement(
|
7383
7396
|
"button",
|
7384
7397
|
{
|
7385
7398
|
"aria-label": "Previous Table Page",
|
@@ -7389,7 +7402,7 @@ var Pagination = ({
|
|
7389
7402
|
),
|
7390
7403
|
style: { minWidth: 36 }
|
7391
7404
|
},
|
7392
|
-
/* @__PURE__ */
|
7405
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7393
7406
|
"svg",
|
7394
7407
|
{
|
7395
7408
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7402,7 +7415,7 @@ var Pagination = ({
|
|
7402
7415
|
strokeLinecap: "round",
|
7403
7416
|
strokeLinejoin: "round"
|
7404
7417
|
},
|
7405
|
-
/* @__PURE__ */
|
7418
|
+
/* @__PURE__ */ import_react43.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7406
7419
|
)
|
7407
7420
|
),
|
7408
7421
|
className: cn(
|
@@ -7415,17 +7428,17 @@ var Pagination = ({
|
|
7415
7428
|
},
|
7416
7429
|
"Previous"
|
7417
7430
|
),
|
7418
|
-
/* @__PURE__ */
|
7431
|
+
/* @__PURE__ */ import_react43.default.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ import_react43.default.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ import_react43.default.createElement(
|
7419
7432
|
import_react_headless_pagination.Pagination.PageButton,
|
7420
7433
|
{
|
7421
7434
|
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",
|
7422
7435
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7423
7436
|
}
|
7424
7437
|
))),
|
7425
|
-
/* @__PURE__ */
|
7438
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7426
7439
|
import_react_headless_pagination.Pagination.NextButton,
|
7427
7440
|
{
|
7428
|
-
as: /* @__PURE__ */
|
7441
|
+
as: /* @__PURE__ */ import_react43.default.createElement(
|
7429
7442
|
"button",
|
7430
7443
|
{
|
7431
7444
|
"aria-label": "Previous Table Page",
|
@@ -7435,7 +7448,7 @@ var Pagination = ({
|
|
7435
7448
|
),
|
7436
7449
|
style: { minWidth: 36 }
|
7437
7450
|
},
|
7438
|
-
/* @__PURE__ */
|
7451
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7439
7452
|
"svg",
|
7440
7453
|
{
|
7441
7454
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7448,7 +7461,7 @@ var Pagination = ({
|
|
7448
7461
|
strokeLinecap: "round",
|
7449
7462
|
strokeLinejoin: "round"
|
7450
7463
|
},
|
7451
|
-
/* @__PURE__ */
|
7464
|
+
/* @__PURE__ */ import_react43.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7452
7465
|
)
|
7453
7466
|
),
|
7454
7467
|
className: cn(
|
@@ -7465,14 +7478,14 @@ var Pagination = ({
|
|
7465
7478
|
};
|
7466
7479
|
|
7467
7480
|
// elements/passwordInput/PasswordInput.tsx
|
7468
|
-
var
|
7481
|
+
var import_react47 = __toESM(require("react"));
|
7469
7482
|
|
7470
7483
|
// icons/Emojis.tsx
|
7471
|
-
var
|
7484
|
+
var import_react44 = __toESM(require("react"));
|
7472
7485
|
|
7473
7486
|
// icons/InputIcons.tsx
|
7474
|
-
var
|
7475
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7487
|
+
var import_react45 = __toESM(require("react"));
|
7488
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react45.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react45.default.createElement(
|
7476
7489
|
"svg",
|
7477
7490
|
{
|
7478
7491
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7483,10 +7496,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react44.default.createElement("d
|
|
7483
7496
|
strokeLinecap: "round",
|
7484
7497
|
strokeLinejoin: "round"
|
7485
7498
|
},
|
7486
|
-
/* @__PURE__ */
|
7487
|
-
/* @__PURE__ */
|
7499
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7500
|
+
/* @__PURE__ */ import_react45.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7488
7501
|
));
|
7489
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7502
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react45.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react45.default.createElement(
|
7490
7503
|
"svg",
|
7491
7504
|
{
|
7492
7505
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7497,20 +7510,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react44.default.createElem
|
|
7497
7510
|
strokeLinecap: "round",
|
7498
7511
|
strokeLinejoin: "round"
|
7499
7512
|
},
|
7500
|
-
/* @__PURE__ */
|
7501
|
-
/* @__PURE__ */
|
7502
|
-
/* @__PURE__ */
|
7503
|
-
/* @__PURE__ */
|
7513
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7514
|
+
/* @__PURE__ */ import_react45.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" }),
|
7515
|
+
/* @__PURE__ */ import_react45.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" }),
|
7516
|
+
/* @__PURE__ */ import_react45.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7504
7517
|
));
|
7505
7518
|
|
7506
7519
|
// icons/CommonIcons.tsx
|
7507
|
-
var
|
7520
|
+
var import_react46 = __toESM(require("react"));
|
7508
7521
|
var CheckMark = ({ size = "default", className }) => {
|
7509
7522
|
let sizeStyles2 = {
|
7510
7523
|
default: "hawa-h-5 hawa-w-5",
|
7511
7524
|
sm: "hawa-h-3 hawa-w-3"
|
7512
7525
|
};
|
7513
|
-
return /* @__PURE__ */
|
7526
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
7514
7527
|
"svg",
|
7515
7528
|
{
|
7516
7529
|
className: cn(sizeStyles2[size], className),
|
@@ -7518,7 +7531,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7518
7531
|
fill: "currentColor",
|
7519
7532
|
viewBox: "0 0 20 20"
|
7520
7533
|
},
|
7521
|
-
/* @__PURE__ */
|
7534
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7522
7535
|
"path",
|
7523
7536
|
{
|
7524
7537
|
fillRule: "evenodd",
|
@@ -7533,7 +7546,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7533
7546
|
default: "hawa-h-5 hawa-w-5",
|
7534
7547
|
sm: "hawa-h-3 hawa-w-3"
|
7535
7548
|
};
|
7536
|
-
return /* @__PURE__ */
|
7549
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
7537
7550
|
"svg",
|
7538
7551
|
{
|
7539
7552
|
className: cn(sizeStyles2[size], className),
|
@@ -7541,7 +7554,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7541
7554
|
fill: "currentColor",
|
7542
7555
|
viewBox: "0 0 20 20"
|
7543
7556
|
},
|
7544
|
-
/* @__PURE__ */
|
7557
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7545
7558
|
"path",
|
7546
7559
|
{
|
7547
7560
|
fillRule: "evenodd",
|
@@ -7579,7 +7592,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7579
7592
|
strong: "80%",
|
7580
7593
|
"very-strong": "100%"
|
7581
7594
|
}[currentStrengthLevel];
|
7582
|
-
return /* @__PURE__ */
|
7595
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ import_react47.default.createElement(
|
7583
7596
|
"div",
|
7584
7597
|
{
|
7585
7598
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7591,16 +7604,16 @@ var PasswordInput = ({
|
|
7591
7604
|
hidePopover,
|
7592
7605
|
...props
|
7593
7606
|
}) => {
|
7594
|
-
const [inputValue, setInputValue] = (0,
|
7595
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
7596
|
-
const [currentStr, setCurrentStr] = (0,
|
7597
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
7598
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
7599
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
7600
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
7601
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
7602
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
7603
|
-
(0,
|
7607
|
+
const [inputValue, setInputValue] = (0, import_react47.useState)("");
|
7608
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react47.useState)(false);
|
7609
|
+
const [currentStr, setCurrentStr] = (0, import_react47.useState)(0);
|
7610
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react47.useState)(false);
|
7611
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react47.useState)(false);
|
7612
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react47.useState)(false);
|
7613
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react47.useState)(false);
|
7614
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react47.useState)(false);
|
7615
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react47.useState)(false);
|
7616
|
+
(0, import_react47.useEffect)(() => {
|
7604
7617
|
const calculateStrength = () => {
|
7605
7618
|
let strengthScore = 0;
|
7606
7619
|
if (lengthCriteriaMet)
|
@@ -7639,7 +7652,7 @@ var PasswordInput = ({
|
|
7639
7652
|
setIsInputFocused(false);
|
7640
7653
|
};
|
7641
7654
|
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";
|
7642
|
-
return /* @__PURE__ */
|
7655
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", null, /* @__PURE__ */ import_react47.default.createElement(
|
7643
7656
|
Popover,
|
7644
7657
|
{
|
7645
7658
|
width: "trigger",
|
@@ -7648,7 +7661,7 @@ var PasswordInput = ({
|
|
7648
7661
|
onOpenChange: setIsInputFocused,
|
7649
7662
|
triggerProps: { asChild: true },
|
7650
7663
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7651
|
-
trigger: /* @__PURE__ */
|
7664
|
+
trigger: /* @__PURE__ */ import_react47.default.createElement(
|
7652
7665
|
"div",
|
7653
7666
|
{
|
7654
7667
|
onClick: (e) => {
|
@@ -7658,7 +7671,7 @@ var PasswordInput = ({
|
|
7658
7671
|
}
|
7659
7672
|
}
|
7660
7673
|
},
|
7661
|
-
/* @__PURE__ */
|
7674
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
7662
7675
|
Input,
|
7663
7676
|
{
|
7664
7677
|
width: "full",
|
@@ -7668,21 +7681,21 @@ var PasswordInput = ({
|
|
7668
7681
|
onFocus: handleInputFocus,
|
7669
7682
|
onBlur: handleInputBlur,
|
7670
7683
|
type: passwordVisible ? "text" : "password",
|
7671
|
-
endIcon: /* @__PURE__ */
|
7684
|
+
endIcon: /* @__PURE__ */ import_react47.default.createElement(
|
7672
7685
|
"div",
|
7673
7686
|
{
|
7674
7687
|
className: "hawa-cursor-pointer",
|
7675
7688
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7676
7689
|
},
|
7677
|
-
passwordVisible ? /* @__PURE__ */
|
7690
|
+
passwordVisible ? /* @__PURE__ */ import_react47.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react47.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7678
7691
|
" "
|
7679
7692
|
)
|
7680
7693
|
}
|
7681
7694
|
)
|
7682
7695
|
)
|
7683
7696
|
},
|
7684
|
-
/* @__PURE__ */
|
7685
|
-
), /* @__PURE__ */
|
7697
|
+
/* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react47.default.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react47.default.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ import_react47.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react47.default.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ import_react47.default.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ import_react47.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react47.default.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ import_react47.default.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ import_react47.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react47.default.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ import_react47.default.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ import_react47.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react47.default.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ import_react47.default.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ import_react47.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react47.default.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7698
|
+
), /* @__PURE__ */ import_react47.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7686
7699
|
};
|
7687
7700
|
|
7688
7701
|
// elements/slider/Slider.tsx
|
@@ -7797,12 +7810,12 @@ var Separator2 = ({
|
|
7797
7810
|
);
|
7798
7811
|
|
7799
7812
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7800
|
-
var
|
7813
|
+
var import_react48 = __toESM(require("react"));
|
7801
7814
|
var ScrollIndicator = ({
|
7802
7815
|
anchor,
|
7803
7816
|
inContainer = false
|
7804
7817
|
}) => {
|
7805
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7818
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react48.useState)(0);
|
7806
7819
|
const onScroll = () => {
|
7807
7820
|
const scrollElement = anchor.current;
|
7808
7821
|
if (scrollElement) {
|
@@ -7813,7 +7826,7 @@ var ScrollIndicator = ({
|
|
7813
7826
|
setScrollPercentage(percentageScrolled);
|
7814
7827
|
}
|
7815
7828
|
};
|
7816
|
-
(0,
|
7829
|
+
(0, import_react48.useEffect)(() => {
|
7817
7830
|
if (!anchor.current)
|
7818
7831
|
return;
|
7819
7832
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7822,7 +7835,7 @@ var ScrollIndicator = ({
|
|
7822
7835
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7823
7836
|
};
|
7824
7837
|
}, [anchor]);
|
7825
|
-
return /* @__PURE__ */
|
7838
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
7826
7839
|
"div",
|
7827
7840
|
{
|
7828
7841
|
style: {
|
@@ -7838,11 +7851,11 @@ var ScrollIndicator = ({
|
|
7838
7851
|
};
|
7839
7852
|
|
7840
7853
|
// elements/codeBlock/CodeBlock.tsx
|
7841
|
-
var
|
7854
|
+
var import_react49 = __toESM(require("react"));
|
7842
7855
|
var import_prism_react_renderer = require("prism-react-renderer");
|
7843
7856
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7844
7857
|
require("prismjs/components/prism-bash");
|
7845
|
-
var CopyIcon = () => /* @__PURE__ */
|
7858
|
+
var CopyIcon = () => /* @__PURE__ */ import_react49.default.createElement(
|
7846
7859
|
"svg",
|
7847
7860
|
{
|
7848
7861
|
"aria-label": "Copy",
|
@@ -7855,8 +7868,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react48.default.createElement(
|
|
7855
7868
|
height: "1em",
|
7856
7869
|
width: "1em"
|
7857
7870
|
},
|
7858
|
-
/* @__PURE__ */
|
7859
|
-
/* @__PURE__ */
|
7871
|
+
/* @__PURE__ */ import_react49.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7872
|
+
/* @__PURE__ */ import_react49.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" })
|
7860
7873
|
);
|
7861
7874
|
var CodeBlock = ({
|
7862
7875
|
tabs,
|
@@ -7870,7 +7883,7 @@ var CodeBlock = ({
|
|
7870
7883
|
...props
|
7871
7884
|
}) => {
|
7872
7885
|
const clipboard = useClipboard();
|
7873
|
-
const [selectedTab, setSelectedTab] = (0,
|
7886
|
+
const [selectedTab, setSelectedTab] = (0, import_react49.useState)(0);
|
7874
7887
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
7875
7888
|
let widthStyles = {
|
7876
7889
|
full: "hawa-w-full",
|
@@ -7878,7 +7891,7 @@ var CodeBlock = ({
|
|
7878
7891
|
sm: "hawa-w-full hawa-max-w-sm",
|
7879
7892
|
xs: "hawa-w-full hawa-max-w-xs"
|
7880
7893
|
};
|
7881
|
-
return /* @__PURE__ */
|
7894
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
7882
7895
|
"div",
|
7883
7896
|
{
|
7884
7897
|
className: cn(
|
@@ -7887,7 +7900,7 @@ var CodeBlock = ({
|
|
7887
7900
|
classNames == null ? void 0 : classNames.root
|
7888
7901
|
)
|
7889
7902
|
},
|
7890
|
-
fileName && /* @__PURE__ */
|
7903
|
+
fileName && /* @__PURE__ */ import_react49.default.createElement(
|
7891
7904
|
"div",
|
7892
7905
|
{
|
7893
7906
|
className: cn(
|
@@ -7896,7 +7909,7 @@ var CodeBlock = ({
|
|
7896
7909
|
classNames == null ? void 0 : classNames.fileName
|
7897
7910
|
)
|
7898
7911
|
},
|
7899
|
-
/* @__PURE__ */
|
7912
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7900
7913
|
"div",
|
7901
7914
|
{
|
7902
7915
|
className: cn(
|
@@ -7906,7 +7919,7 @@ var CodeBlock = ({
|
|
7906
7919
|
fileName
|
7907
7920
|
)
|
7908
7921
|
),
|
7909
|
-
tabs && /* @__PURE__ */
|
7922
|
+
tabs && /* @__PURE__ */ import_react49.default.createElement(
|
7910
7923
|
"div",
|
7911
7924
|
{
|
7912
7925
|
className: cn(
|
@@ -7915,7 +7928,7 @@ var CodeBlock = ({
|
|
7915
7928
|
classNames == null ? void 0 : classNames.tabs
|
7916
7929
|
)
|
7917
7930
|
},
|
7918
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7931
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react49.default.createElement(
|
7919
7932
|
"div",
|
7920
7933
|
{
|
7921
7934
|
key: i,
|
@@ -7924,7 +7937,7 @@ var CodeBlock = ({
|
|
7924
7937
|
classNames == null ? void 0 : classNames.tab
|
7925
7938
|
)
|
7926
7939
|
},
|
7927
|
-
/* @__PURE__ */
|
7940
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7928
7941
|
"div",
|
7929
7942
|
{
|
7930
7943
|
onClick: () => setSelectedTab(i),
|
@@ -7936,7 +7949,7 @@ var CodeBlock = ({
|
|
7936
7949
|
)
|
7937
7950
|
))
|
7938
7951
|
),
|
7939
|
-
/* @__PURE__ */
|
7952
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7940
7953
|
"div",
|
7941
7954
|
{
|
7942
7955
|
className: cn(
|
@@ -7946,22 +7959,22 @@ var CodeBlock = ({
|
|
7946
7959
|
"hawa-overflow-y-auto"
|
7947
7960
|
)
|
7948
7961
|
},
|
7949
|
-
/* @__PURE__ */
|
7962
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7950
7963
|
"div",
|
7951
7964
|
{
|
7952
7965
|
className: cn(
|
7953
7966
|
"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"
|
7954
7967
|
)
|
7955
7968
|
},
|
7956
|
-
/* @__PURE__ */
|
7969
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7957
7970
|
Tooltip,
|
7958
7971
|
{
|
7959
7972
|
open: clipboard.copied,
|
7960
7973
|
side: "left",
|
7961
|
-
content: /* @__PURE__ */
|
7974
|
+
content: /* @__PURE__ */ import_react49.default.createElement("div", null, "Copied!"),
|
7962
7975
|
triggerProps: { asChild: true }
|
7963
7976
|
},
|
7964
|
-
/* @__PURE__ */
|
7977
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7965
7978
|
Button,
|
7966
7979
|
{
|
7967
7980
|
size: "smallIcon",
|
@@ -7969,18 +7982,18 @@ var CodeBlock = ({
|
|
7969
7982
|
variant: "outline",
|
7970
7983
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7971
7984
|
},
|
7972
|
-
/* @__PURE__ */
|
7985
|
+
/* @__PURE__ */ import_react49.default.createElement(CopyIcon, null)
|
7973
7986
|
)
|
7974
7987
|
)
|
7975
7988
|
),
|
7976
|
-
/* @__PURE__ */
|
7989
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7977
7990
|
import_prism_react_renderer.Highlight,
|
7978
7991
|
{
|
7979
7992
|
theme,
|
7980
7993
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7981
7994
|
language
|
7982
7995
|
},
|
7983
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
7996
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react49.default.createElement(
|
7984
7997
|
"pre",
|
7985
7998
|
{
|
7986
7999
|
className: cn(
|
@@ -7990,7 +8003,7 @@ var CodeBlock = ({
|
|
7990
8003
|
wrapText && "hawa-text-wrap"
|
7991
8004
|
)
|
7992
8005
|
},
|
7993
|
-
tokens.map((line, i) => /* @__PURE__ */
|
8006
|
+
tokens.map((line, i) => /* @__PURE__ */ import_react49.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react49.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react49.default.createElement("span", { key, ...getTokenProps({ token }) }))))
|
7994
8007
|
)
|
7995
8008
|
)
|
7996
8009
|
)
|
@@ -7998,7 +8011,7 @@ var CodeBlock = ({
|
|
7998
8011
|
};
|
7999
8012
|
|
8000
8013
|
// elements/carousel/Carousel.tsx
|
8001
|
-
var
|
8014
|
+
var import_react50 = __toESM(require("react"));
|
8002
8015
|
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
8003
8016
|
var Carousel = ({
|
8004
8017
|
items,
|
@@ -8014,8 +8027,8 @@ var Carousel = ({
|
|
8014
8027
|
direction,
|
8015
8028
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
8016
8029
|
});
|
8017
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
8018
|
-
(0,
|
8030
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react50.useState)(0);
|
8031
|
+
(0, import_react50.useEffect)(() => {
|
8019
8032
|
function selectHandler() {
|
8020
8033
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
8021
8034
|
setSelectedIndex(index || 0);
|
@@ -8025,7 +8038,7 @@ var Carousel = ({
|
|
8025
8038
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
8026
8039
|
};
|
8027
8040
|
}, [emblaApi]);
|
8028
|
-
(0,
|
8041
|
+
(0, import_react50.useEffect)(() => {
|
8029
8042
|
let autoplayTimer;
|
8030
8043
|
if (autoplay && emblaApi) {
|
8031
8044
|
autoplayTimer = setInterval(() => {
|
@@ -8037,17 +8050,17 @@ var Carousel = ({
|
|
8037
8050
|
clearInterval(autoplayTimer);
|
8038
8051
|
};
|
8039
8052
|
}, [emblaApi, autoplay, autoplayInterval]);
|
8040
|
-
const length =
|
8053
|
+
const length = import_react50.default.Children.count(items);
|
8041
8054
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
8042
8055
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
8043
|
-
return /* @__PURE__ */
|
8056
|
+
return /* @__PURE__ */ import_react50.default.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ import_react50.default.createElement(
|
8044
8057
|
"div",
|
8045
8058
|
{
|
8046
8059
|
key: i,
|
8047
8060
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
8048
8061
|
},
|
8049
8062
|
item
|
8050
|
-
))))), /* @__PURE__ */
|
8063
|
+
))))), /* @__PURE__ */ import_react50.default.createElement(
|
8051
8064
|
Dots,
|
8052
8065
|
{
|
8053
8066
|
direction,
|
@@ -8055,7 +8068,7 @@ var Carousel = ({
|
|
8055
8068
|
selectedIndex,
|
8056
8069
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
8057
8070
|
}
|
8058
|
-
), showArrows && /* @__PURE__ */
|
8071
|
+
), showArrows && /* @__PURE__ */ import_react50.default.createElement(
|
8059
8072
|
CarouselControls,
|
8060
8073
|
{
|
8061
8074
|
canScrollNext,
|
@@ -8072,7 +8085,7 @@ var Dots = ({
|
|
8072
8085
|
direction
|
8073
8086
|
}) => {
|
8074
8087
|
const arr = new Array(itemsLength).fill(0);
|
8075
|
-
return /* @__PURE__ */
|
8088
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
8076
8089
|
"div",
|
8077
8090
|
{
|
8078
8091
|
dir: direction,
|
@@ -8080,7 +8093,7 @@ var Dots = ({
|
|
8080
8093
|
},
|
8081
8094
|
arr.map((_, index) => {
|
8082
8095
|
const selected = index === selectedIndex;
|
8083
|
-
return /* @__PURE__ */
|
8096
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
8084
8097
|
"div",
|
8085
8098
|
{
|
8086
8099
|
key: index,
|
@@ -8095,7 +8108,7 @@ var Dots = ({
|
|
8095
8108
|
);
|
8096
8109
|
};
|
8097
8110
|
var CarouselControls = (props) => {
|
8098
|
-
return /* @__PURE__ */
|
8111
|
+
return /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react50.default.createElement(
|
8099
8112
|
"button",
|
8100
8113
|
{
|
8101
8114
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -8106,7 +8119,7 @@ var CarouselControls = (props) => {
|
|
8106
8119
|
props.canScrollPrev && "hawa-bg-primary"
|
8107
8120
|
)
|
8108
8121
|
},
|
8109
|
-
/* @__PURE__ */
|
8122
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8110
8123
|
"svg",
|
8111
8124
|
{
|
8112
8125
|
"aria-label": "Chevron Right Icon",
|
@@ -8115,9 +8128,9 @@ var CarouselControls = (props) => {
|
|
8115
8128
|
viewBox: "0 0 16 16",
|
8116
8129
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
8117
8130
|
},
|
8118
|
-
/* @__PURE__ */
|
8131
|
+
/* @__PURE__ */ import_react50.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" })
|
8119
8132
|
)
|
8120
|
-
), /* @__PURE__ */
|
8133
|
+
), /* @__PURE__ */ import_react50.default.createElement(
|
8121
8134
|
"button",
|
8122
8135
|
{
|
8123
8136
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -8128,7 +8141,7 @@ var CarouselControls = (props) => {
|
|
8128
8141
|
props.canScrollNext && "hawa-bg-primary"
|
8129
8142
|
)
|
8130
8143
|
},
|
8131
|
-
/* @__PURE__ */
|
8144
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8132
8145
|
"svg",
|
8133
8146
|
{
|
8134
8147
|
"aria-label": "Chevron Right Icon",
|
@@ -8137,15 +8150,15 @@ var CarouselControls = (props) => {
|
|
8137
8150
|
viewBox: "0 0 16 16",
|
8138
8151
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
8139
8152
|
},
|
8140
|
-
/* @__PURE__ */
|
8153
|
+
/* @__PURE__ */ import_react50.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" })
|
8141
8154
|
)
|
8142
8155
|
));
|
8143
8156
|
};
|
8144
8157
|
|
8145
8158
|
// elements/count/Count.tsx
|
8146
|
-
var
|
8159
|
+
var import_react51 = __toESM(require("react"));
|
8147
8160
|
var Count = (props) => {
|
8148
|
-
return /* @__PURE__ */
|
8161
|
+
return /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ import_react51.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-text-sm" }, props.count));
|
8149
8162
|
};
|
8150
8163
|
|
8151
8164
|
// elements/toast/Toast.tsx
|
@@ -8286,11 +8299,11 @@ var ToastDescription = React67.forwardRef(({ className, size = "default", ...pro
|
|
8286
8299
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
8287
8300
|
|
8288
8301
|
// elements/toaster/Toaster.tsx
|
8289
|
-
var
|
8302
|
+
var import_react52 = __toESM(require("react"));
|
8290
8303
|
function Toaster(props) {
|
8291
8304
|
var _a;
|
8292
8305
|
let isRTL = props.direction === "rtl";
|
8293
|
-
return /* @__PURE__ */
|
8306
|
+
return /* @__PURE__ */ import_react52.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8294
8307
|
id,
|
8295
8308
|
title,
|
8296
8309
|
description,
|
@@ -8298,7 +8311,7 @@ function Toaster(props) {
|
|
8298
8311
|
action,
|
8299
8312
|
...toastProps
|
8300
8313
|
}) {
|
8301
|
-
return /* @__PURE__ */
|
8314
|
+
return /* @__PURE__ */ import_react52.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react52.default.createElement(
|
8302
8315
|
"div",
|
8303
8316
|
{
|
8304
8317
|
className: cn(
|
@@ -8306,9 +8319,9 @@ function Toaster(props) {
|
|
8306
8319
|
action && "hawa-justify-between"
|
8307
8320
|
)
|
8308
8321
|
},
|
8309
|
-
/* @__PURE__ */
|
8310
|
-
/* @__PURE__ */
|
8311
|
-
/* @__PURE__ */
|
8322
|
+
/* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ import_react52.default.createElement(ToastClose, null)),
|
8323
|
+
/* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
8324
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8312
8325
|
"div",
|
8313
8326
|
{
|
8314
8327
|
className: cn(
|
@@ -8316,11 +8329,11 @@ function Toaster(props) {
|
|
8316
8329
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8317
8330
|
)
|
8318
8331
|
},
|
8319
|
-
/* @__PURE__ */
|
8320
|
-
action && /* @__PURE__ */
|
8332
|
+
/* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ import_react52.default.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ import_react52.default.createElement(ToastDescription, { size }, description)),
|
8333
|
+
action && /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8321
8334
|
)
|
8322
8335
|
));
|
8323
|
-
}), /* @__PURE__ */
|
8336
|
+
}), /* @__PURE__ */ import_react52.default.createElement(
|
8324
8337
|
ToastViewport,
|
8325
8338
|
{
|
8326
8339
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8329,20 +8342,20 @@ function Toaster(props) {
|
|
8329
8342
|
}
|
8330
8343
|
|
8331
8344
|
// elements/destroyableCard/DestroyableCard.tsx
|
8332
|
-
var
|
8345
|
+
var import_react53 = __toESM(require("react"));
|
8333
8346
|
var DestroyableCard = ({
|
8334
8347
|
position = "bottom-right",
|
8335
8348
|
fixed,
|
8336
8349
|
direction,
|
8337
8350
|
...props
|
8338
8351
|
}) => {
|
8339
|
-
const [closed, setClosed] = (0,
|
8340
|
-
const popUpRef = (0,
|
8352
|
+
const [closed, setClosed] = (0, import_react53.useState)(false);
|
8353
|
+
const popUpRef = (0, import_react53.useRef)(null);
|
8341
8354
|
const boxPosition = {
|
8342
8355
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8343
8356
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8344
8357
|
};
|
8345
|
-
return /* @__PURE__ */
|
8358
|
+
return /* @__PURE__ */ import_react53.default.createElement(
|
8346
8359
|
"div",
|
8347
8360
|
{
|
8348
8361
|
className: cn(
|
@@ -8351,7 +8364,7 @@ var DestroyableCard = ({
|
|
8351
8364
|
),
|
8352
8365
|
ref: popUpRef
|
8353
8366
|
},
|
8354
|
-
/* @__PURE__ */
|
8367
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8355
8368
|
Card,
|
8356
8369
|
{
|
8357
8370
|
className: cn(
|
@@ -8360,7 +8373,7 @@ var DestroyableCard = ({
|
|
8360
8373
|
),
|
8361
8374
|
dir: direction
|
8362
8375
|
},
|
8363
|
-
/* @__PURE__ */
|
8376
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8364
8377
|
"button",
|
8365
8378
|
{
|
8366
8379
|
type: "button",
|
@@ -8379,7 +8392,7 @@ var DestroyableCard = ({
|
|
8379
8392
|
}, 200);
|
8380
8393
|
}
|
8381
8394
|
},
|
8382
|
-
/* @__PURE__ */
|
8395
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8383
8396
|
"svg",
|
8384
8397
|
{
|
8385
8398
|
"aria-hidden": "true",
|
@@ -8387,7 +8400,7 @@ var DestroyableCard = ({
|
|
8387
8400
|
fill: "currentColor",
|
8388
8401
|
viewBox: "0 0 20 20"
|
8389
8402
|
},
|
8390
|
-
/* @__PURE__ */
|
8403
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8391
8404
|
"path",
|
8392
8405
|
{
|
8393
8406
|
fillRule: "evenodd",
|
@@ -8397,13 +8410,13 @@ var DestroyableCard = ({
|
|
8397
8410
|
)
|
8398
8411
|
)
|
8399
8412
|
),
|
8400
|
-
/* @__PURE__ */
|
8413
|
+
/* @__PURE__ */ import_react53.default.createElement(CardContent, { headless: true }, props.children)
|
8401
8414
|
)
|
8402
8415
|
);
|
8403
8416
|
};
|
8404
8417
|
|
8405
8418
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
8406
|
-
var
|
8419
|
+
var import_react54 = __toESM(require("react"));
|
8407
8420
|
var InterfaceSettings = ({
|
8408
8421
|
orientation = "horizontal",
|
8409
8422
|
width = "default",
|
@@ -8411,13 +8424,13 @@ var InterfaceSettings = ({
|
|
8411
8424
|
handleLanguage,
|
8412
8425
|
...props
|
8413
8426
|
}) => {
|
8414
|
-
const [color, setColor] = (0,
|
8415
|
-
const [language, setLanguage] = (0,
|
8427
|
+
const [color, setColor] = (0, import_react54.useState)(props.currentColorMode);
|
8428
|
+
const [language, setLanguage] = (0, import_react54.useState)(props.currentLanguage);
|
8416
8429
|
let orientationStyle = {
|
8417
8430
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
8418
8431
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
8419
8432
|
};
|
8420
|
-
return /* @__PURE__ */
|
8433
|
+
return /* @__PURE__ */ import_react54.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react54.default.createElement(
|
8421
8434
|
Radio,
|
8422
8435
|
{
|
8423
8436
|
name: "language",
|
@@ -8435,7 +8448,7 @@ var InterfaceSettings = ({
|
|
8435
8448
|
{ value: "en", label: "English" }
|
8436
8449
|
]
|
8437
8450
|
}
|
8438
|
-
), /* @__PURE__ */
|
8451
|
+
), /* @__PURE__ */ import_react54.default.createElement(
|
8439
8452
|
Radio,
|
8440
8453
|
{
|
8441
8454
|
name: "theme",
|
@@ -8451,7 +8464,7 @@ var InterfaceSettings = ({
|
|
8451
8464
|
options: [
|
8452
8465
|
{
|
8453
8466
|
value: "light",
|
8454
|
-
label: /* @__PURE__ */
|
8467
|
+
label: /* @__PURE__ */ import_react54.default.createElement(
|
8455
8468
|
"svg",
|
8456
8469
|
{
|
8457
8470
|
width: "15",
|
@@ -8461,7 +8474,7 @@ var InterfaceSettings = ({
|
|
8461
8474
|
xmlns: "http://www.w3.org/2000/svg",
|
8462
8475
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8463
8476
|
},
|
8464
|
-
/* @__PURE__ */
|
8477
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
8465
8478
|
"path",
|
8466
8479
|
{
|
8467
8480
|
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",
|
@@ -8472,7 +8485,7 @@ var InterfaceSettings = ({
|
|
8472
8485
|
},
|
8473
8486
|
{
|
8474
8487
|
value: "dark",
|
8475
|
-
label: /* @__PURE__ */
|
8488
|
+
label: /* @__PURE__ */ import_react54.default.createElement(
|
8476
8489
|
"svg",
|
8477
8490
|
{
|
8478
8491
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8483,7 +8496,7 @@ var InterfaceSettings = ({
|
|
8483
8496
|
stroke: "currentColor",
|
8484
8497
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8485
8498
|
},
|
8486
|
-
/* @__PURE__ */
|
8499
|
+
/* @__PURE__ */ import_react54.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8487
8500
|
)
|
8488
8501
|
}
|
8489
8502
|
]
|
@@ -8492,14 +8505,14 @@ var InterfaceSettings = ({
|
|
8492
8505
|
};
|
8493
8506
|
|
8494
8507
|
// elements/phoneMockup/PhoneMockup.tsx
|
8495
|
-
var
|
8508
|
+
var import_react55 = __toESM(require("react"));
|
8496
8509
|
var PhoneMockup = ({
|
8497
8510
|
children,
|
8498
8511
|
upperOverlayGradiant,
|
8499
8512
|
lowerOverlayGradiant,
|
8500
8513
|
phone,
|
8501
8514
|
hideButtons
|
8502
|
-
}) => /* @__PURE__ */
|
8515
|
+
}) => /* @__PURE__ */ import_react55.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_react55.default.createElement(import_react55.default.Fragment, null, /* @__PURE__ */ import_react55.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_react55.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_react55.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_react55.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_react55.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_react55.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_react55.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)]" }));
|
8503
8516
|
// Annotate the CommonJS export names for ESM import in node:
|
8504
8517
|
0 && (module.exports = {
|
8505
8518
|
Accordion,
|
@@ -8593,6 +8606,10 @@ var PhoneMockup = ({
|
|
8593
8606
|
PhoneInput,
|
8594
8607
|
PhoneMockup,
|
8595
8608
|
PinInput,
|
8609
|
+
PinInputGroup,
|
8610
|
+
PinInputRoot,
|
8611
|
+
PinInputSeperator,
|
8612
|
+
PinInputSlot,
|
8596
8613
|
Popover,
|
8597
8614
|
PopoverContent,
|
8598
8615
|
PopoverPortal,
|
@@ -8648,3 +8665,53 @@ var PhoneMockup = ({
|
|
8648
8665
|
buttonVariants,
|
8649
8666
|
navigationMenuTriggerStyle
|
8650
8667
|
});
|
8668
|
+
/*! Bundled license information:
|
8669
|
+
|
8670
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
8671
|
+
(**
|
8672
|
+
* @license lucide-react v0.379.0 - ISC
|
8673
|
+
*
|
8674
|
+
* This source code is licensed under the ISC license.
|
8675
|
+
* See the LICENSE file in the root directory of this source tree.
|
8676
|
+
*)
|
8677
|
+
|
8678
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
8679
|
+
(**
|
8680
|
+
* @license lucide-react v0.379.0 - ISC
|
8681
|
+
*
|
8682
|
+
* This source code is licensed under the ISC license.
|
8683
|
+
* See the LICENSE file in the root directory of this source tree.
|
8684
|
+
*)
|
8685
|
+
|
8686
|
+
lucide-react/dist/esm/Icon.js:
|
8687
|
+
(**
|
8688
|
+
* @license lucide-react v0.379.0 - ISC
|
8689
|
+
*
|
8690
|
+
* This source code is licensed under the ISC license.
|
8691
|
+
* See the LICENSE file in the root directory of this source tree.
|
8692
|
+
*)
|
8693
|
+
|
8694
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
8695
|
+
(**
|
8696
|
+
* @license lucide-react v0.379.0 - ISC
|
8697
|
+
*
|
8698
|
+
* This source code is licensed under the ISC license.
|
8699
|
+
* See the LICENSE file in the root directory of this source tree.
|
8700
|
+
*)
|
8701
|
+
|
8702
|
+
lucide-react/dist/esm/icons/dot.js:
|
8703
|
+
(**
|
8704
|
+
* @license lucide-react v0.379.0 - ISC
|
8705
|
+
*
|
8706
|
+
* This source code is licensed under the ISC license.
|
8707
|
+
* See the LICENSE file in the root directory of this source tree.
|
8708
|
+
*)
|
8709
|
+
|
8710
|
+
lucide-react/dist/esm/lucide-react.js:
|
8711
|
+
(**
|
8712
|
+
* @license lucide-react v0.379.0 - ISC
|
8713
|
+
*
|
8714
|
+
* This source code is licensed under the ISC license.
|
8715
|
+
* See the LICENSE file in the root directory of this source tree.
|
8716
|
+
*)
|
8717
|
+
*/
|