@sikka/hawa 0.30.23-next → 0.30.25-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.
Files changed (65) hide show
  1. package/dist/{DropdownMenu-sSnQc6fT.d.ts → DropdownMenu-o_-MnT5h.d.mts} +6 -6
  2. package/dist/{DropdownMenu-arqV1gRt.d.mts → DropdownMenu-p-Ha-y2R.d.ts} +6 -6
  3. package/dist/appLayout/index.d.mts +8 -1
  4. package/dist/appLayout/index.d.ts +8 -1
  5. package/dist/appLayout/index.js +31 -0
  6. package/dist/appLayout/index.js.map +1 -1
  7. package/dist/appLayout/index.mjs +35 -4
  8. package/dist/appLayout/index.mjs.map +1 -1
  9. package/dist/appTopbar/index.d.mts +5 -2
  10. package/dist/appTopbar/index.d.ts +5 -2
  11. package/dist/appTopbar/index.js +31 -0
  12. package/dist/appTopbar/index.js.map +1 -1
  13. package/dist/appTopbar/index.mjs +31 -0
  14. package/dist/appTopbar/index.mjs.map +1 -1
  15. package/dist/blocks/index.d.mts +1 -1
  16. package/dist/blocks/index.d.ts +1 -1
  17. package/dist/blocks/index.js +31 -0
  18. package/dist/blocks/index.mjs +2 -2
  19. package/dist/blocks/pricing/index.mjs +3 -3
  20. package/dist/breadcrumb/index.d.mts +7 -5
  21. package/dist/breadcrumb/index.d.ts +7 -5
  22. package/dist/breadcrumb/index.js +36 -12
  23. package/dist/breadcrumb/index.js.map +1 -1
  24. package/dist/breadcrumb/index.mjs +36 -12
  25. package/dist/breadcrumb/index.mjs.map +1 -1
  26. package/dist/{chunk-CXBN42TF.mjs → chunk-7LAUVLVZ.mjs} +1 -1
  27. package/dist/{chunk-HOE4FCIF.mjs → chunk-DGOT2FVH.mjs} +30 -0
  28. package/dist/{chunk-MH5K6NEO.mjs → chunk-TKSAYWDH.mjs} +1 -1
  29. package/dist/combobox/index.js +44 -35
  30. package/dist/combobox/index.js.map +1 -1
  31. package/dist/combobox/index.mjs +44 -35
  32. package/dist/combobox/index.mjs.map +1 -1
  33. package/dist/commonTypes-52DloiYq.d.mts +7 -0
  34. package/dist/commonTypes-52DloiYq.d.ts +7 -0
  35. package/dist/dataTable/index.js +31 -0
  36. package/dist/dataTable/index.js.map +1 -1
  37. package/dist/dataTable/index.mjs +31 -0
  38. package/dist/dataTable/index.mjs.map +1 -1
  39. package/dist/docsLayout/index.d.mts +1 -1
  40. package/dist/docsLayout/index.d.ts +1 -1
  41. package/dist/dropdownMenu/index.d.mts +9 -5
  42. package/dist/dropdownMenu/index.d.ts +9 -5
  43. package/dist/dropdownMenu/index.js +30 -0
  44. package/dist/dropdownMenu/index.js.map +1 -1
  45. package/dist/dropdownMenu/index.mjs +30 -0
  46. package/dist/dropdownMenu/index.mjs.map +1 -1
  47. package/dist/elements/index.d.mts +8 -6
  48. package/dist/elements/index.d.ts +8 -6
  49. package/dist/elements/index.js +101 -47
  50. package/dist/elements/index.mjs +74 -50
  51. package/dist/index.d.mts +12 -10
  52. package/dist/index.d.ts +12 -10
  53. package/dist/index.js +101 -47
  54. package/dist/index.mjs +206 -152
  55. package/dist/layout/index.d.mts +1 -1
  56. package/dist/layout/index.d.ts +1 -1
  57. package/dist/layout/index.js +31 -0
  58. package/dist/layout/index.mjs +2 -2
  59. package/dist/splitButton/index.d.mts +8 -1
  60. package/dist/splitButton/index.d.ts +8 -1
  61. package/dist/splitButton/index.js +31 -0
  62. package/dist/splitButton/index.js.map +1 -1
  63. package/dist/splitButton/index.mjs +31 -0
  64. package/dist/splitButton/index.mjs.map +1 -1
  65. package/package.json +1 -1
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 useState2, useEffect as useEffect2 } from "react";
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] = useState2(false);
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 useState4, useEffect as useEffect4, useRef as useRef3 } from "react";
2969
+ import React23, { useState as useState5, useEffect as useEffect4, useRef as useRef3 } from "react";
2940
2970
  var BackToTop = ({ ...props }) => {
2941
- const [visible, setVisible] = useState4(false);
2942
- const [rect, _setRect] = useState4(null);
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 useState5, useRef as useRef4, useEffect as useEffect5, forwardRef as forwardRef14 } from "react";
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] = useState5(
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";
@@ -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(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-scroll" }, data.map((item, i) => /* @__PURE__ */ React27.createElement(
3548
- CommandItem,
3577
+ /* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(
3578
+ CommandGroup,
3549
3579
  {
3550
- key: i,
3551
- onSelect: () => {
3552
- const newValue = getProperty(item, valueKey);
3553
- setValue(
3554
- newValue === value ? "" : newValue
3555
- );
3556
- if (props.onChange) {
3557
- props.onChange(
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("polyline", { points: "20 6 9 17 4 12" })
3584
- ),
3585
- renderOption ? renderOption(item) : getProperty(item, labelKey)
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 useState7 } from "react";
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] = useState7(0);
3675
- const [max, setMax] = useState7(0);
3713
+ const [cmp, setCmp] = useState8(0);
3714
+ const [max, setMax] = useState8(0);
3676
3715
  const {
3677
3716
  getRootProps,
3678
3717
  getInputProps,
@@ -4430,24 +4469,39 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
4430
4469
  import React36 from "react";
4431
4470
  var Breadcrumb = ({
4432
4471
  breadcrumbLinks,
4433
- separator = ">"
4472
+ separator = ">",
4473
+ size = "normal"
4434
4474
  }) => {
4435
- return /* @__PURE__ */ React36.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ React36.createElement(
4475
+ const textStyles = {
4476
+ normal: "",
4477
+ small: "hawa-text-sm",
4478
+ xs: "hawa-text-xs"
4479
+ };
4480
+ return /* @__PURE__ */ React36.createElement(
4436
4481
  "div",
4437
4482
  {
4438
- key: index,
4439
- className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
4483
+ className: cn(
4484
+ "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm",
4485
+ textStyles[size]
4486
+ )
4440
4487
  },
4441
- /* @__PURE__ */ React36.createElement(
4442
- "a",
4488
+ breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ React36.createElement(
4489
+ "div",
4443
4490
  {
4444
- href: singleBreadcrumbLink.href,
4445
- className: index + 1 === breadcrumbLinks.length ? "hawa-pointer-events-none" : "hawa-underline-offset-4 hawa-transition-all hover:hawa-text-primary hover:hawa-underline hover:hawa-decoration-2"
4491
+ key: index,
4492
+ className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
4446
4493
  },
4447
- singleBreadcrumbLink.label
4448
- ),
4449
- index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ React36.createElement("div", null, separator) : /* @__PURE__ */ React36.createElement("div", null, separator) : null
4450
- )));
4494
+ /* @__PURE__ */ React36.createElement(
4495
+ "a",
4496
+ {
4497
+ href: singleBreadcrumbLink.href,
4498
+ className: index + 1 === breadcrumbLinks.length ? "hawa-pointer-events-none" : "hawa-underline-offset-4 hawa-transition-all hover:hawa-text-primary hover:hawa-underline hover:hawa-decoration-2"
4499
+ },
4500
+ singleBreadcrumbLink.label
4501
+ ),
4502
+ index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ React36.createElement("div", null, separator) : /* @__PURE__ */ React36.createElement("div", null, separator) : null
4503
+ ))
4504
+ );
4451
4505
  };
4452
4506
 
4453
4507
  // elements/appStores/AppStores.tsx
@@ -4487,7 +4541,7 @@ var AppStores = (props) => {
4487
4541
  };
4488
4542
 
4489
4543
  // elements/badge/Badge.tsx
4490
- import React38, { useEffect as useEffect8, useState as useState9, useRef as useRef7 } from "react";
4544
+ import React38, { useEffect as useEffect8, useState as useState10, useRef as useRef7 } from "react";
4491
4545
  var Badge = ({
4492
4546
  anchor,
4493
4547
  position = "right",
@@ -4495,7 +4549,7 @@ var Badge = ({
4495
4549
  text,
4496
4550
  className
4497
4551
  }) => {
4498
- const [badgePosition, setBadgePosition] = useState9(null);
4552
+ const [badgePosition, setBadgePosition] = useState10(null);
4499
4553
  const indicatorRef = useRef7(null);
4500
4554
  const sizeStyles2 = {
4501
4555
  small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
@@ -4564,7 +4618,7 @@ var BadgedComponent = ({
4564
4618
  };
4565
4619
 
4566
4620
  // elements/phoneInput/PhoneInput.tsx
4567
- import React39, { useState as useState10, useRef as useRef8, useEffect as useEffect9 } from "react";
4621
+ import React39, { useState as useState11, useRef as useRef8, useEffect as useEffect9 } from "react";
4568
4622
 
4569
4623
  // countries.ts
4570
4624
  var countries = [
@@ -6261,8 +6315,8 @@ var countries_default = countries;
6261
6315
 
6262
6316
  // elements/phoneInput/PhoneInput.tsx
6263
6317
  var PhoneInput = ({ labelProps, ...props }) => {
6264
- const [phoneNumber, setPhoneNumber] = useState10("");
6265
- const [countryCode, setCountryCode] = useState10(props.preferredCountry);
6318
+ const [phoneNumber, setPhoneNumber] = useState11("");
6319
+ const [countryCode, setCountryCode] = useState11(props.preferredCountry);
6266
6320
  const inputRef = useRef8(null);
6267
6321
  useEffect9(() => {
6268
6322
  var _a;
@@ -6324,7 +6378,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
6324
6378
  };
6325
6379
 
6326
6380
  // elements/pinInput/PinInput.tsx
6327
- import React40, { useEffect as useEffect10, useState as useState11 } from "react";
6381
+ import React40, { useEffect as useEffect10, useState as useState12 } from "react";
6328
6382
  var PinInput = ({
6329
6383
  label,
6330
6384
  icon,
@@ -6334,7 +6388,7 @@ var PinInput = ({
6334
6388
  inputProps,
6335
6389
  ...props
6336
6390
  }) => {
6337
- const [pin, setPin] = useState11(Array.from(Array(digits)));
6391
+ const [pin, setPin] = useState12(Array.from(Array(digits)));
6338
6392
  const handleKeyDown = (e, index) => {
6339
6393
  let backTo = 0;
6340
6394
  if (e.key === "Backspace") {
@@ -6457,7 +6511,7 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
6457
6511
 
6458
6512
  // elements/colorPicker/ColorPicker.tsx
6459
6513
  import React43, {
6460
- useState as useState12,
6514
+ useState as useState13,
6461
6515
  useEffect as useEffect11
6462
6516
  } from "react";
6463
6517
  var ColorPicker = ({
@@ -6470,7 +6524,7 @@ var ColorPicker = ({
6470
6524
  preview = false,
6471
6525
  ...props
6472
6526
  }) => {
6473
- const [selectedColor, setSelectedColor] = useState12(props.color);
6527
+ const [selectedColor, setSelectedColor] = useState13(props.color);
6474
6528
  useEffect11(() => {
6475
6529
  if (selectedColor && selectedColor[0] !== "#") {
6476
6530
  setSelectedColor(`#${selectedColor}`);
@@ -6753,7 +6807,7 @@ var Pagination = ({
6753
6807
  };
6754
6808
 
6755
6809
  // elements/passwordInput/PasswordInput.tsx
6756
- import React49, { useEffect as useEffect12, useState as useState13 } from "react";
6810
+ import React49, { useEffect as useEffect12, useState as useState14 } from "react";
6757
6811
 
6758
6812
  // icons/Emojis.tsx
6759
6813
  import React46 from "react";
@@ -6969,15 +7023,15 @@ var PasswordInput = ({
6969
7023
  hidePopover,
6970
7024
  ...props
6971
7025
  }) => {
6972
- const [inputValue, setInputValue] = useState13("");
6973
- const [isInputFocused, setIsInputFocused] = useState13(false);
6974
- const [currentStr, setCurrentStr] = useState13(0);
6975
- const [passwordVisible, setPasswordVisible] = useState13(false);
6976
- const [lengthCriteriaMet, setLengthCriteriaMet] = useState13(false);
6977
- const [numberCriteriaMet, setNumberCriteriaMet] = useState13(false);
6978
- const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = useState13(false);
6979
- const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = useState13(false);
6980
- const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = useState13(false);
7026
+ const [inputValue, setInputValue] = useState14("");
7027
+ const [isInputFocused, setIsInputFocused] = useState14(false);
7028
+ const [currentStr, setCurrentStr] = useState14(0);
7029
+ const [passwordVisible, setPasswordVisible] = useState14(false);
7030
+ const [lengthCriteriaMet, setLengthCriteriaMet] = useState14(false);
7031
+ const [numberCriteriaMet, setNumberCriteriaMet] = useState14(false);
7032
+ const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = useState14(false);
7033
+ const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = useState14(false);
7034
+ const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = useState14(false);
6981
7035
  useEffect12(() => {
6982
7036
  const calculateStrength = () => {
6983
7037
  let strengthScore = 0;
@@ -7179,12 +7233,12 @@ var Separator2 = ({
7179
7233
  );
7180
7234
 
7181
7235
  // elements/scrollIndicator/ScrollIndicator.tsx
7182
- import React53, { useState as useState14, useEffect as useEffect13 } from "react";
7236
+ import React53, { useState as useState15, useEffect as useEffect13 } from "react";
7183
7237
  var ScrollIndicator = ({
7184
7238
  anchor,
7185
7239
  inContainer = false
7186
7240
  }) => {
7187
- const [scrollPercentage, setScrollPercentage] = useState14(0);
7241
+ const [scrollPercentage, setScrollPercentage] = useState15(0);
7188
7242
  const onScroll = () => {
7189
7243
  const scrollElement = anchor.current;
7190
7244
  if (scrollElement) {
@@ -7220,15 +7274,15 @@ var ScrollIndicator = ({
7220
7274
  };
7221
7275
 
7222
7276
  // elements/codeBlock/CodeBlock.tsx
7223
- import React54, { useState as useState16 } from "react";
7277
+ import React54, { useState as useState17 } from "react";
7224
7278
  import { Highlight, themes, Prism } from "prism-react-renderer";
7225
7279
 
7226
7280
  // hooks/useClipboard.ts
7227
- import { useState as useState15 } from "react";
7281
+ import { useState as useState16 } from "react";
7228
7282
  function useClipboard({ timeout = 2e3 } = {}) {
7229
- const [error, setError] = useState15(null);
7230
- const [copied, setCopied] = useState15(false);
7231
- const [copyTimeout, setCopyTimeout] = useState15(null);
7283
+ const [error, setError] = useState16(null);
7284
+ const [copied, setCopied] = useState16(false);
7285
+ const [copyTimeout, setCopyTimeout] = useState16(null);
7232
7286
  const handleCopyResult = (value) => {
7233
7287
  clearTimeout(copyTimeout);
7234
7288
  setCopyTimeout(setTimeout(() => setCopied(false), timeout));
@@ -7280,7 +7334,7 @@ var CodeBlock = ({
7280
7334
  ...props
7281
7335
  }) => {
7282
7336
  const clipboard = useClipboard();
7283
- const [selectedTab, setSelectedTab] = useState16(0);
7337
+ const [selectedTab, setSelectedTab] = useState17(0);
7284
7338
  const theme = themes.oceanicNext;
7285
7339
  let widthStyles = {
7286
7340
  full: "hawa-w-full",
@@ -7408,7 +7462,7 @@ var CodeBlock = ({
7408
7462
  };
7409
7463
 
7410
7464
  // elements/carousel/Carousel.tsx
7411
- import React55, { useEffect as useEffect14, useState as useState17 } from "react";
7465
+ import React55, { useEffect as useEffect14, useState as useState18 } from "react";
7412
7466
  import useEmblaCarousel from "embla-carousel-react";
7413
7467
  var Carousel = ({
7414
7468
  items,
@@ -7424,7 +7478,7 @@ var Carousel = ({
7424
7478
  direction,
7425
7479
  loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
7426
7480
  });
7427
- const [selectedIndex, setSelectedIndex] = useState17(0);
7481
+ const [selectedIndex, setSelectedIndex] = useState18(0);
7428
7482
  useEffect14(() => {
7429
7483
  function selectHandler() {
7430
7484
  const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
@@ -7739,14 +7793,14 @@ function Toaster(props) {
7739
7793
  }
7740
7794
 
7741
7795
  // elements/destroyableCard/DestroyableCard.tsx
7742
- import React59, { useRef as useRef9, useState as useState18 } from "react";
7796
+ import React59, { useRef as useRef9, useState as useState19 } from "react";
7743
7797
  var DestroyableCard = ({
7744
7798
  position = "bottom-right",
7745
7799
  fixed,
7746
7800
  direction,
7747
7801
  ...props
7748
7802
  }) => {
7749
- const [closed, setClosed] = useState18(false);
7803
+ const [closed, setClosed] = useState19(false);
7750
7804
  const popUpRef = useRef9(null);
7751
7805
  const boxPosition = {
7752
7806
  "bottom-right": "hawa-right-4 hawa-bottom-4",
@@ -7813,7 +7867,7 @@ var DestroyableCard = ({
7813
7867
  };
7814
7868
 
7815
7869
  // elements/interfaceSettings/InterfaceSettings.tsx
7816
- import React60, { useState as useState19 } from "react";
7870
+ import React60, { useState as useState20 } from "react";
7817
7871
  var InterfaceSettings = ({
7818
7872
  orientation = "horizontal",
7819
7873
  width = "default",
@@ -7821,8 +7875,8 @@ var InterfaceSettings = ({
7821
7875
  handleLanguage,
7822
7876
  ...props
7823
7877
  }) => {
7824
- const [color, setColor] = useState19(props.currentColorMode);
7825
- const [language, setLanguage] = useState19(props.currentLanguage);
7878
+ const [color, setColor] = useState20(props.currentColorMode);
7879
+ const [language, setLanguage] = useState20(props.currentLanguage);
7826
7880
  let orientationStyle = {
7827
7881
  horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
7828
7882
  vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
@@ -8163,7 +8217,7 @@ var Copyrights = (props) => {
8163
8217
  };
8164
8218
 
8165
8219
  // layout/navbar/Navbar.tsx
8166
- import React65, { useState as useState20 } from "react";
8220
+ import React65, { useState as useState21 } from "react";
8167
8221
 
8168
8222
  // elements/collapsible/Collapsible.tsx
8169
8223
  import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
@@ -8179,7 +8233,7 @@ var Navbar = ({
8179
8233
  ...props
8180
8234
  }) => {
8181
8235
  var _a, _b;
8182
- const [isOpen, setIsOpen] = useState20(false);
8236
+ const [isOpen, setIsOpen] = useState21(false);
8183
8237
  return /* @__PURE__ */ React65.createElement("nav", { className: " hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ React65.createElement(
8184
8238
  Collapsible,
8185
8239
  {
@@ -8283,7 +8337,7 @@ var Navbar = ({
8283
8337
  };
8284
8338
 
8285
8339
  // layout/appLayout/AppLayout.tsx
8286
- import React66, { useEffect as useEffect15, useRef as useRef10, useState as useState21 } from "react";
8340
+ import React66, { useEffect as useEffect15, useRef as useRef10, useState as useState22 } from "react";
8287
8341
  var AppLayout = ({
8288
8342
  profileMenuWidth = "default",
8289
8343
  DrawerFooterActions,
@@ -8312,9 +8366,9 @@ var AppLayout = ({
8312
8366
  };
8313
8367
  const ref = useRef10(null);
8314
8368
  const isRTL = direction === "rtl";
8315
- const [openedSidebarItem, setOpenedSidebarItem] = useState21("");
8316
- const [size, setSize] = useState21(1200);
8317
- const [openSideMenu, setOpenSideMenu] = useState21(true);
8369
+ const [openedSidebarItem, setOpenedSidebarItem] = useState22("");
8370
+ const [size, setSize] = useState22(1200);
8371
+ const [openSideMenu, setOpenSideMenu] = useState22(true);
8318
8372
  const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
8319
8373
  useEffect15(() => {
8320
8374
  if (typeof window !== "undefined") {
@@ -8950,9 +9004,9 @@ var MenubarShortcut = ({
8950
9004
  MenubarShortcut.displayname = "MenubarShortcut";
8951
9005
 
8952
9006
  // layout/appTabs/AppTabs.tsx
8953
- import React69, { useState as useState22 } from "react";
9007
+ import React69, { useState as useState23 } from "react";
8954
9008
  var AppTabs = ({ tabs, className }) => {
8955
- const [selectedIndex, setSelectedIndex] = useState22(0);
9009
+ const [selectedIndex, setSelectedIndex] = useState23(0);
8956
9010
  return /* @__PURE__ */ React69.createElement(
8957
9011
  "div",
8958
9012
  {
@@ -8994,12 +9048,12 @@ var AppTabs = ({ tabs, className }) => {
8994
9048
  };
8995
9049
 
8996
9050
  // layout/docsLayout/DocsLayout.tsx
8997
- import React72, { useEffect as useEffect17, useRef as useRef11, useState as useState24 } from "react";
9051
+ import React72, { useEffect as useEffect17, useRef as useRef11, useState as useState25 } from "react";
8998
9052
 
8999
9053
  // hooks/useBreakpoint.ts
9000
- import { useState as useState23, useEffect as useEffect16 } from "react";
9054
+ import { useState as useState24, useEffect as useEffect16 } from "react";
9001
9055
  var useBreakpoint = () => {
9002
- const [breakpoint, setBreakpoint] = useState23(null);
9056
+ const [breakpoint, setBreakpoint] = useState24(null);
9003
9057
  useEffect16(() => {
9004
9058
  if (typeof window !== "undefined") {
9005
9059
  const resize = () => {
@@ -9109,8 +9163,8 @@ var DocsLayout = ({
9109
9163
  if (typeof window == "undefined") {
9110
9164
  size = 1200;
9111
9165
  }
9112
- const [currentPage, setCurrentPage] = useState24("Introduction");
9113
- const [openSideMenu, setOpenSideMenu] = useState24(true);
9166
+ const [currentPage, setCurrentPage] = useState25("Introduction");
9167
+ const [openSideMenu, setOpenSideMenu] = useState25(true);
9114
9168
  useEffect17(() => {
9115
9169
  const handleClickOutside = (event) => {
9116
9170
  if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
@@ -9380,7 +9434,7 @@ var AuthButtons = (props) => {
9380
9434
  };
9381
9435
 
9382
9436
  // blocks/auth/LoginForm.tsx
9383
- import React74, { useState as useState25 } from "react";
9437
+ import React74, { useState as useState26 } from "react";
9384
9438
  import { Controller, useForm } from "react-hook-form";
9385
9439
  import { zodResolver } from "@hookform/resolvers/zod";
9386
9440
  import { parsePhoneNumber } from "libphonenumber-js";
@@ -9392,7 +9446,7 @@ var LoginForm = ({
9392
9446
  ...props
9393
9447
  }) => {
9394
9448
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
9395
- const [passwordVisible, setPasswordVisible] = useState25(false);
9449
+ const [passwordVisible, setPasswordVisible] = useState26(false);
9396
9450
  const thirdPartyAuthTexts = {
9397
9451
  continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
9398
9452
  continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
@@ -9697,7 +9751,7 @@ var LoginForm = ({
9697
9751
  };
9698
9752
 
9699
9753
  // blocks/auth/RegisterForm.tsx
9700
- import React75, { useState as useState26 } from "react";
9754
+ import React75, { useState as useState27 } from "react";
9701
9755
  import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
9702
9756
  import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
9703
9757
  import * as z2 from "zod";
@@ -9709,7 +9763,7 @@ var RegisterForm = ({
9709
9763
  ...props
9710
9764
  }) => {
9711
9765
  var _a, _b, _c, _d, _e, _f, _g, _h;
9712
- const [passwordVisible, setPasswordVisible] = useState26(false);
9766
+ const [passwordVisible, setPasswordVisible] = useState27(false);
9713
9767
  const thirdPartyAuthTexts = {
9714
9768
  continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
9715
9769
  continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
@@ -10146,7 +10200,7 @@ var CheckEmail = ({ texts, handleResend }) => {
10146
10200
  };
10147
10201
 
10148
10202
  // blocks/auth/NewPassword.tsx
10149
- import React78, { useState as useState27 } from "react";
10203
+ import React78, { useState as useState28 } from "react";
10150
10204
  import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
10151
10205
  import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
10152
10206
  import * as z3 from "zod";
@@ -10164,7 +10218,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
10164
10218
  const { handleSubmit, control, formState } = useForm3({
10165
10219
  resolver: zodResolver3(formSchema)
10166
10220
  });
10167
- const [matchError, setMatchError] = useState27(false);
10221
+ const [matchError, setMatchError] = useState28(false);
10168
10222
  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
10223
  "form",
10170
10224
  {
@@ -10304,7 +10358,7 @@ var ResetPasswordForm = ({
10304
10358
  };
10305
10359
 
10306
10360
  // blocks/auth/CodeConfirmation.tsx
10307
- import React80, { useEffect as useEffect18, useState as useState28 } from "react";
10361
+ import React80, { useEffect as useEffect18, useState as useState29 } from "react";
10308
10362
  import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
10309
10363
  import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
10310
10364
  import * as z5 from "zod";
@@ -10316,9 +10370,9 @@ var CodeConfirmation = (props) => {
10316
10370
  const { handleSubmit, control, formState, setValue } = useForm5({
10317
10371
  resolver: zodResolver5(formSchema)
10318
10372
  });
10319
- const [resendTimer, setResendTimer] = useState28(null);
10320
- const [remainingTime, setRemainingTime] = useState28(0);
10321
- const [showResendTimer, setShowResendTimer] = useState28(false);
10373
+ const [resendTimer, setResendTimer] = useState29(null);
10374
+ const [remainingTime, setRemainingTime] = useState29(0);
10375
+ const [showResendTimer, setShowResendTimer] = useState29(false);
10322
10376
  const startResendTimer = () => {
10323
10377
  if (resendTimer !== null) {
10324
10378
  clearInterval(resendTimer);
@@ -10403,7 +10457,7 @@ var CodeConfirmation = (props) => {
10403
10457
  };
10404
10458
 
10405
10459
  // blocks/feedback/UserReferralSource.tsx
10406
- import React81, { useRef as useRef12, useState as useState29 } from "react";
10460
+ import React81, { useRef as useRef12, useState as useState30 } from "react";
10407
10461
  import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
10408
10462
  import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
10409
10463
  import * as z6 from "zod";
@@ -10413,7 +10467,7 @@ var UserReferralSource = ({
10413
10467
  ...props
10414
10468
  }) => {
10415
10469
  var _a, _b;
10416
- const [closed, setClosed] = useState29(false);
10470
+ const [closed, setClosed] = useState30(false);
10417
10471
  const popUpRef = useRef12(null);
10418
10472
  const formSchema = z6.object({
10419
10473
  source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
@@ -10561,15 +10615,15 @@ var UserReferralSource = ({
10561
10615
  };
10562
10616
 
10563
10617
  // blocks/feedback/FeedbackRating.tsx
10564
- import React82, { useEffect as useEffect19, useRef as useRef13, useState as useState30 } from "react";
10618
+ import React82, { useEffect as useEffect19, useRef as useRef13, useState as useState31 } from "react";
10565
10619
  var FeedbackRating = ({
10566
10620
  position = "bottom-right",
10567
10621
  ...props
10568
10622
  }) => {
10569
- const [closed, setClosed] = useState30(false);
10570
- const [answered, setAnswered] = useState30(false);
10571
- const [clickedOption, setClickedOption] = useState30(null);
10572
- const [closingTimer, setClosingTimer] = useState30(5);
10623
+ const [closed, setClosed] = useState31(false);
10624
+ const [answered, setAnswered] = useState31(false);
10625
+ const [clickedOption, setClickedOption] = useState31(null);
10626
+ const [closingTimer, setClosingTimer] = useState31(5);
10573
10627
  const popUpRef = useRef13(null);
10574
10628
  const boxPosition = {
10575
10629
  "bottom-right": "hawa-right-4",
@@ -10675,12 +10729,12 @@ var FeedbackRating = ({
10675
10729
  };
10676
10730
 
10677
10731
  // blocks/feedback/FeedbackEmoji.tsx
10678
- import React83, { useState as useState31 } from "react";
10732
+ import React83, { useState as useState32 } from "react";
10679
10733
  var FeedbackEmoji = (props) => {
10680
- const [selectedEmoji, setSelectedEmoji] = useState31(null);
10681
- const [loadingSubmit, setLoadingSubmit] = useState31(false);
10682
- const [feedbackText, setFeedbackText] = useState31("");
10683
- const [helperText, setHelperText] = useState31(false);
10734
+ const [selectedEmoji, setSelectedEmoji] = useState32(null);
10735
+ const [loadingSubmit, setLoadingSubmit] = useState32(false);
10736
+ const [feedbackText, setFeedbackText] = useState32("");
10737
+ const [helperText, setHelperText] = useState32(false);
10684
10738
  let emojis = [
10685
10739
  { icon: /* @__PURE__ */ React83.createElement(VeryGoodEmoji, null), value: "very-good" },
10686
10740
  { icon: /* @__PURE__ */ React83.createElement(GoodEmoji, null), value: "good" },
@@ -11243,9 +11297,9 @@ var ContactForm = ({
11243
11297
  import React98 from "react";
11244
11298
 
11245
11299
  // blocks/cards/ActionCard.tsx
11246
- import React93, { useState as useState32 } from "react";
11300
+ import React93, { useState as useState33 } from "react";
11247
11301
  var ActionCard = (props) => {
11248
- const [hovered, setHovered] = useState32(false);
11302
+ const [hovered, setHovered] = useState33(false);
11249
11303
  return /* @__PURE__ */ React93.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React93.createElement(
11250
11304
  "div",
11251
11305
  {
@@ -11282,13 +11336,13 @@ var ActionCard = (props) => {
11282
11336
  };
11283
11337
 
11284
11338
  // blocks/cards/AdCard.tsx
11285
- import React94, { useState as useState33, useEffect as useEffect20, useRef as useRef14 } from "react";
11339
+ import React94, { useState as useState34, useEffect as useEffect20, useRef as useRef14 } from "react";
11286
11340
  var AdCard = ({
11287
11341
  orientation = "vertical",
11288
11342
  ...props
11289
11343
  }) => {
11290
11344
  const adRef = useRef14(null);
11291
- const [closed, setClosed] = useState33(false);
11345
+ const [closed, setClosed] = useState34(false);
11292
11346
  let duration = 0;
11293
11347
  useEffect20(() => {
11294
11348
  if (duration) {
@@ -11478,7 +11532,7 @@ var PricingCard = ({
11478
11532
  };
11479
11533
 
11480
11534
  // blocks/cards/ItemCard.tsx
11481
- import React96, { useEffect as useEffect21, useState as useState34 } from "react";
11535
+ import React96, { useEffect as useEffect21, useState as useState35 } from "react";
11482
11536
  var ItemCard = ({
11483
11537
  actions,
11484
11538
  counts,
@@ -11507,7 +11561,7 @@ var ItemCard = ({
11507
11561
  )
11508
11562
  };
11509
11563
  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] = useState34(false);
11564
+ const [openActionHeader, setOpenActionHeader] = useState35(false);
11511
11565
  function handleOpenActionHeader(e) {
11512
11566
  e.stopPropagation();
11513
11567
  setOpenActionHeader(!openActionHeader);
@@ -11839,9 +11893,9 @@ var ComparingPlans = (props) => {
11839
11893
  };
11840
11894
 
11841
11895
  // blocks/pricing/HorizontalPricing.tsx
11842
- import React100, { useState as useState35 } from "react";
11896
+ import React100, { useState as useState36 } from "react";
11843
11897
  var HorizontalPricing = (props) => {
11844
- const [selectedCard, setSelectedCard] = useState35("");
11898
+ const [selectedCard, setSelectedCard] = useState36("");
11845
11899
  let data = [
11846
11900
  { title: "basic", price: "$49", cycle: "/mo" },
11847
11901
  { title: "business", price: "$99", cycle: "/mo" },
@@ -11959,10 +12013,10 @@ import { useEffect as useEffect22, useLayoutEffect } from "react";
11959
12013
  var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect22;
11960
12014
 
11961
12015
  // hooks/useDiscloser.ts
11962
- import { useState as useState36 } from "react";
12016
+ import { useState as useState37 } from "react";
11963
12017
 
11964
12018
  // hooks/useHover.ts
11965
- import { useEffect as useEffect23, useRef as useRef15, useState as useState37 } from "react";
12019
+ import { useEffect as useEffect23, useRef as useRef15, useState as useState38 } from "react";
11966
12020
 
11967
12021
  // hooks/useToast.ts
11968
12022
  import * as React104 from "react";
@@ -12069,10 +12123,10 @@ function useToast() {
12069
12123
  }
12070
12124
 
12071
12125
  // hooks/useCarousel.ts
12072
- import { useState as useState39, useRef as useRef16 } from "react";
12126
+ import { useState as useState40, useRef as useRef16 } from "react";
12073
12127
 
12074
12128
  // hooks/useDialogCarousel.ts
12075
- import { useEffect as useEffect25, useState as useState40 } from "react";
12129
+ import { useEffect as useEffect25, useState as useState41 } from "react";
12076
12130
  import AutoHeight from "embla-carousel-auto-height";
12077
12131
  import useEmblaCarousel2 from "embla-carousel-react";
12078
12132
  var useDialogCarousel = (options) => {
@@ -12080,7 +12134,7 @@ var useDialogCarousel = (options) => {
12080
12134
  { loop: false, watchDrag: false, startIndex: 0, ...options },
12081
12135
  [AutoHeight({ destroyHeight: "fit", active: true })]
12082
12136
  );
12083
- const [canScrollPrev, setCanScrollPrev] = useState40(false);
12137
+ const [canScrollPrev, setCanScrollPrev] = useState41(false);
12084
12138
  const checkCanScrollPrev = () => {
12085
12139
  if (emblaApi) {
12086
12140
  setCanScrollPrev(emblaApi.canScrollPrev());
@@ -12115,10 +12169,10 @@ var useDialogCarousel = (options) => {
12115
12169
  };
12116
12170
 
12117
12171
  // hooks/useDialogSteps.ts
12118
- import { useState as useState41, useEffect as useEffect26, useRef as useRef17 } from "react";
12172
+ import { useState as useState42, useEffect as useEffect26, useRef as useRef17 } from "react";
12119
12173
  var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
12120
- const [currentStep, setCurrentStep] = useState41(initialStep);
12121
- const [dialogHeight, setDialogHeight] = useState41(null);
12174
+ const [currentStep, setCurrentStep] = useState42(initialStep);
12175
+ const [dialogHeight, setDialogHeight] = useState42(null);
12122
12176
  const visibleStepRef = useRef17(null);
12123
12177
  useEffect26(() => {
12124
12178
  if (visibleStepRef.current) {
@@ -12151,9 +12205,9 @@ var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
12151
12205
  };
12152
12206
 
12153
12207
  // hooks/useWindowSize.ts
12154
- import { useEffect as useEffect27, useState as useState42 } from "react";
12208
+ import { useEffect as useEffect27, useState as useState43 } from "react";
12155
12209
  var useWindowSize = () => {
12156
- const [windowSize, setWindowSize] = useState42({
12210
+ const [windowSize, setWindowSize] = useState43({
12157
12211
  width: void 0,
12158
12212
  height: void 0
12159
12213
  });
@@ -12172,7 +12226,7 @@ var useWindowSize = () => {
12172
12226
  };
12173
12227
 
12174
12228
  // hooks/useFocusWithin.ts
12175
- import { useRef as useRef18, useState as useState43, useEffect as useEffect28 } from "react";
12229
+ import { useRef as useRef18, useState as useState44, useEffect as useEffect28 } from "react";
12176
12230
  function containsRelatedTarget(event) {
12177
12231
  if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
12178
12232
  return event.currentTarget.contains(event.relatedTarget);
@@ -12184,7 +12238,7 @@ function useFocusWithin({
12184
12238
  onFocus
12185
12239
  } = {}) {
12186
12240
  const ref = useRef18(null);
12187
- const [focused, _setFocused] = useState43(false);
12241
+ const [focused, _setFocused] = useState44(false);
12188
12242
  const focusedRef = useRef18(false);
12189
12243
  const setFocused = (value) => {
12190
12244
  _setFocused(value);
@@ -12218,7 +12272,7 @@ function useFocusWithin({
12218
12272
  }
12219
12273
 
12220
12274
  // hooks/useMediaQuery.ts
12221
- import { useState as useState44, useEffect as useEffect29, useRef as useRef19 } from "react";
12275
+ import { useState as useState45, useEffect as useEffect29, useRef as useRef19 } from "react";
12222
12276
  function attachMediaListener(query, callback) {
12223
12277
  try {
12224
12278
  query.addEventListener("change", callback);
@@ -12240,7 +12294,7 @@ function getInitialValue(query, initialValue) {
12240
12294
  function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
12241
12295
  getInitialValueInEffect: true
12242
12296
  }) {
12243
- const [matches, setMatches] = useState44(
12297
+ const [matches, setMatches] = useState45(
12244
12298
  getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
12245
12299
  );
12246
12300
  const queryRef = useRef19();
@@ -12259,15 +12313,15 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
12259
12313
  }
12260
12314
 
12261
12315
  // hooks/useScrollPosition.ts
12262
- import { useState as useState45, useEffect as useEffect30 } from "react";
12316
+ import { useState as useState46, useEffect as useEffect30 } from "react";
12263
12317
 
12264
12318
  // hooks/useTable.ts
12265
- import { useState as useState46, useEffect as useEffect31 } from "react";
12319
+ import { useState as useState47, useEffect as useEffect31 } from "react";
12266
12320
 
12267
12321
  // hooks/useTabs.ts
12268
- import { useEffect as useEffect32, useState as useState47 } from "react";
12322
+ import { useEffect as useEffect32, useState as useState48 } from "react";
12269
12323
  function useTabs(initialTab = "") {
12270
- const [activeTab, setActiveTab] = useState47(initialTab);
12324
+ const [activeTab, setActiveTab] = useState48(initialTab);
12271
12325
  useEffect32(() => {
12272
12326
  const handleHashChange = () => {
12273
12327
  const hash = window.location.hash.substring(1);