@sikka/hawa 0.30.22-next → 0.30.24-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/{DropdownMenu-sSnQc6fT.d.ts → DropdownMenu-o_-MnT5h.d.mts} +6 -6
- package/dist/{DropdownMenu-arqV1gRt.d.mts → DropdownMenu-p-Ha-y2R.d.ts} +6 -6
- package/dist/appLayout/index.d.mts +8 -1
- package/dist/appLayout/index.d.ts +8 -1
- package/dist/appLayout/index.js +31 -0
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +35 -4
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.d.mts +5 -2
- package/dist/appTopbar/index.d.ts +5 -2
- package/dist/appTopbar/index.js +31 -0
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +31 -0
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +31 -0
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/pricing/index.mjs +3 -3
- package/dist/{chunk-CXBN42TF.mjs → chunk-7LAUVLVZ.mjs} +1 -1
- package/dist/{chunk-HOE4FCIF.mjs → chunk-DGOT2FVH.mjs} +30 -0
- package/dist/{chunk-MH5K6NEO.mjs → chunk-TKSAYWDH.mjs} +1 -1
- package/dist/combobox/index.d.mts +2 -2
- package/dist/combobox/index.d.ts +2 -2
- package/dist/combobox/index.js +45 -36
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +45 -36
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/commonTypes-52DloiYq.d.mts +7 -0
- package/dist/commonTypes-52DloiYq.d.ts +7 -0
- package/dist/dataTable/index.js +31 -0
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +31 -0
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/docsLayout/index.d.mts +1 -1
- package/dist/docsLayout/index.d.ts +1 -1
- package/dist/dropdownMenu/index.d.mts +9 -5
- package/dist/dropdownMenu/index.d.ts +9 -5
- package/dist/dropdownMenu/index.js +30 -0
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +30 -0
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +3 -3
- package/dist/elements/index.d.ts +3 -3
- package/dist/elements/index.js +75 -36
- package/dist/elements/index.mjs +48 -39
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +75 -36
- package/dist/index.mjs +180 -141
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +31 -0
- package/dist/layout/index.mjs +2 -2
- package/dist/splitButton/index.d.mts +8 -1
- package/dist/splitButton/index.d.ts +8 -1
- package/dist/splitButton/index.js +31 -0
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +31 -0
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
@@ -657,6 +657,9 @@ var DropdownMenu = ({
|
|
657
657
|
default: "hawa-px-2 hawa-py-3 ",
|
658
658
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
659
659
|
};
|
660
|
+
let [values, setValues] = React5.useState(
|
661
|
+
items.map((item) => item.currentOption)
|
662
|
+
);
|
660
663
|
return /* @__PURE__ */ React5.createElement(
|
661
664
|
DropdownMenuRoot,
|
662
665
|
{
|
@@ -684,11 +687,38 @@ var DropdownMenu = ({
|
|
684
687
|
},
|
685
688
|
header && header,
|
686
689
|
items && items.map((item, index) => {
|
690
|
+
var _a;
|
687
691
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
688
692
|
if (item.itemType === "separator") {
|
689
693
|
return /* @__PURE__ */ React5.createElement(DropdownMenuSeparator, { key: index });
|
690
694
|
} else if (item.itemType === "label") {
|
691
695
|
return /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { key: index }, item.label);
|
696
|
+
} else if (item.itemType === "radio") {
|
697
|
+
let dd = item.currentOption;
|
698
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(
|
699
|
+
DropdownMenuSubTrigger,
|
700
|
+
{
|
701
|
+
dir: direction,
|
702
|
+
className: cn(sizeStyles2[size])
|
703
|
+
},
|
704
|
+
item.icon && item.icon,
|
705
|
+
item.label && item.label
|
706
|
+
), /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React5.createElement(
|
707
|
+
DropdownMenuRadioGroup,
|
708
|
+
{
|
709
|
+
value: values[index],
|
710
|
+
onValueChange: (e) => {
|
711
|
+
let newValues = [...values];
|
712
|
+
newValues[index] = e;
|
713
|
+
setValues(newValues);
|
714
|
+
console.log("changing to ", e);
|
715
|
+
if (item.onOptionChange) {
|
716
|
+
item.onOptionChange(e);
|
717
|
+
}
|
718
|
+
}
|
719
|
+
},
|
720
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React5.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
721
|
+
)));
|
692
722
|
} else if (item.itemType === "custom") {
|
693
723
|
return /* @__PURE__ */ React5.createElement("div", { key: index }, item.content);
|
694
724
|
} else {
|
@@ -1949,7 +1979,7 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
1949
1979
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
1950
1980
|
|
1951
1981
|
// elements/alert/Alert.tsx
|
1952
|
-
import React16, { useRef, useState as
|
1982
|
+
import React16, { useRef, useState as useState3, useEffect as useEffect2 } from "react";
|
1953
1983
|
|
1954
1984
|
// elements/button/Button.tsx
|
1955
1985
|
import * as React15 from "react";
|
@@ -2035,7 +2065,7 @@ var Alert = ({
|
|
2035
2065
|
...props
|
2036
2066
|
}) => {
|
2037
2067
|
const alertRef = useRef(null);
|
2038
|
-
const [closed, setClosed] =
|
2068
|
+
const [closed, setClosed] = useState3(false);
|
2039
2069
|
useEffect2(() => {
|
2040
2070
|
if (duration) {
|
2041
2071
|
const timeoutHide = setTimeout(() => {
|
@@ -2936,10 +2966,10 @@ var DataTable = ({
|
|
2936
2966
|
};
|
2937
2967
|
|
2938
2968
|
// elements/backToTop/BackToTop.tsx
|
2939
|
-
import React23, { useState as
|
2969
|
+
import React23, { useState as useState5, useEffect as useEffect4, useRef as useRef3 } from "react";
|
2940
2970
|
var BackToTop = ({ ...props }) => {
|
2941
|
-
const [visible, setVisible] =
|
2942
|
-
const [rect, _setRect] =
|
2971
|
+
const [visible, setVisible] = useState5(false);
|
2972
|
+
const [rect, _setRect] = useState5(null);
|
2943
2973
|
const self = useRef3(null);
|
2944
2974
|
const _rect = useRef3(rect);
|
2945
2975
|
const setRect = (data) => {
|
@@ -3033,7 +3063,7 @@ var BackToTop = ({ ...props }) => {
|
|
3033
3063
|
};
|
3034
3064
|
|
3035
3065
|
// elements/radio/Radio.tsx
|
3036
|
-
import React24, { useState as
|
3066
|
+
import React24, { useState as useState6, useRef as useRef4, useEffect as useEffect5, forwardRef as forwardRef14 } from "react";
|
3037
3067
|
var Radio = forwardRef14(
|
3038
3068
|
({
|
3039
3069
|
design = "default",
|
@@ -3048,7 +3078,7 @@ var Radio = forwardRef14(
|
|
3048
3078
|
...props
|
3049
3079
|
}, ref) => {
|
3050
3080
|
var _a, _b, _c;
|
3051
|
-
const [selectedOption, setSelectedOption] =
|
3081
|
+
const [selectedOption, setSelectedOption] = useState6(
|
3052
3082
|
props.defaultValue || props.value
|
3053
3083
|
);
|
3054
3084
|
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
@@ -3451,7 +3481,7 @@ var Combobox = React27.forwardRef(
|
|
3451
3481
|
const [value, setValue] = React27.useState(defaultValue);
|
3452
3482
|
const containerRef = React27.useRef(null);
|
3453
3483
|
function getProperty(obj, key) {
|
3454
|
-
return
|
3484
|
+
return key.split(".").reduce((o, k) => (o || {})[k], obj);
|
3455
3485
|
}
|
3456
3486
|
const handleOpenChange = (open2) => {
|
3457
3487
|
if (!(props.isLoading || props.preview)) {
|
@@ -3544,46 +3574,55 @@ var Combobox = React27.forwardRef(
|
|
3544
3574
|
}
|
3545
3575
|
),
|
3546
3576
|
/* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."),
|
3547
|
-
/* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(
|
3548
|
-
|
3577
|
+
/* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(
|
3578
|
+
CommandGroup,
|
3549
3579
|
{
|
3550
|
-
|
3551
|
-
|
3552
|
-
|
3553
|
-
|
3554
|
-
|
3555
|
-
|
3556
|
-
|
3557
|
-
|
3580
|
+
className: cn(
|
3581
|
+
"hawa-max-h-[200px]",
|
3582
|
+
data.length > 0 && "hawa-overflow-y-scroll"
|
3583
|
+
)
|
3584
|
+
},
|
3585
|
+
data.map((item, i) => /* @__PURE__ */ React27.createElement(
|
3586
|
+
CommandItem,
|
3587
|
+
{
|
3588
|
+
key: i,
|
3589
|
+
onSelect: () => {
|
3590
|
+
const newValue = getProperty(item, valueKey);
|
3591
|
+
setValue(
|
3558
3592
|
newValue === value ? "" : newValue
|
3559
3593
|
);
|
3594
|
+
if (props.onChange) {
|
3595
|
+
props.onChange(
|
3596
|
+
newValue === value ? "" : newValue
|
3597
|
+
);
|
3598
|
+
}
|
3599
|
+
setOpen(false);
|
3560
3600
|
}
|
3561
|
-
setOpen(false);
|
3562
|
-
}
|
3563
|
-
},
|
3564
|
-
/* @__PURE__ */ React27.createElement(
|
3565
|
-
"svg",
|
3566
|
-
{
|
3567
|
-
"aria-label": "Check Icon",
|
3568
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3569
|
-
width: "24",
|
3570
|
-
height: "24",
|
3571
|
-
viewBox: "0 0 24 24",
|
3572
|
-
fill: "none",
|
3573
|
-
stroke: "currentColor",
|
3574
|
-
strokeWidth: "2",
|
3575
|
-
strokeLinecap: "round",
|
3576
|
-
strokeLinejoin: "round",
|
3577
|
-
className: cn(
|
3578
|
-
"hawa-icon",
|
3579
|
-
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
3580
|
-
),
|
3581
|
-
style: { marginInlineEnd: "0.5rem" }
|
3582
3601
|
},
|
3583
|
-
/* @__PURE__ */ React27.createElement(
|
3584
|
-
|
3585
|
-
|
3586
|
-
|
3602
|
+
/* @__PURE__ */ React27.createElement(
|
3603
|
+
"svg",
|
3604
|
+
{
|
3605
|
+
"aria-label": "Check Icon",
|
3606
|
+
xmlns: "http://www.w3.org/2000/svg",
|
3607
|
+
width: "24",
|
3608
|
+
height: "24",
|
3609
|
+
viewBox: "0 0 24 24",
|
3610
|
+
fill: "none",
|
3611
|
+
stroke: "currentColor",
|
3612
|
+
strokeWidth: "2",
|
3613
|
+
strokeLinecap: "round",
|
3614
|
+
strokeLinejoin: "round",
|
3615
|
+
className: cn(
|
3616
|
+
"hawa-icon",
|
3617
|
+
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
3618
|
+
),
|
3619
|
+
style: { marginInlineEnd: "0.5rem" }
|
3620
|
+
},
|
3621
|
+
/* @__PURE__ */ React27.createElement("polyline", { points: "20 6 9 17 4 12" })
|
3622
|
+
),
|
3623
|
+
renderOption ? renderOption(item) : getProperty(item, labelKey)
|
3624
|
+
))
|
3625
|
+
))
|
3587
3626
|
)
|
3588
3627
|
))
|
3589
3628
|
);
|
@@ -3649,7 +3688,7 @@ var Textarea = React28.forwardRef(
|
|
3649
3688
|
Textarea.displayName = "Textarea";
|
3650
3689
|
|
3651
3690
|
// elements/fileDropzone/FileDropzone.tsx
|
3652
|
-
import React29, { useEffect as useEffect6, useState as
|
3691
|
+
import React29, { useEffect as useEffect6, useState as useState8 } from "react";
|
3653
3692
|
import { useDropzone } from "react-dropzone";
|
3654
3693
|
import clsx2 from "clsx";
|
3655
3694
|
var FileDropzone = ({
|
@@ -3671,8 +3710,8 @@ var FileDropzone = ({
|
|
3671
3710
|
privacyLink
|
3672
3711
|
}) => {
|
3673
3712
|
var _a, _b, _c, _d, _e, _f;
|
3674
|
-
const [cmp, setCmp] =
|
3675
|
-
const [max, setMax] =
|
3713
|
+
const [cmp, setCmp] = useState8(0);
|
3714
|
+
const [max, setMax] = useState8(0);
|
3676
3715
|
const {
|
3677
3716
|
getRootProps,
|
3678
3717
|
getInputProps,
|
@@ -4487,7 +4526,7 @@ var AppStores = (props) => {
|
|
4487
4526
|
};
|
4488
4527
|
|
4489
4528
|
// elements/badge/Badge.tsx
|
4490
|
-
import React38, { useEffect as useEffect8, useState as
|
4529
|
+
import React38, { useEffect as useEffect8, useState as useState10, useRef as useRef7 } from "react";
|
4491
4530
|
var Badge = ({
|
4492
4531
|
anchor,
|
4493
4532
|
position = "right",
|
@@ -4495,7 +4534,7 @@ var Badge = ({
|
|
4495
4534
|
text,
|
4496
4535
|
className
|
4497
4536
|
}) => {
|
4498
|
-
const [badgePosition, setBadgePosition] =
|
4537
|
+
const [badgePosition, setBadgePosition] = useState10(null);
|
4499
4538
|
const indicatorRef = useRef7(null);
|
4500
4539
|
const sizeStyles2 = {
|
4501
4540
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
@@ -4564,7 +4603,7 @@ var BadgedComponent = ({
|
|
4564
4603
|
};
|
4565
4604
|
|
4566
4605
|
// elements/phoneInput/PhoneInput.tsx
|
4567
|
-
import React39, { useState as
|
4606
|
+
import React39, { useState as useState11, useRef as useRef8, useEffect as useEffect9 } from "react";
|
4568
4607
|
|
4569
4608
|
// countries.ts
|
4570
4609
|
var countries = [
|
@@ -6261,8 +6300,8 @@ var countries_default = countries;
|
|
6261
6300
|
|
6262
6301
|
// elements/phoneInput/PhoneInput.tsx
|
6263
6302
|
var PhoneInput = ({ labelProps, ...props }) => {
|
6264
|
-
const [phoneNumber, setPhoneNumber] =
|
6265
|
-
const [countryCode, setCountryCode] =
|
6303
|
+
const [phoneNumber, setPhoneNumber] = useState11("");
|
6304
|
+
const [countryCode, setCountryCode] = useState11(props.preferredCountry);
|
6266
6305
|
const inputRef = useRef8(null);
|
6267
6306
|
useEffect9(() => {
|
6268
6307
|
var _a;
|
@@ -6324,7 +6363,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6324
6363
|
};
|
6325
6364
|
|
6326
6365
|
// elements/pinInput/PinInput.tsx
|
6327
|
-
import React40, { useEffect as useEffect10, useState as
|
6366
|
+
import React40, { useEffect as useEffect10, useState as useState12 } from "react";
|
6328
6367
|
var PinInput = ({
|
6329
6368
|
label,
|
6330
6369
|
icon,
|
@@ -6334,7 +6373,7 @@ var PinInput = ({
|
|
6334
6373
|
inputProps,
|
6335
6374
|
...props
|
6336
6375
|
}) => {
|
6337
|
-
const [pin, setPin] =
|
6376
|
+
const [pin, setPin] = useState12(Array.from(Array(digits)));
|
6338
6377
|
const handleKeyDown = (e, index) => {
|
6339
6378
|
let backTo = 0;
|
6340
6379
|
if (e.key === "Backspace") {
|
@@ -6457,7 +6496,7 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
6457
6496
|
|
6458
6497
|
// elements/colorPicker/ColorPicker.tsx
|
6459
6498
|
import React43, {
|
6460
|
-
useState as
|
6499
|
+
useState as useState13,
|
6461
6500
|
useEffect as useEffect11
|
6462
6501
|
} from "react";
|
6463
6502
|
var ColorPicker = ({
|
@@ -6470,7 +6509,7 @@ var ColorPicker = ({
|
|
6470
6509
|
preview = false,
|
6471
6510
|
...props
|
6472
6511
|
}) => {
|
6473
|
-
const [selectedColor, setSelectedColor] =
|
6512
|
+
const [selectedColor, setSelectedColor] = useState13(props.color);
|
6474
6513
|
useEffect11(() => {
|
6475
6514
|
if (selectedColor && selectedColor[0] !== "#") {
|
6476
6515
|
setSelectedColor(`#${selectedColor}`);
|
@@ -6753,7 +6792,7 @@ var Pagination = ({
|
|
6753
6792
|
};
|
6754
6793
|
|
6755
6794
|
// elements/passwordInput/PasswordInput.tsx
|
6756
|
-
import React49, { useEffect as useEffect12, useState as
|
6795
|
+
import React49, { useEffect as useEffect12, useState as useState14 } from "react";
|
6757
6796
|
|
6758
6797
|
// icons/Emojis.tsx
|
6759
6798
|
import React46 from "react";
|
@@ -6969,15 +7008,15 @@ var PasswordInput = ({
|
|
6969
7008
|
hidePopover,
|
6970
7009
|
...props
|
6971
7010
|
}) => {
|
6972
|
-
const [inputValue, setInputValue] =
|
6973
|
-
const [isInputFocused, setIsInputFocused] =
|
6974
|
-
const [currentStr, setCurrentStr] =
|
6975
|
-
const [passwordVisible, setPasswordVisible] =
|
6976
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] =
|
6977
|
-
const [numberCriteriaMet, setNumberCriteriaMet] =
|
6978
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] =
|
6979
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] =
|
6980
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] =
|
7011
|
+
const [inputValue, setInputValue] = useState14("");
|
7012
|
+
const [isInputFocused, setIsInputFocused] = useState14(false);
|
7013
|
+
const [currentStr, setCurrentStr] = useState14(0);
|
7014
|
+
const [passwordVisible, setPasswordVisible] = useState14(false);
|
7015
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = useState14(false);
|
7016
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = useState14(false);
|
7017
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = useState14(false);
|
7018
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = useState14(false);
|
7019
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = useState14(false);
|
6981
7020
|
useEffect12(() => {
|
6982
7021
|
const calculateStrength = () => {
|
6983
7022
|
let strengthScore = 0;
|
@@ -7179,12 +7218,12 @@ var Separator2 = ({
|
|
7179
7218
|
);
|
7180
7219
|
|
7181
7220
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7182
|
-
import React53, { useState as
|
7221
|
+
import React53, { useState as useState15, useEffect as useEffect13 } from "react";
|
7183
7222
|
var ScrollIndicator = ({
|
7184
7223
|
anchor,
|
7185
7224
|
inContainer = false
|
7186
7225
|
}) => {
|
7187
|
-
const [scrollPercentage, setScrollPercentage] =
|
7226
|
+
const [scrollPercentage, setScrollPercentage] = useState15(0);
|
7188
7227
|
const onScroll = () => {
|
7189
7228
|
const scrollElement = anchor.current;
|
7190
7229
|
if (scrollElement) {
|
@@ -7220,15 +7259,15 @@ var ScrollIndicator = ({
|
|
7220
7259
|
};
|
7221
7260
|
|
7222
7261
|
// elements/codeBlock/CodeBlock.tsx
|
7223
|
-
import React54, { useState as
|
7262
|
+
import React54, { useState as useState17 } from "react";
|
7224
7263
|
import { Highlight, themes, Prism } from "prism-react-renderer";
|
7225
7264
|
|
7226
7265
|
// hooks/useClipboard.ts
|
7227
|
-
import { useState as
|
7266
|
+
import { useState as useState16 } from "react";
|
7228
7267
|
function useClipboard({ timeout = 2e3 } = {}) {
|
7229
|
-
const [error, setError] =
|
7230
|
-
const [copied, setCopied] =
|
7231
|
-
const [copyTimeout, setCopyTimeout] =
|
7268
|
+
const [error, setError] = useState16(null);
|
7269
|
+
const [copied, setCopied] = useState16(false);
|
7270
|
+
const [copyTimeout, setCopyTimeout] = useState16(null);
|
7232
7271
|
const handleCopyResult = (value) => {
|
7233
7272
|
clearTimeout(copyTimeout);
|
7234
7273
|
setCopyTimeout(setTimeout(() => setCopied(false), timeout));
|
@@ -7280,7 +7319,7 @@ var CodeBlock = ({
|
|
7280
7319
|
...props
|
7281
7320
|
}) => {
|
7282
7321
|
const clipboard = useClipboard();
|
7283
|
-
const [selectedTab, setSelectedTab] =
|
7322
|
+
const [selectedTab, setSelectedTab] = useState17(0);
|
7284
7323
|
const theme = themes.oceanicNext;
|
7285
7324
|
let widthStyles = {
|
7286
7325
|
full: "hawa-w-full",
|
@@ -7408,7 +7447,7 @@ var CodeBlock = ({
|
|
7408
7447
|
};
|
7409
7448
|
|
7410
7449
|
// elements/carousel/Carousel.tsx
|
7411
|
-
import React55, { useEffect as useEffect14, useState as
|
7450
|
+
import React55, { useEffect as useEffect14, useState as useState18 } from "react";
|
7412
7451
|
import useEmblaCarousel from "embla-carousel-react";
|
7413
7452
|
var Carousel = ({
|
7414
7453
|
items,
|
@@ -7424,7 +7463,7 @@ var Carousel = ({
|
|
7424
7463
|
direction,
|
7425
7464
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
7426
7465
|
});
|
7427
|
-
const [selectedIndex, setSelectedIndex] =
|
7466
|
+
const [selectedIndex, setSelectedIndex] = useState18(0);
|
7428
7467
|
useEffect14(() => {
|
7429
7468
|
function selectHandler() {
|
7430
7469
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
@@ -7739,14 +7778,14 @@ function Toaster(props) {
|
|
7739
7778
|
}
|
7740
7779
|
|
7741
7780
|
// elements/destroyableCard/DestroyableCard.tsx
|
7742
|
-
import React59, { useRef as useRef9, useState as
|
7781
|
+
import React59, { useRef as useRef9, useState as useState19 } from "react";
|
7743
7782
|
var DestroyableCard = ({
|
7744
7783
|
position = "bottom-right",
|
7745
7784
|
fixed,
|
7746
7785
|
direction,
|
7747
7786
|
...props
|
7748
7787
|
}) => {
|
7749
|
-
const [closed, setClosed] =
|
7788
|
+
const [closed, setClosed] = useState19(false);
|
7750
7789
|
const popUpRef = useRef9(null);
|
7751
7790
|
const boxPosition = {
|
7752
7791
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
@@ -7813,7 +7852,7 @@ var DestroyableCard = ({
|
|
7813
7852
|
};
|
7814
7853
|
|
7815
7854
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
7816
|
-
import React60, { useState as
|
7855
|
+
import React60, { useState as useState20 } from "react";
|
7817
7856
|
var InterfaceSettings = ({
|
7818
7857
|
orientation = "horizontal",
|
7819
7858
|
width = "default",
|
@@ -7821,8 +7860,8 @@ var InterfaceSettings = ({
|
|
7821
7860
|
handleLanguage,
|
7822
7861
|
...props
|
7823
7862
|
}) => {
|
7824
|
-
const [color, setColor] =
|
7825
|
-
const [language, setLanguage] =
|
7863
|
+
const [color, setColor] = useState20(props.currentColorMode);
|
7864
|
+
const [language, setLanguage] = useState20(props.currentLanguage);
|
7826
7865
|
let orientationStyle = {
|
7827
7866
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
7828
7867
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
@@ -8163,7 +8202,7 @@ var Copyrights = (props) => {
|
|
8163
8202
|
};
|
8164
8203
|
|
8165
8204
|
// layout/navbar/Navbar.tsx
|
8166
|
-
import React65, { useState as
|
8205
|
+
import React65, { useState as useState21 } from "react";
|
8167
8206
|
|
8168
8207
|
// elements/collapsible/Collapsible.tsx
|
8169
8208
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
@@ -8179,7 +8218,7 @@ var Navbar = ({
|
|
8179
8218
|
...props
|
8180
8219
|
}) => {
|
8181
8220
|
var _a, _b;
|
8182
|
-
const [isOpen, setIsOpen] =
|
8221
|
+
const [isOpen, setIsOpen] = useState21(false);
|
8183
8222
|
return /* @__PURE__ */ React65.createElement("nav", { className: " hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ React65.createElement(
|
8184
8223
|
Collapsible,
|
8185
8224
|
{
|
@@ -8283,7 +8322,7 @@ var Navbar = ({
|
|
8283
8322
|
};
|
8284
8323
|
|
8285
8324
|
// layout/appLayout/AppLayout.tsx
|
8286
|
-
import React66, { useEffect as useEffect15, useRef as useRef10, useState as
|
8325
|
+
import React66, { useEffect as useEffect15, useRef as useRef10, useState as useState22 } from "react";
|
8287
8326
|
var AppLayout = ({
|
8288
8327
|
profileMenuWidth = "default",
|
8289
8328
|
DrawerFooterActions,
|
@@ -8312,9 +8351,9 @@ var AppLayout = ({
|
|
8312
8351
|
};
|
8313
8352
|
const ref = useRef10(null);
|
8314
8353
|
const isRTL = direction === "rtl";
|
8315
|
-
const [openedSidebarItem, setOpenedSidebarItem] =
|
8316
|
-
const [size, setSize] =
|
8317
|
-
const [openSideMenu, setOpenSideMenu] =
|
8354
|
+
const [openedSidebarItem, setOpenedSidebarItem] = useState22("");
|
8355
|
+
const [size, setSize] = useState22(1200);
|
8356
|
+
const [openSideMenu, setOpenSideMenu] = useState22(true);
|
8318
8357
|
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
8319
8358
|
useEffect15(() => {
|
8320
8359
|
if (typeof window !== "undefined") {
|
@@ -8950,9 +8989,9 @@ var MenubarShortcut = ({
|
|
8950
8989
|
MenubarShortcut.displayname = "MenubarShortcut";
|
8951
8990
|
|
8952
8991
|
// layout/appTabs/AppTabs.tsx
|
8953
|
-
import React69, { useState as
|
8992
|
+
import React69, { useState as useState23 } from "react";
|
8954
8993
|
var AppTabs = ({ tabs, className }) => {
|
8955
|
-
const [selectedIndex, setSelectedIndex] =
|
8994
|
+
const [selectedIndex, setSelectedIndex] = useState23(0);
|
8956
8995
|
return /* @__PURE__ */ React69.createElement(
|
8957
8996
|
"div",
|
8958
8997
|
{
|
@@ -8994,12 +9033,12 @@ var AppTabs = ({ tabs, className }) => {
|
|
8994
9033
|
};
|
8995
9034
|
|
8996
9035
|
// layout/docsLayout/DocsLayout.tsx
|
8997
|
-
import React72, { useEffect as useEffect17, useRef as useRef11, useState as
|
9036
|
+
import React72, { useEffect as useEffect17, useRef as useRef11, useState as useState25 } from "react";
|
8998
9037
|
|
8999
9038
|
// hooks/useBreakpoint.ts
|
9000
|
-
import { useState as
|
9039
|
+
import { useState as useState24, useEffect as useEffect16 } from "react";
|
9001
9040
|
var useBreakpoint = () => {
|
9002
|
-
const [breakpoint, setBreakpoint] =
|
9041
|
+
const [breakpoint, setBreakpoint] = useState24(null);
|
9003
9042
|
useEffect16(() => {
|
9004
9043
|
if (typeof window !== "undefined") {
|
9005
9044
|
const resize = () => {
|
@@ -9109,8 +9148,8 @@ var DocsLayout = ({
|
|
9109
9148
|
if (typeof window == "undefined") {
|
9110
9149
|
size = 1200;
|
9111
9150
|
}
|
9112
|
-
const [currentPage, setCurrentPage] =
|
9113
|
-
const [openSideMenu, setOpenSideMenu] =
|
9151
|
+
const [currentPage, setCurrentPage] = useState25("Introduction");
|
9152
|
+
const [openSideMenu, setOpenSideMenu] = useState25(true);
|
9114
9153
|
useEffect17(() => {
|
9115
9154
|
const handleClickOutside = (event) => {
|
9116
9155
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
@@ -9380,7 +9419,7 @@ var AuthButtons = (props) => {
|
|
9380
9419
|
};
|
9381
9420
|
|
9382
9421
|
// blocks/auth/LoginForm.tsx
|
9383
|
-
import React74, { useState as
|
9422
|
+
import React74, { useState as useState26 } from "react";
|
9384
9423
|
import { Controller, useForm } from "react-hook-form";
|
9385
9424
|
import { zodResolver } from "@hookform/resolvers/zod";
|
9386
9425
|
import { parsePhoneNumber } from "libphonenumber-js";
|
@@ -9392,7 +9431,7 @@ var LoginForm = ({
|
|
9392
9431
|
...props
|
9393
9432
|
}) => {
|
9394
9433
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
9395
|
-
const [passwordVisible, setPasswordVisible] =
|
9434
|
+
const [passwordVisible, setPasswordVisible] = useState26(false);
|
9396
9435
|
const thirdPartyAuthTexts = {
|
9397
9436
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
9398
9437
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -9697,7 +9736,7 @@ var LoginForm = ({
|
|
9697
9736
|
};
|
9698
9737
|
|
9699
9738
|
// blocks/auth/RegisterForm.tsx
|
9700
|
-
import React75, { useState as
|
9739
|
+
import React75, { useState as useState27 } from "react";
|
9701
9740
|
import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
|
9702
9741
|
import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
|
9703
9742
|
import * as z2 from "zod";
|
@@ -9709,7 +9748,7 @@ var RegisterForm = ({
|
|
9709
9748
|
...props
|
9710
9749
|
}) => {
|
9711
9750
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
9712
|
-
const [passwordVisible, setPasswordVisible] =
|
9751
|
+
const [passwordVisible, setPasswordVisible] = useState27(false);
|
9713
9752
|
const thirdPartyAuthTexts = {
|
9714
9753
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
9715
9754
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -10146,7 +10185,7 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
10146
10185
|
};
|
10147
10186
|
|
10148
10187
|
// blocks/auth/NewPassword.tsx
|
10149
|
-
import React78, { useState as
|
10188
|
+
import React78, { useState as useState28 } from "react";
|
10150
10189
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
10151
10190
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
10152
10191
|
import * as z3 from "zod";
|
@@ -10164,7 +10203,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
10164
10203
|
const { handleSubmit, control, formState } = useForm3({
|
10165
10204
|
resolver: zodResolver3(formSchema)
|
10166
10205
|
});
|
10167
|
-
const [matchError, setMatchError] =
|
10206
|
+
const [matchError, setMatchError] = useState28(false);
|
10168
10207
|
return /* @__PURE__ */ React78.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ React78.createElement(Alert, { text: (_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React78.createElement(CardContent, { headless: true }, /* @__PURE__ */ React78.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ React78.createElement(
|
10169
10208
|
"form",
|
10170
10209
|
{
|
@@ -10304,7 +10343,7 @@ var ResetPasswordForm = ({
|
|
10304
10343
|
};
|
10305
10344
|
|
10306
10345
|
// blocks/auth/CodeConfirmation.tsx
|
10307
|
-
import React80, { useEffect as useEffect18, useState as
|
10346
|
+
import React80, { useEffect as useEffect18, useState as useState29 } from "react";
|
10308
10347
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
10309
10348
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
10310
10349
|
import * as z5 from "zod";
|
@@ -10316,9 +10355,9 @@ var CodeConfirmation = (props) => {
|
|
10316
10355
|
const { handleSubmit, control, formState, setValue } = useForm5({
|
10317
10356
|
resolver: zodResolver5(formSchema)
|
10318
10357
|
});
|
10319
|
-
const [resendTimer, setResendTimer] =
|
10320
|
-
const [remainingTime, setRemainingTime] =
|
10321
|
-
const [showResendTimer, setShowResendTimer] =
|
10358
|
+
const [resendTimer, setResendTimer] = useState29(null);
|
10359
|
+
const [remainingTime, setRemainingTime] = useState29(0);
|
10360
|
+
const [showResendTimer, setShowResendTimer] = useState29(false);
|
10322
10361
|
const startResendTimer = () => {
|
10323
10362
|
if (resendTimer !== null) {
|
10324
10363
|
clearInterval(resendTimer);
|
@@ -10403,7 +10442,7 @@ var CodeConfirmation = (props) => {
|
|
10403
10442
|
};
|
10404
10443
|
|
10405
10444
|
// blocks/feedback/UserReferralSource.tsx
|
10406
|
-
import React81, { useRef as useRef12, useState as
|
10445
|
+
import React81, { useRef as useRef12, useState as useState30 } from "react";
|
10407
10446
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
10408
10447
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
10409
10448
|
import * as z6 from "zod";
|
@@ -10413,7 +10452,7 @@ var UserReferralSource = ({
|
|
10413
10452
|
...props
|
10414
10453
|
}) => {
|
10415
10454
|
var _a, _b;
|
10416
|
-
const [closed, setClosed] =
|
10455
|
+
const [closed, setClosed] = useState30(false);
|
10417
10456
|
const popUpRef = useRef12(null);
|
10418
10457
|
const formSchema = z6.object({
|
10419
10458
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
@@ -10561,15 +10600,15 @@ var UserReferralSource = ({
|
|
10561
10600
|
};
|
10562
10601
|
|
10563
10602
|
// blocks/feedback/FeedbackRating.tsx
|
10564
|
-
import React82, { useEffect as useEffect19, useRef as useRef13, useState as
|
10603
|
+
import React82, { useEffect as useEffect19, useRef as useRef13, useState as useState31 } from "react";
|
10565
10604
|
var FeedbackRating = ({
|
10566
10605
|
position = "bottom-right",
|
10567
10606
|
...props
|
10568
10607
|
}) => {
|
10569
|
-
const [closed, setClosed] =
|
10570
|
-
const [answered, setAnswered] =
|
10571
|
-
const [clickedOption, setClickedOption] =
|
10572
|
-
const [closingTimer, setClosingTimer] =
|
10608
|
+
const [closed, setClosed] = useState31(false);
|
10609
|
+
const [answered, setAnswered] = useState31(false);
|
10610
|
+
const [clickedOption, setClickedOption] = useState31(null);
|
10611
|
+
const [closingTimer, setClosingTimer] = useState31(5);
|
10573
10612
|
const popUpRef = useRef13(null);
|
10574
10613
|
const boxPosition = {
|
10575
10614
|
"bottom-right": "hawa-right-4",
|
@@ -10675,12 +10714,12 @@ var FeedbackRating = ({
|
|
10675
10714
|
};
|
10676
10715
|
|
10677
10716
|
// blocks/feedback/FeedbackEmoji.tsx
|
10678
|
-
import React83, { useState as
|
10717
|
+
import React83, { useState as useState32 } from "react";
|
10679
10718
|
var FeedbackEmoji = (props) => {
|
10680
|
-
const [selectedEmoji, setSelectedEmoji] =
|
10681
|
-
const [loadingSubmit, setLoadingSubmit] =
|
10682
|
-
const [feedbackText, setFeedbackText] =
|
10683
|
-
const [helperText, setHelperText] =
|
10719
|
+
const [selectedEmoji, setSelectedEmoji] = useState32(null);
|
10720
|
+
const [loadingSubmit, setLoadingSubmit] = useState32(false);
|
10721
|
+
const [feedbackText, setFeedbackText] = useState32("");
|
10722
|
+
const [helperText, setHelperText] = useState32(false);
|
10684
10723
|
let emojis = [
|
10685
10724
|
{ icon: /* @__PURE__ */ React83.createElement(VeryGoodEmoji, null), value: "very-good" },
|
10686
10725
|
{ icon: /* @__PURE__ */ React83.createElement(GoodEmoji, null), value: "good" },
|
@@ -11243,9 +11282,9 @@ var ContactForm = ({
|
|
11243
11282
|
import React98 from "react";
|
11244
11283
|
|
11245
11284
|
// blocks/cards/ActionCard.tsx
|
11246
|
-
import React93, { useState as
|
11285
|
+
import React93, { useState as useState33 } from "react";
|
11247
11286
|
var ActionCard = (props) => {
|
11248
|
-
const [hovered, setHovered] =
|
11287
|
+
const [hovered, setHovered] = useState33(false);
|
11249
11288
|
return /* @__PURE__ */ React93.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React93.createElement(
|
11250
11289
|
"div",
|
11251
11290
|
{
|
@@ -11282,13 +11321,13 @@ var ActionCard = (props) => {
|
|
11282
11321
|
};
|
11283
11322
|
|
11284
11323
|
// blocks/cards/AdCard.tsx
|
11285
|
-
import React94, { useState as
|
11324
|
+
import React94, { useState as useState34, useEffect as useEffect20, useRef as useRef14 } from "react";
|
11286
11325
|
var AdCard = ({
|
11287
11326
|
orientation = "vertical",
|
11288
11327
|
...props
|
11289
11328
|
}) => {
|
11290
11329
|
const adRef = useRef14(null);
|
11291
|
-
const [closed, setClosed] =
|
11330
|
+
const [closed, setClosed] = useState34(false);
|
11292
11331
|
let duration = 0;
|
11293
11332
|
useEffect20(() => {
|
11294
11333
|
if (duration) {
|
@@ -11478,7 +11517,7 @@ var PricingCard = ({
|
|
11478
11517
|
};
|
11479
11518
|
|
11480
11519
|
// blocks/cards/ItemCard.tsx
|
11481
|
-
import React96, { useEffect as useEffect21, useState as
|
11520
|
+
import React96, { useEffect as useEffect21, useState as useState35 } from "react";
|
11482
11521
|
var ItemCard = ({
|
11483
11522
|
actions,
|
11484
11523
|
counts,
|
@@ -11507,7 +11546,7 @@ var ItemCard = ({
|
|
11507
11546
|
)
|
11508
11547
|
};
|
11509
11548
|
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";
|
11510
|
-
const [openActionHeader, setOpenActionHeader] =
|
11549
|
+
const [openActionHeader, setOpenActionHeader] = useState35(false);
|
11511
11550
|
function handleOpenActionHeader(e) {
|
11512
11551
|
e.stopPropagation();
|
11513
11552
|
setOpenActionHeader(!openActionHeader);
|
@@ -11839,9 +11878,9 @@ var ComparingPlans = (props) => {
|
|
11839
11878
|
};
|
11840
11879
|
|
11841
11880
|
// blocks/pricing/HorizontalPricing.tsx
|
11842
|
-
import React100, { useState as
|
11881
|
+
import React100, { useState as useState36 } from "react";
|
11843
11882
|
var HorizontalPricing = (props) => {
|
11844
|
-
const [selectedCard, setSelectedCard] =
|
11883
|
+
const [selectedCard, setSelectedCard] = useState36("");
|
11845
11884
|
let data = [
|
11846
11885
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
11847
11886
|
{ title: "business", price: "$99", cycle: "/mo" },
|
@@ -11959,10 +11998,10 @@ import { useEffect as useEffect22, useLayoutEffect } from "react";
|
|
11959
11998
|
var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect22;
|
11960
11999
|
|
11961
12000
|
// hooks/useDiscloser.ts
|
11962
|
-
import { useState as
|
12001
|
+
import { useState as useState37 } from "react";
|
11963
12002
|
|
11964
12003
|
// hooks/useHover.ts
|
11965
|
-
import { useEffect as useEffect23, useRef as useRef15, useState as
|
12004
|
+
import { useEffect as useEffect23, useRef as useRef15, useState as useState38 } from "react";
|
11966
12005
|
|
11967
12006
|
// hooks/useToast.ts
|
11968
12007
|
import * as React104 from "react";
|
@@ -12069,10 +12108,10 @@ function useToast() {
|
|
12069
12108
|
}
|
12070
12109
|
|
12071
12110
|
// hooks/useCarousel.ts
|
12072
|
-
import { useState as
|
12111
|
+
import { useState as useState40, useRef as useRef16 } from "react";
|
12073
12112
|
|
12074
12113
|
// hooks/useDialogCarousel.ts
|
12075
|
-
import { useEffect as useEffect25, useState as
|
12114
|
+
import { useEffect as useEffect25, useState as useState41 } from "react";
|
12076
12115
|
import AutoHeight from "embla-carousel-auto-height";
|
12077
12116
|
import useEmblaCarousel2 from "embla-carousel-react";
|
12078
12117
|
var useDialogCarousel = (options) => {
|
@@ -12080,7 +12119,7 @@ var useDialogCarousel = (options) => {
|
|
12080
12119
|
{ loop: false, watchDrag: false, startIndex: 0, ...options },
|
12081
12120
|
[AutoHeight({ destroyHeight: "fit", active: true })]
|
12082
12121
|
);
|
12083
|
-
const [canScrollPrev, setCanScrollPrev] =
|
12122
|
+
const [canScrollPrev, setCanScrollPrev] = useState41(false);
|
12084
12123
|
const checkCanScrollPrev = () => {
|
12085
12124
|
if (emblaApi) {
|
12086
12125
|
setCanScrollPrev(emblaApi.canScrollPrev());
|
@@ -12115,10 +12154,10 @@ var useDialogCarousel = (options) => {
|
|
12115
12154
|
};
|
12116
12155
|
|
12117
12156
|
// hooks/useDialogSteps.ts
|
12118
|
-
import { useState as
|
12157
|
+
import { useState as useState42, useEffect as useEffect26, useRef as useRef17 } from "react";
|
12119
12158
|
var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
|
12120
|
-
const [currentStep, setCurrentStep] =
|
12121
|
-
const [dialogHeight, setDialogHeight] =
|
12159
|
+
const [currentStep, setCurrentStep] = useState42(initialStep);
|
12160
|
+
const [dialogHeight, setDialogHeight] = useState42(null);
|
12122
12161
|
const visibleStepRef = useRef17(null);
|
12123
12162
|
useEffect26(() => {
|
12124
12163
|
if (visibleStepRef.current) {
|
@@ -12151,9 +12190,9 @@ var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
|
|
12151
12190
|
};
|
12152
12191
|
|
12153
12192
|
// hooks/useWindowSize.ts
|
12154
|
-
import { useEffect as useEffect27, useState as
|
12193
|
+
import { useEffect as useEffect27, useState as useState43 } from "react";
|
12155
12194
|
var useWindowSize = () => {
|
12156
|
-
const [windowSize, setWindowSize] =
|
12195
|
+
const [windowSize, setWindowSize] = useState43({
|
12157
12196
|
width: void 0,
|
12158
12197
|
height: void 0
|
12159
12198
|
});
|
@@ -12172,7 +12211,7 @@ var useWindowSize = () => {
|
|
12172
12211
|
};
|
12173
12212
|
|
12174
12213
|
// hooks/useFocusWithin.ts
|
12175
|
-
import { useRef as useRef18, useState as
|
12214
|
+
import { useRef as useRef18, useState as useState44, useEffect as useEffect28 } from "react";
|
12176
12215
|
function containsRelatedTarget(event) {
|
12177
12216
|
if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
|
12178
12217
|
return event.currentTarget.contains(event.relatedTarget);
|
@@ -12184,7 +12223,7 @@ function useFocusWithin({
|
|
12184
12223
|
onFocus
|
12185
12224
|
} = {}) {
|
12186
12225
|
const ref = useRef18(null);
|
12187
|
-
const [focused, _setFocused] =
|
12226
|
+
const [focused, _setFocused] = useState44(false);
|
12188
12227
|
const focusedRef = useRef18(false);
|
12189
12228
|
const setFocused = (value) => {
|
12190
12229
|
_setFocused(value);
|
@@ -12218,7 +12257,7 @@ function useFocusWithin({
|
|
12218
12257
|
}
|
12219
12258
|
|
12220
12259
|
// hooks/useMediaQuery.ts
|
12221
|
-
import { useState as
|
12260
|
+
import { useState as useState45, useEffect as useEffect29, useRef as useRef19 } from "react";
|
12222
12261
|
function attachMediaListener(query, callback) {
|
12223
12262
|
try {
|
12224
12263
|
query.addEventListener("change", callback);
|
@@ -12240,7 +12279,7 @@ function getInitialValue(query, initialValue) {
|
|
12240
12279
|
function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
12241
12280
|
getInitialValueInEffect: true
|
12242
12281
|
}) {
|
12243
|
-
const [matches, setMatches] =
|
12282
|
+
const [matches, setMatches] = useState45(
|
12244
12283
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
12245
12284
|
);
|
12246
12285
|
const queryRef = useRef19();
|
@@ -12259,15 +12298,15 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
12259
12298
|
}
|
12260
12299
|
|
12261
12300
|
// hooks/useScrollPosition.ts
|
12262
|
-
import { useState as
|
12301
|
+
import { useState as useState46, useEffect as useEffect30 } from "react";
|
12263
12302
|
|
12264
12303
|
// hooks/useTable.ts
|
12265
|
-
import { useState as
|
12304
|
+
import { useState as useState47, useEffect as useEffect31 } from "react";
|
12266
12305
|
|
12267
12306
|
// hooks/useTabs.ts
|
12268
|
-
import { useEffect as useEffect32, useState as
|
12307
|
+
import { useEffect as useEffect32, useState as useState48 } from "react";
|
12269
12308
|
function useTabs(initialTab = "") {
|
12270
|
-
const [activeTab, setActiveTab] =
|
12309
|
+
const [activeTab, setActiveTab] = useState48(initialTab);
|
12271
12310
|
useEffect32(() => {
|
12272
12311
|
const handleHashChange = () => {
|
12273
12312
|
const hash = window.location.hash.substring(1);
|