@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
|
@@ -3991,13 +3991,21 @@ var NavigationItemWithSubItem = ({
|
|
|
3991
3991
|
{ "opacity-0": !style }
|
|
3992
3992
|
),
|
|
3993
3993
|
style,
|
|
3994
|
-
children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3994
|
+
children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3995
|
+
import_link2.default,
|
|
3996
|
+
{
|
|
3997
|
+
href: link,
|
|
3998
|
+
target: external ? "_blank" : void 0,
|
|
3999
|
+
className: "flex-row-0 link w-full",
|
|
4000
|
+
children: label2
|
|
4001
|
+
}
|
|
4002
|
+
) }, index))
|
|
3995
4003
|
}
|
|
3996
4004
|
)
|
|
3997
4005
|
] });
|
|
3998
4006
|
};
|
|
3999
4007
|
var NavigationItemList = ({ items, ...restProps }) => {
|
|
4000
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("
|
|
4008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ul", { ...restProps, className: (0, import_clsx4.default)("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("li", { children: isSubItem(item) ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
|
|
4001
4009
|
};
|
|
4002
4010
|
var Navigation = ({ ...props }) => {
|
|
4003
4011
|
const [isMobileOpen, setIsMobileOpen] = (0, import_react8.useState)(false);
|
|
@@ -4006,7 +4014,7 @@ var Navigation = ({ ...props }) => {
|
|
|
4006
4014
|
(0, import_react7.useEffect)(() => {
|
|
4007
4015
|
menuRef.current?.focus();
|
|
4008
4016
|
}, [isMobileOpen]);
|
|
4009
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
4017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("nav", { children: [
|
|
4010
4018
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
4011
4019
|
NavigationItemList,
|
|
4012
4020
|
{
|