@skiddph/prui 0.4.2 → 0.6.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/app/app.d.ts CHANGED
@@ -74,6 +74,21 @@ export interface AppProps {
74
74
  pagesConfig?: Partial<Record<PageSetName, Record<string, unknown>>>;
75
75
  /** A pathname (e.g. "/") on which every nav group starts expanded. */
76
76
  expandAllOn?: string;
77
+ /**
78
+ * Shell arrangement (A/B/C also work collapsed on mobile via the rail):
79
+ * - "A" full-height sidebar, header inside the content column (default)
80
+ * - "B" full-width header, sidebar below it
81
+ * - "C" full-width header PLUS a sidebar header row (topbar height,
82
+ * sidebar width), nav below that; the combination of A and B
83
+ * - "D" facebook style: full-width topbar, centered sticky embedded
84
+ * sidebar beside stacked cards (page scroll, sidebar not fixed left)
85
+ * A, B and C are collapsible to an icon rail (desktop and mobile).
86
+ */
87
+ layoutType?: "A" | "B" | "C" | "D";
88
+ /** Content of the layout-C sidebar header; defaults to the brand. */
89
+ sidebarHeader?: React.ReactNode;
90
+ /** Prominent action slot pinned to the sidebar bottom (e.g. layout D). */
91
+ sidebarFooter?: React.ReactNode;
77
92
  children?: React.ReactNode;
78
93
  }
79
94
  export declare function useThemeState(config?: boolean | ThemeConfig): {
@@ -81,10 +96,11 @@ export declare function useThemeState(config?: boolean | ThemeConfig): {
81
96
  state: AppliedTheme;
82
97
  setTheme: (next: AppliedTheme) => void;
83
98
  };
84
- export declare function SidebarNav({ nav, onNavigate, expandAllOn }: {
99
+ export declare function SidebarNav({ nav, onNavigate, expandAllOn, collapsed }: {
85
100
  nav: NavItem[];
86
101
  onNavigate?: () => void;
87
102
  expandAllOn?: string;
103
+ collapsed?: boolean;
88
104
  }): React.JSX.Element;
89
105
  export interface PaletteEntry {
90
106
  label: string;
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Link as e, NavLink as t, Navigate as o, Outlet as r, Route as p, Routes as u } from "react-router-dom";
2
- import { A as m, a as P, b as S, c as l, C as h, F as n, R as M, S as R, d as g, e as A, f, g as c, h as d, i as k, r as v, s as N, j as T, k as b, u as w } from "./chunks/auth-shell-DSG2wWTh.js";
2
+ import { A as m, a as P, b as S, c as l, C as h, F as n, R as M, S as R, d as g, e as A, f, g as c, h as d, i as k, r as v, s as N, j as T, k as b, u as w } from "./chunks/auth-shell-CW2XMz2G.js";
3
3
  export {
4
4
  m as App,
5
5
  P as AppShell,