@selectwin/kit 0.1.42 → 0.1.44
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/SelectSideNav.d.ts +8 -0
- package/dist/index.js +737 -737
- package/dist/style.css +1 -1
- package/package.json +61 -61
package/dist/SelectSideNav.d.ts
CHANGED
|
@@ -4,6 +4,14 @@ export interface SideNavItem {
|
|
|
4
4
|
label: ReactNode;
|
|
5
5
|
icon?: ReactNode;
|
|
6
6
|
children?: SideNavItem[];
|
|
7
|
+
/**
|
|
8
|
+
* Children are ALWAYS visible: no chevron, no collapse — and the parent row NAVIGATES
|
|
9
|
+
* (`onSelect(id)`) instead of toggling, so it behaves like a leaf that happens to carry
|
|
10
|
+
* permanent shortcuts under it. For sub-items that must not need a click to appear
|
|
11
|
+
* (e.g. pinned apps): a shortcut you have to expand to see is not a shortcut.
|
|
12
|
+
* Ignored when the item has no `children`.
|
|
13
|
+
*/
|
|
14
|
+
alwaysOpen?: boolean;
|
|
7
15
|
}
|
|
8
16
|
export interface SideNavSection {
|
|
9
17
|
label?: string;
|