@sikka/hawa 0.7.17-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)));
@@ -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,6 +674,13 @@ 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;
@@ -1412,4 +1420,4 @@ declare function useTabs(initialTab?: string): {
1412
1420
  handleTabChange: (index: any) => void;
1413
1421
  };
1414
1422
 
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 };
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;
@@ -673,6 +674,13 @@ 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;
@@ -1412,4 +1420,4 @@ declare function useTabs(initialTab?: string): {
1412
1420
  handleTabChange: (index: any) => void;
1413
1421
  };
1414
1422
 
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 };
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
  },
@@ -6100,6 +6106,17 @@ var NavigationMenuContent = React47.forwardRef(function(_param, ref) /* @__PURE_
6100
6106
  });
6101
6107
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
6102
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
+ };
6103
6120
  var NavigationMenuViewport = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
6104
6121
  var className = _param.className, props = _object_without_properties(_param, [
6105
6122
  "className"
@@ -6126,7 +6143,9 @@ var NavigationMenuIndicator = React47.forwardRef(function(_param, ref) /* @__PUR
6126
6143
  });
6127
6144
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
6128
6145
  var NavigationMenu = function(props) {
6129
- 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) {
6130
6149
  return /* @__PURE__ */ React47.createElement(NavigationMenuItem, {
6131
6150
  key: i
6132
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, {
@@ -8584,7 +8603,9 @@ function useTabs() {
8584
8603
  Loading: Loading,
8585
8604
  LoginForm: LoginForm,
8586
8605
  Logos: Logos,
8606
+ NavMenuItem: NavMenuItem,
8587
8607
  NavigationMenu: NavigationMenu,
8608
+ NavigationMenuLink: NavigationMenuLink,
8588
8609
  NewPasswordForm: NewPasswordForm,
8589
8610
  NoPermission: NoPermission,
8590
8611
  NotFound: NotFound,
package/dist/index.mjs CHANGED
@@ -5797,6 +5797,7 @@ var NavigationMenuContent = React47.forwardRef(({ className, ...props }, ref) =>
5797
5797
  ));
5798
5798
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
5799
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))));
5800
5801
  var NavigationMenuViewport = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(
5801
5802
  "div",
5802
5803
  {
@@ -5832,7 +5833,7 @@ var NavigationMenuIndicator = React47.forwardRef(({ className, ...props }, ref)
5832
5833
  ));
5833
5834
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
5834
5835
  var NavigationMenu = (props) => {
5835
- 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(
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(
5836
5837
  NavigationMenuLink,
5837
5838
  {
5838
5839
  className: cn(
@@ -8402,7 +8403,9 @@ export {
8402
8403
  Loading,
8403
8404
  LoginForm,
8404
8405
  Logos,
8406
+ NavMenuItem,
8405
8407
  NavigationMenu,
8408
+ NavigationMenuLink,
8406
8409
  NewPasswordForm,
8407
8410
  NoPermission,
8408
8411
  NotFound,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.7.17-next",
3
+ "version": "0.7.18-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {