@sikka/hawa 0.37.2-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 +1 -1
- package/dist/combobox/index.d.ts +1 -1
- 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/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 +42 -21
- package/dist/elements/index.d.ts +42 -21
- package/dist/elements/index.js +335 -290
- package/dist/elements/index.mjs +14 -23
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.css +29 -3
- package/dist/index.d.mts +44 -22
- package/dist/index.d.ts +44 -22
- package/dist/index.js +764 -717
- package/dist/index.mjs +287 -244
- 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 +2 -1
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
|
);
|
@@ -3976,16 +3953,7 @@ var Combobox = React28.forwardRef(
|
|
3976
3953
|
},
|
3977
3954
|
/* @__PURE__ */ React28.createElement("path", { d: "m6 9 6 6 6-6" })
|
3978
3955
|
)
|
3979
|
-
), /* @__PURE__ */ React28.createElement(
|
3980
|
-
"p",
|
3981
|
-
{
|
3982
|
-
className: cn(
|
3983
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3984
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3985
|
-
)
|
3986
|
-
},
|
3987
|
-
props.helperText
|
3988
|
-
))), /* @__PURE__ */ React28.createElement(
|
3956
|
+
), /* @__PURE__ */ React28.createElement(HelperText, { helperText: props.helperText }))), /* @__PURE__ */ React28.createElement(
|
3989
3957
|
PopoverContent,
|
3990
3958
|
{
|
3991
3959
|
sideOffset: 0,
|
@@ -4109,16 +4077,7 @@ var Textarea = React29.forwardRef(
|
|
4109
4077
|
ref
|
4110
4078
|
}
|
4111
4079
|
),
|
4112
|
-
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(
|
4113
|
-
"p",
|
4114
|
-
{
|
4115
|
-
className: cn(
|
4116
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
4117
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
4118
|
-
)
|
4119
|
-
},
|
4120
|
-
props.helperText
|
4121
|
-
), 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))
|
4122
4081
|
);
|
4123
4082
|
}
|
4124
4083
|
);
|
@@ -5044,7 +5003,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
5044
5003
|
"div",
|
5045
5004
|
{
|
5046
5005
|
className: cn(
|
5047
|
-
"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",
|
5048
5007
|
showLeftFade ? "hawa-block" : "hawa-hidden"
|
5049
5008
|
)
|
5050
5009
|
}
|
@@ -5053,7 +5012,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
5053
5012
|
"div",
|
5054
5013
|
{
|
5055
5014
|
className: cn(
|
5056
|
-
"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 ",
|
5057
5016
|
showRightFade ? "hawa-block" : "hawa-hidden"
|
5058
5017
|
)
|
5059
5018
|
}
|
@@ -5433,16 +5392,7 @@ var Select = ({
|
|
5433
5392
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
5434
5393
|
}
|
5435
5394
|
),
|
5436
|
-
!props.hideHelperText && /* @__PURE__ */ import_react33.default.createElement(
|
5437
|
-
"p",
|
5438
|
-
{
|
5439
|
-
className: cn(
|
5440
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
5441
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
5442
|
-
)
|
5443
|
-
},
|
5444
|
-
props.helperText
|
5445
|
-
)
|
5395
|
+
!props.hideHelperText && /* @__PURE__ */ import_react33.default.createElement(HelperText, { helperText: props.helperText })
|
5446
5396
|
);
|
5447
5397
|
};
|
5448
5398
|
|
@@ -7583,112 +7533,162 @@ var PhoneInput = ({
|
|
7583
7533
|
),
|
7584
7534
|
...inputProps
|
7585
7535
|
}
|
7586
|
-
))), /* @__PURE__ */ import_react37.default.createElement(
|
7587
|
-
"p",
|
7588
|
-
{
|
7589
|
-
className: cn(
|
7590
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
7591
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7592
|
-
)
|
7593
|
-
},
|
7594
|
-
props.helperText
|
7595
|
-
));
|
7536
|
+
))), /* @__PURE__ */ import_react37.default.createElement(HelperText, { helperText: props.helperText }));
|
7596
7537
|
};
|
7597
7538
|
|
7598
7539
|
// elements/pinInput/PinInput.tsx
|
7599
|
-
var
|
7600
|
-
var
|
7601
|
-
|
7602
|
-
|
7603
|
-
|
7604
|
-
|
7605
|
-
|
7606
|
-
|
7607
|
-
|
7608
|
-
|
7609
|
-
|
7610
|
-
|
7611
|
-
|
7612
|
-
|
7613
|
-
|
7614
|
-
|
7615
|
-
|
7616
|
-
|
7617
|
-
|
7618
|
-
|
7619
|
-
|
7620
|
-
|
7621
|
-
|
7622
|
-
|
7623
|
-
|
7624
|
-
|
7625
|
-
|
7626
|
-
|
7627
|
-
|
7628
|
-
|
7629
|
-
|
7630
|
-
|
7631
|
-
|
7632
|
-
|
7633
|
-
|
7634
|
-
|
7635
|
-
|
7636
|
-
|
7637
|
-
|
7638
|
-
|
7639
|
-
|
7640
|
-
|
7641
|
-
}
|
7642
|
-
};
|
7643
|
-
return /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react38.default.createElement(
|
7644
|
-
"div",
|
7645
|
-
{
|
7646
|
-
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
7647
|
-
dir: "ltr"
|
7648
|
-
},
|
7649
|
-
pin.map((value, index) => /* @__PURE__ */ import_react38.default.createElement(
|
7650
|
-
"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",
|
7651
7582
|
{
|
7652
|
-
|
7653
|
-
|
7654
|
-
|
7655
|
-
|
7656
|
-
|
7657
|
-
|
7658
|
-
|
7659
|
-
|
7660
|
-
|
7661
|
-
|
7662
|
-
),
|
7663
|
-
|
7664
|
-
|
7665
|
-
|
7666
|
-
|
7667
|
-
|
7668
|
-
|
7669
|
-
|
7670
|
-
|
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",
|
7671
7647
|
{
|
7648
|
+
ref,
|
7672
7649
|
className: cn(
|
7673
|
-
"hawa-
|
7674
|
-
|
7675
|
-
|
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
|
7676
7655
|
},
|
7677
|
-
|
7678
|
-
|
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 }));
|
7679
7679
|
};
|
7680
7680
|
|
7681
7681
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
7682
|
-
var
|
7682
|
+
var import_react40 = __toESM(require("react"));
|
7683
7683
|
var StopPropagationWrapper = (props) => {
|
7684
7684
|
const handleClick = (e) => {
|
7685
7685
|
e.stopPropagation();
|
7686
7686
|
};
|
7687
|
-
return /* @__PURE__ */
|
7687
|
+
return /* @__PURE__ */ import_react40.default.createElement("div", { onClick: handleClick }, props.children);
|
7688
7688
|
};
|
7689
7689
|
|
7690
7690
|
// elements/colorPicker/ColorPicker.tsx
|
7691
|
-
var
|
7691
|
+
var import_react41 = __toESM(require("react"));
|
7692
7692
|
var ColorPicker = ({
|
7693
7693
|
containerProps,
|
7694
7694
|
colorPickerProps,
|
@@ -7699,8 +7699,8 @@ var ColorPicker = ({
|
|
7699
7699
|
preview = false,
|
7700
7700
|
...props
|
7701
7701
|
}) => {
|
7702
|
-
const [selectedColor, setSelectedColor] = (0,
|
7703
|
-
(0,
|
7702
|
+
const [selectedColor, setSelectedColor] = (0, import_react41.useState)(props.color);
|
7703
|
+
(0, import_react41.useEffect)(() => {
|
7704
7704
|
if (selectedColor && selectedColor[0] !== "#") {
|
7705
7705
|
setSelectedColor(`#${selectedColor}`);
|
7706
7706
|
}
|
@@ -7717,13 +7717,13 @@ var ColorPicker = ({
|
|
7717
7717
|
props.handleChange(e);
|
7718
7718
|
}
|
7719
7719
|
};
|
7720
|
-
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(
|
7721
7721
|
"div",
|
7722
7722
|
{
|
7723
7723
|
style: { height: 40, backgroundColor: selectedColor },
|
7724
7724
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
7725
7725
|
},
|
7726
|
-
/* @__PURE__ */
|
7726
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7727
7727
|
"input",
|
7728
7728
|
{
|
7729
7729
|
disabled: preview,
|
@@ -7742,7 +7742,7 @@ var ColorPicker = ({
|
|
7742
7742
|
...colorPickerProps
|
7743
7743
|
}
|
7744
7744
|
)
|
7745
|
-
), /* @__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(
|
7746
7746
|
"input",
|
7747
7747
|
{
|
7748
7748
|
disabled: preview,
|
@@ -7761,20 +7761,11 @@ var ColorPicker = ({
|
|
7761
7761
|
},
|
7762
7762
|
...textInputProps
|
7763
7763
|
}
|
7764
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
7765
|
-
"p",
|
7766
|
-
{
|
7767
|
-
className: cn(
|
7768
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
7769
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7770
|
-
)
|
7771
|
-
},
|
7772
|
-
props.helperText
|
7773
|
-
));
|
7764
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react41.default.createElement(HelperText, { helperText: props.helperText }));
|
7774
7765
|
};
|
7775
7766
|
|
7776
7767
|
// elements/progressCircle/ProgressCircle.tsx
|
7777
|
-
var
|
7768
|
+
var import_react42 = __toESM(require("react"));
|
7778
7769
|
var size2config = {
|
7779
7770
|
xs: { radius: 15, strokeWidth: 3 },
|
7780
7771
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -7791,7 +7782,7 @@ function getLimitedValue(input) {
|
|
7791
7782
|
return input;
|
7792
7783
|
}
|
7793
7784
|
}
|
7794
|
-
var ProgressCircle =
|
7785
|
+
var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
7795
7786
|
const {
|
7796
7787
|
value: inputValue,
|
7797
7788
|
size = "md",
|
@@ -7811,7 +7802,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7811
7802
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7812
7803
|
const strokeDashoffset = value / 100 * circumference;
|
7813
7804
|
const offset = circumference - strokeDashoffset;
|
7814
|
-
return /* @__PURE__ */
|
7805
|
+
return /* @__PURE__ */ import_react42.default.createElement(import_react42.default.Fragment, null, /* @__PURE__ */ import_react42.default.createElement(
|
7815
7806
|
"div",
|
7816
7807
|
{
|
7817
7808
|
ref,
|
@@ -7820,7 +7811,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7820
7811
|
className
|
7821
7812
|
)
|
7822
7813
|
},
|
7823
|
-
/* @__PURE__ */
|
7814
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7824
7815
|
"svg",
|
7825
7816
|
{
|
7826
7817
|
width: radius * 2,
|
@@ -7828,7 +7819,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7828
7819
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7829
7820
|
className: "hawa-rotate-180 hawa-transform"
|
7830
7821
|
},
|
7831
|
-
/* @__PURE__ */
|
7822
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7832
7823
|
"circle",
|
7833
7824
|
{
|
7834
7825
|
r: normalizedRadius,
|
@@ -7844,7 +7835,7 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7844
7835
|
)
|
7845
7836
|
}
|
7846
7837
|
),
|
7847
|
-
value > 0 ? /* @__PURE__ */
|
7838
|
+
value > 0 ? /* @__PURE__ */ import_react42.default.createElement(
|
7848
7839
|
"circle",
|
7849
7840
|
{
|
7850
7841
|
r: normalizedRadius,
|
@@ -7864,24 +7855,24 @@ var ProgressCircle = import_react41.default.forwardRef((props, ref) => {
|
|
7864
7855
|
}
|
7865
7856
|
) : null
|
7866
7857
|
),
|
7867
|
-
/* @__PURE__ */
|
7858
|
+
/* @__PURE__ */ import_react42.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7868
7859
|
));
|
7869
7860
|
});
|
7870
7861
|
ProgressCircle.displayName = "ProgressCircle";
|
7871
7862
|
|
7872
7863
|
// elements/pagination/Pagination.tsx
|
7873
|
-
var
|
7864
|
+
var import_react43 = __toESM(require("react"));
|
7874
7865
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7875
7866
|
var Pagination = ({
|
7876
7867
|
direction,
|
7877
7868
|
totalPages,
|
7878
7869
|
currentPage
|
7879
7870
|
}) => {
|
7880
|
-
const [page, setPage] =
|
7871
|
+
const [page, setPage] = import_react43.default.useState(currentPage || 0);
|
7881
7872
|
const handlePageChange = (page2) => {
|
7882
7873
|
setPage(page2);
|
7883
7874
|
};
|
7884
|
-
return /* @__PURE__ */
|
7875
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7885
7876
|
import_react_headless_pagination.Pagination,
|
7886
7877
|
{
|
7887
7878
|
totalPages,
|
@@ -7893,10 +7884,10 @@ var Pagination = ({
|
|
7893
7884
|
truncableText: "...",
|
7894
7885
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7895
7886
|
},
|
7896
|
-
/* @__PURE__ */
|
7887
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7897
7888
|
import_react_headless_pagination.Pagination.PrevButton,
|
7898
7889
|
{
|
7899
|
-
as: /* @__PURE__ */
|
7890
|
+
as: /* @__PURE__ */ import_react43.default.createElement(
|
7900
7891
|
"button",
|
7901
7892
|
{
|
7902
7893
|
"aria-label": "Previous Table Page",
|
@@ -7906,7 +7897,7 @@ var Pagination = ({
|
|
7906
7897
|
),
|
7907
7898
|
style: { minWidth: 36 }
|
7908
7899
|
},
|
7909
|
-
/* @__PURE__ */
|
7900
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7910
7901
|
"svg",
|
7911
7902
|
{
|
7912
7903
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7919,7 +7910,7 @@ var Pagination = ({
|
|
7919
7910
|
strokeLinecap: "round",
|
7920
7911
|
strokeLinejoin: "round"
|
7921
7912
|
},
|
7922
|
-
/* @__PURE__ */
|
7913
|
+
/* @__PURE__ */ import_react43.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7923
7914
|
)
|
7924
7915
|
),
|
7925
7916
|
className: cn(
|
@@ -7932,17 +7923,17 @@ var Pagination = ({
|
|
7932
7923
|
},
|
7933
7924
|
"Previous"
|
7934
7925
|
),
|
7935
|
-
/* @__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(
|
7936
7927
|
import_react_headless_pagination.Pagination.PageButton,
|
7937
7928
|
{
|
7938
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",
|
7939
7930
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7940
7931
|
}
|
7941
7932
|
))),
|
7942
|
-
/* @__PURE__ */
|
7933
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7943
7934
|
import_react_headless_pagination.Pagination.NextButton,
|
7944
7935
|
{
|
7945
|
-
as: /* @__PURE__ */
|
7936
|
+
as: /* @__PURE__ */ import_react43.default.createElement(
|
7946
7937
|
"button",
|
7947
7938
|
{
|
7948
7939
|
"aria-label": "Previous Table Page",
|
@@ -7952,7 +7943,7 @@ var Pagination = ({
|
|
7952
7943
|
),
|
7953
7944
|
style: { minWidth: 36 }
|
7954
7945
|
},
|
7955
|
-
/* @__PURE__ */
|
7946
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7956
7947
|
"svg",
|
7957
7948
|
{
|
7958
7949
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7965,7 +7956,7 @@ var Pagination = ({
|
|
7965
7956
|
strokeLinecap: "round",
|
7966
7957
|
strokeLinejoin: "round"
|
7967
7958
|
},
|
7968
|
-
/* @__PURE__ */
|
7959
|
+
/* @__PURE__ */ import_react43.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7969
7960
|
)
|
7970
7961
|
),
|
7971
7962
|
className: cn(
|
@@ -7982,11 +7973,11 @@ var Pagination = ({
|
|
7982
7973
|
};
|
7983
7974
|
|
7984
7975
|
// elements/passwordInput/PasswordInput.tsx
|
7985
|
-
var
|
7976
|
+
var import_react47 = __toESM(require("react"));
|
7986
7977
|
|
7987
7978
|
// icons/Emojis.tsx
|
7988
|
-
var
|
7989
|
-
var VeryGoodEmoji = () => /* @__PURE__ */
|
7979
|
+
var import_react44 = __toESM(require("react"));
|
7980
|
+
var VeryGoodEmoji = () => /* @__PURE__ */ import_react44.default.createElement(
|
7990
7981
|
"svg",
|
7991
7982
|
{
|
7992
7983
|
fill: "none",
|
@@ -7995,7 +7986,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
7995
7986
|
width: "16",
|
7996
7987
|
xmlns: "http://www.w3.org/2000/svg"
|
7997
7988
|
},
|
7998
|
-
/* @__PURE__ */
|
7989
|
+
/* @__PURE__ */ import_react44.default.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ import_react44.default.createElement(
|
7999
7990
|
"path",
|
8000
7991
|
{
|
8001
7992
|
clipRule: "evenodd",
|
@@ -8003,7 +7994,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8003
7994
|
fill: "currentColor",
|
8004
7995
|
fillRule: "evenodd"
|
8005
7996
|
}
|
8006
|
-
), /* @__PURE__ */
|
7997
|
+
), /* @__PURE__ */ import_react44.default.createElement(
|
8007
7998
|
"path",
|
8008
7999
|
{
|
8009
8000
|
clipRule: "evenodd",
|
@@ -8013,7 +8004,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8013
8004
|
}
|
8014
8005
|
))
|
8015
8006
|
);
|
8016
|
-
var GoodEmoji = () => /* @__PURE__ */
|
8007
|
+
var GoodEmoji = () => /* @__PURE__ */ import_react44.default.createElement(
|
8017
8008
|
"svg",
|
8018
8009
|
{
|
8019
8010
|
fill: "none",
|
@@ -8022,7 +8013,7 @@ var GoodEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8022
8013
|
width: "16",
|
8023
8014
|
xmlns: "http://www.w3.org/2000/svg"
|
8024
8015
|
},
|
8025
|
-
/* @__PURE__ */
|
8016
|
+
/* @__PURE__ */ import_react44.default.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ import_react44.default.createElement(
|
8026
8017
|
"path",
|
8027
8018
|
{
|
8028
8019
|
clipRule: "evenodd",
|
@@ -8032,7 +8023,7 @@ var GoodEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8032
8023
|
}
|
8033
8024
|
))
|
8034
8025
|
);
|
8035
|
-
var BadEmoji = () => /* @__PURE__ */
|
8026
|
+
var BadEmoji = () => /* @__PURE__ */ import_react44.default.createElement(
|
8036
8027
|
"svg",
|
8037
8028
|
{
|
8038
8029
|
fill: "none",
|
@@ -8041,7 +8032,7 @@ var BadEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8041
8032
|
width: "16",
|
8042
8033
|
xmlns: "http://www.w3.org/2000/svg"
|
8043
8034
|
},
|
8044
|
-
/* @__PURE__ */
|
8035
|
+
/* @__PURE__ */ import_react44.default.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ import_react44.default.createElement(
|
8045
8036
|
"path",
|
8046
8037
|
{
|
8047
8038
|
clipRule: "evenodd",
|
@@ -8051,7 +8042,7 @@ var BadEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8051
8042
|
}
|
8052
8043
|
))
|
8053
8044
|
);
|
8054
|
-
var VeryBadEmoji = () => /* @__PURE__ */
|
8045
|
+
var VeryBadEmoji = () => /* @__PURE__ */ import_react44.default.createElement(
|
8055
8046
|
"svg",
|
8056
8047
|
{
|
8057
8048
|
fill: "none",
|
@@ -8060,13 +8051,13 @@ var VeryBadEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8060
8051
|
width: "16",
|
8061
8052
|
xmlns: "http://www.w3.org/2000/svg"
|
8062
8053
|
},
|
8063
|
-
/* @__PURE__ */
|
8054
|
+
/* @__PURE__ */ import_react44.default.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ import_react44.default.createElement(
|
8064
8055
|
"path",
|
8065
8056
|
{
|
8066
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",
|
8067
8058
|
fill: "#0070F3"
|
8068
8059
|
}
|
8069
|
-
), /* @__PURE__ */
|
8060
|
+
), /* @__PURE__ */ import_react44.default.createElement(
|
8070
8061
|
"path",
|
8071
8062
|
{
|
8072
8063
|
clipRule: "evenodd",
|
@@ -8078,8 +8069,8 @@ var VeryBadEmoji = () => /* @__PURE__ */ import_react43.default.createElement(
|
|
8078
8069
|
);
|
8079
8070
|
|
8080
8071
|
// icons/InputIcons.tsx
|
8081
|
-
var
|
8082
|
-
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(
|
8083
8074
|
"svg",
|
8084
8075
|
{
|
8085
8076
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8090,10 +8081,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react44.default.createElement("d
|
|
8090
8081
|
strokeLinecap: "round",
|
8091
8082
|
strokeLinejoin: "round"
|
8092
8083
|
},
|
8093
|
-
/* @__PURE__ */
|
8094
|
-
/* @__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" })
|
8095
8086
|
));
|
8096
|
-
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(
|
8097
8088
|
"svg",
|
8098
8089
|
{
|
8099
8090
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8104,20 +8095,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react44.default.createElem
|
|
8104
8095
|
strokeLinecap: "round",
|
8105
8096
|
strokeLinejoin: "round"
|
8106
8097
|
},
|
8107
|
-
/* @__PURE__ */
|
8108
|
-
/* @__PURE__ */
|
8109
|
-
/* @__PURE__ */
|
8110
|
-
/* @__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" })
|
8111
8102
|
));
|
8112
8103
|
|
8113
8104
|
// icons/CommonIcons.tsx
|
8114
|
-
var
|
8105
|
+
var import_react46 = __toESM(require("react"));
|
8115
8106
|
var CheckMark = ({ size = "default", className }) => {
|
8116
8107
|
let sizeStyles2 = {
|
8117
8108
|
default: "hawa-h-5 hawa-w-5",
|
8118
8109
|
sm: "hawa-h-3 hawa-w-3"
|
8119
8110
|
};
|
8120
|
-
return /* @__PURE__ */
|
8111
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
8121
8112
|
"svg",
|
8122
8113
|
{
|
8123
8114
|
className: cn(sizeStyles2[size], className),
|
@@ -8125,7 +8116,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
8125
8116
|
fill: "currentColor",
|
8126
8117
|
viewBox: "0 0 20 20"
|
8127
8118
|
},
|
8128
|
-
/* @__PURE__ */
|
8119
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
8129
8120
|
"path",
|
8130
8121
|
{
|
8131
8122
|
fillRule: "evenodd",
|
@@ -8140,7 +8131,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
8140
8131
|
default: "hawa-h-5 hawa-w-5",
|
8141
8132
|
sm: "hawa-h-3 hawa-w-3"
|
8142
8133
|
};
|
8143
|
-
return /* @__PURE__ */
|
8134
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
8144
8135
|
"svg",
|
8145
8136
|
{
|
8146
8137
|
className: cn(sizeStyles2[size], className),
|
@@ -8148,7 +8139,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
8148
8139
|
fill: "currentColor",
|
8149
8140
|
viewBox: "0 0 20 20"
|
8150
8141
|
},
|
8151
|
-
/* @__PURE__ */
|
8142
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
8152
8143
|
"path",
|
8153
8144
|
{
|
8154
8145
|
fillRule: "evenodd",
|
@@ -8158,7 +8149,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
8158
8149
|
)
|
8159
8150
|
);
|
8160
8151
|
};
|
8161
|
-
var MenuIcon = () => /* @__PURE__ */
|
8152
|
+
var MenuIcon = () => /* @__PURE__ */ import_react46.default.createElement(
|
8162
8153
|
"svg",
|
8163
8154
|
{
|
8164
8155
|
"aria-label": "Menu Button",
|
@@ -8170,7 +8161,7 @@ var MenuIcon = () => /* @__PURE__ */ import_react45.default.createElement(
|
|
8170
8161
|
height: "1.6em",
|
8171
8162
|
width: "1.6em"
|
8172
8163
|
},
|
8173
|
-
/* @__PURE__ */
|
8164
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
8174
8165
|
"path",
|
8175
8166
|
{
|
8176
8167
|
fillRule: "evenodd",
|
@@ -8207,7 +8198,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
8207
8198
|
strong: "80%",
|
8208
8199
|
"very-strong": "100%"
|
8209
8200
|
}[currentStrengthLevel];
|
8210
|
-
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(
|
8211
8202
|
"div",
|
8212
8203
|
{
|
8213
8204
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -8219,16 +8210,16 @@ var PasswordInput = ({
|
|
8219
8210
|
hidePopover,
|
8220
8211
|
...props
|
8221
8212
|
}) => {
|
8222
|
-
const [inputValue, setInputValue] = (0,
|
8223
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
8224
|
-
const [currentStr, setCurrentStr] = (0,
|
8225
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
8226
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
8227
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
8228
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
8229
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
8230
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
8231
|
-
(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)(() => {
|
8232
8223
|
const calculateStrength = () => {
|
8233
8224
|
let strengthScore = 0;
|
8234
8225
|
if (lengthCriteriaMet)
|
@@ -8267,7 +8258,7 @@ var PasswordInput = ({
|
|
8267
8258
|
setIsInputFocused(false);
|
8268
8259
|
};
|
8269
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";
|
8270
|
-
return /* @__PURE__ */
|
8261
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", null, /* @__PURE__ */ import_react47.default.createElement(
|
8271
8262
|
Popover,
|
8272
8263
|
{
|
8273
8264
|
width: "trigger",
|
@@ -8276,7 +8267,7 @@ var PasswordInput = ({
|
|
8276
8267
|
onOpenChange: setIsInputFocused,
|
8277
8268
|
triggerProps: { asChild: true },
|
8278
8269
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
8279
|
-
trigger: /* @__PURE__ */
|
8270
|
+
trigger: /* @__PURE__ */ import_react47.default.createElement(
|
8280
8271
|
"div",
|
8281
8272
|
{
|
8282
8273
|
onClick: (e) => {
|
@@ -8286,7 +8277,7 @@ var PasswordInput = ({
|
|
8286
8277
|
}
|
8287
8278
|
}
|
8288
8279
|
},
|
8289
|
-
/* @__PURE__ */
|
8280
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
8290
8281
|
Input,
|
8291
8282
|
{
|
8292
8283
|
width: "full",
|
@@ -8296,21 +8287,21 @@ var PasswordInput = ({
|
|
8296
8287
|
onFocus: handleInputFocus,
|
8297
8288
|
onBlur: handleInputBlur,
|
8298
8289
|
type: passwordVisible ? "text" : "password",
|
8299
|
-
endIcon: /* @__PURE__ */
|
8290
|
+
endIcon: /* @__PURE__ */ import_react47.default.createElement(
|
8300
8291
|
"div",
|
8301
8292
|
{
|
8302
8293
|
className: "hawa-cursor-pointer",
|
8303
8294
|
onClick: () => setPasswordVisible(!passwordVisible)
|
8304
8295
|
},
|
8305
|
-
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" }),
|
8306
8297
|
" "
|
8307
8298
|
)
|
8308
8299
|
}
|
8309
8300
|
)
|
8310
8301
|
)
|
8311
8302
|
},
|
8312
|
-
/* @__PURE__ */
|
8313
|
-
), /* @__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 }));
|
8314
8305
|
};
|
8315
8306
|
|
8316
8307
|
// elements/slider/Slider.tsx
|
@@ -8425,12 +8416,12 @@ var Separator2 = ({
|
|
8425
8416
|
);
|
8426
8417
|
|
8427
8418
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
8428
|
-
var
|
8419
|
+
var import_react48 = __toESM(require("react"));
|
8429
8420
|
var ScrollIndicator = ({
|
8430
8421
|
anchor,
|
8431
8422
|
inContainer = false
|
8432
8423
|
}) => {
|
8433
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
8424
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react48.useState)(0);
|
8434
8425
|
const onScroll = () => {
|
8435
8426
|
const scrollElement = anchor.current;
|
8436
8427
|
if (scrollElement) {
|
@@ -8441,7 +8432,7 @@ var ScrollIndicator = ({
|
|
8441
8432
|
setScrollPercentage(percentageScrolled);
|
8442
8433
|
}
|
8443
8434
|
};
|
8444
|
-
(0,
|
8435
|
+
(0, import_react48.useEffect)(() => {
|
8445
8436
|
if (!anchor.current)
|
8446
8437
|
return;
|
8447
8438
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -8450,7 +8441,7 @@ var ScrollIndicator = ({
|
|
8450
8441
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
8451
8442
|
};
|
8452
8443
|
}, [anchor]);
|
8453
|
-
return /* @__PURE__ */
|
8444
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
8454
8445
|
"div",
|
8455
8446
|
{
|
8456
8447
|
style: {
|
@@ -8466,11 +8457,11 @@ var ScrollIndicator = ({
|
|
8466
8457
|
};
|
8467
8458
|
|
8468
8459
|
// elements/codeBlock/CodeBlock.tsx
|
8469
|
-
var
|
8460
|
+
var import_react49 = __toESM(require("react"));
|
8470
8461
|
var import_prism_react_renderer = require("prism-react-renderer");
|
8471
8462
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
8472
8463
|
require("prismjs/components/prism-bash");
|
8473
|
-
var CopyIcon = () => /* @__PURE__ */
|
8464
|
+
var CopyIcon = () => /* @__PURE__ */ import_react49.default.createElement(
|
8474
8465
|
"svg",
|
8475
8466
|
{
|
8476
8467
|
"aria-label": "Copy",
|
@@ -8483,8 +8474,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react48.default.createElement(
|
|
8483
8474
|
height: "1em",
|
8484
8475
|
width: "1em"
|
8485
8476
|
},
|
8486
|
-
/* @__PURE__ */
|
8487
|
-
/* @__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" })
|
8488
8479
|
);
|
8489
8480
|
var CodeBlock = ({
|
8490
8481
|
tabs,
|
@@ -8498,7 +8489,7 @@ var CodeBlock = ({
|
|
8498
8489
|
...props
|
8499
8490
|
}) => {
|
8500
8491
|
const clipboard = useClipboard();
|
8501
|
-
const [selectedTab, setSelectedTab] = (0,
|
8492
|
+
const [selectedTab, setSelectedTab] = (0, import_react49.useState)(0);
|
8502
8493
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
8503
8494
|
let widthStyles = {
|
8504
8495
|
full: "hawa-w-full",
|
@@ -8506,7 +8497,7 @@ var CodeBlock = ({
|
|
8506
8497
|
sm: "hawa-w-full hawa-max-w-sm",
|
8507
8498
|
xs: "hawa-w-full hawa-max-w-xs"
|
8508
8499
|
};
|
8509
|
-
return /* @__PURE__ */
|
8500
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
8510
8501
|
"div",
|
8511
8502
|
{
|
8512
8503
|
className: cn(
|
@@ -8515,7 +8506,7 @@ var CodeBlock = ({
|
|
8515
8506
|
classNames == null ? void 0 : classNames.root
|
8516
8507
|
)
|
8517
8508
|
},
|
8518
|
-
fileName && /* @__PURE__ */
|
8509
|
+
fileName && /* @__PURE__ */ import_react49.default.createElement(
|
8519
8510
|
"div",
|
8520
8511
|
{
|
8521
8512
|
className: cn(
|
@@ -8524,7 +8515,7 @@ var CodeBlock = ({
|
|
8524
8515
|
classNames == null ? void 0 : classNames.fileName
|
8525
8516
|
)
|
8526
8517
|
},
|
8527
|
-
/* @__PURE__ */
|
8518
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8528
8519
|
"div",
|
8529
8520
|
{
|
8530
8521
|
className: cn(
|
@@ -8534,7 +8525,7 @@ var CodeBlock = ({
|
|
8534
8525
|
fileName
|
8535
8526
|
)
|
8536
8527
|
),
|
8537
|
-
tabs && /* @__PURE__ */
|
8528
|
+
tabs && /* @__PURE__ */ import_react49.default.createElement(
|
8538
8529
|
"div",
|
8539
8530
|
{
|
8540
8531
|
className: cn(
|
@@ -8543,7 +8534,7 @@ var CodeBlock = ({
|
|
8543
8534
|
classNames == null ? void 0 : classNames.tabs
|
8544
8535
|
)
|
8545
8536
|
},
|
8546
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
8537
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react49.default.createElement(
|
8547
8538
|
"div",
|
8548
8539
|
{
|
8549
8540
|
key: i,
|
@@ -8552,7 +8543,7 @@ var CodeBlock = ({
|
|
8552
8543
|
classNames == null ? void 0 : classNames.tab
|
8553
8544
|
)
|
8554
8545
|
},
|
8555
|
-
/* @__PURE__ */
|
8546
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8556
8547
|
"div",
|
8557
8548
|
{
|
8558
8549
|
onClick: () => setSelectedTab(i),
|
@@ -8564,7 +8555,7 @@ var CodeBlock = ({
|
|
8564
8555
|
)
|
8565
8556
|
))
|
8566
8557
|
),
|
8567
|
-
/* @__PURE__ */
|
8558
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8568
8559
|
"div",
|
8569
8560
|
{
|
8570
8561
|
className: cn(
|
@@ -8574,22 +8565,22 @@ var CodeBlock = ({
|
|
8574
8565
|
"hawa-overflow-y-auto"
|
8575
8566
|
)
|
8576
8567
|
},
|
8577
|
-
/* @__PURE__ */
|
8568
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8578
8569
|
"div",
|
8579
8570
|
{
|
8580
8571
|
className: cn(
|
8581
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"
|
8582
8573
|
)
|
8583
8574
|
},
|
8584
|
-
/* @__PURE__ */
|
8575
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8585
8576
|
Tooltip,
|
8586
8577
|
{
|
8587
8578
|
open: clipboard.copied,
|
8588
8579
|
side: "left",
|
8589
|
-
content: /* @__PURE__ */
|
8580
|
+
content: /* @__PURE__ */ import_react49.default.createElement("div", null, "Copied!"),
|
8590
8581
|
triggerProps: { asChild: true }
|
8591
8582
|
},
|
8592
|
-
/* @__PURE__ */
|
8583
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8593
8584
|
Button,
|
8594
8585
|
{
|
8595
8586
|
size: "smallIcon",
|
@@ -8597,18 +8588,18 @@ var CodeBlock = ({
|
|
8597
8588
|
variant: "outline",
|
8598
8589
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
8599
8590
|
},
|
8600
|
-
/* @__PURE__ */
|
8591
|
+
/* @__PURE__ */ import_react49.default.createElement(CopyIcon, null)
|
8601
8592
|
)
|
8602
8593
|
)
|
8603
8594
|
),
|
8604
|
-
/* @__PURE__ */
|
8595
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8605
8596
|
import_prism_react_renderer.Highlight,
|
8606
8597
|
{
|
8607
8598
|
theme,
|
8608
8599
|
code: tabs ? tabs[selectedTab].code : code || "",
|
8609
8600
|
language
|
8610
8601
|
},
|
8611
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
8602
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react49.default.createElement(
|
8612
8603
|
"pre",
|
8613
8604
|
{
|
8614
8605
|
className: cn(
|
@@ -8618,7 +8609,7 @@ var CodeBlock = ({
|
|
8618
8609
|
wrapText && "hawa-text-wrap"
|
8619
8610
|
)
|
8620
8611
|
},
|
8621
|
-
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 }) }))))
|
8622
8613
|
)
|
8623
8614
|
)
|
8624
8615
|
)
|
@@ -8626,7 +8617,7 @@ var CodeBlock = ({
|
|
8626
8617
|
};
|
8627
8618
|
|
8628
8619
|
// elements/carousel/Carousel.tsx
|
8629
|
-
var
|
8620
|
+
var import_react50 = __toESM(require("react"));
|
8630
8621
|
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
8631
8622
|
var Carousel = ({
|
8632
8623
|
items,
|
@@ -8642,8 +8633,8 @@ var Carousel = ({
|
|
8642
8633
|
direction,
|
8643
8634
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
8644
8635
|
});
|
8645
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
8646
|
-
(0,
|
8636
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react50.useState)(0);
|
8637
|
+
(0, import_react50.useEffect)(() => {
|
8647
8638
|
function selectHandler() {
|
8648
8639
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
8649
8640
|
setSelectedIndex(index || 0);
|
@@ -8653,7 +8644,7 @@ var Carousel = ({
|
|
8653
8644
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
8654
8645
|
};
|
8655
8646
|
}, [emblaApi]);
|
8656
|
-
(0,
|
8647
|
+
(0, import_react50.useEffect)(() => {
|
8657
8648
|
let autoplayTimer;
|
8658
8649
|
if (autoplay && emblaApi) {
|
8659
8650
|
autoplayTimer = setInterval(() => {
|
@@ -8665,17 +8656,17 @@ var Carousel = ({
|
|
8665
8656
|
clearInterval(autoplayTimer);
|
8666
8657
|
};
|
8667
8658
|
}, [emblaApi, autoplay, autoplayInterval]);
|
8668
|
-
const length =
|
8659
|
+
const length = import_react50.default.Children.count(items);
|
8669
8660
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
8670
8661
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
8671
|
-
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(
|
8672
8663
|
"div",
|
8673
8664
|
{
|
8674
8665
|
key: i,
|
8675
8666
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
8676
8667
|
},
|
8677
8668
|
item
|
8678
|
-
))))), /* @__PURE__ */
|
8669
|
+
))))), /* @__PURE__ */ import_react50.default.createElement(
|
8679
8670
|
Dots,
|
8680
8671
|
{
|
8681
8672
|
direction,
|
@@ -8683,7 +8674,7 @@ var Carousel = ({
|
|
8683
8674
|
selectedIndex,
|
8684
8675
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
8685
8676
|
}
|
8686
|
-
), showArrows && /* @__PURE__ */
|
8677
|
+
), showArrows && /* @__PURE__ */ import_react50.default.createElement(
|
8687
8678
|
CarouselControls,
|
8688
8679
|
{
|
8689
8680
|
canScrollNext,
|
@@ -8700,7 +8691,7 @@ var Dots = ({
|
|
8700
8691
|
direction
|
8701
8692
|
}) => {
|
8702
8693
|
const arr = new Array(itemsLength).fill(0);
|
8703
|
-
return /* @__PURE__ */
|
8694
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
8704
8695
|
"div",
|
8705
8696
|
{
|
8706
8697
|
dir: direction,
|
@@ -8708,7 +8699,7 @@ var Dots = ({
|
|
8708
8699
|
},
|
8709
8700
|
arr.map((_, index) => {
|
8710
8701
|
const selected = index === selectedIndex;
|
8711
|
-
return /* @__PURE__ */
|
8702
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
8712
8703
|
"div",
|
8713
8704
|
{
|
8714
8705
|
key: index,
|
@@ -8723,7 +8714,7 @@ var Dots = ({
|
|
8723
8714
|
);
|
8724
8715
|
};
|
8725
8716
|
var CarouselControls = (props) => {
|
8726
|
-
return /* @__PURE__ */
|
8717
|
+
return /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react50.default.createElement(
|
8727
8718
|
"button",
|
8728
8719
|
{
|
8729
8720
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -8734,7 +8725,7 @@ var CarouselControls = (props) => {
|
|
8734
8725
|
props.canScrollPrev && "hawa-bg-primary"
|
8735
8726
|
)
|
8736
8727
|
},
|
8737
|
-
/* @__PURE__ */
|
8728
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8738
8729
|
"svg",
|
8739
8730
|
{
|
8740
8731
|
"aria-label": "Chevron Right Icon",
|
@@ -8743,9 +8734,9 @@ var CarouselControls = (props) => {
|
|
8743
8734
|
viewBox: "0 0 16 16",
|
8744
8735
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
8745
8736
|
},
|
8746
|
-
/* @__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" })
|
8747
8738
|
)
|
8748
|
-
), /* @__PURE__ */
|
8739
|
+
), /* @__PURE__ */ import_react50.default.createElement(
|
8749
8740
|
"button",
|
8750
8741
|
{
|
8751
8742
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -8756,7 +8747,7 @@ var CarouselControls = (props) => {
|
|
8756
8747
|
props.canScrollNext && "hawa-bg-primary"
|
8757
8748
|
)
|
8758
8749
|
},
|
8759
|
-
/* @__PURE__ */
|
8750
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8760
8751
|
"svg",
|
8761
8752
|
{
|
8762
8753
|
"aria-label": "Chevron Right Icon",
|
@@ -8765,15 +8756,15 @@ var CarouselControls = (props) => {
|
|
8765
8756
|
viewBox: "0 0 16 16",
|
8766
8757
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
8767
8758
|
},
|
8768
|
-
/* @__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" })
|
8769
8760
|
)
|
8770
8761
|
));
|
8771
8762
|
};
|
8772
8763
|
|
8773
8764
|
// elements/count/Count.tsx
|
8774
|
-
var
|
8765
|
+
var import_react51 = __toESM(require("react"));
|
8775
8766
|
var Count = (props) => {
|
8776
|
-
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));
|
8777
8768
|
};
|
8778
8769
|
|
8779
8770
|
// elements/toast/Toast.tsx
|
@@ -8914,11 +8905,11 @@ var ToastDescription = React67.forwardRef(({ className, size = "default", ...pro
|
|
8914
8905
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
8915
8906
|
|
8916
8907
|
// elements/toaster/Toaster.tsx
|
8917
|
-
var
|
8908
|
+
var import_react52 = __toESM(require("react"));
|
8918
8909
|
function Toaster(props) {
|
8919
8910
|
var _a;
|
8920
8911
|
let isRTL = props.direction === "rtl";
|
8921
|
-
return /* @__PURE__ */
|
8912
|
+
return /* @__PURE__ */ import_react52.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8922
8913
|
id,
|
8923
8914
|
title,
|
8924
8915
|
description,
|
@@ -8926,7 +8917,7 @@ function Toaster(props) {
|
|
8926
8917
|
action,
|
8927
8918
|
...toastProps
|
8928
8919
|
}) {
|
8929
|
-
return /* @__PURE__ */
|
8920
|
+
return /* @__PURE__ */ import_react52.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react52.default.createElement(
|
8930
8921
|
"div",
|
8931
8922
|
{
|
8932
8923
|
className: cn(
|
@@ -8934,9 +8925,9 @@ function Toaster(props) {
|
|
8934
8925
|
action && "hawa-justify-between"
|
8935
8926
|
)
|
8936
8927
|
},
|
8937
|
-
/* @__PURE__ */
|
8938
|
-
/* @__PURE__ */
|
8939
|
-
/* @__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(
|
8940
8931
|
"div",
|
8941
8932
|
{
|
8942
8933
|
className: cn(
|
@@ -8944,11 +8935,11 @@ function Toaster(props) {
|
|
8944
8935
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8945
8936
|
)
|
8946
8937
|
},
|
8947
|
-
/* @__PURE__ */
|
8948
|
-
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)
|
8949
8940
|
)
|
8950
8941
|
));
|
8951
|
-
}), /* @__PURE__ */
|
8942
|
+
}), /* @__PURE__ */ import_react52.default.createElement(
|
8952
8943
|
ToastViewport,
|
8953
8944
|
{
|
8954
8945
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8957,20 +8948,20 @@ function Toaster(props) {
|
|
8957
8948
|
}
|
8958
8949
|
|
8959
8950
|
// elements/destroyableCard/DestroyableCard.tsx
|
8960
|
-
var
|
8951
|
+
var import_react53 = __toESM(require("react"));
|
8961
8952
|
var DestroyableCard = ({
|
8962
8953
|
position = "bottom-right",
|
8963
8954
|
fixed,
|
8964
8955
|
direction,
|
8965
8956
|
...props
|
8966
8957
|
}) => {
|
8967
|
-
const [closed, setClosed] = (0,
|
8968
|
-
const popUpRef = (0,
|
8958
|
+
const [closed, setClosed] = (0, import_react53.useState)(false);
|
8959
|
+
const popUpRef = (0, import_react53.useRef)(null);
|
8969
8960
|
const boxPosition = {
|
8970
8961
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8971
8962
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8972
8963
|
};
|
8973
|
-
return /* @__PURE__ */
|
8964
|
+
return /* @__PURE__ */ import_react53.default.createElement(
|
8974
8965
|
"div",
|
8975
8966
|
{
|
8976
8967
|
className: cn(
|
@@ -8979,7 +8970,7 @@ var DestroyableCard = ({
|
|
8979
8970
|
),
|
8980
8971
|
ref: popUpRef
|
8981
8972
|
},
|
8982
|
-
/* @__PURE__ */
|
8973
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8983
8974
|
Card,
|
8984
8975
|
{
|
8985
8976
|
className: cn(
|
@@ -8988,7 +8979,7 @@ var DestroyableCard = ({
|
|
8988
8979
|
),
|
8989
8980
|
dir: direction
|
8990
8981
|
},
|
8991
|
-
/* @__PURE__ */
|
8982
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
8992
8983
|
"button",
|
8993
8984
|
{
|
8994
8985
|
type: "button",
|
@@ -9007,7 +8998,7 @@ var DestroyableCard = ({
|
|
9007
8998
|
}, 200);
|
9008
8999
|
}
|
9009
9000
|
},
|
9010
|
-
/* @__PURE__ */
|
9001
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
9011
9002
|
"svg",
|
9012
9003
|
{
|
9013
9004
|
"aria-hidden": "true",
|
@@ -9015,7 +9006,7 @@ var DestroyableCard = ({
|
|
9015
9006
|
fill: "currentColor",
|
9016
9007
|
viewBox: "0 0 20 20"
|
9017
9008
|
},
|
9018
|
-
/* @__PURE__ */
|
9009
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
9019
9010
|
"path",
|
9020
9011
|
{
|
9021
9012
|
fillRule: "evenodd",
|
@@ -9025,13 +9016,13 @@ var DestroyableCard = ({
|
|
9025
9016
|
)
|
9026
9017
|
)
|
9027
9018
|
),
|
9028
|
-
/* @__PURE__ */
|
9019
|
+
/* @__PURE__ */ import_react53.default.createElement(CardContent, { headless: true }, props.children)
|
9029
9020
|
)
|
9030
9021
|
);
|
9031
9022
|
};
|
9032
9023
|
|
9033
9024
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
9034
|
-
var
|
9025
|
+
var import_react54 = __toESM(require("react"));
|
9035
9026
|
var InterfaceSettings = ({
|
9036
9027
|
orientation = "horizontal",
|
9037
9028
|
width = "default",
|
@@ -9039,13 +9030,13 @@ var InterfaceSettings = ({
|
|
9039
9030
|
handleLanguage,
|
9040
9031
|
...props
|
9041
9032
|
}) => {
|
9042
|
-
const [color, setColor] = (0,
|
9043
|
-
const [language, setLanguage] = (0,
|
9033
|
+
const [color, setColor] = (0, import_react54.useState)(props.currentColorMode);
|
9034
|
+
const [language, setLanguage] = (0, import_react54.useState)(props.currentLanguage);
|
9044
9035
|
let orientationStyle = {
|
9045
9036
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
9046
9037
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
9047
9038
|
};
|
9048
|
-
return /* @__PURE__ */
|
9039
|
+
return /* @__PURE__ */ import_react54.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react54.default.createElement(
|
9049
9040
|
Radio,
|
9050
9041
|
{
|
9051
9042
|
name: "language",
|
@@ -9063,7 +9054,7 @@ var InterfaceSettings = ({
|
|
9063
9054
|
{ value: "en", label: "English" }
|
9064
9055
|
]
|
9065
9056
|
}
|
9066
|
-
), /* @__PURE__ */
|
9057
|
+
), /* @__PURE__ */ import_react54.default.createElement(
|
9067
9058
|
Radio,
|
9068
9059
|
{
|
9069
9060
|
name: "theme",
|
@@ -9079,7 +9070,7 @@ var InterfaceSettings = ({
|
|
9079
9070
|
options: [
|
9080
9071
|
{
|
9081
9072
|
value: "light",
|
9082
|
-
label: /* @__PURE__ */
|
9073
|
+
label: /* @__PURE__ */ import_react54.default.createElement(
|
9083
9074
|
"svg",
|
9084
9075
|
{
|
9085
9076
|
width: "15",
|
@@ -9089,7 +9080,7 @@ var InterfaceSettings = ({
|
|
9089
9080
|
xmlns: "http://www.w3.org/2000/svg",
|
9090
9081
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
9091
9082
|
},
|
9092
|
-
/* @__PURE__ */
|
9083
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
9093
9084
|
"path",
|
9094
9085
|
{
|
9095
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",
|
@@ -9100,7 +9091,7 @@ var InterfaceSettings = ({
|
|
9100
9091
|
},
|
9101
9092
|
{
|
9102
9093
|
value: "dark",
|
9103
|
-
label: /* @__PURE__ */
|
9094
|
+
label: /* @__PURE__ */ import_react54.default.createElement(
|
9104
9095
|
"svg",
|
9105
9096
|
{
|
9106
9097
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9111,7 +9102,7 @@ var InterfaceSettings = ({
|
|
9111
9102
|
stroke: "currentColor",
|
9112
9103
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
9113
9104
|
},
|
9114
|
-
/* @__PURE__ */
|
9105
|
+
/* @__PURE__ */ import_react54.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
9115
9106
|
)
|
9116
9107
|
}
|
9117
9108
|
]
|
@@ -9120,17 +9111,17 @@ var InterfaceSettings = ({
|
|
9120
9111
|
};
|
9121
9112
|
|
9122
9113
|
// elements/phoneMockup/PhoneMockup.tsx
|
9123
|
-
var
|
9114
|
+
var import_react55 = __toESM(require("react"));
|
9124
9115
|
var PhoneMockup = ({
|
9125
9116
|
children,
|
9126
9117
|
upperOverlayGradiant,
|
9127
9118
|
lowerOverlayGradiant,
|
9128
9119
|
phone,
|
9129
9120
|
hideButtons
|
9130
|
-
}) => /* @__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)]" }));
|
9131
9122
|
|
9132
9123
|
// layout/stats/Stats.tsx
|
9133
|
-
var
|
9124
|
+
var import_react56 = __toESM(require("react"));
|
9134
9125
|
var Stats = ({
|
9135
9126
|
label,
|
9136
9127
|
icon,
|
@@ -9149,7 +9140,7 @@ var Stats = ({
|
|
9149
9140
|
negative: "hawa-text-red-600 dark:hawa-text-red-500",
|
9150
9141
|
muted: "hawa-text-muted-foreground"
|
9151
9142
|
};
|
9152
|
-
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(
|
9153
9144
|
"div",
|
9154
9145
|
{
|
9155
9146
|
className: cn(
|
@@ -9158,8 +9149,8 @@ var Stats = ({
|
|
9158
9149
|
helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
9159
9150
|
)
|
9160
9151
|
},
|
9161
|
-
isLoading ? /* @__PURE__ */
|
9162
|
-
), 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)));
|
9163
9154
|
};
|
9164
9155
|
|
9165
9156
|
// layout/sidebar/Sidebar.tsx
|
@@ -9375,13 +9366,13 @@ var SidebarItem = ({
|
|
9375
9366
|
};
|
9376
9367
|
|
9377
9368
|
// layout/copyrights/Copyrights.tsx
|
9378
|
-
var
|
9369
|
+
var import_react57 = __toESM(require("react"));
|
9379
9370
|
var Copyrights = (props) => {
|
9380
|
-
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);
|
9381
9372
|
};
|
9382
9373
|
|
9383
9374
|
// layout/navbar/Navbar.tsx
|
9384
|
-
var
|
9375
|
+
var import_react58 = __toESM(require("react"));
|
9385
9376
|
|
9386
9377
|
// elements/collapsible/Collapsible.tsx
|
9387
9378
|
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
|
@@ -9397,14 +9388,14 @@ var Navbar = ({
|
|
9397
9388
|
...props
|
9398
9389
|
}) => {
|
9399
9390
|
var _a, _b;
|
9400
|
-
const [isOpen, setIsOpen] = (0,
|
9401
|
-
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(
|
9402
9393
|
Collapsible,
|
9403
9394
|
{
|
9404
9395
|
className: "hawa-relative hawa-m-2 hawa-rounded hawa-p-2",
|
9405
9396
|
style: { backgroundColor: backgroundColor || "#1f2937" }
|
9406
9397
|
},
|
9407
|
-
/* @__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(
|
9408
9399
|
"div",
|
9409
9400
|
{
|
9410
9401
|
className: "hawa-p-1.5 hawa-text-xl hawa-font-bold hawa-text-white",
|
@@ -9415,7 +9406,7 @@ var Navbar = ({
|
|
9415
9406
|
}
|
9416
9407
|
},
|
9417
9408
|
logo
|
9418
|
-
)), /* @__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(
|
9419
9410
|
"div",
|
9420
9411
|
{
|
9421
9412
|
key: i,
|
@@ -9423,14 +9414,14 @@ var Navbar = ({
|
|
9423
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"
|
9424
9415
|
},
|
9425
9416
|
item.label
|
9426
|
-
))), /* @__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(
|
9427
9418
|
CollapsibleTrigger2,
|
9428
9419
|
{
|
9429
9420
|
onClick: () => setIsOpen(!isOpen),
|
9430
9421
|
className: "hawa-h-full hawa-text-white selection:hawa-p-0 ",
|
9431
9422
|
"aria-label": "Toggle menu"
|
9432
9423
|
},
|
9433
|
-
/* @__PURE__ */
|
9424
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
9434
9425
|
"svg",
|
9435
9426
|
{
|
9436
9427
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9447,11 +9438,11 @@ var Navbar = ({
|
|
9447
9438
|
isOpen ? "hawa-invisible" : "hawa-visible"
|
9448
9439
|
)
|
9449
9440
|
},
|
9450
|
-
/* @__PURE__ */
|
9451
|
-
/* @__PURE__ */
|
9452
|
-
/* @__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" })
|
9453
9444
|
),
|
9454
|
-
/* @__PURE__ */
|
9445
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
9455
9446
|
"svg",
|
9456
9447
|
{
|
9457
9448
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9468,11 +9459,11 @@ var Navbar = ({
|
|
9468
9459
|
!isOpen ? "hawa-invisible" : "hawa-visible"
|
9469
9460
|
)
|
9470
9461
|
},
|
9471
|
-
/* @__PURE__ */
|
9472
|
-
/* @__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" })
|
9473
9464
|
)
|
9474
9465
|
))),
|
9475
|
-
/* @__PURE__ */
|
9466
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
9476
9467
|
CollapsibleContent2,
|
9477
9468
|
{
|
9478
9469
|
className: cn(
|
@@ -9487,7 +9478,7 @@ var Navbar = ({
|
|
9487
9478
|
zIndex: -100
|
9488
9479
|
}
|
9489
9480
|
},
|
9490
|
-
(_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(
|
9491
9482
|
"div",
|
9492
9483
|
{
|
9493
9484
|
key: i,
|
@@ -9501,7 +9492,7 @@ var Navbar = ({
|
|
9501
9492
|
};
|
9502
9493
|
|
9503
9494
|
// layout/appLayout/AppLayout.tsx
|
9504
|
-
var
|
9495
|
+
var import_react59 = __toESM(require("react"));
|
9505
9496
|
var Dialog3 = __toESM(require("@radix-ui/react-dialog"));
|
9506
9497
|
var LOCAL_STORAGE_KEY2 = "@sikka/hawa/keep-drawer-open";
|
9507
9498
|
var AppLayout = ({
|
@@ -9520,7 +9511,7 @@ var AppLayout = ({
|
|
9520
9511
|
...props
|
9521
9512
|
}) => {
|
9522
9513
|
var _a, _b;
|
9523
|
-
(0,
|
9514
|
+
(0, import_react59.useEffect)(() => {
|
9524
9515
|
let isDrawerOpen = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9525
9516
|
if (isDrawerOpen === null) {
|
9526
9517
|
localStorage.setItem(LOCAL_STORAGE_KEY2, JSON.stringify(false));
|
@@ -9537,16 +9528,16 @@ var AppLayout = ({
|
|
9537
9528
|
}
|
9538
9529
|
};
|
9539
9530
|
const isRTL = direction === "rtl";
|
9540
|
-
const [openedSidebarItem, setOpenedSidebarItem] = (0,
|
9541
|
-
const [size, setSize] = (0,
|
9531
|
+
const [openedSidebarItem, setOpenedSidebarItem] = (0, import_react59.useState)("");
|
9532
|
+
const [size, setSize] = (0, import_react59.useState)(
|
9542
9533
|
typeof window !== "undefined" && window.innerWidth || 1200
|
9543
9534
|
);
|
9544
|
-
const [openSideMenu, setOpenSideMenu] = (0,
|
9535
|
+
const [openSideMenu, setOpenSideMenu] = (0, import_react59.useState)(() => {
|
9545
9536
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9546
9537
|
return savedState ? JSON.parse(savedState) : false;
|
9547
9538
|
});
|
9548
|
-
const [container, setContainer] =
|
9549
|
-
const [keepDrawerOpen, setKeepDrawerOpen] = (0,
|
9539
|
+
const [container, setContainer] = import_react59.default.useState(null);
|
9540
|
+
const [keepDrawerOpen, setKeepDrawerOpen] = (0, import_react59.useState)(() => {
|
9550
9541
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9551
9542
|
return savedState ? JSON.parse(savedState) : false;
|
9552
9543
|
});
|
@@ -9559,7 +9550,7 @@ var AppLayout = ({
|
|
9559
9550
|
}
|
9560
9551
|
};
|
9561
9552
|
const ref = useClickOutside(handleClickOutside);
|
9562
|
-
(0,
|
9553
|
+
(0, import_react59.useEffect)(() => {
|
9563
9554
|
if (typeof window !== "undefined") {
|
9564
9555
|
const resize = () => {
|
9565
9556
|
setSize(window.innerWidth);
|
@@ -9576,13 +9567,13 @@ var AppLayout = ({
|
|
9576
9567
|
};
|
9577
9568
|
}
|
9578
9569
|
}, []);
|
9579
|
-
(0,
|
9570
|
+
(0, import_react59.useEffect)(() => {
|
9580
9571
|
setKeepDrawerOpen(() => {
|
9581
9572
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9582
9573
|
return savedState ? JSON.parse(savedState) : true;
|
9583
9574
|
});
|
9584
9575
|
}, [setKeepDrawerOpen]);
|
9585
|
-
(0,
|
9576
|
+
(0, import_react59.useEffect)(() => {
|
9586
9577
|
if (size > 600) {
|
9587
9578
|
setOpenSideMenu(keepDrawerOpen);
|
9588
9579
|
} else {
|
@@ -9591,7 +9582,7 @@ var AppLayout = ({
|
|
9591
9582
|
}
|
9592
9583
|
}, [size, keepDrawerOpen]);
|
9593
9584
|
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
9594
|
-
return /* @__PURE__ */
|
9585
|
+
return /* @__PURE__ */ import_react59.default.createElement("div", { className: "hawa-fixed hawa-start-0" }, props.topBar && /* @__PURE__ */ import_react59.default.createElement(
|
9595
9586
|
"div",
|
9596
9587
|
{
|
9597
9588
|
dir: direction,
|
@@ -9600,7 +9591,7 @@ var AppLayout = ({
|
|
9600
9591
|
bordered && "hawa-border-b-[1px]"
|
9601
9592
|
)
|
9602
9593
|
},
|
9603
|
-
size > 600 ? /* @__PURE__ */
|
9594
|
+
size > 600 ? /* @__PURE__ */ import_react59.default.createElement(
|
9604
9595
|
"div",
|
9605
9596
|
{
|
9606
9597
|
className: cn(
|
@@ -9614,24 +9605,24 @@ var AppLayout = ({
|
|
9614
9605
|
props.pageTitle
|
9615
9606
|
) : (
|
9616
9607
|
// Mobile Drawer Menu Button
|
9617
|
-
/* @__PURE__ */
|
9608
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9618
9609
|
"div",
|
9619
9610
|
{
|
9620
9611
|
dir: direction,
|
9621
9612
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
9622
9613
|
},
|
9623
|
-
/* @__PURE__ */
|
9614
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9624
9615
|
"div",
|
9625
9616
|
{
|
9626
9617
|
onClick: () => setOpenSideMenu(true),
|
9627
9618
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all "
|
9628
9619
|
},
|
9629
|
-
/* @__PURE__ */
|
9620
|
+
/* @__PURE__ */ import_react59.default.createElement(MenuIcon, null)
|
9630
9621
|
),
|
9631
|
-
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)
|
9632
9623
|
)
|
9633
9624
|
),
|
9634
|
-
/* @__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(
|
9635
9626
|
DropdownMenu,
|
9636
9627
|
{
|
9637
9628
|
LinkComponent: MenuLinkComponent,
|
@@ -9643,13 +9634,13 @@ var AppLayout = ({
|
|
9643
9634
|
direction,
|
9644
9635
|
items: props.profileMenuItems || [],
|
9645
9636
|
onItemSelect: (e) => console.log("selecting item ", e),
|
9646
|
-
trigger: /* @__PURE__ */
|
9637
|
+
trigger: /* @__PURE__ */ import_react59.default.createElement(
|
9647
9638
|
"div",
|
9648
9639
|
{
|
9649
9640
|
onClick: onAvatarClick,
|
9650
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"
|
9651
9642
|
},
|
9652
|
-
props.avatarImage ? /* @__PURE__ */
|
9643
|
+
props.avatarImage ? /* @__PURE__ */ import_react59.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react59.default.createElement(
|
9653
9644
|
"svg",
|
9654
9645
|
{
|
9655
9646
|
"aria-label": "Avatar Icon",
|
@@ -9657,7 +9648,7 @@ var AppLayout = ({
|
|
9657
9648
|
fill: "currentColor",
|
9658
9649
|
viewBox: "0 0 20 20"
|
9659
9650
|
},
|
9660
|
-
/* @__PURE__ */
|
9651
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9661
9652
|
"path",
|
9662
9653
|
{
|
9663
9654
|
fillRule: "evenodd",
|
@@ -9669,7 +9660,7 @@ var AppLayout = ({
|
|
9669
9660
|
)
|
9670
9661
|
}
|
9671
9662
|
))
|
9672
|
-
), /* @__PURE__ */
|
9663
|
+
), /* @__PURE__ */ import_react59.default.createElement("div", { ref: setContainer }, /* @__PURE__ */ import_react59.default.createElement(
|
9673
9664
|
"div",
|
9674
9665
|
{
|
9675
9666
|
className: cn(
|
@@ -9695,7 +9686,7 @@ var AppLayout = ({
|
|
9695
9686
|
},
|
9696
9687
|
ref
|
9697
9688
|
},
|
9698
|
-
/* @__PURE__ */
|
9689
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9699
9690
|
"div",
|
9700
9691
|
{
|
9701
9692
|
onClick: props.onLogoClick,
|
@@ -9710,7 +9701,7 @@ var AppLayout = ({
|
|
9710
9701
|
}
|
9711
9702
|
},
|
9712
9703
|
openSideMenu && props.header && props.header,
|
9713
|
-
!props.header && /* @__PURE__ */
|
9704
|
+
!props.header && /* @__PURE__ */ import_react59.default.createElement(
|
9714
9705
|
"img",
|
9715
9706
|
{
|
9716
9707
|
src: props.logoLink,
|
@@ -9721,7 +9712,7 @@ var AppLayout = ({
|
|
9721
9712
|
)
|
9722
9713
|
}
|
9723
9714
|
),
|
9724
|
-
size > 600 ? /* @__PURE__ */
|
9715
|
+
size > 600 ? /* @__PURE__ */ import_react59.default.createElement(
|
9725
9716
|
"img",
|
9726
9717
|
{
|
9727
9718
|
src: props.logoSymbol,
|
@@ -9733,7 +9724,7 @@ var AppLayout = ({
|
|
9733
9724
|
}
|
9734
9725
|
) : null
|
9735
9726
|
),
|
9736
|
-
/* @__PURE__ */
|
9727
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9737
9728
|
"div",
|
9738
9729
|
{
|
9739
9730
|
className: cn(
|
@@ -9744,7 +9735,7 @@ var AppLayout = ({
|
|
9744
9735
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
9745
9736
|
}
|
9746
9737
|
},
|
9747
|
-
/* @__PURE__ */
|
9738
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9748
9739
|
SidebarGroup,
|
9749
9740
|
{
|
9750
9741
|
direction,
|
@@ -9759,7 +9750,7 @@ var AppLayout = ({
|
|
9759
9750
|
}
|
9760
9751
|
)
|
9761
9752
|
),
|
9762
|
-
/* @__PURE__ */
|
9753
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9763
9754
|
"div",
|
9764
9755
|
{
|
9765
9756
|
className: cn(
|
@@ -9770,8 +9761,8 @@ var AppLayout = ({
|
|
9770
9761
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
9771
9762
|
}
|
9772
9763
|
},
|
9773
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
9774
|
-
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(
|
9775
9766
|
Tooltip,
|
9776
9767
|
{
|
9777
9768
|
side: "left",
|
@@ -9779,7 +9770,7 @@ var AppLayout = ({
|
|
9779
9770
|
triggerProps: { asChild: true },
|
9780
9771
|
content: keepDrawerOpen ? ((_a = props.texts) == null ? void 0 : _a.collapseSidebar) || "Collapse Sidebar" : ((_b = props.texts) == null ? void 0 : _b.expandSidebar) || "Expand Sidebar"
|
9781
9772
|
},
|
9782
|
-
/* @__PURE__ */
|
9773
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9783
9774
|
Button,
|
9784
9775
|
{
|
9785
9776
|
variant: "outline",
|
@@ -9793,7 +9784,7 @@ var AppLayout = ({
|
|
9793
9784
|
setKeepDrawerOpen(newKeepOpenState);
|
9794
9785
|
}
|
9795
9786
|
},
|
9796
|
-
/* @__PURE__ */
|
9787
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9797
9788
|
"svg",
|
9798
9789
|
{
|
9799
9790
|
className: cn(
|
@@ -9803,7 +9794,7 @@ var AppLayout = ({
|
|
9803
9794
|
fill: "currentColor",
|
9804
9795
|
viewBox: "0 0 20 20"
|
9805
9796
|
},
|
9806
|
-
/* @__PURE__ */
|
9797
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
9807
9798
|
"path",
|
9808
9799
|
{
|
9809
9800
|
fillRule: "evenodd",
|
@@ -9815,14 +9806,14 @@ var AppLayout = ({
|
|
9815
9806
|
)
|
9816
9807
|
) : null
|
9817
9808
|
)
|
9818
|
-
)), /* @__PURE__ */
|
9809
|
+
)), /* @__PURE__ */ import_react59.default.createElement(
|
9819
9810
|
Dialog3.Root,
|
9820
9811
|
{
|
9821
9812
|
open: size < 600 && openSideMenu,
|
9822
9813
|
onOpenChange: setOpenSideMenu
|
9823
9814
|
},
|
9824
|
-
/* @__PURE__ */
|
9825
|
-
), /* @__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(
|
9826
9817
|
"div",
|
9827
9818
|
{
|
9828
9819
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all hawa-z-0",
|
@@ -9843,11 +9834,11 @@ var AppLayout = ({
|
|
9843
9834
|
};
|
9844
9835
|
|
9845
9836
|
// layout/appTopbar/AppTopbar.tsx
|
9846
|
-
var
|
9837
|
+
var import_react60 = __toESM(require("react"));
|
9847
9838
|
var AppTopbar = ({ ...props }) => {
|
9848
9839
|
const isRTL = props.direction === "ltr";
|
9849
9840
|
const size = 1200;
|
9850
|
-
return /* @__PURE__ */
|
9841
|
+
return /* @__PURE__ */ import_react60.default.createElement(
|
9851
9842
|
"div",
|
9852
9843
|
{
|
9853
9844
|
className: cn(
|
@@ -9855,24 +9846,24 @@ var AppTopbar = ({ ...props }) => {
|
|
9855
9846
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9856
9847
|
)
|
9857
9848
|
},
|
9858
|
-
size > 600 ? /* @__PURE__ */
|
9849
|
+
size > 600 ? /* @__PURE__ */ import_react60.default.createElement(
|
9859
9850
|
"div",
|
9860
9851
|
null,
|
9861
9852
|
"page title"
|
9862
9853
|
) : (
|
9863
9854
|
// Mobile Drawer Menu Button
|
9864
|
-
/* @__PURE__ */
|
9855
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9865
9856
|
"div",
|
9866
9857
|
{
|
9867
9858
|
dir: props.direction,
|
9868
9859
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
9869
9860
|
},
|
9870
|
-
/* @__PURE__ */
|
9861
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9871
9862
|
"div",
|
9872
9863
|
{
|
9873
9864
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
9874
9865
|
},
|
9875
|
-
/* @__PURE__ */
|
9866
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9876
9867
|
"svg",
|
9877
9868
|
{
|
9878
9869
|
stroke: "currentColor",
|
@@ -9883,7 +9874,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9883
9874
|
height: "1.6em",
|
9884
9875
|
width: "1.6em"
|
9885
9876
|
},
|
9886
|
-
/* @__PURE__ */
|
9877
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9887
9878
|
"path",
|
9888
9879
|
{
|
9889
9880
|
fillRule: "evenodd",
|
@@ -9896,7 +9887,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9896
9887
|
"Mobile title"
|
9897
9888
|
)
|
9898
9889
|
),
|
9899
|
-
/* @__PURE__ */
|
9890
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9900
9891
|
"div",
|
9901
9892
|
{
|
9902
9893
|
className: cn(
|
@@ -9904,16 +9895,16 @@ var AppTopbar = ({ ...props }) => {
|
|
9904
9895
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9905
9896
|
)
|
9906
9897
|
},
|
9907
|
-
size > 600 ? /* @__PURE__ */
|
9898
|
+
size > 600 ? /* @__PURE__ */ import_react60.default.createElement(
|
9908
9899
|
"div",
|
9909
9900
|
{
|
9910
9901
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
9911
9902
|
},
|
9912
|
-
/* @__PURE__ */
|
9903
|
+
/* @__PURE__ */ import_react60.default.createElement("div", { className: "hawa-font-bold" }, props.username),
|
9913
9904
|
" ",
|
9914
|
-
/* @__PURE__ */
|
9905
|
+
/* @__PURE__ */ import_react60.default.createElement("div", null, props.email)
|
9915
9906
|
) : null,
|
9916
|
-
/* @__PURE__ */
|
9907
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9917
9908
|
DropdownMenu,
|
9918
9909
|
{
|
9919
9910
|
triggerClassname: "hawa-mx-2",
|
@@ -9924,7 +9915,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9924
9915
|
direction: isRTL ? "rtl" : "ltr",
|
9925
9916
|
items: props.profileMenuItems || [],
|
9926
9917
|
onItemSelect: (e) => console.log("selecting item ", e),
|
9927
|
-
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(
|
9928
9919
|
"svg",
|
9929
9920
|
{
|
9930
9921
|
"aria-label": "Avatar Icon",
|
@@ -9932,7 +9923,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9932
9923
|
fill: "currentColor",
|
9933
9924
|
viewBox: "0 0 20 20"
|
9934
9925
|
},
|
9935
|
-
/* @__PURE__ */
|
9926
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
9936
9927
|
"path",
|
9937
9928
|
{
|
9938
9929
|
fillRule: "evenodd",
|
@@ -10151,10 +10142,10 @@ var MenubarShortcut = ({
|
|
10151
10142
|
MenubarShortcut.displayname = "MenubarShortcut";
|
10152
10143
|
|
10153
10144
|
// layout/appTabs/AppTabs.tsx
|
10154
|
-
var
|
10145
|
+
var import_react61 = __toESM(require("react"));
|
10155
10146
|
var AppTabs = ({ tabs, className }) => {
|
10156
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
10157
|
-
return /* @__PURE__ */
|
10147
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react61.useState)(0);
|
10148
|
+
return /* @__PURE__ */ import_react61.default.createElement(
|
10158
10149
|
"div",
|
10159
10150
|
{
|
10160
10151
|
className: cn(
|
@@ -10162,9 +10153,9 @@ var AppTabs = ({ tabs, className }) => {
|
|
10162
10153
|
className
|
10163
10154
|
)
|
10164
10155
|
},
|
10165
|
-
/* @__PURE__ */
|
10156
|
+
/* @__PURE__ */ import_react61.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
|
10166
10157
|
const selected = index === selectedIndex;
|
10167
|
-
return /* @__PURE__ */
|
10158
|
+
return /* @__PURE__ */ import_react61.default.createElement(
|
10168
10159
|
"a",
|
10169
10160
|
{
|
10170
10161
|
href: tab.path,
|
@@ -10195,16 +10186,16 @@ var AppTabs = ({ tabs, className }) => {
|
|
10195
10186
|
};
|
10196
10187
|
|
10197
10188
|
// layout/docsLayout/DocsLayout.tsx
|
10198
|
-
var
|
10189
|
+
var import_react63 = __toESM(require("react"));
|
10199
10190
|
|
10200
10191
|
// layout/docsSidebar/DocsSidebar.tsx
|
10201
|
-
var
|
10192
|
+
var import_react62 = __toESM(require("react"));
|
10202
10193
|
var DocsSidebar = ({
|
10203
10194
|
currentPage: propCurrentPage,
|
10204
10195
|
pages,
|
10205
10196
|
direction
|
10206
10197
|
}) => {
|
10207
|
-
const [activePage, setActivePage] =
|
10198
|
+
const [activePage, setActivePage] = import_react62.default.useState(pages[0]);
|
10208
10199
|
const handlePageClick = (page, event) => {
|
10209
10200
|
event.preventDefault();
|
10210
10201
|
setTimeout(() => {
|
@@ -10226,7 +10217,7 @@ var DocsSidebar = ({
|
|
10226
10217
|
}
|
10227
10218
|
return pages[0];
|
10228
10219
|
};
|
10229
|
-
|
10220
|
+
import_react62.default.useEffect(() => {
|
10230
10221
|
const handleScroll = () => {
|
10231
10222
|
setActivePage(getCurrentSection());
|
10232
10223
|
};
|
@@ -10239,13 +10230,13 @@ var DocsSidebar = ({
|
|
10239
10230
|
rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
|
10240
10231
|
ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
|
10241
10232
|
};
|
10242
|
-
return /* @__PURE__ */
|
10233
|
+
return /* @__PURE__ */ import_react62.default.createElement(
|
10243
10234
|
"div",
|
10244
10235
|
{
|
10245
10236
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
|
10246
10237
|
dir: direction
|
10247
10238
|
},
|
10248
|
-
pages.map((page, index) => /* @__PURE__ */
|
10239
|
+
pages.map((page, index) => /* @__PURE__ */ import_react62.default.createElement(
|
10249
10240
|
"div",
|
10250
10241
|
{
|
10251
10242
|
key: index,
|
@@ -10285,15 +10276,15 @@ var DocsLayout = ({
|
|
10285
10276
|
lg: closeDrawerWidth
|
10286
10277
|
}
|
10287
10278
|
};
|
10288
|
-
const ref = (0,
|
10279
|
+
const ref = (0, import_react63.useRef)(null);
|
10289
10280
|
const isRTL = direction === "rtl";
|
10290
10281
|
let size = useBreakpoint();
|
10291
10282
|
if (typeof window == "undefined") {
|
10292
10283
|
size = 1200;
|
10293
10284
|
}
|
10294
|
-
const [currentPage, setCurrentPage] = (0,
|
10295
|
-
const [openSideMenu, setOpenSideMenu] = (0,
|
10296
|
-
(0,
|
10285
|
+
const [currentPage, setCurrentPage] = (0, import_react63.useState)("Introduction");
|
10286
|
+
const [openSideMenu, setOpenSideMenu] = (0, import_react63.useState)(true);
|
10287
|
+
(0, import_react63.useEffect)(() => {
|
10297
10288
|
const handleClickOutside = (event) => {
|
10298
10289
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
10299
10290
|
setOpenSideMenu(false);
|
@@ -10304,7 +10295,7 @@ var DocsLayout = ({
|
|
10304
10295
|
document.removeEventListener("click", handleClickOutside, true);
|
10305
10296
|
};
|
10306
10297
|
}, [openSideMenu]);
|
10307
|
-
(0,
|
10298
|
+
(0, import_react63.useEffect)(() => {
|
10308
10299
|
const handleResize = () => {
|
10309
10300
|
setOpenSideMenu(window.innerWidth > 600 ? true : false);
|
10310
10301
|
};
|
@@ -10314,19 +10305,19 @@ var DocsLayout = ({
|
|
10314
10305
|
window.removeEventListener("resize", handleResize);
|
10315
10306
|
};
|
10316
10307
|
}, [keepOpen]);
|
10317
|
-
const observerRef =
|
10308
|
+
const observerRef = import_react63.default.useRef(null);
|
10318
10309
|
const handleIntersection = (entries) => {
|
10319
10310
|
const entry = entries.find((entry2) => entry2.isIntersecting);
|
10320
10311
|
if (entry) {
|
10321
10312
|
setCurrentPage(entry.target.id);
|
10322
10313
|
}
|
10323
10314
|
};
|
10324
|
-
(0,
|
10315
|
+
(0, import_react63.useEffect)(() => {
|
10325
10316
|
observerRef.current = new IntersectionObserver(handleIntersection, {
|
10326
10317
|
threshold: 0.5
|
10327
10318
|
// Adjust threshold as needed to determine when a section is in view
|
10328
10319
|
});
|
10329
|
-
|
10320
|
+
import_react63.default.Children.forEach(props.children, (child) => {
|
10330
10321
|
if (child && child.props.id) {
|
10331
10322
|
const element = document.getElementById(child.props.id);
|
10332
10323
|
if (element && observerRef.current) {
|
@@ -10341,7 +10332,7 @@ var DocsLayout = ({
|
|
10341
10332
|
};
|
10342
10333
|
}, [props.children]);
|
10343
10334
|
let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
10344
|
-
return /* @__PURE__ */
|
10335
|
+
return /* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ import_react63.default.createElement(
|
10345
10336
|
"div",
|
10346
10337
|
{
|
10347
10338
|
className: cn(
|
@@ -10349,7 +10340,7 @@ var DocsLayout = ({
|
|
10349
10340
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
10350
10341
|
)
|
10351
10342
|
},
|
10352
|
-
size > 600 ? /* @__PURE__ */
|
10343
|
+
size > 600 ? /* @__PURE__ */ import_react63.default.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ import_react63.default.createElement(
|
10353
10344
|
"img",
|
10354
10345
|
{
|
10355
10346
|
className: cn(
|
@@ -10360,18 +10351,18 @@ var DocsLayout = ({
|
|
10360
10351
|
}
|
10361
10352
|
)) : (
|
10362
10353
|
// Mobile Drawer Menu Button
|
10363
|
-
/* @__PURE__ */
|
10354
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
10364
10355
|
"div",
|
10365
10356
|
{
|
10366
10357
|
dir: direction,
|
10367
10358
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
10368
10359
|
},
|
10369
|
-
/* @__PURE__ */
|
10360
|
+
/* @__PURE__ */ import_react63.default.createElement(Sheet, null, /* @__PURE__ */ import_react63.default.createElement(SheetTrigger, null, " ", /* @__PURE__ */ import_react63.default.createElement(
|
10370
10361
|
"div",
|
10371
10362
|
{
|
10372
10363
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
10373
10364
|
},
|
10374
|
-
/* @__PURE__ */
|
10365
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
10375
10366
|
"svg",
|
10376
10367
|
{
|
10377
10368
|
"aria-label": "Menu Icon",
|
@@ -10383,7 +10374,7 @@ var DocsLayout = ({
|
|
10383
10374
|
height: "1.6em",
|
10384
10375
|
width: "1.6em"
|
10385
10376
|
},
|
10386
|
-
/* @__PURE__ */
|
10377
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
10387
10378
|
"path",
|
10388
10379
|
{
|
10389
10380
|
fillRule: "evenodd",
|
@@ -10392,17 +10383,17 @@ var DocsLayout = ({
|
|
10392
10383
|
}
|
10393
10384
|
)
|
10394
10385
|
)
|
10395
|
-
)), /* @__PURE__ */
|
10386
|
+
)), /* @__PURE__ */ import_react63.default.createElement(
|
10396
10387
|
SheetContent,
|
10397
10388
|
{
|
10398
10389
|
side: isRTL ? "right" : "left",
|
10399
10390
|
className: "hawa-pt-10"
|
10400
10391
|
},
|
10401
|
-
/* @__PURE__ */
|
10392
|
+
/* @__PURE__ */ import_react63.default.createElement(DocsSidebar, { direction, pages: pages || [] })
|
10402
10393
|
))
|
10403
10394
|
)
|
10404
10395
|
),
|
10405
|
-
/* @__PURE__ */
|
10396
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
10406
10397
|
"div",
|
10407
10398
|
{
|
10408
10399
|
className: cn(
|
@@ -10410,9 +10401,9 @@ var DocsLayout = ({
|
|
10410
10401
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
10411
10402
|
)
|
10412
10403
|
},
|
10413
|
-
/* @__PURE__ */
|
10404
|
+
/* @__PURE__ */ import_react63.default.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ import_react63.default.createElement(Logos.github, { className: "hawa-icon" }))
|
10414
10405
|
)
|
10415
|
-
), /* @__PURE__ */
|
10406
|
+
), /* @__PURE__ */ import_react63.default.createElement(
|
10416
10407
|
"div",
|
10417
10408
|
{
|
10418
10409
|
className: cn(
|
@@ -10435,7 +10426,7 @@ var DocsLayout = ({
|
|
10435
10426
|
},
|
10436
10427
|
ref
|
10437
10428
|
},
|
10438
|
-
/* @__PURE__ */
|
10429
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
10439
10430
|
DocsSidebar,
|
10440
10431
|
{
|
10441
10432
|
direction,
|
@@ -10443,7 +10434,7 @@ var DocsLayout = ({
|
|
10443
10434
|
currentPage
|
10444
10435
|
}
|
10445
10436
|
)
|
10446
|
-
), /* @__PURE__ */
|
10437
|
+
), /* @__PURE__ */ import_react63.default.createElement(
|
10447
10438
|
"div",
|
10448
10439
|
{
|
10449
10440
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
@@ -10465,10 +10456,10 @@ var DocsLayout = ({
|
|
10465
10456
|
};
|
10466
10457
|
|
10467
10458
|
// blocks/auth/AuthButtons.tsx
|
10468
|
-
var
|
10459
|
+
var import_react64 = __toESM(require("react"));
|
10469
10460
|
var AuthButtons = (props) => {
|
10470
10461
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
10471
|
-
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(
|
10472
10463
|
Button,
|
10473
10464
|
{
|
10474
10465
|
disabled: props.isMetamaskLoading,
|
@@ -10476,9 +10467,9 @@ var AuthButtons = (props) => {
|
|
10476
10467
|
variant: "outline",
|
10477
10468
|
onClick: props.handleMetamask
|
10478
10469
|
},
|
10479
|
-
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" }),
|
10480
10471
|
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithMetamask) != null ? _b : "Connect Metamask"
|
10481
|
-
), props.viaNafath && /* @__PURE__ */
|
10472
|
+
), props.viaNafath && /* @__PURE__ */ import_react64.default.createElement(
|
10482
10473
|
Button,
|
10483
10474
|
{
|
10484
10475
|
disabled: props.isNafathLoading,
|
@@ -10486,9 +10477,9 @@ var AuthButtons = (props) => {
|
|
10486
10477
|
variant: "outline",
|
10487
10478
|
onClick: props.handleNafath
|
10488
10479
|
},
|
10489
|
-
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" }),
|
10490
10481
|
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithNafath) != null ? _d : "Continue With Nafath"
|
10491
|
-
), props.viaGoogle && /* @__PURE__ */
|
10482
|
+
), props.viaGoogle && /* @__PURE__ */ import_react64.default.createElement(
|
10492
10483
|
Button,
|
10493
10484
|
{
|
10494
10485
|
disabled: props.isGoogleLoading,
|
@@ -10496,9 +10487,9 @@ var AuthButtons = (props) => {
|
|
10496
10487
|
variant: "outline",
|
10497
10488
|
onClick: props.handleGoogle
|
10498
10489
|
},
|
10499
|
-
props.isGoogleLoading ? /* @__PURE__ */
|
10490
|
+
props.isGoogleLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.google, { className: "hawa-icon" }),
|
10500
10491
|
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithGoogle) != null ? _f : "Continue With Google"
|
10501
|
-
), props.viaGithub && /* @__PURE__ */
|
10492
|
+
), props.viaGithub && /* @__PURE__ */ import_react64.default.createElement(
|
10502
10493
|
Button,
|
10503
10494
|
{
|
10504
10495
|
disabled: props.isGithubLoading,
|
@@ -10506,9 +10497,9 @@ var AuthButtons = (props) => {
|
|
10506
10497
|
variant: "outline",
|
10507
10498
|
onClick: props.handleGithub
|
10508
10499
|
},
|
10509
|
-
props.isGithubLoading ? /* @__PURE__ */
|
10500
|
+
props.isGithubLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.github, { className: "hawa-icon" }),
|
10510
10501
|
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithGithub) != null ? _h : "Continue With Github"
|
10511
|
-
), props.viaTwitter && /* @__PURE__ */
|
10502
|
+
), props.viaTwitter && /* @__PURE__ */ import_react64.default.createElement(
|
10512
10503
|
Button,
|
10513
10504
|
{
|
10514
10505
|
disabled: props.isTwitterLoading,
|
@@ -10516,9 +10507,9 @@ var AuthButtons = (props) => {
|
|
10516
10507
|
variant: "outline",
|
10517
10508
|
onClick: props.handleTwitter
|
10518
10509
|
},
|
10519
|
-
props.isTwitterLoading ? /* @__PURE__ */
|
10510
|
+
props.isTwitterLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.twitter, { className: "hawa-icon" }),
|
10520
10511
|
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithTwitter) != null ? _j : "Continue With Twitter"
|
10521
|
-
), props.viaApple && /* @__PURE__ */
|
10512
|
+
), props.viaApple && /* @__PURE__ */ import_react64.default.createElement(
|
10522
10513
|
Button,
|
10523
10514
|
{
|
10524
10515
|
disabled: props.isAppleLoading,
|
@@ -10526,9 +10517,9 @@ var AuthButtons = (props) => {
|
|
10526
10517
|
variant: "outline",
|
10527
10518
|
onClick: props.handleApple
|
10528
10519
|
},
|
10529
|
-
props.isAppleLoading ? /* @__PURE__ */
|
10520
|
+
props.isAppleLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.apple, { className: "hawa-icon" }),
|
10530
10521
|
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithApple) != null ? _l : "Continue With Apple"
|
10531
|
-
), props.viaMicrosoft && /* @__PURE__ */
|
10522
|
+
), props.viaMicrosoft && /* @__PURE__ */ import_react64.default.createElement(
|
10532
10523
|
Button,
|
10533
10524
|
{
|
10534
10525
|
disabled: props.isMicrosoftLoading,
|
@@ -10536,9 +10527,9 @@ var AuthButtons = (props) => {
|
|
10536
10527
|
variant: "outline",
|
10537
10528
|
onClick: props.handleMicrosoft
|
10538
10529
|
},
|
10539
|
-
props.isMicrosoftLoading ? /* @__PURE__ */
|
10530
|
+
props.isMicrosoftLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
10540
10531
|
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithMicrosoft) != null ? _n : "Continue With Microsoft"
|
10541
|
-
), props.viaEmail && /* @__PURE__ */
|
10532
|
+
), props.viaEmail && /* @__PURE__ */ import_react64.default.createElement(
|
10542
10533
|
Button,
|
10543
10534
|
{
|
10544
10535
|
disabled: props.isEmailLoading,
|
@@ -10546,9 +10537,9 @@ var AuthButtons = (props) => {
|
|
10546
10537
|
variant: "outline",
|
10547
10538
|
onClick: props.handleEmail
|
10548
10539
|
},
|
10549
|
-
props.isEmailLoading ? /* @__PURE__ */
|
10540
|
+
props.isEmailLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.mail, { className: "hawa-icon" }),
|
10550
10541
|
(_p = (_o = props.texts) == null ? void 0 : _o.continueWithEmail) != null ? _p : "Continue With Email"
|
10551
|
-
), props.viaPhone && /* @__PURE__ */
|
10542
|
+
), props.viaPhone && /* @__PURE__ */ import_react64.default.createElement(
|
10552
10543
|
Button,
|
10553
10544
|
{
|
10554
10545
|
disabled: props.isPhoneLoading,
|
@@ -10556,14 +10547,14 @@ var AuthButtons = (props) => {
|
|
10556
10547
|
variant: "outline",
|
10557
10548
|
onClick: props.handlePhone
|
10558
10549
|
},
|
10559
|
-
props.isPhoneLoading ? /* @__PURE__ */
|
10550
|
+
props.isPhoneLoading ? /* @__PURE__ */ import_react64.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react64.default.createElement(Logos.phone, { className: "hawa-icon" }),
|
10560
10551
|
(_r = (_q = props.texts) == null ? void 0 : _q.continueWithPhone) != null ? _r : "Continue With Phone"
|
10561
10552
|
));
|
10562
10553
|
};
|
10563
10554
|
|
10564
10555
|
// blocks/auth/LoginForm.tsx
|
10565
|
-
var
|
10566
|
-
var
|
10556
|
+
var import_react65 = __toESM(require("react"));
|
10557
|
+
var import_react66 = require("react");
|
10567
10558
|
var import_react_hook_form = require("react-hook-form");
|
10568
10559
|
var import_zod = require("@hookform/resolvers/zod");
|
10569
10560
|
var import_libphonenumber_js = require("libphonenumber-js");
|
@@ -10575,7 +10566,7 @@ var LoginForm = ({
|
|
10575
10566
|
...props
|
10576
10567
|
}) => {
|
10577
10568
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
10578
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
10569
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react66.useState)(false);
|
10579
10570
|
const thirdPartyAuthTexts = {
|
10580
10571
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
10581
10572
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -10637,14 +10628,14 @@ var LoginForm = ({
|
|
10637
10628
|
const renderFields = () => {
|
10638
10629
|
switch (loginType) {
|
10639
10630
|
case "email":
|
10640
|
-
return /* @__PURE__ */
|
10631
|
+
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement(
|
10641
10632
|
import_react_hook_form.Controller,
|
10642
10633
|
{
|
10643
10634
|
control,
|
10644
10635
|
name: "email",
|
10645
10636
|
render: ({ field }) => {
|
10646
10637
|
var _a2, _b2, _c2;
|
10647
|
-
return /* @__PURE__ */
|
10638
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10648
10639
|
Input,
|
10649
10640
|
{
|
10650
10641
|
inputProps: {
|
@@ -10664,27 +10655,27 @@ var LoginForm = ({
|
|
10664
10655
|
);
|
10665
10656
|
}
|
10666
10657
|
}
|
10667
|
-
), /* @__PURE__ */
|
10658
|
+
), /* @__PURE__ */ import_react65.default.createElement("div", null, /* @__PURE__ */ import_react65.default.createElement(
|
10668
10659
|
import_react_hook_form.Controller,
|
10669
10660
|
{
|
10670
10661
|
control,
|
10671
10662
|
name: "password",
|
10672
10663
|
render: ({ field }) => {
|
10673
10664
|
var _a2, _b2, _c2;
|
10674
|
-
return /* @__PURE__ */
|
10665
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10675
10666
|
Input,
|
10676
10667
|
{
|
10677
10668
|
width: "full",
|
10678
10669
|
autoComplete: "current-password",
|
10679
10670
|
type: passwordVisible ? "text" : "password",
|
10680
10671
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
10681
|
-
endIcon: /* @__PURE__ */
|
10672
|
+
endIcon: /* @__PURE__ */ import_react65.default.createElement(
|
10682
10673
|
"div",
|
10683
10674
|
{
|
10684
10675
|
className: "hawa-cursor-pointer",
|
10685
10676
|
onClick: () => setPasswordVisible(!passwordVisible)
|
10686
10677
|
},
|
10687
|
-
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" })
|
10688
10679
|
),
|
10689
10680
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
10690
10681
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -10693,7 +10684,7 @@ var LoginForm = ({
|
|
10693
10684
|
);
|
10694
10685
|
}
|
10695
10686
|
}
|
10696
|
-
), props.withResetPassword && /* @__PURE__ */
|
10687
|
+
), props.withResetPassword && /* @__PURE__ */ import_react65.default.createElement(
|
10697
10688
|
"div",
|
10698
10689
|
{
|
10699
10690
|
onClick: props.onForgotPassword,
|
@@ -10702,14 +10693,14 @@ var LoginForm = ({
|
|
10702
10693
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
10703
10694
|
)));
|
10704
10695
|
case "username":
|
10705
|
-
return /* @__PURE__ */
|
10696
|
+
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement(
|
10706
10697
|
import_react_hook_form.Controller,
|
10707
10698
|
{
|
10708
10699
|
control,
|
10709
10700
|
name: "username",
|
10710
10701
|
render: ({ field }) => {
|
10711
10702
|
var _a2, _b2, _c2;
|
10712
|
-
return /* @__PURE__ */
|
10703
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10713
10704
|
Input,
|
10714
10705
|
{
|
10715
10706
|
width: "full",
|
@@ -10722,27 +10713,27 @@ var LoginForm = ({
|
|
10722
10713
|
);
|
10723
10714
|
}
|
10724
10715
|
}
|
10725
|
-
), /* @__PURE__ */
|
10716
|
+
), /* @__PURE__ */ import_react65.default.createElement("div", null, /* @__PURE__ */ import_react65.default.createElement(
|
10726
10717
|
import_react_hook_form.Controller,
|
10727
10718
|
{
|
10728
10719
|
control,
|
10729
10720
|
name: "password",
|
10730
10721
|
render: ({ field }) => {
|
10731
10722
|
var _a2, _b2, _c2;
|
10732
|
-
return /* @__PURE__ */
|
10723
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10733
10724
|
Input,
|
10734
10725
|
{
|
10735
10726
|
width: "full",
|
10736
10727
|
autoComplete: "current-password",
|
10737
10728
|
type: passwordVisible ? "text" : "password",
|
10738
10729
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
10739
|
-
endIcon: /* @__PURE__ */
|
10730
|
+
endIcon: /* @__PURE__ */ import_react65.default.createElement(
|
10740
10731
|
"div",
|
10741
10732
|
{
|
10742
10733
|
className: "hawa-cursor-pointer",
|
10743
10734
|
onClick: () => setPasswordVisible(!passwordVisible)
|
10744
10735
|
},
|
10745
|
-
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" })
|
10746
10737
|
),
|
10747
10738
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
10748
10739
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -10751,7 +10742,7 @@ var LoginForm = ({
|
|
10751
10742
|
);
|
10752
10743
|
}
|
10753
10744
|
}
|
10754
|
-
), props.withResetPassword && /* @__PURE__ */
|
10745
|
+
), props.withResetPassword && /* @__PURE__ */ import_react65.default.createElement(
|
10755
10746
|
"div",
|
10756
10747
|
{
|
10757
10748
|
onClick: props.onForgotPassword,
|
@@ -10760,14 +10751,14 @@ var LoginForm = ({
|
|
10760
10751
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
10761
10752
|
)));
|
10762
10753
|
case "phone":
|
10763
|
-
return /* @__PURE__ */
|
10754
|
+
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement(
|
10764
10755
|
import_react_hook_form.Controller,
|
10765
10756
|
{
|
10766
10757
|
control,
|
10767
10758
|
name: "phone",
|
10768
10759
|
render: ({ field }) => {
|
10769
10760
|
var _a2, _b2;
|
10770
|
-
return /* @__PURE__ */
|
10761
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10771
10762
|
PhoneInput,
|
10772
10763
|
{
|
10773
10764
|
label: ((_a2 = texts == null ? void 0 : texts.phone) == null ? void 0 : _a2.label) || "Phone Number",
|
@@ -10788,14 +10779,14 @@ var LoginForm = ({
|
|
10788
10779
|
}
|
10789
10780
|
));
|
10790
10781
|
case "link":
|
10791
|
-
return /* @__PURE__ */
|
10782
|
+
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement(
|
10792
10783
|
import_react_hook_form.Controller,
|
10793
10784
|
{
|
10794
10785
|
control,
|
10795
10786
|
name: "email",
|
10796
10787
|
render: ({ field }) => {
|
10797
10788
|
var _a2, _b2, _c2;
|
10798
|
-
return /* @__PURE__ */
|
10789
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
10799
10790
|
Input,
|
10800
10791
|
{
|
10801
10792
|
width: "full",
|
@@ -10816,7 +10807,7 @@ var LoginForm = ({
|
|
10816
10807
|
break;
|
10817
10808
|
}
|
10818
10809
|
};
|
10819
|
-
return /* @__PURE__ */
|
10810
|
+
return /* @__PURE__ */ import_react65.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react65.default.createElement(
|
10820
10811
|
Card,
|
10821
10812
|
{
|
10822
10813
|
dir: props.direction,
|
@@ -10824,7 +10815,7 @@ var LoginForm = ({
|
|
10824
10815
|
props.cardless && "!hawa-border-none !hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
10825
10816
|
)
|
10826
10817
|
},
|
10827
|
-
/* @__PURE__ */
|
10818
|
+
/* @__PURE__ */ import_react65.default.createElement(CardContent, { headless: true, noPadding: props.cardless }, props.showError && /* @__PURE__ */ import_react65.default.createElement(
|
10828
10819
|
Alert,
|
10829
10820
|
{
|
10830
10821
|
direction: props.direction,
|
@@ -10832,7 +10823,7 @@ var LoginForm = ({
|
|
10832
10823
|
text: props.errorText,
|
10833
10824
|
severity: "error"
|
10834
10825
|
}
|
10835
|
-
), /* @__PURE__ */
|
10826
|
+
), /* @__PURE__ */ import_react65.default.createElement(
|
10836
10827
|
"form",
|
10837
10828
|
{
|
10838
10829
|
noValidate: true,
|
@@ -10846,7 +10837,7 @@ var LoginForm = ({
|
|
10846
10837
|
})
|
10847
10838
|
},
|
10848
10839
|
renderFields(),
|
10849
|
-
/* @__PURE__ */
|
10840
|
+
/* @__PURE__ */ import_react65.default.createElement(
|
10850
10841
|
Button,
|
10851
10842
|
{
|
10852
10843
|
className: "hawa-mt-0 hawa-w-full",
|
@@ -10857,7 +10848,7 @@ var LoginForm = ({
|
|
10857
10848
|
(texts == null ? void 0 : texts.loginText) || "Login"
|
10858
10849
|
),
|
10859
10850
|
props.additionalButtons,
|
10860
|
-
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(
|
10861
10852
|
"span",
|
10862
10853
|
{
|
10863
10854
|
onClick: props.onRouteToRegister,
|
@@ -10866,7 +10857,7 @@ var LoginForm = ({
|
|
10866
10857
|
(texts == null ? void 0 : texts.createAccount) || "Create Account"
|
10867
10858
|
))
|
10868
10859
|
)),
|
10869
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
10860
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react65.default.createElement(
|
10870
10861
|
CardFooter,
|
10871
10862
|
{
|
10872
10863
|
noPadding: props.cardless,
|
@@ -10874,7 +10865,7 @@ var LoginForm = ({
|
|
10874
10865
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
10875
10866
|
)
|
10876
10867
|
},
|
10877
|
-
/* @__PURE__ */
|
10868
|
+
/* @__PURE__ */ import_react65.default.createElement(
|
10878
10869
|
AuthButtons,
|
10879
10870
|
{
|
10880
10871
|
texts: thirdPartyAuthTexts,
|
@@ -10894,7 +10885,7 @@ var LoginForm = ({
|
|
10894
10885
|
};
|
10895
10886
|
|
10896
10887
|
// blocks/auth/RegisterForm.tsx
|
10897
|
-
var
|
10888
|
+
var import_react67 = __toESM(require("react"));
|
10898
10889
|
var import_react_hook_form2 = require("react-hook-form");
|
10899
10890
|
var import_zod2 = require("@hookform/resolvers/zod");
|
10900
10891
|
var z2 = __toESM(require("zod"));
|
@@ -10906,7 +10897,7 @@ var RegisterForm = ({
|
|
10906
10897
|
...props
|
10907
10898
|
}) => {
|
10908
10899
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
10909
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
10900
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react67.useState)(false);
|
10910
10901
|
const thirdPartyAuthTexts = {
|
10911
10902
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
10912
10903
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -10973,7 +10964,7 @@ var RegisterForm = ({
|
|
10973
10964
|
const { handleSubmit, control, formState } = (0, import_react_hook_form2.useForm)({
|
10974
10965
|
resolver: (0, import_zod2.zodResolver)(formSchema)
|
10975
10966
|
});
|
10976
|
-
return /* @__PURE__ */
|
10967
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
10977
10968
|
"div",
|
10978
10969
|
{
|
10979
10970
|
className: cn(
|
@@ -10981,7 +10972,7 @@ var RegisterForm = ({
|
|
10981
10972
|
(_g = props.classNames) == null ? void 0 : _g.root
|
10982
10973
|
)
|
10983
10974
|
},
|
10984
|
-
/* @__PURE__ */
|
10975
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
10985
10976
|
Card,
|
10986
10977
|
{
|
10987
10978
|
dir: props.direction,
|
@@ -10990,7 +10981,7 @@ var RegisterForm = ({
|
|
10990
10981
|
props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
10991
10982
|
)
|
10992
10983
|
},
|
10993
|
-
/* @__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(
|
10994
10985
|
Alert,
|
10995
10986
|
{
|
10996
10987
|
direction: props.direction,
|
@@ -11003,7 +10994,7 @@ var RegisterForm = ({
|
|
11003
10994
|
}
|
11004
10995
|
}
|
11005
10996
|
}
|
11006
|
-
), /* @__PURE__ */
|
10997
|
+
), /* @__PURE__ */ import_react67.default.createElement(import_react_hook_form2.FormProvider, { ...methods }, /* @__PURE__ */ import_react67.default.createElement(
|
11007
10998
|
"form",
|
11008
10999
|
{
|
11009
11000
|
noValidate: true,
|
@@ -11018,9 +11009,9 @@ var RegisterForm = ({
|
|
11018
11009
|
}),
|
11019
11010
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
11020
11011
|
},
|
11021
|
-
/* @__PURE__ */
|
11012
|
+
/* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
|
11022
11013
|
if (fld === "fullname") {
|
11023
|
-
return /* @__PURE__ */
|
11014
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11024
11015
|
import_react_hook_form2.Controller,
|
11025
11016
|
{
|
11026
11017
|
key: i,
|
@@ -11028,7 +11019,7 @@ var RegisterForm = ({
|
|
11028
11019
|
name: "fullName",
|
11029
11020
|
render: ({ field }) => {
|
11030
11021
|
var _a2, _b2, _c2;
|
11031
|
-
return /* @__PURE__ */
|
11022
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11032
11023
|
Input,
|
11033
11024
|
{
|
11034
11025
|
width: "full",
|
@@ -11043,7 +11034,7 @@ var RegisterForm = ({
|
|
11043
11034
|
);
|
11044
11035
|
}
|
11045
11036
|
if (fld === "email") {
|
11046
|
-
return /* @__PURE__ */
|
11037
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11047
11038
|
import_react_hook_form2.Controller,
|
11048
11039
|
{
|
11049
11040
|
key: i,
|
@@ -11051,7 +11042,7 @@ var RegisterForm = ({
|
|
11051
11042
|
name: "email",
|
11052
11043
|
render: ({ field }) => {
|
11053
11044
|
var _a2, _b2, _c2;
|
11054
|
-
return /* @__PURE__ */
|
11045
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11055
11046
|
Input,
|
11056
11047
|
{
|
11057
11048
|
dir: "ltr",
|
@@ -11076,7 +11067,7 @@ var RegisterForm = ({
|
|
11076
11067
|
);
|
11077
11068
|
}
|
11078
11069
|
if (fld === "username") {
|
11079
|
-
return /* @__PURE__ */
|
11070
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11080
11071
|
import_react_hook_form2.Controller,
|
11081
11072
|
{
|
11082
11073
|
key: i,
|
@@ -11084,7 +11075,7 @@ var RegisterForm = ({
|
|
11084
11075
|
name: "username",
|
11085
11076
|
render: ({ field }) => {
|
11086
11077
|
var _a2, _b2, _c2, _d2;
|
11087
|
-
return /* @__PURE__ */
|
11078
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11088
11079
|
Input,
|
11089
11080
|
{
|
11090
11081
|
width: "full",
|
@@ -11103,25 +11094,25 @@ var RegisterForm = ({
|
|
11103
11094
|
);
|
11104
11095
|
}
|
11105
11096
|
})),
|
11106
|
-
/* @__PURE__ */
|
11097
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
11107
11098
|
import_react_hook_form2.Controller,
|
11108
11099
|
{
|
11109
11100
|
control,
|
11110
11101
|
name: "password",
|
11111
11102
|
render: ({ field }) => {
|
11112
11103
|
var _a2, _b2, _c2;
|
11113
|
-
return /* @__PURE__ */
|
11104
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11114
11105
|
Input,
|
11115
11106
|
{
|
11116
11107
|
width: "full",
|
11117
11108
|
type: passwordVisible ? "text" : "password",
|
11118
|
-
endIcon: /* @__PURE__ */
|
11109
|
+
endIcon: /* @__PURE__ */ import_react67.default.createElement(
|
11119
11110
|
"div",
|
11120
11111
|
{
|
11121
11112
|
className: "hawa-cursor-pointer",
|
11122
11113
|
onClick: () => setPasswordVisible(!passwordVisible)
|
11123
11114
|
},
|
11124
|
-
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" }),
|
11125
11116
|
" "
|
11126
11117
|
),
|
11127
11118
|
autoComplete: "new-password",
|
@@ -11134,14 +11125,14 @@ var RegisterForm = ({
|
|
11134
11125
|
}
|
11135
11126
|
}
|
11136
11127
|
),
|
11137
|
-
/* @__PURE__ */
|
11128
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
11138
11129
|
import_react_hook_form2.Controller,
|
11139
11130
|
{
|
11140
11131
|
control,
|
11141
11132
|
name: "confirm_password",
|
11142
11133
|
render: ({ field }) => {
|
11143
11134
|
var _a2, _b2, _c2;
|
11144
|
-
return /* @__PURE__ */
|
11135
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11145
11136
|
Input,
|
11146
11137
|
{
|
11147
11138
|
width: "full",
|
@@ -11157,14 +11148,14 @@ var RegisterForm = ({
|
|
11157
11148
|
}
|
11158
11149
|
),
|
11159
11150
|
props.additionalInputs,
|
11160
|
-
props.showRefCode && /* @__PURE__ */
|
11151
|
+
props.showRefCode && /* @__PURE__ */ import_react67.default.createElement(
|
11161
11152
|
import_react_hook_form2.Controller,
|
11162
11153
|
{
|
11163
11154
|
control,
|
11164
11155
|
name: "refCode",
|
11165
11156
|
render: ({ field }) => {
|
11166
11157
|
var _a2;
|
11167
|
-
return /* @__PURE__ */
|
11158
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11168
11159
|
Input,
|
11169
11160
|
{
|
11170
11161
|
width: "full",
|
@@ -11177,14 +11168,14 @@ var RegisterForm = ({
|
|
11177
11168
|
}
|
11178
11169
|
}
|
11179
11170
|
),
|
11180
|
-
props.showUserSource && /* @__PURE__ */
|
11171
|
+
props.showUserSource && /* @__PURE__ */ import_react67.default.createElement(
|
11181
11172
|
import_react_hook_form2.Controller,
|
11182
11173
|
{
|
11183
11174
|
control,
|
11184
11175
|
name: "reference",
|
11185
11176
|
render: ({ field }) => {
|
11186
11177
|
var _a2, _b2;
|
11187
|
-
return /* @__PURE__ */
|
11178
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11188
11179
|
Select,
|
11189
11180
|
{
|
11190
11181
|
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
@@ -11200,20 +11191,20 @@ var RegisterForm = ({
|
|
11200
11191
|
}
|
11201
11192
|
}
|
11202
11193
|
),
|
11203
|
-
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(
|
11204
11195
|
import_react_hook_form2.Controller,
|
11205
11196
|
{
|
11206
11197
|
control,
|
11207
11198
|
name: "terms_accepted",
|
11208
11199
|
render: ({ field }) => {
|
11209
11200
|
var _a2, _b2;
|
11210
|
-
return /* @__PURE__ */
|
11201
|
+
return /* @__PURE__ */ import_react67.default.createElement(
|
11211
11202
|
Checkbox,
|
11212
11203
|
{
|
11213
11204
|
id: "terms_accepted",
|
11214
11205
|
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
11215
11206
|
onCheckedChange: (e) => field.onChange(e),
|
11216
|
-
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(
|
11217
11208
|
"span",
|
11218
11209
|
{
|
11219
11210
|
onClick: (e) => {
|
@@ -11230,12 +11221,12 @@ var RegisterForm = ({
|
|
11230
11221
|
);
|
11231
11222
|
}
|
11232
11223
|
}
|
11233
|
-
), showNewsletterOption && /* @__PURE__ */
|
11224
|
+
), showNewsletterOption && /* @__PURE__ */ import_react67.default.createElement(
|
11234
11225
|
import_react_hook_form2.Controller,
|
11235
11226
|
{
|
11236
11227
|
control,
|
11237
11228
|
name: "newsletter_accepted",
|
11238
|
-
render: ({ field }) => /* @__PURE__ */
|
11229
|
+
render: ({ field }) => /* @__PURE__ */ import_react67.default.createElement(
|
11239
11230
|
Checkbox,
|
11240
11231
|
{
|
11241
11232
|
id: "newsletter_accepted",
|
@@ -11245,7 +11236,7 @@ var RegisterForm = ({
|
|
11245
11236
|
)
|
11246
11237
|
}
|
11247
11238
|
)) : null,
|
11248
|
-
/* @__PURE__ */
|
11239
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
11249
11240
|
Button,
|
11250
11241
|
{
|
11251
11242
|
className: " hawa-w-full",
|
@@ -11256,8 +11247,8 @@ var RegisterForm = ({
|
|
11256
11247
|
(texts == null ? void 0 : texts.registerText) || "Register"
|
11257
11248
|
),
|
11258
11249
|
props.additionalButtons
|
11259
|
-
)), props.onRouteToLogin && /* @__PURE__ */
|
11260
|
-
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(
|
11261
11252
|
CardFooter,
|
11262
11253
|
{
|
11263
11254
|
noPadding: props.cardless,
|
@@ -11265,7 +11256,7 @@ var RegisterForm = ({
|
|
11265
11256
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
11266
11257
|
)
|
11267
11258
|
},
|
11268
|
-
/* @__PURE__ */
|
11259
|
+
/* @__PURE__ */ import_react67.default.createElement(
|
11269
11260
|
AuthButtons,
|
11270
11261
|
{
|
11271
11262
|
texts: thirdPartyAuthTexts,
|
@@ -11286,7 +11277,7 @@ var RegisterForm = ({
|
|
11286
11277
|
};
|
11287
11278
|
|
11288
11279
|
// blocks/auth/AppLanding.tsx
|
11289
|
-
var
|
11280
|
+
var import_react68 = __toESM(require("react"));
|
11290
11281
|
var AppLanding = ({ texts, ...props }) => {
|
11291
11282
|
const thirdPartyAuthTexts = {
|
11292
11283
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
@@ -11297,7 +11288,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
11297
11288
|
continueWithEmail: texts == null ? void 0 : texts.continueWithEmail,
|
11298
11289
|
continueWithPhone: texts == null ? void 0 : texts.continueWithPhone
|
11299
11290
|
};
|
11300
|
-
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(
|
11301
11292
|
AuthButtons,
|
11302
11293
|
{
|
11303
11294
|
texts: thirdPartyAuthTexts,
|
@@ -11316,7 +11307,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
11316
11307
|
handleEmail: props.handleEmail,
|
11317
11308
|
handlePhone: props.handlePhone
|
11318
11309
|
}
|
11319
|
-
), 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(
|
11320
11311
|
"span",
|
11321
11312
|
{
|
11322
11313
|
onClick: props.handleRouteToRegister,
|
@@ -11327,9 +11318,9 @@ var AppLanding = ({ texts, ...props }) => {
|
|
11327
11318
|
};
|
11328
11319
|
|
11329
11320
|
// blocks/auth/CheckEmail.tsx
|
11330
|
-
var
|
11321
|
+
var import_react69 = __toESM(require("react"));
|
11331
11322
|
var CheckEmail = ({ texts, handleResend }) => {
|
11332
|
-
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(
|
11333
11324
|
"svg",
|
11334
11325
|
{
|
11335
11326
|
stroke: "currentColor",
|
@@ -11342,13 +11333,13 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
11342
11333
|
width: "0.5em",
|
11343
11334
|
xmlns: "http://www.w3.org/2000/svg"
|
11344
11335
|
},
|
11345
|
-
/* @__PURE__ */
|
11346
|
-
/* @__PURE__ */
|
11347
|
-
)), /* @__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")));
|
11348
11339
|
};
|
11349
11340
|
|
11350
11341
|
// blocks/auth/NewPassword.tsx
|
11351
|
-
var
|
11342
|
+
var import_react70 = __toESM(require("react"));
|
11352
11343
|
var import_react_hook_form3 = require("react-hook-form");
|
11353
11344
|
var import_zod3 = require("@hookform/resolvers/zod");
|
11354
11345
|
var z3 = __toESM(require("zod"));
|
@@ -11370,7 +11361,7 @@ var NewPasswordForm = ({
|
|
11370
11361
|
const { handleSubmit, control, formState } = (0, import_react_hook_form3.useForm)({
|
11371
11362
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
11372
11363
|
});
|
11373
|
-
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(
|
11374
11365
|
"form",
|
11375
11366
|
{
|
11376
11367
|
noValidate: true,
|
@@ -11384,7 +11375,7 @@ var NewPasswordForm = ({
|
|
11384
11375
|
}
|
11385
11376
|
})
|
11386
11377
|
},
|
11387
|
-
/* @__PURE__ */
|
11378
|
+
/* @__PURE__ */ import_react70.default.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ import_react70.default.createElement(
|
11388
11379
|
Alert,
|
11389
11380
|
{
|
11390
11381
|
direction: props.direction,
|
@@ -11392,14 +11383,14 @@ var NewPasswordForm = ({
|
|
11392
11383
|
text: props.errorText,
|
11393
11384
|
severity: "error"
|
11394
11385
|
}
|
11395
|
-
), /* @__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(
|
11396
11387
|
import_react_hook_form3.Controller,
|
11397
11388
|
{
|
11398
11389
|
control,
|
11399
11390
|
name: "password",
|
11400
11391
|
render: ({ field }) => {
|
11401
11392
|
var _a2, _b2, _c2;
|
11402
|
-
return /* @__PURE__ */
|
11393
|
+
return /* @__PURE__ */ import_react70.default.createElement(
|
11403
11394
|
Input,
|
11404
11395
|
{
|
11405
11396
|
width: "full",
|
@@ -11413,14 +11404,14 @@ var NewPasswordForm = ({
|
|
11413
11404
|
);
|
11414
11405
|
}
|
11415
11406
|
}
|
11416
|
-
), /* @__PURE__ */
|
11407
|
+
), /* @__PURE__ */ import_react70.default.createElement(
|
11417
11408
|
import_react_hook_form3.Controller,
|
11418
11409
|
{
|
11419
11410
|
control,
|
11420
11411
|
name: "confirm_password",
|
11421
11412
|
render: ({ field }) => {
|
11422
11413
|
var _a2, _b2, _c2;
|
11423
|
-
return /* @__PURE__ */
|
11414
|
+
return /* @__PURE__ */ import_react70.default.createElement(
|
11424
11415
|
Input,
|
11425
11416
|
{
|
11426
11417
|
width: "full",
|
@@ -11434,7 +11425,7 @@ var NewPasswordForm = ({
|
|
11434
11425
|
);
|
11435
11426
|
}
|
11436
11427
|
}
|
11437
|
-
)), /* @__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(
|
11438
11429
|
"span",
|
11439
11430
|
{
|
11440
11431
|
className: "clickable-link",
|
@@ -11446,7 +11437,7 @@ var NewPasswordForm = ({
|
|
11446
11437
|
};
|
11447
11438
|
|
11448
11439
|
// blocks/auth/ResetPassword.tsx
|
11449
|
-
var
|
11440
|
+
var import_react71 = __toESM(require("react"));
|
11450
11441
|
var import_react_hook_form4 = require("react-hook-form");
|
11451
11442
|
var import_zod4 = require("@hookform/resolvers/zod");
|
11452
11443
|
var z4 = __toESM(require("zod"));
|
@@ -11464,7 +11455,7 @@ var ResetPasswordForm = ({
|
|
11464
11455
|
const { handleSubmit, control, formState } = (0, import_react_hook_form4.useForm)({
|
11465
11456
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
11466
11457
|
});
|
11467
|
-
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(
|
11468
11459
|
"form",
|
11469
11460
|
{
|
11470
11461
|
noValidate: true,
|
@@ -11476,7 +11467,7 @@ var ResetPasswordForm = ({
|
|
11476
11467
|
}
|
11477
11468
|
})
|
11478
11469
|
},
|
11479
|
-
/* @__PURE__ */
|
11470
|
+
/* @__PURE__ */ import_react71.default.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ import_react71.default.createElement(
|
11480
11471
|
Alert,
|
11481
11472
|
{
|
11482
11473
|
direction: props.direction,
|
@@ -11484,14 +11475,14 @@ var ResetPasswordForm = ({
|
|
11484
11475
|
text: props.errorText,
|
11485
11476
|
severity: "error"
|
11486
11477
|
}
|
11487
|
-
), /* @__PURE__ */
|
11478
|
+
), /* @__PURE__ */ import_react71.default.createElement(
|
11488
11479
|
import_react_hook_form4.Controller,
|
11489
11480
|
{
|
11490
11481
|
control,
|
11491
11482
|
name: "email",
|
11492
11483
|
render: ({ field }) => {
|
11493
11484
|
var _a2, _b2, _c2, _d2, _e2;
|
11494
|
-
return /* @__PURE__ */
|
11485
|
+
return /* @__PURE__ */ import_react71.default.createElement(
|
11495
11486
|
Input,
|
11496
11487
|
{
|
11497
11488
|
width: "full",
|
@@ -11507,7 +11498,7 @@ var ResetPasswordForm = ({
|
|
11507
11498
|
}
|
11508
11499
|
}
|
11509
11500
|
)),
|
11510
|
-
/* @__PURE__ */
|
11501
|
+
/* @__PURE__ */ import_react71.default.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react71.default.createElement(
|
11511
11502
|
Button,
|
11512
11503
|
{
|
11513
11504
|
type: "submit",
|
@@ -11515,7 +11506,7 @@ var ResetPasswordForm = ({
|
|
11515
11506
|
isLoading
|
11516
11507
|
},
|
11517
11508
|
((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"
|
11518
|
-
), 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(
|
11519
11510
|
"span",
|
11520
11511
|
{
|
11521
11512
|
className: "clickable-link",
|
@@ -11523,25 +11514,28 @@ var ResetPasswordForm = ({
|
|
11523
11514
|
},
|
11524
11515
|
(_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
|
11525
11516
|
)))
|
11526
|
-
)) : /* @__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")));
|
11527
11518
|
};
|
11528
11519
|
|
11529
11520
|
// blocks/auth/CodeConfirmation.tsx
|
11530
|
-
var
|
11521
|
+
var import_react72 = __toESM(require("react"));
|
11531
11522
|
var import_react_hook_form5 = require("react-hook-form");
|
11532
11523
|
var import_zod5 = require("@hookform/resolvers/zod");
|
11533
11524
|
var z5 = __toESM(require("zod"));
|
11534
|
-
var CodeConfirmation = (
|
11525
|
+
var CodeConfirmation = ({
|
11526
|
+
codeLength = 6,
|
11527
|
+
...props
|
11528
|
+
}) => {
|
11535
11529
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
11536
11530
|
const formSchema = z5.object({
|
11537
|
-
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 })
|
11538
11532
|
});
|
11539
11533
|
const { handleSubmit, control, formState, setValue } = (0, import_react_hook_form5.useForm)({
|
11540
11534
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
11541
11535
|
});
|
11542
|
-
const [resendTimer, setResendTimer] = (0,
|
11543
|
-
const [remainingTime, setRemainingTime] = (0,
|
11544
|
-
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);
|
11545
11539
|
const startResendTimer = () => {
|
11546
11540
|
if (resendTimer !== null) {
|
11547
11541
|
clearInterval(resendTimer);
|
@@ -11563,21 +11557,21 @@ var CodeConfirmation = (props) => {
|
|
11563
11557
|
}, 1e3);
|
11564
11558
|
setResendTimer(newTimer);
|
11565
11559
|
};
|
11566
|
-
(0,
|
11560
|
+
(0, import_react72.useEffect)(() => {
|
11567
11561
|
return () => {
|
11568
11562
|
if (resendTimer !== null) {
|
11569
11563
|
clearInterval(resendTimer);
|
11570
11564
|
}
|
11571
11565
|
};
|
11572
11566
|
}, []);
|
11573
|
-
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(
|
11574
11568
|
Alert,
|
11575
11569
|
{
|
11576
11570
|
title: props.errorTitle,
|
11577
11571
|
text: props.errorText,
|
11578
11572
|
severity: "error"
|
11579
11573
|
}
|
11580
|
-
), /* @__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(
|
11581
11575
|
"form",
|
11582
11576
|
{
|
11583
11577
|
noValidate: true,
|
@@ -11591,26 +11585,25 @@ var CodeConfirmation = (props) => {
|
|
11591
11585
|
}
|
11592
11586
|
})
|
11593
11587
|
},
|
11594
|
-
/* @__PURE__ */
|
11588
|
+
/* @__PURE__ */ import_react72.default.createElement(
|
11595
11589
|
import_react_hook_form5.Controller,
|
11596
11590
|
{
|
11597
11591
|
control,
|
11598
11592
|
name: "otp_code",
|
11599
11593
|
render: ({ field }) => {
|
11600
11594
|
var _a2;
|
11601
|
-
return /* @__PURE__ */
|
11595
|
+
return /* @__PURE__ */ import_react72.default.createElement(
|
11602
11596
|
PinInput,
|
11603
11597
|
{
|
11604
|
-
|
11605
|
-
|
11606
|
-
|
11607
|
-
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
|
11608
11601
|
}
|
11609
11602
|
);
|
11610
11603
|
}
|
11611
11604
|
}
|
11612
11605
|
),
|
11613
|
-
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(
|
11614
11607
|
"span",
|
11615
11608
|
{
|
11616
11609
|
className: "clickable-link",
|
@@ -11621,12 +11614,12 @@ var CodeConfirmation = (props) => {
|
|
11621
11614
|
},
|
11622
11615
|
((_i = props.texts) == null ? void 0 : _i.resendCode) || "Click to resend"
|
11623
11616
|
)),
|
11624
|
-
/* @__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"))
|
11625
11618
|
)));
|
11626
11619
|
};
|
11627
11620
|
|
11628
11621
|
// blocks/feedback/UserReferralSource.tsx
|
11629
|
-
var
|
11622
|
+
var import_react73 = __toESM(require("react"));
|
11630
11623
|
var import_react_hook_form6 = require("react-hook-form");
|
11631
11624
|
var import_zod6 = require("@hookform/resolvers/zod");
|
11632
11625
|
var z6 = __toESM(require("zod"));
|
@@ -11636,8 +11629,8 @@ var UserReferralSource = ({
|
|
11636
11629
|
...props
|
11637
11630
|
}) => {
|
11638
11631
|
var _a, _b;
|
11639
|
-
const [closed, setClosed] = (0,
|
11640
|
-
const popUpRef = (0,
|
11632
|
+
const [closed, setClosed] = (0, import_react73.useState)(false);
|
11633
|
+
const popUpRef = (0, import_react73.useRef)(null);
|
11641
11634
|
const formSchema = z6.object({
|
11642
11635
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
11643
11636
|
feedback: z6.string().optional()
|
@@ -11657,7 +11650,7 @@ var UserReferralSource = ({
|
|
11657
11650
|
label: "Other"
|
11658
11651
|
}
|
11659
11652
|
];
|
11660
|
-
return /* @__PURE__ */
|
11653
|
+
return /* @__PURE__ */ import_react73.default.createElement(
|
11661
11654
|
"div",
|
11662
11655
|
{
|
11663
11656
|
className: cn(
|
@@ -11666,7 +11659,7 @@ var UserReferralSource = ({
|
|
11666
11659
|
),
|
11667
11660
|
ref: popUpRef
|
11668
11661
|
},
|
11669
|
-
/* @__PURE__ */
|
11662
|
+
/* @__PURE__ */ import_react73.default.createElement(
|
11670
11663
|
Card,
|
11671
11664
|
{
|
11672
11665
|
className: cn(
|
@@ -11675,7 +11668,7 @@ var UserReferralSource = ({
|
|
11675
11668
|
),
|
11676
11669
|
dir: props.direction
|
11677
11670
|
},
|
11678
|
-
/* @__PURE__ */
|
11671
|
+
/* @__PURE__ */ import_react73.default.createElement(
|
11679
11672
|
"button",
|
11680
11673
|
{
|
11681
11674
|
type: "button",
|
@@ -11694,7 +11687,7 @@ var UserReferralSource = ({
|
|
11694
11687
|
}, 200);
|
11695
11688
|
}
|
11696
11689
|
},
|
11697
|
-
/* @__PURE__ */
|
11690
|
+
/* @__PURE__ */ import_react73.default.createElement(
|
11698
11691
|
"svg",
|
11699
11692
|
{
|
11700
11693
|
"aria-hidden": "true",
|
@@ -11702,7 +11695,7 @@ var UserReferralSource = ({
|
|
11702
11695
|
fill: "currentColor",
|
11703
11696
|
viewBox: "0 0 20 20"
|
11704
11697
|
},
|
11705
|
-
/* @__PURE__ */
|
11698
|
+
/* @__PURE__ */ import_react73.default.createElement(
|
11706
11699
|
"path",
|
11707
11700
|
{
|
11708
11701
|
fillRule: "evenodd",
|
@@ -11712,7 +11705,7 @@ var UserReferralSource = ({
|
|
11712
11705
|
)
|
11713
11706
|
)
|
11714
11707
|
),
|
11715
|
-
/* @__PURE__ */
|
11708
|
+
/* @__PURE__ */ import_react73.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react73.default.createElement(
|
11716
11709
|
"form",
|
11717
11710
|
{
|
11718
11711
|
noValidate: true,
|
@@ -11724,7 +11717,7 @@ var UserReferralSource = ({
|
|
11724
11717
|
}
|
11725
11718
|
})
|
11726
11719
|
},
|
11727
|
-
/* @__PURE__ */
|
11720
|
+
/* @__PURE__ */ import_react73.default.createElement(
|
11728
11721
|
"div",
|
11729
11722
|
{
|
11730
11723
|
className: cn(
|
@@ -11732,15 +11725,15 @@ var UserReferralSource = ({
|
|
11732
11725
|
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
11733
11726
|
)
|
11734
11727
|
},
|
11735
|
-
/* @__PURE__ */
|
11736
|
-
/* @__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(
|
11737
11730
|
import_react_hook_form6.Controller,
|
11738
11731
|
{
|
11739
11732
|
control,
|
11740
11733
|
name: "source",
|
11741
11734
|
render: ({ field }) => {
|
11742
11735
|
var _a2, _b2;
|
11743
|
-
return /* @__PURE__ */
|
11736
|
+
return /* @__PURE__ */ import_react73.default.createElement(
|
11744
11737
|
Radio,
|
11745
11738
|
{
|
11746
11739
|
name: "source",
|
@@ -11755,14 +11748,14 @@ var UserReferralSource = ({
|
|
11755
11748
|
}
|
11756
11749
|
}
|
11757
11750
|
)),
|
11758
|
-
/* @__PURE__ */
|
11751
|
+
/* @__PURE__ */ import_react73.default.createElement("div", null, /* @__PURE__ */ import_react73.default.createElement(
|
11759
11752
|
import_react_hook_form6.Controller,
|
11760
11753
|
{
|
11761
11754
|
control,
|
11762
11755
|
name: "feedback",
|
11763
11756
|
render: ({ field }) => {
|
11764
11757
|
var _a2, _b2;
|
11765
|
-
return /* @__PURE__ */
|
11758
|
+
return /* @__PURE__ */ import_react73.default.createElement(
|
11766
11759
|
Textarea,
|
11767
11760
|
{
|
11768
11761
|
...field,
|
@@ -11777,28 +11770,28 @@ var UserReferralSource = ({
|
|
11777
11770
|
}
|
11778
11771
|
))
|
11779
11772
|
),
|
11780
|
-
/* @__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")
|
11781
11774
|
))
|
11782
11775
|
)
|
11783
11776
|
);
|
11784
11777
|
};
|
11785
11778
|
|
11786
11779
|
// blocks/feedback/FeedbackRating.tsx
|
11787
|
-
var
|
11780
|
+
var import_react74 = __toESM(require("react"));
|
11788
11781
|
var FeedbackRating = ({
|
11789
11782
|
position = "bottom-right",
|
11790
11783
|
...props
|
11791
11784
|
}) => {
|
11792
|
-
const [closed, setClosed] = (0,
|
11793
|
-
const [answered, setAnswered] = (0,
|
11794
|
-
const [clickedOption, setClickedOption] = (0,
|
11795
|
-
const [closingTimer, setClosingTimer] = (0,
|
11796
|
-
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);
|
11797
11790
|
const boxPosition = {
|
11798
11791
|
"bottom-right": "hawa-right-4",
|
11799
11792
|
"bottom-left": "hawa-left-4"
|
11800
11793
|
};
|
11801
|
-
(0,
|
11794
|
+
(0, import_react74.useEffect)(() => {
|
11802
11795
|
const timeoutHide = setTimeout(() => {
|
11803
11796
|
if (closingTimer >= 0) {
|
11804
11797
|
setClosingTimer(closingTimer - 1);
|
@@ -11816,7 +11809,7 @@ var FeedbackRating = ({
|
|
11816
11809
|
}
|
11817
11810
|
}, 200);
|
11818
11811
|
};
|
11819
|
-
return /* @__PURE__ */
|
11812
|
+
return /* @__PURE__ */ import_react74.default.createElement(
|
11820
11813
|
"div",
|
11821
11814
|
{
|
11822
11815
|
ref: popUpRef,
|
@@ -11825,7 +11818,7 @@ var FeedbackRating = ({
|
|
11825
11818
|
boxPosition[position]
|
11826
11819
|
)
|
11827
11820
|
},
|
11828
|
-
/* @__PURE__ */
|
11821
|
+
/* @__PURE__ */ import_react74.default.createElement(
|
11829
11822
|
"div",
|
11830
11823
|
{
|
11831
11824
|
className: cn(
|
@@ -11834,8 +11827,8 @@ var FeedbackRating = ({
|
|
11834
11827
|
props.banner && "hawa-rounded-none hawa-px-4 md:hawa-rounded-t md:hawa-px-64"
|
11835
11828
|
)
|
11836
11829
|
},
|
11837
|
-
/* @__PURE__ */
|
11838
|
-
/* @__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(
|
11839
11832
|
"button",
|
11840
11833
|
{
|
11841
11834
|
type: "button",
|
@@ -11844,7 +11837,7 @@ var FeedbackRating = ({
|
|
11844
11837
|
"aria-label": "Close",
|
11845
11838
|
onClick: () => slowClose()
|
11846
11839
|
},
|
11847
|
-
/* @__PURE__ */
|
11840
|
+
/* @__PURE__ */ import_react74.default.createElement(
|
11848
11841
|
"svg",
|
11849
11842
|
{
|
11850
11843
|
"aria-hidden": "true",
|
@@ -11852,7 +11845,7 @@ var FeedbackRating = ({
|
|
11852
11845
|
fill: "currentColor",
|
11853
11846
|
viewBox: "0 0 20 20"
|
11854
11847
|
},
|
11855
|
-
/* @__PURE__ */
|
11848
|
+
/* @__PURE__ */ import_react74.default.createElement(
|
11856
11849
|
"path",
|
11857
11850
|
{
|
11858
11851
|
fillRule: "evenodd",
|
@@ -11862,8 +11855,8 @@ var FeedbackRating = ({
|
|
11862
11855
|
)
|
11863
11856
|
)
|
11864
11857
|
),
|
11865
|
-
/* @__PURE__ */
|
11866
|
-
/* @__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(
|
11867
11860
|
"span",
|
11868
11861
|
{
|
11869
11862
|
key: i,
|
@@ -11891,24 +11884,24 @@ var FeedbackRating = ({
|
|
11891
11884
|
},
|
11892
11885
|
op
|
11893
11886
|
))),
|
11894
|
-
props.texts && /* @__PURE__ */
|
11895
|
-
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")))
|
11896
11889
|
)
|
11897
11890
|
);
|
11898
11891
|
};
|
11899
11892
|
|
11900
11893
|
// blocks/feedback/FeedbackEmoji.tsx
|
11901
|
-
var
|
11894
|
+
var import_react75 = __toESM(require("react"));
|
11902
11895
|
var FeedbackEmoji = (props) => {
|
11903
|
-
const [selectedEmoji, setSelectedEmoji] = (0,
|
11904
|
-
const [loadingSubmit, setLoadingSubmit] = (0,
|
11905
|
-
const [feedbackText, setFeedbackText] = (0,
|
11906
|
-
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);
|
11907
11900
|
let emojis = [
|
11908
|
-
{ icon: /* @__PURE__ */
|
11909
|
-
{ icon: /* @__PURE__ */
|
11910
|
-
{ icon: /* @__PURE__ */
|
11911
|
-
{ 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" }
|
11912
11905
|
];
|
11913
11906
|
const onFeedbackSubmit = async () => {
|
11914
11907
|
if (feedbackText) {
|
@@ -11928,7 +11921,7 @@ var FeedbackEmoji = (props) => {
|
|
11928
11921
|
setHelperText(true);
|
11929
11922
|
}
|
11930
11923
|
};
|
11931
|
-
return /* @__PURE__ */
|
11924
|
+
return /* @__PURE__ */ import_react75.default.createElement(
|
11932
11925
|
"div",
|
11933
11926
|
{
|
11934
11927
|
className: cn(
|
@@ -11936,7 +11929,7 @@ var FeedbackEmoji = (props) => {
|
|
11936
11929
|
selectedEmoji ? "hawa-h-[189px] hawa-min-w-fit" : "hawa-h-[44px] "
|
11937
11930
|
)
|
11938
11931
|
},
|
11939
|
-
/* @__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(
|
11940
11933
|
Button,
|
11941
11934
|
{
|
11942
11935
|
key: i,
|
@@ -11955,7 +11948,7 @@ var FeedbackEmoji = (props) => {
|
|
11955
11948
|
},
|
11956
11949
|
emoji.icon
|
11957
11950
|
)))),
|
11958
|
-
/* @__PURE__ */
|
11951
|
+
/* @__PURE__ */ import_react75.default.createElement(
|
11959
11952
|
"div",
|
11960
11953
|
{
|
11961
11954
|
className: cn(
|
@@ -11963,7 +11956,7 @@ var FeedbackEmoji = (props) => {
|
|
11963
11956
|
selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 "
|
11964
11957
|
)
|
11965
11958
|
},
|
11966
|
-
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(
|
11967
11960
|
"svg",
|
11968
11961
|
{
|
11969
11962
|
stroke: "currentColor",
|
@@ -11973,13 +11966,13 @@ var FeedbackEmoji = (props) => {
|
|
11973
11966
|
height: "0.5em",
|
11974
11967
|
width: "0.5em"
|
11975
11968
|
},
|
11976
|
-
/* @__PURE__ */
|
11977
|
-
)), /* @__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(
|
11978
11971
|
Popover,
|
11979
11972
|
{
|
11980
11973
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
11981
11974
|
open: helperText,
|
11982
|
-
trigger: /* @__PURE__ */
|
11975
|
+
trigger: /* @__PURE__ */ import_react75.default.createElement(
|
11983
11976
|
Textarea,
|
11984
11977
|
{
|
11985
11978
|
classNames: {
|
@@ -11997,8 +11990,8 @@ var FeedbackEmoji = (props) => {
|
|
11997
11990
|
}
|
11998
11991
|
)
|
11999
11992
|
},
|
12000
|
-
/* @__PURE__ */
|
12001
|
-
), /* @__PURE__ */
|
11993
|
+
/* @__PURE__ */ import_react75.default.createElement("span", { className: "hawa-m-0" }, "Please enter your feedback")
|
11994
|
+
), /* @__PURE__ */ import_react75.default.createElement(
|
12002
11995
|
Button,
|
12003
11996
|
{
|
12004
11997
|
isLoading: loadingSubmit,
|
@@ -12013,7 +12006,7 @@ var FeedbackEmoji = (props) => {
|
|
12013
12006
|
};
|
12014
12007
|
|
12015
12008
|
// blocks/feedback/FeedbackForm.tsx
|
12016
|
-
var
|
12009
|
+
var import_react76 = __toESM(require("react"));
|
12017
12010
|
var import_react_hook_form7 = require("react-hook-form");
|
12018
12011
|
var import_zod7 = require("@hookform/resolvers/zod");
|
12019
12012
|
var z7 = __toESM(require("zod"));
|
@@ -12027,7 +12020,7 @@ var FeedbackForm = (props) => {
|
|
12027
12020
|
resolver: (0, import_zod7.zodResolver)(formSchema),
|
12028
12021
|
defaultValues: { requestType: "", description: "" }
|
12029
12022
|
});
|
12030
|
-
return /* @__PURE__ */
|
12023
|
+
return /* @__PURE__ */ import_react76.default.createElement(
|
12031
12024
|
Card,
|
12032
12025
|
{
|
12033
12026
|
className: cn(
|
@@ -12035,7 +12028,7 @@ var FeedbackForm = (props) => {
|
|
12035
12028
|
),
|
12036
12029
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
12037
12030
|
},
|
12038
|
-
/* @__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(
|
12039
12032
|
"form",
|
12040
12033
|
{
|
12041
12034
|
noValidate: true,
|
@@ -12048,15 +12041,15 @@ var FeedbackForm = (props) => {
|
|
12048
12041
|
}),
|
12049
12042
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
12050
12043
|
},
|
12051
|
-
/* @__PURE__ */
|
12052
|
-
/* @__PURE__ */
|
12044
|
+
/* @__PURE__ */ import_react76.default.createElement(Label2, null),
|
12045
|
+
/* @__PURE__ */ import_react76.default.createElement(
|
12053
12046
|
import_react_hook_form7.Controller,
|
12054
12047
|
{
|
12055
12048
|
name: "requestType",
|
12056
12049
|
control,
|
12057
12050
|
render: ({ field }) => {
|
12058
12051
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
12059
|
-
return /* @__PURE__ */
|
12052
|
+
return /* @__PURE__ */ import_react76.default.createElement(
|
12060
12053
|
Select,
|
12061
12054
|
{
|
12062
12055
|
...field,
|
@@ -12074,14 +12067,14 @@ var FeedbackForm = (props) => {
|
|
12074
12067
|
}
|
12075
12068
|
}
|
12076
12069
|
),
|
12077
|
-
/* @__PURE__ */
|
12070
|
+
/* @__PURE__ */ import_react76.default.createElement(
|
12078
12071
|
import_react_hook_form7.Controller,
|
12079
12072
|
{
|
12080
12073
|
name: "description",
|
12081
12074
|
control,
|
12082
12075
|
render: ({ field }) => {
|
12083
12076
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
12084
|
-
return /* @__PURE__ */
|
12077
|
+
return /* @__PURE__ */ import_react76.default.createElement(
|
12085
12078
|
Textarea,
|
12086
12079
|
{
|
12087
12080
|
helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
|
@@ -12099,15 +12092,15 @@ var FeedbackForm = (props) => {
|
|
12099
12092
|
}
|
12100
12093
|
}
|
12101
12094
|
),
|
12102
|
-
/* @__PURE__ */
|
12095
|
+
/* @__PURE__ */ import_react76.default.createElement(Button, { isLoading: props.loadingSubmission, type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
12103
12096
|
))
|
12104
12097
|
);
|
12105
12098
|
};
|
12106
12099
|
|
12107
12100
|
// blocks/misc/LegalTexts.tsx
|
12108
|
-
var
|
12101
|
+
var import_react77 = __toESM(require("react"));
|
12109
12102
|
var LegalTexts = ({ tabs, ...props }) => {
|
12110
|
-
return /* @__PURE__ */
|
12103
|
+
return /* @__PURE__ */ import_react77.default.createElement(
|
12111
12104
|
Tabs,
|
12112
12105
|
{
|
12113
12106
|
value: props.activeTab,
|
@@ -12115,8 +12108,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
12115
12108
|
defaultValue: props.defaultTab || tabs[0].value,
|
12116
12109
|
dir: props.direction
|
12117
12110
|
},
|
12118
|
-
/* @__PURE__ */
|
12119
|
-
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(
|
12120
12113
|
ScrollArea,
|
12121
12114
|
{
|
12122
12115
|
className: cn(
|
@@ -12130,9 +12123,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
12130
12123
|
};
|
12131
12124
|
|
12132
12125
|
// blocks/misc/EmptyState.tsx
|
12133
|
-
var
|
12126
|
+
var import_react78 = __toESM(require("react"));
|
12134
12127
|
var EmptyState = ({ texts, onActionClick }) => {
|
12135
|
-
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(
|
12136
12129
|
"svg",
|
12137
12130
|
{
|
12138
12131
|
stroke: "currentColor",
|
@@ -12142,30 +12135,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
12142
12135
|
height: "0.35em",
|
12143
12136
|
width: "0.35em"
|
12144
12137
|
},
|
12145
|
-
/* @__PURE__ */
|
12146
|
-
)), /* @__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")));
|
12147
12140
|
};
|
12148
12141
|
|
12149
12142
|
// blocks/misc/Testimonial.tsx
|
12150
|
-
var
|
12143
|
+
var import_react79 = __toESM(require("react"));
|
12151
12144
|
var Testimonial = () => {
|
12152
|
-
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(
|
12153
12146
|
"path",
|
12154
12147
|
{
|
12155
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",
|
12156
12149
|
fill: "#FFFFFF"
|
12157
12150
|
}
|
12158
|
-
), /* @__PURE__ */
|
12151
|
+
), /* @__PURE__ */ import_react79.default.createElement(
|
12159
12152
|
"path",
|
12160
12153
|
{
|
12161
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",
|
12162
12155
|
fill: "#FFFFFF"
|
12163
12156
|
}
|
12164
|
-
)), /* @__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")))));
|
12165
12158
|
};
|
12166
12159
|
|
12167
12160
|
// blocks/misc/LeadGenerator.tsx
|
12168
|
-
var
|
12161
|
+
var import_react80 = __toESM(require("react"));
|
12169
12162
|
var import_react_hook_form8 = require("react-hook-form");
|
12170
12163
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
12171
12164
|
var _a;
|
@@ -12177,14 +12170,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
12177
12170
|
console.log("handleNewsletterSub props was not provided");
|
12178
12171
|
}
|
12179
12172
|
};
|
12180
|
-
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(
|
12181
12174
|
"form",
|
12182
12175
|
{
|
12183
12176
|
noValidate: true,
|
12184
12177
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
12185
12178
|
onSubmit: handleSubmit(onSubmit)
|
12186
12179
|
},
|
12187
|
-
/* @__PURE__ */
|
12180
|
+
/* @__PURE__ */ import_react80.default.createElement(
|
12188
12181
|
import_react_hook_form8.Controller,
|
12189
12182
|
{
|
12190
12183
|
name: "email",
|
@@ -12197,27 +12190,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
12197
12190
|
}
|
12198
12191
|
},
|
12199
12192
|
defaultValue: "",
|
12200
|
-
render: ({ field }) => /* @__PURE__ */
|
12193
|
+
render: ({ field }) => /* @__PURE__ */ import_react80.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
12201
12194
|
}
|
12202
12195
|
),
|
12203
|
-
/* @__PURE__ */
|
12196
|
+
/* @__PURE__ */ import_react80.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
12204
12197
|
)));
|
12205
12198
|
};
|
12206
12199
|
|
12207
12200
|
// blocks/misc/Announcement.tsx
|
12208
|
-
var
|
12201
|
+
var import_react81 = __toESM(require("react"));
|
12209
12202
|
var Announcement = ({
|
12210
12203
|
onActionClick,
|
12211
12204
|
...props
|
12212
12205
|
}) => {
|
12213
|
-
return /* @__PURE__ */
|
12206
|
+
return /* @__PURE__ */ import_react81.default.createElement(Card, null, /* @__PURE__ */ import_react81.default.createElement(
|
12214
12207
|
CardContent,
|
12215
12208
|
{
|
12216
12209
|
headless: true,
|
12217
12210
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
12218
12211
|
},
|
12219
|
-
/* @__PURE__ */
|
12220
|
-
/* @__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(
|
12221
12214
|
Button,
|
12222
12215
|
{
|
12223
12216
|
onClick: () => onActionClick(),
|
@@ -12229,15 +12222,15 @@ var Announcement = ({
|
|
12229
12222
|
};
|
12230
12223
|
|
12231
12224
|
// blocks/misc/NotFound.tsx
|
12232
|
-
var
|
12225
|
+
var import_react82 = __toESM(require("react"));
|
12233
12226
|
var NotFound = ({ texts }) => {
|
12234
|
-
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"))));
|
12235
12228
|
};
|
12236
12229
|
|
12237
12230
|
// blocks/misc/NoPermission.tsx
|
12238
|
-
var
|
12231
|
+
var import_react83 = __toESM(require("react"));
|
12239
12232
|
var NoPermission = ({ texts }) => {
|
12240
|
-
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(
|
12241
12234
|
"svg",
|
12242
12235
|
{
|
12243
12236
|
stroke: "currentColor",
|
@@ -12247,12 +12240,12 @@ var NoPermission = ({ texts }) => {
|
|
12247
12240
|
height: "0.35em",
|
12248
12241
|
width: "0.35em"
|
12249
12242
|
},
|
12250
|
-
/* @__PURE__ */
|
12251
|
-
)), /* @__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"))));
|
12252
12245
|
};
|
12253
12246
|
|
12254
12247
|
// blocks/misc/ContactForm.tsx
|
12255
|
-
var
|
12248
|
+
var import_react84 = __toESM(require("react"));
|
12256
12249
|
var import_react_hook_form9 = require("react-hook-form");
|
12257
12250
|
var import_zod8 = require("@hookform/resolvers/zod");
|
12258
12251
|
var z8 = __toESM(require("zod"));
|
@@ -12325,7 +12318,7 @@ var ContactForm = ({
|
|
12325
12318
|
console.log("Form is submitted but onSubmit prop is missing");
|
12326
12319
|
}
|
12327
12320
|
};
|
12328
|
-
return /* @__PURE__ */
|
12321
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12329
12322
|
Card,
|
12330
12323
|
{
|
12331
12324
|
className: cn(
|
@@ -12334,7 +12327,7 @@ var ContactForm = ({
|
|
12334
12327
|
),
|
12335
12328
|
style: cardless ? { boxShadow: "none" } : void 0
|
12336
12329
|
},
|
12337
|
-
/* @__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(
|
12338
12331
|
"form",
|
12339
12332
|
{
|
12340
12333
|
noValidate: true,
|
@@ -12343,7 +12336,7 @@ var ContactForm = ({
|
|
12343
12336
|
id: formId,
|
12344
12337
|
autoComplete: formAutoComplete
|
12345
12338
|
},
|
12346
|
-
/* @__PURE__ */
|
12339
|
+
/* @__PURE__ */ import_react84.default.createElement(
|
12347
12340
|
"div",
|
12348
12341
|
{
|
12349
12342
|
className: cn(
|
@@ -12354,14 +12347,14 @@ var ContactForm = ({
|
|
12354
12347
|
}
|
12355
12348
|
)
|
12356
12349
|
},
|
12357
|
-
/* @__PURE__ */
|
12350
|
+
/* @__PURE__ */ import_react84.default.createElement(
|
12358
12351
|
import_react_hook_form9.Controller,
|
12359
12352
|
{
|
12360
12353
|
control,
|
12361
12354
|
name: "name",
|
12362
12355
|
render: ({ field }) => {
|
12363
12356
|
var _a2;
|
12364
|
-
return /* @__PURE__ */
|
12357
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12365
12358
|
Input,
|
12366
12359
|
{
|
12367
12360
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -12374,14 +12367,14 @@ var ContactForm = ({
|
|
12374
12367
|
}
|
12375
12368
|
}
|
12376
12369
|
),
|
12377
|
-
/* @__PURE__ */
|
12370
|
+
/* @__PURE__ */ import_react84.default.createElement(
|
12378
12371
|
import_react_hook_form9.Controller,
|
12379
12372
|
{
|
12380
12373
|
control,
|
12381
12374
|
name: "email",
|
12382
12375
|
render: ({ field }) => {
|
12383
12376
|
var _a2;
|
12384
|
-
return /* @__PURE__ */
|
12377
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12385
12378
|
Input,
|
12386
12379
|
{
|
12387
12380
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -12397,7 +12390,7 @@ var ContactForm = ({
|
|
12397
12390
|
),
|
12398
12391
|
customFields && customFields.map((customField) => {
|
12399
12392
|
console.log("custom", customField);
|
12400
|
-
return /* @__PURE__ */
|
12393
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12401
12394
|
import_react_hook_form9.Controller,
|
12402
12395
|
{
|
12403
12396
|
control,
|
@@ -12407,7 +12400,7 @@ var ContactForm = ({
|
|
12407
12400
|
switch (type) {
|
12408
12401
|
case "text":
|
12409
12402
|
case "number":
|
12410
|
-
return /* @__PURE__ */
|
12403
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12411
12404
|
Input,
|
12412
12405
|
{
|
12413
12406
|
id: customField.name,
|
@@ -12418,7 +12411,7 @@ var ContactForm = ({
|
|
12418
12411
|
}
|
12419
12412
|
);
|
12420
12413
|
case "select":
|
12421
|
-
return /* @__PURE__ */
|
12414
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12422
12415
|
Select,
|
12423
12416
|
{
|
12424
12417
|
label,
|
@@ -12428,20 +12421,20 @@ var ContactForm = ({
|
|
12428
12421
|
}
|
12429
12422
|
);
|
12430
12423
|
default:
|
12431
|
-
return /* @__PURE__ */
|
12424
|
+
return /* @__PURE__ */ import_react84.default.createElement("div", null, "Unknown type");
|
12432
12425
|
}
|
12433
12426
|
}
|
12434
12427
|
}
|
12435
12428
|
);
|
12436
12429
|
}),
|
12437
|
-
/* @__PURE__ */
|
12430
|
+
/* @__PURE__ */ import_react84.default.createElement(
|
12438
12431
|
import_react_hook_form9.Controller,
|
12439
12432
|
{
|
12440
12433
|
control,
|
12441
12434
|
name: "message",
|
12442
12435
|
render: ({ field }) => {
|
12443
12436
|
var _a2;
|
12444
|
-
return /* @__PURE__ */
|
12437
|
+
return /* @__PURE__ */ import_react84.default.createElement(
|
12445
12438
|
Textarea,
|
12446
12439
|
{
|
12447
12440
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -12458,19 +12451,19 @@ var ContactForm = ({
|
|
12458
12451
|
}
|
12459
12452
|
}
|
12460
12453
|
),
|
12461
|
-
/* @__PURE__ */
|
12454
|
+
/* @__PURE__ */ import_react84.default.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
|
12462
12455
|
))
|
12463
12456
|
);
|
12464
12457
|
};
|
12465
12458
|
|
12466
12459
|
// blocks/pricing/PricingPlans.tsx
|
12467
|
-
var
|
12460
|
+
var import_react90 = __toESM(require("react"));
|
12468
12461
|
|
12469
12462
|
// blocks/cards/ActionCard.tsx
|
12470
|
-
var
|
12463
|
+
var import_react85 = __toESM(require("react"));
|
12471
12464
|
var ActionCard = (props) => {
|
12472
|
-
const [hovered, setHovered] = (0,
|
12473
|
-
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(
|
12474
12467
|
"div",
|
12475
12468
|
{
|
12476
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",
|
@@ -12480,7 +12473,7 @@ var ActionCard = (props) => {
|
|
12480
12473
|
onMouseEnter: () => setHovered(true),
|
12481
12474
|
onMouseLeave: () => setHovered(false)
|
12482
12475
|
},
|
12483
|
-
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(
|
12484
12477
|
"svg",
|
12485
12478
|
{
|
12486
12479
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
@@ -12492,11 +12485,11 @@ var ActionCard = (props) => {
|
|
12492
12485
|
width: "1em",
|
12493
12486
|
xmlns: "http://www.w3.org/2000/svg"
|
12494
12487
|
},
|
12495
|
-
/* @__PURE__ */
|
12496
|
-
)) : /* @__PURE__ */
|
12497
|
-
/* @__PURE__ */
|
12498
|
-
!props.blank && /* @__PURE__ */
|
12499
|
-
), /* @__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(
|
12500
12493
|
"div",
|
12501
12494
|
{
|
12502
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"}`
|
@@ -12506,15 +12499,15 @@ var ActionCard = (props) => {
|
|
12506
12499
|
};
|
12507
12500
|
|
12508
12501
|
// blocks/cards/AdCard.tsx
|
12509
|
-
var
|
12502
|
+
var import_react86 = __toESM(require("react"));
|
12510
12503
|
var AdCard = ({
|
12511
12504
|
orientation = "vertical",
|
12512
12505
|
...props
|
12513
12506
|
}) => {
|
12514
|
-
const adRef = (0,
|
12515
|
-
const [closed, setClosed] = (0,
|
12507
|
+
const adRef = (0, import_react86.useRef)(null);
|
12508
|
+
const [closed, setClosed] = (0, import_react86.useState)(false);
|
12516
12509
|
let duration = 0;
|
12517
|
-
(0,
|
12510
|
+
(0, import_react86.useEffect)(() => {
|
12518
12511
|
if (duration) {
|
12519
12512
|
const timeoutHide = setTimeout(() => {
|
12520
12513
|
setClosed(true);
|
@@ -12539,21 +12532,21 @@ var AdCard = ({
|
|
12539
12532
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
12540
12533
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
12541
12534
|
};
|
12542
|
-
return /* @__PURE__ */
|
12535
|
+
return /* @__PURE__ */ import_react86.default.createElement("div", { ref: adRef }, /* @__PURE__ */ import_react86.default.createElement(
|
12543
12536
|
"div",
|
12544
12537
|
{
|
12545
12538
|
className: cn(cardStyles[orientation], props.className),
|
12546
12539
|
onClick: props.handleClick
|
12547
12540
|
},
|
12548
|
-
/* @__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(
|
12549
12542
|
"img",
|
12550
12543
|
{
|
12551
12544
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
12552
12545
|
className: imageStyles[orientation]
|
12553
12546
|
}
|
12554
12547
|
)),
|
12555
|
-
/* @__PURE__ */
|
12556
|
-
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(
|
12557
12550
|
"span",
|
12558
12551
|
{
|
12559
12552
|
onClick: (e) => {
|
@@ -12579,7 +12572,7 @@ var AdCard = ({
|
|
12579
12572
|
};
|
12580
12573
|
|
12581
12574
|
// blocks/cards/PricingCard.tsx
|
12582
|
-
var
|
12575
|
+
var import_react87 = __toESM(require("react"));
|
12583
12576
|
var PricingCard = ({
|
12584
12577
|
size = "medium",
|
12585
12578
|
direction = "ltr",
|
@@ -12594,13 +12587,13 @@ var PricingCard = ({
|
|
12594
12587
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
12595
12588
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
12596
12589
|
};
|
12597
|
-
return /* @__PURE__ */
|
12590
|
+
return /* @__PURE__ */ import_react87.default.createElement(import_react87.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react87.default.createElement(
|
12598
12591
|
Skeleton,
|
12599
12592
|
{
|
12600
12593
|
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
12601
12594
|
fade: "bottom"
|
12602
12595
|
}
|
12603
|
-
) : /* @__PURE__ */
|
12596
|
+
) : /* @__PURE__ */ import_react87.default.createElement(
|
12604
12597
|
Card,
|
12605
12598
|
{
|
12606
12599
|
dir: direction,
|
@@ -12611,7 +12604,7 @@ var PricingCard = ({
|
|
12611
12604
|
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
12612
12605
|
)
|
12613
12606
|
},
|
12614
|
-
recommended && /* @__PURE__ */
|
12607
|
+
recommended && /* @__PURE__ */ import_react87.default.createElement(
|
12615
12608
|
"div",
|
12616
12609
|
{
|
12617
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",
|
@@ -12619,7 +12612,7 @@ var PricingCard = ({
|
|
12619
12612
|
},
|
12620
12613
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
12621
12614
|
),
|
12622
|
-
/* @__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(
|
12623
12616
|
"div",
|
12624
12617
|
{
|
12625
12618
|
className: cn(
|
@@ -12627,9 +12620,9 @@ var PricingCard = ({
|
|
12627
12620
|
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
12628
12621
|
)
|
12629
12622
|
},
|
12630
|
-
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) => {
|
12631
12624
|
var _a2;
|
12632
|
-
return /* @__PURE__ */
|
12625
|
+
return /* @__PURE__ */ import_react87.default.createElement(
|
12633
12626
|
"li",
|
12634
12627
|
{
|
12635
12628
|
key: o,
|
@@ -12638,7 +12631,7 @@ var PricingCard = ({
|
|
12638
12631
|
!feature.included && "hawa-line-through"
|
12639
12632
|
)
|
12640
12633
|
},
|
12641
|
-
/* @__PURE__ */
|
12634
|
+
/* @__PURE__ */ import_react87.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ import_react87.default.createElement(
|
12642
12635
|
"svg",
|
12643
12636
|
{
|
12644
12637
|
"aria-label": "Check Icon",
|
@@ -12647,7 +12640,7 @@ var PricingCard = ({
|
|
12647
12640
|
fill: "currentColor",
|
12648
12641
|
viewBox: "0 0 20 20"
|
12649
12642
|
},
|
12650
|
-
/* @__PURE__ */
|
12643
|
+
/* @__PURE__ */ import_react87.default.createElement(
|
12651
12644
|
"path",
|
12652
12645
|
{
|
12653
12646
|
fillRule: "evenodd",
|
@@ -12655,7 +12648,7 @@ var PricingCard = ({
|
|
12655
12648
|
clipRule: "evenodd"
|
12656
12649
|
}
|
12657
12650
|
)
|
12658
|
-
) : /* @__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(
|
12659
12652
|
Chip,
|
12660
12653
|
{
|
12661
12654
|
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
@@ -12663,13 +12656,13 @@ var PricingCard = ({
|
|
12663
12656
|
size: "small"
|
12664
12657
|
}
|
12665
12658
|
))),
|
12666
|
-
feature.hint && /* @__PURE__ */
|
12659
|
+
feature.hint && /* @__PURE__ */ import_react87.default.createElement(
|
12667
12660
|
Tooltip,
|
12668
12661
|
{
|
12669
12662
|
content: feature.hint,
|
12670
12663
|
side: feature.hintSide
|
12671
12664
|
},
|
12672
|
-
/* @__PURE__ */
|
12665
|
+
/* @__PURE__ */ import_react87.default.createElement(
|
12673
12666
|
"svg",
|
12674
12667
|
{
|
12675
12668
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -12681,14 +12674,14 @@ var PricingCard = ({
|
|
12681
12674
|
strokeLinecap: "round",
|
12682
12675
|
strokeLinejoin: "round"
|
12683
12676
|
},
|
12684
|
-
/* @__PURE__ */
|
12685
|
-
/* @__PURE__ */
|
12686
|
-
/* @__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" })
|
12687
12680
|
)
|
12688
12681
|
)
|
12689
12682
|
);
|
12690
12683
|
})),
|
12691
|
-
/* @__PURE__ */
|
12684
|
+
/* @__PURE__ */ import_react87.default.createElement(
|
12692
12685
|
Button,
|
12693
12686
|
{
|
12694
12687
|
onClick: props.onPlanClicked,
|
@@ -12702,7 +12695,7 @@ var PricingCard = ({
|
|
12702
12695
|
};
|
12703
12696
|
|
12704
12697
|
// blocks/cards/ItemCard.tsx
|
12705
|
-
var
|
12698
|
+
var import_react88 = __toESM(require("react"));
|
12706
12699
|
var ItemCard = ({
|
12707
12700
|
actions,
|
12708
12701
|
counts,
|
@@ -12731,12 +12724,12 @@ var ItemCard = ({
|
|
12731
12724
|
)
|
12732
12725
|
};
|
12733
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";
|
12734
|
-
const [openActionHeader, setOpenActionHeader] = (0,
|
12727
|
+
const [openActionHeader, setOpenActionHeader] = (0, import_react88.useState)(false);
|
12735
12728
|
function handleOpenActionHeader(e) {
|
12736
12729
|
e.stopPropagation();
|
12737
12730
|
setOpenActionHeader(!openActionHeader);
|
12738
12731
|
}
|
12739
|
-
(0,
|
12732
|
+
(0, import_react88.useEffect)(() => {
|
12740
12733
|
window.onclick = () => {
|
12741
12734
|
if (openActionHeader) {
|
12742
12735
|
setOpenActionHeader(false);
|
@@ -12744,7 +12737,7 @@ var ItemCard = ({
|
|
12744
12737
|
};
|
12745
12738
|
return () => window.onclick = null;
|
12746
12739
|
}, [openActionHeader]);
|
12747
|
-
return /* @__PURE__ */
|
12740
|
+
return /* @__PURE__ */ import_react88.default.createElement(
|
12748
12741
|
"div",
|
12749
12742
|
{
|
12750
12743
|
className: cn(
|
@@ -12760,7 +12753,7 @@ var ItemCard = ({
|
|
12760
12753
|
}
|
12761
12754
|
}
|
12762
12755
|
},
|
12763
|
-
cardImage && /* @__PURE__ */
|
12756
|
+
cardImage && /* @__PURE__ */ import_react88.default.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ import_react88.default.createElement(
|
12764
12757
|
"img",
|
12765
12758
|
{
|
12766
12759
|
src: cardImage,
|
@@ -12769,7 +12762,7 @@ var ItemCard = ({
|
|
12769
12762
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
12770
12763
|
)
|
12771
12764
|
}
|
12772
|
-
), 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(
|
12773
12766
|
Button,
|
12774
12767
|
{
|
12775
12768
|
variant: "secondary",
|
@@ -12779,19 +12772,19 @@ var ItemCard = ({
|
|
12779
12772
|
clickableImageActionIcon,
|
12780
12773
|
clickableImageActionText || "Click"
|
12781
12774
|
)))),
|
12782
|
-
/* @__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(
|
12783
12776
|
DropdownMenu,
|
12784
12777
|
{
|
12785
12778
|
items: headerActions,
|
12786
|
-
trigger: /* @__PURE__ */
|
12779
|
+
trigger: /* @__PURE__ */ import_react88.default.createElement(
|
12787
12780
|
Button,
|
12788
12781
|
{
|
12789
12782
|
variant: "ghost",
|
12790
12783
|
size: "smallIcon",
|
12791
12784
|
onClick: handleOpenActionHeader
|
12792
12785
|
},
|
12793
|
-
/* @__PURE__ */
|
12794
|
-
/* @__PURE__ */
|
12786
|
+
/* @__PURE__ */ import_react88.default.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
12787
|
+
/* @__PURE__ */ import_react88.default.createElement(
|
12795
12788
|
"svg",
|
12796
12789
|
{
|
12797
12790
|
className: "hawa-h-5 hawa-w-5",
|
@@ -12799,11 +12792,11 @@ var ItemCard = ({
|
|
12799
12792
|
fill: "currentColor",
|
12800
12793
|
viewBox: "0 0 20 20"
|
12801
12794
|
},
|
12802
|
-
/* @__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" })
|
12803
12796
|
)
|
12804
12797
|
)
|
12805
12798
|
}
|
12806
|
-
))), /* @__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(
|
12807
12800
|
"div",
|
12808
12801
|
{
|
12809
12802
|
className: cn(
|
@@ -12813,15 +12806,15 @@ var ItemCard = ({
|
|
12813
12806
|
)
|
12814
12807
|
},
|
12815
12808
|
counts,
|
12816
|
-
/* @__PURE__ */
|
12809
|
+
/* @__PURE__ */ import_react88.default.createElement(StopPropagationWrapper, null, actions)
|
12817
12810
|
) : null)
|
12818
12811
|
);
|
12819
12812
|
};
|
12820
12813
|
|
12821
12814
|
// blocks/cards/LandingCard.tsx
|
12822
|
-
var
|
12815
|
+
var import_react89 = __toESM(require("react"));
|
12823
12816
|
var LandingCard = (props) => {
|
12824
|
-
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)));
|
12825
12818
|
};
|
12826
12819
|
|
12827
12820
|
// blocks/pricing/PricingPlans.tsx
|
@@ -12830,7 +12823,7 @@ var PricingPlans = ({
|
|
12830
12823
|
cardsContainerProps,
|
12831
12824
|
...props
|
12832
12825
|
}) => {
|
12833
|
-
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(
|
12834
12827
|
Radio,
|
12835
12828
|
{
|
12836
12829
|
name: "cycle",
|
@@ -12843,7 +12836,7 @@ var PricingPlans = ({
|
|
12843
12836
|
}
|
12844
12837
|
}
|
12845
12838
|
}
|
12846
|
-
), /* @__PURE__ */
|
12839
|
+
), /* @__PURE__ */ import_react90.default.createElement(
|
12847
12840
|
Radio,
|
12848
12841
|
{
|
12849
12842
|
name: "currency",
|
@@ -12856,7 +12849,7 @@ var PricingPlans = ({
|
|
12856
12849
|
}
|
12857
12850
|
}
|
12858
12851
|
}
|
12859
|
-
)), /* @__PURE__ */
|
12852
|
+
)), /* @__PURE__ */ import_react90.default.createElement(
|
12860
12853
|
"div",
|
12861
12854
|
{
|
12862
12855
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -12864,7 +12857,7 @@ var PricingPlans = ({
|
|
12864
12857
|
},
|
12865
12858
|
props.plans.map((plan, index) => {
|
12866
12859
|
var _a, _b;
|
12867
|
-
return /* @__PURE__ */
|
12860
|
+
return /* @__PURE__ */ import_react90.default.createElement(
|
12868
12861
|
PricingCard,
|
12869
12862
|
{
|
12870
12863
|
key: index,
|
@@ -12895,7 +12888,7 @@ var PricingPlans = ({
|
|
12895
12888
|
};
|
12896
12889
|
|
12897
12890
|
// blocks/pricing/ComparingPlans.tsx
|
12898
|
-
var
|
12891
|
+
var import_react91 = __toESM(require("react"));
|
12899
12892
|
var ComparingPlans = (props) => {
|
12900
12893
|
const uniqueFeatures = Array.from(
|
12901
12894
|
new Set(
|
@@ -12904,7 +12897,7 @@ var ComparingPlans = (props) => {
|
|
12904
12897
|
)
|
12905
12898
|
)
|
12906
12899
|
);
|
12907
|
-
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(
|
12908
12901
|
Radio,
|
12909
12902
|
{
|
12910
12903
|
name: "cycle",
|
@@ -12919,7 +12912,7 @@ var ComparingPlans = (props) => {
|
|
12919
12912
|
}
|
12920
12913
|
}
|
12921
12914
|
}
|
12922
|
-
), /* @__PURE__ */
|
12915
|
+
), /* @__PURE__ */ import_react91.default.createElement(
|
12923
12916
|
Radio,
|
12924
12917
|
{
|
12925
12918
|
name: "currency",
|
@@ -12934,7 +12927,7 @@ var ComparingPlans = (props) => {
|
|
12934
12927
|
}
|
12935
12928
|
}
|
12936
12929
|
}
|
12937
|
-
)), /* @__PURE__ */
|
12930
|
+
)), /* @__PURE__ */ import_react91.default.createElement(
|
12938
12931
|
"div",
|
12939
12932
|
{
|
12940
12933
|
className: cn(
|
@@ -12945,16 +12938,16 @@ var ComparingPlans = (props) => {
|
|
12945
12938
|
top: props.topPosition || 0
|
12946
12939
|
}
|
12947
12940
|
},
|
12948
|
-
/* @__PURE__ */
|
12949
|
-
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(
|
12950
12943
|
"div",
|
12951
12944
|
{
|
12952
12945
|
key: i,
|
12953
12946
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
12954
12947
|
},
|
12955
|
-
/* @__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)))
|
12956
12949
|
))
|
12957
|
-
), /* @__PURE__ */
|
12950
|
+
), /* @__PURE__ */ import_react91.default.createElement(
|
12958
12951
|
ScrollArea,
|
12959
12952
|
{
|
12960
12953
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -12962,7 +12955,7 @@ var ComparingPlans = (props) => {
|
|
12962
12955
|
},
|
12963
12956
|
uniqueFeatures.map((featureText, featureIndex) => {
|
12964
12957
|
var _a, _b, _c, _d;
|
12965
|
-
return /* @__PURE__ */
|
12958
|
+
return /* @__PURE__ */ import_react91.default.createElement(
|
12966
12959
|
"div",
|
12967
12960
|
{
|
12968
12961
|
key: featureIndex,
|
@@ -12971,11 +12964,11 @@ var ComparingPlans = (props) => {
|
|
12971
12964
|
featureIndex === 0 ? "" : "hawa-border-t"
|
12972
12965
|
)
|
12973
12966
|
},
|
12974
|
-
/* @__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(
|
12975
12968
|
(plan) => plan.features.some(
|
12976
12969
|
(feature) => feature.text === featureText && feature.hint
|
12977
12970
|
)
|
12978
|
-
) && /* @__PURE__ */
|
12971
|
+
) && /* @__PURE__ */ import_react91.default.createElement(
|
12979
12972
|
Tooltip,
|
12980
12973
|
{
|
12981
12974
|
side: "right",
|
@@ -12990,7 +12983,7 @@ var ComparingPlans = (props) => {
|
|
12990
12983
|
(feature) => feature.text === featureText
|
12991
12984
|
)) == null ? void 0 : _b.hint
|
12992
12985
|
},
|
12993
|
-
/* @__PURE__ */
|
12986
|
+
/* @__PURE__ */ import_react91.default.createElement(
|
12994
12987
|
"svg",
|
12995
12988
|
{
|
12996
12989
|
stroke: "currentColor",
|
@@ -13000,13 +12993,13 @@ var ComparingPlans = (props) => {
|
|
13000
12993
|
height: "1em",
|
13001
12994
|
width: "1em"
|
13002
12995
|
},
|
13003
|
-
/* @__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" })
|
13004
12997
|
)
|
13005
12998
|
), props.plans.some(
|
13006
12999
|
(plan) => plan.features.some(
|
13007
13000
|
(feature) => feature.text === featureText && feature.soon
|
13008
13001
|
)
|
13009
|
-
) && /* @__PURE__ */
|
13002
|
+
) && /* @__PURE__ */ import_react91.default.createElement(
|
13010
13003
|
Chip,
|
13011
13004
|
{
|
13012
13005
|
label: ((_d = (_c = props.plans.find(
|
@@ -13020,26 +13013,26 @@ var ComparingPlans = (props) => {
|
|
13020
13013
|
const feature = plan.features.find(
|
13021
13014
|
(f) => f.text === featureText
|
13022
13015
|
);
|
13023
|
-
return /* @__PURE__ */
|
13016
|
+
return /* @__PURE__ */ import_react91.default.createElement(
|
13024
13017
|
"div",
|
13025
13018
|
{
|
13026
13019
|
key: planIndex,
|
13027
13020
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
13028
13021
|
},
|
13029
|
-
(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" })
|
13030
13023
|
);
|
13031
13024
|
})
|
13032
13025
|
);
|
13033
13026
|
})
|
13034
|
-
), 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) => {
|
13035
13028
|
var _a;
|
13036
|
-
return /* @__PURE__ */
|
13029
|
+
return /* @__PURE__ */ import_react91.default.createElement(
|
13037
13030
|
"div",
|
13038
13031
|
{
|
13039
13032
|
key: i,
|
13040
13033
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
13041
13034
|
},
|
13042
|
-
/* @__PURE__ */
|
13035
|
+
/* @__PURE__ */ import_react91.default.createElement(
|
13043
13036
|
Button,
|
13044
13037
|
{
|
13045
13038
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -13063,15 +13056,15 @@ var ComparingPlans = (props) => {
|
|
13063
13056
|
};
|
13064
13057
|
|
13065
13058
|
// blocks/pricing/HorizontalPricing.tsx
|
13066
|
-
var
|
13059
|
+
var import_react92 = __toESM(require("react"));
|
13067
13060
|
var HorizontalPricing = (props) => {
|
13068
|
-
const [selectedCard, setSelectedCard] = (0,
|
13061
|
+
const [selectedCard, setSelectedCard] = (0, import_react92.useState)("");
|
13069
13062
|
let data = [
|
13070
13063
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
13071
13064
|
{ title: "business", price: "$99", cycle: "/mo" },
|
13072
13065
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
13073
13066
|
];
|
13074
|
-
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(
|
13075
13068
|
Radio,
|
13076
13069
|
{
|
13077
13070
|
name: "currency",
|
@@ -13079,7 +13072,7 @@ var HorizontalPricing = (props) => {
|
|
13079
13072
|
options: props.currencies,
|
13080
13073
|
defaultValue: props.currentCurrency
|
13081
13074
|
}
|
13082
|
-
), /* @__PURE__ */
|
13075
|
+
), /* @__PURE__ */ import_react92.default.createElement(
|
13083
13076
|
Radio,
|
13084
13077
|
{
|
13085
13078
|
name: "cycle",
|
@@ -13087,7 +13080,7 @@ var HorizontalPricing = (props) => {
|
|
13087
13080
|
options: props.billingCycles,
|
13088
13081
|
defaultValue: props.currentCycle
|
13089
13082
|
}
|
13090
|
-
)), data.map((d, i) => /* @__PURE__ */
|
13083
|
+
)), data.map((d, i) => /* @__PURE__ */ import_react92.default.createElement(
|
13091
13084
|
"label",
|
13092
13085
|
{
|
13093
13086
|
key: i,
|
@@ -13095,7 +13088,7 @@ var HorizontalPricing = (props) => {
|
|
13095
13088
|
className: "",
|
13096
13089
|
onClick: () => setSelectedCard(d.title)
|
13097
13090
|
},
|
13098
|
-
/* @__PURE__ */
|
13091
|
+
/* @__PURE__ */ import_react92.default.createElement(
|
13099
13092
|
"input",
|
13100
13093
|
{
|
13101
13094
|
type: "radio",
|
@@ -13104,7 +13097,7 @@ var HorizontalPricing = (props) => {
|
|
13104
13097
|
className: "hawa-peer hawa-appearance-none"
|
13105
13098
|
}
|
13106
13099
|
),
|
13107
|
-
/* @__PURE__ */
|
13100
|
+
/* @__PURE__ */ import_react92.default.createElement(
|
13108
13101
|
"div",
|
13109
13102
|
{
|
13110
13103
|
className: cn(
|
@@ -13112,18 +13105,18 @@ var HorizontalPricing = (props) => {
|
|
13112
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"
|
13113
13106
|
)
|
13114
13107
|
},
|
13115
|
-
/* @__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(
|
13116
13109
|
CardText,
|
13117
13110
|
{
|
13118
13111
|
title: "Enterprise",
|
13119
13112
|
subtitle: "For startups and new businesses"
|
13120
13113
|
}
|
13121
13114
|
)),
|
13122
|
-
/* @__PURE__ */
|
13115
|
+
/* @__PURE__ */ import_react92.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
13123
13116
|
)
|
13124
13117
|
))));
|
13125
13118
|
};
|
13126
|
-
var CheckIcons = () => /* @__PURE__ */
|
13119
|
+
var CheckIcons = () => /* @__PURE__ */ import_react92.default.createElement(import_react92.default.Fragment, null, /* @__PURE__ */ import_react92.default.createElement(
|
13127
13120
|
"svg",
|
13128
13121
|
{
|
13129
13122
|
fill: "none",
|
@@ -13132,7 +13125,7 @@ var CheckIcons = () => /* @__PURE__ */ import_react91.default.createElement(impo
|
|
13132
13125
|
stroke: "currentColor",
|
13133
13126
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
13134
13127
|
},
|
13135
|
-
/* @__PURE__ */
|
13128
|
+
/* @__PURE__ */ import_react92.default.createElement(
|
13136
13129
|
"path",
|
13137
13130
|
{
|
13138
13131
|
strokeLinecap: "round",
|
@@ -13140,14 +13133,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react91.default.createElement(impo
|
|
13140
13133
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
13141
13134
|
}
|
13142
13135
|
)
|
13143
|
-
), /* @__PURE__ */
|
13136
|
+
), /* @__PURE__ */ import_react92.default.createElement(
|
13144
13137
|
"svg",
|
13145
13138
|
{
|
13146
13139
|
viewBox: "0 0 24 24",
|
13147
13140
|
fill: "currentColor",
|
13148
13141
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
13149
13142
|
},
|
13150
|
-
/* @__PURE__ */
|
13143
|
+
/* @__PURE__ */ import_react92.default.createElement(
|
13151
13144
|
"path",
|
13152
13145
|
{
|
13153
13146
|
fillRule: "evenodd",
|
@@ -13156,14 +13149,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react91.default.createElement(impo
|
|
13156
13149
|
}
|
13157
13150
|
)
|
13158
13151
|
));
|
13159
|
-
var CardText = (props) => /* @__PURE__ */
|
13160
|
-
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));
|
13161
13154
|
|
13162
13155
|
// blocks/Usage.tsx
|
13163
|
-
var
|
13156
|
+
var import_react93 = __toESM(require("react"));
|
13164
13157
|
var Usage = (props) => {
|
13165
13158
|
var _a;
|
13166
|
-
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(
|
13167
13160
|
"svg",
|
13168
13161
|
{
|
13169
13162
|
stroke: "currentColor",
|
@@ -13174,8 +13167,8 @@ var Usage = (props) => {
|
|
13174
13167
|
height: "1em",
|
13175
13168
|
width: "1em"
|
13176
13169
|
},
|
13177
|
-
/* @__PURE__ */
|
13178
|
-
))), /* @__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 }));
|
13179
13172
|
};
|
13180
13173
|
// Annotate the CommonJS export names for ESM import in node:
|
13181
13174
|
0 && (module.exports = {
|
@@ -13315,6 +13308,10 @@ var Usage = (props) => {
|
|
13315
13308
|
PhoneInput,
|
13316
13309
|
PhoneMockup,
|
13317
13310
|
PinInput,
|
13311
|
+
PinInputGroup,
|
13312
|
+
PinInputRoot,
|
13313
|
+
PinInputSeperator,
|
13314
|
+
PinInputSlot,
|
13318
13315
|
Popover,
|
13319
13316
|
PopoverContent,
|
13320
13317
|
PopoverPortal,
|
@@ -13398,3 +13395,53 @@ var Usage = (props) => {
|
|
13398
13395
|
useToast,
|
13399
13396
|
useWindowSize
|
13400
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
|
+
*/
|