@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
|
@@ -3957,13 +3957,21 @@ var NavigationItemWithSubItem = ({
|
|
|
3957
3957
|
{ "opacity-0": !style }
|
|
3958
3958
|
),
|
|
3959
3959
|
style,
|
|
3960
|
-
children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ jsx3("li", { children: /* @__PURE__ */ jsx3(
|
|
3960
|
+
children: items.map(({ link, label: label2, external }, index) => /* @__PURE__ */ jsx3("li", { children: /* @__PURE__ */ jsx3(
|
|
3961
|
+
import_link.default,
|
|
3962
|
+
{
|
|
3963
|
+
href: link,
|
|
3964
|
+
target: external ? "_blank" : void 0,
|
|
3965
|
+
className: "flex-row-0 link w-full",
|
|
3966
|
+
children: label2
|
|
3967
|
+
}
|
|
3968
|
+
) }, index))
|
|
3961
3969
|
}
|
|
3962
3970
|
)
|
|
3963
3971
|
] });
|
|
3964
3972
|
};
|
|
3965
3973
|
var NavigationItemList = ({ items, ...restProps }) => {
|
|
3966
|
-
return /* @__PURE__ */ jsx3("
|
|
3974
|
+
return /* @__PURE__ */ jsx3("ul", { ...restProps, className: clsx3("flex-row-6 items-center", restProps.className), children: items.map((item, index) => /* @__PURE__ */ jsx3("li", { children: isSubItem(item) ? /* @__PURE__ */ jsx3(NavigationItemWithSubItem, { ...item }) : /* @__PURE__ */ jsx3(import_link.default, { href: item.link, target: item.external ? "_blank" : void 0, className: "link", children: item.label }) }, index)) });
|
|
3967
3975
|
};
|
|
3968
3976
|
var Navigation = ({ ...props }) => {
|
|
3969
3977
|
const [isMobileOpen, setIsMobileOpen] = useState4(false);
|
|
@@ -3972,7 +3980,7 @@ var Navigation = ({ ...props }) => {
|
|
|
3972
3980
|
useEffect4(() => {
|
|
3973
3981
|
menuRef.current?.focus();
|
|
3974
3982
|
}, [isMobileOpen]);
|
|
3975
|
-
return /* @__PURE__ */ jsxs3(
|
|
3983
|
+
return /* @__PURE__ */ jsxs3("nav", { children: [
|
|
3976
3984
|
/* @__PURE__ */ jsx3(
|
|
3977
3985
|
NavigationItemList,
|
|
3978
3986
|
{
|