@sikka/hawa 0.46.0-next → 0.46.3-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 +31 -13
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +6 -0
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.js +31 -13
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/misc/index.js +31 -13
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +6 -0
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/{chunk-6LI35F6L.mjs → chunk-6UOJKVIA.mjs} +6 -0
- package/dist/{chunk-JKZQWCAQ.mjs → chunk-7L5VUKZ7.mjs} +27 -15
- package/dist/{chunk-D3B3MKLS.mjs → chunk-7O555VJR.mjs} +1 -1
- package/dist/{chunk-XC6FSDW7.mjs → chunk-CIMTNOLA.mjs} +1 -1
- package/dist/{chunk-FIUKVRL5.mjs → chunk-EHJXQQDP.mjs} +1 -1
- package/dist/{chunk-3B7UZCET.mjs → chunk-HJVL6X7I.mjs} +6 -0
- package/dist/{chunk-IEB2ANWU.mjs → chunk-QLUJEUIB.mjs} +33 -21
- package/dist/{chunk-YABFWOF3.mjs → chunk-R37QEYSB.mjs} +1 -1
- package/dist/{chunk-FUYMZP4J.mjs → chunk-U72MOMEK.mjs} +1 -1
- package/dist/{chunk-JDCQLGWW.mjs → chunk-YXUHXKKK.mjs} +1 -1
- package/dist/colorPicker/index.js +6 -0
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +6 -0
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.js +7 -0
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +7 -0
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js +1 -0
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +1 -0
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +31 -13
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +32 -14
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +4 -3
- package/dist/elements/index.d.ts +4 -3
- package/dist/elements/index.js +32 -13
- package/dist/elements/index.mjs +4 -3
- package/dist/index.css +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +32 -13
- package/dist/index.mjs +139 -120
- package/dist/input/index.d.mts +2 -2
- package/dist/input/index.d.ts +2 -2
- package/dist/input/index.js +31 -13
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +32 -14
- package/dist/input/index.mjs.map +1 -1
- package/dist/layout/index.js +6 -0
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +31 -13
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +42 -24
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +6 -0
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +6 -0
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/select/index.js +6 -0
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +6 -0
- package/dist/select/index.mjs.map +1 -1
- package/dist/simpleTable/index.js +6 -0
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs +6 -0
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.d.mts +2 -1
- package/dist/skeleton/index.d.ts +2 -1
- package/dist/skeleton/index.js +6 -0
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs +6 -0
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/stats/index.js +6 -0
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +6 -0
- package/dist/stats/index.mjs.map +1 -1
- package/dist/textarea/index.js +6 -0
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +6 -0
- package/dist/textarea/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -423,6 +423,7 @@ function Skeleton({
|
|
423
423
|
content,
|
424
424
|
animation = "pulse",
|
425
425
|
fade,
|
426
|
+
as = "div",
|
426
427
|
...props
|
427
428
|
}) {
|
428
429
|
const animationStyles = {
|
@@ -436,6 +437,10 @@ function Skeleton({
|
|
436
437
|
right: "hawa-mask-fade-right",
|
437
438
|
left: "hawa-mask-fade-left "
|
438
439
|
};
|
440
|
+
const styledAs = {
|
441
|
+
div: "",
|
442
|
+
input: "!h-[38px] !w-full"
|
443
|
+
};
|
439
444
|
return /* @__PURE__ */ React4.createElement(
|
440
445
|
"div",
|
441
446
|
{
|
@@ -443,6 +448,7 @@ function Skeleton({
|
|
443
448
|
animationStyles[animation],
|
444
449
|
content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
445
450
|
fade && fadeStyle[fade],
|
451
|
+
styledAs[as],
|
446
452
|
className
|
447
453
|
),
|
448
454
|
...props
|
@@ -2801,7 +2807,7 @@ var CheckboxElement = React21.forwardRef(({ radius = "inherit", size = "default"
|
|
2801
2807
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
2802
2808
|
|
2803
2809
|
// elements/input/Input.tsx
|
2804
|
-
import React22, { forwardRef as forwardRef13 } from "react";
|
2810
|
+
import React22, { forwardRef as forwardRef13, useState as useState4 } from "react";
|
2805
2811
|
var Input = forwardRef13(
|
2806
2812
|
({
|
2807
2813
|
margin = "none",
|
@@ -2816,6 +2822,7 @@ var Input = forwardRef13(
|
|
2816
2822
|
...props
|
2817
2823
|
}, ref) => {
|
2818
2824
|
var _a;
|
2825
|
+
const [value, setValue] = useState4(props.value || "");
|
2819
2826
|
let marginStyles = {
|
2820
2827
|
none: "hawa-mb-0",
|
2821
2828
|
normal: "hawa-mb-3",
|
@@ -2831,6 +2838,7 @@ var Input = forwardRef13(
|
|
2831
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";
|
2832
2839
|
const handleChange = (e) => {
|
2833
2840
|
let newValue = e.target.value;
|
2841
|
+
setValue(newValue);
|
2834
2842
|
if (props.prefixText) {
|
2835
2843
|
if (newValue.length < props.prefixText.length) {
|
2836
2844
|
newValue = props.prefixText;
|
@@ -2842,9 +2850,26 @@ var Input = forwardRef13(
|
|
2842
2850
|
}
|
2843
2851
|
}
|
2844
2852
|
if (props.onChange) {
|
2845
|
-
|
2846
|
-
|
2853
|
+
if (props.type === "number" && props.maxLength) {
|
2854
|
+
console.log("type is ", props.type);
|
2855
|
+
console.log("max length is ", props.maxLength);
|
2856
|
+
let v = newValue.replace(/[^0-9]/g, "").slice(0, props.maxLength);
|
2857
|
+
const newEvent = { ...e, target: { ...e.target, value: v } };
|
2858
|
+
setValue(v);
|
2859
|
+
props.onChange(newEvent);
|
2860
|
+
} else {
|
2861
|
+
console.log("NETIHERRRER");
|
2862
|
+
const newEvent = { ...e, target: { ...e.target, value: newValue } };
|
2863
|
+
setValue(newValue);
|
2864
|
+
props.onChange(newEvent);
|
2865
|
+
}
|
2866
|
+
}
|
2867
|
+
};
|
2868
|
+
const handleKeyDown = (e) => {
|
2869
|
+
if (props.type === "number" && ["e", "E", "+", "-", "."].includes(e.key)) {
|
2870
|
+
e.preventDefault();
|
2847
2871
|
}
|
2872
|
+
props.onKeyDown && props.onKeyDown(e);
|
2848
2873
|
};
|
2849
2874
|
return /* @__PURE__ */ React22.createElement(
|
2850
2875
|
"div",
|
@@ -2858,16 +2883,7 @@ var Input = forwardRef13(
|
|
2858
2883
|
)
|
2859
2884
|
},
|
2860
2885
|
props.label && /* @__PURE__ */ React22.createElement(Label2, { ...labelProps }, props.label),
|
2861
|
-
/* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center" }, props.outsidePrefix && /* @__PURE__ */ React22.createElement(
|
2862
|
-
"span",
|
2863
|
-
{
|
2864
|
-
className: cn(
|
2865
|
-
"hawa-me-2 hawa-opacity-90",
|
2866
|
-
!forceHideHelperText && "hawa-mb-2"
|
2867
|
-
)
|
2868
|
-
},
|
2869
|
-
props.outsidePrefix
|
2870
|
-
), 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(
|
2886
|
+
/* @__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, { className: "hawa-h-[40px] hawa-w-full" })) : props.isLoadingError ? /* @__PURE__ */ React22.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ React22.createElement(
|
2871
2887
|
Skeleton,
|
2872
2888
|
{
|
2873
2889
|
animation: "none",
|
@@ -2914,13 +2930,15 @@ var Input = forwardRef13(
|
|
2914
2930
|
required: true,
|
2915
2931
|
dir: props.dir,
|
2916
2932
|
type: props.type,
|
2917
|
-
value: props.value,
|
2933
|
+
value: props.value || value,
|
2918
2934
|
onChange: handleChange,
|
2935
|
+
onKeyDown: handleKeyDown,
|
2919
2936
|
autoComplete: props.autoComplete,
|
2920
2937
|
defaultValue: props.defaultValue,
|
2921
2938
|
placeholder,
|
2922
2939
|
disabled: props.disabled || preview,
|
2923
2940
|
style: { height: 40 },
|
2941
|
+
maxLength: props.maxLength,
|
2924
2942
|
...inputProps,
|
2925
2943
|
className: cn(
|
2926
2944
|
defaultInputStyle,
|
@@ -3575,10 +3593,10 @@ var DataTable = ({
|
|
3575
3593
|
};
|
3576
3594
|
|
3577
3595
|
// elements/backToTop/BackToTop.tsx
|
3578
|
-
import React25, { useState as
|
3596
|
+
import React25, { useState as useState6, useEffect as useEffect4, useRef as useRef3 } from "react";
|
3579
3597
|
var BackToTop = ({ ...props }) => {
|
3580
|
-
const [visible, setVisible] =
|
3581
|
-
const [rect, _setRect] =
|
3598
|
+
const [visible, setVisible] = useState6(false);
|
3599
|
+
const [rect, _setRect] = useState6(null);
|
3582
3600
|
const self = useRef3(null);
|
3583
3601
|
const _rect = useRef3(rect);
|
3584
3602
|
const setRect = (data) => {
|
@@ -3668,7 +3686,7 @@ var BackToTop = ({ ...props }) => {
|
|
3668
3686
|
};
|
3669
3687
|
|
3670
3688
|
// elements/radio/Radio.tsx
|
3671
|
-
import React27, { useState as
|
3689
|
+
import React27, { useState as useState7, useRef as useRef4, useEffect as useEffect5, forwardRef as forwardRef16 } from "react";
|
3672
3690
|
import { TabsList, TabsTrigger, Tabs } from "@radix-ui/react-tabs";
|
3673
3691
|
|
3674
3692
|
// elements/popover/Popover.tsx
|
@@ -3774,10 +3792,10 @@ var Radio = forwardRef16(
|
|
3774
3792
|
const [parentDirection, setParentDirection] = React27.useState(
|
3775
3793
|
null
|
3776
3794
|
);
|
3777
|
-
const [selectedOption, setSelectedOption] =
|
3795
|
+
const [selectedOption, setSelectedOption] = useState7(
|
3778
3796
|
props.defaultValue || props.value
|
3779
3797
|
);
|
3780
|
-
const [openTooltip, setOpenTooltip] =
|
3798
|
+
const [openTooltip, setOpenTooltip] = useState7(null);
|
3781
3799
|
const parentRef = useRef4(null);
|
3782
3800
|
useEffect5(() => {
|
3783
3801
|
var _a2;
|
@@ -4113,6 +4131,7 @@ var CommandItem = React28.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
4113
4131
|
{
|
4114
4132
|
ref,
|
4115
4133
|
className: cn(
|
4134
|
+
!props.disabled && "hawa-cursor-pointer",
|
4116
4135
|
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled='true']:hawa-pointer-events-none data-[disabled='true']:hawa-opacity-50",
|
4117
4136
|
className
|
4118
4137
|
),
|
@@ -4407,7 +4426,7 @@ var Textarea = React30.forwardRef(
|
|
4407
4426
|
Textarea.displayName = "Textarea";
|
4408
4427
|
|
4409
4428
|
// elements/fileDropzone/FileDropzone.tsx
|
4410
|
-
import React31, { useEffect as useEffect6, useState as
|
4429
|
+
import React31, { useEffect as useEffect6, useState as useState9 } from "react";
|
4411
4430
|
import { useDropzone } from "react-dropzone";
|
4412
4431
|
import clsx2 from "clsx";
|
4413
4432
|
var FileDropzone = ({
|
@@ -4429,8 +4448,8 @@ var FileDropzone = ({
|
|
4429
4448
|
privacyLink
|
4430
4449
|
}) => {
|
4431
4450
|
var _a, _b, _c, _d, _e, _f;
|
4432
|
-
const [cmp, setCmp] =
|
4433
|
-
const [max, setMax] =
|
4451
|
+
const [cmp, setCmp] = useState9(0);
|
4452
|
+
const [max, setMax] = useState9(0);
|
4434
4453
|
const {
|
4435
4454
|
getRootProps,
|
4436
4455
|
getInputProps,
|
@@ -4670,10 +4689,10 @@ import { useEffect as useEffect7, useLayoutEffect } from "react";
|
|
4670
4689
|
var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect7;
|
4671
4690
|
|
4672
4691
|
// hooks/useDiscloser.ts
|
4673
|
-
import { useState as
|
4692
|
+
import { useState as useState10 } from "react";
|
4674
4693
|
|
4675
4694
|
// hooks/useHover.ts
|
4676
|
-
import { useEffect as useEffect8, useRef as useRef6, useState as
|
4695
|
+
import { useEffect as useEffect8, useRef as useRef6, useState as useState11 } from "react";
|
4677
4696
|
|
4678
4697
|
// hooks/useToast.ts
|
4679
4698
|
import * as React35 from "react";
|
@@ -4779,10 +4798,10 @@ function useToast() {
|
|
4779
4798
|
}
|
4780
4799
|
|
4781
4800
|
// hooks/useCarousel.ts
|
4782
|
-
import { useState as
|
4801
|
+
import { useState as useState13, useRef as useRef7 } from "react";
|
4783
4802
|
|
4784
4803
|
// hooks/useDialogCarousel.ts
|
4785
|
-
import { useEffect as useEffect10, useState as
|
4804
|
+
import { useEffect as useEffect10, useState as useState14 } from "react";
|
4786
4805
|
import AutoHeight from "embla-carousel-auto-height";
|
4787
4806
|
import useEmblaCarousel from "embla-carousel-react";
|
4788
4807
|
var useDialogCarousel = (options) => {
|
@@ -4790,7 +4809,7 @@ var useDialogCarousel = (options) => {
|
|
4790
4809
|
{ loop: false, watchDrag: false, startIndex: 0, ...options },
|
4791
4810
|
[AutoHeight({ active: true })]
|
4792
4811
|
);
|
4793
|
-
const [canScrollPrev, setCanScrollPrev] =
|
4812
|
+
const [canScrollPrev, setCanScrollPrev] = useState14(false);
|
4794
4813
|
const checkCanScrollPrev = () => {
|
4795
4814
|
if (emblaApi) {
|
4796
4815
|
setCanScrollPrev(emblaApi.canScrollPrev());
|
@@ -4825,10 +4844,10 @@ var useDialogCarousel = (options) => {
|
|
4825
4844
|
};
|
4826
4845
|
|
4827
4846
|
// hooks/useDialogSteps.ts
|
4828
|
-
import { useState as
|
4847
|
+
import { useState as useState15, useEffect as useEffect11, useRef as useRef8 } from "react";
|
4829
4848
|
var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
|
4830
|
-
const [currentStep, setCurrentStep] =
|
4831
|
-
const [dialogHeight, setDialogHeight] =
|
4849
|
+
const [currentStep, setCurrentStep] = useState15(initialStep);
|
4850
|
+
const [dialogHeight, setDialogHeight] = useState15(null);
|
4832
4851
|
const visibleStepRef = useRef8(null);
|
4833
4852
|
useEffect11(() => {
|
4834
4853
|
if (visibleStepRef.current) {
|
@@ -4861,11 +4880,11 @@ var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
|
|
4861
4880
|
};
|
4862
4881
|
|
4863
4882
|
// hooks/useClipboard.ts
|
4864
|
-
import { useState as
|
4883
|
+
import { useState as useState16 } from "react";
|
4865
4884
|
function useClipboard({ timeout = 2e3 } = {}) {
|
4866
|
-
const [error, setError] =
|
4867
|
-
const [copied, setCopied] =
|
4868
|
-
const [copyTimeout, setCopyTimeout] =
|
4885
|
+
const [error, setError] = useState16(null);
|
4886
|
+
const [copied, setCopied] = useState16(false);
|
4887
|
+
const [copyTimeout, setCopyTimeout] = useState16(null);
|
4869
4888
|
const handleCopyResult = (value) => {
|
4870
4889
|
clearTimeout(copyTimeout);
|
4871
4890
|
setCopyTimeout(setTimeout(() => setCopied(false), timeout));
|
@@ -4887,9 +4906,9 @@ function useClipboard({ timeout = 2e3 } = {}) {
|
|
4887
4906
|
}
|
4888
4907
|
|
4889
4908
|
// hooks/useBreakpoint.ts
|
4890
|
-
import { useState as
|
4909
|
+
import { useState as useState17, useEffect as useEffect12 } from "react";
|
4891
4910
|
var useBreakpoint = () => {
|
4892
|
-
const [breakpoint, setBreakpoint] =
|
4911
|
+
const [breakpoint, setBreakpoint] = useState17(null);
|
4893
4912
|
useEffect12(() => {
|
4894
4913
|
if (typeof window !== "undefined") {
|
4895
4914
|
const resize = () => {
|
@@ -4906,9 +4925,9 @@ var useBreakpoint = () => {
|
|
4906
4925
|
};
|
4907
4926
|
|
4908
4927
|
// hooks/useWindowSize.ts
|
4909
|
-
import { useEffect as useEffect13, useState as
|
4928
|
+
import { useEffect as useEffect13, useState as useState18 } from "react";
|
4910
4929
|
var useWindowSize = () => {
|
4911
|
-
const [windowSize, setWindowSize] =
|
4930
|
+
const [windowSize, setWindowSize] = useState18({
|
4912
4931
|
width: void 0,
|
4913
4932
|
height: void 0
|
4914
4933
|
});
|
@@ -4927,7 +4946,7 @@ var useWindowSize = () => {
|
|
4927
4946
|
};
|
4928
4947
|
|
4929
4948
|
// hooks/useFocusWithin.ts
|
4930
|
-
import { useRef as useRef9, useState as
|
4949
|
+
import { useRef as useRef9, useState as useState19, useEffect as useEffect14 } from "react";
|
4931
4950
|
function containsRelatedTarget(event) {
|
4932
4951
|
if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
|
4933
4952
|
return event.currentTarget.contains(event.relatedTarget);
|
@@ -4939,7 +4958,7 @@ function useFocusWithin({
|
|
4939
4958
|
onFocus
|
4940
4959
|
} = {}) {
|
4941
4960
|
const ref = useRef9(null);
|
4942
|
-
const [focused, _setFocused] =
|
4961
|
+
const [focused, _setFocused] = useState19(false);
|
4943
4962
|
const focusedRef = useRef9(false);
|
4944
4963
|
const setFocused = (value) => {
|
4945
4964
|
_setFocused(value);
|
@@ -4973,7 +4992,7 @@ function useFocusWithin({
|
|
4973
4992
|
}
|
4974
4993
|
|
4975
4994
|
// hooks/useMediaQuery.ts
|
4976
|
-
import { useState as
|
4995
|
+
import { useState as useState20, useEffect as useEffect15, useRef as useRef10 } from "react";
|
4977
4996
|
function attachMediaListener(query, callback) {
|
4978
4997
|
try {
|
4979
4998
|
query.addEventListener("change", callback);
|
@@ -4995,7 +5014,7 @@ function getInitialValue(query, initialValue) {
|
|
4995
5014
|
function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
4996
5015
|
getInitialValueInEffect: true
|
4997
5016
|
}) {
|
4998
|
-
const [matches, setMatches] =
|
5017
|
+
const [matches, setMatches] = useState20(
|
4999
5018
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
5000
5019
|
);
|
5001
5020
|
const queryRef = useRef10();
|
@@ -5014,15 +5033,15 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
5014
5033
|
}
|
5015
5034
|
|
5016
5035
|
// hooks/useScrollPosition.ts
|
5017
|
-
import { useState as
|
5036
|
+
import { useState as useState21, useEffect as useEffect16 } from "react";
|
5018
5037
|
|
5019
5038
|
// hooks/useTable.ts
|
5020
|
-
import { useState as
|
5039
|
+
import { useState as useState22, useEffect as useEffect17 } from "react";
|
5021
5040
|
|
5022
5041
|
// hooks/useTabs.ts
|
5023
|
-
import { useEffect as useEffect18, useState as
|
5042
|
+
import { useEffect as useEffect18, useState as useState23 } from "react";
|
5024
5043
|
function useTabs(initialTab = "") {
|
5025
|
-
const [activeTab, setActiveTab] =
|
5044
|
+
const [activeTab, setActiveTab] = useState23(initialTab);
|
5026
5045
|
useEffect18(() => {
|
5027
5046
|
const handleHashChange = () => {
|
5028
5047
|
const hash = window.location.hash.substring(1);
|
@@ -5045,10 +5064,10 @@ function useTabs(initialTab = "") {
|
|
5045
5064
|
}
|
5046
5065
|
|
5047
5066
|
// hooks/useMeasureDirty.ts
|
5048
|
-
import { useEffect as useEffect19, useRef as useRef12, useState as
|
5067
|
+
import { useEffect as useEffect19, useRef as useRef12, useState as useState24 } from "react";
|
5049
5068
|
var useMeasureDirty = (ref) => {
|
5050
5069
|
const frame = useRef12(0);
|
5051
|
-
const [rect, set] =
|
5070
|
+
const [rect, set] = useState24({
|
5052
5071
|
width: 0,
|
5053
5072
|
height: 0,
|
5054
5073
|
top: 0,
|
@@ -5056,7 +5075,7 @@ var useMeasureDirty = (ref) => {
|
|
5056
5075
|
bottom: 0,
|
5057
5076
|
right: 0
|
5058
5077
|
});
|
5059
|
-
const [observer] =
|
5078
|
+
const [observer] = useState24(
|
5060
5079
|
() => new ResizeObserver((entries) => {
|
5061
5080
|
const entry = entries[0];
|
5062
5081
|
if (entry) {
|
@@ -5206,12 +5225,12 @@ function useWindowEvent(type, listener, options) {
|
|
5206
5225
|
}
|
5207
5226
|
|
5208
5227
|
// hooks/useViewportSize.ts
|
5209
|
-
import { useCallback, useEffect as useEffect23, useState as
|
5228
|
+
import { useCallback, useEffect as useEffect23, useState as useState25 } from "react";
|
5210
5229
|
var eventListerOptions = {
|
5211
5230
|
passive: true
|
5212
5231
|
};
|
5213
5232
|
function useViewportSize() {
|
5214
|
-
const [windowSize, setWindowSize] =
|
5233
|
+
const [windowSize, setWindowSize] = useState25({
|
5215
5234
|
width: 0,
|
5216
5235
|
height: 0
|
5217
5236
|
});
|
@@ -5881,7 +5900,7 @@ var AppStores = (props) => {
|
|
5881
5900
|
};
|
5882
5901
|
|
5883
5902
|
// elements/badge/Badge.tsx
|
5884
|
-
import React48, { useEffect as useEffect26, useState as
|
5903
|
+
import React48, { useEffect as useEffect26, useState as useState28, useRef as useRef16 } from "react";
|
5885
5904
|
var Badge = ({
|
5886
5905
|
anchor,
|
5887
5906
|
position = "right",
|
@@ -5889,7 +5908,7 @@ var Badge = ({
|
|
5889
5908
|
text,
|
5890
5909
|
className
|
5891
5910
|
}) => {
|
5892
|
-
const [badgePosition, setBadgePosition] =
|
5911
|
+
const [badgePosition, setBadgePosition] = useState28(null);
|
5893
5912
|
const indicatorRef = useRef16(null);
|
5894
5913
|
const sizeStyles2 = {
|
5895
5914
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
@@ -5958,7 +5977,7 @@ var BadgedComponent = ({
|
|
5958
5977
|
};
|
5959
5978
|
|
5960
5979
|
// elements/phoneInput/PhoneInput.tsx
|
5961
|
-
import React49, { useState as
|
5980
|
+
import React49, { useState as useState29, useRef as useRef17 } from "react";
|
5962
5981
|
|
5963
5982
|
// countries.ts
|
5964
5983
|
var countries = [
|
@@ -7660,8 +7679,8 @@ var PhoneInput = ({
|
|
7660
7679
|
countryCodes,
|
7661
7680
|
...props
|
7662
7681
|
}) => {
|
7663
|
-
const [phoneNumber, setPhoneNumber] =
|
7664
|
-
const [countryCode, setCountryCode] =
|
7682
|
+
const [phoneNumber, setPhoneNumber] = useState29("");
|
7683
|
+
const [countryCode, setCountryCode] = useState29(props.preferredCountry);
|
7665
7684
|
const inputRef = useRef17(null);
|
7666
7685
|
const handleInputChange = (e) => {
|
7667
7686
|
console.log("test e ", e.target.value);
|
@@ -7869,7 +7888,7 @@ var StopPropagationWrapper = (props) => {
|
|
7869
7888
|
|
7870
7889
|
// elements/colorPicker/ColorPicker.tsx
|
7871
7890
|
import React52, {
|
7872
|
-
useState as
|
7891
|
+
useState as useState30,
|
7873
7892
|
useEffect as useEffect28
|
7874
7893
|
} from "react";
|
7875
7894
|
var ColorPicker = ({
|
@@ -7882,7 +7901,7 @@ var ColorPicker = ({
|
|
7882
7901
|
preview = false,
|
7883
7902
|
...props
|
7884
7903
|
}) => {
|
7885
|
-
const [selectedColor, setSelectedColor] =
|
7904
|
+
const [selectedColor, setSelectedColor] = useState30(props.color);
|
7886
7905
|
useEffect28(() => {
|
7887
7906
|
if (selectedColor && selectedColor[0] !== "#") {
|
7888
7907
|
setSelectedColor(`#${selectedColor}`);
|
@@ -8156,7 +8175,7 @@ var Pagination = ({
|
|
8156
8175
|
};
|
8157
8176
|
|
8158
8177
|
// elements/passwordInput/PasswordInput.tsx
|
8159
|
-
import React58, { useEffect as useEffect29, useState as
|
8178
|
+
import React58, { useEffect as useEffect29, useState as useState31 } from "react";
|
8160
8179
|
|
8161
8180
|
// icons/Emojis.tsx
|
8162
8181
|
import React55 from "react";
|
@@ -8393,15 +8412,15 @@ var PasswordInput = ({
|
|
8393
8412
|
hidePopover,
|
8394
8413
|
...props
|
8395
8414
|
}) => {
|
8396
|
-
const [inputValue, setInputValue] =
|
8397
|
-
const [isInputFocused, setIsInputFocused] =
|
8398
|
-
const [currentStr, setCurrentStr] =
|
8399
|
-
const [passwordVisible, setPasswordVisible] =
|
8400
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] =
|
8401
|
-
const [numberCriteriaMet, setNumberCriteriaMet] =
|
8402
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] =
|
8403
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] =
|
8404
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] =
|
8415
|
+
const [inputValue, setInputValue] = useState31("");
|
8416
|
+
const [isInputFocused, setIsInputFocused] = useState31(false);
|
8417
|
+
const [currentStr, setCurrentStr] = useState31(0);
|
8418
|
+
const [passwordVisible, setPasswordVisible] = useState31(false);
|
8419
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = useState31(false);
|
8420
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = useState31(false);
|
8421
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = useState31(false);
|
8422
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = useState31(false);
|
8423
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = useState31(false);
|
8405
8424
|
useEffect29(() => {
|
8406
8425
|
const calculateStrength = () => {
|
8407
8426
|
let strengthScore = 0;
|
@@ -8598,12 +8617,12 @@ var Separator2 = ({
|
|
8598
8617
|
);
|
8599
8618
|
|
8600
8619
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
8601
|
-
import React62, { useState as
|
8620
|
+
import React62, { useState as useState32, useEffect as useEffect30 } from "react";
|
8602
8621
|
var ScrollIndicator = ({
|
8603
8622
|
anchor,
|
8604
8623
|
inContainer = false
|
8605
8624
|
}) => {
|
8606
|
-
const [scrollPercentage, setScrollPercentage] =
|
8625
|
+
const [scrollPercentage, setScrollPercentage] = useState32(0);
|
8607
8626
|
const onScroll = () => {
|
8608
8627
|
const scrollElement = anchor.current;
|
8609
8628
|
if (scrollElement) {
|
@@ -8638,7 +8657,7 @@ var ScrollIndicator = ({
|
|
8638
8657
|
};
|
8639
8658
|
|
8640
8659
|
// elements/codeBlock/CodeBlock.tsx
|
8641
|
-
import React63, { useState as
|
8660
|
+
import React63, { useState as useState33 } from "react";
|
8642
8661
|
import { Highlight, themes, Prism } from "prism-react-renderer";
|
8643
8662
|
(typeof global !== "undefined" ? global : window).Prism = Prism;
|
8644
8663
|
__require("prismjs/components/prism-bash");
|
@@ -8670,7 +8689,7 @@ var CodeBlock = ({
|
|
8670
8689
|
...props
|
8671
8690
|
}) => {
|
8672
8691
|
const clipboard = useClipboard();
|
8673
|
-
const [selectedTab, setSelectedTab] =
|
8692
|
+
const [selectedTab, setSelectedTab] = useState33(0);
|
8674
8693
|
const theme = themes.oceanicNext;
|
8675
8694
|
let widthStyles = {
|
8676
8695
|
full: "hawa-w-full",
|
@@ -8798,7 +8817,7 @@ var CodeBlock = ({
|
|
8798
8817
|
};
|
8799
8818
|
|
8800
8819
|
// elements/carousel/Carousel.tsx
|
8801
|
-
import React64, { useEffect as useEffect31, useState as
|
8820
|
+
import React64, { useEffect as useEffect31, useState as useState34 } from "react";
|
8802
8821
|
import useEmblaCarousel2 from "embla-carousel-react";
|
8803
8822
|
var Carousel = ({
|
8804
8823
|
items,
|
@@ -8814,7 +8833,7 @@ var Carousel = ({
|
|
8814
8833
|
direction,
|
8815
8834
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
8816
8835
|
});
|
8817
|
-
const [selectedIndex, setSelectedIndex] =
|
8836
|
+
const [selectedIndex, setSelectedIndex] = useState34(0);
|
8818
8837
|
useEffect31(() => {
|
8819
8838
|
function selectHandler() {
|
8820
8839
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
@@ -9128,14 +9147,14 @@ function Toaster(props) {
|
|
9128
9147
|
}
|
9129
9148
|
|
9130
9149
|
// elements/destroyableCard/DestroyableCard.tsx
|
9131
|
-
import React68, { useRef as useRef18, useState as
|
9150
|
+
import React68, { useRef as useRef18, useState as useState35 } from "react";
|
9132
9151
|
var DestroyableCard = ({
|
9133
9152
|
position = "bottom-right",
|
9134
9153
|
fixed,
|
9135
9154
|
direction,
|
9136
9155
|
...props
|
9137
9156
|
}) => {
|
9138
|
-
const [closed, setClosed] =
|
9157
|
+
const [closed, setClosed] = useState35(false);
|
9139
9158
|
const popUpRef = useRef18(null);
|
9140
9159
|
const boxPosition = {
|
9141
9160
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
@@ -9202,7 +9221,7 @@ var DestroyableCard = ({
|
|
9202
9221
|
};
|
9203
9222
|
|
9204
9223
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
9205
|
-
import React69, { useState as
|
9224
|
+
import React69, { useState as useState36 } from "react";
|
9206
9225
|
var InterfaceSettings = ({
|
9207
9226
|
orientation = "horizontal",
|
9208
9227
|
width = "default",
|
@@ -9210,8 +9229,8 @@ var InterfaceSettings = ({
|
|
9210
9229
|
handleLanguage,
|
9211
9230
|
...props
|
9212
9231
|
}) => {
|
9213
|
-
const [color, setColor] =
|
9214
|
-
const [language, setLanguage] =
|
9232
|
+
const [color, setColor] = useState36(props.currentColorMode);
|
9233
|
+
const [language, setLanguage] = useState36(props.currentLanguage);
|
9215
9234
|
let orientationStyle = {
|
9216
9235
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
9217
9236
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
@@ -9575,7 +9594,7 @@ var Copyrights = (props) => {
|
|
9575
9594
|
};
|
9576
9595
|
|
9577
9596
|
// layout/navbar/Navbar.tsx
|
9578
|
-
import React74, { useState as
|
9597
|
+
import React74, { useState as useState37 } from "react";
|
9579
9598
|
|
9580
9599
|
// elements/collapsible/Collapsible.tsx
|
9581
9600
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
@@ -9591,7 +9610,7 @@ var Navbar = ({
|
|
9591
9610
|
...props
|
9592
9611
|
}) => {
|
9593
9612
|
var _a, _b;
|
9594
|
-
const [isOpen, setIsOpen] =
|
9613
|
+
const [isOpen, setIsOpen] = useState37(false);
|
9595
9614
|
return /* @__PURE__ */ React74.createElement("nav", { className: "hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ React74.createElement(
|
9596
9615
|
Collapsible,
|
9597
9616
|
{
|
@@ -9695,7 +9714,7 @@ var Navbar = ({
|
|
9695
9714
|
};
|
9696
9715
|
|
9697
9716
|
// layout/appLayout/AppLayout.tsx
|
9698
|
-
import React75, { useEffect as useEffect32, useState as
|
9717
|
+
import React75, { useEffect as useEffect32, useState as useState38 } from "react";
|
9699
9718
|
import * as Dialog3 from "@radix-ui/react-dialog";
|
9700
9719
|
var LOCAL_STORAGE_KEY2 = "@sikka/hawa/keep-drawer-open";
|
9701
9720
|
var AppLayout = ({
|
@@ -9732,16 +9751,16 @@ var AppLayout = ({
|
|
9732
9751
|
}
|
9733
9752
|
};
|
9734
9753
|
const isRTL = direction === "rtl";
|
9735
|
-
const [openedSidebarItem, setOpenedSidebarItem] =
|
9736
|
-
const [size, setSize] =
|
9754
|
+
const [openedSidebarItem, setOpenedSidebarItem] = useState38("");
|
9755
|
+
const [size, setSize] = useState38(
|
9737
9756
|
typeof window !== "undefined" && window.innerWidth || 1200
|
9738
9757
|
);
|
9739
|
-
const [openSideMenu, setOpenSideMenu] =
|
9758
|
+
const [openSideMenu, setOpenSideMenu] = useState38(() => {
|
9740
9759
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9741
9760
|
return savedState ? JSON.parse(savedState) : false;
|
9742
9761
|
});
|
9743
9762
|
const [container, setContainer] = React75.useState(null);
|
9744
|
-
const [keepDrawerOpen, setKeepDrawerOpen] =
|
9763
|
+
const [keepDrawerOpen, setKeepDrawerOpen] = useState38(() => {
|
9745
9764
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9746
9765
|
return savedState ? JSON.parse(savedState) : false;
|
9747
9766
|
});
|
@@ -10356,9 +10375,9 @@ var MenubarShortcut = ({
|
|
10356
10375
|
MenubarShortcut.displayname = "MenubarShortcut";
|
10357
10376
|
|
10358
10377
|
// layout/appTabs/AppTabs.tsx
|
10359
|
-
import React78, { useState as
|
10378
|
+
import React78, { useState as useState39 } from "react";
|
10360
10379
|
var AppTabs = ({ tabs, className }) => {
|
10361
|
-
const [selectedIndex, setSelectedIndex] =
|
10380
|
+
const [selectedIndex, setSelectedIndex] = useState39(0);
|
10362
10381
|
return /* @__PURE__ */ React78.createElement(
|
10363
10382
|
"div",
|
10364
10383
|
{
|
@@ -10400,7 +10419,7 @@ var AppTabs = ({ tabs, className }) => {
|
|
10400
10419
|
};
|
10401
10420
|
|
10402
10421
|
// layout/docsLayout/DocsLayout.tsx
|
10403
|
-
import React80, { useEffect as useEffect33, useRef as useRef20, useState as
|
10422
|
+
import React80, { useEffect as useEffect33, useRef as useRef20, useState as useState40 } from "react";
|
10404
10423
|
|
10405
10424
|
// layout/docsSidebar/DocsSidebar.tsx
|
10406
10425
|
import React79 from "react";
|
@@ -10496,8 +10515,8 @@ var DocsLayout = ({
|
|
10496
10515
|
if (typeof window == "undefined") {
|
10497
10516
|
size = 1200;
|
10498
10517
|
}
|
10499
|
-
const [currentPage, setCurrentPage] =
|
10500
|
-
const [openSideMenu, setOpenSideMenu] =
|
10518
|
+
const [currentPage, setCurrentPage] = useState40("Introduction");
|
10519
|
+
const [openSideMenu, setOpenSideMenu] = useState40(true);
|
10501
10520
|
useEffect33(() => {
|
10502
10521
|
const handleClickOutside = (event) => {
|
10503
10522
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
@@ -10768,7 +10787,7 @@ var AuthButtons = (props) => {
|
|
10768
10787
|
|
10769
10788
|
// blocks/auth/LoginForm.tsx
|
10770
10789
|
import React82 from "react";
|
10771
|
-
import { useState as
|
10790
|
+
import { useState as useState41 } from "react";
|
10772
10791
|
import { Controller, useForm } from "react-hook-form";
|
10773
10792
|
import { zodResolver } from "@hookform/resolvers/zod";
|
10774
10793
|
import {
|
@@ -10785,7 +10804,7 @@ var LoginForm = ({
|
|
10785
10804
|
...props
|
10786
10805
|
}) => {
|
10787
10806
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
10788
|
-
const [passwordVisible, setPasswordVisible] =
|
10807
|
+
const [passwordVisible, setPasswordVisible] = useState41(false);
|
10789
10808
|
const thirdPartyAuthTexts = {
|
10790
10809
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
10791
10810
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -11109,7 +11128,7 @@ var LoginForm = ({
|
|
11109
11128
|
};
|
11110
11129
|
|
11111
11130
|
// blocks/auth/RegisterForm.tsx
|
11112
|
-
import React83, { useState as
|
11131
|
+
import React83, { useState as useState42 } from "react";
|
11113
11132
|
import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
|
11114
11133
|
import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
|
11115
11134
|
import * as z2 from "zod";
|
@@ -11122,7 +11141,7 @@ var RegisterForm = ({
|
|
11122
11141
|
...props
|
11123
11142
|
}) => {
|
11124
11143
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
11125
|
-
const [passwordVisible, setPasswordVisible] =
|
11144
|
+
const [passwordVisible, setPasswordVisible] = useState42(false);
|
11126
11145
|
const thirdPartyAuthTexts = {
|
11127
11146
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
11128
11147
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -11745,7 +11764,7 @@ var ResetPasswordForm = ({
|
|
11745
11764
|
};
|
11746
11765
|
|
11747
11766
|
// blocks/auth/CodeConfirmation.tsx
|
11748
|
-
import React88, { useEffect as useEffect34, useState as
|
11767
|
+
import React88, { useEffect as useEffect34, useState as useState43 } from "react";
|
11749
11768
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
11750
11769
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
11751
11770
|
import * as z5 from "zod";
|
@@ -11760,9 +11779,9 @@ var CodeConfirmation = ({
|
|
11760
11779
|
const { handleSubmit, control, formState, setValue } = useForm5({
|
11761
11780
|
resolver: zodResolver5(formSchema)
|
11762
11781
|
});
|
11763
|
-
const [resendTimer, setResendTimer] =
|
11764
|
-
const [remainingTime, setRemainingTime] =
|
11765
|
-
const [showResendTimer, setShowResendTimer] =
|
11782
|
+
const [resendTimer, setResendTimer] = useState43(null);
|
11783
|
+
const [remainingTime, setRemainingTime] = useState43(0);
|
11784
|
+
const [showResendTimer, setShowResendTimer] = useState43(false);
|
11766
11785
|
const startResendTimer = () => {
|
11767
11786
|
if (resendTimer !== null) {
|
11768
11787
|
clearInterval(resendTimer);
|
@@ -11860,7 +11879,7 @@ var CodeConfirmation = ({
|
|
11860
11879
|
};
|
11861
11880
|
|
11862
11881
|
// blocks/feedback/UserReferralSource.tsx
|
11863
|
-
import React89, { useRef as useRef21, useState as
|
11882
|
+
import React89, { useRef as useRef21, useState as useState44 } from "react";
|
11864
11883
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
11865
11884
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
11866
11885
|
import * as z6 from "zod";
|
@@ -11870,7 +11889,7 @@ var UserReferralSource = ({
|
|
11870
11889
|
...props
|
11871
11890
|
}) => {
|
11872
11891
|
var _a, _b;
|
11873
|
-
const [closed, setClosed] =
|
11892
|
+
const [closed, setClosed] = useState44(false);
|
11874
11893
|
const popUpRef = useRef21(null);
|
11875
11894
|
const formSchema = z6.object({
|
11876
11895
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
@@ -12018,15 +12037,15 @@ var UserReferralSource = ({
|
|
12018
12037
|
};
|
12019
12038
|
|
12020
12039
|
// blocks/feedback/FeedbackRating.tsx
|
12021
|
-
import React90, { useEffect as useEffect35, useRef as useRef22, useState as
|
12040
|
+
import React90, { useEffect as useEffect35, useRef as useRef22, useState as useState45 } from "react";
|
12022
12041
|
var FeedbackRating = ({
|
12023
12042
|
position = "bottom-right",
|
12024
12043
|
...props
|
12025
12044
|
}) => {
|
12026
|
-
const [closed, setClosed] =
|
12027
|
-
const [answered, setAnswered] =
|
12028
|
-
const [clickedOption, setClickedOption] =
|
12029
|
-
const [closingTimer, setClosingTimer] =
|
12045
|
+
const [closed, setClosed] = useState45(false);
|
12046
|
+
const [answered, setAnswered] = useState45(false);
|
12047
|
+
const [clickedOption, setClickedOption] = useState45(null);
|
12048
|
+
const [closingTimer, setClosingTimer] = useState45(5);
|
12030
12049
|
const popUpRef = useRef22(null);
|
12031
12050
|
const boxPosition = {
|
12032
12051
|
"bottom-right": "hawa-right-4",
|
@@ -12132,12 +12151,12 @@ var FeedbackRating = ({
|
|
12132
12151
|
};
|
12133
12152
|
|
12134
12153
|
// blocks/feedback/FeedbackEmoji.tsx
|
12135
|
-
import React91, { useState as
|
12154
|
+
import React91, { useState as useState46 } from "react";
|
12136
12155
|
var FeedbackEmoji = (props) => {
|
12137
|
-
const [selectedEmoji, setSelectedEmoji] =
|
12138
|
-
const [loadingSubmit, setLoadingSubmit] =
|
12139
|
-
const [feedbackText, setFeedbackText] =
|
12140
|
-
const [helperText, setHelperText] =
|
12156
|
+
const [selectedEmoji, setSelectedEmoji] = useState46(null);
|
12157
|
+
const [loadingSubmit, setLoadingSubmit] = useState46(false);
|
12158
|
+
const [feedbackText, setFeedbackText] = useState46("");
|
12159
|
+
const [helperText, setHelperText] = useState46(false);
|
12141
12160
|
let emojis = [
|
12142
12161
|
{ icon: /* @__PURE__ */ React91.createElement(VeryGoodEmoji, null), value: "very-good" },
|
12143
12162
|
{ icon: /* @__PURE__ */ React91.createElement(GoodEmoji, null), value: "good" },
|
@@ -12722,9 +12741,9 @@ var ContactForm = ({
|
|
12722
12741
|
import React106 from "react";
|
12723
12742
|
|
12724
12743
|
// blocks/cards/ActionCard.tsx
|
12725
|
-
import React101, { useState as
|
12744
|
+
import React101, { useState as useState47 } from "react";
|
12726
12745
|
var ActionCard = (props) => {
|
12727
|
-
const [hovered, setHovered] =
|
12746
|
+
const [hovered, setHovered] = useState47(false);
|
12728
12747
|
return /* @__PURE__ */ React101.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React101.createElement(
|
12729
12748
|
"div",
|
12730
12749
|
{
|
@@ -12761,13 +12780,13 @@ var ActionCard = (props) => {
|
|
12761
12780
|
};
|
12762
12781
|
|
12763
12782
|
// blocks/cards/AdCard.tsx
|
12764
|
-
import React102, { useState as
|
12783
|
+
import React102, { useState as useState48, useEffect as useEffect36, useRef as useRef23 } from "react";
|
12765
12784
|
var AdCard = ({
|
12766
12785
|
orientation = "vertical",
|
12767
12786
|
...props
|
12768
12787
|
}) => {
|
12769
12788
|
const adRef = useRef23(null);
|
12770
|
-
const [closed, setClosed] =
|
12789
|
+
const [closed, setClosed] = useState48(false);
|
12771
12790
|
let duration = 0;
|
12772
12791
|
useEffect36(() => {
|
12773
12792
|
if (duration) {
|
@@ -12957,7 +12976,7 @@ var PricingCard = ({
|
|
12957
12976
|
};
|
12958
12977
|
|
12959
12978
|
// blocks/cards/ItemCard.tsx
|
12960
|
-
import React104, { useEffect as useEffect37, useState as
|
12979
|
+
import React104, { useEffect as useEffect37, useState as useState49 } from "react";
|
12961
12980
|
var ItemCard = ({
|
12962
12981
|
actions,
|
12963
12982
|
counts,
|
@@ -12986,7 +13005,7 @@ var ItemCard = ({
|
|
12986
13005
|
)
|
12987
13006
|
};
|
12988
13007
|
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";
|
12989
|
-
const [openActionHeader, setOpenActionHeader] =
|
13008
|
+
const [openActionHeader, setOpenActionHeader] = useState49(false);
|
12990
13009
|
function handleOpenActionHeader(e) {
|
12991
13010
|
e.stopPropagation();
|
12992
13011
|
setOpenActionHeader(!openActionHeader);
|
@@ -13318,9 +13337,9 @@ var ComparingPlans = (props) => {
|
|
13318
13337
|
};
|
13319
13338
|
|
13320
13339
|
// blocks/pricing/HorizontalPricing.tsx
|
13321
|
-
import React108, { useState as
|
13340
|
+
import React108, { useState as useState50 } from "react";
|
13322
13341
|
var HorizontalPricing = (props) => {
|
13323
|
-
const [selectedCard, setSelectedCard] =
|
13342
|
+
const [selectedCard, setSelectedCard] = useState50("");
|
13324
13343
|
let data = [
|
13325
13344
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
13326
13345
|
{ title: "business", price: "$99", cycle: "/mo" },
|