@helpwave/hightide 0.1.41 → 0.1.42
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/components/index.js +11 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +11 -3
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/navigation/Navigation.js +11 -3
- package/dist/components/navigation/Navigation.js.map +1 -1
- package/dist/components/navigation/Navigation.mjs +11 -3
- package/dist/components/navigation/Navigation.mjs.map +1 -1
- package/dist/components/navigation/index.js +11 -3
- package/dist/components/navigation/index.js.map +1 -1
- package/dist/components/navigation/index.mjs +11 -3
- package/dist/components/navigation/index.mjs.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3980,13 +3980,21 @@ var NavigationItemWithSubItem = ({
|
|
|
3980
3980
|
{ "opacity-0": !style }
|
|
3981
3981
|
),
|
|
3982
3982
|
style,
|
|
3983
|
-
children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ jsx4("li", { children: /* @__PURE__ */ jsx4(
|
|
3983
|
+
children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ jsx4("li", { children: /* @__PURE__ */ jsx4(
|
|
3984
|
+
import_link2.default,
|
|
3985
|
+
{
|
|
3986
|
+
href: link,
|
|
3987
|
+
target: external ? "_blank" : void 0,
|
|
3988
|
+
className: "flex-row-0 link w-full",
|
|
3989
|
+
children: label2
|
|
3990
|
+
}
|
|
3991
|
+
) }, index))
|
|
3984
3992
|
}
|
|
3985
3993
|
)
|
|
3986
3994
|
] });
|
|
3987
3995
|
};
|
|
3988
3996
|
var NavigationItemList = ({ items, ...restProps }) => {
|
|
3989
|
-
return /* @__PURE__ */ jsx4("
|
|
3997
|
+
return /* @__PURE__ */ jsx4("ul", { ...restProps, className: clsx4("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ jsx4("li", { children: isSubItem(item) ? /* @__PURE__ */ jsx4(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ jsx4(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
|
|
3990
3998
|
};
|
|
3991
3999
|
var Navigation = ({ ...props }) => {
|
|
3992
4000
|
const [isMobileOpen, setIsMobileOpen] = useState4(false);
|
|
@@ -3995,7 +4003,7 @@ var Navigation = ({ ...props }) => {
|
|
|
3995
4003
|
useEffect4(() => {
|
|
3996
4004
|
menuRef.current?.focus();
|
|
3997
4005
|
}, [isMobileOpen]);
|
|
3998
|
-
return /* @__PURE__ */ jsxs4(
|
|
4006
|
+
return /* @__PURE__ */ jsxs4("nav", { children: [
|
|
3999
4007
|
/* @__PURE__ */ jsx4(
|
|
4000
4008
|
NavigationItemList,
|
|
4001
4009
|
{
|