@sikka/hawa 0.8.9-next → 0.8.11-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 +0 -3
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -2
- package/dist/index.mjs +7 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -3015,9 +3015,6 @@ body {
|
|
|
3015
3015
|
.data-\[state\=open\]\:hawa-bg-accent[data-state=open] {
|
|
3016
3016
|
background-color: hsl(var(--accent));
|
|
3017
3017
|
}
|
|
3018
|
-
.data-\[state\=open\]\:hawa-bg-accent\/50[data-state=open] {
|
|
3019
|
-
background-color: hsl(var(--accent) / 0.5);
|
|
3020
|
-
}
|
|
3021
3018
|
.data-\[state\=selected\]\:hawa-bg-muted[data-state=selected] {
|
|
3022
3019
|
background-color: hsl(var(--muted));
|
|
3023
3020
|
}
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6100,7 +6100,7 @@ var NavigationMenuList = React47.forwardRef(function(_param, ref) /* @__PURE__ *
|
|
|
6100
6100
|
});
|
|
6101
6101
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
6102
6102
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
6103
|
-
var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50
|
|
6103
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 ");
|
|
6104
6104
|
var NavigationMenuTrigger = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6105
6105
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6106
6106
|
"className",
|
|
@@ -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
|
@@ -5809,7 +5809,7 @@ var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5809
5809
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
5810
5810
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
5811
5811
|
var navigationMenuTriggerStyle = cva4(
|
|
5812
|
-
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50
|
|
5812
|
+
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
|
|
5813
5813
|
);
|
|
5814
5814
|
var NavigationMenuTrigger = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(
|
|
5815
5815
|
NavigationMenuPrimitive.Trigger,
|
|
@@ -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"
|