@sikka/hawa 0.15.18-next → 0.16.0-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/index.mjs CHANGED
@@ -3483,18 +3483,10 @@ var Input = ({
3483
3483
  preview ? "hawa-opacity-100" : "hawa-opacity-0"
3484
3484
  )
3485
3485
  }
3486
- ), /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement("div", { className: cn("hawa-relative") }, props.icon && /* @__PURE__ */ React24.createElement("div", { className: "hawa-absolute hawa-left-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.icon), /* @__PURE__ */ React24.createElement(
3486
+ ), /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement("div", { className: cn("hawa-relative") }, props.startIcon && /* @__PURE__ */ React24.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React24.createElement("div", { className: "hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.endIcon), /* @__PURE__ */ React24.createElement(
3487
3487
  "input",
3488
3488
  {
3489
3489
  required: true,
3490
- className: cn(
3491
- defaultInputStyle,
3492
- " dark:hawa-text-white",
3493
- props.icon && "hawa-pl-10",
3494
- "focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0",
3495
- preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
3496
- props.inputProps?.className
3497
- ),
3498
3490
  dir: props.dir,
3499
3491
  type: props.type,
3500
3492
  value: props.value,
@@ -3503,9 +3495,17 @@ var Input = ({
3503
3495
  defaultValue: props.defaultValue,
3504
3496
  placeholder: props.placeholder,
3505
3497
  disabled: preview,
3506
- style: { height: 40 }
3498
+ style: { height: 40 },
3499
+ className: cn(
3500
+ defaultInputStyle,
3501
+ " dark:hawa-text-white focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0",
3502
+ props.endIcon && "hawa-pe-9",
3503
+ props.startIcon && "hawa-ps-9",
3504
+ preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
3505
+ props.inputProps?.className
3506
+ )
3507
3507
  }
3508
- )), props.iconInside && /* @__PURE__ */ React24.createElement("div", { className: "hawa-absolute hawa-end-2 hawa-top-[41px] hawa-mx-1 hawa--translate-y-1/2" }, props.iconInside), !forceHideHelperText && /* @__PURE__ */ React24.createElement(
3508
+ )), !forceHideHelperText && /* @__PURE__ */ React24.createElement(
3509
3509
  "p",
3510
3510
  {
3511
3511
  className: cn(
@@ -3532,7 +3532,6 @@ import * as DialogPrimitive from "@radix-ui/react-dialog";
3532
3532
  var Dialog = DialogPrimitive.Root;
3533
3533
  var DialogTrigger = DialogPrimitive.Trigger;
3534
3534
  var DialogPortal = ({ ...props }) => /* @__PURE__ */ React25.createElement(DialogPrimitive.Portal, { ...props });
3535
- DialogPortal.displayName = DialogPrimitive.Portal.displayName;
3536
3535
  var DialogOverlay = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3537
3536
  DialogPrimitive.Overlay,
3538
3537
  {
@@ -3544,7 +3543,6 @@ var DialogOverlay = React25.forwardRef(({ className, ...props }, ref) => /* @__P
3544
3543
  ...props
3545
3544
  }
3546
3545
  ));
3547
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
3548
3546
  var DialogContent = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React25.createElement(DialogPortal, null, /* @__PURE__ */ React25.createElement(DialogOverlay, null), /* @__PURE__ */ React25.createElement(
3549
3547
  DialogPrimitive.Content,
3550
3548
  {
@@ -3555,7 +3553,7 @@ var DialogContent = React25.forwardRef(({ className, children, ...props }, ref)
3555
3553
  },
3556
3554
  ref,
3557
3555
  className: cn(
3558
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
3556
+ "hawa-fixed hawa-left-[50%] hawa-transition-all hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
3559
3557
  className
3560
3558
  ),
3561
3559
  ...props
@@ -3590,7 +3588,6 @@ var DialogContent = React25.forwardRef(({ className, children, ...props }, ref)
3590
3588
  /* @__PURE__ */ React25.createElement("span", { className: "hawa-sr-only" }, "Close")
3591
3589
  )
3592
3590
  )));
3593
- DialogContent.displayName = DialogPrimitive.Content.displayName;
3594
3591
  var DialogHeader = ({
3595
3592
  className,
3596
3593
  ...props
@@ -3604,7 +3601,6 @@ var DialogHeader = ({
3604
3601
  ...props
3605
3602
  }
3606
3603
  );
3607
- DialogHeader.displayName = "DialogHeader";
3608
3604
  var DialogTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3609
3605
  DialogPrimitive.Title,
3610
3606
  {
@@ -3616,7 +3612,6 @@ var DialogTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
3616
3612
  ...props
3617
3613
  }
3618
3614
  ));
3619
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
3620
3615
  var DialogDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
3621
3616
  DialogPrimitive.Description,
3622
3617
  {
@@ -3628,7 +3623,6 @@ var DialogDescription = React25.forwardRef(({ className, ...props }, ref) => /*
3628
3623
  ...props
3629
3624
  }
3630
3625
  ));
3631
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
3632
3626
  var DialogFooter = ({
3633
3627
  className,
3634
3628
  ...props
@@ -3642,7 +3636,75 @@ var DialogFooter = ({
3642
3636
  ...props
3643
3637
  }
3644
3638
  );
3639
+ var DialogSteps = ({
3640
+ stepsApi,
3641
+ stepsRef,
3642
+ activeStep,
3643
+ children
3644
+ }) => {
3645
+ const [selectedIndex, setSelectedIndex] = React25.useState(0);
3646
+ const steps = React25.Children.toArray(children);
3647
+ React25.useEffect(() => {
3648
+ if (stepsApi) {
3649
+ stepsApi.reInit();
3650
+ const index = steps.findIndex(
3651
+ (child) => React25.isValidElement(child) && child.props.id === activeStep
3652
+ );
3653
+ if (index !== -1) {
3654
+ stepsApi.scrollTo(index, false);
3655
+ setSelectedIndex(index);
3656
+ }
3657
+ }
3658
+ }, [activeStep, stepsApi, children]);
3659
+ return /* @__PURE__ */ React25.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React25.createElement("div", { ref: stepsRef }, /* @__PURE__ */ React25.createElement(
3660
+ "div",
3661
+ {
3662
+ className: "hawa-flex first-line:",
3663
+ style: {
3664
+ transition: "height 0.2s"
3665
+ }
3666
+ },
3667
+ React25.Children.map(children, (child, index) => /* @__PURE__ */ React25.createElement(
3668
+ "div",
3669
+ {
3670
+ className: cn(
3671
+ " hawa-justify-center hawa-h-fit hawa-flex hawa-items-center hawa-flex-[0_0_100%]"
3672
+ ),
3673
+ key: index
3674
+ },
3675
+ child
3676
+ ))
3677
+ )));
3678
+ };
3679
+ var DialogStep = ({
3680
+ id,
3681
+ children,
3682
+ className,
3683
+ stepRef
3684
+ }) => {
3685
+ return /* @__PURE__ */ React25.createElement(
3686
+ "div",
3687
+ {
3688
+ id,
3689
+ ref: stepRef,
3690
+ className: cn("hawa-w-full hawa-px-1", className)
3691
+ },
3692
+ children
3693
+ );
3694
+ };
3695
+ var DialogBody = ({ children, className }) => {
3696
+ return /* @__PURE__ */ React25.createElement("div", { className: cn("hawa-py-6", className) }, children);
3697
+ };
3698
+ DialogStep.displayName = "DialogStep";
3699
+ DialogBody.displayName = "DialogBody";
3700
+ DialogSteps.displayName = "DialogSteps";
3701
+ DialogHeader.displayName = "DialogHeader";
3645
3702
  DialogFooter.displayName = "DialogFooter";
3703
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
3704
+ DialogPortal.displayName = DialogPrimitive.Portal.displayName;
3705
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
3706
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
3707
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
3646
3708
 
3647
3709
  // components/elements/Command.tsx
3648
3710
  var Command = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React26.createElement(
@@ -4114,14 +4176,14 @@ var Breadcrumb = ({
4114
4176
  };
4115
4177
 
4116
4178
  // components/elements/CodeBlock.tsx
4117
- import React33, { useState as useState11 } from "react";
4179
+ import React33, { useState as useState12 } from "react";
4118
4180
 
4119
4181
  // components/hooks/useClipboard.ts
4120
- import { useState as useState10 } from "react";
4182
+ import { useState as useState11 } from "react";
4121
4183
  function useClipboard({ timeout = 2e3 } = {}) {
4122
- const [error, setError] = useState10(null);
4123
- const [copied, setCopied] = useState10(false);
4124
- const [copyTimeout, setCopyTimeout] = useState10(null);
4184
+ const [error, setError] = useState11(null);
4185
+ const [copied, setCopied] = useState11(false);
4186
+ const [copyTimeout, setCopyTimeout] = useState11(null);
4125
4187
  const handleCopyResult = (value) => {
4126
4188
  clearTimeout(copyTimeout);
4127
4189
  setCopyTimeout(setTimeout(() => setCopied(false), timeout));
@@ -4155,7 +4217,7 @@ var CodeBlock = ({
4155
4217
  ...props
4156
4218
  }) => {
4157
4219
  const clipboard = useClipboard();
4158
- const [selectedTab, setSelectedTab] = useState11(0);
4220
+ const [selectedTab, setSelectedTab] = useState12(0);
4159
4221
  const isDarkMode = props.forcedDarkMode || document.body.classList.contains("dark");
4160
4222
  const theme = isDarkMode ? themes.vsDark : themes.vsLight;
4161
4223
  let widthStyles = {
@@ -4599,7 +4661,7 @@ var Chip = ({
4599
4661
  };
4600
4662
 
4601
4663
  // components/elements/Alert.tsx
4602
- import React38, { useRef as useRef6, useState as useState13, useEffect as useEffect10 } from "react";
4664
+ import React38, { useRef as useRef6, useState as useState14, useEffect as useEffect11 } from "react";
4603
4665
  var Alert = ({
4604
4666
  variant = "normal",
4605
4667
  direction = "ltr",
@@ -4610,8 +4672,8 @@ var Alert = ({
4610
4672
  ...props
4611
4673
  }) => {
4612
4674
  const alertRef = useRef6(null);
4613
- const [closed, setClosed] = useState13(false);
4614
- useEffect10(() => {
4675
+ const [closed, setClosed] = useState14(false);
4676
+ useEffect11(() => {
4615
4677
  if (duration) {
4616
4678
  const timeoutHide = setTimeout(() => {
4617
4679
  setClosed(true);
@@ -4740,14 +4802,14 @@ var Alert = ({
4740
4802
  };
4741
4803
 
4742
4804
  // components/elements/DestroyableCard.tsx
4743
- import React39, { useRef as useRef7, useState as useState14 } from "react";
4805
+ import React39, { useRef as useRef7, useState as useState15 } from "react";
4744
4806
  var DestroyableCard = ({
4745
4807
  position = "bottom-right",
4746
4808
  fixed,
4747
4809
  direction,
4748
4810
  ...props
4749
4811
  }) => {
4750
- const [closed, setClosed] = useState14(false);
4812
+ const [closed, setClosed] = useState15(false);
4751
4813
  const popUpRef = useRef7(null);
4752
4814
  const boxPosition = {
4753
4815
  "bottom-right": "hawa-right-4 hawa-bottom-4",
@@ -4814,7 +4876,7 @@ var DestroyableCard = ({
4814
4876
  };
4815
4877
 
4816
4878
  // components/elements/FileDropzone.tsx
4817
- import React40, { useEffect as useEffect11, useState as useState15 } from "react";
4879
+ import React40, { useEffect as useEffect12, useState as useState16 } from "react";
4818
4880
  import { useDropzone } from "react-dropzone";
4819
4881
  import clsx3 from "clsx";
4820
4882
  var FileDropzone = ({
@@ -4835,8 +4897,8 @@ var FileDropzone = ({
4835
4897
  termsLink,
4836
4898
  privacyLink
4837
4899
  }) => {
4838
- const [cmp, setCmp] = useState15(0);
4839
- const [max, setMax] = useState15(0);
4900
+ const [cmp, setCmp] = useState16(0);
4901
+ const [max, setMax] = useState16(0);
4840
4902
  const {
4841
4903
  getRootProps,
4842
4904
  getInputProps,
@@ -4858,7 +4920,7 @@ var FileDropzone = ({
4858
4920
  );
4859
4921
  }
4860
4922
  });
4861
- useEffect11(
4923
+ useEffect12(
4862
4924
  () => () => {
4863
4925
  files?.forEach((file) => {
4864
4926
  URL.revokeObjectURL(file.preview);
@@ -4866,7 +4928,7 @@ var FileDropzone = ({
4866
4928
  },
4867
4929
  [files]
4868
4930
  );
4869
- useEffect11(() => {
4931
+ useEffect12(() => {
4870
4932
  setFiles(acceptedFiles);
4871
4933
  }, [acceptedFiles, cmp, setFiles]);
4872
4934
  onClearFiles = () => {
@@ -4878,7 +4940,7 @@ var FileDropzone = ({
4878
4940
  acceptedFiles.length = 0;
4879
4941
  setFiles([]);
4880
4942
  };
4881
- useEffect11(() => {
4943
+ useEffect12(() => {
4882
4944
  if (maxSize > 0) {
4883
4945
  const k = 1024;
4884
4946
  const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
@@ -5034,7 +5096,7 @@ var FileDropzone = ({
5034
5096
  };
5035
5097
 
5036
5098
  // components/elements/Carousel.tsx
5037
- import React41, { useEffect as useEffect12, useState as useState16 } from "react";
5099
+ import React41, { useEffect as useEffect13, useState as useState17 } from "react";
5038
5100
  import useEmblaCarousel from "embla-carousel-react";
5039
5101
  var Carousel = (props) => {
5040
5102
  const {
@@ -5048,8 +5110,8 @@ var Carousel = (props) => {
5048
5110
  const [emblaRef, emblaApi] = useEmblaCarousel({
5049
5111
  loop: autoplay ? true : options.loop || false
5050
5112
  });
5051
- const [selectedIndex, setSelectedIndex] = useState16(0);
5052
- useEffect12(() => {
5113
+ const [selectedIndex, setSelectedIndex] = useState17(0);
5114
+ useEffect13(() => {
5053
5115
  function selectHandler() {
5054
5116
  const index = emblaApi?.selectedScrollSnap();
5055
5117
  setSelectedIndex(index || 0);
@@ -5059,7 +5121,7 @@ var Carousel = (props) => {
5059
5121
  emblaApi?.off("select", selectHandler);
5060
5122
  };
5061
5123
  }, [emblaApi]);
5062
- useEffect12(() => {
5124
+ useEffect13(() => {
5063
5125
  let autoplayTimer;
5064
5126
  if (autoplay && emblaApi) {
5065
5127
  autoplayTimer = setInterval(() => {
@@ -5796,10 +5858,10 @@ var Progress = React49.forwardRef(({ className, value, ...props }, ref) => /* @_
5796
5858
  Progress.displayName = ProgressPrimitive.Root.displayName;
5797
5859
 
5798
5860
  // components/elements/BackToTop.tsx
5799
- import React50, { useState as useState18, useEffect as useEffect13, useRef as useRef8 } from "react";
5861
+ import React50, { useState as useState19, useEffect as useEffect14, useRef as useRef8 } from "react";
5800
5862
  var BackToTop = ({ ...props }) => {
5801
- const [visible, setVisible] = useState18(false);
5802
- const [rect, _setRect] = useState18(null);
5863
+ const [visible, setVisible] = useState19(false);
5864
+ const [rect, _setRect] = useState19(null);
5803
5865
  const self = useRef8(null);
5804
5866
  const _rect = useRef8(rect);
5805
5867
  const setRect = (data) => {
@@ -5825,7 +5887,7 @@ var BackToTop = ({ ...props }) => {
5825
5887
  props.anchor.current.scrollTo({ top: 0, behavior: "smooth" });
5826
5888
  }
5827
5889
  };
5828
- useEffect13(() => {
5890
+ useEffect14(() => {
5829
5891
  if (!props.anchor.current)
5830
5892
  return;
5831
5893
  props.anchor.current.addEventListener("scroll", onScroll);
@@ -5890,12 +5952,12 @@ var BackToTop = ({ ...props }) => {
5890
5952
  };
5891
5953
 
5892
5954
  // components/elements/ScrollIndicator.tsx
5893
- import React51, { useState as useState19, useEffect as useEffect14 } from "react";
5955
+ import React51, { useState as useState20, useEffect as useEffect15 } from "react";
5894
5956
  var ScrollIndicator = ({
5895
5957
  anchor,
5896
5958
  inContainer = false
5897
5959
  }) => {
5898
- const [scrollPercentage, setScrollPercentage] = useState19(0);
5960
+ const [scrollPercentage, setScrollPercentage] = useState20(0);
5899
5961
  const onScroll = () => {
5900
5962
  const scrollElement = anchor.current;
5901
5963
  if (scrollElement) {
@@ -5906,7 +5968,7 @@ var ScrollIndicator = ({
5906
5968
  setScrollPercentage(percentageScrolled);
5907
5969
  }
5908
5970
  };
5909
- useEffect14(() => {
5971
+ useEffect15(() => {
5910
5972
  if (!anchor.current)
5911
5973
  return;
5912
5974
  anchor.current.addEventListener("scroll", onScroll);
@@ -5930,7 +5992,7 @@ var ScrollIndicator = ({
5930
5992
  };
5931
5993
 
5932
5994
  // components/elements/Badge.tsx
5933
- import React52, { useEffect as useEffect15, useState as useState20, useRef as useRef9 } from "react";
5995
+ import React52, { useEffect as useEffect16, useState as useState21, useRef as useRef9 } from "react";
5934
5996
  var Badge = ({
5935
5997
  anchor,
5936
5998
  position = "right",
@@ -5938,14 +6000,14 @@ var Badge = ({
5938
6000
  text,
5939
6001
  className
5940
6002
  }) => {
5941
- const [badgePosition, setBadgePosition] = useState20(null);
6003
+ const [badgePosition, setBadgePosition] = useState21(null);
5942
6004
  const indicatorRef = useRef9(null);
5943
6005
  const sizeStyles = {
5944
6006
  small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
5945
6007
  default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
5946
6008
  large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
5947
6009
  };
5948
- useEffect15(() => {
6010
+ useEffect16(() => {
5949
6011
  const handlePositioning = () => {
5950
6012
  if (anchor.current && indicatorRef.current) {
5951
6013
  const rect = anchor.current.getBoundingClientRect();
@@ -6326,14 +6388,14 @@ var Count = (props) => {
6326
6388
  };
6327
6389
 
6328
6390
  // components/elements/InterfaceSettings.tsx
6329
- import React57, { useState as useState21 } from "react";
6391
+ import React57, { useState as useState22 } from "react";
6330
6392
  var InterfaceSettings = ({
6331
6393
  orientation = "horizontal",
6332
6394
  width = "default",
6333
6395
  ...props
6334
6396
  }) => {
6335
- const [color, setColor] = useState21(props.currentColorMode);
6336
- const [language, setLanguage] = useState21(props.currentLanguage);
6397
+ const [color, setColor] = useState22(props.currentColorMode);
6398
+ const [language, setLanguage] = useState22(props.currentLanguage);
6337
6399
  let orientationStyle = {
6338
6400
  horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
6339
6401
  vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
@@ -7000,7 +7062,7 @@ var Copyrights = (props) => {
7000
7062
  };
7001
7063
 
7002
7064
  // components/layout/Navbar.tsx
7003
- import React64, { useState as useState22 } from "react";
7065
+ import React64, { useState as useState23 } from "react";
7004
7066
 
7005
7067
  // components/elements/Collapsible.tsx
7006
7068
  import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
@@ -7015,7 +7077,7 @@ var Navbar = ({
7015
7077
  handleLogoClick,
7016
7078
  ...props
7017
7079
  }) => {
7018
- const [isOpen, setIsOpen] = useState22(false);
7080
+ const [isOpen, setIsOpen] = useState23(false);
7019
7081
  return /* @__PURE__ */ React64.createElement("nav", { className: " hawa-transition-all hawa-sticky hawa-top-2" }, /* @__PURE__ */ React64.createElement(
7020
7082
  Collapsible,
7021
7083
  {
@@ -7117,7 +7179,7 @@ var Navbar = ({
7117
7179
  };
7118
7180
 
7119
7181
  // components/layout/AppLayout.tsx
7120
- import React65, { useEffect as useEffect16, useRef as useRef10, useState as useState23 } from "react";
7182
+ import React65, { useEffect as useEffect17, useRef as useRef10, useState as useState24 } from "react";
7121
7183
  var AppLayout = ({
7122
7184
  direction = "ltr",
7123
7185
  drawerSize = "md",
@@ -7145,11 +7207,11 @@ var AppLayout = ({
7145
7207
  };
7146
7208
  const ref = useRef10(null);
7147
7209
  const isRTL = direction === "rtl";
7148
- const [openedSidebarItem, setOpenedSidebarItem] = useState23("");
7149
- const [size, setSize] = useState23(1200);
7150
- const [openSideMenu, setOpenSideMenu] = useState23(true);
7210
+ const [openedSidebarItem, setOpenedSidebarItem] = useState24("");
7211
+ const [size, setSize] = useState24(1200);
7212
+ const [openSideMenu, setOpenSideMenu] = useState24(true);
7151
7213
  const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
7152
- useEffect16(() => {
7214
+ useEffect17(() => {
7153
7215
  if (typeof window !== "undefined") {
7154
7216
  const resize = () => {
7155
7217
  setSize(window.innerWidth);
@@ -7161,14 +7223,14 @@ var AppLayout = ({
7161
7223
  };
7162
7224
  }
7163
7225
  }, []);
7164
- useEffect16(() => {
7226
+ useEffect17(() => {
7165
7227
  if (size > 600) {
7166
7228
  setOpenSideMenu(keepOpen);
7167
7229
  } else {
7168
7230
  setOpenSideMenu(false);
7169
7231
  }
7170
7232
  }, [size]);
7171
- useEffect16(() => {
7233
+ useEffect17(() => {
7172
7234
  const handleClickOutside = (event) => {
7173
7235
  if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
7174
7236
  setOpenSideMenu(false);
@@ -7777,9 +7839,9 @@ var MenubarShortcut = ({
7777
7839
  MenubarShortcut.displayname = "MenubarShortcut";
7778
7840
 
7779
7841
  // components/layout/AppTabs.tsx
7780
- import React68, { useState as useState24 } from "react";
7842
+ import React68, { useState as useState25 } from "react";
7781
7843
  var AppTabs = ({ tabs, ...props }) => {
7782
- const [selectedIndex, setSelectedIndex] = useState24(0);
7844
+ const [selectedIndex, setSelectedIndex] = useState25(0);
7783
7845
  return /* @__PURE__ */ React68.createElement("div", { className: "hawa-bg-gray-100 hawa-w-full dark:hawa-bg-gray-900 hawa-p-6 hawa-pb-0 hawa-border-b " }, /* @__PURE__ */ React68.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
7784
7846
  const selected = index === selectedIndex;
7785
7847
  return /* @__PURE__ */ React68.createElement(
@@ -7810,13 +7872,13 @@ var AppSingleTab = ({ tab, ...props }) => {
7810
7872
  };
7811
7873
 
7812
7874
  // components/layout/DocsLayout.tsx
7813
- import React71, { useEffect as useEffect18, useRef as useRef11, useState as useState26 } from "react";
7875
+ import React71, { useEffect as useEffect19, useRef as useRef11, useState as useState27 } from "react";
7814
7876
 
7815
7877
  // components/hooks/useBreakpoint.ts
7816
- import { useState as useState25, useEffect as useEffect17 } from "react";
7878
+ import { useState as useState26, useEffect as useEffect18 } from "react";
7817
7879
  var useBreakpoint = () => {
7818
- const [breakpoint, setBreakpoint] = useState25(null);
7819
- useEffect17(() => {
7880
+ const [breakpoint, setBreakpoint] = useState26(null);
7881
+ useEffect18(() => {
7820
7882
  if (typeof window !== "undefined") {
7821
7883
  const resize = () => {
7822
7884
  setBreakpoint(window.innerWidth);
@@ -7925,9 +7987,9 @@ var DocsLayout = ({
7925
7987
  if (typeof window == "undefined") {
7926
7988
  size = 1200;
7927
7989
  }
7928
- const [currentPage, setCurrentPage] = useState26("Introduction");
7929
- const [openSideMenu, setOpenSideMenu] = useState26(true);
7930
- useEffect18(() => {
7990
+ const [currentPage, setCurrentPage] = useState27("Introduction");
7991
+ const [openSideMenu, setOpenSideMenu] = useState27(true);
7992
+ useEffect19(() => {
7931
7993
  const handleClickOutside = (event) => {
7932
7994
  if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
7933
7995
  setOpenSideMenu(false);
@@ -7938,7 +8000,7 @@ var DocsLayout = ({
7938
8000
  document.removeEventListener("click", handleClickOutside, true);
7939
8001
  };
7940
8002
  }, [openSideMenu]);
7941
- useEffect18(() => {
8003
+ useEffect19(() => {
7942
8004
  const handleResize = () => {
7943
8005
  setOpenSideMenu(window.innerWidth > 600 ? true : false);
7944
8006
  };
@@ -7955,7 +8017,7 @@ var DocsLayout = ({
7955
8017
  setCurrentPage(entry.target.id);
7956
8018
  }
7957
8019
  };
7958
- useEffect18(() => {
8020
+ useEffect19(() => {
7959
8021
  observerRef.current = new IntersectionObserver(handleIntersection, {
7960
8022
  threshold: 0.5
7961
8023
  // Adjust threshold as needed to determine when a section is in view
@@ -8099,7 +8161,7 @@ var DocsLayout = ({
8099
8161
  };
8100
8162
 
8101
8163
  // components/blocks/auth/LoginForm.tsx
8102
- import React74, { useState as useState27 } from "react";
8164
+ import React74, { useState as useState28 } from "react";
8103
8165
  import { Controller, useForm } from "react-hook-form";
8104
8166
  import { zodResolver } from "@hookform/resolvers/zod";
8105
8167
  import { parsePhoneNumber } from "libphonenumber-js";
@@ -8275,12 +8337,10 @@ var VeryBadEmoji = () => /* @__PURE__ */ React.createElement(
8275
8337
 
8276
8338
  // components/icons/InputIcons.tsx
8277
8339
  import React73 from "react";
8278
- var EyeIcon = (props) => /* @__PURE__ */ React73.createElement("div", { className: props.classNames }, /* @__PURE__ */ React73.createElement(
8340
+ var EyeIcon = (props) => /* @__PURE__ */ React73.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React73.createElement(
8279
8341
  "svg",
8280
8342
  {
8281
8343
  xmlns: "http://www.w3.org/2000/svg",
8282
- width: "24",
8283
- height: "24",
8284
8344
  viewBox: "0 0 24 24",
8285
8345
  fill: "none",
8286
8346
  stroke: "currentColor",
@@ -8291,12 +8351,10 @@ var EyeIcon = (props) => /* @__PURE__ */ React73.createElement("div", { classNam
8291
8351
  /* @__PURE__ */ React73.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
8292
8352
  /* @__PURE__ */ React73.createElement("circle", { cx: "12", cy: "12", r: "3" })
8293
8353
  ));
8294
- var HiddenEyeIcon = (props) => /* @__PURE__ */ React73.createElement("div", { className: props.classNames }, /* @__PURE__ */ React73.createElement(
8354
+ var HiddenEyeIcon = (props) => /* @__PURE__ */ React73.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React73.createElement(
8295
8355
  "svg",
8296
8356
  {
8297
8357
  xmlns: "http://www.w3.org/2000/svg",
8298
- width: "24",
8299
- height: "24",
8300
8358
  viewBox: "0 0 24 24",
8301
8359
  fill: "none",
8302
8360
  stroke: "currentColor",
@@ -8353,7 +8411,7 @@ var LoginForm = ({
8353
8411
  passwordLength = 8,
8354
8412
  ...props
8355
8413
  }) => {
8356
- const [passwordVisible, setPasswordVisible] = useState27(false);
8414
+ const [passwordVisible, setPasswordVisible] = useState28(false);
8357
8415
  const thirdPartyAuthTexts = {
8358
8416
  continueWithGoogle: texts?.continueWithGoogle,
8359
8417
  continueWithTwitter: texts?.continueWithTwitter,
@@ -8436,13 +8494,13 @@ var LoginForm = ({
8436
8494
  autoComplete: "current-password",
8437
8495
  type: passwordVisible ? "text" : "password",
8438
8496
  label: texts?.password?.label || "Password",
8439
- iconInside: /* @__PURE__ */ React74.createElement(
8497
+ endIcon: /* @__PURE__ */ React74.createElement(
8440
8498
  "div",
8441
8499
  {
8442
8500
  className: "hawa-cursor-pointer",
8443
8501
  onClick: () => setPasswordVisible(!passwordVisible)
8444
8502
  },
8445
- passwordVisible ? /* @__PURE__ */ React74.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React74.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" })
8503
+ passwordVisible ? /* @__PURE__ */ React74.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React74.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
8446
8504
  ),
8447
8505
  placeholder: texts?.password?.placeholder || "Enter your password",
8448
8506
  helperText: formState.errors.password?.message,
@@ -8490,13 +8548,13 @@ var LoginForm = ({
8490
8548
  autoComplete: "current-password",
8491
8549
  type: passwordVisible ? "text" : "password",
8492
8550
  label: texts?.password?.label,
8493
- iconInside: /* @__PURE__ */ React74.createElement(
8551
+ endIcon: /* @__PURE__ */ React74.createElement(
8494
8552
  "div",
8495
8553
  {
8496
8554
  className: "hawa-cursor-pointer",
8497
8555
  onClick: () => setPasswordVisible(!passwordVisible)
8498
8556
  },
8499
- passwordVisible ? /* @__PURE__ */ React74.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React74.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" })
8557
+ passwordVisible ? /* @__PURE__ */ React74.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React74.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
8500
8558
  ),
8501
8559
  placeholder: texts?.password?.placeholder || "Enter your password",
8502
8560
  helperText: formState.errors.password?.message,
@@ -8627,12 +8685,12 @@ var LoginForm = ({
8627
8685
  };
8628
8686
 
8629
8687
  // components/blocks/auth/RegisterForm.tsx
8630
- import React75, { useState as useState28 } from "react";
8688
+ import React75, { useState as useState29 } from "react";
8631
8689
  import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
8632
8690
  import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
8633
8691
  import * as z2 from "zod";
8634
8692
  var RegisterForm = ({ texts, ...props }) => {
8635
- const [passwordVisible, setPasswordVisible] = useState28(false);
8693
+ const [passwordVisible, setPasswordVisible] = useState29(false);
8636
8694
  const thirdPartyAuthTexts = {
8637
8695
  continueWithGoogle: texts?.continueWithGoogle,
8638
8696
  continueWithTwitter: texts?.continueWithTwitter,
@@ -8782,13 +8840,13 @@ var RegisterForm = ({ texts, ...props }) => {
8782
8840
  {
8783
8841
  width: "full",
8784
8842
  type: passwordVisible ? "text" : "password",
8785
- iconInside: /* @__PURE__ */ React75.createElement(
8843
+ endIcon: /* @__PURE__ */ React75.createElement(
8786
8844
  "div",
8787
8845
  {
8788
8846
  className: "hawa-cursor-pointer",
8789
8847
  onClick: () => setPasswordVisible(!passwordVisible)
8790
8848
  },
8791
- passwordVisible ? /* @__PURE__ */ React75.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React75.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" }),
8849
+ passwordVisible ? /* @__PURE__ */ React75.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React75.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
8792
8850
  " "
8793
8851
  ),
8794
8852
  autoComplete: "new-password",
@@ -9001,7 +9059,7 @@ var CheckEmail = ({ texts, handleResend }) => {
9001
9059
  };
9002
9060
 
9003
9061
  // components/blocks/auth/NewPassword.tsx
9004
- import React78, { useState as useState29 } from "react";
9062
+ import React78, { useState as useState30 } from "react";
9005
9063
  import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
9006
9064
  import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
9007
9065
  import * as z3 from "zod";
@@ -9018,7 +9076,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
9018
9076
  const { handleSubmit, control, formState } = useForm3({
9019
9077
  resolver: zodResolver3(formSchema)
9020
9078
  });
9021
- const [matchError, setMatchError] = useState29(false);
9079
+ const [matchError, setMatchError] = useState30(false);
9022
9080
  return /* @__PURE__ */ React78.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ React78.createElement(Alert, { text: texts?.confirm?.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React78.createElement(CardContent, { headless: true }, /* @__PURE__ */ React78.createElement("div", { className: "hawa-text-center" }, texts?.passwordChanged)) : /* @__PURE__ */ React78.createElement(
9023
9081
  "form",
9024
9082
  {
@@ -9143,7 +9201,7 @@ var ResetPasswordForm = (props) => {
9143
9201
  };
9144
9202
 
9145
9203
  // components/blocks/auth/CodeConfirmation.tsx
9146
- import React80, { useEffect as useEffect19, useState as useState30 } from "react";
9204
+ import React80, { useEffect as useEffect20, useState as useState31 } from "react";
9147
9205
  import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
9148
9206
  import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
9149
9207
  import * as z5 from "zod";
@@ -9154,9 +9212,9 @@ var CodeConfirmation = (props) => {
9154
9212
  const { handleSubmit, control, formState, setValue } = useForm5({
9155
9213
  resolver: zodResolver5(formSchema)
9156
9214
  });
9157
- const [resendTimer, setResendTimer] = useState30(null);
9158
- const [remainingTime, setRemainingTime] = useState30(0);
9159
- const [showResendTimer, setShowResendTimer] = useState30(false);
9215
+ const [resendTimer, setResendTimer] = useState31(null);
9216
+ const [remainingTime, setRemainingTime] = useState31(0);
9217
+ const [showResendTimer, setShowResendTimer] = useState31(false);
9160
9218
  const startResendTimer = () => {
9161
9219
  if (resendTimer !== null) {
9162
9220
  clearInterval(resendTimer);
@@ -9178,7 +9236,7 @@ var CodeConfirmation = (props) => {
9178
9236
  }, 1e3);
9179
9237
  setResendTimer(newTimer);
9180
9238
  };
9181
- useEffect19(() => {
9239
+ useEffect20(() => {
9182
9240
  return () => {
9183
9241
  if (resendTimer !== null) {
9184
9242
  clearInterval(resendTimer);
@@ -9238,7 +9296,7 @@ var CodeConfirmation = (props) => {
9238
9296
  };
9239
9297
 
9240
9298
  // components/blocks/feedback/UserReferralSource.tsx
9241
- import React81, { useRef as useRef12, useState as useState31 } from "react";
9299
+ import React81, { useRef as useRef12, useState as useState32 } from "react";
9242
9300
  import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
9243
9301
  import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
9244
9302
  import * as z6 from "zod";
@@ -9247,7 +9305,7 @@ var UserReferralSource = ({
9247
9305
  options = [],
9248
9306
  ...props
9249
9307
  }) => {
9250
- const [closed, setClosed] = useState31(false);
9308
+ const [closed, setClosed] = useState32(false);
9251
9309
  const popUpRef = useRef12(null);
9252
9310
  const formSchema = z6.object({
9253
9311
  source: z6.string({ required_error: props.texts?.pleaseSelectOption }),
@@ -9375,21 +9433,21 @@ var UserReferralSource = ({
9375
9433
  };
9376
9434
 
9377
9435
  // components/blocks/feedback/FeedbackRating.tsx
9378
- import React82, { useEffect as useEffect21, useRef as useRef13, useState as useState32 } from "react";
9436
+ import React82, { useEffect as useEffect22, useRef as useRef13, useState as useState33 } from "react";
9379
9437
  var FeedbackRating = ({
9380
9438
  position = "bottom-right",
9381
9439
  ...props
9382
9440
  }) => {
9383
- const [closed, setClosed] = useState32(false);
9384
- const [answered, setAnswered] = useState32(false);
9385
- const [clickedOption, setClickedOption] = useState32(null);
9386
- const [closingTimer, setClosingTimer] = useState32(5);
9441
+ const [closed, setClosed] = useState33(false);
9442
+ const [answered, setAnswered] = useState33(false);
9443
+ const [clickedOption, setClickedOption] = useState33(null);
9444
+ const [closingTimer, setClosingTimer] = useState33(5);
9387
9445
  const popUpRef = useRef13(null);
9388
9446
  const boxPosition = {
9389
9447
  "bottom-right": "hawa-right-4",
9390
9448
  "bottom-left": "hawa-left-4"
9391
9449
  };
9392
- useEffect21(() => {
9450
+ useEffect22(() => {
9393
9451
  const timeoutHide = setTimeout(() => {
9394
9452
  if (closingTimer >= 0) {
9395
9453
  setClosingTimer(closingTimer - 1);
@@ -9488,12 +9546,12 @@ var FeedbackRating = ({
9488
9546
  };
9489
9547
 
9490
9548
  // components/blocks/feedback/FeedbackEmoji.tsx
9491
- import React83, { useState as useState33 } from "react";
9549
+ import React83, { useState as useState34 } from "react";
9492
9550
  var FeedbackEmoji = (props) => {
9493
- const [selectedEmoji, setSelectedEmoji] = useState33(null);
9494
- const [loadingSubmit, setLoadingSubmit] = useState33(false);
9495
- const [feedbackText, setFeedbackText] = useState33("");
9496
- const [helperText, setHelperText] = useState33(false);
9551
+ const [selectedEmoji, setSelectedEmoji] = useState34(null);
9552
+ const [loadingSubmit, setLoadingSubmit] = useState34(false);
9553
+ const [feedbackText, setFeedbackText] = useState34("");
9554
+ const [helperText, setHelperText] = useState34(false);
9497
9555
  let emojis = [
9498
9556
  { icon: /* @__PURE__ */ React83.createElement(VeryGoodEmoji, null), value: "very-good" },
9499
9557
  { icon: /* @__PURE__ */ React83.createElement(GoodEmoji, null), value: "good" },
@@ -9860,10 +9918,10 @@ var PricingPlans = (props) => {
9860
9918
  };
9861
9919
 
9862
9920
  // components/blocks/pricing/ComparingPlans.tsx
9863
- import React93, { useState as useState34 } from "react";
9921
+ import React93, { useState as useState35 } from "react";
9864
9922
  var ComparingPlans = (props) => {
9865
- const [currentCurrency, setCurrentCurrency] = useState34("sar");
9866
- const [currentCycle, setCurrentCycle] = useState34("month");
9923
+ const [currentCurrency, setCurrentCurrency] = useState35("sar");
9924
+ const [currentCycle, setCurrentCycle] = useState35("month");
9867
9925
  return /* @__PURE__ */ React93.createElement("div", { id: "detailed-pricing", className: "hawa-w-full hawa-overflow-x-auto" }, /* @__PURE__ */ React93.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React93.createElement(
9868
9926
  Radio,
9869
9927
  {
@@ -9921,9 +9979,9 @@ var ComparingPlans = (props) => {
9921
9979
  };
9922
9980
 
9923
9981
  // components/blocks/pricing/HorizontalPricing.tsx
9924
- import React94, { useState as useState35 } from "react";
9982
+ import React94, { useState as useState36 } from "react";
9925
9983
  var HorizontalPricing = (props) => {
9926
- const [selectedCard, setSelectedCard] = useState35("");
9984
+ const [selectedCard, setSelectedCard] = useState36("");
9927
9985
  let data = [
9928
9986
  { title: "basic", price: "$49", cycle: "/mo" },
9929
9987
  { title: "business", price: "$99", cycle: "/mo" },
@@ -10034,26 +10092,31 @@ var Usage = (props) => {
10034
10092
  };
10035
10093
 
10036
10094
  // components/hooks/useIsomorphicEffect.ts
10037
- import { useEffect as useEffect22, useLayoutEffect } from "react";
10038
- var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect22;
10095
+ import { useEffect as useEffect23, useLayoutEffect } from "react";
10096
+ var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect23;
10039
10097
 
10040
10098
  // components/hooks/useDiscloser.ts
10041
- import { useState as useState36 } from "react";
10099
+ import { useState as useState37 } from "react";
10042
10100
 
10043
10101
  // components/hooks/useHover.ts
10044
- import { useEffect as useEffect23, useRef as useRef14, useState as useState37 } from "react";
10102
+ import { useEffect as useEffect24, useRef as useRef14, useState as useState38 } from "react";
10045
10103
 
10046
10104
  // components/hooks/useCarousel.ts
10047
- import { useState as useState38, useRef as useRef15 } from "react";
10105
+ import { useState as useState39, useRef as useRef15 } from "react";
10106
+
10107
+ // components/hooks/useDialogSteps.ts
10108
+ import { useState as useState40 } from "react";
10109
+ import useEmblaCarousel2 from "embla-carousel-react";
10110
+ import AutoHeight from "embla-carousel-auto-height";
10048
10111
 
10049
10112
  // components/hooks/useWindowSize.ts
10050
- import { useEffect as useEffect24, useState as useState39 } from "react";
10113
+ import { useEffect as useEffect26, useState as useState41 } from "react";
10051
10114
  var useWindowSize = () => {
10052
- const [windowSize, setWindowSize] = useState39({
10115
+ const [windowSize, setWindowSize] = useState41({
10053
10116
  width: void 0,
10054
10117
  height: void 0
10055
10118
  });
10056
- useEffect24(() => {
10119
+ useEffect26(() => {
10057
10120
  function handleResize() {
10058
10121
  setWindowSize({
10059
10122
  width: window.innerWidth,
@@ -10068,7 +10131,7 @@ var useWindowSize = () => {
10068
10131
  };
10069
10132
 
10070
10133
  // components/hooks/useFocusWithin.ts
10071
- import { useRef as useRef16, useState as useState40, useEffect as useEffect25 } from "react";
10134
+ import { useRef as useRef16, useState as useState42, useEffect as useEffect27 } from "react";
10072
10135
  function containsRelatedTarget(event) {
10073
10136
  if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
10074
10137
  return event.currentTarget.contains(event.relatedTarget);
@@ -10080,7 +10143,7 @@ function useFocusWithin({
10080
10143
  onFocus
10081
10144
  } = {}) {
10082
10145
  const ref = useRef16(null);
10083
- const [focused, _setFocused] = useState40(false);
10146
+ const [focused, _setFocused] = useState42(false);
10084
10147
  const focusedRef = useRef16(false);
10085
10148
  const setFocused = (value) => {
10086
10149
  _setFocused(value);
@@ -10098,7 +10161,7 @@ function useFocusWithin({
10098
10161
  onBlur?.(event);
10099
10162
  }
10100
10163
  };
10101
- useEffect25(() => {
10164
+ useEffect27(() => {
10102
10165
  if (ref.current) {
10103
10166
  ref.current.addEventListener("focusin", handleFocusIn);
10104
10167
  ref.current.addEventListener("focusout", handleFocusOut);
@@ -10113,7 +10176,7 @@ function useFocusWithin({
10113
10176
  }
10114
10177
 
10115
10178
  // components/hooks/useMediaQuery.ts
10116
- import { useState as useState41, useEffect as useEffect26, useRef as useRef17 } from "react";
10179
+ import { useState as useState43, useEffect as useEffect28, useRef as useRef17 } from "react";
10117
10180
  function attachMediaListener(query, callback) {
10118
10181
  try {
10119
10182
  query.addEventListener("change", callback);
@@ -10135,11 +10198,11 @@ function getInitialValue(query, initialValue) {
10135
10198
  function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
10136
10199
  getInitialValueInEffect: true
10137
10200
  }) {
10138
- const [matches, setMatches] = useState41(
10201
+ const [matches, setMatches] = useState43(
10139
10202
  getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
10140
10203
  );
10141
10204
  const queryRef = useRef17();
10142
- useEffect26(() => {
10205
+ useEffect28(() => {
10143
10206
  if ("matchMedia" in window) {
10144
10207
  queryRef.current = window.matchMedia(query);
10145
10208
  setMatches(queryRef.current.matches);
@@ -10154,16 +10217,16 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
10154
10217
  }
10155
10218
 
10156
10219
  // components/hooks/useScrollPosition.ts
10157
- import { useState as useState42, useEffect as useEffect27 } from "react";
10220
+ import { useState as useState44, useEffect as useEffect29 } from "react";
10158
10221
 
10159
10222
  // components/hooks/useTable.ts
10160
- import { useState as useState43, useEffect as useEffect28 } from "react";
10223
+ import { useState as useState45, useEffect as useEffect30 } from "react";
10161
10224
 
10162
10225
  // components/hooks/useTabs.ts
10163
- import { useEffect as useEffect29, useState as useState44 } from "react";
10226
+ import { useEffect as useEffect31, useState as useState46 } from "react";
10164
10227
  function useTabs(initialTab = "") {
10165
- const [activeTab, setActiveTab] = useState44(initialTab);
10166
- useEffect29(() => {
10228
+ const [activeTab, setActiveTab] = useState46(initialTab);
10229
+ useEffect31(() => {
10167
10230
  const handleHashChange = () => {
10168
10231
  const hash = window.location.hash.substring(1);
10169
10232
  setActiveTab(hash || initialTab);
@@ -10233,10 +10296,14 @@ export {
10233
10296
  DataTable,
10234
10297
  DestroyableCard,
10235
10298
  Dialog,
10299
+ DialogBody,
10236
10300
  DialogContent,
10237
10301
  DialogDescription,
10238
10302
  DialogFooter,
10239
10303
  DialogHeader,
10304
+ DialogPortal,
10305
+ DialogStep,
10306
+ DialogSteps,
10240
10307
  DialogTitle,
10241
10308
  DialogTrigger,
10242
10309
  DocsLayout,