@cloudfrogger/goodui 0.0.64 → 0.0.71

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.
Files changed (152) hide show
  1. package/ai/README.md +15 -0
  2. package/ai/case-studies/dockerhub.md +7 -0
  3. package/ai/case-studies/index.md +1 -0
  4. package/ai/catalog/component.schema.json +6 -0
  5. package/ai/catalog/components/good-action-menu.json +2 -2
  6. package/ai/catalog/components/good-alert.json +2 -2
  7. package/ai/catalog/components/{good-topbar.json → good-app-header.json} +77 -83
  8. package/ai/catalog/components/{good-app-layout.json → good-app-shell.json} +32 -68
  9. package/ai/catalog/components/good-avatar-menu-item.json +2 -2
  10. package/ai/catalog/components/good-brand-icon.json +6 -6
  11. package/ai/catalog/components/good-button.json +2 -2
  12. package/ai/catalog/components/good-dropdown.json +2 -2
  13. package/ai/catalog/components/{good-main-menu.json → good-header-actions.json} +19 -10
  14. package/ai/catalog/components/{good-avatar-menu.json → good-header-avatar.json} +5 -5
  15. package/ai/catalog/components/{good-topbar-dropdown-item.json → good-header-dropdown-item.json} +17 -17
  16. package/ai/catalog/components/{good-topbar-dropdown-menu.json → good-header-dropdown-menu.json} +14 -14
  17. package/ai/catalog/components/{good-topbar-menu-item.json → good-header-menu-item.json} +17 -15
  18. package/ai/catalog/components/{good-topbar-menu-container.json → good-header-menu.json} +16 -14
  19. package/ai/catalog/components/{good-notifications.json → good-header-notification.json} +5 -5
  20. package/ai/catalog/components/{good-search.json → good-header-search.json} +16 -7
  21. package/ai/catalog/components/{good-topbar-submenu.json → good-header-submenu.json} +12 -12
  22. package/ai/catalog/components/{good-theme-toggle.json → good-header-themetoggle.json} +8 -6
  23. package/ai/catalog/components/{good-heading.json → good-heading-1.json} +15 -33
  24. package/ai/catalog/components/good-heading-2.json +46 -0
  25. package/ai/catalog/components/{good-subheading.json → good-heading-3.json} +9 -30
  26. package/ai/catalog/components/good-heading-4.json +46 -0
  27. package/ai/catalog/components/good-heading-5.json +46 -0
  28. package/ai/catalog/components/good-heading-6.json +46 -0
  29. package/ai/catalog/components/good-heading-7.json +46 -0
  30. package/ai/catalog/components/good-heading-group.json +1 -1
  31. package/ai/catalog/components/good-main-view.json +6 -49
  32. package/ai/catalog/components/good-notification-host.json +1 -1
  33. package/ai/catalog/components/good-section.json +20 -2
  34. package/ai/catalog/components/good-settings.json +1 -1
  35. package/ai/catalog/components/good-sidebar-item.json +4 -2
  36. package/ai/catalog/components/good-sidebar-menu-container.json +4 -2
  37. package/ai/catalog/components/good-sidebar-submenu-group.json +1 -1
  38. package/ai/catalog/components/good-sidebar-submenu-item.json +1 -1
  39. package/ai/catalog/components/{good-sidebar-container.json → good-sidebar.json} +23 -26
  40. package/ai/catalog/components/good-summary.json +6 -1
  41. package/ai/catalog/index.json +231 -171
  42. package/ai/examples/edit-form.html +3 -1
  43. package/ai/examples/edit-form.ts +2 -2
  44. package/ai/examples/login.html +3 -1
  45. package/ai/examples/login.ts +2 -2
  46. package/ai/examples/settings.html +3 -1
  47. package/ai/examples/settings.ts +2 -2
  48. package/ai/examples/shell.html +18 -0
  49. package/ai/examples/shell.ts +11 -0
  50. package/ai/examples/table-view.html +3 -1
  51. package/ai/examples/table-view.ts +2 -2
  52. package/ai/examples/tsconfig.json +2 -1
  53. package/ai/guides/component-discovery.md +2 -2
  54. package/ai/guides/layout.md +5 -3
  55. package/ai/guides/page-patterns.md +7 -3
  56. package/ai/manifest.json +2 -2
  57. package/ai/skill/goodui/SKILL.md +11 -3
  58. package/angular/projects/goodui/package.json +1 -1
  59. package/angular/projects/goodui/src/lib/actions.ts +47 -23
  60. package/angular/projects/goodui/src/lib/app-shell.ts +109 -0
  61. package/angular/projects/goodui/src/lib/{topbar.ts → header.ts} +98 -72
  62. package/angular/projects/goodui/src/lib/main-view.ts +22 -13
  63. package/angular/projects/goodui/src/lib/shell-context.ts +46 -0
  64. package/angular/projects/goodui/src/lib/sidebar.ts +58 -40
  65. package/angular/projects/goodui/src/lib/typography.ts +51 -41
  66. package/angular/projects/goodui/src/public-api.ts +2 -2
  67. package/angular/projects/goodui/src/styles.css +99 -65
  68. package/angular/projects/goodui/src/tokens.generated.css +43 -6
  69. package/design/app-shell-contract.json +118 -0
  70. package/design/component-map.json +171 -82
  71. package/design/header-search-variants.json +55 -0
  72. package/design/typography-components.json +327 -0
  73. package/design-tokens/penpot.tokens.json +160 -6
  74. package/design.md +51 -39
  75. package/fesm2022/cloudfrogger-goodui.mjs +541 -383
  76. package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
  77. package/guides/README.md +2 -1
  78. package/guides/components/action-bar.md +1 -1
  79. package/guides/components/app-header.md +27 -0
  80. package/guides/components/columns.md +3 -3
  81. package/guides/components/header-actions.md +34 -0
  82. package/guides/components/{avatar-menu.md → header-avatar.md} +5 -5
  83. package/guides/components/header-menu.md +64 -0
  84. package/guides/components/header-notification.md +13 -0
  85. package/guides/components/header-search.md +72 -0
  86. package/guides/components/{theme-toggle.md → header-themetoggle.md} +6 -6
  87. package/guides/components/icon.md +1 -1
  88. package/guides/components/main-view.md +30 -8
  89. package/guides/components/notifications.md +2 -2
  90. package/guides/components/settings.md +2 -2
  91. package/guides/components/sidebar.md +16 -34
  92. package/guides/components/submenus.md +4 -4
  93. package/guides/components/subnav.md +4 -3
  94. package/guides/components/typography.md +76 -19
  95. package/guides/contributing/design-to-code.md +62 -32
  96. package/guides/foundations/naming.md +1 -1
  97. package/guides/foundations/tokens.md +9 -9
  98. package/guides/intro.md +17 -19
  99. package/guides/layout/app-shell.md +37 -0
  100. package/guides/layout/layout-rules.md +3 -3
  101. package/guides/migrations/app-shell.md +28 -0
  102. package/guides/migrations/explicit-headings.md +20 -0
  103. package/guides/migrations/header-actions.md +17 -0
  104. package/guides/migrations/header-menu.md +16 -0
  105. package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.ts +2 -10
  106. package/homepage/src/app/examples/calendar-workspace/source-code.generated.ts +1 -1
  107. package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.html +6 -4
  108. package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.ts +2 -20
  109. package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.html +5 -5
  110. package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.ts +2 -20
  111. package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.html +3 -1
  112. package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.ts +2 -20
  113. package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.html +7 -5
  114. package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.ts +2 -14
  115. package/homepage/src/app/examples/case-studies/cloudhoster/home-page.html +4 -4
  116. package/homepage/src/app/examples/case-studies/cloudhoster/home-page.ts +2 -12
  117. package/homepage/src/app/examples/case-studies/cloudhoster/source-code.generated.ts +10 -10
  118. package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.html +6 -6
  119. package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.ts +2 -18
  120. package/homepage/src/app/examples/case-studies/vpshoster/overview-page.html +4 -4
  121. package/homepage/src/app/examples/case-studies/vpshoster/overview-page.ts +2 -8
  122. package/homepage/src/app/examples/case-studies/vpshoster/servers-page.html +4 -1
  123. package/homepage/src/app/examples/case-studies/vpshoster/servers-page.ts +2 -12
  124. package/homepage/src/app/examples/case-studies/vpshoster/source-code.generated.ts +4 -4
  125. package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.html +4 -4
  126. package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.ts +2 -8
  127. package/homepage/src/app/examples/error-pages/error-pages-example-page.html +3 -1
  128. package/homepage/src/app/examples/error-pages/error-pages-example-page.ts +2 -7
  129. package/homepage/src/app/examples/error-pages/source-code.generated.ts +2 -2
  130. package/homepage/src/app/examples/mail-compose/mail-compose-page.ts +2 -4
  131. package/homepage/src/app/examples/mail-workspace/mail-workspace-page.ts +2 -10
  132. package/homepage/src/app/examples/mail-workspace/source-code.generated.ts +1 -1
  133. package/homepage/src/app/examples/notifications/notifications-page.html +3 -1
  134. package/homepage/src/app/examples/notifications/notifications-page.ts +2 -8
  135. package/homepage/src/app/examples/notifications/source-code.generated.ts +2 -2
  136. package/homepage/src/app/examples/pdf-reader/pdf-reader-page.html +3 -1
  137. package/homepage/src/app/examples/pdf-reader/pdf-reader-page.ts +2 -7
  138. package/homepage/src/app/examples/pdf-reader/source-code.generated.ts +2 -2
  139. package/homepage/src/app/examples/user-registration/source-code.generated.ts +3 -3
  140. package/homepage/src/app/examples/user-registration/user-registration-example-page.html +1 -1
  141. package/homepage/src/app/examples/user-registration/user-registration-example-page.ts +2 -2
  142. package/homepage/src/app/examples/user-registration/user-registration-form.ts +2 -13
  143. package/homepage/src/app/examples/user-registration/user-registration-page.html +1 -1
  144. package/homepage/src/app/examples/user-registration/user-registration-page.ts +2 -7
  145. package/package.json +2 -2
  146. package/styles.css +1 -1
  147. package/types/cloudfrogger-goodui.d.ts +301 -207
  148. package/angular/projects/goodui/src/lib/app-layout.ts +0 -84
  149. package/guides/components/main-menu.md +0 -23
  150. package/guides/components/search.md +0 -51
  151. package/guides/components/topbar.md +0 -89
  152. package/guides/layout/app-layout.md +0 -81
package/design.md CHANGED
@@ -12,16 +12,16 @@ The nested sidebar lets “My Account” expand to “Account Home,” which exp
12
12
 
13
13
  | Area | Current baseline | GoodUI owner |
14
14
  | --- | --- | --- |
15
- | Sidebar | 280 px wide, fixed at left, white, right border | `SidebarContainer` owns width, scrolling, brand area, and menu spacing |
16
- | Topbar | 70 px tall, fixed beside sidebar | `Topbar` arranges navigation and `MainMenu` |
17
- | Topbar content | 30 px horizontal padding | Topbar owns padding |
15
+ | Sidebar | 280 px wide, fixed at left, white, right border | `Sidebar` owns width, scrolling, brand area, and menu spacing |
16
+ | Header | 70 px tall, fixed beside sidebar | `Header` arranges navigation and `HeaderActions` |
17
+ | Header content | 30 px horizontal padding | Header owns padding |
18
18
  | Sidebar menu | About 20 px left padding, 4 px between rows | `SidebarMenuContainer` owns heading and item list |
19
19
  | Active sidebar item | 8 px radius, neutral background | `SidebarItem` owns active state |
20
20
  | Expanded sidebar | About 34 px parent row; 36 px child rows with 4 px gap and indentation | `SidebarItem` owns open state; `SidebarSubmenuGroup` owns guide lines and layout |
21
21
  | Cards and panels | 12 px radius, subtle neutral border | `radius.card` and `color.border` |
22
- | Topbar actions | 36 × 36 px circular hit areas | `MainMenu` owns alignment and 10 px gaps between projected actions |
23
- | Topbar dropdown | Help panel 220 px wide under topbar; 34 px rows, 2 px row gap, 6 px radius | `TopbarDropdownMenu` owns panel, divider, and rows |
24
- | Topbar submenu | Support Forum panel 218 × 124 px; 4 px gap from parent, aligned with trigger row | `TopbarSubmenu` owns the next level and flips at the viewport edge |
22
+ | Header actions | 36 × 36 px circular hit areas | `HeaderActions` owns alignment and 10 px gaps between projected actions |
23
+ | Header dropdown | Help panel 220 px wide under topbar; 34 px rows, 2 px row gap, 6 px radius | `HeaderDropdownMenu` owns panel, divider, and rows |
24
+ | Header submenu | Support Forum panel 218 × 124 px; 4 px gap from parent, aligned with trigger row | `HeaderSubmenu` owns the next level and flips at the viewport edge |
25
25
  | Avatar menu | About 250 × 384 px account panel under the avatar; 40 px rows, 36 px identity image, 8 px panel radius | `AvatarMenu` owns identity, row spacing, nested menus, appearance switch, and sign-out area |
26
26
  | Main view | 20 px top and 30 px horizontal padding below topbar; 24 px horizontal on mobile | `MainView` owns page container and optional heading. `layout=fill` removes workspace padding but keeps that inset on an optional heading; an omitted heading lets the workspace touch the topbar. |
27
27
  | Subnav | 60 px desktop, 44 px mobile; active 2 px underline; one scrollable row | `Subnav` owns the section strip, item spacing, horizontal scroll, and dropdown position |
@@ -68,15 +68,15 @@ The nested sidebar lets “My Account” expand to “Account Home,” which exp
68
68
  | Phone input | 32/40/48 px high, with flag and calling-code selector beside a native telephone field | `InputPhone` owns country selection, national digits, international value, and field states |
69
69
  | Dropdown | Button-sized trigger; 240 px token-based popup with 36 px item rows | `Dropdown` owns sections, placement, scrolling, nested items, and dismissal |
70
70
  | Breadcrumbs | 14 px labels, 8 px gaps; optional card border and 12 px radius | `Breadcrumbs` owns hierarchy, separators, overflow menu, and card frame |
71
- | Mobile | 60 px topbar, sidebar as drawer | `AppLayout` owns trigger, scrim, drawer, and scroll lock |
71
+ | Mobile | 60 px topbar, sidebar as drawer | `AppShell` owns trigger, scrim, drawer, and scroll lock |
72
72
 
73
73
  These are the current desktop and mobile measurements for GoodUI. The shell should avoid horizontal overflow between 390 px and desktop. The Angular implementation switches navigation at a 900 px breakpoint.
74
74
 
75
75
  ## Component hierarchy
76
76
 
77
77
  ```text
78
- AppLayout
79
- ├─ SidebarContainer
78
+ AppShell
79
+ ├─ Sidebar
80
80
  │ ├─ brand area
81
81
  │ └─ SidebarMenuContainer (repeatable)
82
82
  │ ├─ heading
@@ -84,16 +84,16 @@ AppLayout
84
84
  │ └─ SidebarSubmenuGroup (optional and recursive)
85
85
  │ └─ SidebarSubmenuItem (repeatable)
86
86
  └─ content area
87
- ├─ Topbar
87
+ ├─ Header
88
88
  │ ├─ mobile drawer trigger
89
89
  │ ├─ BrandIcon (optional; after the trigger on mobile)
90
- │ ├─ TopbarMenuContainer
91
- │ │ └─ TopbarMenuItem (repeatable; optional dropdown)
92
- │ │ └─ TopbarDropdownMenu
93
- │ │ ├─ TopbarDropdownItem (link or expandable parent)
94
- │ │ └─ TopbarSubmenu (optional and recursive)
95
- │ │ └─ TopbarDropdownItem (repeatable)
96
- │ └─ MainMenu
90
+ │ ├─ HeaderMenu
91
+ │ │ └─ HeaderMenuItem (repeatable; optional dropdown)
92
+ │ │ └─ HeaderDropdownMenu
93
+ │ │ ├─ HeaderDropdownItem (link or expandable parent)
94
+ │ │ └─ HeaderSubmenu (optional and recursive)
95
+ │ │ └─ HeaderDropdownItem (repeatable)
96
+ │ └─ HeaderActions
97
97
  │ ├─ Search
98
98
  │ ├─ Notifications
99
99
  │ ├─ ThemeToggle (optional; direct Light → System → Dark cycle)
@@ -116,37 +116,37 @@ AppLayout
116
116
  └─ CardFooter (optional; text, Link, Button, or mixed actions)
117
117
  ```
118
118
 
119
- `AppLayout` owns shell geometry, scrolling, and mobile switching. Apps do not set sidebar offsets, topbar height, overlay layers, or content padding. Each container owns its alignment and spacing; individual items have no external layout margins.
119
+ `AppShell` owns shell geometry, scrolling, and mobile switching. Apps do not set sidebar offsets, topbar height, overlay layers, or content padding. Each container owns its alignment and spacing; individual items have no external layout margins.
120
120
 
121
121
  `Dropdown` can be placed in any action area. It owns a Button trigger, optional header and footer, and a list of recursive `DropdownItem` entries inside a positioned `DropdownPanel`.
122
122
 
123
- The shell owns the brand image placement, while the consuming app owns the actual artwork. Optional `brandLogoSrc` and `brandLogoDarkSrc` URLs on `AppLayout` feed the desktop sidebar and mobile drawer; `brandMarkSrc` and `brandMarkDarkSrc` feed the mobile topbar symbol and optional desktop BrandIcon. On mobile the drawer trigger precedes the symbol. `showMobileBrand=false` hides only the mobile topbar branding; the sidebar and drawer retain their branding. `brand` is the image's accessible name. When no mark URL is supplied, the mobile topbar retains the wordmark or text fallback for existing consumers. The dark URLs are optional; if absent, their light URLs remain visible in both themes. Favicon selection belongs to each application's `index.html` and public assets, never to the Angular library. The GoodUI homepage uses the exported GoodUI wordmarks and mark; this does not make them default assets for consumers. Penpot's AppLayout, SidebarContainer, Topbar, and BrandIcon masters show GoodUI artwork as specimen content to demonstrate placement; the runtime fallback remains generic.
123
+ The shell owns the brand image placement, while the consuming app owns the actual artwork. Optional `brandLogoSrc` and `brandLogoDarkSrc` URLs on `AppShell` feed the desktop sidebar and mobile drawer; `brandMarkSrc` and `brandMarkDarkSrc` feed the mobile topbar symbol and optional desktop BrandIcon. On mobile the drawer trigger precedes the symbol. `showMobileBrand=false` hides only the mobile topbar branding; the sidebar and drawer retain their branding. `brand` is the image's accessible name. When no mark URL is supplied, the mobile topbar retains the wordmark or text fallback for existing consumers. The dark URLs are optional; if absent, their light URLs remain visible in both themes. Favicon selection belongs to each application's `index.html` and public assets, never to the Angular library. The GoodUI homepage uses the exported GoodUI wordmarks and mark; this does not make them default assets for consumers. Penpot's AppShell, Sidebar, Header, and BrandIcon masters show GoodUI artwork as specimen content to demonstrate placement; the runtime fallback remains generic.
124
124
 
125
125
  ### Alerts and notifications
126
126
 
127
127
  `good-alert` has `tone=neutral/info/success/brand/destructive/warning`, `appearance=default/mono/outline/light`, and `size=small/default/large`. Default uses a tone-tinted surface, light uses a quieter tint, outline uses the base surface and border with tone-colored text, and mono leaves only its optional icon tone-colored. The neutral surface aliases the application gray. Warning, Badge, and Rating share `color.warning` (`#EAB308` light, `#FACC15` dark); small Warning text and Alert icon strokes use the companion `color.warning-foreground` for contrast. The `alert.*` Penpot tokens alias existing GoodUI color and spacing roles, including theme-specific badge tints, so no separate dark value list is maintained. Content, actions, the optional X, and the custom Lucide icon are runtime options. `good-alert` owns the action row and responsive wrapping; callers project Buttons and Links through `[goodAlertActions]`.
128
128
 
129
- `provideGoodUI()` is the root Angular provider entry point for the library's application services and shared options. It registers `GoodNotificationCenter` and `GoodThemeService`; existing direct service injection remains available. `GoodNotificationCenter` publishes the same alert content to a top-right toast, a centered top-entry toast, or the notification side panel only. AppLayout includes `good-notification-host`; standalone layouts place one host near their root. Three toasts are visible at once, with later messages queued and timed only after display. Focus and hover pause timeouts. `persist` on each published toast overrides the optional `notifications.persistToHistory` app default (true); inbox-only delivery always persists. Acknowledgement messages wait for action and remain in the panel as read when saved; the panel also offers mark-as-read and removal. The panel orders dated messages newest first and shows their creation date and time in the viewer's locale. `GoodNotification` input items can supply a Unix-millisecond `createdAt` for the same behavior; undated legacy items follow in supplied order. The bell displays unread count through `good-badge`, sized by `notification.count.*` tokens to 16 px. The published `goodui.notifications.unread` Penpot composition links the bell and Badge; its single-digit label is centered as a local instance override because Penpot does not reflow that copied Badge label after the width override. Angular uses regular flex centering. The drawer closes on backdrop clicks, Escape, or the close button and returns focus to the bell. Session memory is the library default; application persistence is a separate integration. See [Alert](guides/components/alert.md), [Notifications](guides/components/notifications.md), and [design/alert-contract.json](design/alert-contract.json).
129
+ `provideGoodUI()` is the root Angular provider entry point for the library's application services and shared options. It registers `GoodNotificationCenter` and `GoodThemeService`; existing direct service injection remains available. `GoodNotificationCenter` publishes the same alert content to a top-right toast, a centered top-entry toast, or the notification side panel only. AppShell includes `good-notification-host`; standalone layouts place one host near their root. Three toasts are visible at once, with later messages queued and timed only after display. Focus and hover pause timeouts. `persist` on each published toast overrides the optional `notifications.persistToHistory` app default (true); inbox-only delivery always persists. Acknowledgement messages wait for action and remain in the panel as read when saved; the panel also offers mark-as-read and removal. The panel orders dated messages newest first and shows their creation date and time in the viewer's locale. `GoodNotification` input items can supply a Unix-millisecond `createdAt` for the same behavior; undated legacy items follow in supplied order. The bell displays unread count through `good-badge`, sized by `notification.count.*` tokens to 16 px. The published `goodui.notifications.unread` Penpot composition links the bell and Badge; its single-digit label is centered as a local instance override because Penpot does not reflow that copied Badge label after the width override. Angular uses regular flex centering. The drawer closes on backdrop clicks, Escape, or the close button and returns focus to the bell. Session memory is the library default; application persistence is a separate integration. See [Alert](guides/components/alert.md), [Notifications](guides/components/notifications.md), and [design/alert-contract.json](design/alert-contract.json).
130
130
 
131
- Penpot page `21 Alerts` publishes 72 `goodui.alert` variants and four `goodui.notification-host` arrangements. All Alert variants retain linked Lucide Info artwork and bind their surface, text, padding, and icon size to `alert.*` tokens. The action/dismiss composition is a separate reusable component with a detached Alert frame, linked GoodUI Button, and linked Lucide X: Penpot does not permit adding children inside a component copy. The manifests record every published ID. The light and dark renders were inspected, and Penpot was restored to light on `02 Layout`.
131
+ Penpot page `21 Alerts` publishes 72 `goodui.alert` variants and four `goodui.notification-host` arrangements. All Alert variants retain linked Lucide Info artwork and bind their surface, text, padding, and icon size to `alert.*` tokens. The action/dismiss composition is a separate reusable component with a detached Alert frame, linked GoodUI Button, and linked Lucide X: Penpot does not permit adding children inside a component copy. The manifests record every published ID. The light and dark renders were inspected, and Penpot was restored to light on `02 Shell`.
132
132
 
133
133
  ## Public components
134
134
 
135
135
  | Design ID | Responsibility |
136
136
  | --- | --- |
137
- | `goodui.app-layout` | Desktop/mobile shell, fixed areas, drawer, content offset |
138
- | `goodui.sidebar-container` | Brand area, scrolling, desktop/drawer presentation |
137
+ | `goodui.app-shell` | Desktop/mobile shell, fixed areas, drawer, content offset |
138
+ | `goodui.sidebar` | Brand area, scrolling, desktop/drawer presentation |
139
139
  | `goodui.sidebar-menu-container` | Group heading and vertical sidebar items |
140
140
  | `goodui.sidebar-item` | Navigation, icon, label, optional badge/expander, active/open/disabled states |
141
141
  | `goodui.sidebar-submenu-group` | Indented nested level, guide lines, child links, open/closed state |
142
142
  | `goodui.sidebar-submenu-item` | Child link with dot, label, route, active state |
143
- | `goodui.topbar` | Optional brand icon, navigation, action group, mobile trigger |
143
+ | `goodui.app-header` | Optional brand icon, navigation, action group, mobile trigger |
144
144
  | `goodui.brand-icon` | Optional brand placeholder without a fixed product logo |
145
- | `goodui.topbar-menu-container` | Navigation items and responsive drawer layout |
146
- | `goodui.topbar-menu-item` | Link or dropdown trigger with active/open state |
147
- | `goodui.topbar-dropdown-menu` | Panel, border, dividers, rows, open submenu state |
148
- | `goodui.topbar-dropdown-item` | Reusable 34 px link or submenu trigger; `link`, `parent`, `open` states |
149
- | `goodui.topbar-submenu` | Next menu level using the same row components |
145
+ | `goodui.header-menu` | Navigation items and responsive drawer layout |
146
+ | `goodui.header-menu-item` | Link or dropdown trigger with active/open state |
147
+ | `goodui.header-dropdown-menu` | Panel, border, dividers, rows, open submenu state |
148
+ | `goodui.header-dropdown-item` | Reusable 34 px link or submenu trigger; `link`, `parent`, `open` states |
149
+ | `goodui.header-submenu` | Next menu level using the same row components |
150
150
  | `goodui.main-menu` | Search, notifications, settings, avatar in fixed order |
151
151
  | `goodui.search` | Trigger and search dialog with input, results, empty state |
152
152
  | `goodui.notifications` | Bell, unread Badge, and dismissible drawer; `default`, `unread`, and `open` design states |
@@ -243,10 +243,10 @@ The simple API accepts brand, sidebar groups, topbar items, actions, user, and n
243
243
 
244
244
  ### Typography
245
245
 
246
- `12 Typography` publishes reusable text families with one-to-one Angular selectors in [typography-components.json](design/typography-components.json). `good-heading-group` owns the optional `good-eyebrow`, `good-heading`, and `good-summary` relationship; `good-main-view` uses the same components through its existing `title` and `description` inputs plus optional `eyebrow` and `eyebrowAppearance=brand/mono`. The page title remains a semantic H1. Penpot `goodui.heading` has `level=1` and `level=2-6` variants: H1 uses 24 px and weight 800, while H2–H6 retain 20 px and weight 600. A HeadingGroup with H1 gives it 16 px after-space before Summary; groups with lower levels keep the compact 4 px gap. `good-summary` uses 15 px, weight 700, and 0.75 px letter spacing (equivalent to 0.05em at 15 px); the reduced tracking keeps multi-line summaries subordinate to the title. Penpot MainView desktop, mobile, and account main instances contain linked Heading and Summary instances with their existing example text preserved.
246
+ `12 Typography` publishes the shared heading scale: 28/26/24/22/20/18/16 px, CSS weights 1000/800/700/700/600/600/600, and a 1.25 line height. Native H1–H6 and `good-heading-1` through `good-heading-6` use identical typography. Heading 7 uses an accessible host role and aria-level 7 rather than invalid H7 markup. There is no level input. Native headings have zero outer margins; containers own rhythm. Inter supports at most 900 in Penpot, so the H1 specimen uses 900 while its CSS token requests 1000; the registry records this closest-face exception. All published component IDs remain stable. Heading variants use levels 1/2 and Subheading variants 3–7, recorded with every selector and semantic level in `design/typography-components.json` and `variantSelectorMappings`. MainView projects Heading 1, Summary, Eyebrow, or HeadingGroup children into its page header; other levels remain content.
247
247
 
248
- `good-section` is the reusable semantic section for page content. It has a token-bound 1024 px width in the Penpot reference, a 1024 px maximum width in Angular, centers in wider containers including `good-main-view`, and owns the small gap between a projected `good-subheading` and `good-prose`; adjacent sections use the larger section gap. `good-prose` retains the separate 760 px reading width. The Penpot library component contains linked Subheading and Prose instances. `good-main-view` continues to own the gap between the page heading and its content. `good-prose` owns the vertical rhythm within a section and may also be used on its own. It accepts `good-paragraph`, semantic `good-subheading`, italic `good-citation`, `good-separator` (Penpot `style=dots/line` → Angular `variant=dots/line`), and `good-inline-image` (`align=center/left/right`, optional caption). `good-paragraph` has no outer margin; its parent owns spacing. Prose aliases its 20 px child gap to `typography.paragraph.after-gap`, while Group uses a 16 px `group.gap` for mixed text and controls, or 4 px when `spacing="tight"` clusters choices. A first Subheading or Separator in Prose receives no leading margin; the larger gap applies only after preceding content. A paragraph is one text block; subheadings are siblings in the prose flow so the HTML remains valid. The default separator uses three subtle dots. InlineImage's `src`, `alt`, and caption are runtime content, with the Penpot image slot acting as a replaceable example. Its `fullWidth` runtime option lets a large screenshot use its parent width without changing the published alignment variants. `good-image-caption` is a linked internal visual part of `good-inline-image`, not another Angular selector.
249
- When `good-main-view` contains a direct `good-section` child, its input-driven page heading and content area share the same centered 1024 px width. Without a Section they retain the full MainView content width and the same left edge. Pages choose one composition rather than mixing centered Sections and free content. This is a runtime composition rule; Penpot's standalone MainView specimens show the full-width heading, while Section's standalone reference shows its maximum width.
248
+ `good-section` is the reusable semantic section for page content. It has a token-bound 1024 px width in the Penpot reference, a 1024 px maximum width in Angular, centers in wider containers including `good-main-view`, and owns the small gap between a projected `good-heading-3` and `good-prose`; adjacent sections use the larger section gap. `good-prose` retains the separate 760 px reading width. The Penpot library component contains linked Subheading and Prose instances. `good-main-view` continues to own the gap between the page heading and its content. `good-prose` owns the vertical rhythm within a section and may also be used on its own. It accepts `good-paragraph`, semantic `good-heading-3`, italic `good-citation`, `good-separator` (Penpot `style=dots/line` → Angular `variant=dots/line`), and `good-inline-image` (`align=center/left/right`, optional caption). `good-paragraph` has no outer margin; its parent owns spacing. Prose aliases its 20 px child gap to `typography.paragraph.after-gap`, while Group uses a 16 px `group.gap` for mixed text and controls, or 4 px when `spacing="tight"` clusters choices. A first Subheading or Separator in Prose receives no leading margin; the larger gap applies only after preceding content. A paragraph is one text block; subheadings are siblings in the prose flow so the HTML remains valid. The default separator uses three subtle dots. InlineImage's `src`, `alt`, and caption are runtime content, with the Penpot image slot acting as a replaceable example. Its `fullWidth` runtime option lets a large screenshot use its parent width without changing the published alignment variants. `good-image-caption` is a linked internal visual part of `good-inline-image`, not another Angular selector.
249
+ When `good-main-view` contains a direct `good-section` child, its projected page heading and content area share the same centered 1024 px width. Without a Section they retain the full MainView content width and the same left edge. Pages choose one composition rather than mixing centered Sections and free content. This is a runtime composition rule; Penpot's standalone MainView specimens show the full-width heading, while Section's standalone reference shows its maximum width.
250
250
  `good-main-view layout="page"` is the scrolling default for both centered Section pages and free full-width pages. `layout="fill"` removes MainView's outer padding and gives one primary projected child all remaining height below the application topbar; the child owns its scrollbars. `good-calendar [fillHeight]="true"` is the matching flush-frame behavior for the time grid, month, list, and optional sidebar. These are runtime sizing states of the existing published MainView and Calendar selectors. The current Penpot specimens show their ordinary page-sized arrangements, not a separate fill variant or new library ID.
251
251
 
252
252
  When a `good-heading-group` is directly followed by content inside `good-section`, Section adds `typography.heading.content-gap` after its standard child gap. This gives the lead-in room before a form or another content block without an example-specific layout rule. The existing Penpot Section specimen keeps its linked Subheading and Prose; this sibling relationship is a runtime composition rule.
@@ -357,13 +357,13 @@ Penpot's `goodui.dropdown` has 16 `placement` × `chevron` × `state` variants a
357
357
 
358
358
  The switch track and thumb dimensions have their own semantic sizing tokens. `switch.on.background` aliases `color.brand` in light mode and is overridden in dark mode. `switch.error.border` aliases `color.error`, which is `#DC2626` in light mode and `#F87171` in dark mode. The same relationships generate the CSS variables. Angular uses a native checkbox with switch semantics, a 44 × 44 px minimum hit area, an accessible label, and optional `ControlValueAccessor` form binding. The visual component contains no product-specific label; consumers supply the label text.
359
359
 
360
- ### Nested topbar menus
360
+ ### Nested header menus
361
361
 
362
- The homepage has a top-level “Getting Started” menu with Introduction, Designing, Developing, License, and Changelog routes. Its separate Help menu has “Support Forum,” “Licenses & FAQ,” “Documentation,” and “Contact Us” after a divider. “Support Forum” reveals “All Questions,” “Popular Questions,” and “Ask Question.” Parents show a chevron; only leaves navigate. The selected parent uses `color.selected`; text, icons, borders, and surfaces use semantic color roles.
362
+ The homepage has a top-level “Getting Started” menu with Introduction, Designing, Developing, Developing with AI, Security, Contributing, License, and Changelog routes. Its separate Help menu has “Support Forum,” “Licenses & FAQ,” “Documentation,” and “Contact Us” after a divider. “Support Forum” reveals “All Questions,” “Popular Questions,” and “Ask Question.” Parents show a chevron; only leaves navigate. The selected parent uses `color.selected`; text, icons, borders, and surfaces use semantic color roles.
363
363
 
364
- `TopbarMenuItem` owns the trigger and first open state. `TopbarDropdownMenu` arranges the first level; `TopbarDropdownItem` renders a link or parent; `TopbarSubmenu` arranges the next level. Further levels reuse these components. Desktop supports hover, click, and keyboard focus. On mobile, `mobileTopbarMenuMode` selects the default drawer placement (`hidden`) or a topbar icon and popup (`popup`). Both stack nested levels vertically. Escape closes the deepest level first and returns focus to its trigger; outside clicks close the chain. Submenus flip toward available viewport space.
364
+ `HeaderMenuItem` owns the trigger and first open state. `HeaderDropdownMenu` arranges the first level; `HeaderDropdownItem` renders a link or parent; `HeaderSubmenu` arranges the next level. Further levels reuse these components. Desktop supports hover, click, and keyboard focus. On mobile, HeaderMenu's `mobileMode` explicitly hides its mobile navigation (`hidden`) or shows an icon and popup (`popup`). Sidebar is a separate projected navigation area; no header items are copied into it. Escape closes the deepest level first and returns focus to its trigger; outside clicks close the chain. Submenus flip toward available viewport space.
365
365
 
366
- Penpot includes `goodui.topbar-menu-item.open`, `goodui.topbar-dropdown-item.link`/`.parent`/`.open`, `goodui.topbar-dropdown-menu.default`/`.nested-open`, `goodui.topbar-submenu.default`, and the composed topbar and AppLayout open states. Its `goodui.topbar-menu-container.mobile-icon` and `.mobile-popup-open` states compose into `goodui.topbar.mobile-menu-icon` and `.mobile-menu-popup-open`. Angular renders the recursive `GoodTopbarItem.children` model through `GoodTopbarDropdownItemComponent`, `GoodTopbarDropdownMenuComponent`, and `GoodTopbarSubmenuComponent`. The homepage shows Help → Support Forum with working routes, mobile popup layout, and edge flipping, plus dedicated Topbar menu and Topbar submenu component pages.
366
+ Penpot includes `goodui.header-menu-item.open`, `goodui.header-dropdown-item.link`/`.parent`/`.open`, `goodui.header-dropdown-menu.default`/`.nested-open`, `goodui.header-submenu.default`, and the composed topbar and AppShell open states. Its `goodui.header-menu.mobile-icon` and `.mobile-popup-open` states compose into `goodui.app-header.mobile-menu-icon` and `.mobile-menu-popup-open`. Angular renders the recursive `GoodTopbarItem.children` model through `GoodHeaderDropdownItemComponent`, `GoodHeaderDropdownMenuComponent`, and `GoodHeaderSubmenuComponent`. The homepage shows Help → Support Forum with working routes, mobile popup layout, and edge flipping, with Header submenu documented as a section of the combined Header menu chapter.
367
367
 
368
368
  ### Avatar account menu
369
369
 
@@ -393,7 +393,7 @@ Shared `layout` dimensions: `space.1`, `.2`, `.2_5`, `.3`, `.5`, `.6`, `.7_5` =
393
393
 
394
394
  Angular Switch, the avatar appearance switch, and all 36 Penpot Switch variants place their thumbs with flex alignment while retaining the same track sizes and on/off positions. `switch.thumb-inset` binds the four track paddings in Penpot and CSS. Absolute positioning remains appropriate for popovers, fixed submenus, and invisible native input overlays.
395
395
 
396
- The live Penpot file uses version 2.17.0 of the plugin API. Shell responsive and open states are separate main components; Button is a registered 45-combination Penpot variant group. The existing color tokens remain bound to fills and strokes. Semantic aliases in `layout` bind `topbar.padding-inline` to topbar flex padding, `main-menu.gap` to MainMenu flex column gap, and `sidebar.menu-gap` to the sidebar menu flex row gap. Sizing tokens bind sidebar width, desktop/mobile topbar height, subnav height, sidebar row height, the four 36 px action controls, and Button heights and icon sizes. `radius.item` binds sidebar item corners; `radius.card` binds MainView content border corners; `radius.button` binds Button corners. Main component IDs and intentionally different instance values remain unchanged.
396
+ The live Penpot file uses version 2.17.0 of the plugin API. Shell responsive and open states are separate main components; Button is a registered 45-combination Penpot variant group. The existing color tokens remain bound to fills and strokes. Semantic aliases in `layout` bind `topbar.padding-inline` to topbar flex padding, `main-menu.gap` to HeaderActions flex column gap, and `sidebar.menu-gap` to the sidebar menu flex row gap. Sizing tokens bind sidebar width, desktop/mobile topbar height, subnav height, sidebar row height, the four 36 px action controls, and Button heights and icon sizes. `radius.item` binds sidebar item corners; `radius.card` binds MainView content border corners; `radius.button` binds Button corners. Main component IDs and intentionally different instance values remain unchanged.
397
397
 
398
398
  The Penpot token catalog supports `spacing` on flex/grid gaps and padding, `sizing` on width/height, and `borderRadius` on corners. The account MainView, subnavigation track, and mobile topbar use absolute positioning rather than Penpot flex layout, so their placement offsets and mobile topbar padding cannot receive spacing-token bindings without changing layout behavior. They remain explicit geometry; the corresponding runtime CSS values are documented. Nested sidebar menu copies with a different flex gap are not rebound to the main component's gap token.
399
399
 
@@ -409,7 +409,7 @@ The Penpot token catalog supports `spacing` on flex/grid gaps and padding, `sizi
409
409
 
410
410
  ## Penpot inventory
411
411
 
412
- File: `New File 4` (ID `a552d28a-7556-80e4-8008-d3392c96c899`; the plugin API could not rename the file). Pages: `01 Components`, `02 Layout`, `03 Controls`, `04 Logos`, `05 Badges`, `06 Checkboxes`, `07 Radio Groups`, `08 Cards and Links`, and `09 Code`. The library contains main components for the elements above. AppLayout has desktop, mobile, mobile drawer open, desktop sidebar expanded, and mobile drawer expanded states. Topbar has default, with-brand, and mobile states. Search, notifications, settings, and avatar each have trigger and open states. The sidebar also has real components for expanded parents, open/closed groups, and normal/active child links.
412
+ File: `New File 4` (ID `a552d28a-7556-80e4-8008-d3392c96c899`; the plugin API could not rename the file). Pages: `01 Components`, `02 Shell`, `03 Controls`, `04 Logos`, `05 Badges`, `06 Checkboxes`, `07 Radio Groups`, `08 Cards and Links`, and `09 Code`. The library contains main components for the elements above. AppShell has desktop, mobile, mobile drawer open, desktop sidebar expanded, and mobile drawer expanded states. Header has default, with-brand, and mobile states. Search, notifications, settings, and avatar each have trigger and open states. The sidebar also has real components for expanded parents, open/closed groups, and normal/active child links.
413
413
 
414
414
  `04 Logos` contains 14 reusable brand assets: light and dark wordmarks, standalone symbols, square symbols, glossy square symbols, and three badge styles in both appearances. The names use `goodui.logo.<form>.<appearance>`; the complete IDs are in [Design to Angular](guides/contributing/design-to-code.md). These are product artwork assets, not UI component families, so they have no Angular selector. Both wordmarks and both standalone symbols have transparent, editable Penpot vector paths traced from the supplied PNGs. Their direct SVG exports are `assets/brand/goodui-logo-light.svg`, `goodui-logo-dark.svg`, `goodui-mark.svg`, and `goodui-mark-dark.svg`. The Angular homepage uses the symbols for its mobile topbar and favicons, selecting the dark assets according to the active GoodUI theme. Square symbols, glossy square symbols, and badges still use image fills that preserve their original backgrounds and effects. A traced vector can differ slightly from its raster source; review each exported SVG against the artwork after any brand update.
415
415
 
@@ -424,7 +424,7 @@ Shell compositions use nested component instances. Keep IDs when a component ret
424
424
  - The mobile sidebar opens from the topbar trigger and closes through the scrim or Escape. Desktop sidebar collapse exists as a design variant but is not yet exposed as an Angular API state.
425
425
  - `MainView` accepts page content without imposing a card layout. The heading and actions are optional; content grows and scrolls.
426
426
  - `Subnav` owns its horizontal viewport and child menu. Apps provide route data and do not add custom wrapping or page offsets.
427
- - `MainMenu` accepts projected action components in application-defined order; AppLayout forwards a direct MainMenu child to Topbar. With no projected content it supplies the existing default actions. `MainMenu` can hide its generated ThemeToggle and other actions independently. ThemeToggle is shown by default; Settings is a separate optional menu. Apps may project a custom `good-main-menu` into `Topbar`; the container still owns spacing and hit areas.
427
+ - `HeaderActions` accepts projected action components in application-defined order; AppShell projects AppHeader; HeaderActions belongs inside AppHeader. With no projected content it supplies the existing default actions. `HeaderActions` can hide its generated ThemeToggle and other actions independently. ThemeToggle is shown by default; Settings is a separate optional menu. Apps may project a custom `good-header-actions` into `Header`; the container still owns spacing and hit areas.
428
428
  - Tailwind CSS 4 theme variables provide colors; the shipped component CSS provides geometry. Apps do not add `margin-left` or `padding-top` to align the shell.
429
429
 
430
430
  ## Maintenance workflow
@@ -450,3 +450,15 @@ The PDF toolbar's six linked Lucide icons use 14 px outer bounds and scaled chil
450
450
  ## Error pages
451
451
 
452
452
  `good-error-page` is the generic recovery page body. The 404 and 500 Penpot variants on `26 Error Pages` show brand and destructive tones; their status code, title, description, optional reference, icon, image, and projected GoodUI Button actions are configured by the application. The Penpot variants show the default generated illustration; `imageSrc` and `imageAlt` supply runtime content without changing the layout. The component owns its responsive split layout and mobile stacking. Applications route unknown paths to a page that renders it; a client-side route does not itself change the HTTP response status. See [Error page](guides/components/error-page.md).
453
+
454
+ ## Header search shortcut variant
455
+
456
+ `good-header-search` defaults to a compact 36 × 36 px action. With `[hotkey]="true"`, the native Penpot `goodui.search` variant uses a 320 × 40 px neutral button with a linked 20 px Lucide magnifier, “Search…,” and a shortcut keycap. The `header-search.*` tokens own its geometry and surfaces in both themes. A viewport of 1200 px or less uses the compact trigger while retaining the shortcut. Control+K or Meta+K opens the shared modal; Apple platforms show ⌘ K. One visible opted-in instance handles an unclaimed event, and an open modal keeps keyboard focus. IDs, variants, and the optional HeaderActions composition live in `design/header-search-variants.json`.
457
+
458
+ ## Section content spacing
459
+
460
+ `good-section spacing="content"` opts into a content hierarchy: 24 px between direct blocks, 12 px from a Heading/Subheading to its content, 40 px before a later Heading/Subheading/HeadingGroup, and 48 px between adjacent content Sections. The default mode preserves the existing compact spacing. Section owns these external relationships; Prose retains 20 px paragraph spacing, images keep their caption gap, and nested controls keep their own layout. First and last blocks gain no outer space. HeadingGroup retains its own internal spacing and is followed by the regular block gap. Penpot `goodui.section` publishes `spacing=default/content`; see `design/typography-components.json`. The Header actions chapter is the initial mixed-content application of this mode.
461
+
462
+ ### Declarative shell regions
463
+
464
+ `good-app-shell` projects `good-sidebar` and `good-app-header` as direct children and renders one notification host. Shell no longer accepts navigation-array or mobile-menu inputs. AppHeader projects HeaderMenu and HeaderActions; Sidebar projects SidebarItem and optional MenuContainer groups. Sidebar follows Angular Router automatically, including projected active descendants. Its single component instance remains alive in a native modal drawer on mobile and a presentation container on desktop. Branding inherits shell defaults and can be overridden by either region. The published Sidebar and AppHeader families retain their stable IDs, nested instances, dimensions, and theme tokens.