@sikka/hawa 0.46.1-next → 0.46.4-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.js +23 -14
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +1 -1
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.js +23 -14
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/misc/index.js +23 -14
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +1 -1
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/{chunk-QUC5EXTF.mjs → chunk-5CTMGPEF.mjs} +30 -21
- package/dist/{chunk-EHJXQQDP.mjs → chunk-5S5DR7KF.mjs} +1 -1
- package/dist/{chunk-HJVL6X7I.mjs → chunk-6SJUUJOV.mjs} +1 -1
- package/dist/{chunk-7O555VJR.mjs → chunk-6TG2PHZK.mjs} +1 -1
- package/dist/{chunk-U72MOMEK.mjs → chunk-C2UOOH4X.mjs} +1 -1
- package/dist/{chunk-FTETN5UE.mjs → chunk-EOH6A3GR.mjs} +24 -15
- package/dist/{chunk-6UOJKVIA.mjs → chunk-IFWYR5W2.mjs} +1 -1
- package/dist/{chunk-YXUHXKKK.mjs → chunk-JP2N5WKD.mjs} +1 -1
- package/dist/{chunk-R37QEYSB.mjs → chunk-NMW4GM4G.mjs} +1 -1
- package/dist/{chunk-CIMTNOLA.mjs → chunk-WUMDFBEK.mjs} +1 -1
- package/dist/colorPicker/index.js +1 -1
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +1 -1
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.js +23 -14
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +24 -15
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +2 -2
- package/dist/elements/index.d.ts +2 -2
- package/dist/elements/index.js +23 -14
- package/dist/elements/index.mjs +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +23 -14
- package/dist/index.mjs +130 -121
- package/dist/input/index.d.mts +2 -2
- package/dist/input/index.d.ts +2 -2
- package/dist/input/index.js +23 -14
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +24 -15
- package/dist/input/index.mjs.map +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +23 -14
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +34 -25
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +1 -1
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +1 -1
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/simpleTable/index.js +1 -1
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs +1 -1
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.js +1 -1
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs +1 -1
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/stats/index.js +1 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +1 -1
- package/dist/stats/index.mjs.map +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +1 -1
- package/dist/textarea/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -439,7 +439,7 @@ function Skeleton({
|
|
439
439
|
};
|
440
440
|
const styledAs = {
|
441
441
|
div: "",
|
442
|
-
input: "
|
442
|
+
input: "hawa-h-[40px] hawa-w-full"
|
443
443
|
};
|
444
444
|
return /* @__PURE__ */ React4.createElement(
|
445
445
|
"div",
|
@@ -2807,7 +2807,7 @@ var CheckboxElement = React21.forwardRef(({ radius = "inherit", size = "default"
|
|
2807
2807
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
2808
2808
|
|
2809
2809
|
// elements/input/Input.tsx
|
2810
|
-
import React22, { forwardRef as forwardRef13 } from "react";
|
2810
|
+
import React22, { forwardRef as forwardRef13, useState as useState4 } from "react";
|
2811
2811
|
var Input = forwardRef13(
|
2812
2812
|
({
|
2813
2813
|
margin = "none",
|
@@ -2822,6 +2822,7 @@ var Input = forwardRef13(
|
|
2822
2822
|
...props
|
2823
2823
|
}, ref) => {
|
2824
2824
|
var _a;
|
2825
|
+
const [value, setValue] = useState4(props.value || "");
|
2825
2826
|
let marginStyles = {
|
2826
2827
|
none: "hawa-mb-0",
|
2827
2828
|
normal: "hawa-mb-3",
|
@@ -2837,6 +2838,7 @@ var Input = forwardRef13(
|
|
2837
2838
|
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm placeholder:hawa-text-muted-foreground";
|
2838
2839
|
const handleChange = (e) => {
|
2839
2840
|
let newValue = e.target.value;
|
2841
|
+
setValue(newValue);
|
2840
2842
|
if (props.prefixText) {
|
2841
2843
|
if (newValue.length < props.prefixText.length) {
|
2842
2844
|
newValue = props.prefixText;
|
@@ -2848,9 +2850,23 @@ var Input = forwardRef13(
|
|
2848
2850
|
}
|
2849
2851
|
}
|
2850
2852
|
if (props.onChange) {
|
2851
|
-
|
2852
|
-
|
2853
|
+
if (props.type === "number" && props.maxLength) {
|
2854
|
+
let v = newValue.replace(/[^0-9]/g, "").slice(0, props.maxLength);
|
2855
|
+
const newEvent = { ...e, target: { ...e.target, value: v } };
|
2856
|
+
setValue(v);
|
2857
|
+
props.onChange(newEvent);
|
2858
|
+
} else {
|
2859
|
+
const newEvent = { ...e, target: { ...e.target, value: newValue } };
|
2860
|
+
setValue(newValue);
|
2861
|
+
props.onChange(newEvent);
|
2862
|
+
}
|
2863
|
+
}
|
2864
|
+
};
|
2865
|
+
const handleKeyDown = (e) => {
|
2866
|
+
if (props.type === "number" && ["e", "E", "+", "-", "."].includes(e.key)) {
|
2867
|
+
e.preventDefault();
|
2853
2868
|
}
|
2869
|
+
props.onKeyDown && props.onKeyDown(e);
|
2854
2870
|
};
|
2855
2871
|
return /* @__PURE__ */ React22.createElement(
|
2856
2872
|
"div",
|
@@ -2864,16 +2880,7 @@ var Input = forwardRef13(
|
|
2864
2880
|
)
|
2865
2881
|
},
|
2866
2882
|
props.label && /* @__PURE__ */ React22.createElement(Label2, { ...labelProps }, props.label),
|
2867
|
-
/* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center" }, props.outsidePrefix && /* @__PURE__ */ React22.createElement(
|
2868
|
-
"span",
|
2869
|
-
{
|
2870
|
-
className: cn(
|
2871
|
-
"hawa-me-2 hawa-opacity-90",
|
2872
|
-
!forceHideHelperText && "hawa-mb-2"
|
2873
|
-
)
|
2874
|
-
},
|
2875
|
-
props.outsidePrefix
|
2876
|
-
), props.isLoading ? /* @__PURE__ */ React22.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ React22.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : props.isLoadingError ? /* @__PURE__ */ React22.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ React22.createElement(
|
2883
|
+
/* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center" }, props.outsidePrefix && /* @__PURE__ */ React22.createElement("span", { className: cn("hawa-me-2 hawa-opacity-90", !forceHideHelperText && "hawa-mb-2") }, props.outsidePrefix), props.isLoading ? /* @__PURE__ */ React22.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ React22.createElement(Skeleton, { as: "input" })) : props.isLoadingError ? /* @__PURE__ */ React22.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ React22.createElement(
|
2877
2884
|
Skeleton,
|
2878
2885
|
{
|
2879
2886
|
animation: "none",
|
@@ -2920,13 +2927,15 @@ var Input = forwardRef13(
|
|
2920
2927
|
required: true,
|
2921
2928
|
dir: props.dir,
|
2922
2929
|
type: props.type,
|
2923
|
-
value: props.value,
|
2930
|
+
value: props.value || value,
|
2924
2931
|
onChange: handleChange,
|
2932
|
+
onKeyDown: handleKeyDown,
|
2925
2933
|
autoComplete: props.autoComplete,
|
2926
2934
|
defaultValue: props.defaultValue,
|
2927
2935
|
placeholder,
|
2928
2936
|
disabled: props.disabled || preview,
|
2929
2937
|
style: { height: 40 },
|
2938
|
+
maxLength: props.maxLength,
|
2930
2939
|
...inputProps,
|
2931
2940
|
className: cn(
|
2932
2941
|
defaultInputStyle,
|
@@ -3581,10 +3590,10 @@ var DataTable = ({
|
|
3581
3590
|
};
|
3582
3591
|
|
3583
3592
|
// elements/backToTop/BackToTop.tsx
|
3584
|
-
import React25, { useState as
|
3593
|
+
import React25, { useState as useState6, useEffect as useEffect4, useRef as useRef3 } from "react";
|
3585
3594
|
var BackToTop = ({ ...props }) => {
|
3586
|
-
const [visible, setVisible] =
|
3587
|
-
const [rect, _setRect] =
|
3595
|
+
const [visible, setVisible] = useState6(false);
|
3596
|
+
const [rect, _setRect] = useState6(null);
|
3588
3597
|
const self = useRef3(null);
|
3589
3598
|
const _rect = useRef3(rect);
|
3590
3599
|
const setRect = (data) => {
|
@@ -3674,7 +3683,7 @@ var BackToTop = ({ ...props }) => {
|
|
3674
3683
|
};
|
3675
3684
|
|
3676
3685
|
// elements/radio/Radio.tsx
|
3677
|
-
import React27, { useState as
|
3686
|
+
import React27, { useState as useState7, useRef as useRef4, useEffect as useEffect5, forwardRef as forwardRef16 } from "react";
|
3678
3687
|
import { TabsList, TabsTrigger, Tabs } from "@radix-ui/react-tabs";
|
3679
3688
|
|
3680
3689
|
// elements/popover/Popover.tsx
|
@@ -3780,10 +3789,10 @@ var Radio = forwardRef16(
|
|
3780
3789
|
const [parentDirection, setParentDirection] = React27.useState(
|
3781
3790
|
null
|
3782
3791
|
);
|
3783
|
-
const [selectedOption, setSelectedOption] =
|
3792
|
+
const [selectedOption, setSelectedOption] = useState7(
|
3784
3793
|
props.defaultValue || props.value
|
3785
3794
|
);
|
3786
|
-
const [openTooltip, setOpenTooltip] =
|
3795
|
+
const [openTooltip, setOpenTooltip] = useState7(null);
|
3787
3796
|
const parentRef = useRef4(null);
|
3788
3797
|
useEffect5(() => {
|
3789
3798
|
var _a2;
|
@@ -4414,7 +4423,7 @@ var Textarea = React30.forwardRef(
|
|
4414
4423
|
Textarea.displayName = "Textarea";
|
4415
4424
|
|
4416
4425
|
// elements/fileDropzone/FileDropzone.tsx
|
4417
|
-
import React31, { useEffect as useEffect6, useState as
|
4426
|
+
import React31, { useEffect as useEffect6, useState as useState9 } from "react";
|
4418
4427
|
import { useDropzone } from "react-dropzone";
|
4419
4428
|
import clsx2 from "clsx";
|
4420
4429
|
var FileDropzone = ({
|
@@ -4436,8 +4445,8 @@ var FileDropzone = ({
|
|
4436
4445
|
privacyLink
|
4437
4446
|
}) => {
|
4438
4447
|
var _a, _b, _c, _d, _e, _f;
|
4439
|
-
const [cmp, setCmp] =
|
4440
|
-
const [max, setMax] =
|
4448
|
+
const [cmp, setCmp] = useState9(0);
|
4449
|
+
const [max, setMax] = useState9(0);
|
4441
4450
|
const {
|
4442
4451
|
getRootProps,
|
4443
4452
|
getInputProps,
|
@@ -4677,10 +4686,10 @@ import { useEffect as useEffect7, useLayoutEffect } from "react";
|
|
4677
4686
|
var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect7;
|
4678
4687
|
|
4679
4688
|
// hooks/useDiscloser.ts
|
4680
|
-
import { useState as
|
4689
|
+
import { useState as useState10 } from "react";
|
4681
4690
|
|
4682
4691
|
// hooks/useHover.ts
|
4683
|
-
import { useEffect as useEffect8, useRef as useRef6, useState as
|
4692
|
+
import { useEffect as useEffect8, useRef as useRef6, useState as useState11 } from "react";
|
4684
4693
|
|
4685
4694
|
// hooks/useToast.ts
|
4686
4695
|
import * as React35 from "react";
|
@@ -4786,10 +4795,10 @@ function useToast() {
|
|
4786
4795
|
}
|
4787
4796
|
|
4788
4797
|
// hooks/useCarousel.ts
|
4789
|
-
import { useState as
|
4798
|
+
import { useState as useState13, useRef as useRef7 } from "react";
|
4790
4799
|
|
4791
4800
|
// hooks/useDialogCarousel.ts
|
4792
|
-
import { useEffect as useEffect10, useState as
|
4801
|
+
import { useEffect as useEffect10, useState as useState14 } from "react";
|
4793
4802
|
import AutoHeight from "embla-carousel-auto-height";
|
4794
4803
|
import useEmblaCarousel from "embla-carousel-react";
|
4795
4804
|
var useDialogCarousel = (options) => {
|
@@ -4797,7 +4806,7 @@ var useDialogCarousel = (options) => {
|
|
4797
4806
|
{ loop: false, watchDrag: false, startIndex: 0, ...options },
|
4798
4807
|
[AutoHeight({ active: true })]
|
4799
4808
|
);
|
4800
|
-
const [canScrollPrev, setCanScrollPrev] =
|
4809
|
+
const [canScrollPrev, setCanScrollPrev] = useState14(false);
|
4801
4810
|
const checkCanScrollPrev = () => {
|
4802
4811
|
if (emblaApi) {
|
4803
4812
|
setCanScrollPrev(emblaApi.canScrollPrev());
|
@@ -4832,10 +4841,10 @@ var useDialogCarousel = (options) => {
|
|
4832
4841
|
};
|
4833
4842
|
|
4834
4843
|
// hooks/useDialogSteps.ts
|
4835
|
-
import { useState as
|
4844
|
+
import { useState as useState15, useEffect as useEffect11, useRef as useRef8 } from "react";
|
4836
4845
|
var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
|
4837
|
-
const [currentStep, setCurrentStep] =
|
4838
|
-
const [dialogHeight, setDialogHeight] =
|
4846
|
+
const [currentStep, setCurrentStep] = useState15(initialStep);
|
4847
|
+
const [dialogHeight, setDialogHeight] = useState15(null);
|
4839
4848
|
const visibleStepRef = useRef8(null);
|
4840
4849
|
useEffect11(() => {
|
4841
4850
|
if (visibleStepRef.current) {
|
@@ -4868,11 +4877,11 @@ var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
|
|
4868
4877
|
};
|
4869
4878
|
|
4870
4879
|
// hooks/useClipboard.ts
|
4871
|
-
import { useState as
|
4880
|
+
import { useState as useState16 } from "react";
|
4872
4881
|
function useClipboard({ timeout = 2e3 } = {}) {
|
4873
|
-
const [error, setError] =
|
4874
|
-
const [copied, setCopied] =
|
4875
|
-
const [copyTimeout, setCopyTimeout] =
|
4882
|
+
const [error, setError] = useState16(null);
|
4883
|
+
const [copied, setCopied] = useState16(false);
|
4884
|
+
const [copyTimeout, setCopyTimeout] = useState16(null);
|
4876
4885
|
const handleCopyResult = (value) => {
|
4877
4886
|
clearTimeout(copyTimeout);
|
4878
4887
|
setCopyTimeout(setTimeout(() => setCopied(false), timeout));
|
@@ -4894,9 +4903,9 @@ function useClipboard({ timeout = 2e3 } = {}) {
|
|
4894
4903
|
}
|
4895
4904
|
|
4896
4905
|
// hooks/useBreakpoint.ts
|
4897
|
-
import { useState as
|
4906
|
+
import { useState as useState17, useEffect as useEffect12 } from "react";
|
4898
4907
|
var useBreakpoint = () => {
|
4899
|
-
const [breakpoint, setBreakpoint] =
|
4908
|
+
const [breakpoint, setBreakpoint] = useState17(null);
|
4900
4909
|
useEffect12(() => {
|
4901
4910
|
if (typeof window !== "undefined") {
|
4902
4911
|
const resize = () => {
|
@@ -4913,9 +4922,9 @@ var useBreakpoint = () => {
|
|
4913
4922
|
};
|
4914
4923
|
|
4915
4924
|
// hooks/useWindowSize.ts
|
4916
|
-
import { useEffect as useEffect13, useState as
|
4925
|
+
import { useEffect as useEffect13, useState as useState18 } from "react";
|
4917
4926
|
var useWindowSize = () => {
|
4918
|
-
const [windowSize, setWindowSize] =
|
4927
|
+
const [windowSize, setWindowSize] = useState18({
|
4919
4928
|
width: void 0,
|
4920
4929
|
height: void 0
|
4921
4930
|
});
|
@@ -4934,7 +4943,7 @@ var useWindowSize = () => {
|
|
4934
4943
|
};
|
4935
4944
|
|
4936
4945
|
// hooks/useFocusWithin.ts
|
4937
|
-
import { useRef as useRef9, useState as
|
4946
|
+
import { useRef as useRef9, useState as useState19, useEffect as useEffect14 } from "react";
|
4938
4947
|
function containsRelatedTarget(event) {
|
4939
4948
|
if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
|
4940
4949
|
return event.currentTarget.contains(event.relatedTarget);
|
@@ -4946,7 +4955,7 @@ function useFocusWithin({
|
|
4946
4955
|
onFocus
|
4947
4956
|
} = {}) {
|
4948
4957
|
const ref = useRef9(null);
|
4949
|
-
const [focused, _setFocused] =
|
4958
|
+
const [focused, _setFocused] = useState19(false);
|
4950
4959
|
const focusedRef = useRef9(false);
|
4951
4960
|
const setFocused = (value) => {
|
4952
4961
|
_setFocused(value);
|
@@ -4980,7 +4989,7 @@ function useFocusWithin({
|
|
4980
4989
|
}
|
4981
4990
|
|
4982
4991
|
// hooks/useMediaQuery.ts
|
4983
|
-
import { useState as
|
4992
|
+
import { useState as useState20, useEffect as useEffect15, useRef as useRef10 } from "react";
|
4984
4993
|
function attachMediaListener(query, callback) {
|
4985
4994
|
try {
|
4986
4995
|
query.addEventListener("change", callback);
|
@@ -5002,7 +5011,7 @@ function getInitialValue(query, initialValue) {
|
|
5002
5011
|
function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
5003
5012
|
getInitialValueInEffect: true
|
5004
5013
|
}) {
|
5005
|
-
const [matches, setMatches] =
|
5014
|
+
const [matches, setMatches] = useState20(
|
5006
5015
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
5007
5016
|
);
|
5008
5017
|
const queryRef = useRef10();
|
@@ -5021,15 +5030,15 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
5021
5030
|
}
|
5022
5031
|
|
5023
5032
|
// hooks/useScrollPosition.ts
|
5024
|
-
import { useState as
|
5033
|
+
import { useState as useState21, useEffect as useEffect16 } from "react";
|
5025
5034
|
|
5026
5035
|
// hooks/useTable.ts
|
5027
|
-
import { useState as
|
5036
|
+
import { useState as useState22, useEffect as useEffect17 } from "react";
|
5028
5037
|
|
5029
5038
|
// hooks/useTabs.ts
|
5030
|
-
import { useEffect as useEffect18, useState as
|
5039
|
+
import { useEffect as useEffect18, useState as useState23 } from "react";
|
5031
5040
|
function useTabs(initialTab = "") {
|
5032
|
-
const [activeTab, setActiveTab] =
|
5041
|
+
const [activeTab, setActiveTab] = useState23(initialTab);
|
5033
5042
|
useEffect18(() => {
|
5034
5043
|
const handleHashChange = () => {
|
5035
5044
|
const hash = window.location.hash.substring(1);
|
@@ -5052,10 +5061,10 @@ function useTabs(initialTab = "") {
|
|
5052
5061
|
}
|
5053
5062
|
|
5054
5063
|
// hooks/useMeasureDirty.ts
|
5055
|
-
import { useEffect as useEffect19, useRef as useRef12, useState as
|
5064
|
+
import { useEffect as useEffect19, useRef as useRef12, useState as useState24 } from "react";
|
5056
5065
|
var useMeasureDirty = (ref) => {
|
5057
5066
|
const frame = useRef12(0);
|
5058
|
-
const [rect, set] =
|
5067
|
+
const [rect, set] = useState24({
|
5059
5068
|
width: 0,
|
5060
5069
|
height: 0,
|
5061
5070
|
top: 0,
|
@@ -5063,7 +5072,7 @@ var useMeasureDirty = (ref) => {
|
|
5063
5072
|
bottom: 0,
|
5064
5073
|
right: 0
|
5065
5074
|
});
|
5066
|
-
const [observer] =
|
5075
|
+
const [observer] = useState24(
|
5067
5076
|
() => new ResizeObserver((entries) => {
|
5068
5077
|
const entry = entries[0];
|
5069
5078
|
if (entry) {
|
@@ -5213,12 +5222,12 @@ function useWindowEvent(type, listener, options) {
|
|
5213
5222
|
}
|
5214
5223
|
|
5215
5224
|
// hooks/useViewportSize.ts
|
5216
|
-
import { useCallback, useEffect as useEffect23, useState as
|
5225
|
+
import { useCallback, useEffect as useEffect23, useState as useState25 } from "react";
|
5217
5226
|
var eventListerOptions = {
|
5218
5227
|
passive: true
|
5219
5228
|
};
|
5220
5229
|
function useViewportSize() {
|
5221
|
-
const [windowSize, setWindowSize] =
|
5230
|
+
const [windowSize, setWindowSize] = useState25({
|
5222
5231
|
width: 0,
|
5223
5232
|
height: 0
|
5224
5233
|
});
|
@@ -5888,7 +5897,7 @@ var AppStores = (props) => {
|
|
5888
5897
|
};
|
5889
5898
|
|
5890
5899
|
// elements/badge/Badge.tsx
|
5891
|
-
import React48, { useEffect as useEffect26, useState as
|
5900
|
+
import React48, { useEffect as useEffect26, useState as useState28, useRef as useRef16 } from "react";
|
5892
5901
|
var Badge = ({
|
5893
5902
|
anchor,
|
5894
5903
|
position = "right",
|
@@ -5896,7 +5905,7 @@ var Badge = ({
|
|
5896
5905
|
text,
|
5897
5906
|
className
|
5898
5907
|
}) => {
|
5899
|
-
const [badgePosition, setBadgePosition] =
|
5908
|
+
const [badgePosition, setBadgePosition] = useState28(null);
|
5900
5909
|
const indicatorRef = useRef16(null);
|
5901
5910
|
const sizeStyles2 = {
|
5902
5911
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
@@ -5965,7 +5974,7 @@ var BadgedComponent = ({
|
|
5965
5974
|
};
|
5966
5975
|
|
5967
5976
|
// elements/phoneInput/PhoneInput.tsx
|
5968
|
-
import React49, { useState as
|
5977
|
+
import React49, { useState as useState29, useRef as useRef17 } from "react";
|
5969
5978
|
|
5970
5979
|
// countries.ts
|
5971
5980
|
var countries = [
|
@@ -7667,8 +7676,8 @@ var PhoneInput = ({
|
|
7667
7676
|
countryCodes,
|
7668
7677
|
...props
|
7669
7678
|
}) => {
|
7670
|
-
const [phoneNumber, setPhoneNumber] =
|
7671
|
-
const [countryCode, setCountryCode] =
|
7679
|
+
const [phoneNumber, setPhoneNumber] = useState29("");
|
7680
|
+
const [countryCode, setCountryCode] = useState29(props.preferredCountry);
|
7672
7681
|
const inputRef = useRef17(null);
|
7673
7682
|
const handleInputChange = (e) => {
|
7674
7683
|
console.log("test e ", e.target.value);
|
@@ -7876,7 +7885,7 @@ var StopPropagationWrapper = (props) => {
|
|
7876
7885
|
|
7877
7886
|
// elements/colorPicker/ColorPicker.tsx
|
7878
7887
|
import React52, {
|
7879
|
-
useState as
|
7888
|
+
useState as useState30,
|
7880
7889
|
useEffect as useEffect28
|
7881
7890
|
} from "react";
|
7882
7891
|
var ColorPicker = ({
|
@@ -7889,7 +7898,7 @@ var ColorPicker = ({
|
|
7889
7898
|
preview = false,
|
7890
7899
|
...props
|
7891
7900
|
}) => {
|
7892
|
-
const [selectedColor, setSelectedColor] =
|
7901
|
+
const [selectedColor, setSelectedColor] = useState30(props.color);
|
7893
7902
|
useEffect28(() => {
|
7894
7903
|
if (selectedColor && selectedColor[0] !== "#") {
|
7895
7904
|
setSelectedColor(`#${selectedColor}`);
|
@@ -8163,7 +8172,7 @@ var Pagination = ({
|
|
8163
8172
|
};
|
8164
8173
|
|
8165
8174
|
// elements/passwordInput/PasswordInput.tsx
|
8166
|
-
import React58, { useEffect as useEffect29, useState as
|
8175
|
+
import React58, { useEffect as useEffect29, useState as useState31 } from "react";
|
8167
8176
|
|
8168
8177
|
// icons/Emojis.tsx
|
8169
8178
|
import React55 from "react";
|
@@ -8400,15 +8409,15 @@ var PasswordInput = ({
|
|
8400
8409
|
hidePopover,
|
8401
8410
|
...props
|
8402
8411
|
}) => {
|
8403
|
-
const [inputValue, setInputValue] =
|
8404
|
-
const [isInputFocused, setIsInputFocused] =
|
8405
|
-
const [currentStr, setCurrentStr] =
|
8406
|
-
const [passwordVisible, setPasswordVisible] =
|
8407
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] =
|
8408
|
-
const [numberCriteriaMet, setNumberCriteriaMet] =
|
8409
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] =
|
8410
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] =
|
8411
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] =
|
8412
|
+
const [inputValue, setInputValue] = useState31("");
|
8413
|
+
const [isInputFocused, setIsInputFocused] = useState31(false);
|
8414
|
+
const [currentStr, setCurrentStr] = useState31(0);
|
8415
|
+
const [passwordVisible, setPasswordVisible] = useState31(false);
|
8416
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = useState31(false);
|
8417
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = useState31(false);
|
8418
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = useState31(false);
|
8419
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = useState31(false);
|
8420
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = useState31(false);
|
8412
8421
|
useEffect29(() => {
|
8413
8422
|
const calculateStrength = () => {
|
8414
8423
|
let strengthScore = 0;
|
@@ -8605,12 +8614,12 @@ var Separator2 = ({
|
|
8605
8614
|
);
|
8606
8615
|
|
8607
8616
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
8608
|
-
import React62, { useState as
|
8617
|
+
import React62, { useState as useState32, useEffect as useEffect30 } from "react";
|
8609
8618
|
var ScrollIndicator = ({
|
8610
8619
|
anchor,
|
8611
8620
|
inContainer = false
|
8612
8621
|
}) => {
|
8613
|
-
const [scrollPercentage, setScrollPercentage] =
|
8622
|
+
const [scrollPercentage, setScrollPercentage] = useState32(0);
|
8614
8623
|
const onScroll = () => {
|
8615
8624
|
const scrollElement = anchor.current;
|
8616
8625
|
if (scrollElement) {
|
@@ -8645,7 +8654,7 @@ var ScrollIndicator = ({
|
|
8645
8654
|
};
|
8646
8655
|
|
8647
8656
|
// elements/codeBlock/CodeBlock.tsx
|
8648
|
-
import React63, { useState as
|
8657
|
+
import React63, { useState as useState33 } from "react";
|
8649
8658
|
import { Highlight, themes, Prism } from "prism-react-renderer";
|
8650
8659
|
(typeof global !== "undefined" ? global : window).Prism = Prism;
|
8651
8660
|
__require("prismjs/components/prism-bash");
|
@@ -8677,7 +8686,7 @@ var CodeBlock = ({
|
|
8677
8686
|
...props
|
8678
8687
|
}) => {
|
8679
8688
|
const clipboard = useClipboard();
|
8680
|
-
const [selectedTab, setSelectedTab] =
|
8689
|
+
const [selectedTab, setSelectedTab] = useState33(0);
|
8681
8690
|
const theme = themes.oceanicNext;
|
8682
8691
|
let widthStyles = {
|
8683
8692
|
full: "hawa-w-full",
|
@@ -8805,7 +8814,7 @@ var CodeBlock = ({
|
|
8805
8814
|
};
|
8806
8815
|
|
8807
8816
|
// elements/carousel/Carousel.tsx
|
8808
|
-
import React64, { useEffect as useEffect31, useState as
|
8817
|
+
import React64, { useEffect as useEffect31, useState as useState34 } from "react";
|
8809
8818
|
import useEmblaCarousel2 from "embla-carousel-react";
|
8810
8819
|
var Carousel = ({
|
8811
8820
|
items,
|
@@ -8821,7 +8830,7 @@ var Carousel = ({
|
|
8821
8830
|
direction,
|
8822
8831
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
8823
8832
|
});
|
8824
|
-
const [selectedIndex, setSelectedIndex] =
|
8833
|
+
const [selectedIndex, setSelectedIndex] = useState34(0);
|
8825
8834
|
useEffect31(() => {
|
8826
8835
|
function selectHandler() {
|
8827
8836
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
@@ -9135,14 +9144,14 @@ function Toaster(props) {
|
|
9135
9144
|
}
|
9136
9145
|
|
9137
9146
|
// elements/destroyableCard/DestroyableCard.tsx
|
9138
|
-
import React68, { useRef as useRef18, useState as
|
9147
|
+
import React68, { useRef as useRef18, useState as useState35 } from "react";
|
9139
9148
|
var DestroyableCard = ({
|
9140
9149
|
position = "bottom-right",
|
9141
9150
|
fixed,
|
9142
9151
|
direction,
|
9143
9152
|
...props
|
9144
9153
|
}) => {
|
9145
|
-
const [closed, setClosed] =
|
9154
|
+
const [closed, setClosed] = useState35(false);
|
9146
9155
|
const popUpRef = useRef18(null);
|
9147
9156
|
const boxPosition = {
|
9148
9157
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
@@ -9209,7 +9218,7 @@ var DestroyableCard = ({
|
|
9209
9218
|
};
|
9210
9219
|
|
9211
9220
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
9212
|
-
import React69, { useState as
|
9221
|
+
import React69, { useState as useState36 } from "react";
|
9213
9222
|
var InterfaceSettings = ({
|
9214
9223
|
orientation = "horizontal",
|
9215
9224
|
width = "default",
|
@@ -9217,8 +9226,8 @@ var InterfaceSettings = ({
|
|
9217
9226
|
handleLanguage,
|
9218
9227
|
...props
|
9219
9228
|
}) => {
|
9220
|
-
const [color, setColor] =
|
9221
|
-
const [language, setLanguage] =
|
9229
|
+
const [color, setColor] = useState36(props.currentColorMode);
|
9230
|
+
const [language, setLanguage] = useState36(props.currentLanguage);
|
9222
9231
|
let orientationStyle = {
|
9223
9232
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
9224
9233
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
@@ -9582,7 +9591,7 @@ var Copyrights = (props) => {
|
|
9582
9591
|
};
|
9583
9592
|
|
9584
9593
|
// layout/navbar/Navbar.tsx
|
9585
|
-
import React74, { useState as
|
9594
|
+
import React74, { useState as useState37 } from "react";
|
9586
9595
|
|
9587
9596
|
// elements/collapsible/Collapsible.tsx
|
9588
9597
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
@@ -9598,7 +9607,7 @@ var Navbar = ({
|
|
9598
9607
|
...props
|
9599
9608
|
}) => {
|
9600
9609
|
var _a, _b;
|
9601
|
-
const [isOpen, setIsOpen] =
|
9610
|
+
const [isOpen, setIsOpen] = useState37(false);
|
9602
9611
|
return /* @__PURE__ */ React74.createElement("nav", { className: "hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ React74.createElement(
|
9603
9612
|
Collapsible,
|
9604
9613
|
{
|
@@ -9702,7 +9711,7 @@ var Navbar = ({
|
|
9702
9711
|
};
|
9703
9712
|
|
9704
9713
|
// layout/appLayout/AppLayout.tsx
|
9705
|
-
import React75, { useEffect as useEffect32, useState as
|
9714
|
+
import React75, { useEffect as useEffect32, useState as useState38 } from "react";
|
9706
9715
|
import * as Dialog3 from "@radix-ui/react-dialog";
|
9707
9716
|
var LOCAL_STORAGE_KEY2 = "@sikka/hawa/keep-drawer-open";
|
9708
9717
|
var AppLayout = ({
|
@@ -9739,16 +9748,16 @@ var AppLayout = ({
|
|
9739
9748
|
}
|
9740
9749
|
};
|
9741
9750
|
const isRTL = direction === "rtl";
|
9742
|
-
const [openedSidebarItem, setOpenedSidebarItem] =
|
9743
|
-
const [size, setSize] =
|
9751
|
+
const [openedSidebarItem, setOpenedSidebarItem] = useState38("");
|
9752
|
+
const [size, setSize] = useState38(
|
9744
9753
|
typeof window !== "undefined" && window.innerWidth || 1200
|
9745
9754
|
);
|
9746
|
-
const [openSideMenu, setOpenSideMenu] =
|
9755
|
+
const [openSideMenu, setOpenSideMenu] = useState38(() => {
|
9747
9756
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9748
9757
|
return savedState ? JSON.parse(savedState) : false;
|
9749
9758
|
});
|
9750
9759
|
const [container, setContainer] = React75.useState(null);
|
9751
|
-
const [keepDrawerOpen, setKeepDrawerOpen] =
|
9760
|
+
const [keepDrawerOpen, setKeepDrawerOpen] = useState38(() => {
|
9752
9761
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9753
9762
|
return savedState ? JSON.parse(savedState) : false;
|
9754
9763
|
});
|
@@ -10363,9 +10372,9 @@ var MenubarShortcut = ({
|
|
10363
10372
|
MenubarShortcut.displayname = "MenubarShortcut";
|
10364
10373
|
|
10365
10374
|
// layout/appTabs/AppTabs.tsx
|
10366
|
-
import React78, { useState as
|
10375
|
+
import React78, { useState as useState39 } from "react";
|
10367
10376
|
var AppTabs = ({ tabs, className }) => {
|
10368
|
-
const [selectedIndex, setSelectedIndex] =
|
10377
|
+
const [selectedIndex, setSelectedIndex] = useState39(0);
|
10369
10378
|
return /* @__PURE__ */ React78.createElement(
|
10370
10379
|
"div",
|
10371
10380
|
{
|
@@ -10407,7 +10416,7 @@ var AppTabs = ({ tabs, className }) => {
|
|
10407
10416
|
};
|
10408
10417
|
|
10409
10418
|
// layout/docsLayout/DocsLayout.tsx
|
10410
|
-
import React80, { useEffect as useEffect33, useRef as useRef20, useState as
|
10419
|
+
import React80, { useEffect as useEffect33, useRef as useRef20, useState as useState40 } from "react";
|
10411
10420
|
|
10412
10421
|
// layout/docsSidebar/DocsSidebar.tsx
|
10413
10422
|
import React79 from "react";
|
@@ -10503,8 +10512,8 @@ var DocsLayout = ({
|
|
10503
10512
|
if (typeof window == "undefined") {
|
10504
10513
|
size = 1200;
|
10505
10514
|
}
|
10506
|
-
const [currentPage, setCurrentPage] =
|
10507
|
-
const [openSideMenu, setOpenSideMenu] =
|
10515
|
+
const [currentPage, setCurrentPage] = useState40("Introduction");
|
10516
|
+
const [openSideMenu, setOpenSideMenu] = useState40(true);
|
10508
10517
|
useEffect33(() => {
|
10509
10518
|
const handleClickOutside = (event) => {
|
10510
10519
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
@@ -10775,7 +10784,7 @@ var AuthButtons = (props) => {
|
|
10775
10784
|
|
10776
10785
|
// blocks/auth/LoginForm.tsx
|
10777
10786
|
import React82 from "react";
|
10778
|
-
import { useState as
|
10787
|
+
import { useState as useState41 } from "react";
|
10779
10788
|
import { Controller, useForm } from "react-hook-form";
|
10780
10789
|
import { zodResolver } from "@hookform/resolvers/zod";
|
10781
10790
|
import {
|
@@ -10792,7 +10801,7 @@ var LoginForm = ({
|
|
10792
10801
|
...props
|
10793
10802
|
}) => {
|
10794
10803
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
10795
|
-
const [passwordVisible, setPasswordVisible] =
|
10804
|
+
const [passwordVisible, setPasswordVisible] = useState41(false);
|
10796
10805
|
const thirdPartyAuthTexts = {
|
10797
10806
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
10798
10807
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -11116,7 +11125,7 @@ var LoginForm = ({
|
|
11116
11125
|
};
|
11117
11126
|
|
11118
11127
|
// blocks/auth/RegisterForm.tsx
|
11119
|
-
import React83, { useState as
|
11128
|
+
import React83, { useState as useState42 } from "react";
|
11120
11129
|
import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
|
11121
11130
|
import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
|
11122
11131
|
import * as z2 from "zod";
|
@@ -11129,7 +11138,7 @@ var RegisterForm = ({
|
|
11129
11138
|
...props
|
11130
11139
|
}) => {
|
11131
11140
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
11132
|
-
const [passwordVisible, setPasswordVisible] =
|
11141
|
+
const [passwordVisible, setPasswordVisible] = useState42(false);
|
11133
11142
|
const thirdPartyAuthTexts = {
|
11134
11143
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
11135
11144
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -11752,7 +11761,7 @@ var ResetPasswordForm = ({
|
|
11752
11761
|
};
|
11753
11762
|
|
11754
11763
|
// blocks/auth/CodeConfirmation.tsx
|
11755
|
-
import React88, { useEffect as useEffect34, useState as
|
11764
|
+
import React88, { useEffect as useEffect34, useState as useState43 } from "react";
|
11756
11765
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
11757
11766
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
11758
11767
|
import * as z5 from "zod";
|
@@ -11767,9 +11776,9 @@ var CodeConfirmation = ({
|
|
11767
11776
|
const { handleSubmit, control, formState, setValue } = useForm5({
|
11768
11777
|
resolver: zodResolver5(formSchema)
|
11769
11778
|
});
|
11770
|
-
const [resendTimer, setResendTimer] =
|
11771
|
-
const [remainingTime, setRemainingTime] =
|
11772
|
-
const [showResendTimer, setShowResendTimer] =
|
11779
|
+
const [resendTimer, setResendTimer] = useState43(null);
|
11780
|
+
const [remainingTime, setRemainingTime] = useState43(0);
|
11781
|
+
const [showResendTimer, setShowResendTimer] = useState43(false);
|
11773
11782
|
const startResendTimer = () => {
|
11774
11783
|
if (resendTimer !== null) {
|
11775
11784
|
clearInterval(resendTimer);
|
@@ -11867,7 +11876,7 @@ var CodeConfirmation = ({
|
|
11867
11876
|
};
|
11868
11877
|
|
11869
11878
|
// blocks/feedback/UserReferralSource.tsx
|
11870
|
-
import React89, { useRef as useRef21, useState as
|
11879
|
+
import React89, { useRef as useRef21, useState as useState44 } from "react";
|
11871
11880
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
11872
11881
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
11873
11882
|
import * as z6 from "zod";
|
@@ -11877,7 +11886,7 @@ var UserReferralSource = ({
|
|
11877
11886
|
...props
|
11878
11887
|
}) => {
|
11879
11888
|
var _a, _b;
|
11880
|
-
const [closed, setClosed] =
|
11889
|
+
const [closed, setClosed] = useState44(false);
|
11881
11890
|
const popUpRef = useRef21(null);
|
11882
11891
|
const formSchema = z6.object({
|
11883
11892
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
@@ -12025,15 +12034,15 @@ var UserReferralSource = ({
|
|
12025
12034
|
};
|
12026
12035
|
|
12027
12036
|
// blocks/feedback/FeedbackRating.tsx
|
12028
|
-
import React90, { useEffect as useEffect35, useRef as useRef22, useState as
|
12037
|
+
import React90, { useEffect as useEffect35, useRef as useRef22, useState as useState45 } from "react";
|
12029
12038
|
var FeedbackRating = ({
|
12030
12039
|
position = "bottom-right",
|
12031
12040
|
...props
|
12032
12041
|
}) => {
|
12033
|
-
const [closed, setClosed] =
|
12034
|
-
const [answered, setAnswered] =
|
12035
|
-
const [clickedOption, setClickedOption] =
|
12036
|
-
const [closingTimer, setClosingTimer] =
|
12042
|
+
const [closed, setClosed] = useState45(false);
|
12043
|
+
const [answered, setAnswered] = useState45(false);
|
12044
|
+
const [clickedOption, setClickedOption] = useState45(null);
|
12045
|
+
const [closingTimer, setClosingTimer] = useState45(5);
|
12037
12046
|
const popUpRef = useRef22(null);
|
12038
12047
|
const boxPosition = {
|
12039
12048
|
"bottom-right": "hawa-right-4",
|
@@ -12139,12 +12148,12 @@ var FeedbackRating = ({
|
|
12139
12148
|
};
|
12140
12149
|
|
12141
12150
|
// blocks/feedback/FeedbackEmoji.tsx
|
12142
|
-
import React91, { useState as
|
12151
|
+
import React91, { useState as useState46 } from "react";
|
12143
12152
|
var FeedbackEmoji = (props) => {
|
12144
|
-
const [selectedEmoji, setSelectedEmoji] =
|
12145
|
-
const [loadingSubmit, setLoadingSubmit] =
|
12146
|
-
const [feedbackText, setFeedbackText] =
|
12147
|
-
const [helperText, setHelperText] =
|
12153
|
+
const [selectedEmoji, setSelectedEmoji] = useState46(null);
|
12154
|
+
const [loadingSubmit, setLoadingSubmit] = useState46(false);
|
12155
|
+
const [feedbackText, setFeedbackText] = useState46("");
|
12156
|
+
const [helperText, setHelperText] = useState46(false);
|
12148
12157
|
let emojis = [
|
12149
12158
|
{ icon: /* @__PURE__ */ React91.createElement(VeryGoodEmoji, null), value: "very-good" },
|
12150
12159
|
{ icon: /* @__PURE__ */ React91.createElement(GoodEmoji, null), value: "good" },
|
@@ -12729,9 +12738,9 @@ var ContactForm = ({
|
|
12729
12738
|
import React106 from "react";
|
12730
12739
|
|
12731
12740
|
// blocks/cards/ActionCard.tsx
|
12732
|
-
import React101, { useState as
|
12741
|
+
import React101, { useState as useState47 } from "react";
|
12733
12742
|
var ActionCard = (props) => {
|
12734
|
-
const [hovered, setHovered] =
|
12743
|
+
const [hovered, setHovered] = useState47(false);
|
12735
12744
|
return /* @__PURE__ */ React101.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React101.createElement(
|
12736
12745
|
"div",
|
12737
12746
|
{
|
@@ -12768,13 +12777,13 @@ var ActionCard = (props) => {
|
|
12768
12777
|
};
|
12769
12778
|
|
12770
12779
|
// blocks/cards/AdCard.tsx
|
12771
|
-
import React102, { useState as
|
12780
|
+
import React102, { useState as useState48, useEffect as useEffect36, useRef as useRef23 } from "react";
|
12772
12781
|
var AdCard = ({
|
12773
12782
|
orientation = "vertical",
|
12774
12783
|
...props
|
12775
12784
|
}) => {
|
12776
12785
|
const adRef = useRef23(null);
|
12777
|
-
const [closed, setClosed] =
|
12786
|
+
const [closed, setClosed] = useState48(false);
|
12778
12787
|
let duration = 0;
|
12779
12788
|
useEffect36(() => {
|
12780
12789
|
if (duration) {
|
@@ -12964,7 +12973,7 @@ var PricingCard = ({
|
|
12964
12973
|
};
|
12965
12974
|
|
12966
12975
|
// blocks/cards/ItemCard.tsx
|
12967
|
-
import React104, { useEffect as useEffect37, useState as
|
12976
|
+
import React104, { useEffect as useEffect37, useState as useState49 } from "react";
|
12968
12977
|
var ItemCard = ({
|
12969
12978
|
actions,
|
12970
12979
|
counts,
|
@@ -12993,7 +13002,7 @@ var ItemCard = ({
|
|
12993
13002
|
)
|
12994
13003
|
};
|
12995
13004
|
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";
|
12996
|
-
const [openActionHeader, setOpenActionHeader] =
|
13005
|
+
const [openActionHeader, setOpenActionHeader] = useState49(false);
|
12997
13006
|
function handleOpenActionHeader(e) {
|
12998
13007
|
e.stopPropagation();
|
12999
13008
|
setOpenActionHeader(!openActionHeader);
|
@@ -13325,9 +13334,9 @@ var ComparingPlans = (props) => {
|
|
13325
13334
|
};
|
13326
13335
|
|
13327
13336
|
// blocks/pricing/HorizontalPricing.tsx
|
13328
|
-
import React108, { useState as
|
13337
|
+
import React108, { useState as useState50 } from "react";
|
13329
13338
|
var HorizontalPricing = (props) => {
|
13330
|
-
const [selectedCard, setSelectedCard] =
|
13339
|
+
const [selectedCard, setSelectedCard] = useState50("");
|
13331
13340
|
let data = [
|
13332
13341
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
13333
13342
|
{ title: "business", price: "$99", cycle: "/mo" },
|