@skiddph/prui 0.4.2 → 0.5.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 +12 -1
- package/dist/app.js +1 -1
- package/dist/chunks/auth-shell-B-YOvTD2.js +947 -0
- package/dist/index.js +1 -1
- package/dist/prui-utilities.css +1 -1
- package/dist/prui.css +63 -1
- package/dist/theme/base.css +62 -0
- package/package.json +1 -1
- package/dist/chunks/auth-shell-DSG2wWTh.js +0 -922
package/dist/app/app.d.ts
CHANGED
|
@@ -74,6 +74,16 @@ 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
|
+
* Desktop shell arrangement (md and up; mobile always uses the drawer):
|
|
79
|
+
* - "A" full-height sidebar, header inside the content column (default)
|
|
80
|
+
* - "B" full-width header, expanded sidebar below it
|
|
81
|
+
* - "C" full-width header, collapsed icon rail below it (with toggle)
|
|
82
|
+
* - "D" embedded-card layout: borderless list + action slot, stacked cards
|
|
83
|
+
*/
|
|
84
|
+
layoutType?: "A" | "B" | "C" | "D";
|
|
85
|
+
/** Prominent action slot pinned to the sidebar bottom (e.g. layout D). */
|
|
86
|
+
sidebarFooter?: React.ReactNode;
|
|
77
87
|
children?: React.ReactNode;
|
|
78
88
|
}
|
|
79
89
|
export declare function useThemeState(config?: boolean | ThemeConfig): {
|
|
@@ -81,10 +91,11 @@ export declare function useThemeState(config?: boolean | ThemeConfig): {
|
|
|
81
91
|
state: AppliedTheme;
|
|
82
92
|
setTheme: (next: AppliedTheme) => void;
|
|
83
93
|
};
|
|
84
|
-
export declare function SidebarNav({ nav, onNavigate, expandAllOn }: {
|
|
94
|
+
export declare function SidebarNav({ nav, onNavigate, expandAllOn, collapsed }: {
|
|
85
95
|
nav: NavItem[];
|
|
86
96
|
onNavigate?: () => void;
|
|
87
97
|
expandAllOn?: string;
|
|
98
|
+
collapsed?: boolean;
|
|
88
99
|
}): React.JSX.Element;
|
|
89
100
|
export interface PaletteEntry {
|
|
90
101
|
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-
|
|
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-B-YOvTD2.js";
|
|
3
3
|
export {
|
|
4
4
|
m as App,
|
|
5
5
|
P as AppShell,
|