@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
|
@@ -3962,13 +3962,21 @@ var NavigationItemWithSubItem = ({
|
|
|
3962
3962
|
{ "opacity-0": !style }
|
|
3963
3963
|
),
|
|
3964
3964
|
style,
|
|
3965
|
-
children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
3965
|
+
children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
3966
|
+
import_link.default,
|
|
3967
|
+
{
|
|
3968
|
+
href: link,
|
|
3969
|
+
target: external ? "_blank" : void 0,
|
|
3970
|
+
className: "flex-row-0 link w-full",
|
|
3971
|
+
children: label2
|
|
3972
|
+
}
|
|
3973
|
+
) }, index))
|
|
3966
3974
|
}
|
|
3967
3975
|
)
|
|
3968
3976
|
] });
|
|
3969
3977
|
};
|
|
3970
3978
|
var NavigationItemList = ({ items, ...restProps }) => {
|
|
3971
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("
|
|
3979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { ...restProps, className: (0, import_clsx3.default)("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { children: isSubItem(item) ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_link.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
|
|
3972
3980
|
};
|
|
3973
3981
|
var Navigation = ({ ...props }) => {
|
|
3974
3982
|
const [isMobileOpen, setIsMobileOpen] = (0, import_react7.useState)(false);
|
|
@@ -3977,7 +3985,7 @@ var Navigation = ({ ...props }) => {
|
|
|
3977
3985
|
(0, import_react6.useEffect)(() => {
|
|
3978
3986
|
menuRef.current?.focus();
|
|
3979
3987
|
}, [isMobileOpen]);
|
|
3980
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
3988
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("nav", { children: [
|
|
3981
3989
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
3982
3990
|
NavigationItemList,
|
|
3983
3991
|
{
|