flysoft-react-ui 1.1.6 → 1.1.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/AppLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"AppLayout.d.ts","sourceRoot":"","sources":["../../../src/components/layout/AppLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAgf9C,CAAC"}
|
|
@@ -23,6 +23,8 @@ export const AppLayout = ({ navbar, leftDrawer, children, className = "", }) =>
|
|
|
23
23
|
const isNavbarVisibleRef = useRef(isNavbarVisible);
|
|
24
24
|
const isTransitioningRef = useRef(false);
|
|
25
25
|
const lastScrollYRef = useRef(0);
|
|
26
|
+
console.log("navbar", navbar);
|
|
27
|
+
console.log("leftDrawer", leftDrawer);
|
|
26
28
|
// Determinar si hay algún contenido en el drawer izquierdo
|
|
27
29
|
const hasLeftDrawerContent = leftDrawerHeader || leftDrawerContent || leftDrawerFooter;
|
|
28
30
|
const shouldShowMobileDrawer = isMobile || isTablet;
|
|
@@ -102,7 +104,7 @@ export const AppLayout = ({ navbar, leftDrawer, children, className = "", }) =>
|
|
|
102
104
|
};
|
|
103
105
|
// Clases base del layout
|
|
104
106
|
const layoutClasses = `
|
|
105
|
-
flex flex-col w-full ${navbar || leftDrawer ? "h-screen overflow-hidden" : "h-auto"}
|
|
107
|
+
flex flex-col w-full ${navbar?.navBarLeftNode || navbar?.navBarRightNode || leftDrawer?.contentNode || leftDrawer?.headerNode || leftDrawer?.footerNode ? "h-screen overflow-hidden" : "h-auto"}
|
|
106
108
|
font-[var(--font-default)]
|
|
107
109
|
${className}
|
|
108
110
|
`;
|