App layout primitives for React: AppShell, useDarkMode, Sidebar slot, header/topbar widgets — wired to shared-auth/UI by props.
Part of the ceedcv-maya/maya_platform mono-repo. Distributed independently for reuse outside the Maya ecosystem.
npm install @ceedcv-maya/shared-layout-react @ceedcv-maya/shared-auth-react @ceedcv-maya/shared-ui-reactimport { AppShell, useDarkMode } from '@ceedcv-maya/shared-layout-react'
export function Layout({ children }) {
return <AppShell sidebar={<MySidebar />} topbar={<MyTopbar />}>{children}</AppShell>
}This package expects the following sibling packages to be installed by the consumer:
@ceedcv-maya/shared-auth-react@ceedcv-maya/shared-ui-react
This package uses Tailwind v4 utility classes and design tokens (bg-odoo-purple, bg-ui-card, text-text-primary, …) defined in @ceedcv-maya/shared-styles. Without it the components will render unstyled.
npm install @ceedcv-maya/shared-styles/* src/index.css */
@import "tailwindcss";
@import "@ceedcv-maya/shared-styles";
/* Tailwind v4 must scan the package source so it generates the
utility classes used inside this library. */
@source "../node_modules/@ceedcv-maya/shared-layout-react/src/**/*.{ts,tsx}";If you also consume other @ceedcv-maya/shared-*-react packages, add an @source line for each of them.
This package ships TypeScript source (src/index.ts as entry). Consumers using Vite or Webpack with ts-loader work out of the box. Next.js consumers must add this package to transpilePackages in next.config.js.
MIT — see LICENSE.
The canonical source lives in Maya-AQSS/maya_platform. File issues there; this read-only split repo is only the published artifact.