@nice2dev/ui 1.3.2 → 1.3.3
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/CHANGELOG.md +33 -0
- package/dist/NiceModuleLifecyclePanel-DIYT_O2m.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-M-LNxTvd.js +7373 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/index.cjs +179 -179
- package/dist/index.css +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.mjs +9757 -9722
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +11 -0
- package/dist/navigation.mjs +1 -1
- package/dist/style.css +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -17335,6 +17335,13 @@ export declare interface NiceNavShellProps {
|
|
|
17335
17335
|
* row's own colour. Applies to the built-in sidebar and to `api.openFromSidebar`.
|
|
17336
17336
|
*/
|
|
17337
17337
|
tabColors?: NiceNavShellTabColors;
|
|
17338
|
+
/**
|
|
17339
|
+
* How a tab shows its colour (1.3.3): `'bar'` — a line under the tab, `'fill'` — a tint with a
|
|
17340
|
+
* bar along the top. Absent: the sidebar's `colorStyle` preference (Preferences → Display) of
|
|
17341
|
+
* `sidebarUserId`, so the tabs follow the user's choice. Pass it when your own `sidebar` keeps
|
|
17342
|
+
* its preferences elsewhere (e.g. on the server).
|
|
17343
|
+
*/
|
|
17344
|
+
colorStyle?: 'bar' | 'fill';
|
|
17338
17345
|
/** Extra props for the built-in NiceSidebarNav (rendered from `sidebarData`), e.g. `levelColors`. */
|
|
17339
17346
|
sidebarProps?: Partial<NiceSidebarNavProps>;
|
|
17340
17347
|
/**
|
|
@@ -27169,6 +27176,8 @@ export declare interface SidebarNavHelpers {
|
|
|
27169
27176
|
setLeftClickBehavior: (v: 'focus-existing' | 'open-new') => void;
|
|
27170
27177
|
/** Replace the per-mode ordering of item ids. Pass `null` to clear (revert to data-defined order). */
|
|
27171
27178
|
reorderItems: (mode: SidebarNavMode, orderedIds: string[] | null) => void;
|
|
27179
|
+
/** How level / branch colours show: a bar by each row (default) or the whole row filled. */
|
|
27180
|
+
setColorStyle: (v: 'bar' | 'fill') => void;
|
|
27172
27181
|
resetAll: () => void;
|
|
27173
27182
|
}
|
|
27174
27183
|
|
|
@@ -27287,6 +27296,17 @@ export declare interface SidebarNavUserPrefs {
|
|
|
27287
27296
|
* Edited from the "Order" page in preferences.
|
|
27288
27297
|
*/
|
|
27289
27298
|
itemOrder: Partial<Record<SidebarNavMode, string[]>>;
|
|
27299
|
+
/**
|
|
27300
|
+
* How a level / branch colour shows (1.3.3; `levelColors`, a branch's `color`):
|
|
27301
|
+
* - `'bar'` (default): a bar in the colour left of each row's arrow, and NavShell's tabs
|
|
27302
|
+
* underlined in it;
|
|
27303
|
+
* - `'fill'`: the whole row filled with it (text picked for contrast), and the tabs tinted
|
|
27304
|
+
* with a bar along the top — the look of 1.3.2.
|
|
27305
|
+
*
|
|
27306
|
+
* Set from the Display page of the preferences; `preferences={{ colorStyle: 'fill' }}` makes
|
|
27307
|
+
* `'fill'` the default.
|
|
27308
|
+
*/
|
|
27309
|
+
colorStyle: 'bar' | 'fill';
|
|
27290
27310
|
}
|
|
27291
27311
|
|
|
27292
27312
|
/**
|