@sikka/hawa 0.7.16-next → 0.7.18-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 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)));
@@ -1718,10 +1736,6 @@ input[type="number"]::-webkit-inner-spin-button,
1718
1736
  --tw-bg-opacity: 1;
1719
1737
  background-color: rgb(219 234 254 / var(--tw-bg-opacity));
1720
1738
  }
1721
- .hawa-bg-blue-400 {
1722
- --tw-bg-opacity: 1;
1723
- background-color: rgb(96 165 250 / var(--tw-bg-opacity));
1724
- }
1725
1739
  .hawa-bg-blue-50 {
1726
1740
  --tw-bg-opacity: 1;
1727
1741
  background-color: rgb(239 246 255 / var(--tw-bg-opacity));
@@ -1901,6 +1915,10 @@ input[type="number"]::-webkit-inner-spin-button,
1901
1915
  .hawa-fill-primary\/20 {
1902
1916
  fill: hsl(var(--primary) / 0.2);
1903
1917
  }
1918
+ .hawa-object-cover {
1919
+ -o-object-fit: cover;
1920
+ object-fit: cover;
1921
+ }
1904
1922
  .hawa-p-0 {
1905
1923
  padding: 0px;
1906
1924
  }
@@ -2084,6 +2102,10 @@ input[type="number"]::-webkit-inner-spin-button,
2084
2102
  font-size: 1.5rem;
2085
2103
  line-height: 2rem;
2086
2104
  }
2105
+ .hawa-text-3xl {
2106
+ font-size: 1.875rem;
2107
+ line-height: 2.25rem;
2108
+ }
2087
2109
  .hawa-text-5xl {
2088
2110
  font-size: 3rem;
2089
2111
  line-height: 1;
@@ -2217,6 +2239,10 @@ input[type="number"]::-webkit-inner-spin-button,
2217
2239
  --tw-text-opacity: 1;
2218
2240
  color: rgb(107 114 128 / var(--tw-text-opacity));
2219
2241
  }
2242
+ .hawa-text-gray-600 {
2243
+ --tw-text-opacity: 1;
2244
+ color: rgb(75 85 99 / var(--tw-text-opacity));
2245
+ }
2220
2246
  .hawa-text-gray-700 {
2221
2247
  --tw-text-opacity: 1;
2222
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;
@@ -323,6 +324,8 @@ interface DropdownMenuProps {
323
324
  width?: "default" | "sm" | "lg" | "parent";
324
325
  size?: "default" | "sm";
325
326
  onItemSelect?: any;
327
+ onOpenChange?: any;
328
+ open?: any;
326
329
  }
327
330
  declare const DropdownMenu: React$1.FC<DropdownMenuProps>;
328
331
 
@@ -671,6 +674,13 @@ type TypographyTypes = {
671
674
  };
672
675
  declare const InterfaceSettings: FC<TypographyTypes>;
673
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>;
674
684
  type NavigationMenuTypes = {
675
685
  items: {
676
686
  trigger: any;
@@ -1410,4 +1420,4 @@ declare function useTabs(initialTab?: string): {
1410
1420
  handleTabChange: (index: any) => void;
1411
1421
  };
1412
1422
 
1413
- 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 };
1423
+ 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;
@@ -323,6 +324,8 @@ interface DropdownMenuProps {
323
324
  width?: "default" | "sm" | "lg" | "parent";
324
325
  size?: "default" | "sm";
325
326
  onItemSelect?: any;
327
+ onOpenChange?: any;
328
+ open?: any;
326
329
  }
327
330
  declare const DropdownMenu: React$1.FC<DropdownMenuProps>;
328
331
 
@@ -671,6 +674,13 @@ type TypographyTypes = {
671
674
  };
672
675
  declare const InterfaceSettings: FC<TypographyTypes>;
673
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>;
674
684
  type NavigationMenuTypes = {
675
685
  items: {
676
686
  trigger: any;
@@ -1410,4 +1420,4 @@ declare function useTabs(initialTab?: string): {
1410
1420
  handleTabChange: (index: any) => void;
1411
1421
  };
1412
1422
 
1413
- 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 };
1423
+ 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
  },
@@ -2154,7 +2160,6 @@ var DropdownMenuItem = React24.forwardRef(function(_param, ref) {
2154
2160
  "className",
2155
2161
  "inset"
2156
2162
  ]);
2157
- console.log("sdsdsds", props.children);
2158
2163
  return /* @__PURE__ */ React24.createElement(DropdownMenuPrimitive.Item, _object_spread({
2159
2164
  disabled: props.disabled,
2160
2165
  ref: ref,
@@ -2249,7 +2254,7 @@ var DropdownMenuShortcut = function(_param) {
2249
2254
  };
2250
2255
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
2251
2256
  var DropdownMenu = function(param) {
2252
- var trigger = param.trigger, items = param.items, direction = param.direction, sideOffset = param.sideOffset, side = param.side, className = param.className, triggerClassname = param.triggerClassname, align = param.align, alignOffset = param.alignOffset, onItemSelect = param.onItemSelect, _param_size = param.size, size = _param_size === void 0 ? "default" : _param_size, _param_width = param.width, width = _param_width === void 0 ? "default" : _param_width;
2257
+ var trigger = param.trigger, items = param.items, direction = param.direction, sideOffset = param.sideOffset, side = param.side, className = param.className, triggerClassname = param.triggerClassname, align = param.align, alignOffset = param.alignOffset, onItemSelect = param.onItemSelect, _param_size = param.size, size = _param_size === void 0 ? "default" : _param_size, _param_width = param.width, width = _param_width === void 0 ? "default" : _param_width, onOpenChange = param.onOpenChange, open = param.open;
2253
2258
  var widthStyles = {
2254
2259
  default: "hawa-min-w-[8rem]",
2255
2260
  sm: "hawa-w-fit",
@@ -2261,6 +2266,8 @@ var DropdownMenu = function(param) {
2261
2266
  sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
2262
2267
  };
2263
2268
  return /* @__PURE__ */ React24.createElement(DropdownMenuRoot, {
2269
+ onOpenChange: onOpenChange,
2270
+ open: open,
2264
2271
  modal: false,
2265
2272
  dir: direction
2266
2273
  }, /* @__PURE__ */ React24.createElement(DropdownMenuTrigger, {
@@ -6045,7 +6052,7 @@ var NavigationMenuRoot = React47.forwardRef(function(_param, ref) /* @__PURE__ *
6045
6052
  ]);
6046
6053
  return React47.createElement(NavigationMenuPrimitive.Root, _object_spread({
6047
6054
  ref: ref,
6048
- className: cn("hawa-relative hawa-bg-yellow-400 hawa-p-2 hawa-z-10 hawa-flex hawa-max-w-max hawa-flex-1 hawa-items-center hawa-justify-center", className)
6055
+ className: cn("hawa-relative hawa-z-10 hawa-flex hawa-max-w-max hawa-flex-1 hawa-items-center hawa-justify-center", className)
6049
6056
  }, props), children, /* @__PURE__ */ React47.createElement(NavigationMenuViewport, null));
6050
6057
  });
6051
6058
  NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
@@ -6055,7 +6062,7 @@ var NavigationMenuList = React47.forwardRef(function(_param, ref) /* @__PURE__ *
6055
6062
  ]);
6056
6063
  return React47.createElement(NavigationMenuPrimitive.List, _object_spread({
6057
6064
  ref: ref,
6058
- className: cn("hawa-group hawa-bg-blue-400 hawa-p-2 hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-space-x-1", className)
6065
+ className: cn("hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-space-x-1", className)
6059
6066
  }, props));
6060
6067
  });
6061
6068
  NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
@@ -6092,20 +6099,33 @@ var NavigationMenuContent = React47.forwardRef(function(_param, ref) /* @__PURE_
6092
6099
  ]);
6093
6100
  return React47.createElement(NavigationMenuPrimitive.Content, _object_spread({
6094
6101
  ref: ref,
6095
- className: cn("hawa-bg-green-400 hawa-p-2 hawa-w-full md:hawa-absolute hawa-left-0 hawa-top-0 md:hawa-w-auto ", // animation
6102
+ className: cn("hawa-absolute hawa-w-auto hawa-left-0 hawa-top-0 ", // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
6103
+ // animation
6096
6104
  "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)
6097
6105
  }, props));
6098
6106
  });
6099
6107
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
6100
6108
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
6109
+ var NavMenuItem = function(props) {
6110
+ return /* @__PURE__ */ React47.createElement(NavigationMenuLink, null, /* @__PURE__ */ React47.createElement("div", {
6111
+ 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"
6112
+ }, props.icon && props.icon, /* @__PURE__ */ React47.createElement("div", {
6113
+ className: "hawa-flex hawa-flex-col"
6114
+ }, /* @__PURE__ */ React47.createElement("h1", {
6115
+ className: "hawa-font-bold "
6116
+ }, props.title), /* @__PURE__ */ React47.createElement("p", {
6117
+ className: "hawa-text-sm"
6118
+ }, props.subtitle))));
6119
+ };
6101
6120
  var NavigationMenuViewport = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
6102
6121
  var className = _param.className, props = _object_without_properties(_param, [
6103
6122
  "className"
6104
6123
  ]);
6105
6124
  return React47.createElement("div", {
6106
- className: cn("hawa-absolute hawa-left-0 hawa-top-full hawa-flex hawa-justify-center")
6125
+ className: cn("hawa-absolute hawa-w-full hawa-top-full hawa-flex hawa-justify-center")
6107
6126
  }, /* @__PURE__ */ React47.createElement(NavigationMenuPrimitive.Viewport, _object_spread({
6108
- className: cn("hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 md:hawa-w-[var(--radix-navigation-menu-viewport-width)]", className),
6127
+ className: cn("hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ", // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
6128
+ className),
6109
6129
  ref: ref
6110
6130
  }, props)));
6111
6131
  });
@@ -6123,11 +6143,13 @@ var NavigationMenuIndicator = React47.forwardRef(function(_param, ref) /* @__PUR
6123
6143
  });
6124
6144
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
6125
6145
  var NavigationMenu = function(props) {
6126
- return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, null, /* @__PURE__ */ React47.createElement(NavigationMenuList, null, props.items.map(function(item, i) {
6146
+ return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, {
6147
+ delayDuration: 0
6148
+ }, /* @__PURE__ */ React47.createElement(NavigationMenuList, null, props.items.map(function(item, i) {
6127
6149
  return /* @__PURE__ */ React47.createElement(NavigationMenuItem, {
6128
6150
  key: i
6129
6151
  }, 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, {
6130
- className: navigationMenuTriggerStyle()
6152
+ className: cn(navigationMenuTriggerStyle(), "hawa-cursor-pointer hawa-select-none")
6131
6153
  }, item.trigger));
6132
6154
  })));
6133
6155
  };
@@ -8581,7 +8603,9 @@ function useTabs() {
8581
8603
  Loading: Loading,
8582
8604
  LoginForm: LoginForm,
8583
8605
  Logos: Logos,
8606
+ NavMenuItem: NavMenuItem,
8584
8607
  NavigationMenu: NavigationMenu,
8608
+ NavigationMenuLink: NavigationMenuLink,
8585
8609
  NewPasswordForm: NewPasswordForm,
8586
8610
  NoPermission: NoPermission,
8587
8611
  NotFound: NotFound,
package/dist/index.mjs CHANGED
@@ -1648,7 +1648,6 @@ var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...pr
1648
1648
  )));
1649
1649
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
1650
1650
  var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref) => {
1651
- console.log("sdsdsds", props.children);
1652
1651
  return /* @__PURE__ */ React24.createElement(
1653
1652
  DropdownMenuPrimitive.Item,
1654
1653
  {
@@ -1774,7 +1773,9 @@ var DropdownMenu = ({
1774
1773
  alignOffset,
1775
1774
  onItemSelect,
1776
1775
  size = "default",
1777
- width = "default"
1776
+ width = "default",
1777
+ onOpenChange,
1778
+ open
1778
1779
  }) => {
1779
1780
  const widthStyles = {
1780
1781
  default: "hawa-min-w-[8rem]",
@@ -1786,86 +1787,96 @@ var DropdownMenu = ({
1786
1787
  default: "hawa-px-2 hawa-py-3 ",
1787
1788
  sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
1788
1789
  };
1789
- return /* @__PURE__ */ React24.createElement(DropdownMenuRoot, { modal: false, dir: direction }, /* @__PURE__ */ React24.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger), /* @__PURE__ */ React24.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React24.createElement(
1790
- DropdownMenuContent,
1790
+ return /* @__PURE__ */ React24.createElement(
1791
+ DropdownMenuRoot,
1791
1792
  {
1792
- side,
1793
- sideOffset,
1794
- className: cn(
1795
- className,
1796
- widthStyles[width],
1797
- "hawa-flex hawa-flex-col hawa-gap-1"
1798
- ),
1799
- align,
1800
- alignOffset
1793
+ onOpenChange,
1794
+ open,
1795
+ modal: false,
1796
+ dir: direction
1801
1797
  },
1802
- items && items.map((item, index) => {
1803
- if (item.itemType === "separator") {
1804
- return /* @__PURE__ */ React24.createElement(DropdownMenuSeparator, { key: index });
1805
- } else if (item.itemType === "label") {
1806
- return /* @__PURE__ */ React24.createElement(DropdownMenuLabel, { key: index }, item.label);
1807
- } else if (item.itemType === "custom") {
1808
- return /* @__PURE__ */ React24.createElement("div", { key: index }, item.content);
1809
- } else {
1810
- return item.subitems ? /* @__PURE__ */ React24.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React24.createElement(
1811
- DropdownMenuSubTrigger,
1812
- {
1813
- className: cn(sizeStyles[size]),
1814
- dir: direction
1815
- },
1816
- item.icon && item.icon,
1817
- item.label && item.label
1818
- ), /* @__PURE__ */ React24.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React24.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React24.createElement(
1819
- DropdownMenuItem,
1820
- {
1821
- key: subIndex,
1822
- className: cn(
1823
- sizeStyles[size],
1824
- !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
1825
- ),
1826
- disabled: subitem.disabled,
1827
- onSelect: () => {
1828
- subitem.action && subitem.action();
1829
- if (onItemSelect) {
1830
- onItemSelect(subitem.value);
1831
- }
1832
- }
1833
- },
1834
- subitem.icon && subitem.icon,
1835
- subitem.label && subitem.label
1836
- ))))) : /* @__PURE__ */ React24.createElement(
1837
- DropdownMenuItem,
1838
- {
1839
- key: index,
1840
- disabled: item.disabled,
1841
- onSelect: (e) => {
1842
- if (item.presist) {
1843
- e.preventDefault();
1844
- }
1845
- if (item.action) {
1846
- item.action();
1847
- if (onItemSelect) {
1848
- onItemSelect(item.value);
1849
- }
1850
- } else {
1798
+ /* @__PURE__ */ React24.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
1799
+ /* @__PURE__ */ React24.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React24.createElement(
1800
+ DropdownMenuContent,
1801
+ {
1802
+ side,
1803
+ sideOffset,
1804
+ className: cn(
1805
+ className,
1806
+ widthStyles[width],
1807
+ "hawa-flex hawa-flex-col hawa-gap-1"
1808
+ ),
1809
+ align,
1810
+ alignOffset
1811
+ },
1812
+ items && items.map((item, index) => {
1813
+ if (item.itemType === "separator") {
1814
+ return /* @__PURE__ */ React24.createElement(DropdownMenuSeparator, { key: index });
1815
+ } else if (item.itemType === "label") {
1816
+ return /* @__PURE__ */ React24.createElement(DropdownMenuLabel, { key: index }, item.label);
1817
+ } else if (item.itemType === "custom") {
1818
+ return /* @__PURE__ */ React24.createElement("div", { key: index }, item.content);
1819
+ } else {
1820
+ return item.subitems ? /* @__PURE__ */ React24.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React24.createElement(
1821
+ DropdownMenuSubTrigger,
1822
+ {
1823
+ className: cn(sizeStyles[size]),
1824
+ dir: direction
1825
+ },
1826
+ item.icon && item.icon,
1827
+ item.label && item.label
1828
+ ), /* @__PURE__ */ React24.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React24.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React24.createElement(
1829
+ DropdownMenuItem,
1830
+ {
1831
+ key: subIndex,
1832
+ className: cn(
1833
+ sizeStyles[size],
1834
+ !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
1835
+ ),
1836
+ disabled: subitem.disabled,
1837
+ onSelect: () => {
1838
+ subitem.action && subitem.action();
1851
1839
  if (onItemSelect) {
1852
- onItemSelect(item.value);
1840
+ onItemSelect(subitem.value);
1853
1841
  }
1854
1842
  }
1855
1843
  },
1856
- end: item.end,
1857
- className: cn(
1858
- sizeStyles[size],
1859
- !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent " : "focus:hawa-bg-accent ",
1860
- item.presist && "focus:hawa-bg-transparent"
1861
- )
1862
- },
1863
- item.icon && item.icon,
1864
- item.label && item.label
1865
- );
1866
- }
1867
- })
1868
- )));
1844
+ subitem.icon && subitem.icon,
1845
+ subitem.label && subitem.label
1846
+ ))))) : /* @__PURE__ */ React24.createElement(
1847
+ DropdownMenuItem,
1848
+ {
1849
+ key: index,
1850
+ disabled: item.disabled,
1851
+ onSelect: (e) => {
1852
+ if (item.presist) {
1853
+ e.preventDefault();
1854
+ }
1855
+ if (item.action) {
1856
+ item.action();
1857
+ if (onItemSelect) {
1858
+ onItemSelect(item.value);
1859
+ }
1860
+ } else {
1861
+ if (onItemSelect) {
1862
+ onItemSelect(item.value);
1863
+ }
1864
+ }
1865
+ },
1866
+ end: item.end,
1867
+ className: cn(
1868
+ sizeStyles[size],
1869
+ !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent " : "focus:hawa-bg-accent ",
1870
+ item.presist && "focus:hawa-bg-transparent"
1871
+ )
1872
+ },
1873
+ item.icon && item.icon,
1874
+ item.label && item.label
1875
+ );
1876
+ }
1877
+ })
1878
+ ))
1879
+ );
1869
1880
  };
1870
1881
 
1871
1882
  // components/elements/ColorPicker.tsx
@@ -5717,7 +5728,7 @@ var NavigationMenuRoot = React47.forwardRef(({ className, children, ...props },
5717
5728
  {
5718
5729
  ref,
5719
5730
  className: cn(
5720
- "hawa-relative hawa-bg-yellow-400 hawa-p-2 hawa-z-10 hawa-flex hawa-max-w-max hawa-flex-1 hawa-items-center hawa-justify-center",
5731
+ "hawa-relative hawa-z-10 hawa-flex hawa-max-w-max hawa-flex-1 hawa-items-center hawa-justify-center",
5721
5732
  className
5722
5733
  ),
5723
5734
  ...props
@@ -5731,7 +5742,7 @@ var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /*
5731
5742
  {
5732
5743
  ref,
5733
5744
  className: cn(
5734
- "hawa-group hawa-bg-blue-400 hawa-p-2 hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-space-x-1",
5745
+ "hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-space-x-1",
5735
5746
  className
5736
5747
  ),
5737
5748
  ...props
@@ -5775,7 +5786,8 @@ var NavigationMenuContent = React47.forwardRef(({ className, ...props }, ref) =>
5775
5786
  {
5776
5787
  ref,
5777
5788
  className: cn(
5778
- "hawa-bg-green-400 hawa-p-2 hawa-w-full md:hawa-absolute hawa-left-0 hawa-top-0 md:hawa-w-auto ",
5789
+ "hawa-absolute hawa-w-auto hawa-left-0 hawa-top-0 ",
5790
+ // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
5779
5791
  // animation
5780
5792
  "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",
5781
5793
  className
@@ -5785,18 +5797,20 @@ var NavigationMenuContent = React47.forwardRef(({ className, ...props }, ref) =>
5785
5797
  ));
5786
5798
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
5787
5799
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
5800
+ 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))));
5788
5801
  var NavigationMenuViewport = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(
5789
5802
  "div",
5790
5803
  {
5791
5804
  className: cn(
5792
- "hawa-absolute hawa-left-0 hawa-top-full hawa-flex hawa-justify-center"
5805
+ "hawa-absolute hawa-w-full hawa-top-full hawa-flex hawa-justify-center"
5793
5806
  )
5794
5807
  },
5795
5808
  /* @__PURE__ */ React47.createElement(
5796
5809
  NavigationMenuPrimitive.Viewport,
5797
5810
  {
5798
5811
  className: cn(
5799
- "hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
5812
+ "hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ",
5813
+ // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
5800
5814
  className
5801
5815
  ),
5802
5816
  ref,
@@ -5819,7 +5833,16 @@ var NavigationMenuIndicator = React47.forwardRef(({ className, ...props }, ref)
5819
5833
  ));
5820
5834
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
5821
5835
  var NavigationMenu = (props) => {
5822
- return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, null, /* @__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(NavigationMenuLink, { className: navigationMenuTriggerStyle() }, item.trigger)))));
5836
+ return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, { delayDuration: 0 }, /* @__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(
5837
+ NavigationMenuLink,
5838
+ {
5839
+ className: cn(
5840
+ navigationMenuTriggerStyle(),
5841
+ "hawa-cursor-pointer hawa-select-none"
5842
+ )
5843
+ },
5844
+ item.trigger
5845
+ )))));
5823
5846
  };
5824
5847
 
5825
5848
  // components/layout/Stats.tsx
@@ -8380,7 +8403,9 @@ export {
8380
8403
  Loading,
8381
8404
  LoginForm,
8382
8405
  Logos,
8406
+ NavMenuItem,
8383
8407
  NavigationMenu,
8408
+ NavigationMenuLink,
8384
8409
  NewPasswordForm,
8385
8410
  NoPermission,
8386
8411
  NotFound,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.7.16-next",
3
+ "version": "0.7.18-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {