@spaceandtimelabs/dapp-mi-components 0.3.2 → 0.4.0

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.d.ts CHANGED
@@ -277,6 +277,7 @@ declare interface LayoutProps {
277
277
  children: default_2.ReactNode;
278
278
  onAuthButtonClick: () => void;
279
279
  onSidebarLinkClick: (link: string) => void;
280
+ hideNavbar?: boolean;
280
281
  }
281
282
 
282
283
  export declare const magicpen: string;
package/dist/index.es.js CHANGED
@@ -19588,16 +19588,21 @@ const d7 = uu, u7 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iM
19588
19588
  border-radius: 15px;
19589
19589
  backdrop-filter: blur(10px);
19590
19590
  }
19591
- `, Av = ({ children: e, onAuthButtonClick: t, onSidebarLinkClick: n }) => {
19592
- const { isMobileDown: o } = Rn(), { isDrawerOpen: r } = so();
19591
+ `, Av = ({
19592
+ children: e,
19593
+ onAuthButtonClick: t,
19594
+ onSidebarLinkClick: n,
19595
+ hideNavbar: o = !1
19596
+ }) => {
19597
+ const { isMobileDown: r } = Rn(), { isDrawerOpen: i } = so();
19593
19598
  return An(() => {
19594
19599
  if (typeof window < "u")
19595
19600
  return /^((?!chrome|android).)*safari/i.test(window.navigator.userAgent) ? document.body.classList.add("safari-browser") : document.body.classList.remove("safari-browser"), () => {
19596
19601
  document.body.classList.remove("safari-browser");
19597
19602
  };
19598
- }, []), /* @__PURE__ */ s.jsxs(M7, { className: `${r && o ? "sideNavMobile" : ""} `, children: [
19599
- /* @__PURE__ */ s.jsx(Nm, { onAuthButtonClick: t }),
19600
- !o || r ? /* @__PURE__ */ s.jsx(l7, { onSidebarLinkClick: n, children: e }) : e
19603
+ }, []), /* @__PURE__ */ s.jsxs(M7, { className: `${i && r ? "sideNavMobile" : ""} `, children: [
19604
+ o === !1 && /* @__PURE__ */ s.jsx(Nm, { onAuthButtonClick: t }),
19605
+ !r || i ? /* @__PURE__ */ s.jsx(l7, { onSidebarLinkClick: n, children: e }) : e
19601
19606
  ] });
19602
19607
  }, m7 = () => {
19603
19608
  const { isMobileDown: e } = Rn();