@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/index.js
CHANGED
@@ -167,6 +167,10 @@ __export(components_exports, {
|
|
167
167
|
PhoneInput: () => PhoneInput,
|
168
168
|
PhoneMockup: () => PhoneMockup,
|
169
169
|
PinInput: () => PinInput,
|
170
|
+
PinInputGroup: () => PinInputGroup,
|
171
|
+
PinInputRoot: () => PinInputRoot,
|
172
|
+
PinInputSeperator: () => PinInputSeperator,
|
173
|
+
PinInputSlot: () => PinInputSlot,
|
170
174
|
Popover: () => Popover,
|
171
175
|
PopoverContent: () => PopoverContent,
|
172
176
|
PopoverPortal: () => PopoverPortal,
|
@@ -2775,16 +2779,7 @@ var Input = (0, import_react11.forwardRef)(
|
|
2775
2779
|
inputProps == null ? void 0 : inputProps.className
|
2776
2780
|
)
|
2777
2781
|
}
|
2778
|
-
)), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
2779
|
-
"p",
|
2780
|
-
{
|
2781
|
-
className: cn(
|
2782
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
2783
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
2784
|
-
)
|
2785
|
-
},
|
2786
|
-
props.helperText
|
2787
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
2782
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(HelperText, { helperText: props.helperText }), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
2788
2783
|
"div",
|
2789
2784
|
{
|
2790
2785
|
className: cn(
|
@@ -3599,16 +3594,7 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3599
3594
|
opt.label
|
3600
3595
|
);
|
3601
3596
|
})
|
3602
|
-
), !forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(
|
3603
|
-
"p",
|
3604
|
-
{
|
3605
|
-
className: cn(
|
3606
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3607
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3608
|
-
)
|
3609
|
-
},
|
3610
|
-
props.helperText
|
3611
|
-
));
|
3597
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText }));
|
3612
3598
|
case "bordered":
|
3613
3599
|
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(
|
3614
3600
|
"div",
|
@@ -3697,16 +3683,7 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3697
3683
|
},
|
3698
3684
|
opt.label
|
3699
3685
|
)
|
3700
|
-
))), /* @__PURE__ */ import_react13.default.createElement(
|
3701
|
-
"p",
|
3702
|
-
{
|
3703
|
-
className: cn(
|
3704
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3705
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3706
|
-
)
|
3707
|
-
},
|
3708
|
-
props.helperText
|
3709
|
-
));
|
3686
|
+
))), /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText }));
|
3710
3687
|
}
|
3711
3688
|
}
|
3712
3689
|
);
|
@@ -3833,7 +3810,12 @@ var CommandShortcut = ({
|
|
3833
3810
|
}
|
3834
3811
|
);
|
3835
3812
|
};
|
3836
|
-
var FullCommand = ({
|
3813
|
+
var FullCommand = ({
|
3814
|
+
items,
|
3815
|
+
direction = "ltr",
|
3816
|
+
texts,
|
3817
|
+
onActionClick
|
3818
|
+
}) => {
|
3837
3819
|
return /* @__PURE__ */ React27.createElement(
|
3838
3820
|
Command,
|
3839
3821
|
{
|
@@ -3849,7 +3831,20 @@ var FullCommand = ({ items, direction = "ltr", texts }) => {
|
|
3849
3831
|
/* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(CommandEmpty, null, (texts == null ? void 0 : texts.emptyText) || "No results found."), items.map((item, index) => {
|
3850
3832
|
var _a;
|
3851
3833
|
if (item.type === "group") {
|
3852
|
-
return /* @__PURE__ */ React27.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React27.createElement(
|
3834
|
+
return /* @__PURE__ */ React27.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React27.createElement(
|
3835
|
+
CommandItem,
|
3836
|
+
{
|
3837
|
+
key: subIndex,
|
3838
|
+
onSelect: () => {
|
3839
|
+
if (onActionClick)
|
3840
|
+
onActionClick();
|
3841
|
+
subItem.action();
|
3842
|
+
}
|
3843
|
+
},
|
3844
|
+
/* @__PURE__ */ React27.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
|
3845
|
+
/* @__PURE__ */ React27.createElement("span", null, subItem.label),
|
3846
|
+
subItem.shortcut && /* @__PURE__ */ React27.createElement(CommandShortcut, null, subItem.shortcut)
|
3847
|
+
)));
|
3853
3848
|
} else if (item.type === "separator") {
|
3854
3849
|
return /* @__PURE__ */ React27.createElement(CommandSeparator, { key: index });
|
3855
3850
|
}
|
@@ -3857,14 +3852,18 @@ var FullCommand = ({ items, direction = "ltr", texts }) => {
|
|
3857
3852
|
}))
|
3858
3853
|
);
|
3859
3854
|
};
|
3860
|
-
var AppCommand = ({
|
3855
|
+
var AppCommand = ({
|
3856
|
+
commandProps,
|
3857
|
+
dialogProps,
|
3858
|
+
onActionClick
|
3859
|
+
}) => {
|
3861
3860
|
return /* @__PURE__ */ React27.createElement(import_react_dialog.Dialog, { ...dialogProps }, /* @__PURE__ */ React27.createElement(
|
3862
3861
|
DialogContent,
|
3863
3862
|
{
|
3864
3863
|
hideCloseButton: true,
|
3865
3864
|
className: "hawa-overflow-hidden !hawa-p-0 hawa-shadow-l "
|
3866
3865
|
},
|
3867
|
-
/* @__PURE__ */ React27.createElement(FullCommand, { ...commandProps })
|
3866
|
+
/* @__PURE__ */ React27.createElement(FullCommand, { ...commandProps, onActionClick })
|
3868
3867
|
));
|
3869
3868
|
};
|
3870
3869
|
CommandShortcut.displayName = "CommandShortcut";
|
@@ -3954,16 +3953,7 @@ var Combobox = React28.forwardRef(
|
|
3954
3953
|
},
|
3955
3954
|
/* @__PURE__ */ React28.createElement("path", { d: "m6 9 6 6 6-6" })
|
3956
3955
|
)
|
3957
|
-
), /* @__PURE__ */ React28.createElement(
|
3958
|
-
"p",
|
3959
|
-
{
|
3960
|
-
className: cn(
|
3961
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3962
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3963
|
-
)
|
3964
|
-
},
|
3965
|
-
props.helperText
|
3966
|
-
))), /* @__PURE__ */ React28.createElement(
|
3956
|
+
), /* @__PURE__ */ React28.createElement(HelperText, { helperText: props.helperText }))), /* @__PURE__ */ React28.createElement(
|
3967
3957
|
PopoverContent,
|
3968
3958
|
{
|
3969
3959
|
sideOffset: 0,
|
@@ -4087,16 +4077,7 @@ var Textarea = React29.forwardRef(
|
|
4087
4077
|
ref
|
4088
4078
|
}
|
4089
4079
|
),
|
4090
|
-
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(
|
4091
|
-
"p",
|
4092
|
-
{
|
4093
|
-
className: cn(
|
4094
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4095
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4096
|
-
)
|
4097
|
-
},
|
4098
|
-
props.helperText
|
4099
|
-
), 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))
|
4080
|
+
/* @__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))
|
4100
4081
|
);
|
4101
4082
|
}
|
4102
4083
|
);
|
@@ -5022,7 +5003,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
5022
5003
|
"div",
|
5023
5004
|
{
|
5024
5005
|
className: cn(
|
5025
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
5006
|
+
"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",
|
5026
5007
|
showLeftFade ? "hawa-block" : "hawa-hidden"
|
5027
5008
|
)
|
5028
5009
|
}
|
@@ -5031,7 +5012,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
5031
5012
|
"div",
|
5032
5013
|
{
|
5033
5014
|
className: cn(
|
5034
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
5015
|
+
"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 ",
|
5035
5016
|
showRightFade ? "hawa-block" : "hawa-hidden"
|
5036
5017
|
)
|
5037
5018
|
}
|
@@ -5411,16 +5392,7 @@ var Select = ({
|
|
5411
5392
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
5412
5393
|
}
|
5413
5394
|
),
|
5414
|
-
!props.hideHelperText && /* @__PURE__ */ import_react33.default.createElement(
|
5415
|
-
"p",
|
5416
|
-
{
|
5417
|
-
className: cn(
|
5418
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
5419
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
5420
|
-
)
|
5421
|
-
},
|
5422
|
-
props.helperText
|
5423
|
-
)
|
5395
|
+
!props.hideHelperText && /* @__PURE__ */ import_react33.default.createElement(HelperText, { helperText: props.helperText })
|
5424
5396
|
);
|
5425
5397
|
};
|
5426
5398
|
|
@@ -7561,112 +7533,162 @@ var PhoneInput = ({
|
|
7561
7533
|
),
|
7562
7534
|
...inputProps
|
7563
7535
|
}
|
7564
|
-
))), /* @__PURE__ */ import_react37.default.createElement(
|
7565
|
-
"p",
|
7566
|
-
{
|
7567
|
-
className: cn(
|
7568
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
7569
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7570
|
-
)
|
7571
|
-
},
|
7572
|
-
props.helperText
|
7573
|
-
));
|
7536
|
+
))), /* @__PURE__ */ import_react37.default.createElement(HelperText, { helperText: props.helperText }));
|
7574
7537
|
};
|
7575
7538
|
|
7576
7539
|
// elements/pinInput/PinInput.tsx
|
7577
|
-
var
|
7578
|
-
var
|
7579
|
-
|
7580
|
-
|
7581
|
-
|
7582
|
-
|
7583
|
-
|
7584
|
-
|
7585
|
-
|
7586
|
-
|
7587
|
-
|
7588
|
-
|
7589
|
-
|
7590
|
-
|
7591
|
-
|
7592
|
-
|
7593
|
-
|
7594
|
-
|
7595
|
-
|
7596
|
-
|
7597
|
-
|
7598
|
-
|
7599
|
-
|
7600
|
-
|
7601
|
-
|
7602
|
-
|
7603
|
-
|
7604
|
-
|
7605
|
-
|
7606
|
-
|
7607
|
-
|
7608
|
-
|
7609
|
-
|
7610
|
-
|
7611
|
-
|
7612
|
-
|
7613
|
-
|
7614
|
-
|
7615
|
-
|
7616
|
-
|
7617
|
-
|
7618
|
-
|
7619
|
-
}
|
7620
|
-
};
|
7621
|
-
return /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react38.default.createElement(
|
7622
|
-
"div",
|
7623
|
-
{
|
7624
|
-
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
7625
|
-
dir: "ltr"
|
7626
|
-
},
|
7627
|
-
pin.map((value, index) => /* @__PURE__ */ import_react38.default.createElement(
|
7628
|
-
"input",
|
7540
|
+
var React51 = __toESM(require("react"));
|
7541
|
+
var import_input_otp = require("input-otp");
|
7542
|
+
|
7543
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7544
|
+
var import_react39 = require("react");
|
7545
|
+
|
7546
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7547
|
+
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7548
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7549
|
+
return Boolean(className) && array.indexOf(className) === index;
|
7550
|
+
}).join(" ");
|
7551
|
+
|
7552
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7553
|
+
var import_react38 = require("react");
|
7554
|
+
|
7555
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7556
|
+
var defaultAttributes = {
|
7557
|
+
xmlns: "http://www.w3.org/2000/svg",
|
7558
|
+
width: 24,
|
7559
|
+
height: 24,
|
7560
|
+
viewBox: "0 0 24 24",
|
7561
|
+
fill: "none",
|
7562
|
+
stroke: "currentColor",
|
7563
|
+
strokeWidth: 2,
|
7564
|
+
strokeLinecap: "round",
|
7565
|
+
strokeLinejoin: "round"
|
7566
|
+
};
|
7567
|
+
|
7568
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7569
|
+
var Icon = (0, import_react38.forwardRef)(
|
7570
|
+
({
|
7571
|
+
color = "currentColor",
|
7572
|
+
size = 24,
|
7573
|
+
strokeWidth = 2,
|
7574
|
+
absoluteStrokeWidth,
|
7575
|
+
className = "",
|
7576
|
+
children,
|
7577
|
+
iconNode,
|
7578
|
+
...rest
|
7579
|
+
}, ref) => {
|
7580
|
+
return (0, import_react38.createElement)(
|
7581
|
+
"svg",
|
7629
7582
|
{
|
7630
|
-
|
7631
|
-
|
7632
|
-
|
7633
|
-
|
7634
|
-
|
7635
|
-
|
7636
|
-
|
7637
|
-
|
7638
|
-
|
7639
|
-
|
7640
|
-
),
|
7641
|
-
|
7642
|
-
|
7643
|
-
|
7644
|
-
|
7645
|
-
|
7646
|
-
|
7647
|
-
|
7648
|
-
|
7583
|
+
ref,
|
7584
|
+
...defaultAttributes,
|
7585
|
+
width: size,
|
7586
|
+
height: size,
|
7587
|
+
stroke: color,
|
7588
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
7589
|
+
className: mergeClasses("lucide", className),
|
7590
|
+
...rest
|
7591
|
+
},
|
7592
|
+
[
|
7593
|
+
...iconNode.map(([tag, attrs]) => (0, import_react38.createElement)(tag, attrs)),
|
7594
|
+
...Array.isArray(children) ? children : [children]
|
7595
|
+
]
|
7596
|
+
);
|
7597
|
+
}
|
7598
|
+
);
|
7599
|
+
|
7600
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7601
|
+
var createLucideIcon = (iconName, iconNode) => {
|
7602
|
+
const Component = (0, import_react39.forwardRef)(
|
7603
|
+
({ className, ...props }, ref) => (0, import_react39.createElement)(Icon, {
|
7604
|
+
ref,
|
7605
|
+
iconNode,
|
7606
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
7607
|
+
...props
|
7608
|
+
})
|
7609
|
+
);
|
7610
|
+
Component.displayName = `${iconName}`;
|
7611
|
+
return Component;
|
7612
|
+
};
|
7613
|
+
|
7614
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7615
|
+
var Dot = createLucideIcon("Dot", [
|
7616
|
+
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7617
|
+
]);
|
7618
|
+
|
7619
|
+
// elements/pinInput/PinInput.tsx
|
7620
|
+
var PinInputRoot = React51.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7621
|
+
import_input_otp.OTPInput,
|
7622
|
+
{
|
7623
|
+
ref,
|
7624
|
+
containerClassName: cn(
|
7625
|
+
"hawa-flex hawa-items-center hawa-gap-2 has-[:disabled]:hawa-opacity-50",
|
7626
|
+
containerClassName
|
7627
|
+
),
|
7628
|
+
className: cn("disabled:hawa-cursor-not-allowed", className),
|
7629
|
+
...props
|
7630
|
+
}
|
7631
|
+
));
|
7632
|
+
PinInputRoot.displayName = "PinInputRoot";
|
7633
|
+
var PinInputGroup = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7634
|
+
"div",
|
7635
|
+
{
|
7636
|
+
ref,
|
7637
|
+
className: cn("hawa-flex hawa-items-center", className),
|
7638
|
+
...props
|
7639
|
+
}
|
7640
|
+
));
|
7641
|
+
PinInputGroup.displayName = "PinInputGroup";
|
7642
|
+
var PinInputSlot = React51.forwardRef(({ index, className, ...props }, ref) => {
|
7643
|
+
const pinInputContext = React51.useContext(import_input_otp.OTPInputContext);
|
7644
|
+
const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];
|
7645
|
+
return /* @__PURE__ */ React51.createElement(
|
7646
|
+
"div",
|
7649
7647
|
{
|
7648
|
+
ref,
|
7650
7649
|
className: cn(
|
7651
|
-
"hawa-
|
7652
|
-
|
7653
|
-
|
7650
|
+
"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",
|
7651
|
+
isActive && "hawa-ring-ring hawa-ring-offset-background hawa-z-10 hawa-ring-2",
|
7652
|
+
className
|
7653
|
+
),
|
7654
|
+
...props
|
7654
7655
|
},
|
7655
|
-
|
7656
|
-
|
7656
|
+
char,
|
7657
|
+
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" }))
|
7658
|
+
);
|
7659
|
+
});
|
7660
|
+
PinInputSlot.displayName = "PinInputSlot";
|
7661
|
+
var PinInputSeperator = React51.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React51.createElement("div", { ref, role: "separator", ...props }, /* @__PURE__ */ React51.createElement(Dot, null)));
|
7662
|
+
PinInputSeperator.displayName = "PinInputSeperator";
|
7663
|
+
var PinInput = ({
|
7664
|
+
separatorPosition = 0,
|
7665
|
+
...props
|
7666
|
+
}) => {
|
7667
|
+
const maxLength = props.maxLength || 6;
|
7668
|
+
const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);
|
7669
|
+
const firstGroupLength = clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;
|
7670
|
+
const secondGroupLength = maxLength - firstGroupLength;
|
7671
|
+
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(
|
7672
|
+
PinInputSlot,
|
7673
|
+
{
|
7674
|
+
key: index + firstGroupLength,
|
7675
|
+
index: index + firstGroupLength,
|
7676
|
+
className: "hawa-w-full"
|
7677
|
+
}
|
7678
|
+
)))), /* @__PURE__ */ React51.createElement(HelperText, { helperText: props.helperText }));
|
7657
7679
|
};
|
7658
7680
|
|
7659
7681
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
7660
|
-
var
|
7682
|
+
var import_react40 = __toESM(require("react"));
|
7661
7683
|
var StopPropagationWrapper = (props) => {
|
7662
7684
|
const handleClick = (e) => {
|
7663
7685
|
e.stopPropagation();
|
7664
7686
|
};
|
7665
|
-
return /* @__PURE__ */
|
7687
|
+
return /* @__PURE__ */ import_react40.default.createElement("div", { onClick: handleClick }, props.children);
|
7666
7688
|
};
|
7667
7689
|
|
7668
7690
|
// elements/colorPicker/ColorPicker.tsx
|
7669
|
-
var
|
7691
|
+
var import_react41 = __toESM(require("react"));
|
7670
7692
|
var ColorPicker = ({
|
7671
7693
|
containerProps,
|
7672
7694
|
colorPickerProps,
|
@@ -7677,8 +7699,8 @@ var ColorPicker = ({
|
|
7677
7699
|
preview = false,
|
7678
7700
|
...props
|
7679
7701
|
}) => {
|
7680
|
-
const [selectedColor, setSelectedColor] = (0,
|
7681
|
-
(0,
|
7702
|
+
const [selectedColor, setSelectedColor] = (0, import_react41.useState)(props.color);
|
7703
|
+
(0, import_react41.useEffect)(() => {
|
7682
7704
|
if (selectedColor && selectedColor[0] !== "#") {
|
7683
7705
|
setSelectedColor(`#${selectedColor}`);
|
7684
7706
|
}
|
@@ -7695,13 +7717,13 @@ var ColorPicker = ({
|
|
7695
7717
|
props.handleChange(e);
|
7696
7718
|
}
|
7697
7719
|
};
|
7698
|
-
return /* @__PURE__ */
|
7720
|
+
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(
|
7699
7721
|
"div",
|
7700
7722
|
{
|
7701
7723
|
style: { height: 40, backgroundColor: selectedColor },
|
7702
7724
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
7703
7725
|
},
|
7704
|
-
/* @__PURE__ */
|
7726
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7705
7727
|
"input",
|
7706
7728
|
{
|
7707
7729
|
disabled: preview,
|
@@ -7720,7 +7742,7 @@ var ColorPicker = ({
|
|
7720
7742
|
...colorPickerProps
|
7721
7743
|
}
|
7722
7744
|
)
|
7723
|
-
), /* @__PURE__ */
|
7745
|
+
), /* @__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(
|
7724
7746
|
"input",
|
7725
7747
|
{
|
7726
7748
|
disabled: preview,
|
@@ -7739,20 +7761,11 @@ var ColorPicker = ({
|
|
7739
7761
|
},
|
7740
7762
|
...textInputProps
|
7741
7763
|
}
|
7742
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
7743
|
-
"p",
|
7744
|
-
{
|
7745
|
-
className: cn(
|
7746
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
7747
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7748
|
-
)
|
7749
|
-
},
|
7750
|
-
props.helperText
|
7751
|
-
));
|
7764
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react41.default.createElement(HelperText, { helperText: props.helperText }));
|
7752
7765
|
};
|
7753
7766
|
|
7754
7767
|
// elements/progressCircle/ProgressCircle.tsx
|
7755
|
-
var
|
7768
|
+
var import_react42 = __toESM(require("react"));
|
7756
7769
|
var size2config = {
|
7757
7770
|
xs: { radius: 15, strokeWidth: 3 },
|
7758
7771
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -7769,7 +7782,7 @@ function getLimitedValue(input) {
|
|
7769
7782
|
return input;
|
7770
7783
|
}
|
7771
7784
|
}
|
7772
|
-
var ProgressCircle =
|
7785
|
+
var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
7773
7786
|
const {
|
7774
7787
|
value: inputValue,
|
7775
7788
|
size = "md",
|
@@ -7789,7 +7802,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7789
7802
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7790
7803
|
const strokeDashoffset = value / 100 * circumference;
|
7791
7804
|
const offset = circumference - strokeDashoffset;
|
7792
|
-
return /* @__PURE__ */
|
7805
|
+
return /* @__PURE__ */ import_react42.default.createElement(import_react42.default.Fragment, null, /* @__PURE__ */ import_react42.default.createElement(
|
7793
7806
|
"div",
|
7794
7807
|
{
|
7795
7808
|
ref,
|
@@ -7798,7 +7811,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7798
7811
|
className
|
7799
7812
|
)
|
7800
7813
|
},
|
7801
|
-
/* @__PURE__ */
|
7814
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7802
7815
|
"svg",
|
7803
7816
|
{
|
7804
7817
|
width: radius * 2,
|
@@ -7806,7 +7819,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7806
7819
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7807
7820
|
className: "hawa-rotate-180 hawa-transform"
|
7808
7821
|
},
|
7809
|
-
/* @__PURE__ */
|
7822
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7810
7823
|
"circle",
|
7811
7824
|
{
|
7812
7825
|
r: normalizedRadius,
|
@@ -7822,7 +7835,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7822
7835
|
)
|
7823
7836
|
}
|
7824
7837
|
),
|
7825
|
-
value > 0 ? /* @__PURE__ */
|
7838
|
+
value > 0 ? /* @__PURE__ */ import_react42.default.createElement(
|
7826
7839
|
"circle",
|
7827
7840
|
{
|
7828
7841
|
r: normalizedRadius,
|
@@ -7842,24 +7855,24 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7842
7855
|
}
|
7843
7856
|
) : null
|
7844
7857
|
),
|
7845
|
-
/* @__PURE__ */
|
7858
|
+
/* @__PURE__ */ import_react42.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7846
7859
|
));
|
7847
7860
|
});
|
7848
7861
|
ProgressCircle.displayName = "ProgressCircle";
|
7849
7862
|
|
7850
7863
|
// elements/pagination/Pagination.tsx
|
7851
|
-
var
|
7864
|
+
var import_react43 = __toESM(require("react"));
|
7852
7865
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7853
7866
|
var Pagination = ({
|
7854
7867
|
direction,
|
7855
7868
|
totalPages,
|
7856
7869
|
currentPage
|
7857
7870
|
}) => {
|
7858
|
-
const [page, setPage] =
|
7871
|
+
const [page, setPage] = import_react43.default.useState(currentPage || 0);
|
7859
7872
|
const handlePageChange = (page2) => {
|
7860
7873
|
setPage(page2);
|
7861
7874
|
};
|
7862
|
-
return /* @__PURE__ */
|
7875
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7863
7876
|
import_react_headless_pagination.Pagination,
|
7864
7877
|
{
|
7865
7878
|
totalPages,
|
@@ -7871,10 +7884,10 @@ var Pagination = ({
|
|
7871
7884
|
truncableText: "...",
|
7872
7885
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7873
7886
|
},
|
7874
|
-
/* @__PURE__ */
|
7887
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7875
7888
|
import_react_headless_pagination.Pagination.PrevButton,
|
7876
7889
|
{
|
7877
|
-
as: /* @__PURE__ */
|
7890
|
+
as: /* @__PURE__ */ import_react43.default.createElement(
|
7878
7891
|
"button",
|
7879
7892
|
{
|
7880
7893
|
"aria-label": "Previous Table Page",
|
@@ -7884,7 +7897,7 @@ var Pagination = ({
|
|
7884
7897
|
),
|
7885
7898
|
style: { minWidth: 36 }
|
7886
7899
|
},
|
7887
|
-
/* @__PURE__ */
|
7900
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7888
7901
|
"svg",
|
7889
7902
|
{
|
7890
7903
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7897,7 +7910,7 @@ var Pagination = ({
|
|
7897
7910
|
strokeLinecap: "round",
|
7898
7911
|
strokeLinejoin: "round"
|
7899
7912
|
},
|
7900
|
-
/* @__PURE__ */
|
7913
|
+
/* @__PURE__ */ import_react43.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7901
7914
|
)
|
7902
7915
|
),
|
7903
7916
|
className: cn(
|
@@ -7910,17 +7923,17 @@ var Pagination = ({
|
|
7910
7923
|
},
|
7911
7924
|
"Previous"
|
7912
7925
|
),
|
7913
|
-
/* @__PURE__ */
|
7926
|
+
/* @__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(
|
7914
7927
|
import_react_headless_pagination.Pagination.PageButton,
|
7915
7928
|
{
|
7916
7929
|
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",
|
7917
7930
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7918
7931
|
}
|
7919
7932
|
))),
|
7920
|
-
/* @__PURE__ */
|
7933
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7921
7934
|
import_react_headless_pagination.Pagination.NextButton,
|
7922
7935
|
{
|
7923
|
-
as: /* @__PURE__ */
|
7936
|
+
as: /* @__PURE__ */ import_react43.default.createElement(
|
7924
7937
|
"button",
|
7925
7938
|
{
|
7926
7939
|
"aria-label": "Previous Table Page",
|
@@ -7930,7 +7943,7 @@ var Pagination = ({
|
|
7930
7943
|
),
|
7931
7944
|
style: { minWidth: 36 }
|
7932
7945
|
},
|
7933
|
-
/* @__PURE__ */
|
7946
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7934
7947
|
"svg",
|
7935
7948
|
{
|
7936
7949
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7943,7 +7956,7 @@ var Pagination = ({
|
|
7943
7956
|
strokeLinecap: "round",
|
7944
7957
|
strokeLinejoin: "round"
|
7945
7958
|
},
|
7946
|
-
/* @__PURE__ */
|
7959
|
+
/* @__PURE__ */ import_react43.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7947
7960
|
)
|
7948
7961
|
),
|
7949
7962
|
className: cn(
|
@@ -7960,11 +7973,11 @@ var Pagination = ({
|
|
7960
7973
|
};
|
7961
7974
|
|
7962
7975
|
// elements/passwordInput/PasswordInput.tsx
|
7963
|
-
var
|
7976
|
+
var import_react47 = __toESM(require("react"));
|
7964
7977
|
|
7965
7978
|
// icons/Emojis.tsx
|
7966
|
-
var
|
7967
|
-
var VeryGoodEmoji = () => /* @__PURE__ */
|
7979
|
+
var import_react44 = __toESM(require("react"));
|
7980
|
+
var VeryGoodEmoji = () => /* @__PURE__ */ import_react44.default.createElement(
|
7968
7981
|
"svg",
|
7969
7982
|
{
|
7970
7983
|
fill: "none",
|
@@ -7973,7 +7986,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
7973
7986
|
width: "16",
|
7974
7987
|
xmlns: "http://www.w3.org/2000/svg"
|
7975
7988
|
},
|
7976
|
-
/* @__PURE__ */
|
7989
|
+
/* @__PURE__ */ import_react44.default.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ import_react44.default.createElement(
|
7977
7990
|
"path",
|
7978
7991
|
{
|
7979
7992
|
clipRule: "evenodd",
|
@@ -7981,7 +7994,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
7981
7994
|
fill: "currentColor",
|
7982
7995
|
fillRule: "evenodd"
|
7983
7996
|
}
|
7984
|
-
), /* @__PURE__ */
|
7997
|
+
), /* @__PURE__ */ import_react44.default.createElement(
|
7985
7998
|
"path",
|
7986
7999
|
{
|
7987
8000
|
clipRule: "evenodd",
|
@@ -7991,7 +8004,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
7991
8004
|
}
|
7992
8005
|
))
|
7993
8006
|
);
|
7994
|
-
var GoodEmoji = () => /* @__PURE__ */
|
8007
|
+
var GoodEmoji = () => /* @__PURE__ */ import_react44.default.createElement(
|
7995
8008
|
"svg",
|
7996
8009
|
{
|
7997
8010
|
fill: "none",
|
@@ -8000,7 +8013,7 @@ var GoodEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8000
8013
|
width: "16",
|
8001
8014
|
xmlns: "http://www.w3.org/2000/svg"
|
8002
8015
|
},
|
8003
|
-
/* @__PURE__ */
|
8016
|
+
/* @__PURE__ */ import_react44.default.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ import_react44.default.createElement(
|
8004
8017
|
"path",
|
8005
8018
|
{
|
8006
8019
|
clipRule: "evenodd",
|
@@ -8010,7 +8023,7 @@ var GoodEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8010
8023
|
}
|
8011
8024
|
))
|
8012
8025
|
);
|
8013
|
-
var BadEmoji = () => /* @__PURE__ */
|
8026
|
+
var BadEmoji = () => /* @__PURE__ */ import_react44.default.createElement(
|
8014
8027
|
"svg",
|
8015
8028
|
{
|
8016
8029
|
fill: "none",
|
@@ -8019,7 +8032,7 @@ var BadEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8019
8032
|
width: "16",
|
8020
8033
|
xmlns: "http://www.w3.org/2000/svg"
|
8021
8034
|
},
|
8022
|
-
/* @__PURE__ */
|
8035
|
+
/* @__PURE__ */ import_react44.default.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ import_react44.default.createElement(
|
8023
8036
|
"path",
|
8024
8037
|
{
|
8025
8038
|
clipRule: "evenodd",
|
@@ -8029,7 +8042,7 @@ var BadEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8029
8042
|
}
|
8030
8043
|
))
|
8031
8044
|
);
|
8032
|
-
var VeryBadEmoji = () => /* @__PURE__ */
|
8045
|
+
var VeryBadEmoji = () => /* @__PURE__ */ import_react44.default.createElement(
|
8033
8046
|
"svg",
|
8034
8047
|
{
|
8035
8048
|
fill: "none",
|
@@ -8038,13 +8051,13 @@ var VeryBadEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8038
8051
|
width: "16",
|
8039
8052
|
xmlns: "http://www.w3.org/2000/svg"
|
8040
8053
|
},
|
8041
|
-
/* @__PURE__ */
|
8054
|
+
/* @__PURE__ */ import_react44.default.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ import_react44.default.createElement(
|
8042
8055
|
"path",
|
8043
8056
|
{
|
8044
8057
|
d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
|
8045
8058
|
fill: "#0070F3"
|
8046
8059
|
}
|
8047
|
-
), /* @__PURE__ */
|
8060
|
+
), /* @__PURE__ */ import_react44.default.createElement(
|
8048
8061
|
"path",
|
8049
8062
|
{
|
8050
8063
|
clipRule: "evenodd",
|
@@ -8056,8 +8069,8 @@ var VeryBadEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8056
8069
|
);
|
8057
8070
|
|
8058
8071
|
// icons/InputIcons.tsx
|
8059
|
-
var
|
8060
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
8072
|
+
var import_react45 = __toESM(require("react"));
|
8073
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react45.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react45.default.createElement(
|
8061
8074
|
"svg",
|
8062
8075
|
{
|
8063
8076
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8068,10 +8081,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react44.default.createElement("d
|
|
8068
8081
|
strokeLinecap: "round",
|
8069
8082
|
strokeLinejoin: "round"
|
8070
8083
|
},
|
8071
|
-
/* @__PURE__ */
|
8072
|
-
/* @__PURE__ */
|
8084
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
8085
|
+
/* @__PURE__ */ import_react45.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
8073
8086
|
));
|
8074
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
8087
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react45.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react45.default.createElement(
|
8075
8088
|
"svg",
|
8076
8089
|
{
|
8077
8090
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8082,20 +8095,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react44.default.createElem
|
|
8082
8095
|
strokeLinecap: "round",
|
8083
8096
|
strokeLinejoin: "round"
|
8084
8097
|
},
|
8085
|
-
/* @__PURE__ */
|
8086
|
-
/* @__PURE__ */
|
8087
|
-
/* @__PURE__ */
|
8088
|
-
/* @__PURE__ */
|
8098
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
8099
|
+
/* @__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" }),
|
8100
|
+
/* @__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" }),
|
8101
|
+
/* @__PURE__ */ import_react45.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
8089
8102
|
));
|
8090
8103
|
|
8091
8104
|
// icons/CommonIcons.tsx
|
8092
|
-
var
|
8105
|
+
var import_react46 = __toESM(require("react"));
|
8093
8106
|
var CheckMark = ({ size = "default", className }) => {
|
8094
8107
|
let sizeStyles2 = {
|
8095
8108
|
default: "hawa-h-5 hawa-w-5",
|
8096
8109
|
sm: "hawa-h-3 hawa-w-3"
|
8097
8110
|
};
|
8098
|
-
return /* @__PURE__ */
|
8111
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
8099
8112
|
"svg",
|
8100
8113
|
{
|
8101
8114
|
className: cn(sizeStyles2[size], className),
|
@@ -8103,7 +8116,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
8103
8116
|
fill: "currentColor",
|
8104
8117
|
viewBox: "0 0 20 20"
|
8105
8118
|
},
|
8106
|
-
/* @__PURE__ */
|
8119
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
8107
8120
|
"path",
|
8108
8121
|
{
|
8109
8122
|
fillRule: "evenodd",
|
@@ -8118,7 +8131,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
8118
8131
|
default: "hawa-h-5 hawa-w-5",
|
8119
8132
|
sm: "hawa-h-3 hawa-w-3"
|
8120
8133
|
};
|
8121
|
-
return /* @__PURE__ */
|
8134
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
8122
8135
|
"svg",
|
8123
8136
|
{
|
8124
8137
|
className: cn(sizeStyles2[size], className),
|
@@ -8126,7 +8139,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
8126
8139
|
fill: "currentColor",
|
8127
8140
|
viewBox: "0 0 20 20"
|
8128
8141
|
},
|
8129
|
-
/* @__PURE__ */
|
8142
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
8130
8143
|
"path",
|
8131
8144
|
{
|
8132
8145
|
fillRule: "evenodd",
|
@@ -8136,7 +8149,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
8136
8149
|
)
|
8137
8150
|
);
|
8138
8151
|
};
|
8139
|
-
var MenuIcon = () => /* @__PURE__ */
|
8152
|
+
var MenuIcon = () => /* @__PURE__ */ import_react46.default.createElement(
|
8140
8153
|
"svg",
|
8141
8154
|
{
|
8142
8155
|
"aria-label": "Menu Button",
|
@@ -8148,7 +8161,7 @@ var MenuIcon = () => /* @__PURE__ */ import_react45.default.createElement(
|
|
8148
8161
|
height: "1.6em",
|
8149
8162
|
width: "1.6em"
|
8150
8163
|
},
|
8151
|
-
/* @__PURE__ */
|
8164
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
8152
8165
|
"path",
|
8153
8166
|
{
|
8154
8167
|
fillRule: "evenodd",
|
@@ -8185,7 +8198,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
8185
8198
|
strong: "80%",
|
8186
8199
|
"very-strong": "100%"
|
8187
8200
|
}[currentStrengthLevel];
|
8188
|
-
return /* @__PURE__ */
|
8201
|
+
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(
|
8189
8202
|
"div",
|
8190
8203
|
{
|
8191
8204
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -8197,16 +8210,16 @@ var PasswordInput = ({
|
|
8197
8210
|
hidePopover,
|
8198
8211
|
...props
|
8199
8212
|
}) => {
|
8200
|
-
const [inputValue, setInputValue] = (0,
|
8201
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
8202
|
-
const [currentStr, setCurrentStr] = (0,
|
8203
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
8204
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
8205
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
8206
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
8207
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
8208
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
8209
|
-
(0,
|
8213
|
+
const [inputValue, setInputValue] = (0, import_react47.useState)("");
|
8214
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react47.useState)(false);
|
8215
|
+
const [currentStr, setCurrentStr] = (0, import_react47.useState)(0);
|
8216
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react47.useState)(false);
|
8217
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react47.useState)(false);
|
8218
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react47.useState)(false);
|
8219
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react47.useState)(false);
|
8220
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react47.useState)(false);
|
8221
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react47.useState)(false);
|
8222
|
+
(0, import_react47.useEffect)(() => {
|
8210
8223
|
const calculateStrength = () => {
|
8211
8224
|
let strengthScore = 0;
|
8212
8225
|
if (lengthCriteriaMet)
|
@@ -8245,7 +8258,7 @@ var PasswordInput = ({
|
|
8245
8258
|
setIsInputFocused(false);
|
8246
8259
|
};
|
8247
8260
|
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";
|
8248
|
-
return /* @__PURE__ */
|
8261
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", null, /* @__PURE__ */ import_react47.default.createElement(
|
8249
8262
|
Popover,
|
8250
8263
|
{
|
8251
8264
|
width: "trigger",
|
@@ -8254,7 +8267,7 @@ var PasswordInput = ({
|
|
8254
8267
|
onOpenChange: setIsInputFocused,
|
8255
8268
|
triggerProps: { asChild: true },
|
8256
8269
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
8257
|
-
trigger: /* @__PURE__ */
|
8270
|
+
trigger: /* @__PURE__ */ import_react47.default.createElement(
|
8258
8271
|
"div",
|
8259
8272
|
{
|
8260
8273
|
onClick: (e) => {
|
@@ -8264,7 +8277,7 @@ var PasswordInput = ({
|
|
8264
8277
|
}
|
8265
8278
|
}
|
8266
8279
|
},
|
8267
|
-
/* @__PURE__ */
|
8280
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
8268
8281
|
Input,
|
8269
8282
|
{
|
8270
8283
|
width: "full",
|
@@ -8274,21 +8287,21 @@ var PasswordInput = ({
|
|
8274
8287
|
onFocus: handleInputFocus,
|
8275
8288
|
onBlur: handleInputBlur,
|
8276
8289
|
type: passwordVisible ? "text" : "password",
|
8277
|
-
endIcon: /* @__PURE__ */
|
8290
|
+
endIcon: /* @__PURE__ */ import_react47.default.createElement(
|
8278
8291
|
"div",
|
8279
8292
|
{
|
8280
8293
|
className: "hawa-cursor-pointer",
|
8281
8294
|
onClick: () => setPasswordVisible(!passwordVisible)
|
8282
8295
|
},
|
8283
|
-
passwordVisible ? /* @__PURE__ */
|
8296
|
+
passwordVisible ? /* @__PURE__ */ import_react47.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react47.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
8284
8297
|
" "
|
8285
8298
|
)
|
8286
8299
|
}
|
8287
8300
|
)
|
8288
8301
|
)
|
8289
8302
|
},
|
8290
|
-
/* @__PURE__ */
|
8291
|
-
), /* @__PURE__ */
|
8303
|
+
/* @__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")))
|
8304
|
+
), /* @__PURE__ */ import_react47.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
8292
8305
|
};
|
8293
8306
|
|
8294
8307
|
// elements/slider/Slider.tsx
|
@@ -8403,12 +8416,12 @@ var Separator2 = ({
|
|
8403
8416
|
);
|
8404
8417
|
|
8405
8418
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
8406
|
-
var
|
8419
|
+
var import_react48 = __toESM(require("react"));
|
8407
8420
|
var ScrollIndicator = ({
|
8408
8421
|
anchor,
|
8409
8422
|
inContainer = false
|
8410
8423
|
}) => {
|
8411
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
8424
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react48.useState)(0);
|
8412
8425
|
const onScroll = () => {
|
8413
8426
|
const scrollElement = anchor.current;
|
8414
8427
|
if (scrollElement) {
|
@@ -8419,7 +8432,7 @@ var ScrollIndicator = ({
|
|
8419
8432
|
setScrollPercentage(percentageScrolled);
|
8420
8433
|
}
|
8421
8434
|
};
|
8422
|
-
(0,
|
8435
|
+
(0, import_react48.useEffect)(() => {
|
8423
8436
|
if (!anchor.current)
|
8424
8437
|
return;
|
8425
8438
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -8428,7 +8441,7 @@ var ScrollIndicator = ({
|
|
8428
8441
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
8429
8442
|
};
|
8430
8443
|
}, [anchor]);
|
8431
|
-
return /* @__PURE__ */
|
8444
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
8432
8445
|
"div",
|
8433
8446
|
{
|
8434
8447
|
style: {
|
@@ -8444,11 +8457,11 @@ var ScrollIndicator = ({
|
|
8444
8457
|
};
|
8445
8458
|
|
8446
8459
|
// elements/codeBlock/CodeBlock.tsx
|
8447
|
-
var
|
8460
|
+
var import_react49 = __toESM(require("react"));
|
8448
8461
|
var import_prism_react_renderer = require("prism-react-renderer");
|
8449
8462
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
8450
8463
|
require("prismjs/components/prism-bash");
|
8451
|
-
var CopyIcon = () => /* @__PURE__ */
|
8464
|
+
var CopyIcon = () => /* @__PURE__ */ import_react49.default.createElement(
|
8452
8465
|
"svg",
|
8453
8466
|
{
|
8454
8467
|
"aria-label": "Copy",
|
@@ -8461,8 +8474,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react48.default.createElement(
|
|
8461
8474
|
height: "1em",
|
8462
8475
|
width: "1em"
|
8463
8476
|
},
|
8464
|
-
/* @__PURE__ */
|
8465
|
-
/* @__PURE__ */
|
8477
|
+
/* @__PURE__ */ import_react49.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
8478
|
+
/* @__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" })
|
8466
8479
|
);
|
8467
8480
|
var CodeBlock = ({
|
8468
8481
|
tabs,
|
@@ -8476,7 +8489,7 @@ var CodeBlock = ({
|
|
8476
8489
|
...props
|
8477
8490
|
}) => {
|
8478
8491
|
const clipboard = useClipboard();
|
8479
|
-
const [selectedTab, setSelectedTab] = (0,
|
8492
|
+
const [selectedTab, setSelectedTab] = (0, import_react49.useState)(0);
|
8480
8493
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
8481
8494
|
let widthStyles = {
|
8482
8495
|
full: "hawa-w-full",
|
@@ -8484,7 +8497,7 @@ var CodeBlock = ({
|
|
8484
8497
|
sm: "hawa-w-full hawa-max-w-sm",
|
8485
8498
|
xs: "hawa-w-full hawa-max-w-xs"
|
8486
8499
|
};
|
8487
|
-
return /* @__PURE__ */
|
8500
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
8488
8501
|
"div",
|
8489
8502
|
{
|
8490
8503
|
className: cn(
|
@@ -8493,7 +8506,7 @@ var CodeBlock = ({
|
|
8493
8506
|
classNames == null ? void 0 : classNames.root
|
8494
8507
|
)
|
8495
8508
|
},
|
8496
|
-
fileName && /* @__PURE__ */
|
8509
|
+
fileName && /* @__PURE__ */ import_react49.default.createElement(
|
8497
8510
|
"div",
|
8498
8511
|
{
|
8499
8512
|
className: cn(
|
@@ -8502,7 +8515,7 @@ var CodeBlock = ({
|
|
8502
8515
|
classNames == null ? void 0 : classNames.fileName
|
8503
8516
|
)
|
8504
8517
|
},
|
8505
|
-
/* @__PURE__ */
|
8518
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8506
8519
|
"div",
|
8507
8520
|
{
|
8508
8521
|
className: cn(
|
@@ -8512,7 +8525,7 @@ var CodeBlock = ({
|
|
8512
8525
|
fileName
|
8513
8526
|
)
|
8514
8527
|
),
|
8515
|
-
tabs && /* @__PURE__ */
|
8528
|
+
tabs && /* @__PURE__ */ import_react49.default.createElement(
|
8516
8529
|
"div",
|
8517
8530
|
{
|
8518
8531
|
className: cn(
|
@@ -8521,7 +8534,7 @@ var CodeBlock = ({
|
|
8521
8534
|
classNames == null ? void 0 : classNames.tabs
|
8522
8535
|
)
|
8523
8536
|
},
|
8524
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
8537
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react49.default.createElement(
|
8525
8538
|
"div",
|
8526
8539
|
{
|
8527
8540
|
key: i,
|
@@ -8530,7 +8543,7 @@ var CodeBlock = ({
|
|
8530
8543
|
classNames == null ? void 0 : classNames.tab
|
8531
8544
|
)
|
8532
8545
|
},
|
8533
|
-
/* @__PURE__ */
|
8546
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8534
8547
|
"div",
|
8535
8548
|
{
|
8536
8549
|
onClick: () => setSelectedTab(i),
|
@@ -8542,7 +8555,7 @@ var CodeBlock = ({
|
|
8542
8555
|
)
|
8543
8556
|
))
|
8544
8557
|
),
|
8545
|
-
/* @__PURE__ */
|
8558
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8546
8559
|
"div",
|
8547
8560
|
{
|
8548
8561
|
className: cn(
|
@@ -8552,22 +8565,22 @@ var CodeBlock = ({
|
|
8552
8565
|
"hawa-overflow-y-auto"
|
8553
8566
|
)
|
8554
8567
|
},
|
8555
|
-
/* @__PURE__ */
|
8568
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8556
8569
|
"div",
|
8557
8570
|
{
|
8558
8571
|
className: cn(
|
8559
8572
|
"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"
|
8560
8573
|
)
|
8561
8574
|
},
|
8562
|
-
/* @__PURE__ */
|
8575
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8563
8576
|
Tooltip,
|
8564
8577
|
{
|
8565
8578
|
open: clipboard.copied,
|
8566
8579
|
side: "left",
|
8567
|
-
content: /* @__PURE__ */
|
8580
|
+
content: /* @__PURE__ */ import_react49.default.createElement("div", null, "Copied!"),
|
8568
8581
|
triggerProps: { asChild: true }
|
8569
8582
|
},
|
8570
|
-
/* @__PURE__ */
|
8583
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8571
8584
|
Button,
|
8572
8585
|
{
|
8573
8586
|
size: "smallIcon",
|
@@ -8575,18 +8588,18 @@ var CodeBlock = ({
|
|
8575
8588
|
variant: "outline",
|
8576
8589
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
8577
8590
|
},
|
8578
|
-
/* @__PURE__ */
|
8591
|
+
/* @__PURE__ */ import_react49.default.createElement(CopyIcon, null)
|
8579
8592
|
)
|
8580
8593
|
)
|
8581
8594
|
),
|
8582
|
-
/* @__PURE__ */
|
8595
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8583
8596
|
import_prism_react_renderer.Highlight,
|
8584
8597
|
{
|
8585
8598
|
theme,
|
8586
8599
|
code: tabs ? tabs[selectedTab].code : code || "",
|
8587
8600
|
language
|
8588
8601
|
},
|
8589
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
8602
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react49.default.createElement(
|
8590
8603
|
"pre",
|
8591
8604
|
{
|
8592
8605
|
className: cn(
|
@@ -8596,7 +8609,7 @@ var CodeBlock = ({
|
|
8596
8609
|
wrapText && "hawa-text-wrap"
|
8597
8610
|
)
|
8598
8611
|
},
|
8599
|
-
tokens.map((line, i) => /* @__PURE__ */
|
8612
|
+
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 }) }))))
|
8600
8613
|
)
|
8601
8614
|
)
|
8602
8615
|
)
|
@@ -8604,7 +8617,7 @@ var CodeBlock = ({
|
|
8604
8617
|
};
|
8605
8618
|
|
8606
8619
|
// elements/carousel/Carousel.tsx
|
8607
|
-
var
|
8620
|
+
var import_react50 = __toESM(require("react"));
|
8608
8621
|
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
8609
8622
|
var Carousel = ({
|
8610
8623
|
items,
|
@@ -8620,8 +8633,8 @@ var Carousel = ({
|
|
8620
8633
|
direction,
|
8621
8634
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
8622
8635
|
});
|
8623
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
8624
|
-
(0,
|
8636
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react50.useState)(0);
|
8637
|
+
(0, import_react50.useEffect)(() => {
|
8625
8638
|
function selectHandler() {
|
8626
8639
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
8627
8640
|
setSelectedIndex(index || 0);
|
@@ -8631,7 +8644,7 @@ var Carousel = ({
|
|
8631
8644
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
8632
8645
|
};
|
8633
8646
|
}, [emblaApi]);
|
8634
|
-
(0,
|
8647
|
+
(0, import_react50.useEffect)(() => {
|
8635
8648
|
let autoplayTimer;
|
8636
8649
|
if (autoplay && emblaApi) {
|
8637
8650
|
autoplayTimer = setInterval(() => {
|
@@ -8643,17 +8656,17 @@ var Carousel = ({
|
|
8643
8656
|
clearInterval(autoplayTimer);
|
8644
8657
|
};
|
8645
8658
|
}, [emblaApi, autoplay, autoplayInterval]);
|
8646
|
-
const length =
|
8659
|
+
const length = import_react50.default.Children.count(items);
|
8647
8660
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
8648
8661
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
8649
|
-
return /* @__PURE__ */
|
8662
|
+
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(
|
8650
8663
|
"div",
|
8651
8664
|
{
|
8652
8665
|
key: i,
|
8653
8666
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
8654
8667
|
},
|
8655
8668
|
item
|
8656
|
-
))))), /* @__PURE__ */
|
8669
|
+
))))), /* @__PURE__ */ import_react50.default.createElement(
|
8657
8670
|
Dots,
|
8658
8671
|
{
|
8659
8672
|
direction,
|
@@ -8661,7 +8674,7 @@ var Carousel = ({
|
|
8661
8674
|
selectedIndex,
|
8662
8675
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
8663
8676
|
}
|
8664
|
-
), showArrows && /* @__PURE__ */
|
8677
|
+
), showArrows && /* @__PURE__ */ import_react50.default.createElement(
|
8665
8678
|
CarouselControls,
|
8666
8679
|
{
|
8667
8680
|
canScrollNext,
|
@@ -8678,7 +8691,7 @@ var Dots = ({
|
|
8678
8691
|
direction
|
8679
8692
|
}) => {
|
8680
8693
|
const arr = new Array(itemsLength).fill(0);
|
8681
|
-
return /* @__PURE__ */
|
8694
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
8682
8695
|
"div",
|
8683
8696
|
{
|
8684
8697
|
dir: direction,
|
@@ -8686,7 +8699,7 @@ var Dots = ({
|
|
8686
8699
|
},
|
8687
8700
|
arr.map((_, index) => {
|
8688
8701
|
const selected = index === selectedIndex;
|
8689
|
-
return /* @__PURE__ */
|
8702
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
8690
8703
|
"div",
|
8691
8704
|
{
|
8692
8705
|
key: index,
|
@@ -8701,7 +8714,7 @@ var Dots = ({
|
|
8701
8714
|
);
|
8702
8715
|
};
|
8703
8716
|
var CarouselControls = (props) => {
|
8704
|
-
return /* @__PURE__ */
|
8717
|
+
return /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react50.default.createElement(
|
8705
8718
|
"button",
|
8706
8719
|
{
|
8707
8720
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -8712,7 +8725,7 @@ var CarouselControls = (props) => {
|
|
8712
8725
|
props.canScrollPrev && "hawa-bg-primary"
|
8713
8726
|
)
|
8714
8727
|
},
|
8715
|
-
/* @__PURE__ */
|
8728
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8716
8729
|
"svg",
|
8717
8730
|
{
|
8718
8731
|
"aria-label": "Chevron Right Icon",
|
@@ -8721,9 +8734,9 @@ var CarouselControls = (props) => {
|
|
8721
8734
|
viewBox: "0 0 16 16",
|
8722
8735
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
8723
8736
|
},
|
8724
|
-
/* @__PURE__ */
|
8737
|
+
/* @__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" })
|
8725
8738
|
)
|
8726
|
-
), /* @__PURE__ */
|
8739
|
+
), /* @__PURE__ */ import_react50.default.createElement(
|
8727
8740
|
"button",
|
8728
8741
|
{
|
8729
8742
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -8734,7 +8747,7 @@ var CarouselControls = (props) => {
|
|
8734
8747
|
props.canScrollNext && "hawa-bg-primary"
|
8735
8748
|
)
|
8736
8749
|
},
|
8737
|
-
/* @__PURE__ */
|
8750
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8738
8751
|
"svg",
|
8739
8752
|
{
|
8740
8753
|
"aria-label": "Chevron Right Icon",
|
@@ -8743,15 +8756,15 @@ var CarouselControls = (props) => {
|
|
8743
8756
|
viewBox: "0 0 16 16",
|
8744
8757
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
8745
8758
|
},
|
8746
|
-
/* @__PURE__ */
|
8759
|
+
/* @__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" })
|
8747
8760
|
)
|
8748
8761
|
));
|
8749
8762
|
};
|
8750
8763
|
|
8751
8764
|
// elements/count/Count.tsx
|
8752
|
-
var
|
8765
|
+
var import_react51 = __toESM(require("react"));
|
8753
8766
|
var Count = (props) => {
|
8754
|
-
return /* @__PURE__ */
|
8767
|
+
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));
|
8755
8768
|
};
|
8756
8769
|
|
8757
8770
|
// elements/toast/Toast.tsx
|
@@ -8892,11 +8905,11 @@ var ToastDescription = React67.forwardRef(({ className, size = "default", ...pro
|
|
8892
8905
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
8893
8906
|
|
8894
8907
|
// elements/toaster/Toaster.tsx
|
8895
|
-
var
|
8908
|
+
var import_react52 = __toESM(require("react"));
|
8896
8909
|
function Toaster(props) {
|
8897
8910
|
var _a;
|
8898
8911
|
let isRTL = props.direction === "rtl";
|
8899
|
-
return /* @__PURE__ */
|
8912
|
+
return /* @__PURE__ */ import_react52.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8900
8913
|
id,
|
8901
8914
|
title,
|
8902
8915
|
description,
|
@@ -8904,7 +8917,7 @@ function Toaster(props) {
|
|
8904
8917
|
action,
|
8905
8918
|
...toastProps
|
8906
8919
|
}) {
|
8907
|
-
return /* @__PURE__ */
|
8920
|
+
return /* @__PURE__ */ import_react52.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react52.default.createElement(
|
8908
8921
|
"div",
|
8909
8922
|
{
|
8910
8923
|
className: cn(
|
@@ -8912,9 +8925,9 @@ function Toaster(props) {
|
|
8912
8925
|
action && "hawa-justify-between"
|
8913
8926
|
)
|
8914
8927
|
},
|
8915
|
-
/* @__PURE__ */
|
8916
|
-
/* @__PURE__ */
|
8917
|
-
/* @__PURE__ */
|
8928
|
+
/* @__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)),
|
8929
|
+
/* @__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" }),
|
8930
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8918
8931
|
"div",
|
8919
8932
|
{
|
8920
8933
|
className: cn(
|
@@ -8922,11 +8935,11 @@ function Toaster(props) {
|
|
8922
8935
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8923
8936
|
)
|
8924
8937
|
},
|
8925
|
-
/* @__PURE__ */
|
8926
|
-
action && /* @__PURE__ */
|
8938
|
+
/* @__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)),
|
8939
|
+
action && /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8927
8940
|
)
|
8928
8941
|
));
|
8929
|
-
}), /* @__PURE__ */
|
8942
|
+
}), /* @__PURE__ */ import_react52.default.createElement(
|
8930
8943
|
ToastViewport,
|
8931
8944
|
{
|
8932
8945
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8935,20 +8948,20 @@ function Toaster(props) {
|
|
8935
8948
|
}
|
8936
8949
|
|
8937
8950
|
// elements/destroyableCard/DestroyableCard.tsx
|
8938
|
-
var
|
8951
|
+
var import_react53 = __toESM(require("react"));
|
8939
8952
|
var DestroyableCard = ({
|
8940
8953
|
position = "bottom-right",
|
8941
8954
|
fixed,
|
8942
8955
|
direction,
|
8943
8956
|
...props
|
8944
8957
|
}) => {
|
8945
|
-
const [closed, setClosed] = (0,
|
8946
|
-
const popUpRef = (0,
|
8958
|
+
const [closed, setClosed] = (0, import_react53.useState)(false);
|
8959
|
+
const popUpRef = (0, import_react53.useRef)(null);
|
8947
8960
|
const boxPosition = {
|
8948
8961
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8949
8962
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8950
8963
|
};
|
8951
|
-
return /* @__PURE__ */
|
8964
|
+
return /* @__PURE__ */ import_react53.default.createElement(
|
8952
8965
|
"div",
|
8953
8966
|
{
|
8954
8967
|
className: cn(
|
@@ -8957,7 +8970,7 @@ var DestroyableCard = ({
|
|
8957
8970
|
),
|
8958
8971
|
ref: popUpRef
|
8959
8972
|
},
|
8960
|
-
/* @__PURE__ */
|
8973
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8961
8974
|
Card,
|
8962
8975
|
{
|
8963
8976
|
className: cn(
|
@@ -8966,7 +8979,7 @@ var DestroyableCard = ({
|
|
8966
8979
|
),
|
8967
8980
|
dir: direction
|
8968
8981
|
},
|
8969
|
-
/* @__PURE__ */
|
8982
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8970
8983
|
"button",
|
8971
8984
|
{
|
8972
8985
|
type: "button",
|
@@ -8985,7 +8998,7 @@ var DestroyableCard = ({
|
|
8985
8998
|
}, 200);
|
8986
8999
|
}
|
8987
9000
|
},
|
8988
|
-
/* @__PURE__ */
|
9001
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8989
9002
|
"svg",
|
8990
9003
|
{
|
8991
9004
|
"aria-hidden": "true",
|
@@ -8993,7 +9006,7 @@ var DestroyableCard = ({
|
|
8993
9006
|
fill: "currentColor",
|
8994
9007
|
viewBox: "0 0 20 20"
|
8995
9008
|
},
|
8996
|
-
/* @__PURE__ */
|
9009
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8997
9010
|
"path",
|
8998
9011
|
{
|
8999
9012
|
fillRule: "evenodd",
|
@@ -9003,13 +9016,13 @@ var DestroyableCard = ({
|
|
9003
9016
|
)
|
9004
9017
|
)
|
9005
9018
|
),
|
9006
|
-
/* @__PURE__ */
|
9019
|
+
/* @__PURE__ */ import_react53.default.createElement(CardContent, { headless: true }, props.children)
|
9007
9020
|
)
|
9008
9021
|
);
|
9009
9022
|
};
|
9010
9023
|
|
9011
9024
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
9012
|
-
var
|
9025
|
+
var import_react54 = __toESM(require("react"));
|
9013
9026
|
var InterfaceSettings = ({
|
9014
9027
|
orientation = "horizontal",
|
9015
9028
|
width = "default",
|
@@ -9017,13 +9030,13 @@ var InterfaceSettings = ({
|
|
9017
9030
|
handleLanguage,
|
9018
9031
|
...props
|
9019
9032
|
}) => {
|
9020
|
-
const [color, setColor] = (0,
|
9021
|
-
const [language, setLanguage] = (0,
|
9033
|
+
const [color, setColor] = (0, import_react54.useState)(props.currentColorMode);
|
9034
|
+
const [language, setLanguage] = (0, import_react54.useState)(props.currentLanguage);
|
9022
9035
|
let orientationStyle = {
|
9023
9036
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
9024
9037
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
9025
9038
|
};
|
9026
|
-
return /* @__PURE__ */
|
9039
|
+
return /* @__PURE__ */ import_react54.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react54.default.createElement(
|
9027
9040
|
Radio,
|
9028
9041
|
{
|
9029
9042
|
name: "language",
|
@@ -9041,7 +9054,7 @@ var InterfaceSettings = ({
|
|
9041
9054
|
{ value: "en", label: "English" }
|
9042
9055
|
]
|
9043
9056
|
}
|
9044
|
-
), /* @__PURE__ */
|
9057
|
+
), /* @__PURE__ */ import_react54.default.createElement(
|
9045
9058
|
Radio,
|
9046
9059
|
{
|
9047
9060
|
name: "theme",
|
@@ -9057,7 +9070,7 @@ var InterfaceSettings = ({
|
|
9057
9070
|
options: [
|
9058
9071
|
{
|
9059
9072
|
value: "light",
|
9060
|
-
label: /* @__PURE__ */
|
9073
|
+
label: /* @__PURE__ */ import_react54.default.createElement(
|
9061
9074
|
"svg",
|
9062
9075
|
{
|
9063
9076
|
width: "15",
|
@@ -9067,7 +9080,7 @@ var InterfaceSettings = ({
|
|
9067
9080
|
xmlns: "http://www.w3.org/2000/svg",
|
9068
9081
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
9069
9082
|
},
|
9070
|
-
/* @__PURE__ */
|
9083
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
9071
9084
|
"path",
|
9072
9085
|
{
|
9073
9086
|
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",
|
@@ -9078,7 +9091,7 @@ var InterfaceSettings = ({
|
|
9078
9091
|
},
|
9079
9092
|
{
|
9080
9093
|
value: "dark",
|
9081
|
-
label: /* @__PURE__ */
|
9094
|
+
label: /* @__PURE__ */ import_react54.default.createElement(
|
9082
9095
|
"svg",
|
9083
9096
|
{
|
9084
9097
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9089,7 +9102,7 @@ var InterfaceSettings = ({
|
|
9089
9102
|
stroke: "currentColor",
|
9090
9103
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
9091
9104
|
},
|
9092
|
-
/* @__PURE__ */
|
9105
|
+
/* @__PURE__ */ import_react54.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
9093
9106
|
)
|
9094
9107
|
}
|
9095
9108
|
]
|
@@ -9098,17 +9111,17 @@ var InterfaceSettings = ({
|
|
9098
9111
|
};
|
9099
9112
|
|
9100
9113
|
// elements/phoneMockup/PhoneMockup.tsx
|
9101
|
-
var
|
9114
|
+
var import_react55 = __toESM(require("react"));
|
9102
9115
|
var PhoneMockup = ({
|
9103
9116
|
children,
|
9104
9117
|
upperOverlayGradiant,
|
9105
9118
|
lowerOverlayGradiant,
|
9106
9119
|
phone,
|
9107
9120
|
hideButtons
|
9108
|
-
}) => /* @__PURE__ */
|
9121
|
+
}) => /* @__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)]" }));
|
9109
9122
|
|
9110
9123
|
// layout/stats/Stats.tsx
|
9111
|
-
var
|
9124
|
+
var import_react56 = __toESM(require("react"));
|
9112
9125
|
var Stats = ({
|
9113
9126
|
label,
|
9114
9127
|
icon,
|
@@ -9127,7 +9140,7 @@ var Stats = ({
|
|
9127
9140
|
negative: "hawa-text-red-600 dark:hawa-text-red-500",
|
9128
9141
|
muted: "hawa-text-muted-foreground"
|
9129
9142
|
};
|
9130
|
-
return /* @__PURE__ */
|
9143
|
+
return /* @__PURE__ */ import_react56.default.createElement(Card, { ...props, clickable }, /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between hawa-p-4 hawa-px-6" }, /* @__PURE__ */ import_react56.default.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, label), icon && /* @__PURE__ */ import_react56.default.createElement("span", null, icon)), /* @__PURE__ */ import_react56.default.createElement(CardContent, { className: "hawa-transition-all" }, isLoading ? /* @__PURE__ */ import_react56.default.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, number), helperText && /* @__PURE__ */ import_react56.default.createElement(
|
9131
9144
|
"div",
|
9132
9145
|
{
|
9133
9146
|
className: cn(
|
@@ -9136,8 +9149,8 @@ var Stats = ({
|
|
9136
9149
|
helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
9137
9150
|
)
|
9138
9151
|
},
|
9139
|
-
isLoading ? /* @__PURE__ */
|
9140
|
-
), chart && (isLoading ? /* @__PURE__ */
|
9152
|
+
isLoading ? /* @__PURE__ */ import_react56.default.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : helperText
|
9153
|
+
), chart && (isLoading ? /* @__PURE__ */ import_react56.default.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : chart)));
|
9141
9154
|
};
|
9142
9155
|
|
9143
9156
|
// layout/sidebar/Sidebar.tsx
|
@@ -9353,13 +9366,13 @@ var SidebarItem = ({
|
|
9353
9366
|
};
|
9354
9367
|
|
9355
9368
|
// layout/copyrights/Copyrights.tsx
|
9356
|
-
var
|
9369
|
+
var import_react57 = __toESM(require("react"));
|
9357
9370
|
var Copyrights = (props) => {
|
9358
|
-
return /* @__PURE__ */
|
9371
|
+
return /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400" }, props.withLogo ? /* @__PURE__ */ import_react57.default.createElement("a", { href: props.onLogoClicked }, /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-cursor-pointer" }, /* @__PURE__ */ import_react57.default.createElement("image", { href: props.logoURL, width: 100, height: 50 }))) : null, /* @__PURE__ */ import_react57.default.createElement("div", null, props.version), props.credits ? props.credits : null);
|
9359
9372
|
};
|
9360
9373
|
|
9361
9374
|
// layout/navbar/Navbar.tsx
|
9362
|
-
var
|
9375
|
+
var import_react58 = __toESM(require("react"));
|
9363
9376
|
|
9364
9377
|
// elements/collapsible/Collapsible.tsx
|
9365
9378
|
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
|
@@ -9375,14 +9388,14 @@ var Navbar = ({
|
|
9375
9388
|
...props
|
9376
9389
|
}) => {
|
9377
9390
|
var _a, _b;
|
9378
|
-
const [isOpen, setIsOpen] = (0,
|
9379
|
-
return /* @__PURE__ */
|
9391
|
+
const [isOpen, setIsOpen] = (0, import_react58.useState)(false);
|
9392
|
+
return /* @__PURE__ */ import_react58.default.createElement("nav", { className: " hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ import_react58.default.createElement(
|
9380
9393
|
Collapsible,
|
9381
9394
|
{
|
9382
9395
|
className: "hawa-relative hawa-m-2 hawa-rounded hawa-p-2",
|
9383
9396
|
style: { backgroundColor: backgroundColor || "#1f2937" }
|
9384
9397
|
},
|
9385
|
-
/* @__PURE__ */
|
9398
|
+
/* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between hawa-px-3 " }, /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ import_react58.default.createElement(
|
9386
9399
|
"div",
|
9387
9400
|
{
|
9388
9401
|
className: "hawa-p-1.5 hawa-text-xl hawa-font-bold hawa-text-white",
|
@@ -9393,7 +9406,7 @@ var Navbar = ({
|
|
9393
9406
|
}
|
9394
9407
|
},
|
9395
9408
|
logo
|
9396
|
-
)), /* @__PURE__ */
|
9409
|
+
)), /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-hidden md:hawa-flex " }, (_a = props.menuItems) == null ? void 0 : _a.map((item, i) => /* @__PURE__ */ import_react58.default.createElement(
|
9397
9410
|
"div",
|
9398
9411
|
{
|
9399
9412
|
key: i,
|
@@ -9401,14 +9414,14 @@ var Navbar = ({
|
|
9401
9414
|
className: "hawa-cursor-pointer hawa-rounded hawa-p-1.5 hawa-px-2 hawa-text-center hawa-text-sm hawa-text-white hawa-transition-all hover:hawa-bg-gray-300 hover:hawa-text-black"
|
9402
9415
|
},
|
9403
9416
|
item.label
|
9404
|
-
))), /* @__PURE__ */
|
9417
|
+
))), /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-m-0 hawa-flex hawa-h-fit hawa-p-0 md:hawa-hidden" }, /* @__PURE__ */ import_react58.default.createElement(
|
9405
9418
|
CollapsibleTrigger2,
|
9406
9419
|
{
|
9407
9420
|
onClick: () => setIsOpen(!isOpen),
|
9408
9421
|
className: "hawa-h-full hawa-text-white selection:hawa-p-0 ",
|
9409
9422
|
"aria-label": "Toggle menu"
|
9410
9423
|
},
|
9411
|
-
/* @__PURE__ */
|
9424
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
9412
9425
|
"svg",
|
9413
9426
|
{
|
9414
9427
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9425,11 +9438,11 @@ var Navbar = ({
|
|
9425
9438
|
isOpen ? "hawa-invisible" : "hawa-visible"
|
9426
9439
|
)
|
9427
9440
|
},
|
9428
|
-
/* @__PURE__ */
|
9429
|
-
/* @__PURE__ */
|
9430
|
-
/* @__PURE__ */
|
9441
|
+
/* @__PURE__ */ import_react58.default.createElement("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
9442
|
+
/* @__PURE__ */ import_react58.default.createElement("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
9443
|
+
/* @__PURE__ */ import_react58.default.createElement("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
9431
9444
|
),
|
9432
|
-
/* @__PURE__ */
|
9445
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
9433
9446
|
"svg",
|
9434
9447
|
{
|
9435
9448
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9446,11 +9459,11 @@ var Navbar = ({
|
|
9446
9459
|
!isOpen ? "hawa-invisible" : "hawa-visible"
|
9447
9460
|
)
|
9448
9461
|
},
|
9449
|
-
/* @__PURE__ */
|
9450
|
-
/* @__PURE__ */
|
9462
|
+
/* @__PURE__ */ import_react58.default.createElement("path", { d: "M18 6 6 18" }),
|
9463
|
+
/* @__PURE__ */ import_react58.default.createElement("path", { d: "m6 6 12 12" })
|
9451
9464
|
)
|
9452
9465
|
))),
|
9453
|
-
/* @__PURE__ */
|
9466
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
9454
9467
|
CollapsibleContent2,
|
9455
9468
|
{
|
9456
9469
|
className: cn(
|
@@ -9465,7 +9478,7 @@ var Navbar = ({
|
|
9465
9478
|
zIndex: -100
|
9466
9479
|
}
|
9467
9480
|
},
|
9468
|
-
(_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */
|
9481
|
+
(_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */ import_react58.default.createElement(
|
9469
9482
|
"div",
|
9470
9483
|
{
|
9471
9484
|
key: i,
|
@@ -9479,7 +9492,7 @@ var Navbar = ({
|
|
9479
9492
|
};
|
9480
9493
|
|
9481
9494
|
// layout/appLayout/AppLayout.tsx
|
9482
|
-
var
|
9495
|
+
var import_react59 = __toESM(require("react"));
|
9483
9496
|
var Dialog3 = __toESM(require("@radix-ui/react-dialog"));
|
9484
9497
|
var LOCAL_STORAGE_KEY2 = "@sikka/hawa/keep-drawer-open";
|
9485
9498
|
var AppLayout = ({
|
@@ -9498,7 +9511,7 @@ var AppLayout = ({
|
|
9498
9511
|
...props
|
9499
9512
|
}) => {
|
9500
9513
|
var _a, _b;
|
9501
|
-
(0,
|
9514
|
+
(0, import_react59.useEffect)(() => {
|
9502
9515
|
let isDrawerOpen = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9503
9516
|
if (isDrawerOpen === null) {
|
9504
9517
|
localStorage.setItem(LOCAL_STORAGE_KEY2, JSON.stringify(false));
|
@@ -9515,16 +9528,16 @@ var AppLayout = ({
|
|
9515
9528
|
}
|
9516
9529
|
};
|
9517
9530
|
const isRTL = direction === "rtl";
|
9518
|
-
const [openedSidebarItem, setOpenedSidebarItem] = (0,
|
9519
|
-
const [size, setSize] = (0,
|
9531
|
+
const [openedSidebarItem, setOpenedSidebarItem] = (0, import_react59.useState)("");
|
9532
|
+
const [size, setSize] = (0, import_react59.useState)(
|
9520
9533
|
typeof window !== "undefined" && window.innerWidth || 1200
|
9521
9534
|
);
|
9522
|
-
const [openSideMenu, setOpenSideMenu] = (0,
|
9535
|
+
const [openSideMenu, setOpenSideMenu] = (0, import_react59.useState)(() => {
|
9523
9536
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9524
9537
|
return savedState ? JSON.parse(savedState) : false;
|
9525
9538
|
});
|
9526
|
-
const [container, setContainer] =
|
9527
|
-
const [keepDrawerOpen, setKeepDrawerOpen] = (0,
|
9539
|
+
const [container, setContainer] = import_react59.default.useState(null);
|
9540
|
+
const [keepDrawerOpen, setKeepDrawerOpen] = (0, import_react59.useState)(() => {
|
9528
9541
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9529
9542
|
return savedState ? JSON.parse(savedState) : false;
|
9530
9543
|
});
|
@@ -9537,7 +9550,7 @@ var AppLayout = ({
|
|
9537
9550
|
}
|
9538
9551
|
};
|
9539
9552
|
const ref = useClickOutside(handleClickOutside);
|
9540
|
-
(0,
|
9553
|
+
(0, import_react59.useEffect)(() => {
|
9541
9554
|
if (typeof window !== "undefined") {
|
9542
9555
|
const resize = () => {
|
9543
9556
|
setSize(window.innerWidth);
|
@@ -9554,13 +9567,13 @@ var AppLayout = ({
|
|
9554
9567
|
};
|
9555
9568
|
}
|
9556
9569
|
}, []);
|
9557
|
-
(0,
|
9570
|
+
(0, import_react59.useEffect)(() => {
|
9558
9571
|
setKeepDrawerOpen(() => {
|
9559
9572
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9560
9573
|
return savedState ? JSON.parse(savedState) : true;
|
9561
9574
|
});
|
9562
9575
|
}, [setKeepDrawerOpen]);
|
9563
|
-
(0,
|
9576
|
+
(0, import_react59.useEffect)(() => {
|
9564
9577
|
if (size > 600) {
|
9565
9578
|
setOpenSideMenu(keepDrawerOpen);
|
9566
9579
|
} else {
|
@@ -9569,7 +9582,7 @@ var AppLayout = ({
|
|
9569
9582
|
}
|
9570
9583
|
}, [size, keepDrawerOpen]);
|
9571
9584
|
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
9572
|
-
return /* @__PURE__ */
|
9585
|
+
return /* @__PURE__ */ import_react59.default.createElement("div", { className: "hawa-fixed hawa-start-0" }, props.topBar && /* @__PURE__ */ import_react59.default.createElement(
|
9573
9586
|
"div",
|
9574
9587
|
{
|
9575
9588
|
dir: direction,
|
@@ -9578,7 +9591,7 @@ var AppLayout = ({
|
|
9578
9591
|
bordered && "hawa-border-b-[1px]"
|
9579
9592
|
)
|
9580
9593
|
},
|
9581
|
-
size > 600 ? /* @__PURE__ */
|
9594
|
+
size > 600 ? /* @__PURE__ */ import_react59.default.createElement(
|
9582
9595
|
"div",
|
9583
9596
|
{
|
9584
9597
|
className: cn(
|
@@ -9592,24 +9605,24 @@ var AppLayout = ({
|
|
9592
9605
|
props.pageTitle
|
9593
9606
|
) : (
|
9594
9607
|
// Mobile Drawer Menu Button
|
9595
|
-
/* @__PURE__ */
|
9608
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9596
9609
|
"div",
|
9597
9610
|
{
|
9598
9611
|
dir: direction,
|
9599
9612
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
9600
9613
|
},
|
9601
|
-
/* @__PURE__ */
|
9614
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9602
9615
|
"div",
|
9603
9616
|
{
|
9604
9617
|
onClick: () => setOpenSideMenu(true),
|
9605
9618
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all "
|
9606
9619
|
},
|
9607
|
-
/* @__PURE__ */
|
9620
|
+
/* @__PURE__ */ import_react59.default.createElement(MenuIcon, null)
|
9608
9621
|
),
|
9609
|
-
props.pageTitle ? /* @__PURE__ */
|
9622
|
+
props.pageTitle ? /* @__PURE__ */ import_react59.default.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ import_react59.default.createElement("div", null)
|
9610
9623
|
)
|
9611
9624
|
),
|
9612
|
-
/* @__PURE__ */
|
9625
|
+
/* @__PURE__ */ import_react59.default.createElement("div", { className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white") }, size > 600 ? /* @__PURE__ */ import_react59.default.createElement("div", { className: "hawa-text-end hawa-text-xs" }, /* @__PURE__ */ import_react59.default.createElement("div", { className: "hawa-font-bold" }, props.username), " ", /* @__PURE__ */ import_react59.default.createElement("div", null, props.email)) : null, /* @__PURE__ */ import_react59.default.createElement(
|
9613
9626
|
DropdownMenu,
|
9614
9627
|
{
|
9615
9628
|
LinkComponent: MenuLinkComponent,
|
@@ -9621,13 +9634,13 @@ var AppLayout = ({
|
|
9621
9634
|
direction,
|
9622
9635
|
items: props.profileMenuItems || [],
|
9623
9636
|
onItemSelect: (e) => console.log("selecting item ", e),
|
9624
|
-
trigger: /* @__PURE__ */
|
9637
|
+
trigger: /* @__PURE__ */ import_react59.default.createElement(
|
9625
9638
|
"div",
|
9626
9639
|
{
|
9627
9640
|
onClick: onAvatarClick,
|
9628
9641
|
className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600"
|
9629
9642
|
},
|
9630
|
-
props.avatarImage ? /* @__PURE__ */
|
9643
|
+
props.avatarImage ? /* @__PURE__ */ import_react59.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react59.default.createElement(
|
9631
9644
|
"svg",
|
9632
9645
|
{
|
9633
9646
|
"aria-label": "Avatar Icon",
|
@@ -9635,7 +9648,7 @@ var AppLayout = ({
|
|
9635
9648
|
fill: "currentColor",
|
9636
9649
|
viewBox: "0 0 20 20"
|
9637
9650
|
},
|
9638
|
-
/* @__PURE__ */
|
9651
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9639
9652
|
"path",
|
9640
9653
|
{
|
9641
9654
|
fillRule: "evenodd",
|
@@ -9647,7 +9660,7 @@ var AppLayout = ({
|
|
9647
9660
|
)
|
9648
9661
|
}
|
9649
9662
|
))
|
9650
|
-
), /* @__PURE__ */
|
9663
|
+
), /* @__PURE__ */ import_react59.default.createElement("div", { ref: setContainer }, /* @__PURE__ */ import_react59.default.createElement(
|
9651
9664
|
"div",
|
9652
9665
|
{
|
9653
9666
|
className: cn(
|
@@ -9673,7 +9686,7 @@ var AppLayout = ({
|
|
9673
9686
|
},
|
9674
9687
|
ref
|
9675
9688
|
},
|
9676
|
-
/* @__PURE__ */
|
9689
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9677
9690
|
"div",
|
9678
9691
|
{
|
9679
9692
|
onClick: props.onLogoClick,
|
@@ -9688,7 +9701,7 @@ var AppLayout = ({
|
|
9688
9701
|
}
|
9689
9702
|
},
|
9690
9703
|
openSideMenu && props.header && props.header,
|
9691
|
-
!props.header && /* @__PURE__ */
|
9704
|
+
!props.header && /* @__PURE__ */ import_react59.default.createElement(
|
9692
9705
|
"img",
|
9693
9706
|
{
|
9694
9707
|
src: props.logoLink,
|
@@ -9699,7 +9712,7 @@ var AppLayout = ({
|
|
9699
9712
|
)
|
9700
9713
|
}
|
9701
9714
|
),
|
9702
|
-
size > 600 ? /* @__PURE__ */
|
9715
|
+
size > 600 ? /* @__PURE__ */ import_react59.default.createElement(
|
9703
9716
|
"img",
|
9704
9717
|
{
|
9705
9718
|
src: props.logoSymbol,
|
@@ -9711,7 +9724,7 @@ var AppLayout = ({
|
|
9711
9724
|
}
|
9712
9725
|
) : null
|
9713
9726
|
),
|
9714
|
-
/* @__PURE__ */
|
9727
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9715
9728
|
"div",
|
9716
9729
|
{
|
9717
9730
|
className: cn(
|
@@ -9722,7 +9735,7 @@ var AppLayout = ({
|
|
9722
9735
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
9723
9736
|
}
|
9724
9737
|
},
|
9725
|
-
/* @__PURE__ */
|
9738
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9726
9739
|
SidebarGroup,
|
9727
9740
|
{
|
9728
9741
|
direction,
|
@@ -9737,7 +9750,7 @@ var AppLayout = ({
|
|
9737
9750
|
}
|
9738
9751
|
)
|
9739
9752
|
),
|
9740
|
-
/* @__PURE__ */
|
9753
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9741
9754
|
"div",
|
9742
9755
|
{
|
9743
9756
|
className: cn(
|
@@ -9748,8 +9761,8 @@ var AppLayout = ({
|
|
9748
9761
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
9749
9762
|
}
|
9750
9763
|
},
|
9751
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
9752
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
9764
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ import_react59.default.createElement(import_react59.default.Fragment, null, DrawerFooterActions) : null,
|
9765
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ import_react59.default.createElement(
|
9753
9766
|
Tooltip,
|
9754
9767
|
{
|
9755
9768
|
side: "left",
|
@@ -9757,7 +9770,7 @@ var AppLayout = ({
|
|
9757
9770
|
triggerProps: { asChild: true },
|
9758
9771
|
content: keepDrawerOpen ? ((_a = props.texts) == null ? void 0 : _a.collapseSidebar) || "Collapse Sidebar" : ((_b = props.texts) == null ? void 0 : _b.expandSidebar) || "Expand Sidebar"
|
9759
9772
|
},
|
9760
|
-
/* @__PURE__ */
|
9773
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9761
9774
|
Button,
|
9762
9775
|
{
|
9763
9776
|
variant: "outline",
|
@@ -9771,7 +9784,7 @@ var AppLayout = ({
|
|
9771
9784
|
setKeepDrawerOpen(newKeepOpenState);
|
9772
9785
|
}
|
9773
9786
|
},
|
9774
|
-
/* @__PURE__ */
|
9787
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9775
9788
|
"svg",
|
9776
9789
|
{
|
9777
9790
|
className: cn(
|
@@ -9781,7 +9794,7 @@ var AppLayout = ({
|
|
9781
9794
|
fill: "currentColor",
|
9782
9795
|
viewBox: "0 0 20 20"
|
9783
9796
|
},
|
9784
|
-
/* @__PURE__ */
|
9797
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9785
9798
|
"path",
|
9786
9799
|
{
|
9787
9800
|
fillRule: "evenodd",
|
@@ -9793,14 +9806,14 @@ var AppLayout = ({
|
|
9793
9806
|
)
|
9794
9807
|
) : null
|
9795
9808
|
)
|
9796
|
-
)), /* @__PURE__ */
|
9809
|
+
)), /* @__PURE__ */ import_react59.default.createElement(
|
9797
9810
|
Dialog3.Root,
|
9798
9811
|
{
|
9799
9812
|
open: size < 600 && openSideMenu,
|
9800
9813
|
onOpenChange: setOpenSideMenu
|
9801
9814
|
},
|
9802
|
-
/* @__PURE__ */
|
9803
|
-
), /* @__PURE__ */
|
9815
|
+
/* @__PURE__ */ import_react59.default.createElement(Dialog3.Portal, { container }, /* @__PURE__ */ import_react59.default.createElement(Dialog3.Overlay, { className: "hawa-fixed hawa-inset-0 hawa-bg-foreground/20 hawa-backdrop-blur-[2px] data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out hawa-z-10 data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0" }))
|
9816
|
+
), /* @__PURE__ */ import_react59.default.createElement(
|
9804
9817
|
"div",
|
9805
9818
|
{
|
9806
9819
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all hawa-z-0",
|
@@ -9821,11 +9834,11 @@ var AppLayout = ({
|
|
9821
9834
|
};
|
9822
9835
|
|
9823
9836
|
// layout/appTopbar/AppTopbar.tsx
|
9824
|
-
var
|
9837
|
+
var import_react60 = __toESM(require("react"));
|
9825
9838
|
var AppTopbar = ({ ...props }) => {
|
9826
9839
|
const isRTL = props.direction === "ltr";
|
9827
9840
|
const size = 1200;
|
9828
|
-
return /* @__PURE__ */
|
9841
|
+
return /* @__PURE__ */ import_react60.default.createElement(
|
9829
9842
|
"div",
|
9830
9843
|
{
|
9831
9844
|
className: cn(
|
@@ -9833,24 +9846,24 @@ var AppTopbar = ({ ...props }) => {
|
|
9833
9846
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9834
9847
|
)
|
9835
9848
|
},
|
9836
|
-
size > 600 ? /* @__PURE__ */
|
9849
|
+
size > 600 ? /* @__PURE__ */ import_react60.default.createElement(
|
9837
9850
|
"div",
|
9838
9851
|
null,
|
9839
9852
|
"page title"
|
9840
9853
|
) : (
|
9841
9854
|
// Mobile Drawer Menu Button
|
9842
|
-
/* @__PURE__ */
|
9855
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9843
9856
|
"div",
|
9844
9857
|
{
|
9845
9858
|
dir: props.direction,
|
9846
9859
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
9847
9860
|
},
|
9848
|
-
/* @__PURE__ */
|
9861
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9849
9862
|
"div",
|
9850
9863
|
{
|
9851
9864
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
9852
9865
|
},
|
9853
|
-
/* @__PURE__ */
|
9866
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9854
9867
|
"svg",
|
9855
9868
|
{
|
9856
9869
|
stroke: "currentColor",
|
@@ -9861,7 +9874,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9861
9874
|
height: "1.6em",
|
9862
9875
|
width: "1.6em"
|
9863
9876
|
},
|
9864
|
-
/* @__PURE__ */
|
9877
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9865
9878
|
"path",
|
9866
9879
|
{
|
9867
9880
|
fillRule: "evenodd",
|
@@ -9874,7 +9887,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9874
9887
|
"Mobile title"
|
9875
9888
|
)
|
9876
9889
|
),
|
9877
|
-
/* @__PURE__ */
|
9890
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9878
9891
|
"div",
|
9879
9892
|
{
|
9880
9893
|
className: cn(
|
@@ -9882,16 +9895,16 @@ var AppTopbar = ({ ...props }) => {
|
|
9882
9895
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9883
9896
|
)
|
9884
9897
|
},
|
9885
|
-
size > 600 ? /* @__PURE__ */
|
9898
|
+
size > 600 ? /* @__PURE__ */ import_react60.default.createElement(
|
9886
9899
|
"div",
|
9887
9900
|
{
|
9888
9901
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
9889
9902
|
},
|
9890
|
-
/* @__PURE__ */
|
9903
|
+
/* @__PURE__ */ import_react60.default.createElement("div", { className: "hawa-font-bold" }, props.username),
|
9891
9904
|
" ",
|
9892
|
-
/* @__PURE__ */
|
9905
|
+
/* @__PURE__ */ import_react60.default.createElement("div", null, props.email)
|
9893
9906
|
) : null,
|
9894
|
-
/* @__PURE__ */
|
9907
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9895
9908
|
DropdownMenu,
|
9896
9909
|
{
|
9897
9910
|
triggerClassname: "hawa-mx-2",
|
@@ -9902,7 +9915,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9902
9915
|
direction: isRTL ? "rtl" : "ltr",
|
9903
9916
|
items: props.profileMenuItems || [],
|
9904
9917
|
onItemSelect: (e) => console.log("selecting item ", e),
|
9905
|
-
trigger: /* @__PURE__ */
|
9918
|
+
trigger: /* @__PURE__ */ import_react60.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react60.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react60.default.createElement(
|
9906
9919
|
"svg",
|
9907
9920
|
{
|
9908
9921
|
"aria-label": "Avatar Icon",
|
@@ -9910,7 +9923,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9910
9923
|
fill: "currentColor",
|
9911
9924
|
viewBox: "0 0 20 20"
|
9912
9925
|
},
|
9913
|
-
/* @__PURE__ */
|
9926
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9914
9927
|
"path",
|
9915
9928
|
{
|
9916
9929
|
fillRule: "evenodd",
|
@@ -10129,10 +10142,10 @@ var MenubarShortcut = ({
|
|
10129
10142
|
MenubarShortcut.displayname = "MenubarShortcut";
|
10130
10143
|
|
10131
10144
|
// layout/appTabs/AppTabs.tsx
|
10132
|
-
var
|
10145
|
+
var import_react61 = __toESM(require("react"));
|
10133
10146
|
var AppTabs = ({ tabs, className }) => {
|
10134
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
10135
|
-
return /* @__PURE__ */
|
10147
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react61.useState)(0);
|
10148
|
+
return /* @__PURE__ */ import_react61.default.createElement(
|
10136
10149
|
"div",
|
10137
10150
|
{
|
10138
10151
|
className: cn(
|
@@ -10140,9 +10153,9 @@ var AppTabs = ({ tabs, className }) => {
|
|
10140
10153
|
className
|
10141
10154
|
)
|
10142
10155
|
},
|
10143
|
-
/* @__PURE__ */
|
10156
|
+
/* @__PURE__ */ import_react61.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
|
10144
10157
|
const selected = index === selectedIndex;
|
10145
|
-
return /* @__PURE__ */
|
10158
|
+
return /* @__PURE__ */ import_react61.default.createElement(
|
10146
10159
|
"a",
|
10147
10160
|
{
|
10148
10161
|
href: tab.path,
|
@@ -10173,16 +10186,16 @@ var AppTabs = ({ tabs, className }) => {
|
|
10173
10186
|
};
|
10174
10187
|
|
10175
10188
|
// layout/docsLayout/DocsLayout.tsx
|
10176
|
-
var
|
10189
|
+
var import_react63 = __toESM(require("react"));
|
10177
10190
|
|
10178
10191
|
// layout/docsSidebar/DocsSidebar.tsx
|
10179
|
-
var
|
10192
|
+
var import_react62 = __toESM(require("react"));
|
10180
10193
|
var DocsSidebar = ({
|
10181
10194
|
currentPage: propCurrentPage,
|
10182
10195
|
pages,
|
10183
10196
|
direction
|
10184
10197
|
}) => {
|
10185
|
-
const [activePage, setActivePage] =
|
10198
|
+
const [activePage, setActivePage] = import_react62.default.useState(pages[0]);
|
10186
10199
|
const handlePageClick = (page, event) => {
|
10187
10200
|
event.preventDefault();
|
10188
10201
|
setTimeout(() => {
|
@@ -10204,7 +10217,7 @@ var DocsSidebar = ({
|
|
10204
10217
|
}
|
10205
10218
|
return pages[0];
|
10206
10219
|
};
|
10207
|
-
|
10220
|
+
import_react62.default.useEffect(() => {
|
10208
10221
|
const handleScroll = () => {
|
10209
10222
|
setActivePage(getCurrentSection());
|
10210
10223
|
};
|
@@ -10217,13 +10230,13 @@ var DocsSidebar = ({
|
|
10217
10230
|
rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
|
10218
10231
|
ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
|
10219
10232
|
};
|
10220
|
-
return /* @__PURE__ */
|
10233
|
+
return /* @__PURE__ */ import_react62.default.createElement(
|
10221
10234
|
"div",
|
10222
10235
|
{
|
10223
10236
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
|
10224
10237
|
dir: direction
|
10225
10238
|
},
|
10226
|
-
pages.map((page, index) => /* @__PURE__ */
|
10239
|
+
pages.map((page, index) => /* @__PURE__ */ import_react62.default.createElement(
|
10227
10240
|
"div",
|
10228
10241
|
{
|
10229
10242
|
key: index,
|
@@ -10263,15 +10276,15 @@ var DocsLayout = ({
|
|
10263
10276
|
lg: closeDrawerWidth
|
10264
10277
|
}
|
10265
10278
|
};
|
10266
|
-
const ref = (0,
|
10279
|
+
const ref = (0, import_react63.useRef)(null);
|
10267
10280
|
const isRTL = direction === "rtl";
|
10268
10281
|
let size = useBreakpoint();
|
10269
10282
|
if (typeof window == "undefined") {
|
10270
10283
|
size = 1200;
|
10271
10284
|
}
|
10272
|
-
const [currentPage, setCurrentPage] = (0,
|
10273
|
-
const [openSideMenu, setOpenSideMenu] = (0,
|
10274
|
-
(0,
|
10285
|
+
const [currentPage, setCurrentPage] = (0, import_react63.useState)("Introduction");
|
10286
|
+
const [openSideMenu, setOpenSideMenu] = (0, import_react63.useState)(true);
|
10287
|
+
(0, import_react63.useEffect)(() => {
|
10275
10288
|
const handleClickOutside = (event) => {
|
10276
10289
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
10277
10290
|
setOpenSideMenu(false);
|
@@ -10282,7 +10295,7 @@ var DocsLayout = ({
|
|
10282
10295
|
document.removeEventListener("click", handleClickOutside, true);
|
10283
10296
|
};
|
10284
10297
|
}, [openSideMenu]);
|
10285
|
-
(0,
|
10298
|
+
(0, import_react63.useEffect)(() => {
|
10286
10299
|
const handleResize = () => {
|
10287
10300
|
setOpenSideMenu(window.innerWidth > 600 ? true : false);
|
10288
10301
|
};
|
@@ -10292,19 +10305,19 @@ var DocsLayout = ({
|
|
10292
10305
|
window.removeEventListener("resize", handleResize);
|
10293
10306
|
};
|
10294
10307
|
}, [keepOpen]);
|
10295
|
-
const observerRef =
|
10308
|
+
const observerRef = import_react63.default.useRef(null);
|
10296
10309
|
const handleIntersection = (entries) => {
|
10297
10310
|
const entry = entries.find((entry2) => entry2.isIntersecting);
|
10298
10311
|
if (entry) {
|
10299
10312
|
setCurrentPage(entry.target.id);
|
10300
10313
|
}
|
10301
10314
|
};
|
10302
|
-
(0,
|
10315
|
+
(0, import_react63.useEffect)(() => {
|
10303
10316
|
observerRef.current = new IntersectionObserver(handleIntersection, {
|
10304
10317
|
threshold: 0.5
|
10305
10318
|
// Adjust threshold as needed to determine when a section is in view
|
10306
10319
|
});
|
10307
|
-
|
10320
|
+
import_react63.default.Children.forEach(props.children, (child) => {
|
10308
10321
|
if (child && child.props.id) {
|
10309
10322
|
const element = document.getElementById(child.props.id);
|
10310
10323
|
if (element && observerRef.current) {
|
@@ -10319,7 +10332,7 @@ var DocsLayout = ({
|
|
10319
10332
|
};
|
10320
10333
|
}, [props.children]);
|
10321
10334
|
let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
10322
|
-
return /* @__PURE__ */
|
10335
|
+
return /* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ import_react63.default.createElement(
|
10323
10336
|
"div",
|
10324
10337
|
{
|
10325
10338
|
className: cn(
|
@@ -10327,7 +10340,7 @@ var DocsLayout = ({
|
|
10327
10340
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
10328
10341
|
)
|
10329
10342
|
},
|
10330
|
-
size > 600 ? /* @__PURE__ */
|
10343
|
+
size > 600 ? /* @__PURE__ */ import_react63.default.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ import_react63.default.createElement(
|
10331
10344
|
"img",
|
10332
10345
|
{
|
10333
10346
|
className: cn(
|
@@ -10338,18 +10351,18 @@ var DocsLayout = ({
|
|
10338
10351
|
}
|
10339
10352
|
)) : (
|
10340
10353
|
// Mobile Drawer Menu Button
|
10341
|
-
/* @__PURE__ */
|
10354
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
10342
10355
|
"div",
|
10343
10356
|
{
|
10344
10357
|
dir: direction,
|
10345
10358
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
10346
10359
|
},
|
10347
|
-
/* @__PURE__ */
|
10360
|
+
/* @__PURE__ */ import_react63.default.createElement(Sheet, null, /* @__PURE__ */ import_react63.default.createElement(SheetTrigger, null, " ", /* @__PURE__ */ import_react63.default.createElement(
|
10348
10361
|
"div",
|
10349
10362
|
{
|
10350
10363
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
10351
10364
|
},
|
10352
|
-
/* @__PURE__ */
|
10365
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
10353
10366
|
"svg",
|
10354
10367
|
{
|
10355
10368
|
"aria-label": "Menu Icon",
|
@@ -10361,7 +10374,7 @@ var DocsLayout = ({
|
|
10361
10374
|
height: "1.6em",
|
10362
10375
|
width: "1.6em"
|
10363
10376
|
},
|
10364
|
-
/* @__PURE__ */
|
10377
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
10365
10378
|
"path",
|
10366
10379
|
{
|
10367
10380
|
fillRule: "evenodd",
|
@@ -10370,17 +10383,17 @@ var DocsLayout = ({
|
|
10370
10383
|
}
|
10371
10384
|
)
|
10372
10385
|
)
|
10373
|
-
)), /* @__PURE__ */
|
10386
|
+
)), /* @__PURE__ */ import_react63.default.createElement(
|
10374
10387
|
SheetContent,
|
10375
10388
|
{
|
10376
10389
|
side: isRTL ? "right" : "left",
|
10377
10390
|
className: "hawa-pt-10"
|
10378
10391
|
},
|
10379
|
-
/* @__PURE__ */
|
10392
|
+
/* @__PURE__ */ import_react63.default.createElement(DocsSidebar, { direction, pages: pages || [] })
|
10380
10393
|
))
|
10381
10394
|
)
|
10382
10395
|
),
|
10383
|
-
/* @__PURE__ */
|
10396
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
10384
10397
|
"div",
|
10385
10398
|
{
|
10386
10399
|
className: cn(
|
@@ -10388,9 +10401,9 @@ var DocsLayout = ({
|
|
10388
10401
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
10389
10402
|
)
|
10390
10403
|
},
|
10391
|
-
/* @__PURE__ */
|
10404
|
+
/* @__PURE__ */ import_react63.default.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ import_react63.default.createElement(Logos.github, { className: "hawa-icon" }))
|
10392
10405
|
)
|
10393
|
-
), /* @__PURE__ */
|
10406
|
+
), /* @__PURE__ */ import_react63.default.createElement(
|
10394
10407
|
"div",
|
10395
10408
|
{
|
10396
10409
|
className: cn(
|
@@ -10413,7 +10426,7 @@ var DocsLayout = ({
|
|
10413
10426
|
},
|
10414
10427
|
ref
|
10415
10428
|
},
|
10416
|
-
/* @__PURE__ */
|
10429
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
10417
10430
|
DocsSidebar,
|
10418
10431
|
{
|
10419
10432
|
direction,
|
@@ -10421,7 +10434,7 @@ var DocsLayout = ({
|
|
10421
10434
|
currentPage
|
10422
10435
|
}
|
10423
10436
|
)
|
10424
|
-
), /* @__PURE__ */
|
10437
|
+
), /* @__PURE__ */ import_react63.default.createElement(
|
10425
10438
|
"div",
|
10426
10439
|
{
|
10427
10440
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
@@ -10443,10 +10456,10 @@ var DocsLayout = ({
|
|
10443
10456
|
};
|
10444
10457
|
|
10445
10458
|
// blocks/auth/AuthButtons.tsx
|
10446
|
-
var
|
10459
|
+
var import_react64 = __toESM(require("react"));
|
10447
10460
|
var AuthButtons = (props) => {
|
10448
10461
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
10449
|
-
return /* @__PURE__ */
|
10462
|
+
return /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaMetamask && /* @__PURE__ */ import_react64.default.createElement(
|
10450
10463
|
Button,
|
10451
10464
|
{
|
10452
10465
|
disabled: props.isMetamaskLoading,
|
@@ -10454,9 +10467,9 @@ var AuthButtons = (props) => {
|
|
10454
10467
|
variant: "outline",
|
10455
10468
|
onClick: props.handleMetamask
|
10456
10469
|
},
|
10457
|
-
props.isMetamaskLoading ? /* @__PURE__ */
|
10470
|
+
props.isMetamaskLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.metamask, { className: "hawa-h-6" }),
|
10458
10471
|
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithMetamask) != null ? _b : "Connect Metamask"
|
10459
|
-
), props.viaNafath && /* @__PURE__ */
|
10472
|
+
), props.viaNafath && /* @__PURE__ */ import_react64.default.createElement(
|
10460
10473
|
Button,
|
10461
10474
|
{
|
10462
10475
|
disabled: props.isNafathLoading,
|
@@ -10464,9 +10477,9 @@ var AuthButtons = (props) => {
|
|
10464
10477
|
variant: "outline",
|
10465
10478
|
onClick: props.handleNafath
|
10466
10479
|
},
|
10467
|
-
props.isNafathLoading ? /* @__PURE__ */
|
10480
|
+
props.isNafathLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.nafath, { className: "hawa-h-4" }),
|
10468
10481
|
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithNafath) != null ? _d : "Continue With Nafath"
|
10469
|
-
), props.viaGoogle && /* @__PURE__ */
|
10482
|
+
), props.viaGoogle && /* @__PURE__ */ import_react64.default.createElement(
|
10470
10483
|
Button,
|
10471
10484
|
{
|
10472
10485
|
disabled: props.isGoogleLoading,
|
@@ -10474,9 +10487,9 @@ var AuthButtons = (props) => {
|
|
10474
10487
|
variant: "outline",
|
10475
10488
|
onClick: props.handleGoogle
|
10476
10489
|
},
|
10477
|
-
props.isGoogleLoading ? /* @__PURE__ */
|
10490
|
+
props.isGoogleLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.google, { className: "hawa-icon" }),
|
10478
10491
|
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithGoogle) != null ? _f : "Continue With Google"
|
10479
|
-
), props.viaGithub && /* @__PURE__ */
|
10492
|
+
), props.viaGithub && /* @__PURE__ */ import_react64.default.createElement(
|
10480
10493
|
Button,
|
10481
10494
|
{
|
10482
10495
|
disabled: props.isGithubLoading,
|
@@ -10484,9 +10497,9 @@ var AuthButtons = (props) => {
|
|
10484
10497
|
variant: "outline",
|
10485
10498
|
onClick: props.handleGithub
|
10486
10499
|
},
|
10487
|
-
props.isGithubLoading ? /* @__PURE__ */
|
10500
|
+
props.isGithubLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.github, { className: "hawa-icon" }),
|
10488
10501
|
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithGithub) != null ? _h : "Continue With Github"
|
10489
|
-
), props.viaTwitter && /* @__PURE__ */
|
10502
|
+
), props.viaTwitter && /* @__PURE__ */ import_react64.default.createElement(
|
10490
10503
|
Button,
|
10491
10504
|
{
|
10492
10505
|
disabled: props.isTwitterLoading,
|
@@ -10494,9 +10507,9 @@ var AuthButtons = (props) => {
|
|
10494
10507
|
variant: "outline",
|
10495
10508
|
onClick: props.handleTwitter
|
10496
10509
|
},
|
10497
|
-
props.isTwitterLoading ? /* @__PURE__ */
|
10510
|
+
props.isTwitterLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.twitter, { className: "hawa-icon" }),
|
10498
10511
|
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithTwitter) != null ? _j : "Continue With Twitter"
|
10499
|
-
), props.viaApple && /* @__PURE__ */
|
10512
|
+
), props.viaApple && /* @__PURE__ */ import_react64.default.createElement(
|
10500
10513
|
Button,
|
10501
10514
|
{
|
10502
10515
|
disabled: props.isAppleLoading,
|
@@ -10504,9 +10517,9 @@ var AuthButtons = (props) => {
|
|
10504
10517
|
variant: "outline",
|
10505
10518
|
onClick: props.handleApple
|
10506
10519
|
},
|
10507
|
-
props.isAppleLoading ? /* @__PURE__ */
|
10520
|
+
props.isAppleLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.apple, { className: "hawa-icon" }),
|
10508
10521
|
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithApple) != null ? _l : "Continue With Apple"
|
10509
|
-
), props.viaMicrosoft && /* @__PURE__ */
|
10522
|
+
), props.viaMicrosoft && /* @__PURE__ */ import_react64.default.createElement(
|
10510
10523
|
Button,
|
10511
10524
|
{
|
10512
10525
|
disabled: props.isMicrosoftLoading,
|
@@ -10514,9 +10527,9 @@ var AuthButtons = (props) => {
|
|
10514
10527
|
variant: "outline",
|
10515
10528
|
onClick: props.handleMicrosoft
|
10516
10529
|
},
|
10517
|
-
props.isMicrosoftLoading ? /* @__PURE__ */
|
10530
|
+
props.isMicrosoftLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
10518
10531
|
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithMicrosoft) != null ? _n : "Continue With Microsoft"
|
10519
|
-
), props.viaEmail && /* @__PURE__ */
|
10532
|
+
), props.viaEmail && /* @__PURE__ */ import_react64.default.createElement(
|
10520
10533
|
Button,
|
10521
10534
|
{
|
10522
10535
|
disabled: props.isEmailLoading,
|
@@ -10524,9 +10537,9 @@ var AuthButtons = (props) => {
|
|
10524
10537
|
variant: "outline",
|
10525
10538
|
onClick: props.handleEmail
|
10526
10539
|
},
|
10527
|
-
props.isEmailLoading ? /* @__PURE__ */
|
10540
|
+
props.isEmailLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.mail, { className: "hawa-icon" }),
|
10528
10541
|
(_p = (_o = props.texts) == null ? void 0 : _o.continueWithEmail) != null ? _p : "Continue With Email"
|
10529
|
-
), props.viaPhone && /* @__PURE__ */
|
10542
|
+
), props.viaPhone && /* @__PURE__ */ import_react64.default.createElement(
|
10530
10543
|
Button,
|
10531
10544
|
{
|
10532
10545
|
disabled: props.isPhoneLoading,
|
@@ -10534,14 +10547,14 @@ var AuthButtons = (props) => {
|
|
10534
10547
|
variant: "outline",
|
10535
10548
|
onClick: props.handlePhone
|
10536
10549
|
},
|
10537
|
-
props.isPhoneLoading ? /* @__PURE__ */
|
10550
|
+
props.isPhoneLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.phone, { className: "hawa-icon" }),
|
10538
10551
|
(_r = (_q = props.texts) == null ? void 0 : _q.continueWithPhone) != null ? _r : "Continue With Phone"
|
10539
10552
|
));
|
10540
10553
|
};
|
10541
10554
|
|
10542
10555
|
// blocks/auth/LoginForm.tsx
|
10543
|
-
var
|
10544
|
-
var
|
10556
|
+
var import_react65 = __toESM(require("react"));
|
10557
|
+
var import_react66 = require("react");
|
10545
10558
|
var import_react_hook_form = require("react-hook-form");
|
10546
10559
|
var import_zod = require("@hookform/resolvers/zod");
|
10547
10560
|
var import_libphonenumber_js = require("libphonenumber-js");
|
@@ -10553,7 +10566,7 @@ var LoginForm = ({
|
|
10553
10566
|
...props
|
10554
10567
|
}) => {
|
10555
10568
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
10556
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
10569
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react66.useState)(false);
|
10557
10570
|
const thirdPartyAuthTexts = {
|
10558
10571
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
10559
10572
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -10615,14 +10628,14 @@ var LoginForm = ({
|
|
10615
10628
|
const renderFields = () => {
|
10616
10629
|
switch (loginType) {
|
10617
10630
|
case "email":
|
10618
|
-
return /* @__PURE__ */
|
10631
|
+
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement(
|
10619
10632
|
import_react_hook_form.Controller,
|
10620
10633
|
{
|
10621
10634
|
control,
|
10622
10635
|
name: "email",
|
10623
10636
|
render: ({ field }) => {
|
10624
10637
|
var _a2, _b2, _c2;
|
10625
|
-
return /* @__PURE__ */
|
10638
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10626
10639
|
Input,
|
10627
10640
|
{
|
10628
10641
|
inputProps: {
|
@@ -10642,27 +10655,27 @@ var LoginForm = ({
|
|
10642
10655
|
);
|
10643
10656
|
}
|
10644
10657
|
}
|
10645
|
-
), /* @__PURE__ */
|
10658
|
+
), /* @__PURE__ */ import_react65.default.createElement("div", null, /* @__PURE__ */ import_react65.default.createElement(
|
10646
10659
|
import_react_hook_form.Controller,
|
10647
10660
|
{
|
10648
10661
|
control,
|
10649
10662
|
name: "password",
|
10650
10663
|
render: ({ field }) => {
|
10651
10664
|
var _a2, _b2, _c2;
|
10652
|
-
return /* @__PURE__ */
|
10665
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10653
10666
|
Input,
|
10654
10667
|
{
|
10655
10668
|
width: "full",
|
10656
10669
|
autoComplete: "current-password",
|
10657
10670
|
type: passwordVisible ? "text" : "password",
|
10658
10671
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
10659
|
-
endIcon: /* @__PURE__ */
|
10672
|
+
endIcon: /* @__PURE__ */ import_react65.default.createElement(
|
10660
10673
|
"div",
|
10661
10674
|
{
|
10662
10675
|
className: "hawa-cursor-pointer",
|
10663
10676
|
onClick: () => setPasswordVisible(!passwordVisible)
|
10664
10677
|
},
|
10665
|
-
passwordVisible ? /* @__PURE__ */
|
10678
|
+
passwordVisible ? /* @__PURE__ */ import_react65.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react65.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
|
10666
10679
|
),
|
10667
10680
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
10668
10681
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -10671,7 +10684,7 @@ var LoginForm = ({
|
|
10671
10684
|
);
|
10672
10685
|
}
|
10673
10686
|
}
|
10674
|
-
), props.withResetPassword && /* @__PURE__ */
|
10687
|
+
), props.withResetPassword && /* @__PURE__ */ import_react65.default.createElement(
|
10675
10688
|
"div",
|
10676
10689
|
{
|
10677
10690
|
onClick: props.onForgotPassword,
|
@@ -10680,14 +10693,14 @@ var LoginForm = ({
|
|
10680
10693
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
10681
10694
|
)));
|
10682
10695
|
case "username":
|
10683
|
-
return /* @__PURE__ */
|
10696
|
+
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement(
|
10684
10697
|
import_react_hook_form.Controller,
|
10685
10698
|
{
|
10686
10699
|
control,
|
10687
10700
|
name: "username",
|
10688
10701
|
render: ({ field }) => {
|
10689
10702
|
var _a2, _b2, _c2;
|
10690
|
-
return /* @__PURE__ */
|
10703
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10691
10704
|
Input,
|
10692
10705
|
{
|
10693
10706
|
width: "full",
|
@@ -10700,27 +10713,27 @@ var LoginForm = ({
|
|
10700
10713
|
);
|
10701
10714
|
}
|
10702
10715
|
}
|
10703
|
-
), /* @__PURE__ */
|
10716
|
+
), /* @__PURE__ */ import_react65.default.createElement("div", null, /* @__PURE__ */ import_react65.default.createElement(
|
10704
10717
|
import_react_hook_form.Controller,
|
10705
10718
|
{
|
10706
10719
|
control,
|
10707
10720
|
name: "password",
|
10708
10721
|
render: ({ field }) => {
|
10709
10722
|
var _a2, _b2, _c2;
|
10710
|
-
return /* @__PURE__ */
|
10723
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10711
10724
|
Input,
|
10712
10725
|
{
|
10713
10726
|
width: "full",
|
10714
10727
|
autoComplete: "current-password",
|
10715
10728
|
type: passwordVisible ? "text" : "password",
|
10716
10729
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
10717
|
-
endIcon: /* @__PURE__ */
|
10730
|
+
endIcon: /* @__PURE__ */ import_react65.default.createElement(
|
10718
10731
|
"div",
|
10719
10732
|
{
|
10720
10733
|
className: "hawa-cursor-pointer",
|
10721
10734
|
onClick: () => setPasswordVisible(!passwordVisible)
|
10722
10735
|
},
|
10723
|
-
passwordVisible ? /* @__PURE__ */
|
10736
|
+
passwordVisible ? /* @__PURE__ */ import_react65.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react65.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
|
10724
10737
|
),
|
10725
10738
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
10726
10739
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -10729,7 +10742,7 @@ var LoginForm = ({
|
|
10729
10742
|
);
|
10730
10743
|
}
|
10731
10744
|
}
|
10732
|
-
), props.withResetPassword && /* @__PURE__ */
|
10745
|
+
), props.withResetPassword && /* @__PURE__ */ import_react65.default.createElement(
|
10733
10746
|
"div",
|
10734
10747
|
{
|
10735
10748
|
onClick: props.onForgotPassword,
|
@@ -10738,14 +10751,14 @@ var LoginForm = ({
|
|
10738
10751
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
10739
10752
|
)));
|
10740
10753
|
case "phone":
|
10741
|
-
return /* @__PURE__ */
|
10754
|
+
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement(
|
10742
10755
|
import_react_hook_form.Controller,
|
10743
10756
|
{
|
10744
10757
|
control,
|
10745
10758
|
name: "phone",
|
10746
10759
|
render: ({ field }) => {
|
10747
10760
|
var _a2, _b2;
|
10748
|
-
return /* @__PURE__ */
|
10761
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10749
10762
|
PhoneInput,
|
10750
10763
|
{
|
10751
10764
|
label: ((_a2 = texts == null ? void 0 : texts.phone) == null ? void 0 : _a2.label) || "Phone Number",
|
@@ -10766,14 +10779,14 @@ var LoginForm = ({
|
|
10766
10779
|
}
|
10767
10780
|
));
|
10768
10781
|
case "link":
|
10769
|
-
return /* @__PURE__ */
|
10782
|
+
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement(
|
10770
10783
|
import_react_hook_form.Controller,
|
10771
10784
|
{
|
10772
10785
|
control,
|
10773
10786
|
name: "email",
|
10774
10787
|
render: ({ field }) => {
|
10775
10788
|
var _a2, _b2, _c2;
|
10776
|
-
return /* @__PURE__ */
|
10789
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10777
10790
|
Input,
|
10778
10791
|
{
|
10779
10792
|
width: "full",
|
@@ -10794,7 +10807,7 @@ var LoginForm = ({
|
|
10794
10807
|
break;
|
10795
10808
|
}
|
10796
10809
|
};
|
10797
|
-
return /* @__PURE__ */
|
10810
|
+
return /* @__PURE__ */ import_react65.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react65.default.createElement(
|
10798
10811
|
Card,
|
10799
10812
|
{
|
10800
10813
|
dir: props.direction,
|
@@ -10802,7 +10815,7 @@ var LoginForm = ({
|
|
10802
10815
|
props.cardless && "!hawa-border-none !hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
10803
10816
|
)
|
10804
10817
|
},
|
10805
|
-
/* @__PURE__ */
|
10818
|
+
/* @__PURE__ */ import_react65.default.createElement(CardContent, { headless: true, noPadding: props.cardless }, props.showError && /* @__PURE__ */ import_react65.default.createElement(
|
10806
10819
|
Alert,
|
10807
10820
|
{
|
10808
10821
|
direction: props.direction,
|
@@ -10810,7 +10823,7 @@ var LoginForm = ({
|
|
10810
10823
|
text: props.errorText,
|
10811
10824
|
severity: "error"
|
10812
10825
|
}
|
10813
|
-
), /* @__PURE__ */
|
10826
|
+
), /* @__PURE__ */ import_react65.default.createElement(
|
10814
10827
|
"form",
|
10815
10828
|
{
|
10816
10829
|
noValidate: true,
|
@@ -10824,7 +10837,7 @@ var LoginForm = ({
|
|
10824
10837
|
})
|
10825
10838
|
},
|
10826
10839
|
renderFields(),
|
10827
|
-
/* @__PURE__ */
|
10840
|
+
/* @__PURE__ */ import_react65.default.createElement(
|
10828
10841
|
Button,
|
10829
10842
|
{
|
10830
10843
|
className: "hawa-mt-0 hawa-w-full",
|
@@ -10835,7 +10848,7 @@ var LoginForm = ({
|
|
10835
10848
|
(texts == null ? void 0 : texts.loginText) || "Login"
|
10836
10849
|
),
|
10837
10850
|
props.additionalButtons,
|
10838
|
-
props.allowRegister && /* @__PURE__ */
|
10851
|
+
props.allowRegister && /* @__PURE__ */ import_react65.default.createElement("div", { className: "hawa-select-none hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, (texts == null ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react65.default.createElement(
|
10839
10852
|
"span",
|
10840
10853
|
{
|
10841
10854
|
onClick: props.onRouteToRegister,
|
@@ -10844,7 +10857,7 @@ var LoginForm = ({
|
|
10844
10857
|
(texts == null ? void 0 : texts.createAccount) || "Create Account"
|
10845
10858
|
))
|
10846
10859
|
)),
|
10847
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
10860
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react65.default.createElement(
|
10848
10861
|
CardFooter,
|
10849
10862
|
{
|
10850
10863
|
noPadding: props.cardless,
|
@@ -10852,7 +10865,7 @@ var LoginForm = ({
|
|
10852
10865
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
10853
10866
|
)
|
10854
10867
|
},
|
10855
|
-
/* @__PURE__ */
|
10868
|
+
/* @__PURE__ */ import_react65.default.createElement(
|
10856
10869
|
AuthButtons,
|
10857
10870
|
{
|
10858
10871
|
texts: thirdPartyAuthTexts,
|
@@ -10872,7 +10885,7 @@ var LoginForm = ({
|
|
10872
10885
|
};
|
10873
10886
|
|
10874
10887
|
// blocks/auth/RegisterForm.tsx
|
10875
|
-
var
|
10888
|
+
var import_react67 = __toESM(require("react"));
|
10876
10889
|
var import_react_hook_form2 = require("react-hook-form");
|
10877
10890
|
var import_zod2 = require("@hookform/resolvers/zod");
|
10878
10891
|
var z2 = __toESM(require("zod"));
|
@@ -10884,7 +10897,7 @@ var RegisterForm = ({
|
|
10884
10897
|
...props
|
10885
10898
|
}) => {
|
10886
10899
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
10887
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
10900
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react67.useState)(false);
|
10888
10901
|
const thirdPartyAuthTexts = {
|
10889
10902
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
10890
10903
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -10951,7 +10964,7 @@ var RegisterForm = ({
|
|
10951
10964
|
const { handleSubmit, control, formState } = (0, import_react_hook_form2.useForm)({
|
10952
10965
|
resolver: (0, import_zod2.zodResolver)(formSchema)
|
10953
10966
|
});
|
10954
|
-
return /* @__PURE__ */
|
10967
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
10955
10968
|
"div",
|
10956
10969
|
{
|
10957
10970
|
className: cn(
|
@@ -10959,7 +10972,7 @@ var RegisterForm = ({
|
|
10959
10972
|
(_g = props.classNames) == null ? void 0 : _g.root
|
10960
10973
|
)
|
10961
10974
|
},
|
10962
|
-
/* @__PURE__ */
|
10975
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
10963
10976
|
Card,
|
10964
10977
|
{
|
10965
10978
|
dir: props.direction,
|
@@ -10968,7 +10981,7 @@ var RegisterForm = ({
|
|
10968
10981
|
props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
10969
10982
|
)
|
10970
10983
|
},
|
10971
|
-
/* @__PURE__ */
|
10984
|
+
/* @__PURE__ */ import_react67.default.createElement(CardContent, { headless: true, noPadding: props.cardless }, /* @__PURE__ */ import_react67.default.createElement("div", null, props.showError && /* @__PURE__ */ import_react67.default.createElement(
|
10972
10985
|
Alert,
|
10973
10986
|
{
|
10974
10987
|
direction: props.direction,
|
@@ -10981,7 +10994,7 @@ var RegisterForm = ({
|
|
10981
10994
|
}
|
10982
10995
|
}
|
10983
10996
|
}
|
10984
|
-
), /* @__PURE__ */
|
10997
|
+
), /* @__PURE__ */ import_react67.default.createElement(import_react_hook_form2.FormProvider, { ...methods }, /* @__PURE__ */ import_react67.default.createElement(
|
10985
10998
|
"form",
|
10986
10999
|
{
|
10987
11000
|
noValidate: true,
|
@@ -10996,9 +11009,9 @@ var RegisterForm = ({
|
|
10996
11009
|
}),
|
10997
11010
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
10998
11011
|
},
|
10999
|
-
/* @__PURE__ */
|
11012
|
+
/* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
|
11000
11013
|
if (fld === "fullname") {
|
11001
|
-
return /* @__PURE__ */
|
11014
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11002
11015
|
import_react_hook_form2.Controller,
|
11003
11016
|
{
|
11004
11017
|
key: i,
|
@@ -11006,7 +11019,7 @@ var RegisterForm = ({
|
|
11006
11019
|
name: "fullName",
|
11007
11020
|
render: ({ field }) => {
|
11008
11021
|
var _a2, _b2, _c2;
|
11009
|
-
return /* @__PURE__ */
|
11022
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11010
11023
|
Input,
|
11011
11024
|
{
|
11012
11025
|
width: "full",
|
@@ -11021,7 +11034,7 @@ var RegisterForm = ({
|
|
11021
11034
|
);
|
11022
11035
|
}
|
11023
11036
|
if (fld === "email") {
|
11024
|
-
return /* @__PURE__ */
|
11037
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11025
11038
|
import_react_hook_form2.Controller,
|
11026
11039
|
{
|
11027
11040
|
key: i,
|
@@ -11029,7 +11042,7 @@ var RegisterForm = ({
|
|
11029
11042
|
name: "email",
|
11030
11043
|
render: ({ field }) => {
|
11031
11044
|
var _a2, _b2, _c2;
|
11032
|
-
return /* @__PURE__ */
|
11045
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11033
11046
|
Input,
|
11034
11047
|
{
|
11035
11048
|
dir: "ltr",
|
@@ -11054,7 +11067,7 @@ var RegisterForm = ({
|
|
11054
11067
|
);
|
11055
11068
|
}
|
11056
11069
|
if (fld === "username") {
|
11057
|
-
return /* @__PURE__ */
|
11070
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11058
11071
|
import_react_hook_form2.Controller,
|
11059
11072
|
{
|
11060
11073
|
key: i,
|
@@ -11062,7 +11075,7 @@ var RegisterForm = ({
|
|
11062
11075
|
name: "username",
|
11063
11076
|
render: ({ field }) => {
|
11064
11077
|
var _a2, _b2, _c2, _d2;
|
11065
|
-
return /* @__PURE__ */
|
11078
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11066
11079
|
Input,
|
11067
11080
|
{
|
11068
11081
|
width: "full",
|
@@ -11081,25 +11094,25 @@ var RegisterForm = ({
|
|
11081
11094
|
);
|
11082
11095
|
}
|
11083
11096
|
})),
|
11084
|
-
/* @__PURE__ */
|
11097
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
11085
11098
|
import_react_hook_form2.Controller,
|
11086
11099
|
{
|
11087
11100
|
control,
|
11088
11101
|
name: "password",
|
11089
11102
|
render: ({ field }) => {
|
11090
11103
|
var _a2, _b2, _c2;
|
11091
|
-
return /* @__PURE__ */
|
11104
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11092
11105
|
Input,
|
11093
11106
|
{
|
11094
11107
|
width: "full",
|
11095
11108
|
type: passwordVisible ? "text" : "password",
|
11096
|
-
endIcon: /* @__PURE__ */
|
11109
|
+
endIcon: /* @__PURE__ */ import_react67.default.createElement(
|
11097
11110
|
"div",
|
11098
11111
|
{
|
11099
11112
|
className: "hawa-cursor-pointer",
|
11100
11113
|
onClick: () => setPasswordVisible(!passwordVisible)
|
11101
11114
|
},
|
11102
|
-
passwordVisible ? /* @__PURE__ */
|
11115
|
+
passwordVisible ? /* @__PURE__ */ import_react67.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react67.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
11103
11116
|
" "
|
11104
11117
|
),
|
11105
11118
|
autoComplete: "new-password",
|
@@ -11112,14 +11125,14 @@ var RegisterForm = ({
|
|
11112
11125
|
}
|
11113
11126
|
}
|
11114
11127
|
),
|
11115
|
-
/* @__PURE__ */
|
11128
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
11116
11129
|
import_react_hook_form2.Controller,
|
11117
11130
|
{
|
11118
11131
|
control,
|
11119
11132
|
name: "confirm_password",
|
11120
11133
|
render: ({ field }) => {
|
11121
11134
|
var _a2, _b2, _c2;
|
11122
|
-
return /* @__PURE__ */
|
11135
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11123
11136
|
Input,
|
11124
11137
|
{
|
11125
11138
|
width: "full",
|
@@ -11135,14 +11148,14 @@ var RegisterForm = ({
|
|
11135
11148
|
}
|
11136
11149
|
),
|
11137
11150
|
props.additionalInputs,
|
11138
|
-
props.showRefCode && /* @__PURE__ */
|
11151
|
+
props.showRefCode && /* @__PURE__ */ import_react67.default.createElement(
|
11139
11152
|
import_react_hook_form2.Controller,
|
11140
11153
|
{
|
11141
11154
|
control,
|
11142
11155
|
name: "refCode",
|
11143
11156
|
render: ({ field }) => {
|
11144
11157
|
var _a2;
|
11145
|
-
return /* @__PURE__ */
|
11158
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11146
11159
|
Input,
|
11147
11160
|
{
|
11148
11161
|
width: "full",
|
@@ -11155,14 +11168,14 @@ var RegisterForm = ({
|
|
11155
11168
|
}
|
11156
11169
|
}
|
11157
11170
|
),
|
11158
|
-
props.showUserSource && /* @__PURE__ */
|
11171
|
+
props.showUserSource && /* @__PURE__ */ import_react67.default.createElement(
|
11159
11172
|
import_react_hook_form2.Controller,
|
11160
11173
|
{
|
11161
11174
|
control,
|
11162
11175
|
name: "reference",
|
11163
11176
|
render: ({ field }) => {
|
11164
11177
|
var _a2, _b2;
|
11165
|
-
return /* @__PURE__ */
|
11178
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11166
11179
|
Select,
|
11167
11180
|
{
|
11168
11181
|
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
@@ -11178,20 +11191,20 @@ var RegisterForm = ({
|
|
11178
11191
|
}
|
11179
11192
|
}
|
11180
11193
|
),
|
11181
|
-
showTermsOption || showNewsletterOption ? /* @__PURE__ */
|
11194
|
+
showTermsOption || showNewsletterOption ? /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ import_react67.default.createElement(
|
11182
11195
|
import_react_hook_form2.Controller,
|
11183
11196
|
{
|
11184
11197
|
control,
|
11185
11198
|
name: "terms_accepted",
|
11186
11199
|
render: ({ field }) => {
|
11187
11200
|
var _a2, _b2;
|
11188
|
-
return /* @__PURE__ */
|
11201
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11189
11202
|
Checkbox,
|
11190
11203
|
{
|
11191
11204
|
id: "terms_accepted",
|
11192
11205
|
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
11193
11206
|
onCheckedChange: (e) => field.onChange(e),
|
11194
|
-
label: /* @__PURE__ */
|
11207
|
+
label: /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5 hawa-whitespace-nowrap hawa-flex-wrap" }, (texts == null ? void 0 : texts.iAcceptText) || "I accept the", " ", /* @__PURE__ */ import_react67.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react67.default.createElement(
|
11195
11208
|
"span",
|
11196
11209
|
{
|
11197
11210
|
onClick: (e) => {
|
@@ -11208,12 +11221,12 @@ var RegisterForm = ({
|
|
11208
11221
|
);
|
11209
11222
|
}
|
11210
11223
|
}
|
11211
|
-
), showNewsletterOption && /* @__PURE__ */
|
11224
|
+
), showNewsletterOption && /* @__PURE__ */ import_react67.default.createElement(
|
11212
11225
|
import_react_hook_form2.Controller,
|
11213
11226
|
{
|
11214
11227
|
control,
|
11215
11228
|
name: "newsletter_accepted",
|
11216
|
-
render: ({ field }) => /* @__PURE__ */
|
11229
|
+
render: ({ field }) => /* @__PURE__ */ import_react67.default.createElement(
|
11217
11230
|
Checkbox,
|
11218
11231
|
{
|
11219
11232
|
id: "newsletter_accepted",
|
@@ -11223,7 +11236,7 @@ var RegisterForm = ({
|
|
11223
11236
|
)
|
11224
11237
|
}
|
11225
11238
|
)) : null,
|
11226
|
-
/* @__PURE__ */
|
11239
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
11227
11240
|
Button,
|
11228
11241
|
{
|
11229
11242
|
className: " hawa-w-full",
|
@@ -11234,8 +11247,8 @@ var RegisterForm = ({
|
|
11234
11247
|
(texts == null ? void 0 : texts.registerText) || "Register"
|
11235
11248
|
),
|
11236
11249
|
props.additionalButtons
|
11237
|
-
)), props.onRouteToLogin && /* @__PURE__ */
|
11238
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
11250
|
+
)), props.onRouteToLogin && /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ import_react67.default.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ import_react67.default.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))),
|
11251
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react67.default.createElement(
|
11239
11252
|
CardFooter,
|
11240
11253
|
{
|
11241
11254
|
noPadding: props.cardless,
|
@@ -11243,7 +11256,7 @@ var RegisterForm = ({
|
|
11243
11256
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
11244
11257
|
)
|
11245
11258
|
},
|
11246
|
-
/* @__PURE__ */
|
11259
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
11247
11260
|
AuthButtons,
|
11248
11261
|
{
|
11249
11262
|
texts: thirdPartyAuthTexts,
|
@@ -11264,7 +11277,7 @@ var RegisterForm = ({
|
|
11264
11277
|
};
|
11265
11278
|
|
11266
11279
|
// blocks/auth/AppLanding.tsx
|
11267
|
-
var
|
11280
|
+
var import_react68 = __toESM(require("react"));
|
11268
11281
|
var AppLanding = ({ texts, ...props }) => {
|
11269
11282
|
const thirdPartyAuthTexts = {
|
11270
11283
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
@@ -11275,7 +11288,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
11275
11288
|
continueWithEmail: texts == null ? void 0 : texts.continueWithEmail,
|
11276
11289
|
continueWithPhone: texts == null ? void 0 : texts.continueWithPhone
|
11277
11290
|
};
|
11278
|
-
return /* @__PURE__ */
|
11291
|
+
return /* @__PURE__ */ import_react68.default.createElement("div", { dir: props.direction }, /* @__PURE__ */ import_react68.default.createElement(Card, null, /* @__PURE__ */ import_react68.default.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col hawa-gap-6" }, /* @__PURE__ */ import_react68.default.createElement(
|
11279
11292
|
AuthButtons,
|
11280
11293
|
{
|
11281
11294
|
texts: thirdPartyAuthTexts,
|
@@ -11294,7 +11307,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
11294
11307
|
handleEmail: props.handleEmail,
|
11295
11308
|
handlePhone: props.handlePhone
|
11296
11309
|
}
|
11297
|
-
), props.allowRegister && /* @__PURE__ */
|
11310
|
+
), props.allowRegister && /* @__PURE__ */ import_react68.default.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, texts == null ? void 0 : texts.newUserText, " ", /* @__PURE__ */ import_react68.default.createElement(
|
11298
11311
|
"span",
|
11299
11312
|
{
|
11300
11313
|
onClick: props.handleRouteToRegister,
|
@@ -11305,9 +11318,9 @@ var AppLanding = ({ texts, ...props }) => {
|
|
11305
11318
|
};
|
11306
11319
|
|
11307
11320
|
// blocks/auth/CheckEmail.tsx
|
11308
|
-
var
|
11321
|
+
var import_react69 = __toESM(require("react"));
|
11309
11322
|
var CheckEmail = ({ texts, handleResend }) => {
|
11310
|
-
return /* @__PURE__ */
|
11323
|
+
return /* @__PURE__ */ import_react69.default.createElement(Card, null, /* @__PURE__ */ import_react69.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react69.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ import_react69.default.createElement("div", { className: "hawa-flex hawa-h-16 hawa-w-16 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react69.default.createElement(
|
11311
11324
|
"svg",
|
11312
11325
|
{
|
11313
11326
|
stroke: "currentColor",
|
@@ -11320,13 +11333,13 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
11320
11333
|
width: "0.5em",
|
11321
11334
|
xmlns: "http://www.w3.org/2000/svg"
|
11322
11335
|
},
|
11323
|
-
/* @__PURE__ */
|
11324
|
-
/* @__PURE__ */
|
11325
|
-
)), /* @__PURE__ */
|
11336
|
+
/* @__PURE__ */ import_react69.default.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
11337
|
+
/* @__PURE__ */ import_react69.default.createElement("polyline", { points: "22,6 12,13 2,6" })
|
11338
|
+
)), /* @__PURE__ */ import_react69.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */ import_react69.default.createElement("div", { className: "hawa-text-sm" }, (texts == null ? void 0 : texts.pleaseVerify) || "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */ import_react69.default.createElement(CardFooter, { className: "hawa-flex hawa-flex-col hawa-justify-center " }, /* @__PURE__ */ import_react69.default.createElement("span", { className: "clickable-link hawa-text-sm", onClick: handleResend }, (texts == null ? void 0 : texts.resendEmail) || "Resend Email")));
|
11326
11339
|
};
|
11327
11340
|
|
11328
11341
|
// blocks/auth/NewPassword.tsx
|
11329
|
-
var
|
11342
|
+
var import_react70 = __toESM(require("react"));
|
11330
11343
|
var import_react_hook_form3 = require("react-hook-form");
|
11331
11344
|
var import_zod3 = require("@hookform/resolvers/zod");
|
11332
11345
|
var z3 = __toESM(require("zod"));
|
@@ -11348,7 +11361,7 @@ var NewPasswordForm = ({
|
|
11348
11361
|
const { handleSubmit, control, formState } = (0, import_react_hook_form3.useForm)({
|
11349
11362
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
11350
11363
|
});
|
11351
|
-
return /* @__PURE__ */
|
11364
|
+
return /* @__PURE__ */ import_react70.default.createElement(Card, { dir: props.direction }, props.showSuccess ? /* @__PURE__ */ import_react70.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react70.default.createElement(
|
11352
11365
|
"form",
|
11353
11366
|
{
|
11354
11367
|
noValidate: true,
|
@@ -11362,7 +11375,7 @@ var NewPasswordForm = ({
|
|
11362
11375
|
}
|
11363
11376
|
})
|
11364
11377
|
},
|
11365
|
-
/* @__PURE__ */
|
11378
|
+
/* @__PURE__ */ import_react70.default.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ import_react70.default.createElement(
|
11366
11379
|
Alert,
|
11367
11380
|
{
|
11368
11381
|
direction: props.direction,
|
@@ -11370,14 +11383,14 @@ var NewPasswordForm = ({
|
|
11370
11383
|
text: props.errorText,
|
11371
11384
|
severity: "error"
|
11372
11385
|
}
|
11373
|
-
), /* @__PURE__ */
|
11386
|
+
), /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-mb-4" }, /* @__PURE__ */ import_react70.default.createElement(
|
11374
11387
|
import_react_hook_form3.Controller,
|
11375
11388
|
{
|
11376
11389
|
control,
|
11377
11390
|
name: "password",
|
11378
11391
|
render: ({ field }) => {
|
11379
11392
|
var _a2, _b2, _c2;
|
11380
|
-
return /* @__PURE__ */
|
11393
|
+
return /* @__PURE__ */ import_react70.default.createElement(
|
11381
11394
|
Input,
|
11382
11395
|
{
|
11383
11396
|
width: "full",
|
@@ -11391,14 +11404,14 @@ var NewPasswordForm = ({
|
|
11391
11404
|
);
|
11392
11405
|
}
|
11393
11406
|
}
|
11394
|
-
), /* @__PURE__ */
|
11407
|
+
), /* @__PURE__ */ import_react70.default.createElement(
|
11395
11408
|
import_react_hook_form3.Controller,
|
11396
11409
|
{
|
11397
11410
|
control,
|
11398
11411
|
name: "confirm_password",
|
11399
11412
|
render: ({ field }) => {
|
11400
11413
|
var _a2, _b2, _c2;
|
11401
|
-
return /* @__PURE__ */
|
11414
|
+
return /* @__PURE__ */ import_react70.default.createElement(
|
11402
11415
|
Input,
|
11403
11416
|
{
|
11404
11417
|
width: "full",
|
@@ -11412,7 +11425,7 @@ var NewPasswordForm = ({
|
|
11412
11425
|
);
|
11413
11426
|
}
|
11414
11427
|
}
|
11415
|
-
)), /* @__PURE__ */
|
11428
|
+
)), /* @__PURE__ */ import_react70.default.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ import_react70.default.createElement(
|
11416
11429
|
"span",
|
11417
11430
|
{
|
11418
11431
|
className: "clickable-link",
|
@@ -11424,7 +11437,7 @@ var NewPasswordForm = ({
|
|
11424
11437
|
};
|
11425
11438
|
|
11426
11439
|
// blocks/auth/ResetPassword.tsx
|
11427
|
-
var
|
11440
|
+
var import_react71 = __toESM(require("react"));
|
11428
11441
|
var import_react_hook_form4 = require("react-hook-form");
|
11429
11442
|
var import_zod4 = require("@hookform/resolvers/zod");
|
11430
11443
|
var z4 = __toESM(require("zod"));
|
@@ -11442,7 +11455,7 @@ var ResetPasswordForm = ({
|
|
11442
11455
|
const { handleSubmit, control, formState } = (0, import_react_hook_form4.useForm)({
|
11443
11456
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
11444
11457
|
});
|
11445
|
-
return /* @__PURE__ */
|
11458
|
+
return /* @__PURE__ */ import_react71.default.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ import_react71.default.createElement(import_react71.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react71.default.createElement(CardHeader, null, /* @__PURE__ */ import_react71.default.createElement(CardTitle, null, ((_g = props.texts) == null ? void 0 : _g.headTitle) || "Reset Password"), /* @__PURE__ */ import_react71.default.createElement(CardDescription, null, ((_h = props.texts) == null ? void 0 : _h.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ import_react71.default.createElement(
|
11446
11459
|
"form",
|
11447
11460
|
{
|
11448
11461
|
noValidate: true,
|
@@ -11454,7 +11467,7 @@ var ResetPasswordForm = ({
|
|
11454
11467
|
}
|
11455
11468
|
})
|
11456
11469
|
},
|
11457
|
-
/* @__PURE__ */
|
11470
|
+
/* @__PURE__ */ import_react71.default.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ import_react71.default.createElement(
|
11458
11471
|
Alert,
|
11459
11472
|
{
|
11460
11473
|
direction: props.direction,
|
@@ -11462,14 +11475,14 @@ var ResetPasswordForm = ({
|
|
11462
11475
|
text: props.errorText,
|
11463
11476
|
severity: "error"
|
11464
11477
|
}
|
11465
|
-
), /* @__PURE__ */
|
11478
|
+
), /* @__PURE__ */ import_react71.default.createElement(
|
11466
11479
|
import_react_hook_form4.Controller,
|
11467
11480
|
{
|
11468
11481
|
control,
|
11469
11482
|
name: "email",
|
11470
11483
|
render: ({ field }) => {
|
11471
11484
|
var _a2, _b2, _c2, _d2, _e2;
|
11472
|
-
return /* @__PURE__ */
|
11485
|
+
return /* @__PURE__ */ import_react71.default.createElement(
|
11473
11486
|
Input,
|
11474
11487
|
{
|
11475
11488
|
width: "full",
|
@@ -11485,7 +11498,7 @@ var ResetPasswordForm = ({
|
|
11485
11498
|
}
|
11486
11499
|
}
|
11487
11500
|
)),
|
11488
|
-
/* @__PURE__ */
|
11501
|
+
/* @__PURE__ */ import_react71.default.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react71.default.createElement(
|
11489
11502
|
Button,
|
11490
11503
|
{
|
11491
11504
|
type: "submit",
|
@@ -11493,7 +11506,7 @@ var ResetPasswordForm = ({
|
|
11493
11506
|
isLoading
|
11494
11507
|
},
|
11495
11508
|
((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"
|
11496
|
-
), allowRegister && /* @__PURE__ */
|
11509
|
+
), allowRegister && /* @__PURE__ */ import_react71.default.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ import_react71.default.createElement(
|
11497
11510
|
"span",
|
11498
11511
|
{
|
11499
11512
|
className: "clickable-link",
|
@@ -11501,25 +11514,28 @@ var ResetPasswordForm = ({
|
|
11501
11514
|
},
|
11502
11515
|
(_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
|
11503
11516
|
)))
|
11504
|
-
)) : /* @__PURE__ */
|
11517
|
+
)) : /* @__PURE__ */ import_react71.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react71.default.createElement("div", { className: "hawa-text-center" }, ((_n = props.texts) == null ? void 0 : _n.emailSentText) || "An email has been sent with a link to set a new password")));
|
11505
11518
|
};
|
11506
11519
|
|
11507
11520
|
// blocks/auth/CodeConfirmation.tsx
|
11508
|
-
var
|
11521
|
+
var import_react72 = __toESM(require("react"));
|
11509
11522
|
var import_react_hook_form5 = require("react-hook-form");
|
11510
11523
|
var import_zod5 = require("@hookform/resolvers/zod");
|
11511
11524
|
var z5 = __toESM(require("zod"));
|
11512
|
-
var CodeConfirmation = (
|
11525
|
+
var CodeConfirmation = ({
|
11526
|
+
codeLength = 6,
|
11527
|
+
...props
|
11528
|
+
}) => {
|
11513
11529
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
11514
11530
|
const formSchema = z5.object({
|
11515
|
-
otp_code: z5.string({ required_error: (_a = props.texts) == null ? void 0 : _a.codeRequiredText }).min(
|
11531
|
+
otp_code: z5.string({ required_error: (_a = props.texts) == null ? void 0 : _a.codeRequiredText }).min(codeLength, { message: (_b = props.texts) == null ? void 0 : _b.codeTooShort })
|
11516
11532
|
});
|
11517
11533
|
const { handleSubmit, control, formState, setValue } = (0, import_react_hook_form5.useForm)({
|
11518
11534
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
11519
11535
|
});
|
11520
|
-
const [resendTimer, setResendTimer] = (0,
|
11521
|
-
const [remainingTime, setRemainingTime] = (0,
|
11522
|
-
const [showResendTimer, setShowResendTimer] = (0,
|
11536
|
+
const [resendTimer, setResendTimer] = (0, import_react72.useState)(null);
|
11537
|
+
const [remainingTime, setRemainingTime] = (0, import_react72.useState)(0);
|
11538
|
+
const [showResendTimer, setShowResendTimer] = (0, import_react72.useState)(false);
|
11523
11539
|
const startResendTimer = () => {
|
11524
11540
|
if (resendTimer !== null) {
|
11525
11541
|
clearInterval(resendTimer);
|
@@ -11541,21 +11557,21 @@ var CodeConfirmation = (props) => {
|
|
11541
11557
|
}, 1e3);
|
11542
11558
|
setResendTimer(newTimer);
|
11543
11559
|
};
|
11544
|
-
(0,
|
11560
|
+
(0, import_react72.useEffect)(() => {
|
11545
11561
|
return () => {
|
11546
11562
|
if (resendTimer !== null) {
|
11547
11563
|
clearInterval(resendTimer);
|
11548
11564
|
}
|
11549
11565
|
};
|
11550
11566
|
}, []);
|
11551
|
-
return /* @__PURE__ */
|
11567
|
+
return /* @__PURE__ */ import_react72.default.createElement(Card, null, /* @__PURE__ */ import_react72.default.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ import_react72.default.createElement(
|
11552
11568
|
Alert,
|
11553
11569
|
{
|
11554
11570
|
title: props.errorTitle,
|
11555
11571
|
text: props.errorText,
|
11556
11572
|
severity: "error"
|
11557
11573
|
}
|
11558
|
-
), /* @__PURE__ */
|
11574
|
+
), /* @__PURE__ */ import_react72.default.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ import_react72.default.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourPhone) || "Please check your phone"), /* @__PURE__ */ import_react72.default.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ import_react72.default.createElement("span", null, ((_d = props.texts) == null ? void 0 : _d.weSentCode) || "We've sent a code to "), /* @__PURE__ */ import_react72.default.createElement("span", null, props.phoneNumber))), /* @__PURE__ */ import_react72.default.createElement(
|
11559
11575
|
"form",
|
11560
11576
|
{
|
11561
11577
|
noValidate: true,
|
@@ -11569,26 +11585,25 @@ var CodeConfirmation = (props) => {
|
|
11569
11585
|
}
|
11570
11586
|
})
|
11571
11587
|
},
|
11572
|
-
/* @__PURE__ */
|
11588
|
+
/* @__PURE__ */ import_react72.default.createElement(
|
11573
11589
|
import_react_hook_form5.Controller,
|
11574
11590
|
{
|
11575
11591
|
control,
|
11576
11592
|
name: "otp_code",
|
11577
11593
|
render: ({ field }) => {
|
11578
11594
|
var _a2;
|
11579
|
-
return /* @__PURE__ */
|
11595
|
+
return /* @__PURE__ */ import_react72.default.createElement(
|
11580
11596
|
PinInput,
|
11581
11597
|
{
|
11582
|
-
|
11583
|
-
|
11584
|
-
|
11585
|
-
helperText: (_a2 = formState.errors.otp_code) == null ? void 0 : _a2.message
|
11598
|
+
maxLength: codeLength,
|
11599
|
+
helperText: (_a2 = formState.errors.otp_code) == null ? void 0 : _a2.message,
|
11600
|
+
...field
|
11586
11601
|
}
|
11587
11602
|
);
|
11588
11603
|
}
|
11589
11604
|
}
|
11590
11605
|
),
|
11591
|
-
showResendTimer ? /* @__PURE__ */
|
11606
|
+
showResendTimer ? /* @__PURE__ */ import_react72.default.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, (_e = props.texts) == null ? void 0 : _e.resendCodeTimer, " ", /* @__PURE__ */ import_react72.default.createElement("strong", null, remainingTime), " ", (_f = props.texts) == null ? void 0 : _f.seconds) : /* @__PURE__ */ import_react72.default.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, /* @__PURE__ */ import_react72.default.createElement("span", null, (_h = (_g = props.texts) == null ? void 0 : _g.didntGetCode) != null ? _h : "Didn't get the code?"), " ", /* @__PURE__ */ import_react72.default.createElement(
|
11592
11607
|
"span",
|
11593
11608
|
{
|
11594
11609
|
className: "clickable-link",
|
@@ -11599,12 +11614,12 @@ var CodeConfirmation = (props) => {
|
|
11599
11614
|
},
|
11600
11615
|
((_i = props.texts) == null ? void 0 : _i.resendCode) || "Click to resend"
|
11601
11616
|
)),
|
11602
|
-
/* @__PURE__ */
|
11617
|
+
/* @__PURE__ */ import_react72.default.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ import_react72.default.createElement(Button, { variant: "outline" }, ((_j = props.texts) == null ? void 0 : _j.cancel) || "Cancel"), /* @__PURE__ */ import_react72.default.createElement(Button, { isLoading: props.confirmLoading }, ((_k = props.texts) == null ? void 0 : _k.confirm) || "Confirm"))
|
11603
11618
|
)));
|
11604
11619
|
};
|
11605
11620
|
|
11606
11621
|
// blocks/feedback/UserReferralSource.tsx
|
11607
|
-
var
|
11622
|
+
var import_react73 = __toESM(require("react"));
|
11608
11623
|
var import_react_hook_form6 = require("react-hook-form");
|
11609
11624
|
var import_zod6 = require("@hookform/resolvers/zod");
|
11610
11625
|
var z6 = __toESM(require("zod"));
|
@@ -11614,8 +11629,8 @@ var UserReferralSource = ({
|
|
11614
11629
|
...props
|
11615
11630
|
}) => {
|
11616
11631
|
var _a, _b;
|
11617
|
-
const [closed, setClosed] = (0,
|
11618
|
-
const popUpRef = (0,
|
11632
|
+
const [closed, setClosed] = (0, import_react73.useState)(false);
|
11633
|
+
const popUpRef = (0, import_react73.useRef)(null);
|
11619
11634
|
const formSchema = z6.object({
|
11620
11635
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
11621
11636
|
feedback: z6.string().optional()
|
@@ -11635,7 +11650,7 @@ var UserReferralSource = ({
|
|
11635
11650
|
label: "Other"
|
11636
11651
|
}
|
11637
11652
|
];
|
11638
|
-
return /* @__PURE__ */
|
11653
|
+
return /* @__PURE__ */ import_react73.default.createElement(
|
11639
11654
|
"div",
|
11640
11655
|
{
|
11641
11656
|
className: cn(
|
@@ -11644,7 +11659,7 @@ var UserReferralSource = ({
|
|
11644
11659
|
),
|
11645
11660
|
ref: popUpRef
|
11646
11661
|
},
|
11647
|
-
/* @__PURE__ */
|
11662
|
+
/* @__PURE__ */ import_react73.default.createElement(
|
11648
11663
|
Card,
|
11649
11664
|
{
|
11650
11665
|
className: cn(
|
@@ -11653,7 +11668,7 @@ var UserReferralSource = ({
|
|
11653
11668
|
),
|
11654
11669
|
dir: props.direction
|
11655
11670
|
},
|
11656
|
-
/* @__PURE__ */
|
11671
|
+
/* @__PURE__ */ import_react73.default.createElement(
|
11657
11672
|
"button",
|
11658
11673
|
{
|
11659
11674
|
type: "button",
|
@@ -11672,7 +11687,7 @@ var UserReferralSource = ({
|
|
11672
11687
|
}, 200);
|
11673
11688
|
}
|
11674
11689
|
},
|
11675
|
-
/* @__PURE__ */
|
11690
|
+
/* @__PURE__ */ import_react73.default.createElement(
|
11676
11691
|
"svg",
|
11677
11692
|
{
|
11678
11693
|
"aria-hidden": "true",
|
@@ -11680,7 +11695,7 @@ var UserReferralSource = ({
|
|
11680
11695
|
fill: "currentColor",
|
11681
11696
|
viewBox: "0 0 20 20"
|
11682
11697
|
},
|
11683
|
-
/* @__PURE__ */
|
11698
|
+
/* @__PURE__ */ import_react73.default.createElement(
|
11684
11699
|
"path",
|
11685
11700
|
{
|
11686
11701
|
fillRule: "evenodd",
|
@@ -11690,7 +11705,7 @@ var UserReferralSource = ({
|
|
11690
11705
|
)
|
11691
11706
|
)
|
11692
11707
|
),
|
11693
|
-
/* @__PURE__ */
|
11708
|
+
/* @__PURE__ */ import_react73.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react73.default.createElement(
|
11694
11709
|
"form",
|
11695
11710
|
{
|
11696
11711
|
noValidate: true,
|
@@ -11702,7 +11717,7 @@ var UserReferralSource = ({
|
|
11702
11717
|
}
|
11703
11718
|
})
|
11704
11719
|
},
|
11705
|
-
/* @__PURE__ */
|
11720
|
+
/* @__PURE__ */ import_react73.default.createElement(
|
11706
11721
|
"div",
|
11707
11722
|
{
|
11708
11723
|
className: cn(
|
@@ -11710,15 +11725,15 @@ var UserReferralSource = ({
|
|
11710
11725
|
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
11711
11726
|
)
|
11712
11727
|
},
|
11713
|
-
/* @__PURE__ */
|
11714
|
-
/* @__PURE__ */
|
11728
|
+
/* @__PURE__ */ import_react73.default.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
|
11729
|
+
/* @__PURE__ */ import_react73.default.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded " }, /* @__PURE__ */ import_react73.default.createElement(
|
11715
11730
|
import_react_hook_form6.Controller,
|
11716
11731
|
{
|
11717
11732
|
control,
|
11718
11733
|
name: "source",
|
11719
11734
|
render: ({ field }) => {
|
11720
11735
|
var _a2, _b2;
|
11721
|
-
return /* @__PURE__ */
|
11736
|
+
return /* @__PURE__ */ import_react73.default.createElement(
|
11722
11737
|
Radio,
|
11723
11738
|
{
|
11724
11739
|
name: "source",
|
@@ -11733,14 +11748,14 @@ var UserReferralSource = ({
|
|
11733
11748
|
}
|
11734
11749
|
}
|
11735
11750
|
)),
|
11736
|
-
/* @__PURE__ */
|
11751
|
+
/* @__PURE__ */ import_react73.default.createElement("div", null, /* @__PURE__ */ import_react73.default.createElement(
|
11737
11752
|
import_react_hook_form6.Controller,
|
11738
11753
|
{
|
11739
11754
|
control,
|
11740
11755
|
name: "feedback",
|
11741
11756
|
render: ({ field }) => {
|
11742
11757
|
var _a2, _b2;
|
11743
|
-
return /* @__PURE__ */
|
11758
|
+
return /* @__PURE__ */ import_react73.default.createElement(
|
11744
11759
|
Textarea,
|
11745
11760
|
{
|
11746
11761
|
...field,
|
@@ -11755,28 +11770,28 @@ var UserReferralSource = ({
|
|
11755
11770
|
}
|
11756
11771
|
))
|
11757
11772
|
),
|
11758
|
-
/* @__PURE__ */
|
11773
|
+
/* @__PURE__ */ import_react73.default.createElement(Button, { type: "submit", className: "hawa-mt-4 hawa-w-full" }, ((_b = props.texts) == null ? void 0 : _b.submit) || "Submit")
|
11759
11774
|
))
|
11760
11775
|
)
|
11761
11776
|
);
|
11762
11777
|
};
|
11763
11778
|
|
11764
11779
|
// blocks/feedback/FeedbackRating.tsx
|
11765
|
-
var
|
11780
|
+
var import_react74 = __toESM(require("react"));
|
11766
11781
|
var FeedbackRating = ({
|
11767
11782
|
position = "bottom-right",
|
11768
11783
|
...props
|
11769
11784
|
}) => {
|
11770
|
-
const [closed, setClosed] = (0,
|
11771
|
-
const [answered, setAnswered] = (0,
|
11772
|
-
const [clickedOption, setClickedOption] = (0,
|
11773
|
-
const [closingTimer, setClosingTimer] = (0,
|
11774
|
-
const popUpRef = (0,
|
11785
|
+
const [closed, setClosed] = (0, import_react74.useState)(false);
|
11786
|
+
const [answered, setAnswered] = (0, import_react74.useState)(false);
|
11787
|
+
const [clickedOption, setClickedOption] = (0, import_react74.useState)(null);
|
11788
|
+
const [closingTimer, setClosingTimer] = (0, import_react74.useState)(5);
|
11789
|
+
const popUpRef = (0, import_react74.useRef)(null);
|
11775
11790
|
const boxPosition = {
|
11776
11791
|
"bottom-right": "hawa-right-4",
|
11777
11792
|
"bottom-left": "hawa-left-4"
|
11778
11793
|
};
|
11779
|
-
(0,
|
11794
|
+
(0, import_react74.useEffect)(() => {
|
11780
11795
|
const timeoutHide = setTimeout(() => {
|
11781
11796
|
if (closingTimer >= 0) {
|
11782
11797
|
setClosingTimer(closingTimer - 1);
|
@@ -11794,7 +11809,7 @@ var FeedbackRating = ({
|
|
11794
11809
|
}
|
11795
11810
|
}, 200);
|
11796
11811
|
};
|
11797
|
-
return /* @__PURE__ */
|
11812
|
+
return /* @__PURE__ */ import_react74.default.createElement(
|
11798
11813
|
"div",
|
11799
11814
|
{
|
11800
11815
|
ref: popUpRef,
|
@@ -11803,7 +11818,7 @@ var FeedbackRating = ({
|
|
11803
11818
|
boxPosition[position]
|
11804
11819
|
)
|
11805
11820
|
},
|
11806
|
-
/* @__PURE__ */
|
11821
|
+
/* @__PURE__ */ import_react74.default.createElement(
|
11807
11822
|
"div",
|
11808
11823
|
{
|
11809
11824
|
className: cn(
|
@@ -11812,8 +11827,8 @@ var FeedbackRating = ({
|
|
11812
11827
|
props.banner && "hawa-rounded-none hawa-px-4 md:hawa-rounded-t md:hawa-px-64"
|
11813
11828
|
)
|
11814
11829
|
},
|
11815
|
-
/* @__PURE__ */
|
11816
|
-
/* @__PURE__ */
|
11830
|
+
/* @__PURE__ */ import_react74.default.createElement("div", { className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm" }, props.title),
|
11831
|
+
/* @__PURE__ */ import_react74.default.createElement(
|
11817
11832
|
"button",
|
11818
11833
|
{
|
11819
11834
|
type: "button",
|
@@ -11822,7 +11837,7 @@ var FeedbackRating = ({
|
|
11822
11837
|
"aria-label": "Close",
|
11823
11838
|
onClick: () => slowClose()
|
11824
11839
|
},
|
11825
|
-
/* @__PURE__ */
|
11840
|
+
/* @__PURE__ */ import_react74.default.createElement(
|
11826
11841
|
"svg",
|
11827
11842
|
{
|
11828
11843
|
"aria-hidden": "true",
|
@@ -11830,7 +11845,7 @@ var FeedbackRating = ({
|
|
11830
11845
|
fill: "currentColor",
|
11831
11846
|
viewBox: "0 0 20 20"
|
11832
11847
|
},
|
11833
|
-
/* @__PURE__ */
|
11848
|
+
/* @__PURE__ */ import_react74.default.createElement(
|
11834
11849
|
"path",
|
11835
11850
|
{
|
11836
11851
|
fillRule: "evenodd",
|
@@ -11840,8 +11855,8 @@ var FeedbackRating = ({
|
|
11840
11855
|
)
|
11841
11856
|
)
|
11842
11857
|
),
|
11843
|
-
/* @__PURE__ */
|
11844
|
-
/* @__PURE__ */
|
11858
|
+
/* @__PURE__ */ import_react74.default.createElement("div", { className: "hawa-mt-8" }, props.question),
|
11859
|
+
/* @__PURE__ */ import_react74.default.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded" }, props.options && props.options.map((op, i) => /* @__PURE__ */ import_react74.default.createElement(
|
11845
11860
|
"span",
|
11846
11861
|
{
|
11847
11862
|
key: i,
|
@@ -11869,24 +11884,24 @@ var FeedbackRating = ({
|
|
11869
11884
|
},
|
11870
11885
|
op
|
11871
11886
|
))),
|
11872
|
-
props.texts && /* @__PURE__ */
|
11873
|
-
answered && /* @__PURE__ */
|
11887
|
+
props.texts && /* @__PURE__ */ import_react74.default.createElement("div", { className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs" }, /* @__PURE__ */ import_react74.default.createElement("span", null, props.texts.least), /* @__PURE__ */ import_react74.default.createElement("span", null, props.texts.most)),
|
11888
|
+
answered && /* @__PURE__ */ import_react74.default.createElement("div", { className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-rounded hawa-bg-black hawa-bg-opacity-80 hawa-p-4 hawa-text-center hawa-transition-all" }, /* @__PURE__ */ import_react74.default.createElement("span", { className: "hawa-font-bold hawa-text-white" }, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ import_react74.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ import_react74.default.createElement(Button, { variant: "secondary", onClick: () => slowClose() }, "Close")))
|
11874
11889
|
)
|
11875
11890
|
);
|
11876
11891
|
};
|
11877
11892
|
|
11878
11893
|
// blocks/feedback/FeedbackEmoji.tsx
|
11879
|
-
var
|
11894
|
+
var import_react75 = __toESM(require("react"));
|
11880
11895
|
var FeedbackEmoji = (props) => {
|
11881
|
-
const [selectedEmoji, setSelectedEmoji] = (0,
|
11882
|
-
const [loadingSubmit, setLoadingSubmit] = (0,
|
11883
|
-
const [feedbackText, setFeedbackText] = (0,
|
11884
|
-
const [helperText, setHelperText] = (0,
|
11896
|
+
const [selectedEmoji, setSelectedEmoji] = (0, import_react75.useState)(null);
|
11897
|
+
const [loadingSubmit, setLoadingSubmit] = (0, import_react75.useState)(false);
|
11898
|
+
const [feedbackText, setFeedbackText] = (0, import_react75.useState)("");
|
11899
|
+
const [helperText, setHelperText] = (0, import_react75.useState)(false);
|
11885
11900
|
let emojis = [
|
11886
|
-
{ icon: /* @__PURE__ */
|
11887
|
-
{ icon: /* @__PURE__ */
|
11888
|
-
{ icon: /* @__PURE__ */
|
11889
|
-
{ icon: /* @__PURE__ */
|
11901
|
+
{ icon: /* @__PURE__ */ import_react75.default.createElement(VeryGoodEmoji, null), value: "very-good" },
|
11902
|
+
{ icon: /* @__PURE__ */ import_react75.default.createElement(GoodEmoji, null), value: "good" },
|
11903
|
+
{ icon: /* @__PURE__ */ import_react75.default.createElement(BadEmoji, null), value: "bad" },
|
11904
|
+
{ icon: /* @__PURE__ */ import_react75.default.createElement(VeryBadEmoji, null), value: "very-bad" }
|
11890
11905
|
];
|
11891
11906
|
const onFeedbackSubmit = async () => {
|
11892
11907
|
if (feedbackText) {
|
@@ -11906,7 +11921,7 @@ var FeedbackEmoji = (props) => {
|
|
11906
11921
|
setHelperText(true);
|
11907
11922
|
}
|
11908
11923
|
};
|
11909
|
-
return /* @__PURE__ */
|
11924
|
+
return /* @__PURE__ */ import_react75.default.createElement(
|
11910
11925
|
"div",
|
11911
11926
|
{
|
11912
11927
|
className: cn(
|
@@ -11914,7 +11929,7 @@ var FeedbackEmoji = (props) => {
|
|
11914
11929
|
selectedEmoji ? "hawa-h-[189px] hawa-min-w-fit" : "hawa-h-[44px] "
|
11915
11930
|
)
|
11916
11931
|
},
|
11917
|
-
/* @__PURE__ */
|
11932
|
+
/* @__PURE__ */ import_react75.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 " }, /* @__PURE__ */ import_react75.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 " }, emojis.map((emoji, i) => /* @__PURE__ */ import_react75.default.createElement(
|
11918
11933
|
Button,
|
11919
11934
|
{
|
11920
11935
|
key: i,
|
@@ -11933,7 +11948,7 @@ var FeedbackEmoji = (props) => {
|
|
11933
11948
|
},
|
11934
11949
|
emoji.icon
|
11935
11950
|
)))),
|
11936
|
-
/* @__PURE__ */
|
11951
|
+
/* @__PURE__ */ import_react75.default.createElement(
|
11937
11952
|
"div",
|
11938
11953
|
{
|
11939
11954
|
className: cn(
|
@@ -11941,7 +11956,7 @@ var FeedbackEmoji = (props) => {
|
|
11941
11956
|
selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 "
|
11942
11957
|
)
|
11943
11958
|
},
|
11944
|
-
props.showSuccess ? /* @__PURE__ */
|
11959
|
+
props.showSuccess ? /* @__PURE__ */ import_react75.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4" }, /* @__PURE__ */ import_react75.default.createElement("div", { className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground" }, /* @__PURE__ */ import_react75.default.createElement(
|
11945
11960
|
"svg",
|
11946
11961
|
{
|
11947
11962
|
stroke: "currentColor",
|
@@ -11951,13 +11966,13 @@ var FeedbackEmoji = (props) => {
|
|
11951
11966
|
height: "0.5em",
|
11952
11967
|
width: "0.5em"
|
11953
11968
|
},
|
11954
|
-
/* @__PURE__ */
|
11955
|
-
)), /* @__PURE__ */
|
11969
|
+
/* @__PURE__ */ import_react75.default.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" })
|
11970
|
+
)), /* @__PURE__ */ import_react75.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-text-center hawa-text-sm" }, /* @__PURE__ */ import_react75.default.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ import_react75.default.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ import_react75.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-1 hawa-p-1" }, /* @__PURE__ */ import_react75.default.createElement(
|
11956
11971
|
Popover,
|
11957
11972
|
{
|
11958
11973
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
11959
11974
|
open: helperText,
|
11960
|
-
trigger: /* @__PURE__ */
|
11975
|
+
trigger: /* @__PURE__ */ import_react75.default.createElement(
|
11961
11976
|
Textarea,
|
11962
11977
|
{
|
11963
11978
|
classNames: {
|
@@ -11975,8 +11990,8 @@ var FeedbackEmoji = (props) => {
|
|
11975
11990
|
}
|
11976
11991
|
)
|
11977
11992
|
},
|
11978
|
-
/* @__PURE__ */
|
11979
|
-
), /* @__PURE__ */
|
11993
|
+
/* @__PURE__ */ import_react75.default.createElement("span", { className: "hawa-m-0" }, "Please enter your feedback")
|
11994
|
+
), /* @__PURE__ */ import_react75.default.createElement(
|
11980
11995
|
Button,
|
11981
11996
|
{
|
11982
11997
|
isLoading: loadingSubmit,
|
@@ -11991,7 +12006,7 @@ var FeedbackEmoji = (props) => {
|
|
11991
12006
|
};
|
11992
12007
|
|
11993
12008
|
// blocks/feedback/FeedbackForm.tsx
|
11994
|
-
var
|
12009
|
+
var import_react76 = __toESM(require("react"));
|
11995
12010
|
var import_react_hook_form7 = require("react-hook-form");
|
11996
12011
|
var import_zod7 = require("@hookform/resolvers/zod");
|
11997
12012
|
var z7 = __toESM(require("zod"));
|
@@ -12005,7 +12020,7 @@ var FeedbackForm = (props) => {
|
|
12005
12020
|
resolver: (0, import_zod7.zodResolver)(formSchema),
|
12006
12021
|
defaultValues: { requestType: "", description: "" }
|
12007
12022
|
});
|
12008
|
-
return /* @__PURE__ */
|
12023
|
+
return /* @__PURE__ */ import_react76.default.createElement(
|
12009
12024
|
Card,
|
12010
12025
|
{
|
12011
12026
|
className: cn(
|
@@ -12013,7 +12028,7 @@ var FeedbackForm = (props) => {
|
|
12013
12028
|
),
|
12014
12029
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
12015
12030
|
},
|
12016
|
-
/* @__PURE__ */
|
12031
|
+
/* @__PURE__ */ import_react76.default.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ import_react76.default.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ import_react76.default.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ import_react76.default.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ import_react76.default.createElement(
|
12017
12032
|
"form",
|
12018
12033
|
{
|
12019
12034
|
noValidate: true,
|
@@ -12026,15 +12041,15 @@ var FeedbackForm = (props) => {
|
|
12026
12041
|
}),
|
12027
12042
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
12028
12043
|
},
|
12029
|
-
/* @__PURE__ */
|
12030
|
-
/* @__PURE__ */
|
12044
|
+
/* @__PURE__ */ import_react76.default.createElement(Label2, null),
|
12045
|
+
/* @__PURE__ */ import_react76.default.createElement(
|
12031
12046
|
import_react_hook_form7.Controller,
|
12032
12047
|
{
|
12033
12048
|
name: "requestType",
|
12034
12049
|
control,
|
12035
12050
|
render: ({ field }) => {
|
12036
12051
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
12037
|
-
return /* @__PURE__ */
|
12052
|
+
return /* @__PURE__ */ import_react76.default.createElement(
|
12038
12053
|
Select,
|
12039
12054
|
{
|
12040
12055
|
...field,
|
@@ -12052,14 +12067,14 @@ var FeedbackForm = (props) => {
|
|
12052
12067
|
}
|
12053
12068
|
}
|
12054
12069
|
),
|
12055
|
-
/* @__PURE__ */
|
12070
|
+
/* @__PURE__ */ import_react76.default.createElement(
|
12056
12071
|
import_react_hook_form7.Controller,
|
12057
12072
|
{
|
12058
12073
|
name: "description",
|
12059
12074
|
control,
|
12060
12075
|
render: ({ field }) => {
|
12061
12076
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
12062
|
-
return /* @__PURE__ */
|
12077
|
+
return /* @__PURE__ */ import_react76.default.createElement(
|
12063
12078
|
Textarea,
|
12064
12079
|
{
|
12065
12080
|
helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
|
@@ -12077,15 +12092,15 @@ var FeedbackForm = (props) => {
|
|
12077
12092
|
}
|
12078
12093
|
}
|
12079
12094
|
),
|
12080
|
-
/* @__PURE__ */
|
12095
|
+
/* @__PURE__ */ import_react76.default.createElement(Button, { isLoading: props.loadingSubmission, type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
12081
12096
|
))
|
12082
12097
|
);
|
12083
12098
|
};
|
12084
12099
|
|
12085
12100
|
// blocks/misc/LegalTexts.tsx
|
12086
|
-
var
|
12101
|
+
var import_react77 = __toESM(require("react"));
|
12087
12102
|
var LegalTexts = ({ tabs, ...props }) => {
|
12088
|
-
return /* @__PURE__ */
|
12103
|
+
return /* @__PURE__ */ import_react77.default.createElement(
|
12089
12104
|
Tabs,
|
12090
12105
|
{
|
12091
12106
|
value: props.activeTab,
|
@@ -12093,8 +12108,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
12093
12108
|
defaultValue: props.defaultTab || tabs[0].value,
|
12094
12109
|
dir: props.direction
|
12095
12110
|
},
|
12096
|
-
/* @__PURE__ */
|
12097
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
12111
|
+
/* @__PURE__ */ import_react77.default.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react77.default.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
12112
|
+
tabs.map((tab, index) => /* @__PURE__ */ import_react77.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react77.default.createElement(
|
12098
12113
|
ScrollArea,
|
12099
12114
|
{
|
12100
12115
|
className: cn(
|
@@ -12108,9 +12123,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
12108
12123
|
};
|
12109
12124
|
|
12110
12125
|
// blocks/misc/EmptyState.tsx
|
12111
|
-
var
|
12126
|
+
var import_react78 = __toESM(require("react"));
|
12112
12127
|
var EmptyState = ({ texts, onActionClick }) => {
|
12113
|
-
return /* @__PURE__ */
|
12128
|
+
return /* @__PURE__ */ import_react78.default.createElement(Card, null, /* @__PURE__ */ import_react78.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react78.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ import_react78.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react78.default.createElement(
|
12114
12129
|
"svg",
|
12115
12130
|
{
|
12116
12131
|
stroke: "currentColor",
|
@@ -12120,30 +12135,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
12120
12135
|
height: "0.35em",
|
12121
12136
|
width: "0.35em"
|
12122
12137
|
},
|
12123
|
-
/* @__PURE__ */
|
12124
|
-
)), /* @__PURE__ */
|
12138
|
+
/* @__PURE__ */ import_react78.default.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" })
|
12139
|
+
)), /* @__PURE__ */ import_react78.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ import_react78.default.createElement(CardFooter, null, /* @__PURE__ */ import_react78.default.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
|
12125
12140
|
};
|
12126
12141
|
|
12127
12142
|
// blocks/misc/Testimonial.tsx
|
12128
|
-
var
|
12143
|
+
var import_react79 = __toESM(require("react"));
|
12129
12144
|
var Testimonial = () => {
|
12130
|
-
return /* @__PURE__ */
|
12145
|
+
return /* @__PURE__ */ import_react79.default.createElement(Card, null, /* @__PURE__ */ import_react79.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react79.default.createElement("div", null, /* @__PURE__ */ import_react79.default.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ import_react79.default.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ import_react79.default.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ import_react79.default.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ import_react79.default.createElement(
|
12131
12146
|
"path",
|
12132
12147
|
{
|
12133
12148
|
d: "M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",
|
12134
12149
|
fill: "#FFFFFF"
|
12135
12150
|
}
|
12136
|
-
), /* @__PURE__ */
|
12151
|
+
), /* @__PURE__ */ import_react79.default.createElement(
|
12137
12152
|
"path",
|
12138
12153
|
{
|
12139
12154
|
d: "M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",
|
12140
12155
|
fill: "#FFFFFF"
|
12141
12156
|
}
|
12142
|
-
)), /* @__PURE__ */
|
12157
|
+
)), /* @__PURE__ */ import_react79.default.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ import_react79.default.createElement("div", null, /* @__PURE__ */ import_react79.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react79.default.createElement("div", null, " Chief Information Security Officer")))));
|
12143
12158
|
};
|
12144
12159
|
|
12145
12160
|
// blocks/misc/LeadGenerator.tsx
|
12146
|
-
var
|
12161
|
+
var import_react80 = __toESM(require("react"));
|
12147
12162
|
var import_react_hook_form8 = require("react-hook-form");
|
12148
12163
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
12149
12164
|
var _a;
|
@@ -12155,14 +12170,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
12155
12170
|
console.log("handleNewsletterSub props was not provided");
|
12156
12171
|
}
|
12157
12172
|
};
|
12158
|
-
return /* @__PURE__ */
|
12173
|
+
return /* @__PURE__ */ import_react80.default.createElement(Card, null, /* @__PURE__ */ import_react80.default.createElement(CardHeader, null, /* @__PURE__ */ import_react80.default.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ import_react80.default.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react80.default.createElement(CardContent, null, /* @__PURE__ */ import_react80.default.createElement(
|
12159
12174
|
"form",
|
12160
12175
|
{
|
12161
12176
|
noValidate: true,
|
12162
12177
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
12163
12178
|
onSubmit: handleSubmit(onSubmit)
|
12164
12179
|
},
|
12165
|
-
/* @__PURE__ */
|
12180
|
+
/* @__PURE__ */ import_react80.default.createElement(
|
12166
12181
|
import_react_hook_form8.Controller,
|
12167
12182
|
{
|
12168
12183
|
name: "email",
|
@@ -12175,27 +12190,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
12175
12190
|
}
|
12176
12191
|
},
|
12177
12192
|
defaultValue: "",
|
12178
|
-
render: ({ field }) => /* @__PURE__ */
|
12193
|
+
render: ({ field }) => /* @__PURE__ */ import_react80.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
12179
12194
|
}
|
12180
12195
|
),
|
12181
|
-
/* @__PURE__ */
|
12196
|
+
/* @__PURE__ */ import_react80.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
12182
12197
|
)));
|
12183
12198
|
};
|
12184
12199
|
|
12185
12200
|
// blocks/misc/Announcement.tsx
|
12186
|
-
var
|
12201
|
+
var import_react81 = __toESM(require("react"));
|
12187
12202
|
var Announcement = ({
|
12188
12203
|
onActionClick,
|
12189
12204
|
...props
|
12190
12205
|
}) => {
|
12191
|
-
return /* @__PURE__ */
|
12206
|
+
return /* @__PURE__ */ import_react81.default.createElement(Card, null, /* @__PURE__ */ import_react81.default.createElement(
|
12192
12207
|
CardContent,
|
12193
12208
|
{
|
12194
12209
|
headless: true,
|
12195
12210
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
12196
12211
|
},
|
12197
|
-
/* @__PURE__ */
|
12198
|
-
/* @__PURE__ */
|
12212
|
+
/* @__PURE__ */ import_react81.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ import_react81.default.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ import_react81.default.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
12213
|
+
/* @__PURE__ */ import_react81.default.createElement(
|
12199
12214
|
Button,
|
12200
12215
|
{
|
12201
12216
|
onClick: () => onActionClick(),
|
@@ -12207,15 +12222,15 @@ var Announcement = ({
|
|
12207
12222
|
};
|
12208
12223
|
|
12209
12224
|
// blocks/misc/NotFound.tsx
|
12210
|
-
var
|
12225
|
+
var import_react82 = __toESM(require("react"));
|
12211
12226
|
var NotFound = ({ texts }) => {
|
12212
|
-
return /* @__PURE__ */
|
12227
|
+
return /* @__PURE__ */ import_react82.default.createElement(Card, null, /* @__PURE__ */ import_react82.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react82.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ import_react82.default.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ import_react82.default.createElement("div", { className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold " }, (texts == null ? void 0 : texts.pageNotFound) || "Page Not Found"), /* @__PURE__ */ import_react82.default.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ import_react82.default.createElement(import_react82.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react82.default.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ import_react82.default.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
|
12213
12228
|
};
|
12214
12229
|
|
12215
12230
|
// blocks/misc/NoPermission.tsx
|
12216
|
-
var
|
12231
|
+
var import_react83 = __toESM(require("react"));
|
12217
12232
|
var NoPermission = ({ texts }) => {
|
12218
|
-
return /* @__PURE__ */
|
12233
|
+
return /* @__PURE__ */ import_react83.default.createElement(Card, null, /* @__PURE__ */ import_react83.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react83.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ import_react83.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react83.default.createElement(
|
12219
12234
|
"svg",
|
12220
12235
|
{
|
12221
12236
|
stroke: "currentColor",
|
@@ -12225,12 +12240,12 @@ var NoPermission = ({ texts }) => {
|
|
12225
12240
|
height: "0.35em",
|
12226
12241
|
width: "0.35em"
|
12227
12242
|
},
|
12228
|
-
/* @__PURE__ */
|
12229
|
-
)), /* @__PURE__ */
|
12243
|
+
/* @__PURE__ */ import_react83.default.createElement("path", { d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" })
|
12244
|
+
)), /* @__PURE__ */ import_react83.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ import_react83.default.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
|
12230
12245
|
};
|
12231
12246
|
|
12232
12247
|
// blocks/misc/ContactForm.tsx
|
12233
|
-
var
|
12248
|
+
var import_react84 = __toESM(require("react"));
|
12234
12249
|
var import_react_hook_form9 = require("react-hook-form");
|
12235
12250
|
var import_zod8 = require("@hookform/resolvers/zod");
|
12236
12251
|
var z8 = __toESM(require("zod"));
|
@@ -12303,7 +12318,7 @@ var ContactForm = ({
|
|
12303
12318
|
console.log("Form is submitted but onSubmit prop is missing");
|
12304
12319
|
}
|
12305
12320
|
};
|
12306
|
-
return /* @__PURE__ */
|
12321
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12307
12322
|
Card,
|
12308
12323
|
{
|
12309
12324
|
className: cn(
|
@@ -12312,7 +12327,7 @@ var ContactForm = ({
|
|
12312
12327
|
),
|
12313
12328
|
style: cardless ? { boxShadow: "none" } : void 0
|
12314
12329
|
},
|
12315
|
-
/* @__PURE__ */
|
12330
|
+
/* @__PURE__ */ import_react84.default.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, props.showSuccess ? /* @__PURE__ */ import_react84.default.createElement(CardHeader, null, /* @__PURE__ */ import_react84.default.createElement(CardTitle, null, ((_d = texts == null ? void 0 : texts.success) == null ? void 0 : _d.title) || "Message Sent! \u{1F389}"), /* @__PURE__ */ import_react84.default.createElement(CardDescription, null, ((_e = texts == null ? void 0 : texts.success) == null ? void 0 : _e.description) || "Thank you for your submission, we will get back to you as soon as possible.")) : /* @__PURE__ */ import_react84.default.createElement(
|
12316
12331
|
"form",
|
12317
12332
|
{
|
12318
12333
|
noValidate: true,
|
@@ -12321,7 +12336,7 @@ var ContactForm = ({
|
|
12321
12336
|
id: formId,
|
12322
12337
|
autoComplete: formAutoComplete
|
12323
12338
|
},
|
12324
|
-
/* @__PURE__ */
|
12339
|
+
/* @__PURE__ */ import_react84.default.createElement(
|
12325
12340
|
"div",
|
12326
12341
|
{
|
12327
12342
|
className: cn(
|
@@ -12332,14 +12347,14 @@ var ContactForm = ({
|
|
12332
12347
|
}
|
12333
12348
|
)
|
12334
12349
|
},
|
12335
|
-
/* @__PURE__ */
|
12350
|
+
/* @__PURE__ */ import_react84.default.createElement(
|
12336
12351
|
import_react_hook_form9.Controller,
|
12337
12352
|
{
|
12338
12353
|
control,
|
12339
12354
|
name: "name",
|
12340
12355
|
render: ({ field }) => {
|
12341
12356
|
var _a2;
|
12342
|
-
return /* @__PURE__ */
|
12357
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12343
12358
|
Input,
|
12344
12359
|
{
|
12345
12360
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -12352,14 +12367,14 @@ var ContactForm = ({
|
|
12352
12367
|
}
|
12353
12368
|
}
|
12354
12369
|
),
|
12355
|
-
/* @__PURE__ */
|
12370
|
+
/* @__PURE__ */ import_react84.default.createElement(
|
12356
12371
|
import_react_hook_form9.Controller,
|
12357
12372
|
{
|
12358
12373
|
control,
|
12359
12374
|
name: "email",
|
12360
12375
|
render: ({ field }) => {
|
12361
12376
|
var _a2;
|
12362
|
-
return /* @__PURE__ */
|
12377
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12363
12378
|
Input,
|
12364
12379
|
{
|
12365
12380
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -12375,7 +12390,7 @@ var ContactForm = ({
|
|
12375
12390
|
),
|
12376
12391
|
customFields && customFields.map((customField) => {
|
12377
12392
|
console.log("custom", customField);
|
12378
|
-
return /* @__PURE__ */
|
12393
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12379
12394
|
import_react_hook_form9.Controller,
|
12380
12395
|
{
|
12381
12396
|
control,
|
@@ -12385,7 +12400,7 @@ var ContactForm = ({
|
|
12385
12400
|
switch (type) {
|
12386
12401
|
case "text":
|
12387
12402
|
case "number":
|
12388
|
-
return /* @__PURE__ */
|
12403
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12389
12404
|
Input,
|
12390
12405
|
{
|
12391
12406
|
id: customField.name,
|
@@ -12396,7 +12411,7 @@ var ContactForm = ({
|
|
12396
12411
|
}
|
12397
12412
|
);
|
12398
12413
|
case "select":
|
12399
|
-
return /* @__PURE__ */
|
12414
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12400
12415
|
Select,
|
12401
12416
|
{
|
12402
12417
|
label,
|
@@ -12406,20 +12421,20 @@ var ContactForm = ({
|
|
12406
12421
|
}
|
12407
12422
|
);
|
12408
12423
|
default:
|
12409
|
-
return /* @__PURE__ */
|
12424
|
+
return /* @__PURE__ */ import_react84.default.createElement("div", null, "Unknown type");
|
12410
12425
|
}
|
12411
12426
|
}
|
12412
12427
|
}
|
12413
12428
|
);
|
12414
12429
|
}),
|
12415
|
-
/* @__PURE__ */
|
12430
|
+
/* @__PURE__ */ import_react84.default.createElement(
|
12416
12431
|
import_react_hook_form9.Controller,
|
12417
12432
|
{
|
12418
12433
|
control,
|
12419
12434
|
name: "message",
|
12420
12435
|
render: ({ field }) => {
|
12421
12436
|
var _a2;
|
12422
|
-
return /* @__PURE__ */
|
12437
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12423
12438
|
Textarea,
|
12424
12439
|
{
|
12425
12440
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -12436,19 +12451,19 @@ var ContactForm = ({
|
|
12436
12451
|
}
|
12437
12452
|
}
|
12438
12453
|
),
|
12439
|
-
/* @__PURE__ */
|
12454
|
+
/* @__PURE__ */ import_react84.default.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
|
12440
12455
|
))
|
12441
12456
|
);
|
12442
12457
|
};
|
12443
12458
|
|
12444
12459
|
// blocks/pricing/PricingPlans.tsx
|
12445
|
-
var
|
12460
|
+
var import_react90 = __toESM(require("react"));
|
12446
12461
|
|
12447
12462
|
// blocks/cards/ActionCard.tsx
|
12448
|
-
var
|
12463
|
+
var import_react85 = __toESM(require("react"));
|
12449
12464
|
var ActionCard = (props) => {
|
12450
|
-
const [hovered, setHovered] = (0,
|
12451
|
-
return /* @__PURE__ */
|
12465
|
+
const [hovered, setHovered] = (0, import_react85.useState)(false);
|
12466
|
+
return /* @__PURE__ */ import_react85.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ import_react85.default.createElement(
|
12452
12467
|
"div",
|
12453
12468
|
{
|
12454
12469
|
className: "hawa-group hawa-relative hawa-h-full hawa-w-full hawa-rounded hawa-border hawa-bg-background hawa-bg-cover hawa-bg-center hawa-transition-all hawa-duration-500 hover:hawa-drop-shadow-2xl",
|
@@ -12458,7 +12473,7 @@ var ActionCard = (props) => {
|
|
12458
12473
|
onMouseEnter: () => setHovered(true),
|
12459
12474
|
onMouseLeave: () => setHovered(false)
|
12460
12475
|
},
|
12461
|
-
props.blank ? /* @__PURE__ */
|
12476
|
+
props.blank ? /* @__PURE__ */ import_react85.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ import_react85.default.createElement(
|
12462
12477
|
"svg",
|
12463
12478
|
{
|
12464
12479
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
@@ -12470,11 +12485,11 @@ var ActionCard = (props) => {
|
|
12470
12485
|
width: "1em",
|
12471
12486
|
xmlns: "http://www.w3.org/2000/svg"
|
12472
12487
|
},
|
12473
|
-
/* @__PURE__ */
|
12474
|
-
)) : /* @__PURE__ */
|
12475
|
-
/* @__PURE__ */
|
12476
|
-
!props.blank && /* @__PURE__ */
|
12477
|
-
), /* @__PURE__ */
|
12488
|
+
/* @__PURE__ */ import_react85.default.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
12489
|
+
)) : /* @__PURE__ */ import_react85.default.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
12490
|
+
/* @__PURE__ */ import_react85.default.createElement("div", { className: "hawa-absolute hawa-bottom-2 hawa-right-2 hawa-z-10 hawa-opacity-0 hawa-transition-all hawa-duration-200 group-hover:hawa-opacity-100" }, props.inCardActions),
|
12491
|
+
!props.blank && /* @__PURE__ */ import_react85.default.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ import_react85.default.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ import_react85.default.createElement("p", { className: "hawa-text-white" }, props.subtitle))
|
12492
|
+
), /* @__PURE__ */ import_react85.default.createElement(
|
12478
12493
|
"div",
|
12479
12494
|
{
|
12480
12495
|
className: `hawa-flex hawa-flex-row hawa-justify-between hawa-text-sm hawa-transition-all hawa-duration-200 ${hovered ? "hawa-opacity-100" : "hawa-opacity-0"}`
|
@@ -12484,15 +12499,15 @@ var ActionCard = (props) => {
|
|
12484
12499
|
};
|
12485
12500
|
|
12486
12501
|
// blocks/cards/AdCard.tsx
|
12487
|
-
var
|
12502
|
+
var import_react86 = __toESM(require("react"));
|
12488
12503
|
var AdCard = ({
|
12489
12504
|
orientation = "vertical",
|
12490
12505
|
...props
|
12491
12506
|
}) => {
|
12492
|
-
const adRef = (0,
|
12493
|
-
const [closed, setClosed] = (0,
|
12507
|
+
const adRef = (0, import_react86.useRef)(null);
|
12508
|
+
const [closed, setClosed] = (0, import_react86.useState)(false);
|
12494
12509
|
let duration = 0;
|
12495
|
-
(0,
|
12510
|
+
(0, import_react86.useEffect)(() => {
|
12496
12511
|
if (duration) {
|
12497
12512
|
const timeoutHide = setTimeout(() => {
|
12498
12513
|
setClosed(true);
|
@@ -12517,21 +12532,21 @@ var AdCard = ({
|
|
12517
12532
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
12518
12533
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
12519
12534
|
};
|
12520
|
-
return /* @__PURE__ */
|
12535
|
+
return /* @__PURE__ */ import_react86.default.createElement("div", { ref: adRef }, /* @__PURE__ */ import_react86.default.createElement(
|
12521
12536
|
"div",
|
12522
12537
|
{
|
12523
12538
|
className: cn(cardStyles[orientation], props.className),
|
12524
12539
|
onClick: props.handleClick
|
12525
12540
|
},
|
12526
|
-
/* @__PURE__ */
|
12541
|
+
/* @__PURE__ */ import_react86.default.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start " }, /* @__PURE__ */ import_react86.default.createElement(
|
12527
12542
|
"img",
|
12528
12543
|
{
|
12529
12544
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
12530
12545
|
className: imageStyles[orientation]
|
12531
12546
|
}
|
12532
12547
|
)),
|
12533
|
-
/* @__PURE__ */
|
12534
|
-
props.canHide && /* @__PURE__ */
|
12548
|
+
/* @__PURE__ */ import_react86.default.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ import_react86.default.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ import_react86.default.createElement("div", { className: "hawa-text-[12px]" }, props.description)),
|
12549
|
+
props.canHide && /* @__PURE__ */ import_react86.default.createElement(
|
12535
12550
|
"span",
|
12536
12551
|
{
|
12537
12552
|
onClick: (e) => {
|
@@ -12557,7 +12572,7 @@ var AdCard = ({
|
|
12557
12572
|
};
|
12558
12573
|
|
12559
12574
|
// blocks/cards/PricingCard.tsx
|
12560
|
-
var
|
12575
|
+
var import_react87 = __toESM(require("react"));
|
12561
12576
|
var PricingCard = ({
|
12562
12577
|
size = "medium",
|
12563
12578
|
direction = "ltr",
|
@@ -12572,13 +12587,13 @@ var PricingCard = ({
|
|
12572
12587
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
12573
12588
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
12574
12589
|
};
|
12575
|
-
return /* @__PURE__ */
|
12590
|
+
return /* @__PURE__ */ import_react87.default.createElement(import_react87.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react87.default.createElement(
|
12576
12591
|
Skeleton,
|
12577
12592
|
{
|
12578
12593
|
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
12579
12594
|
fade: "bottom"
|
12580
12595
|
}
|
12581
|
-
) : /* @__PURE__ */
|
12596
|
+
) : /* @__PURE__ */ import_react87.default.createElement(
|
12582
12597
|
Card,
|
12583
12598
|
{
|
12584
12599
|
dir: direction,
|
@@ -12589,7 +12604,7 @@ var PricingCard = ({
|
|
12589
12604
|
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
12590
12605
|
)
|
12591
12606
|
},
|
12592
|
-
recommended && /* @__PURE__ */
|
12607
|
+
recommended && /* @__PURE__ */ import_react87.default.createElement(
|
12593
12608
|
"div",
|
12594
12609
|
{
|
12595
12610
|
className: "hawa-absolute -hawa-left-[1px] hawa-top-0 -hawa-translate-y-full hawa-rounded-t hawa-border hawa-bg-primary hawa-p-2 hawa-text-center hawa-text-primary-foreground",
|
@@ -12597,7 +12612,7 @@ var PricingCard = ({
|
|
12597
12612
|
},
|
12598
12613
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
12599
12614
|
),
|
12600
|
-
/* @__PURE__ */
|
12615
|
+
/* @__PURE__ */ import_react87.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react87.default.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ import_react87.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react87.default.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ import_react87.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react87.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react87.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ import_react87.default.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ import_react87.default.createElement(import_react87.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react87.default.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ import_react87.default.createElement(import_react87.default.Fragment, null, /* @__PURE__ */ import_react87.default.createElement(import_react87.default.Fragment, null, /* @__PURE__ */ import_react87.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react87.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react87.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react87.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react87.default.createElement("span", { className: "hawa-ml-1 hawa-whitespace-nowrap hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ import_react87.default.createElement(Separator2, null), /* @__PURE__ */ import_react87.default.createElement(
|
12601
12616
|
"div",
|
12602
12617
|
{
|
12603
12618
|
className: cn(
|
@@ -12605,9 +12620,9 @@ var PricingCard = ({
|
|
12605
12620
|
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
12606
12621
|
)
|
12607
12622
|
},
|
12608
|
-
props.features && /* @__PURE__ */
|
12623
|
+
props.features && /* @__PURE__ */ import_react87.default.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
12609
12624
|
var _a2;
|
12610
|
-
return /* @__PURE__ */
|
12625
|
+
return /* @__PURE__ */ import_react87.default.createElement(
|
12611
12626
|
"li",
|
12612
12627
|
{
|
12613
12628
|
key: o,
|
@@ -12616,7 +12631,7 @@ var PricingCard = ({
|
|
12616
12631
|
!feature.included && "hawa-line-through"
|
12617
12632
|
)
|
12618
12633
|
},
|
12619
|
-
/* @__PURE__ */
|
12634
|
+
/* @__PURE__ */ import_react87.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ import_react87.default.createElement(
|
12620
12635
|
"svg",
|
12621
12636
|
{
|
12622
12637
|
"aria-label": "Check Icon",
|
@@ -12625,7 +12640,7 @@ var PricingCard = ({
|
|
12625
12640
|
fill: "currentColor",
|
12626
12641
|
viewBox: "0 0 20 20"
|
12627
12642
|
},
|
12628
|
-
/* @__PURE__ */
|
12643
|
+
/* @__PURE__ */ import_react87.default.createElement(
|
12629
12644
|
"path",
|
12630
12645
|
{
|
12631
12646
|
fillRule: "evenodd",
|
@@ -12633,7 +12648,7 @@ var PricingCard = ({
|
|
12633
12648
|
clipRule: "evenodd"
|
12634
12649
|
}
|
12635
12650
|
)
|
12636
|
-
) : /* @__PURE__ */
|
12651
|
+
) : /* @__PURE__ */ import_react87.default.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ import_react87.default.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ import_react87.default.createElement(
|
12637
12652
|
Chip,
|
12638
12653
|
{
|
12639
12654
|
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
@@ -12641,13 +12656,13 @@ var PricingCard = ({
|
|
12641
12656
|
size: "small"
|
12642
12657
|
}
|
12643
12658
|
))),
|
12644
|
-
feature.hint && /* @__PURE__ */
|
12659
|
+
feature.hint && /* @__PURE__ */ import_react87.default.createElement(
|
12645
12660
|
Tooltip,
|
12646
12661
|
{
|
12647
12662
|
content: feature.hint,
|
12648
12663
|
side: feature.hintSide
|
12649
12664
|
},
|
12650
|
-
/* @__PURE__ */
|
12665
|
+
/* @__PURE__ */ import_react87.default.createElement(
|
12651
12666
|
"svg",
|
12652
12667
|
{
|
12653
12668
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -12659,14 +12674,14 @@ var PricingCard = ({
|
|
12659
12674
|
strokeLinecap: "round",
|
12660
12675
|
strokeLinejoin: "round"
|
12661
12676
|
},
|
12662
|
-
/* @__PURE__ */
|
12663
|
-
/* @__PURE__ */
|
12664
|
-
/* @__PURE__ */
|
12677
|
+
/* @__PURE__ */ import_react87.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
12678
|
+
/* @__PURE__ */ import_react87.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
12679
|
+
/* @__PURE__ */ import_react87.default.createElement("path", { d: "M12 17h.01" })
|
12665
12680
|
)
|
12666
12681
|
)
|
12667
12682
|
);
|
12668
12683
|
})),
|
12669
|
-
/* @__PURE__ */
|
12684
|
+
/* @__PURE__ */ import_react87.default.createElement(
|
12670
12685
|
Button,
|
12671
12686
|
{
|
12672
12687
|
onClick: props.onPlanClicked,
|
@@ -12680,7 +12695,7 @@ var PricingCard = ({
|
|
12680
12695
|
};
|
12681
12696
|
|
12682
12697
|
// blocks/cards/ItemCard.tsx
|
12683
|
-
var
|
12698
|
+
var import_react88 = __toESM(require("react"));
|
12684
12699
|
var ItemCard = ({
|
12685
12700
|
actions,
|
12686
12701
|
counts,
|
@@ -12709,12 +12724,12 @@ var ItemCard = ({
|
|
12709
12724
|
)
|
12710
12725
|
};
|
12711
12726
|
let headerActionsButtonStyle = "hawa-inline-block hawa-rounded hawa-p-1 hawa-text-sm hawa-text-gray-500 hover:hawa-bg-gray-100 focus:hawa-outline-none focus:hawa-ring-4 focus:hawa-ring-gray-200 dark:hawa-text-gray-400 dark:hover:hawa-bg-gray-700 dark:focus:hawa-ring-gray-700";
|
12712
|
-
const [openActionHeader, setOpenActionHeader] = (0,
|
12727
|
+
const [openActionHeader, setOpenActionHeader] = (0, import_react88.useState)(false);
|
12713
12728
|
function handleOpenActionHeader(e) {
|
12714
12729
|
e.stopPropagation();
|
12715
12730
|
setOpenActionHeader(!openActionHeader);
|
12716
12731
|
}
|
12717
|
-
(0,
|
12732
|
+
(0, import_react88.useEffect)(() => {
|
12718
12733
|
window.onclick = () => {
|
12719
12734
|
if (openActionHeader) {
|
12720
12735
|
setOpenActionHeader(false);
|
@@ -12722,7 +12737,7 @@ var ItemCard = ({
|
|
12722
12737
|
};
|
12723
12738
|
return () => window.onclick = null;
|
12724
12739
|
}, [openActionHeader]);
|
12725
|
-
return /* @__PURE__ */
|
12740
|
+
return /* @__PURE__ */ import_react88.default.createElement(
|
12726
12741
|
"div",
|
12727
12742
|
{
|
12728
12743
|
className: cn(
|
@@ -12738,7 +12753,7 @@ var ItemCard = ({
|
|
12738
12753
|
}
|
12739
12754
|
}
|
12740
12755
|
},
|
12741
|
-
cardImage && /* @__PURE__ */
|
12756
|
+
cardImage && /* @__PURE__ */ import_react88.default.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ import_react88.default.createElement(
|
12742
12757
|
"img",
|
12743
12758
|
{
|
12744
12759
|
src: cardImage,
|
@@ -12747,7 +12762,7 @@ var ItemCard = ({
|
|
12747
12762
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
12748
12763
|
)
|
12749
12764
|
}
|
12750
|
-
), clickableImage && /* @__PURE__ */
|
12765
|
+
), clickableImage && /* @__PURE__ */ import_react88.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react88.default.createElement("div", { className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-center hawa-opacity-0 hawa-transition-all group-hover:hawa-opacity-100 " }, /* @__PURE__ */ import_react88.default.createElement(
|
12751
12766
|
Button,
|
12752
12767
|
{
|
12753
12768
|
variant: "secondary",
|
@@ -12757,19 +12772,19 @@ var ItemCard = ({
|
|
12757
12772
|
clickableImageActionIcon,
|
12758
12773
|
clickableImageActionText || "Click"
|
12759
12774
|
)))),
|
12760
|
-
/* @__PURE__ */
|
12775
|
+
/* @__PURE__ */ import_react88.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-justify-between hawa-p-4 xs:hawa-p-6 xs:hawa-px-2 xs:hawa-pb-2" }, headerActions && /* @__PURE__ */ import_react88.default.createElement("div", { className: "hawa-absolute hawa-end-0 hawa-top-0 hawa-flex hawa-justify-end hawa-pe-3 hawa-pt-3" }, /* @__PURE__ */ import_react88.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react88.default.createElement(
|
12761
12776
|
DropdownMenu,
|
12762
12777
|
{
|
12763
12778
|
items: headerActions,
|
12764
|
-
trigger: /* @__PURE__ */
|
12779
|
+
trigger: /* @__PURE__ */ import_react88.default.createElement(
|
12765
12780
|
Button,
|
12766
12781
|
{
|
12767
12782
|
variant: "ghost",
|
12768
12783
|
size: "smallIcon",
|
12769
12784
|
onClick: handleOpenActionHeader
|
12770
12785
|
},
|
12771
|
-
/* @__PURE__ */
|
12772
|
-
/* @__PURE__ */
|
12786
|
+
/* @__PURE__ */ import_react88.default.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
12787
|
+
/* @__PURE__ */ import_react88.default.createElement(
|
12773
12788
|
"svg",
|
12774
12789
|
{
|
12775
12790
|
className: "hawa-h-5 hawa-w-5",
|
@@ -12777,11 +12792,11 @@ var ItemCard = ({
|
|
12777
12792
|
fill: "currentColor",
|
12778
12793
|
viewBox: "0 0 20 20"
|
12779
12794
|
},
|
12780
|
-
/* @__PURE__ */
|
12795
|
+
/* @__PURE__ */ import_react88.default.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
12781
12796
|
)
|
12782
12797
|
)
|
12783
12798
|
}
|
12784
|
-
))), /* @__PURE__ */
|
12799
|
+
))), /* @__PURE__ */ import_react88.default.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ import_react88.default.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ import_react88.default.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ import_react88.default.createElement(
|
12785
12800
|
"div",
|
12786
12801
|
{
|
12787
12802
|
className: cn(
|
@@ -12791,15 +12806,15 @@ var ItemCard = ({
|
|
12791
12806
|
)
|
12792
12807
|
},
|
12793
12808
|
counts,
|
12794
|
-
/* @__PURE__ */
|
12809
|
+
/* @__PURE__ */ import_react88.default.createElement(StopPropagationWrapper, null, actions)
|
12795
12810
|
) : null)
|
12796
12811
|
);
|
12797
12812
|
};
|
12798
12813
|
|
12799
12814
|
// blocks/cards/LandingCard.tsx
|
12800
|
-
var
|
12815
|
+
var import_react89 = __toESM(require("react"));
|
12801
12816
|
var LandingCard = (props) => {
|
12802
|
-
return /* @__PURE__ */
|
12817
|
+
return /* @__PURE__ */ import_react89.default.createElement(Card, { className: props.className }, /* @__PURE__ */ import_react89.default.createElement(CardHeader, null, props.icon, /* @__PURE__ */ import_react89.default.createElement(CardTitle, null, props.title), /* @__PURE__ */ import_react89.default.createElement(CardDescription, null, props.subtitle)));
|
12803
12818
|
};
|
12804
12819
|
|
12805
12820
|
// blocks/pricing/PricingPlans.tsx
|
@@ -12808,7 +12823,7 @@ var PricingPlans = ({
|
|
12808
12823
|
cardsContainerProps,
|
12809
12824
|
...props
|
12810
12825
|
}) => {
|
12811
|
-
return /* @__PURE__ */
|
12826
|
+
return /* @__PURE__ */ import_react90.default.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ import_react90.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react90.default.createElement(
|
12812
12827
|
Radio,
|
12813
12828
|
{
|
12814
12829
|
name: "cycle",
|
@@ -12821,7 +12836,7 @@ var PricingPlans = ({
|
|
12821
12836
|
}
|
12822
12837
|
}
|
12823
12838
|
}
|
12824
|
-
), /* @__PURE__ */
|
12839
|
+
), /* @__PURE__ */ import_react90.default.createElement(
|
12825
12840
|
Radio,
|
12826
12841
|
{
|
12827
12842
|
name: "currency",
|
@@ -12834,7 +12849,7 @@ var PricingPlans = ({
|
|
12834
12849
|
}
|
12835
12850
|
}
|
12836
12851
|
}
|
12837
|
-
)), /* @__PURE__ */
|
12852
|
+
)), /* @__PURE__ */ import_react90.default.createElement(
|
12838
12853
|
"div",
|
12839
12854
|
{
|
12840
12855
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -12842,7 +12857,7 @@ var PricingPlans = ({
|
|
12842
12857
|
},
|
12843
12858
|
props.plans.map((plan, index) => {
|
12844
12859
|
var _a, _b;
|
12845
|
-
return /* @__PURE__ */
|
12860
|
+
return /* @__PURE__ */ import_react90.default.createElement(
|
12846
12861
|
PricingCard,
|
12847
12862
|
{
|
12848
12863
|
key: index,
|
@@ -12873,7 +12888,7 @@ var PricingPlans = ({
|
|
12873
12888
|
};
|
12874
12889
|
|
12875
12890
|
// blocks/pricing/ComparingPlans.tsx
|
12876
|
-
var
|
12891
|
+
var import_react91 = __toESM(require("react"));
|
12877
12892
|
var ComparingPlans = (props) => {
|
12878
12893
|
const uniqueFeatures = Array.from(
|
12879
12894
|
new Set(
|
@@ -12882,7 +12897,7 @@ var ComparingPlans = (props) => {
|
|
12882
12897
|
)
|
12883
12898
|
)
|
12884
12899
|
);
|
12885
|
-
return /* @__PURE__ */
|
12900
|
+
return /* @__PURE__ */ import_react91.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react91.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ import_react91.default.createElement(
|
12886
12901
|
Radio,
|
12887
12902
|
{
|
12888
12903
|
name: "cycle",
|
@@ -12897,7 +12912,7 @@ var ComparingPlans = (props) => {
|
|
12897
12912
|
}
|
12898
12913
|
}
|
12899
12914
|
}
|
12900
|
-
), /* @__PURE__ */
|
12915
|
+
), /* @__PURE__ */ import_react91.default.createElement(
|
12901
12916
|
Radio,
|
12902
12917
|
{
|
12903
12918
|
name: "currency",
|
@@ -12912,7 +12927,7 @@ var ComparingPlans = (props) => {
|
|
12912
12927
|
}
|
12913
12928
|
}
|
12914
12929
|
}
|
12915
|
-
)), /* @__PURE__ */
|
12930
|
+
)), /* @__PURE__ */ import_react91.default.createElement(
|
12916
12931
|
"div",
|
12917
12932
|
{
|
12918
12933
|
className: cn(
|
@@ -12923,16 +12938,16 @@ var ComparingPlans = (props) => {
|
|
12923
12938
|
top: props.topPosition || 0
|
12924
12939
|
}
|
12925
12940
|
},
|
12926
|
-
/* @__PURE__ */
|
12927
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
12941
|
+
/* @__PURE__ */ import_react91.default.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
12942
|
+
props.plans.map((plan, i) => /* @__PURE__ */ import_react91.default.createElement(
|
12928
12943
|
"div",
|
12929
12944
|
{
|
12930
12945
|
key: i,
|
12931
12946
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
12932
12947
|
},
|
12933
|
-
/* @__PURE__ */
|
12948
|
+
/* @__PURE__ */ import_react91.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react91.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react91.default.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ import_react91.default.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ import_react91.default.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ import_react91.default.createElement(import_react91.default.Fragment, null, /* @__PURE__ */ import_react91.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ import_react91.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ import_react91.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
12934
12949
|
))
|
12935
|
-
), /* @__PURE__ */
|
12950
|
+
), /* @__PURE__ */ import_react91.default.createElement(
|
12936
12951
|
ScrollArea,
|
12937
12952
|
{
|
12938
12953
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -12940,7 +12955,7 @@ var ComparingPlans = (props) => {
|
|
12940
12955
|
},
|
12941
12956
|
uniqueFeatures.map((featureText, featureIndex) => {
|
12942
12957
|
var _a, _b, _c, _d;
|
12943
|
-
return /* @__PURE__ */
|
12958
|
+
return /* @__PURE__ */ import_react91.default.createElement(
|
12944
12959
|
"div",
|
12945
12960
|
{
|
12946
12961
|
key: featureIndex,
|
@@ -12949,11 +12964,11 @@ var ComparingPlans = (props) => {
|
|
12949
12964
|
featureIndex === 0 ? "" : "hawa-border-t"
|
12950
12965
|
)
|
12951
12966
|
},
|
12952
|
-
/* @__PURE__ */
|
12967
|
+
/* @__PURE__ */ import_react91.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
12953
12968
|
(plan) => plan.features.some(
|
12954
12969
|
(feature) => feature.text === featureText && feature.hint
|
12955
12970
|
)
|
12956
|
-
) && /* @__PURE__ */
|
12971
|
+
) && /* @__PURE__ */ import_react91.default.createElement(
|
12957
12972
|
Tooltip,
|
12958
12973
|
{
|
12959
12974
|
side: "right",
|
@@ -12968,7 +12983,7 @@ var ComparingPlans = (props) => {
|
|
12968
12983
|
(feature) => feature.text === featureText
|
12969
12984
|
)) == null ? void 0 : _b.hint
|
12970
12985
|
},
|
12971
|
-
/* @__PURE__ */
|
12986
|
+
/* @__PURE__ */ import_react91.default.createElement(
|
12972
12987
|
"svg",
|
12973
12988
|
{
|
12974
12989
|
stroke: "currentColor",
|
@@ -12978,13 +12993,13 @@ var ComparingPlans = (props) => {
|
|
12978
12993
|
height: "1em",
|
12979
12994
|
width: "1em"
|
12980
12995
|
},
|
12981
|
-
/* @__PURE__ */
|
12996
|
+
/* @__PURE__ */ import_react91.default.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
12982
12997
|
)
|
12983
12998
|
), props.plans.some(
|
12984
12999
|
(plan) => plan.features.some(
|
12985
13000
|
(feature) => feature.text === featureText && feature.soon
|
12986
13001
|
)
|
12987
|
-
) && /* @__PURE__ */
|
13002
|
+
) && /* @__PURE__ */ import_react91.default.createElement(
|
12988
13003
|
Chip,
|
12989
13004
|
{
|
12990
13005
|
label: ((_d = (_c = props.plans.find(
|
@@ -12998,26 +13013,26 @@ var ComparingPlans = (props) => {
|
|
12998
13013
|
const feature = plan.features.find(
|
12999
13014
|
(f) => f.text === featureText
|
13000
13015
|
);
|
13001
|
-
return /* @__PURE__ */
|
13016
|
+
return /* @__PURE__ */ import_react91.default.createElement(
|
13002
13017
|
"div",
|
13003
13018
|
{
|
13004
13019
|
key: planIndex,
|
13005
13020
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
13006
13021
|
},
|
13007
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
13022
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ import_react91.default.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ import_react91.default.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
13008
13023
|
);
|
13009
13024
|
})
|
13010
13025
|
);
|
13011
13026
|
})
|
13012
|
-
), props.showButtons && /* @__PURE__ */
|
13027
|
+
), props.showButtons && /* @__PURE__ */ import_react91.default.createElement("div", { className: "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-px-4 hawa-py-5" }, /* @__PURE__ */ import_react91.default.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
13013
13028
|
var _a;
|
13014
|
-
return /* @__PURE__ */
|
13029
|
+
return /* @__PURE__ */ import_react91.default.createElement(
|
13015
13030
|
"div",
|
13016
13031
|
{
|
13017
13032
|
key: i,
|
13018
13033
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
13019
13034
|
},
|
13020
|
-
/* @__PURE__ */
|
13035
|
+
/* @__PURE__ */ import_react91.default.createElement(
|
13021
13036
|
Button,
|
13022
13037
|
{
|
13023
13038
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -13041,15 +13056,15 @@ var ComparingPlans = (props) => {
|
|
13041
13056
|
};
|
13042
13057
|
|
13043
13058
|
// blocks/pricing/HorizontalPricing.tsx
|
13044
|
-
var
|
13059
|
+
var import_react92 = __toESM(require("react"));
|
13045
13060
|
var HorizontalPricing = (props) => {
|
13046
|
-
const [selectedCard, setSelectedCard] = (0,
|
13061
|
+
const [selectedCard, setSelectedCard] = (0, import_react92.useState)("");
|
13047
13062
|
let data = [
|
13048
13063
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
13049
13064
|
{ title: "business", price: "$99", cycle: "/mo" },
|
13050
13065
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
13051
13066
|
];
|
13052
|
-
return /* @__PURE__ */
|
13067
|
+
return /* @__PURE__ */ import_react92.default.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ import_react92.default.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ import_react92.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ import_react92.default.createElement(
|
13053
13068
|
Radio,
|
13054
13069
|
{
|
13055
13070
|
name: "currency",
|
@@ -13057,7 +13072,7 @@ var HorizontalPricing = (props) => {
|
|
13057
13072
|
options: props.currencies,
|
13058
13073
|
defaultValue: props.currentCurrency
|
13059
13074
|
}
|
13060
|
-
), /* @__PURE__ */
|
13075
|
+
), /* @__PURE__ */ import_react92.default.createElement(
|
13061
13076
|
Radio,
|
13062
13077
|
{
|
13063
13078
|
name: "cycle",
|
@@ -13065,7 +13080,7 @@ var HorizontalPricing = (props) => {
|
|
13065
13080
|
options: props.billingCycles,
|
13066
13081
|
defaultValue: props.currentCycle
|
13067
13082
|
}
|
13068
|
-
)), data.map((d, i) => /* @__PURE__ */
|
13083
|
+
)), data.map((d, i) => /* @__PURE__ */ import_react92.default.createElement(
|
13069
13084
|
"label",
|
13070
13085
|
{
|
13071
13086
|
key: i,
|
@@ -13073,7 +13088,7 @@ var HorizontalPricing = (props) => {
|
|
13073
13088
|
className: "",
|
13074
13089
|
onClick: () => setSelectedCard(d.title)
|
13075
13090
|
},
|
13076
|
-
/* @__PURE__ */
|
13091
|
+
/* @__PURE__ */ import_react92.default.createElement(
|
13077
13092
|
"input",
|
13078
13093
|
{
|
13079
13094
|
type: "radio",
|
@@ -13082,7 +13097,7 @@ var HorizontalPricing = (props) => {
|
|
13082
13097
|
className: "hawa-peer hawa-appearance-none"
|
13083
13098
|
}
|
13084
13099
|
),
|
13085
|
-
/* @__PURE__ */
|
13100
|
+
/* @__PURE__ */ import_react92.default.createElement(
|
13086
13101
|
"div",
|
13087
13102
|
{
|
13088
13103
|
className: cn(
|
@@ -13090,18 +13105,18 @@ var HorizontalPricing = (props) => {
|
|
13090
13105
|
"hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden"
|
13091
13106
|
)
|
13092
13107
|
},
|
13093
|
-
/* @__PURE__ */
|
13108
|
+
/* @__PURE__ */ import_react92.default.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ import_react92.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react92.default.createElement(
|
13094
13109
|
CardText,
|
13095
13110
|
{
|
13096
13111
|
title: "Enterprise",
|
13097
13112
|
subtitle: "For startups and new businesses"
|
13098
13113
|
}
|
13099
13114
|
)),
|
13100
|
-
/* @__PURE__ */
|
13115
|
+
/* @__PURE__ */ import_react92.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
13101
13116
|
)
|
13102
13117
|
))));
|
13103
13118
|
};
|
13104
|
-
var CheckIcons = () => /* @__PURE__ */
|
13119
|
+
var CheckIcons = () => /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, /* @__PURE__ */ import_react92.default.createElement(
|
13105
13120
|
"svg",
|
13106
13121
|
{
|
13107
13122
|
fill: "none",
|
@@ -13110,7 +13125,7 @@ var CheckIcons = () => /* @__PURE__ */ import_react91.default.createElement(impo
|
|
13110
13125
|
stroke: "currentColor",
|
13111
13126
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
13112
13127
|
},
|
13113
|
-
/* @__PURE__ */
|
13128
|
+
/* @__PURE__ */ import_react92.default.createElement(
|
13114
13129
|
"path",
|
13115
13130
|
{
|
13116
13131
|
strokeLinecap: "round",
|
@@ -13118,14 +13133,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react91.default.createElement(impo
|
|
13118
13133
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
13119
13134
|
}
|
13120
13135
|
)
|
13121
|
-
), /* @__PURE__ */
|
13136
|
+
), /* @__PURE__ */ import_react92.default.createElement(
|
13122
13137
|
"svg",
|
13123
13138
|
{
|
13124
13139
|
viewBox: "0 0 24 24",
|
13125
13140
|
fill: "currentColor",
|
13126
13141
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
13127
13142
|
},
|
13128
|
-
/* @__PURE__ */
|
13143
|
+
/* @__PURE__ */ import_react92.default.createElement(
|
13129
13144
|
"path",
|
13130
13145
|
{
|
13131
13146
|
fillRule: "evenodd",
|
@@ -13134,14 +13149,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react91.default.createElement(impo
|
|
13134
13149
|
}
|
13135
13150
|
)
|
13136
13151
|
));
|
13137
|
-
var CardText = (props) => /* @__PURE__ */
|
13138
|
-
var CardPrice = (props) => /* @__PURE__ */
|
13152
|
+
var CardText = (props) => /* @__PURE__ */ import_react92.default.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ import_react92.default.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ import_react92.default.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
13153
|
+
var CardPrice = (props) => /* @__PURE__ */ import_react92.default.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ import_react92.default.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
13139
13154
|
|
13140
13155
|
// blocks/Usage.tsx
|
13141
|
-
var
|
13156
|
+
var import_react93 = __toESM(require("react"));
|
13142
13157
|
var Usage = (props) => {
|
13143
13158
|
var _a;
|
13144
|
-
return /* @__PURE__ */
|
13159
|
+
return /* @__PURE__ */ import_react93.default.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-1 hawa-rounded hawa-border hawa-bg-card hawa-p-4" }, /* @__PURE__ */ import_react93.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, /* @__PURE__ */ import_react93.default.createElement("span", { className: "hawa-bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ import_react93.default.createElement(Tooltip, { content: props.tooltip }, /* @__PURE__ */ import_react93.default.createElement(
|
13145
13160
|
"svg",
|
13146
13161
|
{
|
13147
13162
|
stroke: "currentColor",
|
@@ -13152,8 +13167,8 @@ var Usage = (props) => {
|
|
13152
13167
|
height: "1em",
|
13153
13168
|
width: "1em"
|
13154
13169
|
},
|
13155
|
-
/* @__PURE__ */
|
13156
|
-
))), /* @__PURE__ */
|
13170
|
+
/* @__PURE__ */ import_react93.default.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
13171
|
+
))), /* @__PURE__ */ import_react93.default.createElement("div", { className: "hawa-bg-white-100 hawa-flex hawa-flex-row" }, /* @__PURE__ */ import_react93.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react93.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react93.default.createElement(Progress, { value: (_a = props.percent) != null ? _a : 0 }));
|
13157
13172
|
};
|
13158
13173
|
// Annotate the CommonJS export names for ESM import in node:
|
13159
13174
|
0 && (module.exports = {
|
@@ -13293,6 +13308,10 @@ var Usage = (props) => {
|
|
13293
13308
|
PhoneInput,
|
13294
13309
|
PhoneMockup,
|
13295
13310
|
PinInput,
|
13311
|
+
PinInputGroup,
|
13312
|
+
PinInputRoot,
|
13313
|
+
PinInputSeperator,
|
13314
|
+
PinInputSlot,
|
13296
13315
|
Popover,
|
13297
13316
|
PopoverContent,
|
13298
13317
|
PopoverPortal,
|
@@ -13376,3 +13395,53 @@ var Usage = (props) => {
|
|
13376
13395
|
useToast,
|
13377
13396
|
useWindowSize
|
13378
13397
|
});
|
13398
|
+
/*! Bundled license information:
|
13399
|
+
|
13400
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
13401
|
+
(**
|
13402
|
+
* @license lucide-react v0.379.0 - ISC
|
13403
|
+
*
|
13404
|
+
* This source code is licensed under the ISC license.
|
13405
|
+
* See the LICENSE file in the root directory of this source tree.
|
13406
|
+
*)
|
13407
|
+
|
13408
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
13409
|
+
(**
|
13410
|
+
* @license lucide-react v0.379.0 - ISC
|
13411
|
+
*
|
13412
|
+
* This source code is licensed under the ISC license.
|
13413
|
+
* See the LICENSE file in the root directory of this source tree.
|
13414
|
+
*)
|
13415
|
+
|
13416
|
+
lucide-react/dist/esm/Icon.js:
|
13417
|
+
(**
|
13418
|
+
* @license lucide-react v0.379.0 - ISC
|
13419
|
+
*
|
13420
|
+
* This source code is licensed under the ISC license.
|
13421
|
+
* See the LICENSE file in the root directory of this source tree.
|
13422
|
+
*)
|
13423
|
+
|
13424
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
13425
|
+
(**
|
13426
|
+
* @license lucide-react v0.379.0 - ISC
|
13427
|
+
*
|
13428
|
+
* This source code is licensed under the ISC license.
|
13429
|
+
* See the LICENSE file in the root directory of this source tree.
|
13430
|
+
*)
|
13431
|
+
|
13432
|
+
lucide-react/dist/esm/icons/dot.js:
|
13433
|
+
(**
|
13434
|
+
* @license lucide-react v0.379.0 - ISC
|
13435
|
+
*
|
13436
|
+
* This source code is licensed under the ISC license.
|
13437
|
+
* See the LICENSE file in the root directory of this source tree.
|
13438
|
+
*)
|
13439
|
+
|
13440
|
+
lucide-react/dist/esm/lucide-react.js:
|
13441
|
+
(**
|
13442
|
+
* @license lucide-react v0.379.0 - ISC
|
13443
|
+
*
|
13444
|
+
* This source code is licensed under the ISC license.
|
13445
|
+
* See the LICENSE file in the root directory of this source tree.
|
13446
|
+
*)
|
13447
|
+
*/
|