@sikka/hawa 0.18.2-next → 0.18.4-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.css +3 -4
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +84 -1
- package/dist/index.mjs +83 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2596,6 +2596,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2596
2596
|
.hawa-pt-10 {
|
|
2597
2597
|
padding-top: 2.5rem;
|
|
2598
2598
|
}
|
|
2599
|
+
.hawa-pt-14 {
|
|
2600
|
+
padding-top: 3.5rem;
|
|
2601
|
+
}
|
|
2599
2602
|
.hawa-pt-2 {
|
|
2600
2603
|
padding-top: 0.5rem;
|
|
2601
2604
|
}
|
|
@@ -2753,10 +2756,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2753
2756
|
--tw-text-opacity: 1;
|
|
2754
2757
|
color: hsl(var(--destructive-foreground) / var(--tw-text-opacity));
|
|
2755
2758
|
}
|
|
2756
|
-
.hawa-text-error-foreground {
|
|
2757
|
-
--tw-text-opacity: 1;
|
|
2758
|
-
color: hsl(var(--error-foreground) / var(--tw-text-opacity));
|
|
2759
|
-
}
|
|
2760
2759
|
.hawa-text-foreground {
|
|
2761
2760
|
color: hsl(var(--foreground));
|
|
2762
2761
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -393,6 +393,10 @@ declare const DialogPortal: {
|
|
|
393
393
|
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
394
394
|
persist?: boolean | undefined;
|
|
395
395
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
396
|
+
declare const DialogCarouselContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
397
|
+
persist?: boolean | undefined;
|
|
398
|
+
onPrev?: (() => void) | undefined;
|
|
399
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
396
400
|
declare const DialogHeader: {
|
|
397
401
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
398
402
|
displayName: string;
|
|
@@ -1814,4 +1818,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1814
1818
|
handleTabChange: (index: any) => void;
|
|
1815
1819
|
};
|
|
1816
1820
|
|
|
1817
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppSidebarItemProps, 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, DialogCarousel, 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, Pagination, 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, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
|
1821
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppSidebarItemProps, 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, DialogCarousel, DialogCarouselContent, 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, Pagination, 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, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -393,6 +393,10 @@ declare const DialogPortal: {
|
|
|
393
393
|
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
394
394
|
persist?: boolean | undefined;
|
|
395
395
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
396
|
+
declare const DialogCarouselContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
397
|
+
persist?: boolean | undefined;
|
|
398
|
+
onPrev?: (() => void) | undefined;
|
|
399
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
396
400
|
declare const DialogHeader: {
|
|
397
401
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
398
402
|
displayName: string;
|
|
@@ -1814,4 +1818,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1814
1818
|
handleTabChange: (index: any) => void;
|
|
1815
1819
|
};
|
|
1816
1820
|
|
|
1817
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppSidebarItemProps, 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, DialogCarousel, 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, Pagination, 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, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
|
1821
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppSidebarItemProps, 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, DialogCarousel, DialogCarouselContent, 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, Pagination, 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, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/index.js
CHANGED
|
@@ -81,6 +81,7 @@ __export(components_exports, {
|
|
|
81
81
|
Dialog: () => Dialog,
|
|
82
82
|
DialogBody: () => DialogBody,
|
|
83
83
|
DialogCarousel: () => DialogCarousel,
|
|
84
|
+
DialogCarouselContent: () => DialogCarouselContent,
|
|
84
85
|
DialogContent: () => DialogContent,
|
|
85
86
|
DialogDescription: () => DialogDescription,
|
|
86
87
|
DialogFooter: () => DialogFooter,
|
|
@@ -3908,6 +3909,86 @@ var DialogContent = React25.forwardRef(({ className, children, persist, ...props
|
|
|
3908
3909
|
/* @__PURE__ */ React25.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
3909
3910
|
)
|
|
3910
3911
|
)));
|
|
3912
|
+
var DialogCarouselContent = React25.forwardRef(({ className, children, onPrev, persist, ...props }, ref) => /* @__PURE__ */ React25.createElement(DialogPortal, null, /* @__PURE__ */ React25.createElement(DialogOverlay, null), /* @__PURE__ */ React25.createElement(
|
|
3913
|
+
DialogPrimitive.Content,
|
|
3914
|
+
{
|
|
3915
|
+
onPointerDownOutside: (e) => {
|
|
3916
|
+
if (persist) {
|
|
3917
|
+
e.preventDefault();
|
|
3918
|
+
}
|
|
3919
|
+
},
|
|
3920
|
+
ref,
|
|
3921
|
+
className: cn(
|
|
3922
|
+
"hawa-fixed hawa-pt-14 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",
|
|
3923
|
+
className
|
|
3924
|
+
),
|
|
3925
|
+
...props
|
|
3926
|
+
},
|
|
3927
|
+
children,
|
|
3928
|
+
/* @__PURE__ */ React25.createElement(
|
|
3929
|
+
"div",
|
|
3930
|
+
{
|
|
3931
|
+
className: cn(
|
|
3932
|
+
"hawa-w-full hawa-flex hawa-flex-row hawa-absolute hawa-top-0 hawa-p-4",
|
|
3933
|
+
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
|
3934
|
+
)
|
|
3935
|
+
},
|
|
3936
|
+
onPrev && /* @__PURE__ */ React25.createElement(
|
|
3937
|
+
"div",
|
|
3938
|
+
{
|
|
3939
|
+
onClick: onPrev,
|
|
3940
|
+
className: cn(
|
|
3941
|
+
"hawa-rounded hawa-end-0 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 hawa-cursor-pointer",
|
|
3942
|
+
props.dir === "rtl" && "hawa-rotate-180"
|
|
3943
|
+
)
|
|
3944
|
+
},
|
|
3945
|
+
/* @__PURE__ */ React25.createElement(
|
|
3946
|
+
"svg",
|
|
3947
|
+
{
|
|
3948
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3949
|
+
width: "24",
|
|
3950
|
+
height: "24",
|
|
3951
|
+
viewBox: "0 0 24 24",
|
|
3952
|
+
fill: "none",
|
|
3953
|
+
className: "hawa-h-6 hawa-w-6",
|
|
3954
|
+
stroke: "currentColor",
|
|
3955
|
+
strokeWidth: "2",
|
|
3956
|
+
strokeLinecap: "round",
|
|
3957
|
+
strokeLinejoin: "round"
|
|
3958
|
+
},
|
|
3959
|
+
/* @__PURE__ */ React25.createElement("path", { d: "m15 18-6-6 6-6" })
|
|
3960
|
+
)
|
|
3961
|
+
),
|
|
3962
|
+
/* @__PURE__ */ React25.createElement(
|
|
3963
|
+
DialogPrimitive.Close,
|
|
3964
|
+
{
|
|
3965
|
+
className: cn(
|
|
3966
|
+
"hawa-rounded hawa-end-0 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 ",
|
|
3967
|
+
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
3968
|
+
)
|
|
3969
|
+
},
|
|
3970
|
+
/* @__PURE__ */ React25.createElement(
|
|
3971
|
+
"svg",
|
|
3972
|
+
{
|
|
3973
|
+
"aria-label": "Close Icon",
|
|
3974
|
+
"aria-hidden": "true",
|
|
3975
|
+
className: "hawa-h-6 hawa-w-6",
|
|
3976
|
+
fill: "currentColor",
|
|
3977
|
+
viewBox: "0 0 20 20"
|
|
3978
|
+
},
|
|
3979
|
+
/* @__PURE__ */ React25.createElement(
|
|
3980
|
+
"path",
|
|
3981
|
+
{
|
|
3982
|
+
fillRule: "evenodd",
|
|
3983
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
3984
|
+
clipRule: "evenodd"
|
|
3985
|
+
}
|
|
3986
|
+
)
|
|
3987
|
+
),
|
|
3988
|
+
/* @__PURE__ */ React25.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
3989
|
+
)
|
|
3990
|
+
)
|
|
3991
|
+
)));
|
|
3911
3992
|
var DialogHeader = ({
|
|
3912
3993
|
className,
|
|
3913
3994
|
...props
|
|
@@ -4043,6 +4124,7 @@ DialogBody.displayName = "DialogBody";
|
|
|
4043
4124
|
DialogStep.displayName = "DialogStep";
|
|
4044
4125
|
DialogSteps.displayName = "DialogSteps";
|
|
4045
4126
|
DialogCarousel.displayName = "DialogCarousel";
|
|
4127
|
+
DialogCarouselContent.displayName = "DialogCarouselContent";
|
|
4046
4128
|
DialogHeader.displayName = "DialogHeader";
|
|
4047
4129
|
DialogFooter.displayName = "DialogFooter";
|
|
4048
4130
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
@@ -4695,7 +4777,7 @@ var toastVariants = (0, import_class_variance_authority2.cva)(
|
|
|
4695
4777
|
severity: {
|
|
4696
4778
|
info: "hawa-info hawa-group hawa-text-info-foreground hawa-bg-info",
|
|
4697
4779
|
warning: "hawa-warning hawa-group hawa-text-warning-foreground hawa-bg-warning",
|
|
4698
|
-
error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-
|
|
4780
|
+
error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-white",
|
|
4699
4781
|
success: "hawa-success hawa-group hawa-text-success-foreground hawa-bg-success",
|
|
4700
4782
|
none: ""
|
|
4701
4783
|
}
|
|
@@ -10930,6 +11012,7 @@ function useTabs(initialTab = "") {
|
|
|
10930
11012
|
Dialog,
|
|
10931
11013
|
DialogBody,
|
|
10932
11014
|
DialogCarousel,
|
|
11015
|
+
DialogCarouselContent,
|
|
10933
11016
|
DialogContent,
|
|
10934
11017
|
DialogDescription,
|
|
10935
11018
|
DialogFooter,
|
package/dist/index.mjs
CHANGED
|
@@ -3689,6 +3689,86 @@ var DialogContent = React25.forwardRef(({ className, children, persist, ...props
|
|
|
3689
3689
|
/* @__PURE__ */ React25.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
3690
3690
|
)
|
|
3691
3691
|
)));
|
|
3692
|
+
var DialogCarouselContent = React25.forwardRef(({ className, children, onPrev, persist, ...props }, ref) => /* @__PURE__ */ React25.createElement(DialogPortal, null, /* @__PURE__ */ React25.createElement(DialogOverlay, null), /* @__PURE__ */ React25.createElement(
|
|
3693
|
+
DialogPrimitive.Content,
|
|
3694
|
+
{
|
|
3695
|
+
onPointerDownOutside: (e) => {
|
|
3696
|
+
if (persist) {
|
|
3697
|
+
e.preventDefault();
|
|
3698
|
+
}
|
|
3699
|
+
},
|
|
3700
|
+
ref,
|
|
3701
|
+
className: cn(
|
|
3702
|
+
"hawa-fixed hawa-pt-14 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",
|
|
3703
|
+
className
|
|
3704
|
+
),
|
|
3705
|
+
...props
|
|
3706
|
+
},
|
|
3707
|
+
children,
|
|
3708
|
+
/* @__PURE__ */ React25.createElement(
|
|
3709
|
+
"div",
|
|
3710
|
+
{
|
|
3711
|
+
className: cn(
|
|
3712
|
+
"hawa-w-full hawa-flex hawa-flex-row hawa-absolute hawa-top-0 hawa-p-4",
|
|
3713
|
+
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
|
3714
|
+
)
|
|
3715
|
+
},
|
|
3716
|
+
onPrev && /* @__PURE__ */ React25.createElement(
|
|
3717
|
+
"div",
|
|
3718
|
+
{
|
|
3719
|
+
onClick: onPrev,
|
|
3720
|
+
className: cn(
|
|
3721
|
+
"hawa-rounded hawa-end-0 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 hawa-cursor-pointer",
|
|
3722
|
+
props.dir === "rtl" && "hawa-rotate-180"
|
|
3723
|
+
)
|
|
3724
|
+
},
|
|
3725
|
+
/* @__PURE__ */ React25.createElement(
|
|
3726
|
+
"svg",
|
|
3727
|
+
{
|
|
3728
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3729
|
+
width: "24",
|
|
3730
|
+
height: "24",
|
|
3731
|
+
viewBox: "0 0 24 24",
|
|
3732
|
+
fill: "none",
|
|
3733
|
+
className: "hawa-h-6 hawa-w-6",
|
|
3734
|
+
stroke: "currentColor",
|
|
3735
|
+
strokeWidth: "2",
|
|
3736
|
+
strokeLinecap: "round",
|
|
3737
|
+
strokeLinejoin: "round"
|
|
3738
|
+
},
|
|
3739
|
+
/* @__PURE__ */ React25.createElement("path", { d: "m15 18-6-6 6-6" })
|
|
3740
|
+
)
|
|
3741
|
+
),
|
|
3742
|
+
/* @__PURE__ */ React25.createElement(
|
|
3743
|
+
DialogPrimitive.Close,
|
|
3744
|
+
{
|
|
3745
|
+
className: cn(
|
|
3746
|
+
"hawa-rounded hawa-end-0 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 ",
|
|
3747
|
+
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
3748
|
+
)
|
|
3749
|
+
},
|
|
3750
|
+
/* @__PURE__ */ React25.createElement(
|
|
3751
|
+
"svg",
|
|
3752
|
+
{
|
|
3753
|
+
"aria-label": "Close Icon",
|
|
3754
|
+
"aria-hidden": "true",
|
|
3755
|
+
className: "hawa-h-6 hawa-w-6",
|
|
3756
|
+
fill: "currentColor",
|
|
3757
|
+
viewBox: "0 0 20 20"
|
|
3758
|
+
},
|
|
3759
|
+
/* @__PURE__ */ React25.createElement(
|
|
3760
|
+
"path",
|
|
3761
|
+
{
|
|
3762
|
+
fillRule: "evenodd",
|
|
3763
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
3764
|
+
clipRule: "evenodd"
|
|
3765
|
+
}
|
|
3766
|
+
)
|
|
3767
|
+
),
|
|
3768
|
+
/* @__PURE__ */ React25.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
3769
|
+
)
|
|
3770
|
+
)
|
|
3771
|
+
)));
|
|
3692
3772
|
var DialogHeader = ({
|
|
3693
3773
|
className,
|
|
3694
3774
|
...props
|
|
@@ -3824,6 +3904,7 @@ DialogBody.displayName = "DialogBody";
|
|
|
3824
3904
|
DialogStep.displayName = "DialogStep";
|
|
3825
3905
|
DialogSteps.displayName = "DialogSteps";
|
|
3826
3906
|
DialogCarousel.displayName = "DialogCarousel";
|
|
3907
|
+
DialogCarouselContent.displayName = "DialogCarouselContent";
|
|
3827
3908
|
DialogHeader.displayName = "DialogHeader";
|
|
3828
3909
|
DialogFooter.displayName = "DialogFooter";
|
|
3829
3910
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
@@ -4476,7 +4557,7 @@ var toastVariants = cva2(
|
|
|
4476
4557
|
severity: {
|
|
4477
4558
|
info: "hawa-info hawa-group hawa-text-info-foreground hawa-bg-info",
|
|
4478
4559
|
warning: "hawa-warning hawa-group hawa-text-warning-foreground hawa-bg-warning",
|
|
4479
|
-
error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-
|
|
4560
|
+
error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-white",
|
|
4480
4561
|
success: "hawa-success hawa-group hawa-text-success-foreground hawa-bg-success",
|
|
4481
4562
|
none: ""
|
|
4482
4563
|
}
|
|
@@ -10724,6 +10805,7 @@ export {
|
|
|
10724
10805
|
Dialog,
|
|
10725
10806
|
DialogBody,
|
|
10726
10807
|
DialogCarousel,
|
|
10808
|
+
DialogCarouselContent,
|
|
10727
10809
|
DialogContent,
|
|
10728
10810
|
DialogDescription,
|
|
10729
10811
|
DialogFooter,
|