@sikka/hawa 0.31.1-next → 0.31.2-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/blocks/auth/index.d.mts +13 -2
- package/dist/blocks/auth/index.d.ts +13 -2
- package/dist/blocks/auth/index.js +61 -56
- package/dist/blocks/auth/index.mjs +68 -63
- package/dist/blocks/index.d.mts +13 -2
- package/dist/blocks/index.d.ts +13 -2
- package/dist/blocks/index.js +61 -56
- package/dist/blocks/index.mjs +86 -81
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +61 -56
- package/dist/index.mjs +86 -81
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -10337,7 +10337,7 @@ var LoginForm = ({
|
|
10337
10337
|
props.cardless && "!hawa-border-none !hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
10338
10338
|
)
|
10339
10339
|
},
|
10340
|
-
/* @__PURE__ */ import_react60.default.createElement(CardContent, { headless: true, noPadding: props.cardless }, props.showError && /* @__PURE__ */ import_react60.default.createElement(
|
10340
|
+
/* @__PURE__ */ import_react60.default.createElement(CardContent, { headless: true, noPadding: props.cardless, className: "hawa-bg-red-400" }, props.showError && /* @__PURE__ */ import_react60.default.createElement(
|
10341
10341
|
Alert,
|
10342
10342
|
{
|
10343
10343
|
direction: props.direction,
|
@@ -10865,7 +10865,7 @@ var NewPasswordForm = ({
|
|
10865
10865
|
isLoading,
|
10866
10866
|
...props
|
10867
10867
|
}) => {
|
10868
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
10868
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
10869
10869
|
const formSchema = z3.object({
|
10870
10870
|
password: z3.string({ required_error: (_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.required }).min(8, { message: (_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.tooShort }),
|
10871
10871
|
confirm_password: z3.string({ required_error: (_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required }).refine((value) => value !== "", {
|
@@ -10878,8 +10878,7 @@ var NewPasswordForm = ({
|
|
10878
10878
|
const { handleSubmit, control, formState } = (0, import_react_hook_form3.useForm)({
|
10879
10879
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
10880
10880
|
});
|
10881
|
-
|
10882
|
-
return /* @__PURE__ */ import_react64.default.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ import_react64.default.createElement(Alert, { text: (_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ import_react64.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react64.default.createElement(
|
10881
|
+
return /* @__PURE__ */ import_react64.default.createElement(Card, { dir: props.direction }, props.showSuccess ? /* @__PURE__ */ import_react64.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react64.default.createElement(
|
10883
10882
|
"form",
|
10884
10883
|
{
|
10885
10884
|
noValidate: true,
|
@@ -10893,65 +10892,63 @@ var NewPasswordForm = ({
|
|
10893
10892
|
}
|
10894
10893
|
})
|
10895
10894
|
},
|
10896
|
-
|
10897
|
-
|
10898
|
-
CardContent,
|
10895
|
+
/* @__PURE__ */ import_react64.default.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ import_react64.default.createElement(
|
10896
|
+
Alert,
|
10899
10897
|
{
|
10900
|
-
|
10901
|
-
|
10902
|
-
|
10903
|
-
|
10904
|
-
|
10905
|
-
|
10906
|
-
|
10907
|
-
|
10908
|
-
|
10909
|
-
|
10910
|
-
|
10911
|
-
|
10912
|
-
|
10913
|
-
|
10914
|
-
|
10915
|
-
|
10916
|
-
|
10917
|
-
|
10918
|
-
|
10919
|
-
|
10920
|
-
|
10921
|
-
|
10922
|
-
|
10898
|
+
direction: props.direction,
|
10899
|
+
title: props.errorTitle,
|
10900
|
+
text: props.errorText,
|
10901
|
+
severity: "error"
|
10902
|
+
}
|
10903
|
+
), /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-mb-4" }, /* @__PURE__ */ import_react64.default.createElement(
|
10904
|
+
import_react_hook_form3.Controller,
|
10905
|
+
{
|
10906
|
+
control,
|
10907
|
+
name: "password",
|
10908
|
+
render: ({ field }) => {
|
10909
|
+
var _a2, _b2, _c2;
|
10910
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
10911
|
+
Input,
|
10912
|
+
{
|
10913
|
+
width: "full",
|
10914
|
+
type: "password",
|
10915
|
+
autoComplete: "new-password",
|
10916
|
+
label: (_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label,
|
10917
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
|
10918
|
+
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
10919
|
+
...field
|
10920
|
+
}
|
10921
|
+
);
|
10923
10922
|
}
|
10924
|
-
|
10925
|
-
|
10926
|
-
|
10927
|
-
|
10928
|
-
|
10929
|
-
|
10930
|
-
|
10931
|
-
|
10932
|
-
|
10933
|
-
|
10934
|
-
|
10935
|
-
|
10936
|
-
|
10937
|
-
|
10938
|
-
|
10939
|
-
|
10940
|
-
|
10941
|
-
|
10942
|
-
|
10943
|
-
|
10944
|
-
}
|
10923
|
+
}
|
10924
|
+
), /* @__PURE__ */ import_react64.default.createElement(
|
10925
|
+
import_react_hook_form3.Controller,
|
10926
|
+
{
|
10927
|
+
control,
|
10928
|
+
name: "confirm_password",
|
10929
|
+
render: ({ field }) => {
|
10930
|
+
var _a2, _b2, _c2;
|
10931
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
10932
|
+
Input,
|
10933
|
+
{
|
10934
|
+
width: "full",
|
10935
|
+
type: "password",
|
10936
|
+
autoComplete: "new-password",
|
10937
|
+
label: (_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label,
|
10938
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder,
|
10939
|
+
helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
|
10940
|
+
...field
|
10941
|
+
}
|
10942
|
+
);
|
10945
10943
|
}
|
10946
|
-
|
10947
|
-
),
|
10948
|
-
/* @__PURE__ */ import_react64.default.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react64.default.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_h = texts == null ? void 0 : texts.dontHaveAccount) != null ? _h : "Don't have an account? ", /* @__PURE__ */ import_react64.default.createElement(
|
10944
|
+
}
|
10945
|
+
)), /* @__PURE__ */ import_react64.default.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react64.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_react64.default.createElement(
|
10949
10946
|
"span",
|
10950
10947
|
{
|
10951
10948
|
className: "clickable-link",
|
10952
10949
|
onClick: props.handleRouteToRegister
|
10953
10950
|
},
|
10954
|
-
(
|
10951
|
+
(_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register"
|
10955
10952
|
)))
|
10956
10953
|
));
|
10957
10954
|
};
|
@@ -10987,7 +10984,15 @@ var ResetPasswordForm = ({
|
|
10987
10984
|
}
|
10988
10985
|
})
|
10989
10986
|
},
|
10990
|
-
/* @__PURE__ */ import_react65.default.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, /* @__PURE__ */ import_react65.default.createElement(
|
10987
|
+
/* @__PURE__ */ import_react65.default.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ import_react65.default.createElement(
|
10988
|
+
Alert,
|
10989
|
+
{
|
10990
|
+
direction: props.direction,
|
10991
|
+
title: props.errorTitle,
|
10992
|
+
text: props.errorText,
|
10993
|
+
severity: "error"
|
10994
|
+
}
|
10995
|
+
), /* @__PURE__ */ import_react65.default.createElement(
|
10991
10996
|
import_react_hook_form4.Controller,
|
10992
10997
|
{
|
10993
10998
|
control,
|
package/dist/index.mjs
CHANGED
@@ -10114,7 +10114,7 @@ var LoginForm = ({
|
|
10114
10114
|
props.cardless && "!hawa-border-none !hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
10115
10115
|
)
|
10116
10116
|
},
|
10117
|
-
/* @__PURE__ */ React82.createElement(CardContent, { headless: true, noPadding: props.cardless }, props.showError && /* @__PURE__ */ React82.createElement(
|
10117
|
+
/* @__PURE__ */ React82.createElement(CardContent, { headless: true, noPadding: props.cardless, className: "hawa-bg-red-400" }, props.showError && /* @__PURE__ */ React82.createElement(
|
10118
10118
|
Alert,
|
10119
10119
|
{
|
10120
10120
|
direction: props.direction,
|
@@ -10633,7 +10633,7 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
10633
10633
|
};
|
10634
10634
|
|
10635
10635
|
// blocks/auth/NewPassword.tsx
|
10636
|
-
import React86
|
10636
|
+
import React86 from "react";
|
10637
10637
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
10638
10638
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
10639
10639
|
import * as z3 from "zod";
|
@@ -10642,7 +10642,7 @@ var NewPasswordForm = ({
|
|
10642
10642
|
isLoading,
|
10643
10643
|
...props
|
10644
10644
|
}) => {
|
10645
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
10645
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
10646
10646
|
const formSchema = z3.object({
|
10647
10647
|
password: z3.string({ required_error: (_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.required }).min(8, { message: (_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.tooShort }),
|
10648
10648
|
confirm_password: z3.string({ required_error: (_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required }).refine((value) => value !== "", {
|
@@ -10655,8 +10655,7 @@ var NewPasswordForm = ({
|
|
10655
10655
|
const { handleSubmit, control, formState } = useForm3({
|
10656
10656
|
resolver: zodResolver3(formSchema)
|
10657
10657
|
});
|
10658
|
-
|
10659
|
-
return /* @__PURE__ */ React86.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ React86.createElement(Alert, { text: (_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ React86.createElement(
|
10658
|
+
return /* @__PURE__ */ React86.createElement(Card, { dir: props.direction }, props.showSuccess ? /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ React86.createElement(
|
10660
10659
|
"form",
|
10661
10660
|
{
|
10662
10661
|
noValidate: true,
|
@@ -10670,65 +10669,63 @@ var NewPasswordForm = ({
|
|
10670
10669
|
}
|
10671
10670
|
})
|
10672
10671
|
},
|
10673
|
-
|
10674
|
-
|
10675
|
-
CardContent,
|
10672
|
+
/* @__PURE__ */ React86.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ React86.createElement(
|
10673
|
+
Alert,
|
10676
10674
|
{
|
10677
|
-
|
10678
|
-
|
10679
|
-
|
10680
|
-
|
10681
|
-
|
10682
|
-
|
10683
|
-
|
10684
|
-
|
10685
|
-
|
10686
|
-
|
10687
|
-
|
10688
|
-
|
10689
|
-
|
10690
|
-
|
10691
|
-
|
10692
|
-
|
10693
|
-
|
10694
|
-
|
10695
|
-
|
10696
|
-
|
10697
|
-
|
10698
|
-
|
10699
|
-
|
10675
|
+
direction: props.direction,
|
10676
|
+
title: props.errorTitle,
|
10677
|
+
text: props.errorText,
|
10678
|
+
severity: "error"
|
10679
|
+
}
|
10680
|
+
), /* @__PURE__ */ React86.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-mb-4" }, /* @__PURE__ */ React86.createElement(
|
10681
|
+
Controller3,
|
10682
|
+
{
|
10683
|
+
control,
|
10684
|
+
name: "password",
|
10685
|
+
render: ({ field }) => {
|
10686
|
+
var _a2, _b2, _c2;
|
10687
|
+
return /* @__PURE__ */ React86.createElement(
|
10688
|
+
Input,
|
10689
|
+
{
|
10690
|
+
width: "full",
|
10691
|
+
type: "password",
|
10692
|
+
autoComplete: "new-password",
|
10693
|
+
label: (_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label,
|
10694
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
|
10695
|
+
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
10696
|
+
...field
|
10697
|
+
}
|
10698
|
+
);
|
10700
10699
|
}
|
10701
|
-
|
10702
|
-
|
10703
|
-
|
10704
|
-
|
10705
|
-
|
10706
|
-
|
10707
|
-
|
10708
|
-
|
10709
|
-
|
10710
|
-
|
10711
|
-
|
10712
|
-
|
10713
|
-
|
10714
|
-
|
10715
|
-
|
10716
|
-
|
10717
|
-
|
10718
|
-
|
10719
|
-
|
10720
|
-
|
10721
|
-
}
|
10700
|
+
}
|
10701
|
+
), /* @__PURE__ */ React86.createElement(
|
10702
|
+
Controller3,
|
10703
|
+
{
|
10704
|
+
control,
|
10705
|
+
name: "confirm_password",
|
10706
|
+
render: ({ field }) => {
|
10707
|
+
var _a2, _b2, _c2;
|
10708
|
+
return /* @__PURE__ */ React86.createElement(
|
10709
|
+
Input,
|
10710
|
+
{
|
10711
|
+
width: "full",
|
10712
|
+
type: "password",
|
10713
|
+
autoComplete: "new-password",
|
10714
|
+
label: (_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label,
|
10715
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder,
|
10716
|
+
helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
|
10717
|
+
...field
|
10718
|
+
}
|
10719
|
+
);
|
10722
10720
|
}
|
10723
|
-
|
10724
|
-
),
|
10725
|
-
/* @__PURE__ */ React86.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React86.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React86.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_h = texts == null ? void 0 : texts.dontHaveAccount) != null ? _h : "Don't have an account? ", /* @__PURE__ */ React86.createElement(
|
10721
|
+
}
|
10722
|
+
)), /* @__PURE__ */ React86.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React86.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__ */ React86.createElement(
|
10726
10723
|
"span",
|
10727
10724
|
{
|
10728
10725
|
className: "clickable-link",
|
10729
10726
|
onClick: props.handleRouteToRegister
|
10730
10727
|
},
|
10731
|
-
(
|
10728
|
+
(_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register"
|
10732
10729
|
)))
|
10733
10730
|
));
|
10734
10731
|
};
|
@@ -10764,7 +10761,15 @@ var ResetPasswordForm = ({
|
|
10764
10761
|
}
|
10765
10762
|
})
|
10766
10763
|
},
|
10767
|
-
/* @__PURE__ */ React87.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, /* @__PURE__ */ React87.createElement(
|
10764
|
+
/* @__PURE__ */ React87.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ React87.createElement(
|
10765
|
+
Alert,
|
10766
|
+
{
|
10767
|
+
direction: props.direction,
|
10768
|
+
title: props.errorTitle,
|
10769
|
+
text: props.errorText,
|
10770
|
+
severity: "error"
|
10771
|
+
}
|
10772
|
+
), /* @__PURE__ */ React87.createElement(
|
10768
10773
|
Controller4,
|
10769
10774
|
{
|
10770
10775
|
control,
|
@@ -10804,7 +10809,7 @@ var ResetPasswordForm = ({
|
|
10804
10809
|
};
|
10805
10810
|
|
10806
10811
|
// blocks/auth/CodeConfirmation.tsx
|
10807
|
-
import React88, { useEffect as useEffect30, useState as
|
10812
|
+
import React88, { useEffect as useEffect30, useState as useState41 } from "react";
|
10808
10813
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
10809
10814
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
10810
10815
|
import * as z5 from "zod";
|
@@ -10816,9 +10821,9 @@ var CodeConfirmation = (props) => {
|
|
10816
10821
|
const { handleSubmit, control, formState, setValue } = useForm5({
|
10817
10822
|
resolver: zodResolver5(formSchema)
|
10818
10823
|
});
|
10819
|
-
const [resendTimer, setResendTimer] =
|
10820
|
-
const [remainingTime, setRemainingTime] =
|
10821
|
-
const [showResendTimer, setShowResendTimer] =
|
10824
|
+
const [resendTimer, setResendTimer] = useState41(null);
|
10825
|
+
const [remainingTime, setRemainingTime] = useState41(0);
|
10826
|
+
const [showResendTimer, setShowResendTimer] = useState41(false);
|
10822
10827
|
const startResendTimer = () => {
|
10823
10828
|
if (resendTimer !== null) {
|
10824
10829
|
clearInterval(resendTimer);
|
@@ -10903,7 +10908,7 @@ var CodeConfirmation = (props) => {
|
|
10903
10908
|
};
|
10904
10909
|
|
10905
10910
|
// blocks/feedback/UserReferralSource.tsx
|
10906
|
-
import React89, { useRef as useRef20, useState as
|
10911
|
+
import React89, { useRef as useRef20, useState as useState42 } from "react";
|
10907
10912
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
10908
10913
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
10909
10914
|
import * as z6 from "zod";
|
@@ -10913,7 +10918,7 @@ var UserReferralSource = ({
|
|
10913
10918
|
...props
|
10914
10919
|
}) => {
|
10915
10920
|
var _a, _b;
|
10916
|
-
const [closed, setClosed] =
|
10921
|
+
const [closed, setClosed] = useState42(false);
|
10917
10922
|
const popUpRef = useRef20(null);
|
10918
10923
|
const formSchema = z6.object({
|
10919
10924
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
@@ -11061,15 +11066,15 @@ var UserReferralSource = ({
|
|
11061
11066
|
};
|
11062
11067
|
|
11063
11068
|
// blocks/feedback/FeedbackRating.tsx
|
11064
|
-
import React90, { useEffect as useEffect31, useRef as useRef21, useState as
|
11069
|
+
import React90, { useEffect as useEffect31, useRef as useRef21, useState as useState43 } from "react";
|
11065
11070
|
var FeedbackRating = ({
|
11066
11071
|
position = "bottom-right",
|
11067
11072
|
...props
|
11068
11073
|
}) => {
|
11069
|
-
const [closed, setClosed] =
|
11070
|
-
const [answered, setAnswered] =
|
11071
|
-
const [clickedOption, setClickedOption] =
|
11072
|
-
const [closingTimer, setClosingTimer] =
|
11074
|
+
const [closed, setClosed] = useState43(false);
|
11075
|
+
const [answered, setAnswered] = useState43(false);
|
11076
|
+
const [clickedOption, setClickedOption] = useState43(null);
|
11077
|
+
const [closingTimer, setClosingTimer] = useState43(5);
|
11073
11078
|
const popUpRef = useRef21(null);
|
11074
11079
|
const boxPosition = {
|
11075
11080
|
"bottom-right": "hawa-right-4",
|
@@ -11175,12 +11180,12 @@ var FeedbackRating = ({
|
|
11175
11180
|
};
|
11176
11181
|
|
11177
11182
|
// blocks/feedback/FeedbackEmoji.tsx
|
11178
|
-
import React91, { useState as
|
11183
|
+
import React91, { useState as useState44 } from "react";
|
11179
11184
|
var FeedbackEmoji = (props) => {
|
11180
|
-
const [selectedEmoji, setSelectedEmoji] =
|
11181
|
-
const [loadingSubmit, setLoadingSubmit] =
|
11182
|
-
const [feedbackText, setFeedbackText] =
|
11183
|
-
const [helperText, setHelperText] =
|
11185
|
+
const [selectedEmoji, setSelectedEmoji] = useState44(null);
|
11186
|
+
const [loadingSubmit, setLoadingSubmit] = useState44(false);
|
11187
|
+
const [feedbackText, setFeedbackText] = useState44("");
|
11188
|
+
const [helperText, setHelperText] = useState44(false);
|
11184
11189
|
let emojis = [
|
11185
11190
|
{ icon: /* @__PURE__ */ React91.createElement(VeryGoodEmoji, null), value: "very-good" },
|
11186
11191
|
{ icon: /* @__PURE__ */ React91.createElement(GoodEmoji, null), value: "good" },
|
@@ -11743,9 +11748,9 @@ var ContactForm = ({
|
|
11743
11748
|
import React106 from "react";
|
11744
11749
|
|
11745
11750
|
// blocks/cards/ActionCard.tsx
|
11746
|
-
import React101, { useState as
|
11751
|
+
import React101, { useState as useState45 } from "react";
|
11747
11752
|
var ActionCard = (props) => {
|
11748
|
-
const [hovered, setHovered] =
|
11753
|
+
const [hovered, setHovered] = useState45(false);
|
11749
11754
|
return /* @__PURE__ */ React101.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React101.createElement(
|
11750
11755
|
"div",
|
11751
11756
|
{
|
@@ -11782,13 +11787,13 @@ var ActionCard = (props) => {
|
|
11782
11787
|
};
|
11783
11788
|
|
11784
11789
|
// blocks/cards/AdCard.tsx
|
11785
|
-
import React102, { useState as
|
11790
|
+
import React102, { useState as useState46, useEffect as useEffect32, useRef as useRef22 } from "react";
|
11786
11791
|
var AdCard = ({
|
11787
11792
|
orientation = "vertical",
|
11788
11793
|
...props
|
11789
11794
|
}) => {
|
11790
11795
|
const adRef = useRef22(null);
|
11791
|
-
const [closed, setClosed] =
|
11796
|
+
const [closed, setClosed] = useState46(false);
|
11792
11797
|
let duration = 0;
|
11793
11798
|
useEffect32(() => {
|
11794
11799
|
if (duration) {
|
@@ -11978,7 +11983,7 @@ var PricingCard = ({
|
|
11978
11983
|
};
|
11979
11984
|
|
11980
11985
|
// blocks/cards/ItemCard.tsx
|
11981
|
-
import React104, { useEffect as useEffect33, useState as
|
11986
|
+
import React104, { useEffect as useEffect33, useState as useState47 } from "react";
|
11982
11987
|
var ItemCard = ({
|
11983
11988
|
actions,
|
11984
11989
|
counts,
|
@@ -12007,7 +12012,7 @@ var ItemCard = ({
|
|
12007
12012
|
)
|
12008
12013
|
};
|
12009
12014
|
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";
|
12010
|
-
const [openActionHeader, setOpenActionHeader] =
|
12015
|
+
const [openActionHeader, setOpenActionHeader] = useState47(false);
|
12011
12016
|
function handleOpenActionHeader(e) {
|
12012
12017
|
e.stopPropagation();
|
12013
12018
|
setOpenActionHeader(!openActionHeader);
|
@@ -12339,9 +12344,9 @@ var ComparingPlans = (props) => {
|
|
12339
12344
|
};
|
12340
12345
|
|
12341
12346
|
// blocks/pricing/HorizontalPricing.tsx
|
12342
|
-
import React108, { useState as
|
12347
|
+
import React108, { useState as useState48 } from "react";
|
12343
12348
|
var HorizontalPricing = (props) => {
|
12344
|
-
const [selectedCard, setSelectedCard] =
|
12349
|
+
const [selectedCard, setSelectedCard] = useState48("");
|
12345
12350
|
let data = [
|
12346
12351
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
12347
12352
|
{ title: "business", price: "$99", cycle: "/mo" },
|