@sikka/hawa 0.19.24-next → 0.19.25-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.d.mts CHANGED
@@ -1008,11 +1008,11 @@ declare const ProgressCircle: React__default.ForwardRefExoticComponent<ProgressC
1008
1008
 
1009
1009
  declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
1010
1010
  type NavMenuItemTypes = {
1011
- icon?: any;
1011
+ icon?: React$1.ReactNode;
1012
1012
  title: string;
1013
1013
  subtitle?: string;
1014
1014
  };
1015
- declare const NavMenuItem: React$1.FC<NavMenuItemTypes>;
1015
+ declare const NavMenuItem: React$1.FC<NavMenuItemTypes & React$1.ComponentProps<typeof NavigationMenuPrimitive.Link>>;
1016
1016
  type NavigationMenuTypes = {
1017
1017
  items: {
1018
1018
  trigger: any;
package/dist/index.d.ts CHANGED
@@ -1008,11 +1008,11 @@ declare const ProgressCircle: React__default.ForwardRefExoticComponent<ProgressC
1008
1008
 
1009
1009
  declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
1010
1010
  type NavMenuItemTypes = {
1011
- icon?: any;
1011
+ icon?: React$1.ReactNode;
1012
1012
  title: string;
1013
1013
  subtitle?: string;
1014
1014
  };
1015
- declare const NavMenuItem: React$1.FC<NavMenuItemTypes>;
1015
+ declare const NavMenuItem: React$1.FC<NavMenuItemTypes & React$1.ComponentProps<typeof NavigationMenuPrimitive.Link>>;
1016
1016
  type NavigationMenuTypes = {
1017
1017
  items: {
1018
1018
  trigger: any;
package/dist/index.js CHANGED
@@ -7557,7 +7557,7 @@ var NavigationMenuContent = React59.forwardRef(({ className, ...props }, ref) =>
7557
7557
  {
7558
7558
  ref,
7559
7559
  className: cn(
7560
- "hawa-absolute hawa-w-full hawa-left-0 hawa-top-0 ",
7560
+ "hawa-absolute hawa-w-full hawa-rounded hawa-left-0 hawa-top-0 ",
7561
7561
  // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
7562
7562
  // animation
7563
7563
  "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",
@@ -7568,7 +7568,7 @@ var NavigationMenuContent = React59.forwardRef(({ className, ...props }, ref) =>
7568
7568
  ));
7569
7569
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
7570
7570
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
7571
- var NavMenuItem = (props) => /* @__PURE__ */ React59.createElement(NavigationMenuLink, null, /* @__PURE__ */ React59.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__ */ React59.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React59.createElement("h1", { className: "hawa-font-bold hawa-text-xl" }, props.title), /* @__PURE__ */ React59.createElement("p", { className: "hawa-text-sm" }, props.subtitle))));
7571
+ var NavMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React59.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React59.createElement("div", { className: "hawa-max-w-md hawa-rounded-inner hawa-cursor-pointer hawa-p-4 hawa-py-2 hawa-flex hawa-flex-row hawa-gap-4 hawa-items-center hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React59.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React59.createElement("h1", { className: "hawa-font-bold hawa-text-xl" }, title), /* @__PURE__ */ React59.createElement("p", { className: "hawa-text-sm" }, subtitle))));
7572
7572
  var NavigationMenuViewport = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
7573
7573
  "div",
7574
7574
  {
@@ -7580,16 +7580,19 @@ var NavigationMenuViewport = React59.forwardRef(({ className, ...props }, ref) =
7580
7580
  NavigationMenuPrimitive.Viewport,
7581
7581
  {
7582
7582
  className: cn(
7583
- "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 ",
7583
+ "hawa-origin-top-center hawa-relative hawa-mt-1.5 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 ",
7584
+ // hawa-h-[var(--radix-navigation-menu-viewport-height)]
7584
7585
  // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
7585
7586
  className
7586
7587
  ),
7588
+ style: {
7589
+ height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
7590
+ },
7587
7591
  ref,
7588
7592
  ...props
7589
7593
  }
7590
7594
  )
7591
7595
  ));
7592
- NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
7593
7596
  var NavigationMenuIndicator = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
7594
7597
  NavigationMenuPrimitive.Indicator,
7595
7598
  {
@@ -7602,7 +7605,6 @@ var NavigationMenuIndicator = React59.forwardRef(({ className, ...props }, ref)
7602
7605
  },
7603
7606
  /* @__PURE__ */ React59.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
7604
7607
  ));
7605
- NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
7606
7608
  var NavigationMenu = ({
7607
7609
  viewportClassNames,
7608
7610
  ...props
@@ -7632,6 +7634,8 @@ var NavigationMenu = ({
7632
7634
  ))))
7633
7635
  );
7634
7636
  };
7637
+ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
7638
+ NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
7635
7639
 
7636
7640
  // components/elements/Pagination.tsx
7637
7641
  var import_react36 = __toESM(require("react"));
package/dist/index.mjs CHANGED
@@ -7339,7 +7339,7 @@ var NavigationMenuContent = React59.forwardRef(({ className, ...props }, ref) =>
7339
7339
  {
7340
7340
  ref,
7341
7341
  className: cn(
7342
- "hawa-absolute hawa-w-full hawa-left-0 hawa-top-0 ",
7342
+ "hawa-absolute hawa-w-full hawa-rounded hawa-left-0 hawa-top-0 ",
7343
7343
  // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
7344
7344
  // animation
7345
7345
  "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",
@@ -7350,7 +7350,7 @@ var NavigationMenuContent = React59.forwardRef(({ className, ...props }, ref) =>
7350
7350
  ));
7351
7351
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
7352
7352
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
7353
- var NavMenuItem = (props) => /* @__PURE__ */ React59.createElement(NavigationMenuLink, null, /* @__PURE__ */ React59.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__ */ React59.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React59.createElement("h1", { className: "hawa-font-bold hawa-text-xl" }, props.title), /* @__PURE__ */ React59.createElement("p", { className: "hawa-text-sm" }, props.subtitle))));
7353
+ var NavMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React59.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React59.createElement("div", { className: "hawa-max-w-md hawa-rounded-inner hawa-cursor-pointer hawa-p-4 hawa-py-2 hawa-flex hawa-flex-row hawa-gap-4 hawa-items-center hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React59.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React59.createElement("h1", { className: "hawa-font-bold hawa-text-xl" }, title), /* @__PURE__ */ React59.createElement("p", { className: "hawa-text-sm" }, subtitle))));
7354
7354
  var NavigationMenuViewport = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
7355
7355
  "div",
7356
7356
  {
@@ -7362,16 +7362,19 @@ var NavigationMenuViewport = React59.forwardRef(({ className, ...props }, ref) =
7362
7362
  NavigationMenuPrimitive.Viewport,
7363
7363
  {
7364
7364
  className: cn(
7365
- "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 ",
7365
+ "hawa-origin-top-center hawa-relative hawa-mt-1.5 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 ",
7366
+ // hawa-h-[var(--radix-navigation-menu-viewport-height)]
7366
7367
  // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
7367
7368
  className
7368
7369
  ),
7370
+ style: {
7371
+ height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
7372
+ },
7369
7373
  ref,
7370
7374
  ...props
7371
7375
  }
7372
7376
  )
7373
7377
  ));
7374
- NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
7375
7378
  var NavigationMenuIndicator = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
7376
7379
  NavigationMenuPrimitive.Indicator,
7377
7380
  {
@@ -7384,7 +7387,6 @@ var NavigationMenuIndicator = React59.forwardRef(({ className, ...props }, ref)
7384
7387
  },
7385
7388
  /* @__PURE__ */ React59.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
7386
7389
  ));
7387
- NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
7388
7390
  var NavigationMenu = ({
7389
7391
  viewportClassNames,
7390
7392
  ...props
@@ -7414,6 +7416,8 @@ var NavigationMenu = ({
7414
7416
  ))))
7415
7417
  );
7416
7418
  };
7419
+ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
7420
+ NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
7417
7421
 
7418
7422
  // components/elements/Pagination.tsx
7419
7423
  import React60 from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.19.24-next",
3
+ "version": "0.19.25-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",