@sikka/hawa 0.8.9-next → 0.8.10-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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6145,7 +6145,7 @@ var NavMenuItem = function(props) {
|
|
|
6145
6145
|
}, props.icon && props.icon, /* @__PURE__ */ React47.createElement("div", {
|
|
6146
6146
|
className: "hawa-flex hawa-flex-col"
|
|
6147
6147
|
}, /* @__PURE__ */ React47.createElement("h1", {
|
|
6148
|
-
className: "hawa-font-bold "
|
|
6148
|
+
className: "hawa-font-bold hawa-text-xl"
|
|
6149
6149
|
}, props.title), /* @__PURE__ */ React47.createElement("p", {
|
|
6150
6150
|
className: "hawa-text-sm"
|
|
6151
6151
|
}, props.subtitle))));
|
|
@@ -6185,6 +6185,11 @@ var NavigationMenu = function(props) {
|
|
|
6185
6185
|
return /* @__PURE__ */ React47.createElement(NavigationMenuItem, {
|
|
6186
6186
|
key: i
|
|
6187
6187
|
}, 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, {
|
|
6188
|
+
onClick: function() {
|
|
6189
|
+
if (item.action) {
|
|
6190
|
+
item.action();
|
|
6191
|
+
}
|
|
6192
|
+
},
|
|
6188
6193
|
className: cn(navigationMenuTriggerStyle(), "hawa-cursor-pointer hawa-select-none")
|
|
6189
6194
|
}, item.trigger));
|
|
6190
6195
|
})));
|
package/dist/index.mjs
CHANGED
|
@@ -5855,7 +5855,7 @@ var NavigationMenuContent = React47.forwardRef(({ className, ...props }, ref) =>
|
|
|
5855
5855
|
));
|
|
5856
5856
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
5857
5857
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
5858
|
-
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))));
|
|
5858
|
+
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 hawa-text-xl" }, props.title), /* @__PURE__ */ React47.createElement("p", { className: "hawa-text-sm" }, props.subtitle))));
|
|
5859
5859
|
var NavigationMenuViewport = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(
|
|
5860
5860
|
"div",
|
|
5861
5861
|
{
|
|
@@ -5902,6 +5902,11 @@ var NavigationMenu = (props) => {
|
|
|
5902
5902
|
/* @__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(
|
|
5903
5903
|
NavigationMenuLink,
|
|
5904
5904
|
{
|
|
5905
|
+
onClick: () => {
|
|
5906
|
+
if (item.action) {
|
|
5907
|
+
item.action();
|
|
5908
|
+
}
|
|
5909
|
+
},
|
|
5905
5910
|
className: cn(
|
|
5906
5911
|
navigationMenuTriggerStyle(),
|
|
5907
5912
|
"hawa-cursor-pointer hawa-select-none"
|