@cloudfrogger/goodui 0.0.63 → 0.0.65

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 (43) hide show
  1. package/ai/catalog/components/good-app-layout.json +2 -2
  2. package/ai/catalog/components/good-avatar-menu-item.json +2 -2
  3. package/ai/catalog/components/{good-main-menu.json → good-header-actions.json} +9 -9
  4. package/ai/catalog/components/{good-avatar-menu.json → good-header-avatar.json} +5 -5
  5. package/ai/catalog/components/{good-notifications.json → good-header-notification.json} +5 -5
  6. package/ai/catalog/components/{good-search.json → good-header-search.json} +5 -5
  7. package/ai/catalog/components/{good-theme-toggle.json → good-header-themetoggle.json} +5 -5
  8. package/ai/catalog/components/good-notification-host.json +1 -1
  9. package/ai/catalog/components/good-settings.json +1 -1
  10. package/ai/catalog/components/good-topbar.json +2 -2
  11. package/ai/catalog/index.json +65 -65
  12. package/ai/guides/component-discovery.md +1 -1
  13. package/ai/guides/layout.md +1 -1
  14. package/ai/manifest.json +2 -2
  15. package/ai/skill/goodui/SKILL.md +1 -1
  16. package/angular/projects/goodui/package.json +1 -1
  17. package/angular/projects/goodui/src/lib/actions.ts +20 -20
  18. package/angular/projects/goodui/src/lib/app-layout.ts +4 -4
  19. package/angular/projects/goodui/src/lib/topbar.ts +4 -5
  20. package/angular/projects/goodui/src/styles.css +4 -4
  21. package/design/component-map.json +21 -14
  22. package/design.md +5 -5
  23. package/fesm2022/cloudfrogger-goodui.mjs +55 -56
  24. package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
  25. package/guides/README.md +1 -0
  26. package/guides/components/header-actions.md +29 -0
  27. package/guides/components/{avatar-menu.md → header-avatar.md} +4 -4
  28. package/guides/components/header-notification.md +13 -0
  29. package/guides/components/{search.md → header-search.md} +6 -6
  30. package/guides/components/{theme-toggle.md → header-themetoggle.md} +4 -4
  31. package/guides/components/notifications.md +2 -2
  32. package/guides/components/settings.md +2 -2
  33. package/guides/components/submenus.md +1 -1
  34. package/guides/components/topbar.md +8 -8
  35. package/guides/contributing/design-to-code.md +2 -2
  36. package/guides/foundations/tokens.md +4 -4
  37. package/guides/layout/app-layout.md +9 -9
  38. package/guides/layout/layout-rules.md +1 -1
  39. package/guides/migrations/header-actions.md +17 -0
  40. package/package.json +2 -2
  41. package/styles.css +1 -1
  42. package/types/cloudfrogger-goodui.d.ts +145 -146
  43. package/guides/components/main-menu.md +0 -23
package/guides/README.md CHANGED
@@ -6,6 +6,7 @@ These Markdown guides document the Angular library and its Penpot mapping. The [
6
6
  - [Design tokens](foundations/tokens.md) and [naming](foundations/naming.md)
7
7
  - [App layout](layout/app-layout.md) and [layout rules](layout/layout-rules.md)
8
8
  - [Components](components/)
9
+ - [Header actions](components/header-actions.md) and [migration](migrations/header-actions.md)
9
10
  - [Typography](components/typography.md)
10
11
  - [PIN input](components/pin-input.md)
11
12
  - [Alerts](components/alert.md) and [Notifications](components/notifications.md)
@@ -0,0 +1,29 @@
1
+ # Header actions
2
+
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
+
5
+ ```html
6
+ <good-app-layout [sidebarSections]="navigation">
7
+ <good-header-actions>
8
+ <good-header-search [items]="searchItems" />
9
+ <good-header-notification />
10
+ <good-header-themetoggle />
11
+ <good-header-avatar [user]="currentUser" [actions]="accountActions" />
12
+ </good-header-actions>
13
+ <router-outlet />
14
+ </good-app-layout>
15
+ ```
16
+
17
+ Import `GoodHeaderActionsComponent` and each child component in the standalone component that declares this template. The same composition works directly inside `good-topbar`. 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 inputs configure only the generated default menu.
18
+
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. AppLayout and Topbar forward `showThemeToggle` and `showSettings`.
20
+
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 36 × 36 px hit area and interaction. 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
+
23
+ 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
+
25
+ ## Stable Penpot mapping
26
+
27
+ 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
+
29
+ For the former selector and class names, see [migration](../migrations/header-actions.md).
@@ -1,12 +1,12 @@
1
- # Avatar menu
1
+ # Header avatar
2
2
 
3
- `good-avatar-menu` is the account control in the topbar. The round trigger opens an approximately 250 × 384 px panel with an identity header, profile links, expandable account and language rows, a Dark Mode switch, and an optional sign-out action. The 40 px rows and their spacing belong to the component. It uses the same semantic colors in light and dark themes.
3
+ `good-header-avatar` is the account control in the topbar. The round trigger opens an approximately 250 × 384 px panel with an identity header, profile links, expandable account and language rows, a Dark Mode switch, and an optional sign-out action. The 40 px rows and their spacing belong to the component. It uses the same semantic colors in light and dark themes.
4
4
 
5
5
  ```ts
6
6
  import { GoodMenuAction, GoodUser } from '@cloudfrogger/goodui';
7
7
 
8
8
  currentUser: GoodUser = {
9
- name: 'Alex Morgan', email: 'alex@example.com', initials: 'AM', badge: 'Pro',
9
+ name: 'Example User', email: 'user@example.test', initials: 'EU', badge: 'Pro',
10
10
  };
11
11
 
12
12
  accountActions: readonly GoodMenuAction[] = [
@@ -24,7 +24,7 @@ accountActions: readonly GoodMenuAction[] = [
24
24
  ```
25
25
 
26
26
  ```html
27
- <good-avatar-menu [user]="currentUser" [actions]="accountActions" />
27
+ <good-header-avatar [user]="currentUser" [actions]="accountActions" />
28
28
  ```
29
29
 
30
30
  Pass the same values as `[user]` and `[avatarActions]` to `good-app-layout` 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.
@@ -0,0 +1,13 @@
1
+ # Header notification
2
+
3
+ `good-header-notification` is the independent header bell and inbox action. Import `GoodHeaderNotificationComponent`; place it inside `good-header-actions` in any position.
4
+
5
+ ```html
6
+ <good-header-actions>
7
+ <good-header-notification [items]="notifications" />
8
+ </good-header-actions>
9
+ ```
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. AppLayout 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
+
13
+ Penpot `goodui.notifications.default`, `.open`, and `.unread` retain their stable IDs and map to this selector.
@@ -1,10 +1,10 @@
1
- # Search
1
+ # Header search
2
2
 
3
- `good-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/search` with a working preview and copyable examples.
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.
4
4
 
5
5
  ## Standalone usage
6
6
 
7
- Import `GoodSearchComponent` and `GoodSearchItem` from `@cloudfrogger/goodui`. Configure Angular Router through `provideRouter(routes)` in the consuming app.
7
+ Import `GoodHeaderSearchComponent` and `GoodSearchItem` from `@cloudfrogger/goodui`. Configure Angular Router through `provideRouter(routes)` in the consuming app.
8
8
 
9
9
  ```ts
10
10
  readonly items: readonly GoodSearchItem[] = [
@@ -14,7 +14,7 @@ readonly items: readonly GoodSearchItem[] = [
14
14
  ```
15
15
 
16
16
  ```html
17
- <good-search [items]="items" />
17
+ <good-header-search [items]="items" />
18
18
  ```
19
19
 
20
20
  ## API
@@ -32,7 +32,7 @@ readonly items: readonly GoodSearchItem[] = [
32
32
 
33
33
  ## Shell integration
34
34
 
35
- `good-app-layout`, `good-topbar`, and `good-main-menu` accept the navigation records through `searchItems`.
35
+ `good-app-layout`, `good-topbar`, and `good-header-actions` accept the navigation records through `searchItems`.
36
36
 
37
37
  ```html
38
38
  <good-app-layout [searchItems]="items">
@@ -40,7 +40,7 @@ readonly items: readonly GoodSearchItem[] = [
40
40
  </good-app-layout>
41
41
  ```
42
42
 
43
- MainMenu shows the action by default. A standalone MainMenu can set `[showSearch]="false"` to hide it.
43
+ HeaderActions shows the action by default. A standalone HeaderActions can set `[showSearch]="false"` to hide it.
44
44
 
45
45
  ## Keyboard and navigation
46
46
 
@@ -1,6 +1,6 @@
1
- # Theme toggle
1
+ # Header theme toggle
2
2
 
3
- `goodui.theme-toggle` maps to `good-theme-toggle`. 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.
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
6
  <good-app-layout [showThemeToggle]="true">
@@ -8,7 +8,7 @@
8
8
  </good-app-layout>
9
9
  ```
10
10
 
11
- Set `[showThemeToggle]="false"` to remove it. `good-main-menu` and `good-topbar` accept the same input. A custom composition can place `<good-theme-toggle />` directly. The main menu owns spacing, while the control owns its hit area and hover style.
11
+ Set `[showThemeToggle]="false"` to remove it. `good-header-actions` and `good-topbar` 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
 
@@ -30,4 +30,4 @@ To apply the correct color before Angular and its CSS load, put this script and
30
30
  </style>
31
31
  ```
32
32
 
33
- Penpot `01 Components` publishes `goodui.theme-toggle.light`, `.system`, and `.dark`. These are the three runtime states of the same Angular selector, each bound to `control.action-size`, `radius.action`, `color.surface`, and `color.icon`. MainMenu uses the Light instance as its representative default composition; Angular renders the matching icon for the active preference.
33
+ Penpot `01 Components` publishes `goodui.theme-toggle.light`, `.system`, and `.dark`. These are the three runtime states of the same Angular selector, each bound to `control.action-size`, `radius.action`, `color.surface`, and `color.icon`. HeaderActions uses the Light instance as its representative default composition; Angular renders the matching icon for the active preference.
@@ -1,6 +1,6 @@
1
1
  # Notifications
2
2
 
3
- `good-notifications` 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-layout` includes `good-notification-host` automatically. An application without AppLayout can place one host near its root; use exactly one host per application.
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-layout` includes `good-notification-host` automatically. An application without AppLayout 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';
@@ -71,6 +71,6 @@ const notifications: GoodNotification[] = [
71
71
  ];
72
72
  ```
73
73
 
74
- `good-notifications` still accepts the simple `[items]` input with `GoodNotification` records, so existing applications remain compatible. Its native dialog manages focus, Escape, and the mobile viewport.
74
+ `good-header-notification` still accepts the simple `[items]` input with `GoodNotification` records, so existing applications remain compatible. Its native dialog manages focus, Escape, and the mobile viewport.
75
75
 
76
76
  The [Notifications example](../../homepage/src/app/examples/notifications/notifications-page.html) shows each delivery mode and includes its HTML and TypeScript source on the page. Its design uses `goodui.notifications.unread`, a linked composition of the existing bell and `goodui.badge`, plus the Alert tokens and specimens on Penpot page `21 Alerts`.
@@ -1,6 +1,6 @@
1
1
  # Settings
2
2
 
3
- `goodui.settings` has a round trigger and an anchored menu. Apps can supply action buttons and links. The independent [Theme toggle](./theme-toggle.md) handles appearance from a single topbar click.
3
+ `goodui.settings` has a round trigger and an anchored menu. Apps can supply action buttons and links. The independent [Theme toggle](./header-themetoggle.md) handles appearance from a single topbar click.
4
4
 
5
5
  ```html
6
6
  <good-settings [actions]="settingsActions" />
@@ -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-layout`, `good-topbar`, or `good-main-menu` to include it.
11
+ Settings is optional in the standard topbar: set `[showSettings]="true"` on `good-app-layout`, `good-topbar`, or `good-header-actions` to include it.
@@ -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 [Topbar](./topbar.md), [Sidebar](./sidebar.md), [Avatar menu](./avatar-menu.md), and [Subnav](./subnav.md) guides for the full APIs and behavior.
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 [Topbar](./topbar.md), [Sidebar](./sidebar.md), [Avatar menu](./header-avatar.md), and [Subnav](./subnav.md) guides for the full APIs and behavior.
29
29
 
30
30
  `good-topbar-submenu` is also a standalone public component for a nested menu level. Pass the same `GoodTopbarItem[]` structure through `[items]`, give the level an accessible `label`, and handle `(navigate)` if a surrounding menu must close. The library owns placement, edge flipping, and the rows. The homepage has a dedicated **Topbar submenu** component page with a working example.
@@ -2,9 +2,9 @@
2
2
 
3
3
  **Design IDs:** `goodui.topbar`, `goodui.brand-icon`, `goodui.topbar-menu-container`, `goodui.topbar-menu-item`, `goodui.topbar-dropdown-menu`, `goodui.topbar-dropdown-item`, `goodui.topbar-submenu`.
4
4
 
5
- The optional [Theme toggle](./theme-toggle.md) in MainMenu changes appearance with one click and no submenu.
5
+ The optional [Theme toggle](./header-themetoggle.md) in HeaderActions changes appearance with one click and no submenu.
6
6
 
7
- The topbar places an optional brand icon and navigation on the left, with [MainMenu](./main-menu.md) on the right. It is 70 px tall on desktop with 30 px horizontal padding. On mobile, the drawer trigger comes first, followed by optional branding. The default `hidden` mode places navigation in the AppLayout drawer; `popup` mode replaces the horizontal row with a topbar icon that opens a separate navigation popup. Penpot contains default, `with-brand`, mobile, mobile icon, and mobile popup states.
7
+ The topbar places an optional brand icon and navigation on the left, with [HeaderActions](./header-actions.md) on the right. It is 70 px tall on desktop with 30 px horizontal padding. On mobile, the drawer trigger comes first, followed by optional branding. The default `hidden` mode places navigation in the AppLayout drawer; `popup` mode replaces the horizontal row with a topbar icon that opens a separate navigation popup. Penpot contains default, `with-brand`, mobile, mobile icon, and mobile popup states.
8
8
 
9
9
  On mobile, `brandMarkSrc` and optional `brandMarkDarkSrc` display the application symbol after the drawer trigger at 30 × 28 px; `brand` supplies its accessible name. The optional desktop BrandIcon uses the same mark URLs. Existing consumers that only pass `brandLogoSrc` and optional `brandLogoDarkSrc` continue to see the wordmark in the mobile topbar; with no image URL, it displays the brand text. Branding is shown by default. Set `[showMobileBrand]="false"` on `good-app-layout` or a standalone `good-topbar` to leave only the drawer trigger on the left. This does not hide branding in the sidebar or drawer. `good-app-layout` forwards the wordmark and symbol inputs from one place to the topbar and both sidebar presentations.
10
10
 
@@ -76,14 +76,14 @@ For a standalone topbar, use `[mobileMenuMode]="'popup'"`. For a projected menu
76
76
  <good-topbar-menu-item label="Home" route="/" [active]="true" />
77
77
  <good-topbar-menu-item label="Projects" route="/projects" />
78
78
  </good-topbar-menu-container>
79
- <good-main-menu>
80
- <good-search [items]="searchItems" />
81
- <good-theme-toggle />
82
- <good-avatar-menu [user]="currentUser" [actions]="accountActions" />
83
- </good-main-menu>
79
+ <good-header-actions>
80
+ <good-header-search [items]="searchItems" />
81
+ <good-header-themetoggle />
82
+ <good-header-avatar [user]="currentUser" [actions]="accountActions" />
83
+ </good-header-actions>
84
84
  </good-topbar>
85
85
  ```
86
86
 
87
87
  The topbar owns spacing, hit areas, and responsive behavior. Apps do not need manual `flex`, `gap`, or positioning classes for this structure. `good-app-layout` wires the mobile drawer; with a standalone topbar, use `(menuToggle)` to open your own navigation.
88
88
 
89
- AppLayout also accepts a direct `good-main-menu` child and forwards it to the topbar action slot. The container is excluded from the page content. See [Main menu](main-menu.md) for composition and default behavior.
89
+ AppLayout also accepts a direct `good-header-actions` child and forwards it to the topbar action slot. The container is excluded from the page content. See [Header actions](header-actions.md) for composition and default behavior.
@@ -260,6 +260,6 @@ The previous public names `GoodSectionNavComponent`, `GoodSectionNavItem`, `good
260
260
 
261
261
  `goodui.map-overlay.aggregated` (`18e25442-2c17-80b0-8008-e40193c020b5`) maps to the runtime aggregated state of `good-map-overlay`: a mean value and country-count badge. `goodui.world-map.aggregated-overlays` (`18e25442-2c17-80b0-8008-e401d4eda08a`) maps to `good-world-map` at a zoom level where nearby country details combine. Its linked aggregated overlay instances illustrate that Angular averages each numeric measure separately and recomputes groups as map size or zoom changes. The default `aggregateOverlays=true` input enables this state; false keeps individual details.
262
262
 
263
- ### Main menu composition
263
+ ### Header actions composition
264
264
 
265
- `goodui.main-menu.default` maps to `good-main-menu`, a container for application-selected action components. Its linked Search, Notifications, ThemeToggle, and AvatarMenu instances represent the default arrangement. Angular accepts custom projected children in their declared order; AppLayout forwards its direct MainMenu child to Topbar. Stable component IDs, geometry, and token bindings are unchanged. See [Main menu](../components/main-menu.md).
265
+ `goodui.main-menu.default` maps to `good-header-actions`, a container for application-selected action components. Its linked Search, Notifications, ThemeToggle, and AvatarMenu instances represent the default arrangement. Angular accepts custom projected children in their declared order; AppLayout forwards its direct HeaderActions child to Topbar. Stable component IDs, geometry, and token bindings are unchanged. See [Header actions](../components/header-actions.md).
@@ -44,7 +44,7 @@ Token names remain intact in CSS, with dots and underscores converted to hyphens
44
44
  | `calendar.holiday.marker.size` | `--good-calendar-holiday-marker-size` | Linked holiday label marker in all four calendar specimens | Compact holiday marker; text and surface use existing semantic color tokens |
45
45
  | `space.7_5` | `--good-space-7-5` | Alias target | Shared 30 px spacing value |
46
46
  | `topbar.padding-inline` | `--good-topbar-padding-inline` | Desktop Topbar left/right flex padding | Desktop topbar padding |
47
- | `main-menu.gap` | `--good-main-menu-gap` | MainMenu flex column gap | Action spacing |
47
+ | `main-menu.gap` | `--good-main-menu-gap` | HeaderActions flex column gap | Action spacing |
48
48
  | `sidebar.menu-gap` | `--good-sidebar-menu-gap` | SidebarMenuContainer flex row gap | Heading-to-items spacing |
49
49
  | `size.sidebar` | `--good-size-sidebar` | SidebarContainer width | Sidebar width |
50
50
  | `size.topbar` / `size.topbar-mobile` | `--good-size-topbar` / `--good-size-topbar-mobile` | Topbar heights | Shell heights |
@@ -146,11 +146,11 @@ The semantic values `topbar.padding-inline`, `main-menu.gap`, `sidebar.menu-gap`
146
146
 
147
147
  ## Supported bindings and layout limits
148
148
 
149
- The connected Penpot plugin API is version 2.17.0. It supports token bindings for color fills/strokes, spacing on flex and grid gaps and padding, sizing on width/height, and border radius on corners. The bindings above were checked through each shape's `tokens` map, including a desktop Topbar, MainMenu, SidebarMenuContainer, action control, SidebarItem, and MainView card border.
149
+ The connected Penpot plugin API is version 2.17.0. It supports token bindings for color fills/strokes, spacing on flex and grid gaps and padding, sizing on width/height, and border radius on corners. The bindings above were checked through each shape's `tokens` map, including a desktop Topbar, HeaderActions, SidebarMenuContainer, action control, SidebarItem, and MainView card border.
150
150
 
151
151
  Some existing boards use absolute positions: the account MainView, Subnav's item track, and mobile Topbar. Penpot spacing tokens cannot control their individual placement offsets without changing their layout model. GoodUI keeps those offsets explicit to preserve the design. The mobile Topbar's 16 px padding and the 20 px intermediate-breakpoint padding are deliberate CSS rules, outside the bound desktop padding token. Some nested sidebar-menu instances have a different flex gap; they keep that instance value.
152
152
 
153
- Two existing visual differences remain outside the shared-token mapping: Penpot's mobile MainMenu has a 10 px gap while Angular uses 4 px at the mobile breakpoint, and Penpot's TopbarMenuContainer has a 10 px flex gap while Angular uses 26 px on desktop. They need a design decision before they can share one semantic token without changing one of the current appearances.
153
+ Two existing visual differences remain outside the shared-token mapping: Penpot's mobile HeaderActions has a 10 px gap while Angular uses 4 px at the mobile breakpoint, and Penpot's TopbarMenuContainer has a 10 px flex gap while Angular uses 26 px on desktop. They need a design decision before they can share one semantic token without changing one of the current appearances.
154
154
 
155
155
  Open and responsive shell states remain separate Penpot components. Button is a real variant group with 45 combinations; its former outline component IDs and nested instances are preserved. The [variant ID manifest](https://github.com/cloudfrogger/goodui/blob/master/design/button-variants.json) maps Penpot variants to the `good-button` inputs.
156
156
 
@@ -196,7 +196,7 @@ Image Input adds `image-input.size` (180 px) to the `layout` set. Its Penpot pre
196
196
 
197
197
  This is a **manual Penpot-to-repository export** followed by automatic CSS generation. The build regenerates CSS from the saved JSON, not from live Penpot. The generated file is `angular/projects/goodui/src/tokens.generated.css`; the package stylesheet imports it and exposes Tailwind CSS 4 `--color-good-*` mappings through `@theme inline`. GoodUI does not ship Tailwind Preflight to consuming apps.
198
198
 
199
- For app-level theming, set `data-theme="light"` or `data-theme="dark"` on a common root. `GoodThemeService` stores an explicit Light or Dark preference in the `goodui-theme` cookie and writes the resolved value to `data-theme`. System mode removes the cookie, follows the system preference, and responds to later system changes. Put the [prepaint script](../components/theme-toggle.md) in the app's `index.html` to set the background before Angular loads. Apps can override public `--good-*` variables at runtime; these overrides are application-specific and do not write back to Penpot.
199
+ For app-level theming, set `data-theme="light"` or `data-theme="dark"` on a common root. `GoodThemeService` stores an explicit Light or Dark preference in the `goodui-theme` cookie and writes the resolved value to `data-theme`. System mode removes the cookie, follows the system preference, and responds to later system changes. Put the [prepaint script](../components/header-themetoggle.md) in the app's `index.html` to set the background before Angular loads. Apps can override public `--good-*` variables at runtime; these overrides are application-specific and do not write back to Penpot.
200
200
 
201
201
  ## Progress tokens
202
202
 
@@ -15,7 +15,7 @@ AppLayout
15
15
  ├─ SidebarContainer → SidebarMenuContainer → SidebarItem
16
16
  │ → SidebarSubmenuGroup → SidebarSubmenuItem
17
17
  └─ Topbar → TopbarMenuContainer → TopbarMenuItem
18
- → MainMenu → Search | Notifications | ThemeToggle | AvatarMenu
18
+ → HeaderActions → Search | Notifications | ThemeToggle | AvatarMenu
19
19
  MainView → page heading | page content
20
20
  ```
21
21
 
@@ -57,7 +57,7 @@ Add `goodMainViewToolbar` to an optional strip that should stay above the filled
57
57
  The [calendar workspace example](../../homepage/src/app/examples/calendar-workspace/calendar-workspace-page.html) shows a routed page using this layout without a page heading.
58
58
 
59
59
  The simple input API creates the component hierarchy internally. You can compose the exported containers directly for special cases. Navigation requires `provideRouter(...)`; the active path comes from Angular Router.
60
- The homepage's **Foundation → Layout** chapter starts with **General** for the root component, shell, and providers. **Default layout** shows a scrolling route and the user registration example; **Fill view** shows a full-height workspace.
60
+ The homepage's **Foundation → Layout** chapter starts with **General** for the root component, shell, and providers. **Default layout** shows a scrolling route and the user registration example, followed by its **Fill option** section for a full-height workspace without outer padding.
61
61
 
62
62
  `brand` is the accessible name for optional logo artwork. `brandLogoSrc` and `brandLogoDarkSrc` supply the light and dark wordmarks for the desktop sidebar and mobile drawer. `brandMarkSrc` and `brandMarkDarkSrc` supply the light and dark symbols for the mobile topbar and optional desktop BrandIcon. When a dark URL is omitted, the light image is used in both themes. Without a mark URL, the mobile topbar continues to show the wordmark or text, preserving existing application behavior. Without a wordmark URL, the sidebar and drawer show the text brand and generic accent mark. Put the files in your Angular application's `public/` directory (or use your own hosted URLs). GoodUI does not package an application logo or favicon.
63
63
 
@@ -65,17 +65,17 @@ The browser favicon belongs to the application. Set its URL in your app's `src/i
65
65
 
66
66
  ## Choose your topbar actions
67
67
 
68
- Project a `good-main-menu` directly into AppLayout to choose the actions and their order. AppLayout forwards this container into Topbar and keeps routed content in the page area. Configure projected actions directly; shell action inputs continue to configure the generated default menu when no custom container is present.
68
+ Project a `good-header-actions` directly into AppLayout to choose the actions and their order. AppLayout forwards this container into Topbar and keeps routed content in the page area. Configure projected actions directly; shell action inputs continue to configure the generated default menu when no custom container is present.
69
69
 
70
70
  ```html
71
71
  <good-app-layout [sidebarSections]="navigation">
72
- <good-main-menu>
73
- <good-search [items]="searchItems" />
74
- <good-theme-toggle />
75
- <good-avatar-menu [user]="currentUser" [actions]="accountActions" />
76
- </good-main-menu>
72
+ <good-header-actions>
73
+ <good-header-search [items]="searchItems" />
74
+ <good-header-themetoggle />
75
+ <good-header-avatar [user]="currentUser" [actions]="accountActions" />
76
+ </good-header-actions>
77
77
  <router-outlet />
78
78
  </good-app-layout>
79
79
  ```
80
80
 
81
- Import MainMenu and its selected child components in the declaring standalone component. See [Main menu](../components/main-menu.md) and its linked action guides.
81
+ Import HeaderActions and its selected child components in the declaring standalone component. See [Header actions](../components/header-actions.md) and its linked action guides.
@@ -6,7 +6,7 @@ GoodUI is reviewed at 1440 × 900 px and 390 × 844 px. Its current layout rules
6
6
  - Brand artwork: the desktop sidebar places a 160 × 35 px wordmark 24 px from the left; the mobile drawer places a 145 × 32 px wordmark 32 px from the left; the closed mobile topbar places a 30 × 28 px symbol before its drawer trigger. Applications provide the images.
7
7
  - Topbar: 70 px on desktop, 60 px on mobile. It begins to the right of the sidebar on desktop and fills the viewport on mobile.
8
8
  - Topbar navigation: items share a dedicated container. At the mobile breakpoint, the menu moves into the drawer.
9
- - MainMenu: four 36 px actions, spaced 10 px apart and right aligned, in this order: search, notifications, settings, avatar.
9
+ - HeaderActions: four 36 px actions, spaced 10 px apart and right aligned, in this order: search, notifications, settings, avatar.
10
10
  - MainView `layout="page"`: 30 px horizontal and 20 px top padding on desktop; 24 px horizontal padding on mobile.
11
11
  - MainView `layout="page"` (default) lets the page scroll and aligns direct Sections to the centered reading width. `layout="fill"` removes outer padding and gives one primary child the remaining height so that component can scroll internally.
12
12
  - Subnav: optional full-width row at the top of MainView; 60 px desktop and 44 px mobile. Its items stay on one line and scroll within the row on narrow screens. The active item has a 2 px accent underline.
@@ -0,0 +1,17 @@
1
+ # Header actions migration
2
+
3
+ The header action family now uses explicit public Header names. Update templates and standalone imports together; these names replace the former selectors and class names. Inputs, methods, appearance, and behavior stay the same.
4
+
5
+ | Former selector | Public selector | Standalone import |
6
+ | --- | --- | --- |
7
+ | `good-main-menu` | `good-header-actions` | `GoodHeaderActionsComponent` |
8
+ | `good-search` | `good-header-search` | `GoodHeaderSearchComponent` |
9
+ | `good-notifications` | `good-header-notification` | `GoodHeaderNotificationComponent` |
10
+ | `good-avatar-menu` | `good-header-avatar` | `GoodHeaderAvatarComponent` |
11
+ | `good-theme-toggle` | `good-header-themetoggle` | `GoodHeaderThemeToggleComponent` |
12
+
13
+ The former class names were GoodMainMenuComponent, GoodSearchComponent, GoodNotificationsComponent, GoodAvatarMenuComponent, and GoodThemeToggleComponent, respectively. Replace these imports with the corresponding names above. Shared types and services, including GoodSearchItem, GoodNotification, GoodUser, GoodMenuAction, GoodNotificationCenter, and GoodThemeService, keep their names. GoodAvatarMenuItemComponent remains the account-row component.
14
+
15
+ Project `good-header-actions` directly into `good-app-layout` or `good-topbar`; compose independent actions inside it. Read [Header actions](../components/header-actions.md). With no projected content, the container renders its standard actions. Shell visibility/data inputs configure only that generated composition; configure projected children directly.
16
+
17
+ The homepage groups all four actions under `/components/header-actions`. The former component documentation URLs redirect to that chapter. The same Penpot components retain their IDs and names; the explicit selector overrides in `design/component-map.json` record their public Angular names.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudfrogger/goodui",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -35,5 +35,5 @@
35
35
  "module": "fesm2022/cloudfrogger-goodui.mjs",
36
36
  "typings": "types/cloudfrogger-goodui.d.ts",
37
37
  "type": "module",
38
- "gitHead": "e0cf468b2ef9824ba4cfdd6d821a3967f314321e"
38
+ "gitHead": "dc83aafa5574436b8f3428c1a88f2dcca98d4e4c"
39
39
  }