@scmlatam/web-ui 0.2.60 → 0.2.61

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/README.md CHANGED
@@ -20,3 +20,12 @@ createRoot(document.getElementById("root")!).render(
20
20
  );
21
21
 
22
22
  ```
23
+
24
+ ### Visibilidad del sidebar
25
+
26
+ `Core` y `DashboardShell` aceptan `showSidebar`, activo por defecto.
27
+ Para conservar solo la navegacion propia de una pagina, utiliza
28
+ `<Core {...props} showSidebar={false} />`. Este modo elimina el menu principal,
29
+ su boton movil y el espacio lateral reservado, sin ocultar la barra superior.
30
+ La app de demostracion lo desactiva; los consumidores que omiten esta propiedad
31
+ conservan el sidebar.
@@ -1,3 +1,3 @@
1
1
  import { CoreProps } from './types/types';
2
- declare const Core: ({ sidebar, routes, product, account, languages, loginForm: form, signup, unsavedChangesAlert, msalInstance, }: CoreProps) => import("react").JSX.Element;
2
+ declare const Core: ({ sidebar, showSidebar, routes, product, account, languages, loginForm: form, signup, unsavedChangesAlert, msalInstance, }: CoreProps) => import("react").JSX.Element;
3
3
  export { Core };
@@ -1,3 +1,3 @@
1
1
  import { DashboardProps } from '../../components/core/types/types';
2
- declare const DashboardShell: ({ sidebar, routes, account, }: DashboardProps) => import("react").JSX.Element;
2
+ declare const DashboardShell: ({ sidebar, showSidebar, routes, account, }: DashboardProps) => import("react").JSX.Element;
3
3
  export { DashboardShell };
@@ -0,0 +1 @@
1
+ export {};
@@ -4,10 +4,10 @@ type SidebarItemsType = DashboardProps["sidebar"]["items"];
4
4
  type SignOutType = DashboardProps["sidebar"]["signOut"];
5
5
  interface TopBarProps {
6
6
  id?: string;
7
- account: AccountType;
7
+ account?: AccountType;
8
8
  sidebarItems: SidebarItemsType;
9
9
  signOut?: SignOutType;
10
10
  onOpenMobile?: () => void;
11
11
  }
12
- declare const TopBar: ({ id, sidebarItems, signOut, onOpenMobile, }: TopBarProps) => import("react").JSX.Element;
12
+ declare const TopBar: ({ id, account, sidebarItems, signOut, onOpenMobile, }: TopBarProps) => import("react").JSX.Element;
13
13
  export { TopBar };
@@ -0,0 +1 @@
1
+ export {};