@sikka/hawa 0.7.18-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.d.mts CHANGED
@@ -686,6 +686,8 @@ type NavigationMenuTypes = {
686
686
  trigger: any;
687
687
  content?: any;
688
688
  }[];
689
+ rootClassNames?: string;
690
+ viewportClassNames?: string;
689
691
  };
690
692
  declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
691
693
 
package/dist/index.d.ts CHANGED
@@ -686,6 +686,8 @@ type NavigationMenuTypes = {
686
686
  trigger: any;
687
687
  content?: any;
688
688
  }[];
689
+ rootClassNames?: string;
690
+ viewportClassNames?: string;
689
691
  };
690
692
  declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
691
693
 
package/dist/index.js CHANGED
@@ -6052,8 +6052,11 @@ var NavigationMenuRoot = React47.forwardRef(function(_param, ref) /* @__PURE__ *
6052
6052
  ]);
6053
6053
  return React47.createElement(NavigationMenuPrimitive.Root, _object_spread({
6054
6054
  ref: ref,
6055
- className: cn("hawa-relative hawa-z-10 hawa-flex hawa-max-w-max hawa-flex-1 hawa-items-center hawa-justify-center", className)
6056
- }, props), children, /* @__PURE__ */ React47.createElement(NavigationMenuViewport, null));
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
+ }));
6057
6060
  });
6058
6061
  NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
6059
6062
  var NavigationMenuList = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
@@ -6099,7 +6102,7 @@ var NavigationMenuContent = React47.forwardRef(function(_param, ref) /* @__PURE_
6099
6102
  ]);
6100
6103
  return React47.createElement(NavigationMenuPrimitive.Content, _object_spread({
6101
6104
  ref: ref,
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 ",
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 ",
6103
6106
  // animation
6104
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)
6105
6108
  }, props));
@@ -6144,7 +6147,9 @@ var NavigationMenuIndicator = React47.forwardRef(function(_param, ref) /* @__PUR
6144
6147
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
6145
6148
  var NavigationMenu = function(props) {
6146
6149
  return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, {
6147
- delayDuration: 0
6150
+ delayDuration: 0,
6151
+ className: props.rootClassNames,
6152
+ viewportClassNames: props.viewportClassNames
6148
6153
  }, /* @__PURE__ */ React47.createElement(NavigationMenuList, null, props.items.map(function(item, i) {
6149
6154
  return /* @__PURE__ */ React47.createElement(NavigationMenuItem, {
6150
6155
  key: i
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 hawa-max-w-max hawa-flex-1 hawa-items-center hawa-justify-center",
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, null)
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 hawa-w-auto hawa-left-0 hawa-top-0 ",
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",
@@ -5833,16 +5834,24 @@ var NavigationMenuIndicator = React47.forwardRef(({ className, ...props }, ref)
5833
5834
  ));
5834
5835
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
5835
5836
  var NavigationMenu = (props) => {
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,
5837
+ return /* @__PURE__ */ React47.createElement(
5838
+ NavigationMenuRoot,
5838
5839
  {
5839
- className: cn(
5840
- navigationMenuTriggerStyle(),
5841
- "hawa-cursor-pointer hawa-select-none"
5842
- )
5840
+ delayDuration: 0,
5841
+ className: props.rootClassNames,
5842
+ viewportClassNames: props.viewportClassNames
5843
5843
  },
5844
- item.trigger
5845
- )))));
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
+ );
5846
5855
  };
5847
5856
 
5848
5857
  // components/layout/Stats.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.7.18-next",
3
+ "version": "0.7.19-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {