@unicitylabs/sphere-ui 0.1.6 → 0.1.7
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/index.js +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,11 @@ function DashboardLayout({ logo, nav, footer, children }) {
|
|
|
20
20
|
background: "var(--bg-root)",
|
|
21
21
|
borderRight: "1px solid var(--border)"
|
|
22
22
|
},
|
|
23
|
+
onClick: (e) => {
|
|
24
|
+
if (e.target.closest("button, a")) {
|
|
25
|
+
setMobileOpen(false);
|
|
26
|
+
}
|
|
27
|
+
},
|
|
23
28
|
children: [
|
|
24
29
|
/* @__PURE__ */ jsx(
|
|
25
30
|
"div",
|
|
@@ -49,9 +54,8 @@ function DashboardLayout({ logo, nav, footer, children }) {
|
|
|
49
54
|
),
|
|
50
55
|
logo
|
|
51
56
|
] }),
|
|
52
|
-
/* @__PURE__ */ jsx("nav", { className: "flex-1 px-3 py-3 flex flex-col overflow-y-auto",
|
|
53
|
-
footer && /*
|
|
54
|
-
/* @__PURE__ */ jsx("div", { className: "px-3 py-4", style: { borderTop: "1px solid var(--border)" }, onClick: () => setMobileOpen(false), children: footer })
|
|
57
|
+
/* @__PURE__ */ jsx("nav", { className: "flex-1 px-3 py-3 flex flex-col overflow-y-auto", children: nav }),
|
|
58
|
+
footer && /* @__PURE__ */ jsx("div", { className: "px-3 py-4", style: { borderTop: "1px solid var(--border)" }, children: footer })
|
|
55
59
|
]
|
|
56
60
|
}
|
|
57
61
|
),
|