@sikka/hawa 0.14.11-next → 0.14.13-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 +11 -0
- package/dist/index.d.mts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +301 -15
- package/dist/index.mjs +558 -292
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1308,6 +1308,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1308
1308
|
.hawa-min-w-0 {
|
|
1309
1309
|
min-width: 0px;
|
|
1310
1310
|
}
|
|
1311
|
+
.hawa-min-w-\[12rem\] {
|
|
1312
|
+
min-width: 12rem;
|
|
1313
|
+
}
|
|
1311
1314
|
.hawa-min-w-\[65px\] {
|
|
1312
1315
|
min-width: 65px;
|
|
1313
1316
|
}
|
|
@@ -1615,6 +1618,11 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1615
1618
|
-moz-column-gap: 0.75rem;
|
|
1616
1619
|
column-gap: 0.75rem;
|
|
1617
1620
|
}
|
|
1621
|
+
.hawa-space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1622
|
+
--tw-space-x-reverse: 0;
|
|
1623
|
+
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
|
1624
|
+
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1625
|
+
}
|
|
1618
1626
|
.hawa-space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1619
1627
|
--tw-space-x-reverse: 0;
|
|
1620
1628
|
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
@@ -3273,6 +3281,9 @@ body {
|
|
|
3273
3281
|
.data-\[state\=checked\]\:hawa-text-primary-foreground[data-state=checked] {
|
|
3274
3282
|
color: hsl(var(--primary-foreground));
|
|
3275
3283
|
}
|
|
3284
|
+
.data-\[state\=open\]\:hawa-text-accent-foreground[data-state=open] {
|
|
3285
|
+
color: hsl(var(--accent-foreground));
|
|
3286
|
+
}
|
|
3276
3287
|
.data-\[state\=open\]\:hawa-text-muted-foreground[data-state=open] {
|
|
3277
3288
|
color: hsl(var(--muted-foreground));
|
|
3278
3289
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -17,6 +17,7 @@ import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
|
17
17
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
18
18
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
19
19
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
20
|
+
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
20
21
|
|
|
21
22
|
type ImageCardTypes = {
|
|
22
23
|
children: any;
|
|
@@ -1027,6 +1028,35 @@ type AppTopbarType = {
|
|
|
1027
1028
|
};
|
|
1028
1029
|
declare const AppTopbar: React__default.FC<AppTopbarType>;
|
|
1029
1030
|
|
|
1031
|
+
declare const MenubarMenu: {
|
|
1032
|
+
(props: MenubarPrimitive.ScopedProps<MenubarPrimitive.MenubarMenuProps>): JSX.Element;
|
|
1033
|
+
displayName: string;
|
|
1034
|
+
};
|
|
1035
|
+
declare const MenubarGroup: React$1.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1036
|
+
declare const MenubarPortal: React$1.FC<MenubarPrimitive.MenubarPortalProps>;
|
|
1037
|
+
declare const MenubarSub: React$1.FC<MenubarPrimitive.MenubarSubProps>;
|
|
1038
|
+
declare const MenubarRadioGroup: React$1.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1039
|
+
declare const Menubar: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1040
|
+
declare const MenubarTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1041
|
+
declare const MenubarSubTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1042
|
+
inset?: boolean | undefined;
|
|
1043
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1044
|
+
declare const MenubarSubContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1045
|
+
declare const MenubarContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1046
|
+
declare const MenubarItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1047
|
+
inset?: boolean | undefined;
|
|
1048
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1049
|
+
declare const MenubarCheckboxItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1050
|
+
declare const MenubarRadioItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1051
|
+
declare const MenubarLabel: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1052
|
+
inset?: boolean | undefined;
|
|
1053
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1054
|
+
declare const MenubarSeparator: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1055
|
+
declare const MenubarShortcut: {
|
|
1056
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
|
|
1057
|
+
displayname: string;
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1030
1060
|
type AppLayoutTypes = {
|
|
1031
1061
|
/** The direction of the layout */
|
|
1032
1062
|
direction?: DirectionType;
|
|
@@ -1360,16 +1390,20 @@ type TConfirmation = {
|
|
|
1360
1390
|
weSentCode?: string;
|
|
1361
1391
|
didntGetCode?: string;
|
|
1362
1392
|
resendCode?: string;
|
|
1393
|
+
resendCodeTimer?: string;
|
|
1363
1394
|
codeRequiredText?: string;
|
|
1364
1395
|
codeTooShort?: string;
|
|
1365
1396
|
confirm?: string;
|
|
1366
1397
|
cancel?: string;
|
|
1398
|
+
seconds?: string;
|
|
1367
1399
|
};
|
|
1368
1400
|
showError?: any;
|
|
1369
1401
|
errorTitle?: any;
|
|
1370
1402
|
errorText?: any;
|
|
1371
1403
|
phoneNumber?: string;
|
|
1404
|
+
confirmLoading?: boolean;
|
|
1372
1405
|
handleConfirm?: any;
|
|
1406
|
+
handleResend?: any;
|
|
1373
1407
|
};
|
|
1374
1408
|
declare const CodeConfirmation: FC<TConfirmation>;
|
|
1375
1409
|
|
|
@@ -1697,4 +1731,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1697
1731
|
handleTabChange: (index: any) => void;
|
|
1698
1732
|
};
|
|
1699
1733
|
|
|
1700
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppLayoutSidebarItemProps, AppStores, AppTopbar, 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, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, 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, useMediaQuery, useTabs, useToast, useWindowSize };
|
|
1734
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppLayoutSidebarItemProps, AppStores, AppTopbar, 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, 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, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
|
17
17
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
18
18
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
19
19
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
20
|
+
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
20
21
|
|
|
21
22
|
type ImageCardTypes = {
|
|
22
23
|
children: any;
|
|
@@ -1027,6 +1028,35 @@ type AppTopbarType = {
|
|
|
1027
1028
|
};
|
|
1028
1029
|
declare const AppTopbar: React__default.FC<AppTopbarType>;
|
|
1029
1030
|
|
|
1031
|
+
declare const MenubarMenu: {
|
|
1032
|
+
(props: MenubarPrimitive.ScopedProps<MenubarPrimitive.MenubarMenuProps>): JSX.Element;
|
|
1033
|
+
displayName: string;
|
|
1034
|
+
};
|
|
1035
|
+
declare const MenubarGroup: React$1.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1036
|
+
declare const MenubarPortal: React$1.FC<MenubarPrimitive.MenubarPortalProps>;
|
|
1037
|
+
declare const MenubarSub: React$1.FC<MenubarPrimitive.MenubarSubProps>;
|
|
1038
|
+
declare const MenubarRadioGroup: React$1.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1039
|
+
declare const Menubar: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1040
|
+
declare const MenubarTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1041
|
+
declare const MenubarSubTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1042
|
+
inset?: boolean | undefined;
|
|
1043
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1044
|
+
declare const MenubarSubContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1045
|
+
declare const MenubarContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1046
|
+
declare const MenubarItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1047
|
+
inset?: boolean | undefined;
|
|
1048
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1049
|
+
declare const MenubarCheckboxItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1050
|
+
declare const MenubarRadioItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1051
|
+
declare const MenubarLabel: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1052
|
+
inset?: boolean | undefined;
|
|
1053
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1054
|
+
declare const MenubarSeparator: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1055
|
+
declare const MenubarShortcut: {
|
|
1056
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
|
|
1057
|
+
displayname: string;
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1030
1060
|
type AppLayoutTypes = {
|
|
1031
1061
|
/** The direction of the layout */
|
|
1032
1062
|
direction?: DirectionType;
|
|
@@ -1360,16 +1390,20 @@ type TConfirmation = {
|
|
|
1360
1390
|
weSentCode?: string;
|
|
1361
1391
|
didntGetCode?: string;
|
|
1362
1392
|
resendCode?: string;
|
|
1393
|
+
resendCodeTimer?: string;
|
|
1363
1394
|
codeRequiredText?: string;
|
|
1364
1395
|
codeTooShort?: string;
|
|
1365
1396
|
confirm?: string;
|
|
1366
1397
|
cancel?: string;
|
|
1398
|
+
seconds?: string;
|
|
1367
1399
|
};
|
|
1368
1400
|
showError?: any;
|
|
1369
1401
|
errorTitle?: any;
|
|
1370
1402
|
errorText?: any;
|
|
1371
1403
|
phoneNumber?: string;
|
|
1404
|
+
confirmLoading?: boolean;
|
|
1372
1405
|
handleConfirm?: any;
|
|
1406
|
+
handleResend?: any;
|
|
1373
1407
|
};
|
|
1374
1408
|
declare const CodeConfirmation: FC<TConfirmation>;
|
|
1375
1409
|
|
|
@@ -1697,4 +1731,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1697
1731
|
handleTabChange: (index: any) => void;
|
|
1698
1732
|
};
|
|
1699
1733
|
|
|
1700
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppLayoutSidebarItemProps, AppStores, AppTopbar, 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, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, 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, useMediaQuery, useTabs, useToast, useWindowSize };
|
|
1734
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppLayoutSidebarItemProps, AppStores, AppTopbar, 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, 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, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.js
CHANGED
|
@@ -586,6 +586,54 @@ __export(components_exports, {
|
|
|
586
586
|
Logos: function() {
|
|
587
587
|
return Logos;
|
|
588
588
|
},
|
|
589
|
+
Menubar: function() {
|
|
590
|
+
return Menubar;
|
|
591
|
+
},
|
|
592
|
+
MenubarCheckboxItem: function() {
|
|
593
|
+
return MenubarCheckboxItem;
|
|
594
|
+
},
|
|
595
|
+
MenubarContent: function() {
|
|
596
|
+
return MenubarContent;
|
|
597
|
+
},
|
|
598
|
+
MenubarGroup: function() {
|
|
599
|
+
return MenubarGroup;
|
|
600
|
+
},
|
|
601
|
+
MenubarItem: function() {
|
|
602
|
+
return MenubarItem;
|
|
603
|
+
},
|
|
604
|
+
MenubarLabel: function() {
|
|
605
|
+
return MenubarLabel;
|
|
606
|
+
},
|
|
607
|
+
MenubarMenu: function() {
|
|
608
|
+
return MenubarMenu;
|
|
609
|
+
},
|
|
610
|
+
MenubarPortal: function() {
|
|
611
|
+
return MenubarPortal;
|
|
612
|
+
},
|
|
613
|
+
MenubarRadioGroup: function() {
|
|
614
|
+
return MenubarRadioGroup;
|
|
615
|
+
},
|
|
616
|
+
MenubarRadioItem: function() {
|
|
617
|
+
return MenubarRadioItem;
|
|
618
|
+
},
|
|
619
|
+
MenubarSeparator: function() {
|
|
620
|
+
return MenubarSeparator;
|
|
621
|
+
},
|
|
622
|
+
MenubarShortcut: function() {
|
|
623
|
+
return MenubarShortcut;
|
|
624
|
+
},
|
|
625
|
+
MenubarSub: function() {
|
|
626
|
+
return MenubarSub;
|
|
627
|
+
},
|
|
628
|
+
MenubarSubContent: function() {
|
|
629
|
+
return MenubarSubContent;
|
|
630
|
+
},
|
|
631
|
+
MenubarSubTrigger: function() {
|
|
632
|
+
return MenubarSubTrigger;
|
|
633
|
+
},
|
|
634
|
+
MenubarTrigger: function() {
|
|
635
|
+
return MenubarTrigger;
|
|
636
|
+
},
|
|
589
637
|
NavMenuItem: function() {
|
|
590
638
|
return NavMenuItem;
|
|
591
639
|
},
|
|
@@ -4806,7 +4854,7 @@ var Select = function(_param) {
|
|
|
4806
4854
|
className: cn("hawa-flex hawa-cursor-pointer hawa-select-none hawa-flex-row hawa-items-center hawa-justify-between hawa-rounded-inner hawa-p-1 hawa-px-2 hover:hawa-bg-primary hawa-transition-all hover:hawa-text-primary-foreground")
|
|
4807
4855
|
}, innerProps), children);
|
|
4808
4856
|
};
|
|
4809
|
-
var
|
|
4857
|
+
var Menu2 = function(_param) {
|
|
4810
4858
|
var cx = _param.cx, children = _param.children, getStyles = _param.getStyles, innerProps = _param.innerProps, innerRef = _param.innerRef, menuProps = _object_without_properties(_param, [
|
|
4811
4859
|
"cx",
|
|
4812
4860
|
"children",
|
|
@@ -4851,13 +4899,13 @@ var Select = function(_param) {
|
|
|
4851
4899
|
autoFocus: true,
|
|
4852
4900
|
components: props.hideIndicator ? {
|
|
4853
4901
|
Option: Option,
|
|
4854
|
-
Menu:
|
|
4902
|
+
Menu: Menu2,
|
|
4855
4903
|
IndicatorsContainer: function() {
|
|
4856
4904
|
return null;
|
|
4857
4905
|
}
|
|
4858
4906
|
} : {
|
|
4859
4907
|
Option: Option,
|
|
4860
|
-
Menu:
|
|
4908
|
+
Menu: Menu2
|
|
4861
4909
|
},
|
|
4862
4910
|
onChange: function(newValue, action) {
|
|
4863
4911
|
return props.onChange(newValue, action);
|
|
@@ -4909,7 +4957,7 @@ var Select = function(_param) {
|
|
|
4909
4957
|
components: {
|
|
4910
4958
|
Control: Control,
|
|
4911
4959
|
Option: Option,
|
|
4912
|
-
Menu:
|
|
4960
|
+
Menu: Menu2
|
|
4913
4961
|
},
|
|
4914
4962
|
onInputChange: function(newValue, action) {
|
|
4915
4963
|
return props.onInputChange(newValue, action);
|
|
@@ -5398,13 +5446,19 @@ var DataTable = function(_param) {
|
|
|
5398
5446
|
variant: "outline",
|
|
5399
5447
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
5400
5448
|
}, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.columns) || "Columns", /* @__PURE__ */ React40.createElement("svg", {
|
|
5401
|
-
"aria-label": "Chevron
|
|
5449
|
+
"aria-label": "Chevron Down Icon",
|
|
5450
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5451
|
+
width: "24",
|
|
5452
|
+
height: "24",
|
|
5453
|
+
viewBox: "0 0 24 24",
|
|
5454
|
+
fill: "none",
|
|
5402
5455
|
stroke: "currentColor",
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5456
|
+
"stroke-width": "2",
|
|
5457
|
+
"stroke-linecap": "round",
|
|
5458
|
+
"stroke-linejoin": "round",
|
|
5459
|
+
className: "hawa-icon hawa-rotate-90"
|
|
5406
5460
|
}, /* @__PURE__ */ React40.createElement("path", {
|
|
5407
|
-
d: "
|
|
5461
|
+
d: "m9 18 6-6-6-6"
|
|
5408
5462
|
})))), /* @__PURE__ */ React40.createElement(DropdownMenuContent, {
|
|
5409
5463
|
align: props.direction === "rtl" ? "start" : "end"
|
|
5410
5464
|
}, table.getAllColumns().filter(function(column) {
|
|
@@ -7403,6 +7457,183 @@ var AppTopbar = function(_param) {
|
|
|
7403
7457
|
})))
|
|
7404
7458
|
})));
|
|
7405
7459
|
};
|
|
7460
|
+
// components/layout/AppMenubar.tsx
|
|
7461
|
+
var React64 = __toESM(require("react"));
|
|
7462
|
+
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
|
7463
|
+
var MenubarMenu = MenubarPrimitive.Menu;
|
|
7464
|
+
var MenubarGroup = MenubarPrimitive.Group;
|
|
7465
|
+
var MenubarPortal = MenubarPrimitive.Portal;
|
|
7466
|
+
var MenubarSub = MenubarPrimitive.Sub;
|
|
7467
|
+
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
7468
|
+
var Menubar = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7469
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7470
|
+
"className"
|
|
7471
|
+
]);
|
|
7472
|
+
return React64.createElement(MenubarPrimitive.Root, _object_spread({
|
|
7473
|
+
ref: ref,
|
|
7474
|
+
className: cn("hawa-flex hawa-h-10 hawa-items-center hawa-space-x-1 hawa-rounded-md hawa-border hawa-bg-background hawa-p-1", className)
|
|
7475
|
+
}, props));
|
|
7476
|
+
});
|
|
7477
|
+
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
7478
|
+
var MenubarTrigger = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7479
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7480
|
+
"className"
|
|
7481
|
+
]);
|
|
7482
|
+
return React64.createElement(MenubarPrimitive.Trigger, _object_spread({
|
|
7483
|
+
ref: ref,
|
|
7484
|
+
className: cn("hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-accent-foreground", className)
|
|
7485
|
+
}, props));
|
|
7486
|
+
});
|
|
7487
|
+
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
7488
|
+
var MenubarSubTrigger = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7489
|
+
var className = _param.className, inset = _param.inset, children = _param.children, props = _object_without_properties(_param, [
|
|
7490
|
+
"className",
|
|
7491
|
+
"inset",
|
|
7492
|
+
"children"
|
|
7493
|
+
]);
|
|
7494
|
+
return React64.createElement(MenubarPrimitive.SubTrigger, _object_spread({
|
|
7495
|
+
ref: ref,
|
|
7496
|
+
className: cn("hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-accent-foreground", inset && "pl-8", className)
|
|
7497
|
+
}, props), children, /* @__PURE__ */ React64.createElement("svg", {
|
|
7498
|
+
"aria-label": "Chevron Right Icon",
|
|
7499
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7500
|
+
width: "24",
|
|
7501
|
+
height: "24",
|
|
7502
|
+
viewBox: "0 0 24 24",
|
|
7503
|
+
fill: "none",
|
|
7504
|
+
stroke: "currentColor",
|
|
7505
|
+
"stroke-width": "2",
|
|
7506
|
+
"stroke-linecap": "round",
|
|
7507
|
+
"stroke-linejoin": "round",
|
|
7508
|
+
className: "hawa-ml-auto hawa-icon"
|
|
7509
|
+
}, /* @__PURE__ */ React64.createElement("path", {
|
|
7510
|
+
d: "m9 18 6-6-6-6"
|
|
7511
|
+
})));
|
|
7512
|
+
});
|
|
7513
|
+
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
7514
|
+
var MenubarSubContent = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7515
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7516
|
+
"className"
|
|
7517
|
+
]);
|
|
7518
|
+
return React64.createElement(MenubarPrimitive.SubContent, _object_spread({
|
|
7519
|
+
ref: ref,
|
|
7520
|
+
className: cn("hawa-z-50 hawa-min-w-[8rem] hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground 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-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2", className)
|
|
7521
|
+
}, props));
|
|
7522
|
+
});
|
|
7523
|
+
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
7524
|
+
var MenubarContent = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7525
|
+
var className = _param.className, _param_align = _param.align, align = _param_align === void 0 ? "start" : _param_align, _param_alignOffset = _param.alignOffset, alignOffset = _param_alignOffset === void 0 ? -4 : _param_alignOffset, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 8 : _param_sideOffset, props = _object_without_properties(_param, [
|
|
7526
|
+
"className",
|
|
7527
|
+
"align",
|
|
7528
|
+
"alignOffset",
|
|
7529
|
+
"sideOffset"
|
|
7530
|
+
]);
|
|
7531
|
+
return React64.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React64.createElement(MenubarPrimitive.Content, _object_spread({
|
|
7532
|
+
ref: ref,
|
|
7533
|
+
align: align,
|
|
7534
|
+
alignOffset: alignOffset,
|
|
7535
|
+
sideOffset: sideOffset,
|
|
7536
|
+
className: cn("hawa-z-50 hawa-min-w-[12rem] hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-md data-[state=open]:hawa-animate-in 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-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2", className)
|
|
7537
|
+
}, props)));
|
|
7538
|
+
});
|
|
7539
|
+
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
7540
|
+
var MenubarItem = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7541
|
+
var className = _param.className, inset = _param.inset, props = _object_without_properties(_param, [
|
|
7542
|
+
"className",
|
|
7543
|
+
"inset"
|
|
7544
|
+
]);
|
|
7545
|
+
return React64.createElement(MenubarPrimitive.Item, _object_spread({
|
|
7546
|
+
ref: ref,
|
|
7547
|
+
className: cn("hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", inset && "pl-8", className)
|
|
7548
|
+
}, props));
|
|
7549
|
+
});
|
|
7550
|
+
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
7551
|
+
var MenubarCheckboxItem = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7552
|
+
var className = _param.className, children = _param.children, checked = _param.checked, props = _object_without_properties(_param, [
|
|
7553
|
+
"className",
|
|
7554
|
+
"children",
|
|
7555
|
+
"checked"
|
|
7556
|
+
]);
|
|
7557
|
+
return React64.createElement(MenubarPrimitive.CheckboxItem, _object_spread({
|
|
7558
|
+
ref: ref,
|
|
7559
|
+
className: cn("hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", className),
|
|
7560
|
+
checked: checked
|
|
7561
|
+
}, props), /* @__PURE__ */ React64.createElement("span", {
|
|
7562
|
+
className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center"
|
|
7563
|
+
}, /* @__PURE__ */ React64.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React64.createElement("svg", {
|
|
7564
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7565
|
+
width: "24",
|
|
7566
|
+
height: "24",
|
|
7567
|
+
viewBox: "0 0 24 24",
|
|
7568
|
+
fill: "none",
|
|
7569
|
+
stroke: "currentColor",
|
|
7570
|
+
"stroke-width": "2",
|
|
7571
|
+
"stroke-linecap": "round",
|
|
7572
|
+
"stroke-linejoin": "round",
|
|
7573
|
+
className: "hawa-icon"
|
|
7574
|
+
}, /* @__PURE__ */ React64.createElement("path", {
|
|
7575
|
+
d: "M20 6 9 17l-5-5"
|
|
7576
|
+
})))), children);
|
|
7577
|
+
});
|
|
7578
|
+
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
7579
|
+
var MenubarRadioItem = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7580
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
7581
|
+
"className",
|
|
7582
|
+
"children"
|
|
7583
|
+
]);
|
|
7584
|
+
return React64.createElement(MenubarPrimitive.RadioItem, _object_spread({
|
|
7585
|
+
ref: ref,
|
|
7586
|
+
className: cn("hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", className)
|
|
7587
|
+
}, props), /* @__PURE__ */ React64.createElement("span", {
|
|
7588
|
+
className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center"
|
|
7589
|
+
}, /* @__PURE__ */ React64.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React64.createElement("svg", {
|
|
7590
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7591
|
+
width: "24",
|
|
7592
|
+
height: "24",
|
|
7593
|
+
viewBox: "0 0 24 24",
|
|
7594
|
+
fill: "none",
|
|
7595
|
+
stroke: "currentColor",
|
|
7596
|
+
"stroke-width": "2",
|
|
7597
|
+
"stroke-linecap": "round",
|
|
7598
|
+
"stroke-linejoin": "round",
|
|
7599
|
+
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
7600
|
+
}, /* @__PURE__ */ React64.createElement("circle", {
|
|
7601
|
+
cx: "12",
|
|
7602
|
+
cy: "12",
|
|
7603
|
+
r: "10"
|
|
7604
|
+
})))), children);
|
|
7605
|
+
});
|
|
7606
|
+
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
7607
|
+
var MenubarLabel = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7608
|
+
var className = _param.className, inset = _param.inset, props = _object_without_properties(_param, [
|
|
7609
|
+
"className",
|
|
7610
|
+
"inset"
|
|
7611
|
+
]);
|
|
7612
|
+
return React64.createElement(MenubarPrimitive.Label, _object_spread({
|
|
7613
|
+
ref: ref,
|
|
7614
|
+
className: cn("hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold", inset && "hawa-pl-8", className)
|
|
7615
|
+
}, props));
|
|
7616
|
+
});
|
|
7617
|
+
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
7618
|
+
var MenubarSeparator = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7619
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7620
|
+
"className"
|
|
7621
|
+
]);
|
|
7622
|
+
return React64.createElement(MenubarPrimitive.Separator, _object_spread({
|
|
7623
|
+
ref: ref,
|
|
7624
|
+
className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className)
|
|
7625
|
+
}, props));
|
|
7626
|
+
});
|
|
7627
|
+
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
7628
|
+
var MenubarShortcut = function(_param) {
|
|
7629
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7630
|
+
"className"
|
|
7631
|
+
]);
|
|
7632
|
+
return /* @__PURE__ */ React64.createElement("span", _object_spread({
|
|
7633
|
+
className: cn("hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground", className)
|
|
7634
|
+
}, props));
|
|
7635
|
+
};
|
|
7636
|
+
MenubarShortcut.displayname = "MenubarShortcut";
|
|
7406
7637
|
// components/layout/DocsLayout.tsx
|
|
7407
7638
|
var import_react41 = __toESM(require("react"));
|
|
7408
7639
|
// components/hooks/useBreakpoint.ts
|
|
@@ -8545,7 +8776,7 @@ var import_react_hook_form5 = require("react-hook-form");
|
|
|
8545
8776
|
var import_zod5 = require("@hookform/resolvers/zod");
|
|
8546
8777
|
var z5 = __toESM(require("zod"));
|
|
8547
8778
|
var CodeConfirmation = function(props) {
|
|
8548
|
-
var _props_texts, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6, _props_texts7;
|
|
8779
|
+
var _props_texts, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6, _props_texts7, _props_texts8, _props_texts9;
|
|
8549
8780
|
var formSchema = z5.object({
|
|
8550
8781
|
otp_code: z5.string({
|
|
8551
8782
|
required_error: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.codeRequiredText
|
|
@@ -8556,6 +8787,37 @@ var CodeConfirmation = function(props) {
|
|
|
8556
8787
|
var _ref = (0, import_react_hook_form5.useForm)({
|
|
8557
8788
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
|
8558
8789
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState, setValue = _ref.setValue;
|
|
8790
|
+
var _ref1 = _sliced_to_array((0, import_react50.useState)(null), 2), resendTimer = _ref1[0], setResendTimer = _ref1[1];
|
|
8791
|
+
var _ref2 = _sliced_to_array((0, import_react50.useState)(0), 2), remainingTime = _ref2[0], setRemainingTime = _ref2[1];
|
|
8792
|
+
var _ref3 = _sliced_to_array((0, import_react50.useState)(false), 2), showResendTimer = _ref3[0], setShowResendTimer = _ref3[1];
|
|
8793
|
+
var startResendTimer = function() {
|
|
8794
|
+
if (resendTimer !== null) {
|
|
8795
|
+
clearInterval(resendTimer);
|
|
8796
|
+
setResendTimer(null);
|
|
8797
|
+
}
|
|
8798
|
+
var timerDuration = 60;
|
|
8799
|
+
setRemainingTime(timerDuration);
|
|
8800
|
+
setShowResendTimer(true);
|
|
8801
|
+
var newTimer = window.setInterval(function() {
|
|
8802
|
+
setRemainingTime(function(prevTime) {
|
|
8803
|
+
if (prevTime > 0) {
|
|
8804
|
+
return prevTime - 1;
|
|
8805
|
+
} else {
|
|
8806
|
+
clearInterval(newTimer);
|
|
8807
|
+
setShowResendTimer(false);
|
|
8808
|
+
return 0;
|
|
8809
|
+
}
|
|
8810
|
+
});
|
|
8811
|
+
}, 1e3);
|
|
8812
|
+
setResendTimer(newTimer);
|
|
8813
|
+
};
|
|
8814
|
+
(0, import_react50.useEffect)(function() {
|
|
8815
|
+
return function() {
|
|
8816
|
+
if (resendTimer !== null) {
|
|
8817
|
+
clearInterval(resendTimer);
|
|
8818
|
+
}
|
|
8819
|
+
};
|
|
8820
|
+
}, []);
|
|
8559
8821
|
var _props_texts_didntGetCode;
|
|
8560
8822
|
return /* @__PURE__ */ import_react50.default.createElement(Card, null, /* @__PURE__ */ import_react50.default.createElement(CardContent, {
|
|
8561
8823
|
headless: true
|
|
@@ -8593,15 +8855,23 @@ var CodeConfirmation = function(props) {
|
|
|
8593
8855
|
helperText: (_formState_errors_otp_code = formState.errors.otp_code) === null || _formState_errors_otp_code === void 0 ? void 0 : _formState_errors_otp_code.message
|
|
8594
8856
|
});
|
|
8595
8857
|
}
|
|
8596
|
-
}), /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8858
|
+
}), showResendTimer ? /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8597
8859
|
className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
|
|
8598
|
-
}, /* @__PURE__ */ import_react50.default.createElement("
|
|
8599
|
-
className: "
|
|
8600
|
-
}, ((
|
|
8860
|
+
}, (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.resendCodeTimer, " ", /* @__PURE__ */ import_react50.default.createElement("strong", null, remainingTime), " ", (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.seconds) : /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8861
|
+
className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
|
|
8862
|
+
}, /* @__PURE__ */ import_react50.default.createElement("span", null, (_props_texts_didntGetCode = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.didntGetCode) !== null && _props_texts_didntGetCode !== void 0 ? _props_texts_didntGetCode : "Didn't get the code?"), " ", /* @__PURE__ */ import_react50.default.createElement("span", {
|
|
8863
|
+
className: "clickable-link",
|
|
8864
|
+
onClick: function() {
|
|
8865
|
+
startResendTimer();
|
|
8866
|
+
props.handleResend();
|
|
8867
|
+
}
|
|
8868
|
+
}, ((_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.resendCode) || "Click to resend")), /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8601
8869
|
className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2"
|
|
8602
8870
|
}, /* @__PURE__ */ import_react50.default.createElement(Button, {
|
|
8603
8871
|
variant: "secondary"
|
|
8604
|
-
}, ((
|
|
8872
|
+
}, ((_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.cancel) || "Cancel"), /* @__PURE__ */ import_react50.default.createElement(Button, {
|
|
8873
|
+
isLoading: props.confirmLoading
|
|
8874
|
+
}, ((_props_texts9 = props.texts) === null || _props_texts9 === void 0 ? void 0 : _props_texts9.confirm) || "Confirm")))));
|
|
8605
8875
|
};
|
|
8606
8876
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
8607
8877
|
var import_react51 = __toESM(require("react"));
|
|
@@ -9792,6 +10062,22 @@ function useTabs() {
|
|
|
9792
10062
|
Loading: Loading,
|
|
9793
10063
|
LoginForm: LoginForm,
|
|
9794
10064
|
Logos: Logos,
|
|
10065
|
+
Menubar: Menubar,
|
|
10066
|
+
MenubarCheckboxItem: MenubarCheckboxItem,
|
|
10067
|
+
MenubarContent: MenubarContent,
|
|
10068
|
+
MenubarGroup: MenubarGroup,
|
|
10069
|
+
MenubarItem: MenubarItem,
|
|
10070
|
+
MenubarLabel: MenubarLabel,
|
|
10071
|
+
MenubarMenu: MenubarMenu,
|
|
10072
|
+
MenubarPortal: MenubarPortal,
|
|
10073
|
+
MenubarRadioGroup: MenubarRadioGroup,
|
|
10074
|
+
MenubarRadioItem: MenubarRadioItem,
|
|
10075
|
+
MenubarSeparator: MenubarSeparator,
|
|
10076
|
+
MenubarShortcut: MenubarShortcut,
|
|
10077
|
+
MenubarSub: MenubarSub,
|
|
10078
|
+
MenubarSubContent: MenubarSubContent,
|
|
10079
|
+
MenubarSubTrigger: MenubarSubTrigger,
|
|
10080
|
+
MenubarTrigger: MenubarTrigger,
|
|
9795
10081
|
NavMenuItem: NavMenuItem,
|
|
9796
10082
|
Navbar: Navbar,
|
|
9797
10083
|
NavigationMenu: NavigationMenu,
|