@nice2dev/ui 1.3.2 → 1.3.4

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 CHANGED
@@ -1,5 +1,69 @@
1
1
  # [1.0.27] — 2026-06-07
2
2
 
3
+ ## 1.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fb26ba9: NiceNavShell: tabs become the user's choice, and the body gets padding.
8
+
9
+ - `tabsMode="enabled"` now offers tabs, and the user decides whether they show. It used to show
10
+ them always.
11
+ - The choice is the sidebar preference `pageMode: 'auto' | 'single' | 'tabs'`, set under
12
+ Preferences → General → "Opening pages":
13
+ - `'auto'` (default): one page at a time in a browser tab, which has tabs of its own; tabs in an
14
+ installed app (`display-mode` standalone, fullscreen or minimal-ui);
15
+ - `'single'`: one page at a time;
16
+ - `'tabs'`: as before.
17
+ - A new `pageMode` prop overrides the preference, for hosts that keep preferences elsewhere.
18
+ - Switching to tabs while the shell is open fills the strip with Home and the page on screen.
19
+ - Home stays the start page with one page at a time, and the logo of the built-in top bar leads
20
+ back to it.
21
+ - The sidebar keeps navigating in both modes.
22
+ - NiceSidebarNav: `openInNewTab` (default `true`) hides "Open in new tab"; NavShell turns it off
23
+ while pages open one at a time.
24
+ - NiceTopNav: `sidebarOpenInNewTab` does the same for its drawer sidebar.
25
+ - On the General page, the left-click choice shows only when pages open in tabs.
26
+ - NiceNavShell `contentPadding` (default `10` px) pads the page in the body. Pass `0` to fill the
27
+ body edge to edge. The CSS variable `--nice-nav-shell-content-padding` also works.
28
+ - New translation keys for "Opening pages" and the single-page help steps (en, pl, de, fr, es, uk).
29
+
30
+ - Updated dependencies [fb26ba9]
31
+ - @nice2dev/i18n@1.3.4
32
+ - @nice2dev/ui-core@1.3.4
33
+
34
+ ## 1.3.3
35
+
36
+ ### Patch Changes
37
+
38
+ - a0f1743: Branch and level colours no longer fill whole sidebar rows and tabs by default.
39
+
40
+ **Default.** A new `colorStyle` sidebar preference sets how the colours appear. With its default
41
+ value, `'bar'`:
42
+
43
+ - **Sidebar rows:** a colour from `levelColors` or a branch's `color` shows as a 3px bar left of
44
+ the row's arrow. The bar steps in with the indent.
45
+ - **Rows themselves:** they keep the theme's look.
46
+ - **Source headers and favourites:** the same bar.
47
+ - **NavShell tabs** opened with `tabColors`: a 3px line in the colour along the bottom of the tab.
48
+
49
+ **Choosing.** Users switch between the two looks on Preferences → Display ("Branch colours").
50
+ `'fill'` is the 1.3.2 look: the whole row in the colour with readable text, and the tabs tinted
51
+ with a bar along the top. The choice is kept per user like the other sidebar preferences, and
52
+ open tabs follow it at once.
53
+
54
+ **Making `'fill'` the default** for an app: `preferences={{ colorStyle: 'fill' }}` on
55
+ `NiceSidebarNav`, or through `sidebarProps` on `NiceNavShell`.
56
+
57
+ **New `colorStyle` prop on `NiceNavShell`.** When set, it overrides the preference. Use it for a
58
+ sidebar of your own that keeps its preferences elsewhere, for example on a server.
59
+
60
+ **Themes.** In `'bar'`, a theme's `nesting.sidebar` colours no longer fill rows either. None of
61
+ the presets set them.
62
+
63
+ - Updated dependencies [a0f1743]
64
+ - @nice2dev/i18n@1.3.3
65
+ - @nice2dev/ui-core@1.3.3
66
+
3
67
  ## 1.3.2
4
68
 
5
69
  ### Patch Changes