@sikka/hawa 0.15.19-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.d.mts CHANGED
@@ -388,6 +388,10 @@ declare const SplitButton: React$1.FC<SplitButtonProps>;
388
388
 
389
389
  declare const Dialog: React$1.FC<SheetPrimitive.DialogProps>;
390
390
  declare const DialogTrigger: React$1.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
391
+ declare const DialogPortal: {
392
+ ({ ...props }: SheetPrimitive.DialogPortalProps): React$1.JSX.Element;
393
+ displayName: string | undefined;
394
+ };
391
395
  declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
392
396
  persist?: boolean | undefined;
393
397
  } & React$1.RefAttributes<HTMLDivElement>>;
@@ -401,6 +405,25 @@ declare const DialogFooter: {
401
405
  ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
402
406
  displayName: string;
403
407
  };
408
+ interface DialogStepsProps {
409
+ activeStep: string;
410
+ children: React$1.ReactNode;
411
+ stepsApi?: any;
412
+ stepsRef?: any;
413
+ }
414
+ declare const DialogSteps: React$1.FC<DialogStepsProps>;
415
+ interface DialogStepProps {
416
+ id: string;
417
+ children: React$1.ReactNode;
418
+ className?: string;
419
+ stepRef?: any;
420
+ }
421
+ declare const DialogStep: React$1.FC<DialogStepProps>;
422
+ interface DialogBodyProps {
423
+ children: React$1.ReactNode;
424
+ className?: string;
425
+ }
426
+ declare const DialogBody: React$1.FC<DialogBodyProps>;
404
427
 
405
428
  interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
406
429
  clickable?: boolean;
@@ -1754,4 +1777,4 @@ declare function useTabs(initialTab?: string): {
1754
1777
  handleTabChange: (index: any) => void;
1755
1778
  };
1756
1779
 
1757
- export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppLayoutSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useIsomorphicEffect, useMediaQuery, useTabs, useToast, useWindowSize };
1780
+ export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppLayoutSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useIsomorphicEffect, useMediaQuery, useTabs, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -388,6 +388,10 @@ declare const SplitButton: React$1.FC<SplitButtonProps>;
388
388
 
389
389
  declare const Dialog: React$1.FC<SheetPrimitive.DialogProps>;
390
390
  declare const DialogTrigger: React$1.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
391
+ declare const DialogPortal: {
392
+ ({ ...props }: SheetPrimitive.DialogPortalProps): React$1.JSX.Element;
393
+ displayName: string | undefined;
394
+ };
391
395
  declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
392
396
  persist?: boolean | undefined;
393
397
  } & React$1.RefAttributes<HTMLDivElement>>;
@@ -401,6 +405,25 @@ declare const DialogFooter: {
401
405
  ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
402
406
  displayName: string;
403
407
  };
408
+ interface DialogStepsProps {
409
+ activeStep: string;
410
+ children: React$1.ReactNode;
411
+ stepsApi?: any;
412
+ stepsRef?: any;
413
+ }
414
+ declare const DialogSteps: React$1.FC<DialogStepsProps>;
415
+ interface DialogStepProps {
416
+ id: string;
417
+ children: React$1.ReactNode;
418
+ className?: string;
419
+ stepRef?: any;
420
+ }
421
+ declare const DialogStep: React$1.FC<DialogStepProps>;
422
+ interface DialogBodyProps {
423
+ children: React$1.ReactNode;
424
+ className?: string;
425
+ }
426
+ declare const DialogBody: React$1.FC<DialogBodyProps>;
404
427
 
405
428
  interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
406
429
  clickable?: boolean;
@@ -1754,4 +1777,4 @@ declare function useTabs(initialTab?: string): {
1754
1777
  handleTabChange: (index: any) => void;
1755
1778
  };
1756
1779
 
1757
- export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppLayoutSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useIsomorphicEffect, useMediaQuery, useTabs, useToast, useWindowSize };
1780
+ export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppLayoutSidebarItemProps, AppStores, AppTabs, AppTopbar, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, ChipColors, ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, SplitButton, Stats, StopPropagationWrapper, SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useIsomorphicEffect, useMediaQuery, useTabs, useToast, useWindowSize };
package/dist/index.js CHANGED
@@ -493,6 +493,9 @@ __export(components_exports, {
493
493
  Dialog: function() {
494
494
  return Dialog;
495
495
  },
496
+ DialogBody: function() {
497
+ return DialogBody;
498
+ },
496
499
  DialogContent: function() {
497
500
  return DialogContent;
498
501
  },
@@ -505,6 +508,15 @@ __export(components_exports, {
505
508
  DialogHeader: function() {
506
509
  return DialogHeader;
507
510
  },
511
+ DialogPortal: function() {
512
+ return DialogPortal;
513
+ },
514
+ DialogStep: function() {
515
+ return DialogStep;
516
+ },
517
+ DialogSteps: function() {
518
+ return DialogSteps;
519
+ },
508
520
  DialogTitle: function() {
509
521
  return DialogTitle;
510
522
  },
@@ -4108,7 +4120,6 @@ var DialogPortal = function(_param) /* @__PURE__ */ {
4108
4120
  var props = _extends({}, _object_destructuring_empty(_param));
4109
4121
  return React25.createElement(DialogPrimitive.Portal, _object_spread({}, props));
4110
4122
  };
4111
- DialogPortal.displayName = DialogPrimitive.Portal.displayName;
4112
4123
  var DialogOverlay = React25.forwardRef(function(_param, ref) /* @__PURE__ */ {
4113
4124
  var className = _param.className, props = _object_without_properties(_param, [
4114
4125
  "className"
@@ -4118,7 +4129,6 @@ var DialogOverlay = React25.forwardRef(function(_param, ref) /* @__PURE__ */ {
4118
4129
  className: cn("hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm 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", className)
4119
4130
  }, props));
4120
4131
  });
4121
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
4122
4132
  var DialogContent = React25.forwardRef(function(_param, ref) /* @__PURE__ */ {
4123
4133
  var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
4124
4134
  "className",
@@ -4131,7 +4141,7 @@ var DialogContent = React25.forwardRef(function(_param, ref) /* @__PURE__ */ {
4131
4141
  }
4132
4142
  },
4133
4143
  ref: ref,
4134
- className: cn("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", className)
4144
+ className: cn("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", className)
4135
4145
  }, props), children, /* @__PURE__ */ React25.createElement(DialogPrimitive.Close, {
4136
4146
  className: cn("hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground", props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4")
4137
4147
  }, /* @__PURE__ */ React25.createElement("svg", {
@@ -4148,7 +4158,6 @@ var DialogContent = React25.forwardRef(function(_param, ref) /* @__PURE__ */ {
4148
4158
  className: "hawa-sr-only"
4149
4159
  }, "Close"))));
4150
4160
  });
4151
- DialogContent.displayName = DialogPrimitive.Content.displayName;
4152
4161
  var DialogHeader = function(_param) /* @__PURE__ */ {
4153
4162
  var className = _param.className, props = _object_without_properties(_param, [
4154
4163
  "className"
@@ -4157,7 +4166,6 @@ var DialogHeader = function(_param) /* @__PURE__ */ {
4157
4166
  className: cn("hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-text-center sm:hawa-text-left", className)
4158
4167
  }, props));
4159
4168
  };
4160
- DialogHeader.displayName = "DialogHeader";
4161
4169
  var DialogTitle = React25.forwardRef(function(_param, ref) /* @__PURE__ */ {
4162
4170
  var className = _param.className, props = _object_without_properties(_param, [
4163
4171
  "className"
@@ -4167,7 +4175,6 @@ var DialogTitle = React25.forwardRef(function(_param, ref) /* @__PURE__ */ {
4167
4175
  className: cn("hawa-text-start hawa-text-lg hawa-font-semibold hawa-leading-none hawa-tracking-tight", className)
4168
4176
  }, props));
4169
4177
  });
4170
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
4171
4178
  var DialogDescription = React25.forwardRef(function(_param, ref) /* @__PURE__ */ {
4172
4179
  var className = _param.className, props = _object_without_properties(_param, [
4173
4180
  "className"
@@ -4177,7 +4184,6 @@ var DialogDescription = React25.forwardRef(function(_param, ref) /* @__PURE__ */
4177
4184
  className: cn("hawa-text-start hawa-text-sm hawa-text-muted-foreground", className)
4178
4185
  }, props));
4179
4186
  });
4180
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
4181
4187
  var DialogFooter = function(_param) /* @__PURE__ */ {
4182
4188
  var className = _param.className, props = _object_without_properties(_param, [
4183
4189
  "className"
@@ -4186,7 +4192,66 @@ var DialogFooter = function(_param) /* @__PURE__ */ {
4186
4192
  className: cn("hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-gap-2", className)
4187
4193
  }, props));
4188
4194
  };
4195
+ var DialogSteps = function(param) {
4196
+ var stepsApi = param.stepsApi, stepsRef = param.stepsRef, activeStep = param.activeStep, children = param.children;
4197
+ var _React25_useState = _sliced_to_array(React25.useState(0), 2), selectedIndex = _React25_useState[0], setSelectedIndex = _React25_useState[1];
4198
+ var steps = React25.Children.toArray(children);
4199
+ React25.useEffect(function() {
4200
+ if (stepsApi) {
4201
+ stepsApi.reInit();
4202
+ var index = steps.findIndex(function(child) {
4203
+ return React25.isValidElement(child) && child.props.id === activeStep;
4204
+ });
4205
+ if (index !== -1) {
4206
+ stepsApi.scrollTo(index, false);
4207
+ setSelectedIndex(index);
4208
+ }
4209
+ }
4210
+ }, [
4211
+ activeStep,
4212
+ stepsApi,
4213
+ children
4214
+ ]);
4215
+ return /* @__PURE__ */ React25.createElement("div", {
4216
+ className: "hawa-overflow-hidden"
4217
+ }, /* @__PURE__ */ React25.createElement("div", {
4218
+ ref: stepsRef
4219
+ }, /* @__PURE__ */ React25.createElement("div", {
4220
+ className: "hawa-flex first-line:",
4221
+ style: {
4222
+ transition: "height 0.2s"
4223
+ }
4224
+ }, React25.Children.map(children, function(child, index) {
4225
+ return /* @__PURE__ */ React25.createElement("div", {
4226
+ className: cn(" hawa-justify-center hawa-h-fit hawa-flex hawa-items-center hawa-flex-[0_0_100%]"),
4227
+ key: index
4228
+ }, child);
4229
+ }))));
4230
+ };
4231
+ var DialogStep = function(param) {
4232
+ var id = param.id, children = param.children, className = param.className, stepRef = param.stepRef;
4233
+ return /* @__PURE__ */ React25.createElement("div", {
4234
+ id: id,
4235
+ ref: stepRef,
4236
+ className: cn("hawa-w-full hawa-px-1", className)
4237
+ }, children);
4238
+ };
4239
+ var DialogBody = function(param) {
4240
+ var children = param.children, className = param.className;
4241
+ return /* @__PURE__ */ React25.createElement("div", {
4242
+ className: cn("hawa-py-6", className)
4243
+ }, children);
4244
+ };
4245
+ DialogStep.displayName = "DialogStep";
4246
+ DialogBody.displayName = "DialogBody";
4247
+ DialogSteps.displayName = "DialogSteps";
4248
+ DialogHeader.displayName = "DialogHeader";
4189
4249
  DialogFooter.displayName = "DialogFooter";
4250
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
4251
+ DialogPortal.displayName = DialogPrimitive.Portal.displayName;
4252
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
4253
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
4254
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
4190
4255
  // components/elements/Command.tsx
4191
4256
  var Command = React26.forwardRef(function(_param, ref) /* @__PURE__ */ {
4192
4257
  var className = _param.className, props = _object_without_properties(_param, [
@@ -10008,14 +10073,18 @@ var import_react70 = require("react");
10008
10073
  var import_react71 = require("react");
10009
10074
  // components/hooks/useCarousel.ts
10010
10075
  var import_react72 = require("react");
10011
- // components/hooks/useWindowSize.ts
10076
+ // components/hooks/useDialogSteps.ts
10012
10077
  var import_react73 = require("react");
10078
+ var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
10079
+ var import_embla_carousel_auto_height = __toESM(require("embla-carousel-auto-height"));
10080
+ // components/hooks/useWindowSize.ts
10081
+ var import_react74 = require("react");
10013
10082
  var useWindowSize = function() {
10014
- var _ref = _sliced_to_array((0, import_react73.useState)({
10083
+ var _ref = _sliced_to_array((0, import_react74.useState)({
10015
10084
  width: void 0,
10016
10085
  height: void 0
10017
10086
  }), 2), windowSize = _ref[0], setWindowSize = _ref[1];
10018
- (0, import_react73.useEffect)(function() {
10087
+ (0, import_react74.useEffect)(function() {
10019
10088
  var handleResize = function handleResize() {
10020
10089
  setWindowSize({
10021
10090
  width: window.innerWidth,
@@ -10031,7 +10100,7 @@ var useWindowSize = function() {
10031
10100
  return windowSize;
10032
10101
  };
10033
10102
  // components/hooks/useFocusWithin.ts
10034
- var import_react74 = require("react");
10103
+ var import_react75 = require("react");
10035
10104
  function containsRelatedTarget(event) {
10036
10105
  if (_instanceof(event.currentTarget, HTMLElement) && _instanceof(event.relatedTarget, HTMLElement)) {
10037
10106
  return event.currentTarget.contains(event.relatedTarget);
@@ -10040,9 +10109,9 @@ function containsRelatedTarget(event) {
10040
10109
  }
10041
10110
  function useFocusWithin() {
10042
10111
  var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, onBlur = _ref.onBlur, onFocus = _ref.onFocus;
10043
- var ref = (0, import_react74.useRef)(null);
10044
- var _ref1 = _sliced_to_array((0, import_react74.useState)(false), 2), focused = _ref1[0], _setFocused = _ref1[1];
10045
- var focusedRef = (0, import_react74.useRef)(false);
10112
+ var ref = (0, import_react75.useRef)(null);
10113
+ var _ref1 = _sliced_to_array((0, import_react75.useState)(false), 2), focused = _ref1[0], _setFocused = _ref1[1];
10114
+ var focusedRef = (0, import_react75.useRef)(false);
10046
10115
  var setFocused = function(value) {
10047
10116
  _setFocused(value);
10048
10117
  focusedRef.current = value;
@@ -10059,7 +10128,7 @@ function useFocusWithin() {
10059
10128
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
10060
10129
  }
10061
10130
  };
10062
- (0, import_react74.useEffect)(function() {
10131
+ (0, import_react75.useEffect)(function() {
10063
10132
  if (ref.current) {
10064
10133
  ref.current.addEventListener("focusin", handleFocusIn);
10065
10134
  ref.current.addEventListener("focusout", handleFocusOut);
@@ -10080,7 +10149,7 @@ function useFocusWithin() {
10080
10149
  };
10081
10150
  }
10082
10151
  // components/hooks/useMediaQuery.ts
10083
- var import_react75 = require("react");
10152
+ var import_react76 = require("react");
10084
10153
  function attachMediaListener(query, callback) {
10085
10154
  try {
10086
10155
  query.addEventListener("change", callback);
@@ -10107,9 +10176,9 @@ function useMediaQuery(query, initialValue) {
10107
10176
  var getInitialValueInEffect = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
10108
10177
  getInitialValueInEffect: true
10109
10178
  }).getInitialValueInEffect;
10110
- var _ref = _sliced_to_array((0, import_react75.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)), 2), matches = _ref[0], setMatches = _ref[1];
10111
- var queryRef = (0, import_react75.useRef)();
10112
- (0, import_react75.useEffect)(function() {
10179
+ var _ref = _sliced_to_array((0, import_react76.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)), 2), matches = _ref[0], setMatches = _ref[1];
10180
+ var queryRef = (0, import_react76.useRef)();
10181
+ (0, import_react76.useEffect)(function() {
10113
10182
  if ("matchMedia" in window) {
10114
10183
  queryRef.current = window.matchMedia(query);
10115
10184
  setMatches(queryRef.current.matches);
@@ -10124,15 +10193,15 @@ function useMediaQuery(query, initialValue) {
10124
10193
  return matches;
10125
10194
  }
10126
10195
  // components/hooks/useScrollPosition.ts
10127
- var import_react76 = require("react");
10128
- // components/hooks/useTable.ts
10129
10196
  var import_react77 = require("react");
10130
- // components/hooks/useTabs.ts
10197
+ // components/hooks/useTable.ts
10131
10198
  var import_react78 = require("react");
10199
+ // components/hooks/useTabs.ts
10200
+ var import_react79 = require("react");
10132
10201
  function useTabs() {
10133
10202
  var initialTab = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
10134
- var _ref = _sliced_to_array((0, import_react78.useState)(initialTab), 2), activeTab = _ref[0], setActiveTab = _ref[1];
10135
- (0, import_react78.useEffect)(function() {
10203
+ var _ref = _sliced_to_array((0, import_react79.useState)(initialTab), 2), activeTab = _ref[0], setActiveTab = _ref[1];
10204
+ (0, import_react79.useEffect)(function() {
10136
10205
  var handleHashChange = function() {
10137
10206
  var hash = window.location.hash.substring(1);
10138
10207
  setActiveTab(hash || initialTab);
@@ -10205,10 +10274,14 @@ function useTabs() {
10205
10274
  DataTable: DataTable,
10206
10275
  DestroyableCard: DestroyableCard,
10207
10276
  Dialog: Dialog,
10277
+ DialogBody: DialogBody,
10208
10278
  DialogContent: DialogContent,
10209
10279
  DialogDescription: DialogDescription,
10210
10280
  DialogFooter: DialogFooter,
10211
10281
  DialogHeader: DialogHeader,
10282
+ DialogPortal: DialogPortal,
10283
+ DialogStep: DialogStep,
10284
+ DialogSteps: DialogSteps,
10212
10285
  DialogTitle: DialogTitle,
10213
10286
  DialogTrigger: DialogTrigger,
10214
10287
  DocsLayout: DocsLayout,
package/dist/index.mjs CHANGED
@@ -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";
@@ -8349,7 +8411,7 @@ var LoginForm = ({
8349
8411
  passwordLength = 8,
8350
8412
  ...props
8351
8413
  }) => {
8352
- const [passwordVisible, setPasswordVisible] = useState27(false);
8414
+ const [passwordVisible, setPasswordVisible] = useState28(false);
8353
8415
  const thirdPartyAuthTexts = {
8354
8416
  continueWithGoogle: texts?.continueWithGoogle,
8355
8417
  continueWithTwitter: texts?.continueWithTwitter,
@@ -8623,12 +8685,12 @@ var LoginForm = ({
8623
8685
  };
8624
8686
 
8625
8687
  // components/blocks/auth/RegisterForm.tsx
8626
- import React75, { useState as useState28 } from "react";
8688
+ import React75, { useState as useState29 } from "react";
8627
8689
  import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
8628
8690
  import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
8629
8691
  import * as z2 from "zod";
8630
8692
  var RegisterForm = ({ texts, ...props }) => {
8631
- const [passwordVisible, setPasswordVisible] = useState28(false);
8693
+ const [passwordVisible, setPasswordVisible] = useState29(false);
8632
8694
  const thirdPartyAuthTexts = {
8633
8695
  continueWithGoogle: texts?.continueWithGoogle,
8634
8696
  continueWithTwitter: texts?.continueWithTwitter,
@@ -8997,7 +9059,7 @@ var CheckEmail = ({ texts, handleResend }) => {
8997
9059
  };
8998
9060
 
8999
9061
  // components/blocks/auth/NewPassword.tsx
9000
- import React78, { useState as useState29 } from "react";
9062
+ import React78, { useState as useState30 } from "react";
9001
9063
  import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
9002
9064
  import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
9003
9065
  import * as z3 from "zod";
@@ -9014,7 +9076,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
9014
9076
  const { handleSubmit, control, formState } = useForm3({
9015
9077
  resolver: zodResolver3(formSchema)
9016
9078
  });
9017
- const [matchError, setMatchError] = useState29(false);
9079
+ const [matchError, setMatchError] = useState30(false);
9018
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(
9019
9081
  "form",
9020
9082
  {
@@ -9139,7 +9201,7 @@ var ResetPasswordForm = (props) => {
9139
9201
  };
9140
9202
 
9141
9203
  // components/blocks/auth/CodeConfirmation.tsx
9142
- import React80, { useEffect as useEffect19, useState as useState30 } from "react";
9204
+ import React80, { useEffect as useEffect20, useState as useState31 } from "react";
9143
9205
  import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
9144
9206
  import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
9145
9207
  import * as z5 from "zod";
@@ -9150,9 +9212,9 @@ var CodeConfirmation = (props) => {
9150
9212
  const { handleSubmit, control, formState, setValue } = useForm5({
9151
9213
  resolver: zodResolver5(formSchema)
9152
9214
  });
9153
- const [resendTimer, setResendTimer] = useState30(null);
9154
- const [remainingTime, setRemainingTime] = useState30(0);
9155
- const [showResendTimer, setShowResendTimer] = useState30(false);
9215
+ const [resendTimer, setResendTimer] = useState31(null);
9216
+ const [remainingTime, setRemainingTime] = useState31(0);
9217
+ const [showResendTimer, setShowResendTimer] = useState31(false);
9156
9218
  const startResendTimer = () => {
9157
9219
  if (resendTimer !== null) {
9158
9220
  clearInterval(resendTimer);
@@ -9174,7 +9236,7 @@ var CodeConfirmation = (props) => {
9174
9236
  }, 1e3);
9175
9237
  setResendTimer(newTimer);
9176
9238
  };
9177
- useEffect19(() => {
9239
+ useEffect20(() => {
9178
9240
  return () => {
9179
9241
  if (resendTimer !== null) {
9180
9242
  clearInterval(resendTimer);
@@ -9234,7 +9296,7 @@ var CodeConfirmation = (props) => {
9234
9296
  };
9235
9297
 
9236
9298
  // components/blocks/feedback/UserReferralSource.tsx
9237
- import React81, { useRef as useRef12, useState as useState31 } from "react";
9299
+ import React81, { useRef as useRef12, useState as useState32 } from "react";
9238
9300
  import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
9239
9301
  import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
9240
9302
  import * as z6 from "zod";
@@ -9243,7 +9305,7 @@ var UserReferralSource = ({
9243
9305
  options = [],
9244
9306
  ...props
9245
9307
  }) => {
9246
- const [closed, setClosed] = useState31(false);
9308
+ const [closed, setClosed] = useState32(false);
9247
9309
  const popUpRef = useRef12(null);
9248
9310
  const formSchema = z6.object({
9249
9311
  source: z6.string({ required_error: props.texts?.pleaseSelectOption }),
@@ -9371,21 +9433,21 @@ var UserReferralSource = ({
9371
9433
  };
9372
9434
 
9373
9435
  // components/blocks/feedback/FeedbackRating.tsx
9374
- 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";
9375
9437
  var FeedbackRating = ({
9376
9438
  position = "bottom-right",
9377
9439
  ...props
9378
9440
  }) => {
9379
- const [closed, setClosed] = useState32(false);
9380
- const [answered, setAnswered] = useState32(false);
9381
- const [clickedOption, setClickedOption] = useState32(null);
9382
- 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);
9383
9445
  const popUpRef = useRef13(null);
9384
9446
  const boxPosition = {
9385
9447
  "bottom-right": "hawa-right-4",
9386
9448
  "bottom-left": "hawa-left-4"
9387
9449
  };
9388
- useEffect21(() => {
9450
+ useEffect22(() => {
9389
9451
  const timeoutHide = setTimeout(() => {
9390
9452
  if (closingTimer >= 0) {
9391
9453
  setClosingTimer(closingTimer - 1);
@@ -9484,12 +9546,12 @@ var FeedbackRating = ({
9484
9546
  };
9485
9547
 
9486
9548
  // components/blocks/feedback/FeedbackEmoji.tsx
9487
- import React83, { useState as useState33 } from "react";
9549
+ import React83, { useState as useState34 } from "react";
9488
9550
  var FeedbackEmoji = (props) => {
9489
- const [selectedEmoji, setSelectedEmoji] = useState33(null);
9490
- const [loadingSubmit, setLoadingSubmit] = useState33(false);
9491
- const [feedbackText, setFeedbackText] = useState33("");
9492
- 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);
9493
9555
  let emojis = [
9494
9556
  { icon: /* @__PURE__ */ React83.createElement(VeryGoodEmoji, null), value: "very-good" },
9495
9557
  { icon: /* @__PURE__ */ React83.createElement(GoodEmoji, null), value: "good" },
@@ -9856,10 +9918,10 @@ var PricingPlans = (props) => {
9856
9918
  };
9857
9919
 
9858
9920
  // components/blocks/pricing/ComparingPlans.tsx
9859
- import React93, { useState as useState34 } from "react";
9921
+ import React93, { useState as useState35 } from "react";
9860
9922
  var ComparingPlans = (props) => {
9861
- const [currentCurrency, setCurrentCurrency] = useState34("sar");
9862
- const [currentCycle, setCurrentCycle] = useState34("month");
9923
+ const [currentCurrency, setCurrentCurrency] = useState35("sar");
9924
+ const [currentCycle, setCurrentCycle] = useState35("month");
9863
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(
9864
9926
  Radio,
9865
9927
  {
@@ -9917,9 +9979,9 @@ var ComparingPlans = (props) => {
9917
9979
  };
9918
9980
 
9919
9981
  // components/blocks/pricing/HorizontalPricing.tsx
9920
- import React94, { useState as useState35 } from "react";
9982
+ import React94, { useState as useState36 } from "react";
9921
9983
  var HorizontalPricing = (props) => {
9922
- const [selectedCard, setSelectedCard] = useState35("");
9984
+ const [selectedCard, setSelectedCard] = useState36("");
9923
9985
  let data = [
9924
9986
  { title: "basic", price: "$49", cycle: "/mo" },
9925
9987
  { title: "business", price: "$99", cycle: "/mo" },
@@ -10030,26 +10092,31 @@ var Usage = (props) => {
10030
10092
  };
10031
10093
 
10032
10094
  // components/hooks/useIsomorphicEffect.ts
10033
- import { useEffect as useEffect22, useLayoutEffect } from "react";
10034
- var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect22;
10095
+ import { useEffect as useEffect23, useLayoutEffect } from "react";
10096
+ var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect23;
10035
10097
 
10036
10098
  // components/hooks/useDiscloser.ts
10037
- import { useState as useState36 } from "react";
10099
+ import { useState as useState37 } from "react";
10038
10100
 
10039
10101
  // components/hooks/useHover.ts
10040
- 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";
10041
10103
 
10042
10104
  // components/hooks/useCarousel.ts
10043
- 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";
10044
10111
 
10045
10112
  // components/hooks/useWindowSize.ts
10046
- import { useEffect as useEffect24, useState as useState39 } from "react";
10113
+ import { useEffect as useEffect26, useState as useState41 } from "react";
10047
10114
  var useWindowSize = () => {
10048
- const [windowSize, setWindowSize] = useState39({
10115
+ const [windowSize, setWindowSize] = useState41({
10049
10116
  width: void 0,
10050
10117
  height: void 0
10051
10118
  });
10052
- useEffect24(() => {
10119
+ useEffect26(() => {
10053
10120
  function handleResize() {
10054
10121
  setWindowSize({
10055
10122
  width: window.innerWidth,
@@ -10064,7 +10131,7 @@ var useWindowSize = () => {
10064
10131
  };
10065
10132
 
10066
10133
  // components/hooks/useFocusWithin.ts
10067
- 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";
10068
10135
  function containsRelatedTarget(event) {
10069
10136
  if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
10070
10137
  return event.currentTarget.contains(event.relatedTarget);
@@ -10076,7 +10143,7 @@ function useFocusWithin({
10076
10143
  onFocus
10077
10144
  } = {}) {
10078
10145
  const ref = useRef16(null);
10079
- const [focused, _setFocused] = useState40(false);
10146
+ const [focused, _setFocused] = useState42(false);
10080
10147
  const focusedRef = useRef16(false);
10081
10148
  const setFocused = (value) => {
10082
10149
  _setFocused(value);
@@ -10094,7 +10161,7 @@ function useFocusWithin({
10094
10161
  onBlur?.(event);
10095
10162
  }
10096
10163
  };
10097
- useEffect25(() => {
10164
+ useEffect27(() => {
10098
10165
  if (ref.current) {
10099
10166
  ref.current.addEventListener("focusin", handleFocusIn);
10100
10167
  ref.current.addEventListener("focusout", handleFocusOut);
@@ -10109,7 +10176,7 @@ function useFocusWithin({
10109
10176
  }
10110
10177
 
10111
10178
  // components/hooks/useMediaQuery.ts
10112
- 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";
10113
10180
  function attachMediaListener(query, callback) {
10114
10181
  try {
10115
10182
  query.addEventListener("change", callback);
@@ -10131,11 +10198,11 @@ function getInitialValue(query, initialValue) {
10131
10198
  function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
10132
10199
  getInitialValueInEffect: true
10133
10200
  }) {
10134
- const [matches, setMatches] = useState41(
10201
+ const [matches, setMatches] = useState43(
10135
10202
  getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
10136
10203
  );
10137
10204
  const queryRef = useRef17();
10138
- useEffect26(() => {
10205
+ useEffect28(() => {
10139
10206
  if ("matchMedia" in window) {
10140
10207
  queryRef.current = window.matchMedia(query);
10141
10208
  setMatches(queryRef.current.matches);
@@ -10150,16 +10217,16 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
10150
10217
  }
10151
10218
 
10152
10219
  // components/hooks/useScrollPosition.ts
10153
- import { useState as useState42, useEffect as useEffect27 } from "react";
10220
+ import { useState as useState44, useEffect as useEffect29 } from "react";
10154
10221
 
10155
10222
  // components/hooks/useTable.ts
10156
- import { useState as useState43, useEffect as useEffect28 } from "react";
10223
+ import { useState as useState45, useEffect as useEffect30 } from "react";
10157
10224
 
10158
10225
  // components/hooks/useTabs.ts
10159
- import { useEffect as useEffect29, useState as useState44 } from "react";
10226
+ import { useEffect as useEffect31, useState as useState46 } from "react";
10160
10227
  function useTabs(initialTab = "") {
10161
- const [activeTab, setActiveTab] = useState44(initialTab);
10162
- useEffect29(() => {
10228
+ const [activeTab, setActiveTab] = useState46(initialTab);
10229
+ useEffect31(() => {
10163
10230
  const handleHashChange = () => {
10164
10231
  const hash = window.location.hash.substring(1);
10165
10232
  setActiveTab(hash || initialTab);
@@ -10229,10 +10296,14 @@ export {
10229
10296
  DataTable,
10230
10297
  DestroyableCard,
10231
10298
  Dialog,
10299
+ DialogBody,
10232
10300
  DialogContent,
10233
10301
  DialogDescription,
10234
10302
  DialogFooter,
10235
10303
  DialogHeader,
10304
+ DialogPortal,
10305
+ DialogStep,
10306
+ DialogSteps,
10236
10307
  DialogTitle,
10237
10308
  DialogTrigger,
10238
10309
  DocsLayout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.15.19-next",
3
+ "version": "0.16.0-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -50,6 +50,7 @@
50
50
  "class-variance-authority": "^0.7.0",
51
51
  "clsx": "^2.0.0",
52
52
  "cmdk": "^0.2.0",
53
+ "embla-carousel-auto-height": "^8.0.0-rc14",
53
54
  "embla-carousel-react": "^8.0.0-rc14",
54
55
  "eslint": "^8.53.0",
55
56
  "eslint-config-next": "^14.0.1",