@skiddph/prui 0.4.0 → 0.4.2
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
|
@@ -72,6 +72,8 @@ export interface AppProps {
|
|
|
72
72
|
pages?: "auth" | "utility" | "auth+utility";
|
|
73
73
|
/** Props passed to the auto-routed pre-made pages (per page name). */
|
|
74
74
|
pagesConfig?: Partial<Record<PageSetName, Record<string, unknown>>>;
|
|
75
|
+
/** A pathname (e.g. "/") on which every nav group starts expanded. */
|
|
76
|
+
expandAllOn?: string;
|
|
75
77
|
children?: React.ReactNode;
|
|
76
78
|
}
|
|
77
79
|
export declare function useThemeState(config?: boolean | ThemeConfig): {
|
|
@@ -79,9 +81,10 @@ export declare function useThemeState(config?: boolean | ThemeConfig): {
|
|
|
79
81
|
state: AppliedTheme;
|
|
80
82
|
setTheme: (next: AppliedTheme) => void;
|
|
81
83
|
};
|
|
82
|
-
export declare function SidebarNav({ nav, onNavigate }: {
|
|
84
|
+
export declare function SidebarNav({ nav, onNavigate, expandAllOn }: {
|
|
83
85
|
nav: NavItem[];
|
|
84
86
|
onNavigate?: () => void;
|
|
87
|
+
expandAllOn?: string;
|
|
85
88
|
}): React.JSX.Element;
|
|
86
89
|
export interface PaletteEntry {
|
|
87
90
|
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-DSG2wWTh.js";
|
|
3
3
|
export {
|
|
4
4
|
m as App,
|
|
5
5
|
P as AppShell,
|