@cloudfrogger/goodui 0.0.65 → 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.
- 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/guides/README.md
CHANGED
|
@@ -4,7 +4,7 @@ These Markdown guides document the Angular library and its Penpot mapping. The [
|
|
|
4
4
|
|
|
5
5
|
- [Get started](intro.md)
|
|
6
6
|
- [Design tokens](foundations/tokens.md) and [naming](foundations/naming.md)
|
|
7
|
-
- [App layout](layout/app-
|
|
7
|
+
- [App layout](layout/app-shell.md) and [layout rules](layout/layout-rules.md)
|
|
8
8
|
- [Components](components/)
|
|
9
9
|
- [Header actions](components/header-actions.md) and [migration](migrations/header-actions.md)
|
|
10
10
|
- [Typography](components/typography.md)
|
|
@@ -38,6 +38,6 @@ readonly groups: readonly GoodActionBarGroup[] = [
|
|
|
38
38
|
|
|
39
39
|
Each command accepts `id`, `label`, optional GoodUI `icon`, `variant`, `disabled`, and `priority`. `normal` is the default. `important` remains in the visible row; `overflow` always appears in More. Commands show a larger icon above a compact label. As width shrinks, lower-priority commands move into More while the labels of visible commands remain readable. If even important commands exceed the available width, their row scrolls horizontally while More stays available. The tools slot moves below the command row when the bar is narrow.
|
|
40
40
|
|
|
41
|
-
Use `goodMainViewToolbar` for a fixed strip above a height-filling child. The child owns its own scrolling. The slot is generic and also accepts a custom control or status strip. See [MainView](./main-view.md) and [Fill layout](../layout/app-
|
|
41
|
+
Use `goodMainViewToolbar` for a fixed strip above a height-filling child. The child owns its own scrolling. The slot is generic and also accepts a custom control or status strip. See [MainView](./main-view.md) and [Fill layout](../layout/app-shell.md).
|
|
42
42
|
|
|
43
43
|
Penpot mapping: `goodui.action-bar` is pending a live library component and ID. The Penpot MCP was disconnected during this implementation. No ID or variant has been invented; see `design/action-bar-contract.json`.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# AppHeader
|
|
2
|
+
|
|
3
|
+
Use `good-app-header` to compose the application's header. Declare `good-header-menu` and `good-header-actions` inside it, then place AppHeader directly inside `good-app-shell`. AppHeader owns header layout and the mobile sidebar trigger; the menu owns navigation and its mobile popup.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<good-app-header>
|
|
7
|
+
<good-header-menu mobileMode="popup">
|
|
8
|
+
<good-header-menu-item label="Home" route="/" />
|
|
9
|
+
<good-header-menu-item label="Projects" route="/projects" />
|
|
10
|
+
</good-header-menu>
|
|
11
|
+
<good-header-actions>
|
|
12
|
+
<good-header-search [items]="searchItems" />
|
|
13
|
+
<good-header-themetoggle />
|
|
14
|
+
<good-header-avatar [user]="currentUser" [actions]="accountActions" />
|
|
15
|
+
</good-header-actions>
|
|
16
|
+
</good-app-header>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Import `GoodAppHeaderComponent` and each projected component in the standalone consumer. Menus are explicit; AppHeader does not create one from an item array. HeaderMenu can receive its own `items` for dynamic navigation, or projected `good-header-menu-item` children for a small fixed menu. See [Header menu](./header-menu.md) for recursive dropdown data and keyboard behavior.
|
|
20
|
+
|
|
21
|
+
The header is 70 px tall on desktop and 60 px on mobile. Its optional desktop BrandIcon and mobile wordmark/symbol inherit shell branding unless the header supplies its own `brand`, logo, or mark inputs. `showBrandIcon` controls the desktop mark; `showMobileBrand` controls mobile branding independently of Sidebar. The mobile drawer trigger appears when the surrounding shell has a Sidebar. Standalone headers emit `menuToggle` so the application can handle their trigger.
|
|
22
|
+
|
|
23
|
+
Set `mobileMode="popup"` on HeaderMenu to expose its grid-icon popup on mobile. `hidden` explicitly hides that header menu on mobile; place essential navigation in Sidebar in that case. There is no automatic copy of header links into Sidebar.
|
|
24
|
+
|
|
25
|
+
Without an explicit HeaderActions child, AppHeader retains the default actions and can inherit shell defaults for user, notifications, search, theme toggle, and optional settings. A projected HeaderActions child defines its own content. See [Header actions](./header-actions.md).
|
|
26
|
+
|
|
27
|
+
Penpot `goodui.app-header` retains the seven former Header state IDs, linked menu/action instances, dimensions, and theme bindings. The family maps to `GoodAppHeaderComponent`; the source is the existing header module. BrandIcon is still an optional internal header composition component with its own published mapping.
|
|
@@ -4,9 +4,9 @@ Use `good-columns` for two to four pieces of parallel text content. It distribut
|
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
6
|
<good-columns [columns]="3">
|
|
7
|
-
<good-column><good-
|
|
8
|
-
<good-column><good-
|
|
9
|
-
<good-column><good-
|
|
7
|
+
<good-column><good-heading-3>Plan</good-heading-3><good-paragraph>Set the direction.</good-paragraph></good-column>
|
|
8
|
+
<good-column><good-heading-3>Build</good-heading-3><good-paragraph>Make the page.</good-paragraph></good-column>
|
|
9
|
+
<good-column><good-heading-3>Review</good-heading-3><good-paragraph>Check the result.</good-paragraph></good-column>
|
|
10
10
|
</good-columns>
|
|
11
11
|
```
|
|
12
12
|
|
|
@@ -3,22 +3,25 @@
|
|
|
3
3
|
`good-header-actions` is the topbar action container. It owns alignment and responsive gaps. Applications compose its children in any order without adding layout CSS.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
|
-
<good-app-
|
|
6
|
+
<good-app-shell>
|
|
7
|
+
<good-sidebar><good-sidebar-item label="Home" route="/" /></good-sidebar>
|
|
8
|
+
<good-app-header>
|
|
7
9
|
<good-header-actions>
|
|
8
10
|
<good-header-search [items]="searchItems" />
|
|
9
11
|
<good-header-notification />
|
|
10
12
|
<good-header-themetoggle />
|
|
11
13
|
<good-header-avatar [user]="currentUser" [actions]="accountActions" />
|
|
12
14
|
</good-header-actions>
|
|
15
|
+
</good-app-header>
|
|
13
16
|
<router-outlet />
|
|
14
|
-
</good-app-
|
|
17
|
+
</good-app-shell>
|
|
15
18
|
```
|
|
16
19
|
|
|
17
|
-
Import `GoodHeaderActionsComponent` and each child component in the standalone component that declares this template. The same composition works directly inside `good-
|
|
20
|
+
Import `GoodHeaderActionsComponent` and each child component in the standalone component that declares this template. The same composition works directly inside `good-app-header`. Remove or reorder child tags to choose the available actions and their order. Settings is available as `good-settings`. Projected content replaces all generated actions; configure each child directly. Shell action inputs provide defaults inherited by AppHeader; explicit HeaderActions children configure their own actions.
|
|
18
21
|
|
|
19
|
-
With no projected content, the existing default composition remains Search, Notifications, Theme toggle, and Avatar menu. Its inputs remain `user`, `notifications`, `searchItems`, `settingsActions`, `avatarActions`, `showSearch`, `showNotifications`, `showThemeToggle`, `showSettings`, and `showAvatar`. All visibility inputs default to true except `showSettings`, which defaults to false.
|
|
22
|
+
With no projected content, the existing default composition remains Search, Notifications, Theme toggle, and Avatar menu. Its inputs remain `user`, `notifications`, `searchItems`, `settingsActions`, `avatarActions`, `showSearch`, `showNotifications`, `showThemeToggle`, `showSettings`, and `showAvatar`. All visibility inputs default to true except `showSettings`, which defaults to false. AppShell and AppHeader provide inherited defaults for `showThemeToggle` and `showSettings`.
|
|
20
23
|
|
|
21
|
-
The homepage chapter `/components/header-actions` contains dedicated sections for each action. Component references: [Search](header-search.md), [Notification](header-notification.md), [Theme toggle](header-themetoggle.md), [Avatar](header-avatar.md), and [Settings](settings.md). Each owns its
|
|
24
|
+
The homepage chapter `/components/header-actions` contains dedicated sections for each action. Component references: [Search](header-search.md), [Notification](header-notification.md), [Theme toggle](header-themetoggle.md), [Avatar](header-avatar.md), and [Settings](settings.md). Each owns its hit area and interaction. Search optionally uses a 320 × 40 px trigger with `[hotkey]="true"`; at 1200 px viewport width and below it returns to its 36 × 36 px icon. HeaderActions owns spacing; actions have no external margins. Use Angular conditional blocks inside the container to control visibility. An explicitly supplied conditional block owns the content even when no actions are currently visible.
|
|
22
25
|
|
|
23
26
|
Penpot `goodui.main-menu.default` retains its stable ID and linked Search, Notifications, ThemeToggle, and AvatarMenu instances. This specimen represents the default composition, rather than a mandatory action list.
|
|
24
27
|
|
|
@@ -27,3 +30,5 @@ Penpot `goodui.main-menu.default` retains its stable ID and linked Search, Notif
|
|
|
27
30
|
The design family names remain `goodui.main-menu`, `goodui.search`, `goodui.notifications`, `goodui.avatar-menu`, and `goodui.theme-toggle` with their existing library IDs and states. `angularSelectorOverrides` in `design/component-map.json` explicitly maps them to the public Header selectors. No component ID or visual geometry changes with this rename.
|
|
28
31
|
|
|
29
32
|
For the former selector and class names, see [migration](../migrations/header-actions.md).
|
|
33
|
+
|
|
34
|
+
The optional `goodui.main-menu.search-hotkey` Penpot composition demonstrates Search (`hotkey=true`), Notification, and Avatar as linked instances. Enable it on a projected `good-header-search` child; the generated default search keeps `hotkey=false`. See [Header search](header-search.md).
|
|
@@ -27,7 +27,7 @@ accountActions: readonly GoodMenuAction[] = [
|
|
|
27
27
|
<good-header-avatar [user]="currentUser" [actions]="accountActions" />
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
Pass the same values as `[user]` and `[avatarActions]` to `good-app-
|
|
30
|
+
Pass the same values as `[user]` and `[avatarActions]` to `good-app-shell` when using the complete shell. The badge, icons, row details, submenu children, and sign-out action are optional. Route entries use Angular Router links; callback entries use buttons. Give submenu parents children instead of a route. `separatorBefore` adds a divider before a row. Sign-out is provided by the host application; the library does not assume an authentication system.
|
|
31
31
|
|
|
32
32
|
The menu itself owns identity and item layout, so consumers do not add spacing around rows. `GoodAvatarMenuItemComponent` is exported for composing account rows elsewhere. On desktop its submenu opens to the left of the avatar panel; on narrow screens it expands inside the panel.
|
|
33
33
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Header menu
|
|
2
|
+
|
|
3
|
+
Use `good-header-menu` for responsive header navigation, including every nested submenu level. Place it inside `good-app-header` beside `good-header-actions`. The menu owns spacing, open state, panel placement, and keyboard behavior; consumers supply navigation data rather than positioning panels.
|
|
4
|
+
|
|
5
|
+
Import `GoodHeaderMenuComponent` from `@cloudfrogger/goodui` in your standalone component:
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<good-app-header>
|
|
9
|
+
<good-header-menu [items]="navigation" mobileMode="popup" />
|
|
10
|
+
<good-header-actions>
|
|
11
|
+
<good-header-search [items]="searchItems" />
|
|
12
|
+
<good-header-themetoggle />
|
|
13
|
+
</good-header-actions>
|
|
14
|
+
</good-app-header>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Declare `good-header-menu` inside `good-app-header`, then place AppHeader inside AppShell. Set `mobileMode="popup"` on the menu for a mobile icon and popup. `hidden` explicitly hides header navigation on mobile; put essential links in Sidebar in that case. The `GoodTopbarItem` tree remains available through the menu's own `items` input.
|
|
18
|
+
|
|
19
|
+
## Menu family
|
|
20
|
+
|
|
21
|
+
| Selector | Import | Role |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| `good-header-menu` | `GoodHeaderMenuComponent` | Navigation container; `items`, `activeRoute`, `mobileMode` inputs |
|
|
24
|
+
| `good-header-menu-item` | `GoodHeaderMenuItemComponent` | Root link or parent trigger; accepts `item`, or `label`, `route`, and `active` |
|
|
25
|
+
| `good-header-dropdown-menu` | `GoodHeaderDropdownMenuComponent` | Panel of rows; `items`, `label`, `activeRoute`, and `navigate` output |
|
|
26
|
+
| `good-header-dropdown-item` | `GoodHeaderDropdownItemComponent` | Link or parent row managed by the panel |
|
|
27
|
+
| `good-header-submenu` | `GoodHeaderSubmenuComponent` | Nested level belonging to Header menu; composed automatically from `children` |
|
|
28
|
+
|
|
29
|
+
Root items can also be projected directly inside Header menu. Import `GoodHeaderMenuItemComponent` when using this composition:
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<good-header-menu>
|
|
33
|
+
<good-header-menu-item label="Home" route="/" [active]="true" />
|
|
34
|
+
<good-header-menu-item label="Projects" route="/projects" />
|
|
35
|
+
</good-header-menu>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Header submenu
|
|
39
|
+
|
|
40
|
+
Add `children` to create another level:
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import type { GoodTopbarItem } from '@cloudfrogger/goodui';
|
|
44
|
+
|
|
45
|
+
const navigation: readonly GoodTopbarItem[] = [
|
|
46
|
+
{ id: 'help', label: 'Help', children: [
|
|
47
|
+
{ id: 'guide', label: 'Getting Started', route: '/guide' },
|
|
48
|
+
{ id: 'support', label: 'Support', children: [
|
|
49
|
+
{ id: 'questions', label: 'Questions', route: '/support/questions' },
|
|
50
|
+
{ id: 'contact', label: 'Contact', route: '/support/contact' },
|
|
51
|
+
] },
|
|
52
|
+
] },
|
|
53
|
+
];
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Header menu renders `good-header-submenu` for these nested parents. It remains an exported Angular building block of this family, not a separate documentation chapter or an independently positioned page control. It accepts `items`, `activeRoute`, an accessible `label`, and emits `navigate` so its owning menu can close.
|
|
57
|
+
|
|
58
|
+
Parent rows use buttons with `aria-expanded` and `aria-controls`; leaves use links with `aria-current="page"` when active. Desktop supports hover, click, and keyboard focus. Escape closes the deepest open level and restores focus to its trigger; outside clicks close the chain. Desktop submenus flip at the viewport edge; mobile levels stack inside the drawer or popup. The popup also closes on navigation and desktop resize.
|
|
59
|
+
|
|
60
|
+
## Penpot mapping
|
|
61
|
+
|
|
62
|
+
The five `goodui.header-menu`, `goodui.header-menu-item`, `goodui.header-dropdown-menu`, `goodui.header-dropdown-item`, and `goodui.header-submenu` families retain all eleven original library IDs. Default/open, link/parent/open, nested-open, and mobile icon/popup states retain their behavior and geometry. The registry is `design/component-map.json`; the stable IDs are listed in [Design to Angular](../contributing/design-to-code.md).
|
|
63
|
+
|
|
64
|
+
See the combined [Header menu homepage chapter](../../homepage/src/app/components/header-menu.html) and [migration guide](../migrations/header-menu.md).
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
</good-header-actions>
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
The optional `items` input accepts `readonly GoodNotification[]` and defaults to an empty array. The bell combines supplied items with `GoodNotificationCenter` inbox entries and shows their unread count. Public `open()` and `close()` methods control the native dialog. Escape and Close return focus to the bell.
|
|
11
|
+
The optional `items` input accepts `readonly GoodNotification[]` and defaults to an empty array. The bell combines supplied items with `GoodNotificationCenter` inbox entries and shows their unread count. Public `open()` and `close()` methods control the native dialog. Escape and Close return focus to the bell. AppShell already includes the notification host. Read [Notifications](notifications.md) for service setup, delivery, persistence, progress, actions, and timestamps. The homepage documents this action in the Header notification section of `/components/header-actions`.
|
|
12
12
|
|
|
13
13
|
Penpot `goodui.notifications.default`, `.open`, and `.unread` retain their stable IDs and map to this selector.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Header search
|
|
2
2
|
|
|
3
|
-
`good-header-search` opens a modal navigation search from a round magnifier action. It filters application-supplied link labels and descriptions locally, with automatic input focus, keyboard navigation, and an empty state. The homepage documents it at `/components/header-actions` in its Header search section with a working preview and copyable examples.
|
|
3
|
+
`good-header-search` opens a modal navigation search from a round magnifier action or an optional wide trigger with a keyboard shortcut. It filters application-supplied link labels and descriptions locally, with automatic input focus, keyboard navigation, and an empty state. The homepage documents it at `/components/header-actions` in its Header search section with a working preview and copyable examples.
|
|
4
4
|
|
|
5
5
|
## Standalone usage
|
|
6
6
|
|
|
@@ -19,7 +19,12 @@ readonly items: readonly GoodSearchItem[] = [
|
|
|
19
19
|
|
|
20
20
|
## API
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
| Input | Type | Default | Meaning |
|
|
23
|
+
| --- | --- | --- | --- |
|
|
24
|
+
| `items` | `readonly GoodSearchItem[]` | `[]` | Locally searched navigation records |
|
|
25
|
+
| `hotkey` | `boolean` | `false` | Wide search trigger and Ctrl+K / Command+K shortcut |
|
|
26
|
+
|
|
27
|
+
The following fields describe each `GoodSearchItem`:
|
|
23
28
|
|
|
24
29
|
| Field | Required | Meaning |
|
|
25
30
|
| --- | --- | --- |
|
|
@@ -32,16 +37,32 @@ readonly items: readonly GoodSearchItem[] = [
|
|
|
32
37
|
|
|
33
38
|
## Shell integration
|
|
34
39
|
|
|
35
|
-
`good-app-
|
|
40
|
+
`good-app-shell`, `good-app-header`, and `good-header-actions` accept the navigation records through `searchItems`.
|
|
36
41
|
|
|
37
42
|
```html
|
|
38
|
-
<good-app-
|
|
43
|
+
<good-app-shell [searchItems]="items">
|
|
39
44
|
<router-outlet />
|
|
40
|
-
</good-app-
|
|
45
|
+
</good-app-shell>
|
|
41
46
|
```
|
|
42
47
|
|
|
43
48
|
HeaderActions shows the action by default. A standalone HeaderActions can set `[showSearch]="false"` to hide it.
|
|
44
49
|
|
|
50
|
+
## Visible keyboard shortcut
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<good-header-actions>
|
|
54
|
+
<good-header-search [items]="items" [hotkey]="true" />
|
|
55
|
+
<good-header-notification />
|
|
56
|
+
<good-header-avatar [user]="currentUser" />
|
|
57
|
+
</good-header-actions>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The opt-in trigger shows a magnifier, “Search…,” and a keycap: **Ctrl K** on Windows/Linux or **⌘ K** on Apple platforms. It is a button that opens the same dialog, not an editable field. At viewport widths of 1200 px and below it becomes the compact magnifier; the shortcut remains active. Both Control+K and Meta+K are supported.
|
|
61
|
+
|
|
62
|
+
Enable `hotkey` on one search per application, normally in the shell. If multiple visible instances opt in, the first registered instance handles the unclaimed event. Hidden or inert instances, a shortcut claimed by another handler, and an already-open modal are skipped. Repeated keydown, composition, and additional modifiers are ignored. Leaving `hotkey` false retains the icon-only action without a global shortcut. Focus returns to the trigger after dismissal, including when opened from the keyboard.
|
|
63
|
+
|
|
64
|
+
Penpot publishes the `hotkey=false/true` variants in `goodui.search` on `01 Components`. The existing compact component ID and shared dialog ID are preserved. `goodui.main-menu.search-hotkey` composes linked Search, Notification, and Avatar instances. IDs and responsive semantics are recorded in `design/header-search-variants.json`.
|
|
65
|
+
|
|
45
66
|
## Keyboard and navigation
|
|
46
67
|
|
|
47
68
|
The native modal dialog contains focus. Tab and Shift+Tab move between the input, results, and close action. Enter activates a focused result. Escape or Close dismisses the dialog and restores focus to the trigger. Selecting a result closes the dialog and follows its `route` through Angular Router.
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
`goodui.theme-toggle` maps to `good-header-themetoggle`. It is an optional 36 × 36 px topbar action. One click cycles **Light → System → Dark → Light** without opening a menu. The icon shows the current preference: sun, monitor, or moon. The accessible button label names both the current and next mode; keyboard users activate it with Enter or Space.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
|
-
<good-app-
|
|
6
|
+
<good-app-shell [showThemeToggle]="true">
|
|
7
7
|
<router-outlet />
|
|
8
|
-
</good-app-
|
|
8
|
+
</good-app-shell>
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Set `[showThemeToggle]="false"` to remove it. `good-header-actions` and `good-
|
|
11
|
+
Set `[showThemeToggle]="false"` to remove it. `good-header-actions` and `good-app-header` accept the same input. A custom composition can place `<good-header-themetoggle />` directly. The main menu owns spacing, while the control owns its hit area and hover style.
|
|
12
12
|
|
|
13
13
|
`GoodThemeService.preference()` is `light`, `system`, or `dark`; `theme()` remains the resolved `light` or `dark` value used for colors and theme-aware artwork. Explicit Light and Dark choices are stored in the `goodui-theme` cookie for one year. System mode removes the cookie and follows `prefers-color-scheme`, including changes while the page is open. Apps can select a mode with `theme.setTheme('system')` or advance it with `theme.cycle()`. The legacy `theme.toggle()` remains a direct light/dark switch for callers that need one. Older `localStorage` values are ignored.
|
|
14
14
|
|
|
@@ -10,4 +10,4 @@ The accepted names are defined by the exported `GoodIconName` type in `angular/p
|
|
|
10
10
|
|
|
11
11
|
The SVG inherits `currentColor`. The shared `.good-icon` class supplies its default size; the containing GoodUI control owns hit area and spacing. The icon SVG is decorative with `aria-hidden="true"` and `focusable="false"`. Give an icon-only button its accessible label through the button API, and place meaningful visible text beside a standalone icon when it conveys information.
|
|
12
12
|
|
|
13
|
-
For controls that accept Lucide icon data, follow that control's guide and input type. Their icon inputs can differ from `good-icon`'s named set. Branding artwork uses `good-brand-icon` and the shell's logo inputs, documented in the
|
|
13
|
+
For controls that accept Lucide icon data, follow that control's guide and input type. Their icon inputs can differ from `good-icon`'s named set. Branding artwork uses `good-brand-icon` and the shell's logo inputs, documented in the Header and AppShell guides.
|
|
@@ -1,21 +1,43 @@
|
|
|
1
1
|
# MainView
|
|
2
2
|
|
|
3
|
-
`
|
|
3
|
+
`good-main-view` provides the page container below the topbar. It owns padding, scrolling, the optional subnav, and the layout of projected heading components, actions, toolbar, and page content.
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
|
-
<good-main-view
|
|
6
|
+
<good-main-view>
|
|
7
|
+
<good-heading-1>Dashboard</good-heading-1>
|
|
8
|
+
<good-summary>Overview of your workspace.</good-summary>
|
|
7
9
|
<app-dashboard-content />
|
|
8
10
|
</good-main-view>
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Import `GoodMainViewComponent`, `GoodHeading1Component`, and `GoodSummaryComponent` in the standalone component declaring this template. Headings and summaries are content components; MainView has no `title`, `description`, `eyebrow`, or `eyebrowAppearance` input. Use bindings inside projected text for dynamic page titles:
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
```html
|
|
16
|
+
<good-main-view>
|
|
17
|
+
<good-eyebrow appearance="mono">Workspace</good-eyebrow>
|
|
18
|
+
<good-heading-1>{{ projectName() }}</good-heading-1>
|
|
19
|
+
<good-summary>{{ projectSummary() }}</good-summary>
|
|
20
|
+
<good-section spacing="content">
|
|
21
|
+
<good-heading-2>Recent activity</good-heading-2>
|
|
22
|
+
<!-- page content -->
|
|
23
|
+
</good-section>
|
|
24
|
+
</good-main-view>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
For conditional heading content, use a single HeadingGroup inside the conditional block, or separate conditionals for Heading and Summary so Angular can project each root into its slot.
|
|
14
28
|
|
|
15
|
-
|
|
29
|
+
Only direct Heading 1, Summary, Eyebrow, and HeadingGroup children enter the page header. Other direct heading styles remain in the page content. Headings nested in Sections, forms, or Cards remain in the content. MainView preserves HeadingGroup's inner spacing and renders no empty header when none is supplied. An optional direct `good-heading-group` can supply the complete heading composition instead. Project page actions with `[good-main-view-actions]` as before.
|
|
16
30
|
|
|
17
|
-
|
|
31
|
+
MainView accepts only `layout`, `subnavItems`, `subnavActions`, and `subnavLabel`. Pass the subnav records and actions through these inputs. The content area grows with its children and does not impose a card or column structure. Pages containing direct Sections share their centered 1024 px width with the header; free pages retain full content width.
|
|
18
32
|
|
|
19
|
-
For a
|
|
33
|
+
For a fixed strip above a height-filling workspace, set `layout="fill"` and mark the strip with `goodMainViewToolbar`. MainView keeps the strip outside the flexible workspace; the child below fills the remaining height and owns its scrolling. [ActionBar](action-bar.md) is a ready-made strip.
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<good-main-view layout="fill">
|
|
37
|
+
<good-heading-1>Schedule</good-heading-1>
|
|
38
|
+
<good-summary>Upcoming work.</good-summary>
|
|
39
|
+
<good-calendar [fillHeight]="true" />
|
|
40
|
+
</good-main-view>
|
|
41
|
+
```
|
|
20
42
|
|
|
21
|
-
|
|
43
|
+
Fill layout keeps the projected header's 30 px desktop or 24 px mobile side inset while its workspace reaches the edges. Without heading content, the workspace can touch the topbar. Penpot `goodui.main-view.fill-heading` and `.fill-heading-mobile` preserve this geometry; the linked Heading and Summary are projected content, not MainView text inputs. See [Typography](typography.md) and [the migration guide](../migrations/explicit-headings.md).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Notifications
|
|
2
2
|
|
|
3
|
-
`good-header-notification` is the topbar bell and side panel. `GoodNotificationCenter` is the injectable notification service; it sends [Alerts](alert.md) to a toast, a top-entry stack, or only the panel. Register GoodUI once in the root `app.config.ts` with `provideGoodUI()`. `good-app-
|
|
3
|
+
`good-header-notification` is the topbar bell and side panel. `GoodNotificationCenter` is the injectable notification service; it sends [Alerts](alert.md) to a toast, a top-entry stack, or only the panel. Register GoodUI once in the root `app.config.ts` with `provideGoodUI()`. `good-app-shell` includes `good-notification-host` automatically. An application without AppShell can place one host near its root; use exactly one host per application.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { ApplicationConfig, Injectable, inject } from '@angular/core';
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
The menu stays inside the viewport near its right edge, is keyboard accessible, and returns focus to its trigger when closed.
|
|
10
10
|
|
|
11
|
-
Settings is optional in the standard topbar: set `[showSettings]="true"` on `good-app-
|
|
11
|
+
Settings is optional in the standard topbar: set `[showSettings]="true"` on `good-app-shell`, `good-app-header`, or `good-header-actions` to include it.
|
|
@@ -1,47 +1,29 @@
|
|
|
1
1
|
# Sidebar
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
`SidebarContainer` owns the brand area, scrolling, and desktop/drawer display. A `SidebarMenuContainer` contains an optional heading and repeated `SidebarItem` children. Each item can show an icon, label, badge, or expander. Penpot includes `default`, `active`, and `expanded` states. Expanded groups contain another expandable row, guide lines, and repeated `SidebarSubmenuItem` instances; groups have `collapsed`/`expanded` states and child links have `default`/`active` states.
|
|
6
|
-
|
|
7
|
-
For a product logo, set `brandLogoSrc` and optionally `brandLogoDarkSrc` on `good-app-layout` or directly on `good-sidebar-container`. `brand` provides the image's accessible name. Without a logo URL, the generic mark and text remain available.
|
|
8
|
-
|
|
9
|
-
The homepage's Account / Get Started navigation shows two expansion levels. GoodUI uses 36 px child rows, a 4 px gap, indentation, and a dot on the active link. The active child uses `color.selected` for its surface, `color.accent` for text and dot, and `radius.item` for its corners. `SidebarSubmenuGroup` owns the guide lines and indentation; child links need no external margins.
|
|
10
|
-
|
|
11
|
-
### Component composition
|
|
3
|
+
Use `good-sidebar` for declarative application navigation. Place `good-sidebar-item` children inside it; nest items for expandable groups, and use `good-sidebar-menu-container` for optional section headings. Sidebar owns branding, spacing, scrolling, indentation, and guide lines.
|
|
12
4
|
|
|
13
5
|
```html
|
|
14
|
-
<good-sidebar
|
|
15
|
-
<good-sidebar-menu-container heading="
|
|
16
|
-
<good-sidebar-item label="
|
|
17
|
-
<good-sidebar-item label="
|
|
18
|
-
<good-sidebar-
|
|
19
|
-
|
|
20
|
-
<good-sidebar-submenu-item label="User Profile" route="/account/home/user-profile" />
|
|
21
|
-
</good-sidebar-submenu-group>
|
|
6
|
+
<good-sidebar brand="Example App">
|
|
7
|
+
<good-sidebar-menu-container heading="WORKSPACE">
|
|
8
|
+
<good-sidebar-item label="Overview" icon="dashboard" route="/overview" activeMatch="exact" />
|
|
9
|
+
<good-sidebar-item label="Settings" icon="settings">
|
|
10
|
+
<good-sidebar-item label="Profile" route="/settings/profile" />
|
|
11
|
+
<good-sidebar-item label="Members" route="/settings/members" />
|
|
22
12
|
</good-sidebar-item>
|
|
23
13
|
</good-sidebar-menu-container>
|
|
24
|
-
</good-sidebar
|
|
14
|
+
</good-sidebar>
|
|
25
15
|
```
|
|
26
16
|
|
|
27
|
-
|
|
17
|
+
Import `GoodSidebarComponent`, `GoodSidebarItemComponent`, and optional `GoodSidebarMenuContainerComponent`. Sidebar accepts `brand`, `brandLogoSrc`, `brandLogoDarkSrc`, and `label` (the navigation landmark's accessible name, default `Primary navigation`). Brand inputs inherit AppShell defaults unless explicitly supplied. A standalone Sidebar uses the generic brand fallback.
|
|
28
18
|
|
|
29
|
-
|
|
19
|
+
A SidebarItem accepts `label`, `icon`, `route`, `badge`, `active`, `activeMatch`, and `expanded`; its optional `item` record remains useful for dynamic navigation. Route state follows Angular Router automatically. Put routes on leaves: the matching leaf exposes `aria-current="page"`, and its ancestors open when the route loads. Use `activeMatch="exact"` when an overview route prefixes other pages. An explicit `activeRoute` is available for isolated previews.
|
|
30
20
|
|
|
31
|
-
|
|
32
|
-
import { type GoodSidebarSection } from '@cloudfrogger/goodui';
|
|
21
|
+
Parents are buttons with `aria-expanded` and `aria-controls`. Enter and Space toggle a group; Tab follows visible links and skips collapsed children. Each menu section has an independent accordion. Navigation resets manually selected accordion branches so the current route's ancestors can open.
|
|
33
22
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{ id: 'text-inputs', label: 'Text and file', route: '/components/inputs' },
|
|
38
|
-
{ id: 'number-inputs', label: 'Number inputs', route: '/components/number-inputs' },
|
|
39
|
-
{ id: 'date-inputs', label: 'Date inputs', route: '/components/date-inputs' },
|
|
40
|
-
] },
|
|
41
|
-
] },
|
|
42
|
-
];
|
|
43
|
-
```
|
|
23
|
+
In `good-app-shell`, declare Sidebar once as a direct child. The same component and projected content appear in the desktop column or the mobile modal drawer; the shell never duplicates the menu. AppHeader's sidebar trigger opens it; Escape, backdrop clicks, Close, and navigation dismiss it and restore focus.
|
|
24
|
+
|
|
25
|
+
The existing `good-sidebar-submenu-group` and `good-sidebar-submenu-item` parts remain available for explicit level composition. SidebarItem recognizes those projected children as well as nested SidebarItems. Data-driven MenuContainer `items` and SidebarItem `item.children` are conveniences on those components, not configuration on AppShell.
|
|
44
26
|
|
|
45
|
-
|
|
27
|
+
Penpot `goodui.sidebar` retains all former SidebarContainer library IDs. Linked MenuContainer, SidebarItem, SubmenuGroup, and SubmenuItem specimens remain intact. IDs and selectors are recorded in `design/component-map.json`. The **Layout → Sidebar** homepage chapter contains a working declarative example and complete shell markup.
|
|
46
28
|
|
|
47
|
-
|
|
29
|
+
The shared region, responsive, and state contract is `design/app-shell-contract.json`.
|
|
@@ -4,8 +4,8 @@ GoodUI provides nested navigation in the sidebar, topbar, avatar menu, and page
|
|
|
4
4
|
|
|
5
5
|
| Area | Public component or input | Penpot family | Layout behavior |
|
|
6
6
|
| --- | --- | --- | --- |
|
|
7
|
-
| Sidebar | `good-sidebar-item` and `good-sidebar-submenu-group`, or `
|
|
8
|
-
|
|
|
7
|
+
| Sidebar | `good-sidebar-item` and `good-sidebar-submenu-group`, or `SidebarItem children` | `goodui.sidebar-submenu-group` and `goodui.sidebar-submenu-item` | Indented rows, guide lines, and scrolling in the drawer |
|
|
8
|
+
| Header | `HeaderMenu items[].children` | `goodui.header-dropdown-menu`, `goodui.header-dropdown-item`, and `goodui.header-submenu` | Floating desktop panels that flip at the viewport edge; stacked levels in the mobile drawer or topbar popup |
|
|
9
9
|
| Avatar menu | `avatarActions[].children` | `goodui.avatar-submenu` inside `goodui.avatar-menu` | Panel opens toward available space and nests inside the mobile menu |
|
|
10
10
|
| Page Subnav | `subnavItems[].children` | `goodui.subnav-dropdown` inside `goodui.subnav` | Menu stays visible outside the horizontally scrolling item track |
|
|
11
11
|
|
|
@@ -25,6 +25,6 @@ const supportMenu: GoodTopbarItem = {
|
|
|
25
25
|
};
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
Parents use buttons with `aria-expanded` and `aria-controls`; leaves use links and expose `aria-current="page"` when active. Escape closes an open level and restores focus to its trigger. The sidebar opens active ancestors from the current route. The topbar and avatar menus also close on outside click; the Subnav closes on outside click, scroll, resize, or navigation. See the [
|
|
28
|
+
Parents use buttons with `aria-expanded` and `aria-controls`; leaves use links and expose `aria-current="page"` when active. Escape closes an open level and restores focus to its trigger. The sidebar opens active ancestors from the current route. The topbar and avatar menus also close on outside click; the Subnav closes on outside click, scroll, resize, or navigation. See the [Header](./app-header.md), [Sidebar](./sidebar.md), [Avatar menu](./header-avatar.md), and [Subnav](./subnav.md) guides for the full APIs and behavior.
|
|
29
29
|
|
|
30
|
-
`good-
|
|
30
|
+
`good-header-submenu` belongs to the Header menu family and is composed automatically from recursive `children`. Its inputs, output, and nested behavior are documented in the [Header menu guide](./header-menu.md#header-submenu) and the combined homepage chapter. It has no separate sidebar entry or standalone documentation page.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
`good-subnav` navigates between sections of one area, such as account pages. It is a 60 px strip on desktop and a 44 px strip on mobile. `good-main-view` can place it above the heading without extra layout CSS.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
|
-
import { GoodMainViewComponent, type GoodSubnavItem } from '@cloudfrogger/goodui';
|
|
6
|
+
import { GoodMainViewComponent, type GoodSubnavItem, GoodHeading1Component } from '@cloudfrogger/goodui';
|
|
7
7
|
|
|
8
8
|
readonly accountSections: readonly GoodSubnavItem[] = [
|
|
9
9
|
{ id: 'home', label: 'Account Home', route: '/account/home', children: [
|
|
@@ -18,7 +18,8 @@ readonly accountSections: readonly GoodSubnavItem[] = [
|
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
|
-
<good-main-view
|
|
21
|
+
<good-main-view [subnavItems]="accountSections" subnavLabel="Account sections">
|
|
22
|
+
<good-heading-1>Billing</good-heading-1>
|
|
22
23
|
<app-billing-content />
|
|
23
24
|
</good-main-view>
|
|
24
25
|
```
|
|
@@ -30,7 +31,7 @@ The strip never wraps. On narrow screens, users can swipe or scroll the item row
|
|
|
30
31
|
Place optional controls at the right edge without page-level layout CSS:
|
|
31
32
|
|
|
32
33
|
```ts
|
|
33
|
-
import { GoodMainViewComponent, LucideCircleQuestionMark, LucideEllipsis, type GoodSubnavAction } from '@cloudfrogger/goodui';
|
|
34
|
+
import { GoodMainViewComponent, LucideCircleQuestionMark, LucideEllipsis, type GoodSubnavAction, GoodHeading1Component } from '@cloudfrogger/goodui';
|
|
34
35
|
|
|
35
36
|
readonly subnavActions: readonly GoodSubnavAction[] = [
|
|
36
37
|
{ id: 'help', label: 'Help', icon: LucideCircleQuestionMark, variant: 'outline', size: 'small', route: '/help' },
|