@sikka/hawa 0.7.18-next → 0.7.20-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 +8 -5
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +13 -7
- package/dist/index.mjs +24 -14
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1509,11 +1509,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1509
1509
|
-moz-column-gap: 0.75rem;
|
|
1510
1510
|
column-gap: 0.75rem;
|
|
1511
1511
|
}
|
|
1512
|
-
.hawa-space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1513
|
-
--tw-space-x-reverse: 0;
|
|
1514
|
-
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
|
1515
|
-
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1516
|
-
}
|
|
1517
1512
|
.hawa-space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1518
1513
|
--tw-space-x-reverse: 0;
|
|
1519
1514
|
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
@@ -1853,6 +1848,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1853
1848
|
--tw-bg-opacity: 1;
|
|
1854
1849
|
background-color: rgb(254 226 226 / var(--tw-bg-opacity));
|
|
1855
1850
|
}
|
|
1851
|
+
.hawa-bg-red-400 {
|
|
1852
|
+
--tw-bg-opacity: 1;
|
|
1853
|
+
background-color: rgb(248 113 113 / var(--tw-bg-opacity));
|
|
1854
|
+
}
|
|
1856
1855
|
.hawa-bg-red-500 {
|
|
1857
1856
|
--tw-bg-opacity: 1;
|
|
1858
1857
|
background-color: rgb(239 68 68 / var(--tw-bg-opacity));
|
|
@@ -1883,6 +1882,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1883
1882
|
--tw-bg-opacity: 1;
|
|
1884
1883
|
background-color: rgb(250 204 21 / var(--tw-bg-opacity));
|
|
1885
1884
|
}
|
|
1885
|
+
.hawa-bg-yellow-500 {
|
|
1886
|
+
--tw-bg-opacity: 1;
|
|
1887
|
+
background-color: rgb(234 179 8 / var(--tw-bg-opacity));
|
|
1888
|
+
}
|
|
1886
1889
|
.hawa-bg-opacity-80 {
|
|
1887
1890
|
--tw-bg-opacity: 0.8;
|
|
1888
1891
|
}
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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
|
|
6056
|
-
|
|
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__ */ {
|
|
@@ -6062,12 +6065,12 @@ var NavigationMenuList = React47.forwardRef(function(_param, ref) /* @__PURE__ *
|
|
|
6062
6065
|
]);
|
|
6063
6066
|
return React47.createElement(NavigationMenuPrimitive.List, _object_spread({
|
|
6064
6067
|
ref: ref,
|
|
6065
|
-
className: cn("hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-
|
|
6068
|
+
className: cn("hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1", className)
|
|
6066
6069
|
}, props));
|
|
6067
6070
|
});
|
|
6068
6071
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
6069
6072
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
6070
|
-
var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center 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 data-[state=open]:hawa-bg-accent/50");
|
|
6073
|
+
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 data-[state=open]:hawa-bg-accent/50");
|
|
6071
6074
|
var NavigationMenuTrigger = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6072
6075
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6073
6076
|
"className",
|
|
@@ -6087,7 +6090,7 @@ var NavigationMenuTrigger = React47.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6087
6090
|
"stroke-linecap": "round",
|
|
6088
6091
|
"stroke-linejoin": "round",
|
|
6089
6092
|
"aria-hidden": "true",
|
|
6090
|
-
className: "hawa-relative hawa-top-[1px] hawa-
|
|
6093
|
+
className: "hawa-relative hawa-top-[1px] hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
6091
6094
|
}, /* @__PURE__ */ React47.createElement("path", {
|
|
6092
6095
|
d: "m6 9 6 6 6-6"
|
|
6093
6096
|
})));
|
|
@@ -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
|
|
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,10 @@ 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
|
-
|
|
6150
|
+
dir: props.direction,
|
|
6151
|
+
delayDuration: 0,
|
|
6152
|
+
className: props.rootClassNames,
|
|
6153
|
+
viewportClassNames: props.viewportClassNames
|
|
6148
6154
|
}, /* @__PURE__ */ React47.createElement(NavigationMenuList, null, props.items.map(function(item, i) {
|
|
6149
6155
|
return /* @__PURE__ */ React47.createElement(NavigationMenuItem, {
|
|
6150
6156
|
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
|
|
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,
|
|
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(
|
|
@@ -5742,7 +5743,7 @@ var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5742
5743
|
{
|
|
5743
5744
|
ref,
|
|
5744
5745
|
className: cn(
|
|
5745
|
-
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-
|
|
5746
|
+
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
|
|
5746
5747
|
className
|
|
5747
5748
|
),
|
|
5748
5749
|
...props
|
|
@@ -5751,7 +5752,7 @@ var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5751
5752
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
5752
5753
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
5753
5754
|
var navigationMenuTriggerStyle = cva4(
|
|
5754
|
-
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center 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 data-[state=open]:hawa-bg-accent/50"
|
|
5755
|
+
"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 data-[state=open]:hawa-bg-accent/50"
|
|
5755
5756
|
);
|
|
5756
5757
|
var NavigationMenuTrigger = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(
|
|
5757
5758
|
NavigationMenuPrimitive.Trigger,
|
|
@@ -5775,7 +5776,7 @@ var NavigationMenuTrigger = React47.forwardRef(({ className, children, ...props
|
|
|
5775
5776
|
"stroke-linecap": "round",
|
|
5776
5777
|
"stroke-linejoin": "round",
|
|
5777
5778
|
"aria-hidden": "true",
|
|
5778
|
-
className: "hawa-relative hawa-top-[1px] hawa-
|
|
5779
|
+
className: "hawa-relative hawa-top-[1px] hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
5779
5780
|
},
|
|
5780
5781
|
/* @__PURE__ */ React47.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
5781
5782
|
)
|
|
@@ -5786,7 +5787,7 @@ var NavigationMenuContent = React47.forwardRef(({ className, ...props }, ref) =>
|
|
|
5786
5787
|
{
|
|
5787
5788
|
ref,
|
|
5788
5789
|
className: cn(
|
|
5789
|
-
"hawa-absolute
|
|
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,25 @@ 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(
|
|
5837
|
-
|
|
5837
|
+
return /* @__PURE__ */ React47.createElement(
|
|
5838
|
+
NavigationMenuRoot,
|
|
5838
5839
|
{
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5840
|
+
dir: props.direction,
|
|
5841
|
+
delayDuration: 0,
|
|
5842
|
+
className: props.rootClassNames,
|
|
5843
|
+
viewportClassNames: props.viewportClassNames
|
|
5843
5844
|
},
|
|
5844
|
-
item.trigger
|
|
5845
|
-
|
|
5845
|
+
/* @__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(
|
|
5846
|
+
NavigationMenuLink,
|
|
5847
|
+
{
|
|
5848
|
+
className: cn(
|
|
5849
|
+
navigationMenuTriggerStyle(),
|
|
5850
|
+
"hawa-cursor-pointer hawa-select-none"
|
|
5851
|
+
)
|
|
5852
|
+
},
|
|
5853
|
+
item.trigger
|
|
5854
|
+
))))
|
|
5855
|
+
);
|
|
5846
5856
|
};
|
|
5847
5857
|
|
|
5848
5858
|
// components/layout/Stats.tsx
|