@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
package/dist/index.js
CHANGED
|
@@ -13136,13 +13136,21 @@ var NavigationItemWithSubItem = ({
|
|
|
13136
13136
|
{ "opacity-0": !style }
|
|
13137
13137
|
),
|
|
13138
13138
|
style,
|
|
13139
|
-
children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
13139
|
+
children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
13140
|
+
import_link2.default,
|
|
13141
|
+
{
|
|
13142
|
+
href: link,
|
|
13143
|
+
target: external ? "_blank" : void 0,
|
|
13144
|
+
className: "flex-row-0 link w-full",
|
|
13145
|
+
children: label2
|
|
13146
|
+
}
|
|
13147
|
+
) }, index))
|
|
13140
13148
|
}
|
|
13141
13149
|
)
|
|
13142
13150
|
] });
|
|
13143
13151
|
};
|
|
13144
13152
|
var NavigationItemList = ({ items, ...restProps }) => {
|
|
13145
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("
|
|
13153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("ul", { ...restProps, className: (0, import_clsx33.default)("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("li", { children: isSubItem(item) ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_link2.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
|
|
13146
13154
|
};
|
|
13147
13155
|
var Navigation = ({ ...props }) => {
|
|
13148
13156
|
const [isMobileOpen, setIsMobileOpen] = (0, import_react30.useState)(false);
|
|
@@ -13151,7 +13159,7 @@ var Navigation = ({ ...props }) => {
|
|
|
13151
13159
|
(0, import_react29.useEffect)(() => {
|
|
13152
13160
|
menuRef.current?.focus();
|
|
13153
13161
|
}, [isMobileOpen]);
|
|
13154
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
13162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("nav", { children: [
|
|
13155
13163
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
13156
13164
|
NavigationItemList,
|
|
13157
13165
|
{
|