@cloudfrogger/goodui 0.0.65 → 0.0.72
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/ai/README.md +15 -0
- package/ai/case-studies/dockerhub.md +7 -0
- package/ai/case-studies/index.md +1 -0
- package/ai/catalog/component.schema.json +6 -0
- package/ai/catalog/components/good-action-menu.json +2 -2
- package/ai/catalog/components/good-alert.json +2 -2
- package/ai/catalog/components/{good-topbar.json → good-app-header.json} +75 -81
- package/ai/catalog/components/{good-app-layout.json → good-app-shell.json} +32 -68
- package/ai/catalog/components/good-brand-icon.json +6 -6
- package/ai/catalog/components/good-button.json +2 -2
- package/ai/catalog/components/good-dropdown.json +2 -2
- package/ai/catalog/components/good-header-actions.json +10 -1
- package/ai/catalog/components/{good-topbar-dropdown-item.json → good-header-dropdown-item.json} +17 -17
- package/ai/catalog/components/{good-topbar-dropdown-menu.json → good-header-dropdown-menu.json} +14 -14
- package/ai/catalog/components/{good-topbar-menu-item.json → good-header-menu-item.json} +17 -15
- package/ai/catalog/components/{good-topbar-menu-container.json → good-header-menu.json} +16 -14
- package/ai/catalog/components/good-header-search.json +12 -3
- package/ai/catalog/components/{good-topbar-submenu.json → good-header-submenu.json} +12 -12
- package/ai/catalog/components/good-header-themetoggle.json +3 -1
- package/ai/catalog/components/{good-heading.json → good-heading-1.json} +15 -33
- package/ai/catalog/components/good-heading-2.json +46 -0
- package/ai/catalog/components/{good-subheading.json → good-heading-3.json} +9 -30
- package/ai/catalog/components/good-heading-4.json +46 -0
- package/ai/catalog/components/good-heading-5.json +46 -0
- package/ai/catalog/components/good-heading-6.json +46 -0
- package/ai/catalog/components/good-heading-7.json +46 -0
- package/ai/catalog/components/good-heading-group.json +1 -1
- package/ai/catalog/components/good-main-view.json +6 -49
- package/ai/catalog/components/good-notification-host.json +1 -1
- package/ai/catalog/components/good-section.json +20 -2
- package/ai/catalog/components/good-sidebar-item.json +4 -2
- package/ai/catalog/components/good-sidebar-menu-container.json +4 -2
- package/ai/catalog/components/good-sidebar-submenu-group.json +1 -1
- package/ai/catalog/components/good-sidebar-submenu-item.json +1 -1
- package/ai/catalog/components/{good-sidebar-container.json → good-sidebar.json} +23 -26
- package/ai/catalog/components/good-summary.json +6 -1
- package/ai/catalog/index.json +170 -110
- package/ai/examples/edit-form.html +3 -1
- package/ai/examples/edit-form.ts +2 -2
- package/ai/examples/login.html +3 -1
- package/ai/examples/login.ts +2 -2
- package/ai/examples/settings.html +3 -1
- package/ai/examples/settings.ts +2 -2
- package/ai/examples/shell.html +18 -0
- package/ai/examples/shell.ts +11 -0
- package/ai/examples/table-view.html +3 -1
- package/ai/examples/table-view.ts +2 -2
- package/ai/examples/tsconfig.json +2 -1
- package/ai/guides/component-discovery.md +2 -2
- package/ai/guides/layout.md +5 -3
- package/ai/guides/page-patterns.md +7 -3
- package/ai/manifest.json +2 -2
- package/ai/skill/goodui/SKILL.md +11 -3
- package/angular/projects/goodui/package.json +1 -1
- package/angular/projects/goodui/src/lib/actions.ts +27 -3
- package/angular/projects/goodui/src/lib/app-shell.ts +109 -0
- package/angular/projects/goodui/src/lib/{topbar.ts → header.ts} +96 -69
- package/angular/projects/goodui/src/lib/main-view.ts +22 -13
- package/angular/projects/goodui/src/lib/shell-context.ts +46 -0
- package/angular/projects/goodui/src/lib/sidebar.ts +58 -40
- package/angular/projects/goodui/src/lib/typography.ts +51 -41
- package/angular/projects/goodui/src/public-api.ts +2 -2
- package/angular/projects/goodui/src/styles.css +95 -61
- package/angular/projects/goodui/src/tokens.generated.css +43 -6
- package/design/app-shell-contract.json +118 -0
- package/design/component-map.json +153 -71
- package/design/header-search-variants.json +55 -0
- package/design/typography-components.json +327 -0
- package/design-tokens/penpot.tokens.json +160 -6
- package/design.md +49 -37
- package/fesm2022/cloudfrogger-goodui.mjs +501 -342
- package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
- package/guides/README.md +1 -1
- package/guides/components/action-bar.md +1 -1
- package/guides/components/app-header.md +27 -0
- package/guides/components/columns.md +3 -3
- package/guides/components/header-actions.md +10 -5
- package/guides/components/header-avatar.md +1 -1
- package/guides/components/header-menu.md +64 -0
- package/guides/components/header-notification.md +1 -1
- package/guides/components/header-search.md +26 -5
- package/guides/components/header-themetoggle.md +3 -3
- package/guides/components/icon.md +1 -1
- package/guides/components/main-view.md +30 -8
- package/guides/components/notifications.md +1 -1
- package/guides/components/settings.md +1 -1
- package/guides/components/sidebar.md +16 -34
- package/guides/components/submenus.md +4 -4
- package/guides/components/subnav.md +4 -3
- package/guides/components/typography.md +76 -19
- package/guides/contributing/design-to-code.md +61 -31
- package/guides/foundations/naming.md +1 -1
- package/guides/foundations/tokens.md +7 -7
- package/guides/intro.md +17 -19
- package/guides/layout/app-shell.md +37 -0
- package/guides/layout/layout-rules.md +2 -2
- package/guides/migrations/app-shell.md +28 -0
- package/guides/migrations/explicit-headings.md +20 -0
- package/guides/migrations/header-actions.md +1 -1
- package/guides/migrations/header-menu.md +16 -0
- package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.ts +2 -10
- package/homepage/src/app/examples/calendar-workspace/source-code.generated.ts +1 -1
- package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.html +6 -4
- package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.ts +2 -20
- package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.html +5 -5
- package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.ts +2 -20
- package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.html +3 -1
- package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.ts +2 -20
- package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.html +7 -5
- package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.ts +2 -14
- package/homepage/src/app/examples/case-studies/cloudhoster/home-page.html +4 -4
- package/homepage/src/app/examples/case-studies/cloudhoster/home-page.ts +2 -12
- package/homepage/src/app/examples/case-studies/cloudhoster/source-code.generated.ts +10 -10
- package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.html +6 -6
- package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.ts +2 -18
- package/homepage/src/app/examples/case-studies/vpshoster/overview-page.html +4 -4
- package/homepage/src/app/examples/case-studies/vpshoster/overview-page.ts +2 -8
- package/homepage/src/app/examples/case-studies/vpshoster/servers-page.html +4 -1
- package/homepage/src/app/examples/case-studies/vpshoster/servers-page.ts +2 -12
- package/homepage/src/app/examples/case-studies/vpshoster/source-code.generated.ts +4 -4
- package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.html +4 -4
- package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.ts +2 -8
- package/homepage/src/app/examples/error-pages/error-pages-example-page.html +3 -1
- package/homepage/src/app/examples/error-pages/error-pages-example-page.ts +2 -7
- package/homepage/src/app/examples/error-pages/source-code.generated.ts +2 -2
- package/homepage/src/app/examples/mail-compose/mail-compose-page.ts +2 -4
- package/homepage/src/app/examples/mail-workspace/mail-workspace-page.ts +2 -10
- package/homepage/src/app/examples/mail-workspace/source-code.generated.ts +1 -1
- package/homepage/src/app/examples/notifications/notifications-page.html +3 -1
- package/homepage/src/app/examples/notifications/notifications-page.ts +2 -8
- package/homepage/src/app/examples/notifications/source-code.generated.ts +2 -2
- package/homepage/src/app/examples/pdf-reader/pdf-reader-page.html +3 -1
- package/homepage/src/app/examples/pdf-reader/pdf-reader-page.ts +2 -7
- package/homepage/src/app/examples/pdf-reader/source-code.generated.ts +2 -2
- package/homepage/src/app/examples/user-registration/source-code.generated.ts +3 -3
- package/homepage/src/app/examples/user-registration/user-registration-example-page.html +1 -1
- package/homepage/src/app/examples/user-registration/user-registration-example-page.ts +2 -2
- package/homepage/src/app/examples/user-registration/user-registration-form.ts +2 -13
- package/homepage/src/app/examples/user-registration/user-registration-page.html +1 -1
- package/homepage/src/app/examples/user-registration/user-registration-page.ts +2 -7
- package/package.json +2 -2
- package/styles.css +1 -1
- package/types/cloudfrogger-goodui.d.ts +202 -107
- package/angular/projects/goodui/src/lib/app-layout.ts +0 -84
- package/guides/components/topbar.md +0 -89
- 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 | `
|
|
16
|
-
|
|
|
17
|
-
|
|
|
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
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
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 | `
|
|
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
|
-
|
|
79
|
-
├─
|
|
78
|
+
AppShell
|
|
79
|
+
├─ Sidebar
|
|
80
80
|
│ ├─ brand area
|
|
81
81
|
│ └─ SidebarMenuContainer (repeatable)
|
|
82
82
|
│ ├─ heading
|
|
@@ -84,15 +84,15 @@ AppLayout
|
|
|
84
84
|
│ └─ SidebarSubmenuGroup (optional and recursive)
|
|
85
85
|
│ └─ SidebarSubmenuItem (repeatable)
|
|
86
86
|
└─ content area
|
|
87
|
-
├─
|
|
87
|
+
├─ Header
|
|
88
88
|
│ ├─ mobile drawer trigger
|
|
89
89
|
│ ├─ BrandIcon (optional; after the trigger on mobile)
|
|
90
|
-
│ ├─
|
|
91
|
-
│ │ └─
|
|
92
|
-
│ │ └─
|
|
93
|
-
│ │ ├─
|
|
94
|
-
│ │ └─
|
|
95
|
-
│ │ └─
|
|
90
|
+
│ ├─ HeaderMenu
|
|
91
|
+
│ │ └─ HeaderMenuItem (repeatable; optional dropdown)
|
|
92
|
+
│ │ └─ HeaderDropdownMenu
|
|
93
|
+
│ │ ├─ HeaderDropdownItem (link or expandable parent)
|
|
94
|
+
│ │ └─ HeaderSubmenu (optional and recursive)
|
|
95
|
+
│ │ └─ HeaderDropdownItem (repeatable)
|
|
96
96
|
│ └─ HeaderActions
|
|
97
97
|
│ ├─ Search
|
|
98
98
|
│ ├─ Notifications
|
|
@@ -116,37 +116,37 @@ AppLayout
|
|
|
116
116
|
└─ CardFooter (optional; text, Link, Button, or mixed actions)
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
`
|
|
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 `
|
|
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.
|
|
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
|
|
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-
|
|
138
|
-
| `goodui.sidebar
|
|
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.
|
|
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.
|
|
146
|
-
| `goodui.
|
|
147
|
-
| `goodui.
|
|
148
|
-
| `goodui.
|
|
149
|
-
| `goodui.
|
|
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
|
|
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-
|
|
249
|
-
When `good-main-view` contains a direct `good-section` child, its
|
|
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
|
|
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
|
-
`
|
|
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.
|
|
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
|
|
|
@@ -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
|
|
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
|
-
- `HeaderActions` accepts projected action components in application-defined order;
|
|
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.
|