@zambon-dev/library 1.2.0 → 1.3.1
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 +39 -3
- package/fesm2022/zambon-dev-library.mjs +68 -39
- package/fesm2022/zambon-dev-library.mjs.map +1 -1
- package/lib/components/sidebar/sidebar.component.d.ts +4 -1
- package/lib/components/sidebar-item/sidebar-item.component.d.ts +3 -2
- package/lib/models/sidebar/index.d.ts +1 -0
- package/lib/models/sidebar/sidebar-menu.d.ts +1 -0
- package/lib/models/sidebar/sidebar-region.d.ts +6 -0
- package/package.json +1 -1
- package/styles/variables.scss +22 -0
package/CHANGELOG.md
CHANGED
|
@@ -23,6 +23,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
23
23
|
|
|
24
24
|
### ⚠ Breaking Changes / Migration
|
|
25
25
|
|
|
26
|
+
## [1.3.0] - 2026-07-28
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- Semantic `--sidebar-*` design tokens covering the sidebar's surfaces, text, selection, glass, and
|
|
31
|
+
radii (`--sidebar-bg`, `--sidebar-nav-bg`, `--sidebar-text`, `--sidebar-text-muted`,
|
|
32
|
+
`--sidebar-item-hover-bg`, `--sidebar-item-selected-bg`, `--sidebar-blur`, `--sidebar-shadow`,
|
|
33
|
+
`--sidebar-tree-line`, `--sidebar-radius`, `--sidebar-item-radius`, …) so consumers can re-theme
|
|
34
|
+
the sidebar entirely via CSS custom properties.
|
|
35
|
+
- **Menu regions**: an optional `SidebarMenu.region` label groups top-level items under an uppercase
|
|
36
|
+
group header (e.g. "MAIN"). Items without a `region` render ungrouped, so it stays
|
|
37
|
+
backward-compatible. When the rail is collapsed, each header cross-fades to a short separator line
|
|
38
|
+
so the groups remain visually distinct. The grouping type is exported as `SidebarRegion`.
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- Selected menu items now render as a rounded **pill** highlight (inset when expanded) instead of the
|
|
43
|
+
previous 4px left accent bar.
|
|
44
|
+
- The sidebar is now a **translucent, blurred "glass" panel** — rounded corners, a soft drop shadow,
|
|
45
|
+
and a semi-transparent brand surface — rather than a solid, square, edge-to-edge rail (all
|
|
46
|
+
token-driven via `--sidebar-bg`, `--sidebar-blur`, `--sidebar-shadow`, `--sidebar-radius`).
|
|
47
|
+
- **Child (sub-menu) items** now render a rounded **tree-connector** line instead of a menu icon;
|
|
48
|
+
top-level items keep their icons.
|
|
49
|
+
- Collapsing/expanding the rail is now **animated end to end**: the toggle chevron and the
|
|
50
|
+
expandable-parent caret rotate in the same direction, the selection pill inset and item icons ease
|
|
51
|
+
into place, and region headers cross-fade to their separators — all in sync with the rail width.
|
|
52
|
+
|
|
53
|
+
### ⚠ Breaking Changes / Migration
|
|
54
|
+
|
|
55
|
+
The sidebar surface is now **translucent** ("glass"). If your app does not place a colored backdrop
|
|
56
|
+
behind the sidebar, the rail will look faint over plain/neutral content — either add a
|
|
57
|
+
colored/gradient backdrop behind it (see `@shared`'s `--app-backdrop` in `MainLayoutComponent`) or
|
|
58
|
+
override `--sidebar-bg` (and the other `--sidebar-*` surface tokens) with opaque values to keep a
|
|
59
|
+
solid rail.
|
|
60
|
+
|
|
26
61
|
## [1.2.0] - 2026-07-24
|
|
27
62
|
|
|
28
63
|
### Added
|
|
@@ -49,12 +84,13 @@ user profile (`SidebarService.getUserProfile()`), move that presentation to the
|
|
|
49
84
|
config options and the `getUserProfile()` method still exist but are no longer consumed by
|
|
50
85
|
`SidebarComponent`.
|
|
51
86
|
|
|
52
|
-
## [1.
|
|
87
|
+
## [1.1.1] - 2026-06-17
|
|
53
88
|
|
|
54
89
|
- Baseline release: the changelog starts being tracked from this version. Earlier history is
|
|
55
90
|
available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
|
|
56
91
|
`library-v*` tags.
|
|
57
92
|
|
|
58
|
-
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/library-v1.
|
|
59
|
-
[1.2.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/library-v1.2.0
|
|
93
|
+
[Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/library-v1.3.0...HEAD
|
|
60
94
|
[1.3.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/library-v1.3.0
|
|
95
|
+
[1.2.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/library-v1.2.0
|
|
96
|
+
[1.1.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/library-v1.1.1
|