@sikka/hawa 0.7.17-next → 0.7.19-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 +30 -0
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +30 -4
- package/dist/index.mjs +23 -11
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -844,6 +844,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
844
844
|
margin-left: 0.5rem;
|
|
845
845
|
margin-right: 0.5rem;
|
|
846
846
|
}
|
|
847
|
+
.hawa-mx-4 {
|
|
848
|
+
margin-left: 1rem;
|
|
849
|
+
margin-right: 1rem;
|
|
850
|
+
}
|
|
847
851
|
.hawa-my-1 {
|
|
848
852
|
margin-top: 0.25rem;
|
|
849
853
|
margin-bottom: 0.25rem;
|
|
@@ -1003,6 +1007,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1003
1007
|
.hawa-h-4 {
|
|
1004
1008
|
height: 1rem;
|
|
1005
1009
|
}
|
|
1010
|
+
.hawa-h-40 {
|
|
1011
|
+
height: 10rem;
|
|
1012
|
+
}
|
|
1006
1013
|
.hawa-h-5 {
|
|
1007
1014
|
height: 1.25rem;
|
|
1008
1015
|
}
|
|
@@ -1286,6 +1293,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1286
1293
|
.hawa-shrink-0 {
|
|
1287
1294
|
flex-shrink: 0;
|
|
1288
1295
|
}
|
|
1296
|
+
.hawa-flex-grow {
|
|
1297
|
+
flex-grow: 1;
|
|
1298
|
+
}
|
|
1289
1299
|
.hawa-grow {
|
|
1290
1300
|
flex-grow: 1;
|
|
1291
1301
|
}
|
|
@@ -1345,6 +1355,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1345
1355
|
--tw-scale-y: 1;
|
|
1346
1356
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1347
1357
|
}
|
|
1358
|
+
.hawa-transform {
|
|
1359
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1360
|
+
}
|
|
1348
1361
|
.hawa-transform-gpu {
|
|
1349
1362
|
transform: translate3d(var(--tw-translate-x), var(--tw-translate-y), 0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1350
1363
|
}
|
|
@@ -1521,6 +1534,11 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1521
1534
|
margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1522
1535
|
margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
|
|
1523
1536
|
}
|
|
1537
|
+
.hawa-space-y-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1538
|
+
--tw-space-y-reverse: 0;
|
|
1539
|
+
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1540
|
+
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
|
|
1541
|
+
}
|
|
1524
1542
|
.hawa-space-y-5 > :not([hidden]) ~ :not([hidden]) {
|
|
1525
1543
|
--tw-space-y-reverse: 0;
|
|
1526
1544
|
margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
|
|
@@ -1897,6 +1915,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1897
1915
|
.hawa-fill-primary\/20 {
|
|
1898
1916
|
fill: hsl(var(--primary) / 0.2);
|
|
1899
1917
|
}
|
|
1918
|
+
.hawa-object-cover {
|
|
1919
|
+
-o-object-fit: cover;
|
|
1920
|
+
object-fit: cover;
|
|
1921
|
+
}
|
|
1900
1922
|
.hawa-p-0 {
|
|
1901
1923
|
padding: 0px;
|
|
1902
1924
|
}
|
|
@@ -2080,6 +2102,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2080
2102
|
font-size: 1.5rem;
|
|
2081
2103
|
line-height: 2rem;
|
|
2082
2104
|
}
|
|
2105
|
+
.hawa-text-3xl {
|
|
2106
|
+
font-size: 1.875rem;
|
|
2107
|
+
line-height: 2.25rem;
|
|
2108
|
+
}
|
|
2083
2109
|
.hawa-text-5xl {
|
|
2084
2110
|
font-size: 3rem;
|
|
2085
2111
|
line-height: 1;
|
|
@@ -2213,6 +2239,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2213
2239
|
--tw-text-opacity: 1;
|
|
2214
2240
|
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
2215
2241
|
}
|
|
2242
|
+
.hawa-text-gray-600 {
|
|
2243
|
+
--tw-text-opacity: 1;
|
|
2244
|
+
color: rgb(75 85 99 / var(--tw-text-opacity));
|
|
2245
|
+
}
|
|
2216
2246
|
.hawa-text-gray-700 {
|
|
2217
2247
|
--tw-text-opacity: 1;
|
|
2218
2248
|
color: rgb(55 65 81 / var(--tw-text-opacity));
|
package/dist/index.d.mts
CHANGED
|
@@ -20,6 +20,7 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
|
20
20
|
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
21
21
|
import * as react_hook_form from 'react-hook-form';
|
|
22
22
|
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
23
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
23
24
|
|
|
24
25
|
type ImageCardTypes = {
|
|
25
26
|
children: any;
|
|
@@ -673,11 +674,20 @@ type TypographyTypes = {
|
|
|
673
674
|
};
|
|
674
675
|
declare const InterfaceSettings: FC<TypographyTypes>;
|
|
675
676
|
|
|
677
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
678
|
+
type NavMenuItemTypes = {
|
|
679
|
+
icon?: any;
|
|
680
|
+
title: string;
|
|
681
|
+
subtitle?: string;
|
|
682
|
+
};
|
|
683
|
+
declare const NavMenuItem: React$1.FC<NavMenuItemTypes>;
|
|
676
684
|
type NavigationMenuTypes = {
|
|
677
685
|
items: {
|
|
678
686
|
trigger: any;
|
|
679
687
|
content?: any;
|
|
680
688
|
}[];
|
|
689
|
+
rootClassNames?: string;
|
|
690
|
+
viewportClassNames?: string;
|
|
681
691
|
};
|
|
682
692
|
declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
|
|
683
693
|
|
|
@@ -1412,4 +1422,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1412
1422
|
handleTabChange: (index: any) => void;
|
|
1413
1423
|
};
|
|
1414
1424
|
|
|
1415
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, 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, useFormField, useMediaQuery, useTabs, useToast, useWindowSize };
|
|
1425
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, 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, useFormField, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
|
20
20
|
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
21
21
|
import * as react_hook_form from 'react-hook-form';
|
|
22
22
|
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
23
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
23
24
|
|
|
24
25
|
type ImageCardTypes = {
|
|
25
26
|
children: any;
|
|
@@ -673,11 +674,20 @@ type TypographyTypes = {
|
|
|
673
674
|
};
|
|
674
675
|
declare const InterfaceSettings: FC<TypographyTypes>;
|
|
675
676
|
|
|
677
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
678
|
+
type NavMenuItemTypes = {
|
|
679
|
+
icon?: any;
|
|
680
|
+
title: string;
|
|
681
|
+
subtitle?: string;
|
|
682
|
+
};
|
|
683
|
+
declare const NavMenuItem: React$1.FC<NavMenuItemTypes>;
|
|
676
684
|
type NavigationMenuTypes = {
|
|
677
685
|
items: {
|
|
678
686
|
trigger: any;
|
|
679
687
|
content?: any;
|
|
680
688
|
}[];
|
|
689
|
+
rootClassNames?: string;
|
|
690
|
+
viewportClassNames?: string;
|
|
681
691
|
};
|
|
682
692
|
declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
|
|
683
693
|
|
|
@@ -1412,4 +1422,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1412
1422
|
handleTabChange: (index: any) => void;
|
|
1413
1423
|
};
|
|
1414
1424
|
|
|
1415
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, 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, useFormField, useMediaQuery, useTabs, useToast, useWindowSize };
|
|
1425
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, 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, useFormField, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.js
CHANGED
|
@@ -550,9 +550,15 @@ __export(components_exports, {
|
|
|
550
550
|
Logos: function() {
|
|
551
551
|
return Logos;
|
|
552
552
|
},
|
|
553
|
+
NavMenuItem: function() {
|
|
554
|
+
return NavMenuItem;
|
|
555
|
+
},
|
|
553
556
|
NavigationMenu: function() {
|
|
554
557
|
return NavigationMenu;
|
|
555
558
|
},
|
|
559
|
+
NavigationMenuLink: function() {
|
|
560
|
+
return NavigationMenuLink;
|
|
561
|
+
},
|
|
556
562
|
NewPasswordForm: function() {
|
|
557
563
|
return NewPasswordForm;
|
|
558
564
|
},
|
|
@@ -6046,8 +6052,11 @@ var NavigationMenuRoot = React47.forwardRef(function(_param, ref) /* @__PURE__ *
|
|
|
6046
6052
|
]);
|
|
6047
6053
|
return React47.createElement(NavigationMenuPrimitive.Root, _object_spread({
|
|
6048
6054
|
ref: ref,
|
|
6049
|
-
className: cn("hawa-relative hawa-z-10 hawa-flex
|
|
6050
|
-
|
|
6055
|
+
className: cn("hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center", // "hawa-max-w-max",
|
|
6056
|
+
className)
|
|
6057
|
+
}, props), children, /* @__PURE__ */ React47.createElement(NavigationMenuViewport, {
|
|
6058
|
+
className: props.viewportClassNames
|
|
6059
|
+
}));
|
|
6051
6060
|
});
|
|
6052
6061
|
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
6053
6062
|
var NavigationMenuList = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
@@ -6093,13 +6102,24 @@ var NavigationMenuContent = React47.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6093
6102
|
]);
|
|
6094
6103
|
return React47.createElement(NavigationMenuPrimitive.Content, _object_spread({
|
|
6095
6104
|
ref: ref,
|
|
6096
|
-
className: cn("hawa-absolute
|
|
6105
|
+
className: cn("hawa-absolute hawa-w-full hawa-left-0 hawa-top-0 ", // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
6097
6106
|
// animation
|
|
6098
6107
|
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52", className)
|
|
6099
6108
|
}, props));
|
|
6100
6109
|
});
|
|
6101
6110
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
6102
6111
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
6112
|
+
var NavMenuItem = function(props) {
|
|
6113
|
+
return /* @__PURE__ */ React47.createElement(NavigationMenuLink, null, /* @__PURE__ */ React47.createElement("div", {
|
|
6114
|
+
className: "hawa-max-w-md hawa-cursor-pointer hawa-p-4 hawa-py-2 hawa-rounded hawa-flex hawa-flex-row hawa-gap-4 hawa-items-center hawa-transition-all hover:hawa-bg-muted"
|
|
6115
|
+
}, props.icon && props.icon, /* @__PURE__ */ React47.createElement("div", {
|
|
6116
|
+
className: "hawa-flex hawa-flex-col"
|
|
6117
|
+
}, /* @__PURE__ */ React47.createElement("h1", {
|
|
6118
|
+
className: "hawa-font-bold "
|
|
6119
|
+
}, props.title), /* @__PURE__ */ React47.createElement("p", {
|
|
6120
|
+
className: "hawa-text-sm"
|
|
6121
|
+
}, props.subtitle))));
|
|
6122
|
+
};
|
|
6103
6123
|
var NavigationMenuViewport = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6104
6124
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6105
6125
|
"className"
|
|
@@ -6126,7 +6146,11 @@ var NavigationMenuIndicator = React47.forwardRef(function(_param, ref) /* @__PUR
|
|
|
6126
6146
|
});
|
|
6127
6147
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
6128
6148
|
var NavigationMenu = function(props) {
|
|
6129
|
-
return /* @__PURE__ */ React47.createElement(NavigationMenuRoot,
|
|
6149
|
+
return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, {
|
|
6150
|
+
delayDuration: 0,
|
|
6151
|
+
className: props.rootClassNames,
|
|
6152
|
+
viewportClassNames: props.viewportClassNames
|
|
6153
|
+
}, /* @__PURE__ */ React47.createElement(NavigationMenuList, null, props.items.map(function(item, i) {
|
|
6130
6154
|
return /* @__PURE__ */ React47.createElement(NavigationMenuItem, {
|
|
6131
6155
|
key: i
|
|
6132
6156
|
}, item.content ? /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(NavigationMenuTrigger, null, item.trigger), /* @__PURE__ */ React47.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React47.createElement(NavigationMenuLink, {
|
|
@@ -8584,7 +8608,9 @@ function useTabs() {
|
|
|
8584
8608
|
Loading: Loading,
|
|
8585
8609
|
LoginForm: LoginForm,
|
|
8586
8610
|
Logos: Logos,
|
|
8611
|
+
NavMenuItem: NavMenuItem,
|
|
8587
8612
|
NavigationMenu: NavigationMenu,
|
|
8613
|
+
NavigationMenuLink: NavigationMenuLink,
|
|
8588
8614
|
NewPasswordForm: NewPasswordForm,
|
|
8589
8615
|
NoPermission: NoPermission,
|
|
8590
8616
|
NotFound: NotFound,
|
package/dist/index.mjs
CHANGED
|
@@ -5728,13 +5728,14 @@ var NavigationMenuRoot = React47.forwardRef(({ className, children, ...props },
|
|
|
5728
5728
|
{
|
|
5729
5729
|
ref,
|
|
5730
5730
|
className: cn(
|
|
5731
|
-
"hawa-relative hawa-z-10 hawa-flex
|
|
5731
|
+
"hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center",
|
|
5732
|
+
// "hawa-max-w-max",
|
|
5732
5733
|
className
|
|
5733
5734
|
),
|
|
5734
5735
|
...props
|
|
5735
5736
|
},
|
|
5736
5737
|
children,
|
|
5737
|
-
/* @__PURE__ */ React47.createElement(NavigationMenuViewport,
|
|
5738
|
+
/* @__PURE__ */ React47.createElement(NavigationMenuViewport, { className: props.viewportClassNames })
|
|
5738
5739
|
));
|
|
5739
5740
|
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
5740
5741
|
var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(
|
|
@@ -5786,7 +5787,7 @@ var NavigationMenuContent = React47.forwardRef(({ className, ...props }, ref) =>
|
|
|
5786
5787
|
{
|
|
5787
5788
|
ref,
|
|
5788
5789
|
className: cn(
|
|
5789
|
-
"hawa-absolute
|
|
5790
|
+
"hawa-absolute hawa-w-full hawa-left-0 hawa-top-0 ",
|
|
5790
5791
|
// "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
5791
5792
|
// animation
|
|
5792
5793
|
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52",
|
|
@@ -5797,6 +5798,7 @@ var NavigationMenuContent = React47.forwardRef(({ className, ...props }, ref) =>
|
|
|
5797
5798
|
));
|
|
5798
5799
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
5799
5800
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
5801
|
+
var NavMenuItem = (props) => /* @__PURE__ */ React47.createElement(NavigationMenuLink, null, /* @__PURE__ */ React47.createElement("div", { className: "hawa-max-w-md hawa-cursor-pointer hawa-p-4 hawa-py-2 hawa-rounded hawa-flex hawa-flex-row hawa-gap-4 hawa-items-center hawa-transition-all hover:hawa-bg-muted" }, props.icon && props.icon, /* @__PURE__ */ React47.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React47.createElement("h1", { className: "hawa-font-bold " }, props.title), /* @__PURE__ */ React47.createElement("p", { className: "hawa-text-sm" }, props.subtitle))));
|
|
5800
5802
|
var NavigationMenuViewport = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(
|
|
5801
5803
|
"div",
|
|
5802
5804
|
{
|
|
@@ -5832,16 +5834,24 @@ var NavigationMenuIndicator = React47.forwardRef(({ className, ...props }, ref)
|
|
|
5832
5834
|
));
|
|
5833
5835
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
5834
5836
|
var NavigationMenu = (props) => {
|
|
5835
|
-
return /* @__PURE__ */ React47.createElement(
|
|
5836
|
-
|
|
5837
|
+
return /* @__PURE__ */ React47.createElement(
|
|
5838
|
+
NavigationMenuRoot,
|
|
5837
5839
|
{
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
)
|
|
5840
|
+
delayDuration: 0,
|
|
5841
|
+
className: props.rootClassNames,
|
|
5842
|
+
viewportClassNames: props.viewportClassNames
|
|
5842
5843
|
},
|
|
5843
|
-
item.trigger
|
|
5844
|
-
|
|
5844
|
+
/* @__PURE__ */ React47.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React47.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(NavigationMenuTrigger, null, item.trigger), /* @__PURE__ */ React47.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React47.createElement(
|
|
5845
|
+
NavigationMenuLink,
|
|
5846
|
+
{
|
|
5847
|
+
className: cn(
|
|
5848
|
+
navigationMenuTriggerStyle(),
|
|
5849
|
+
"hawa-cursor-pointer hawa-select-none"
|
|
5850
|
+
)
|
|
5851
|
+
},
|
|
5852
|
+
item.trigger
|
|
5853
|
+
))))
|
|
5854
|
+
);
|
|
5845
5855
|
};
|
|
5846
5856
|
|
|
5847
5857
|
// components/layout/Stats.tsx
|
|
@@ -8402,7 +8412,9 @@ export {
|
|
|
8402
8412
|
Loading,
|
|
8403
8413
|
LoginForm,
|
|
8404
8414
|
Logos,
|
|
8415
|
+
NavMenuItem,
|
|
8405
8416
|
NavigationMenu,
|
|
8417
|
+
NavigationMenuLink,
|
|
8406
8418
|
NewPasswordForm,
|
|
8407
8419
|
NoPermission,
|
|
8408
8420
|
NotFound,
|