@synopackageland/ui 0.13.1 → 0.13.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.
@@ -65,6 +65,11 @@ here stay implementation details and can change in any release.
65
65
  | `data-nav-label`, `data-nav-badge` | a row's label and badge | present |
66
66
  | `data-nav-contains-current` | a top-bar branch whose child is the current page | present |
67
67
  | `aria-current` | the current page's row | `page` |
68
+ | `data-ui-top-nav-item` | measurable top-level row wrapper | present |
69
+ | `data-ui-overflowed` | row moved into More (hidden and inert in the bar) | `true` |
70
+ | `data-ui-top-nav-more` | More menu trigger | present |
71
+ | `data-ui-selected` | More trigger when its subtree contains the current page | `true` |
72
+ | `data-ui-top-nav-overflow-menu` | portalled More dropdown panel | present |
68
73
  | `data-ui-sidebar-user` | `AppSidebarUser` | present |
69
74
  | `data-ui-user-avatar`, `data-ui-user-name`, `data-ui-user-detail` | its parts | present |
70
75
 
@@ -94,6 +99,7 @@ before the token existed. Set them on the app root or any ancestor.
94
99
 
95
100
  | Token | Affects | Unset |
96
101
  | --- | --- | --- |
102
+ | `--ui-nav-row-height` | navigation row height/minimum height; inherited from any ancestor, including outside `AppLayout` | window 42px, web 40px, phone 46px |
97
103
  | `--ui-icon-size` | icons in navigation rows (`AppSidebar`, side and top) | 22px in the sidebar, 18px in the top bar |
98
104
  | `--ui-heading-weight` | `PageHeader` title, `Card` title, `TypoHeader`, web toolbar titles | 600 (`PageHeader`, `TypoHeader`, toolbar), 700 (`Card`, web `PageHeader`) |
99
105
  | `--ui-card-padding` | a regular `Card`'s header, body and footer inset; the body's block padding is 0.8× | 20px (body 16px × 20px). Compact cards are unchanged |
@@ -140,3 +146,23 @@ The colour, radius, spacing and web tokens are listed in the
140
146
  ```
141
147
 
142
148
  The Histoire story *DSM 7 / Top navigation and theme hooks* shows both.
149
+
150
+ ## Navigation sizing and overflow
151
+
152
+ Set `--ui-nav-row-height: 30px` on the app's theme ancestor to override all
153
+ presentations. Layout modes set only the internal `--ui-nav-row-height-default`
154
+ fallback; they never redefine the public token. Existing density presets and
155
+ explicit values on a row or layout still take precedence through normal CSS
156
+ inheritance. Sidebar rows can grow to fit wrapped labels.
157
+
158
+ With `navigation="top"`, `AppSidebar` measures the available navigation width,
159
+ row widths (including icons and badges), group spacing and More trigger. The
160
+ trailing items move into More in their original order; nested items and disabled
161
+ states are preserved. More is selected when the current page is anywhere in
162
+ its subtree. Tab reaches the trigger, Enter/Space or ArrowDown opens it,
163
+ arrows navigate, and Escape closes it and returns focus. Resizing or changing
164
+ labels/badges remeasures the row. Hidden bar rows are inert and aria-hidden.
165
+ The phone drawer and default sidebar keep their existing behavior.
166
+
167
+ The portalled panel has `data-ui-top-nav-overflow-menu`; scope panel styles by
168
+ that attribute rather than relying on it being a descendant of the bar.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/ui",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Shared Vue 3 UI component library with a DSM 7 inspired application theme",
5
5
  "license": "MIT",
6
6
  "type": "module",