@cloudfrogger/goodui 0.0.64 → 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.
- package/ai/catalog/components/good-app-layout.json +2 -2
- package/ai/catalog/components/good-avatar-menu-item.json +2 -2
- package/ai/catalog/components/{good-main-menu.json → good-header-actions.json} +9 -9
- package/ai/catalog/components/{good-avatar-menu.json → good-header-avatar.json} +5 -5
- package/ai/catalog/components/{good-notifications.json → good-header-notification.json} +5 -5
- package/ai/catalog/components/{good-search.json → good-header-search.json} +5 -5
- package/ai/catalog/components/{good-theme-toggle.json → good-header-themetoggle.json} +5 -5
- package/ai/catalog/components/good-notification-host.json +1 -1
- package/ai/catalog/components/good-settings.json +1 -1
- package/ai/catalog/components/good-topbar.json +2 -2
- package/ai/catalog/index.json +65 -65
- package/ai/guides/component-discovery.md +1 -1
- package/ai/guides/layout.md +1 -1
- package/ai/manifest.json +2 -2
- package/ai/skill/goodui/SKILL.md +1 -1
- package/angular/projects/goodui/package.json +1 -1
- package/angular/projects/goodui/src/lib/actions.ts +20 -20
- package/angular/projects/goodui/src/lib/app-layout.ts +4 -4
- package/angular/projects/goodui/src/lib/topbar.ts +4 -5
- package/angular/projects/goodui/src/styles.css +4 -4
- package/design/component-map.json +21 -14
- package/design.md +5 -5
- package/fesm2022/cloudfrogger-goodui.mjs +55 -56
- package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
- package/guides/README.md +1 -0
- package/guides/components/header-actions.md +29 -0
- package/guides/components/{avatar-menu.md → header-avatar.md} +4 -4
- package/guides/components/header-notification.md +13 -0
- package/guides/components/{search.md → header-search.md} +6 -6
- package/guides/components/{theme-toggle.md → header-themetoggle.md} +4 -4
- package/guides/components/notifications.md +2 -2
- package/guides/components/settings.md +2 -2
- package/guides/components/submenus.md +1 -1
- package/guides/components/topbar.md +8 -8
- package/guides/contributing/design-to-code.md +2 -2
- package/guides/foundations/tokens.md +4 -4
- package/guides/layout/app-layout.md +8 -8
- package/guides/layout/layout-rules.md +1 -1
- package/guides/migrations/header-actions.md +17 -0
- package/package.json +2 -2
- package/styles.css +1 -1
- package/types/cloudfrogger-goodui.d.ts +145 -146
- package/guides/components/main-menu.md +0 -23
|
@@ -175,13 +175,13 @@
|
|
|
175
175
|
},
|
|
176
176
|
"composition": {
|
|
177
177
|
"projectedContent": [
|
|
178
|
-
"good-
|
|
178
|
+
"good-header-actions",
|
|
179
179
|
"*"
|
|
180
180
|
],
|
|
181
181
|
"relatedSelectors": [
|
|
182
182
|
"good-sidebar-container",
|
|
183
183
|
"good-topbar",
|
|
184
|
-
"good-
|
|
184
|
+
"good-header-actions",
|
|
185
185
|
"good-topbar-menu-container",
|
|
186
186
|
"good-notification-host"
|
|
187
187
|
],
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"controlValueAccessor": false,
|
|
48
48
|
"validator": false
|
|
49
49
|
},
|
|
50
|
-
"usageGuide": "guides/components/avatar
|
|
50
|
+
"usageGuide": "guides/components/header-avatar.md",
|
|
51
51
|
"usage": {
|
|
52
|
-
"summary": "`good-avatar
|
|
52
|
+
"summary": "`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.",
|
|
53
53
|
"examples": []
|
|
54
54
|
},
|
|
55
55
|
"penpot": [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../component.schema.json",
|
|
3
|
-
"selector": "good-
|
|
4
|
-
"className": "
|
|
3
|
+
"selector": "good-header-actions",
|
|
4
|
+
"className": "GoodHeaderActionsComponent",
|
|
5
5
|
"kind": "component",
|
|
6
6
|
"import": {
|
|
7
7
|
"package": "@cloudfrogger/goodui",
|
|
8
|
-
"symbol": "
|
|
8
|
+
"symbol": "GoodHeaderActionsComponent"
|
|
9
9
|
},
|
|
10
10
|
"source": "angular/projects/goodui/src/lib/actions.ts",
|
|
11
11
|
"inputs": [
|
|
@@ -107,11 +107,11 @@
|
|
|
107
107
|
"*"
|
|
108
108
|
],
|
|
109
109
|
"relatedSelectors": [
|
|
110
|
-
"good-search",
|
|
111
|
-
"good-
|
|
112
|
-
"good-
|
|
110
|
+
"good-header-search",
|
|
111
|
+
"good-header-notification",
|
|
112
|
+
"good-header-themetoggle",
|
|
113
113
|
"good-settings",
|
|
114
|
-
"good-avatar
|
|
114
|
+
"good-header-avatar"
|
|
115
115
|
],
|
|
116
116
|
"notes": "See source template and component guide for projection slots."
|
|
117
117
|
},
|
|
@@ -119,9 +119,9 @@
|
|
|
119
119
|
"controlValueAccessor": false,
|
|
120
120
|
"validator": false
|
|
121
121
|
},
|
|
122
|
-
"usageGuide": "guides/components/
|
|
122
|
+
"usageGuide": "guides/components/header-actions.md",
|
|
123
123
|
"usage": {
|
|
124
|
-
"summary": "`good-
|
|
124
|
+
"summary": "`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.",
|
|
125
125
|
"examples": []
|
|
126
126
|
},
|
|
127
127
|
"penpot": [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../component.schema.json",
|
|
3
|
-
"selector": "good-avatar
|
|
4
|
-
"className": "
|
|
3
|
+
"selector": "good-header-avatar",
|
|
4
|
+
"className": "GoodHeaderAvatarComponent",
|
|
5
5
|
"kind": "component",
|
|
6
6
|
"import": {
|
|
7
7
|
"package": "@cloudfrogger/goodui",
|
|
8
|
-
"symbol": "
|
|
8
|
+
"symbol": "GoodHeaderAvatarComponent"
|
|
9
9
|
},
|
|
10
10
|
"source": "angular/projects/goodui/src/lib/actions.ts",
|
|
11
11
|
"inputs": [
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"controlValueAccessor": false,
|
|
42
42
|
"validator": false
|
|
43
43
|
},
|
|
44
|
-
"usageGuide": "guides/components/avatar
|
|
44
|
+
"usageGuide": "guides/components/header-avatar.md",
|
|
45
45
|
"usage": {
|
|
46
|
-
"summary": "`good-avatar
|
|
46
|
+
"summary": "`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.",
|
|
47
47
|
"examples": []
|
|
48
48
|
},
|
|
49
49
|
"penpot": [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../component.schema.json",
|
|
3
|
-
"selector": "good-
|
|
4
|
-
"className": "
|
|
3
|
+
"selector": "good-header-notification",
|
|
4
|
+
"className": "GoodHeaderNotificationComponent",
|
|
5
5
|
"kind": "component",
|
|
6
6
|
"import": {
|
|
7
7
|
"package": "@cloudfrogger/goodui",
|
|
8
|
-
"symbol": "
|
|
8
|
+
"symbol": "GoodHeaderNotificationComponent"
|
|
9
9
|
},
|
|
10
10
|
"source": "angular/projects/goodui/src/lib/actions.ts",
|
|
11
11
|
"inputs": [
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"controlValueAccessor": false,
|
|
38
38
|
"validator": false
|
|
39
39
|
},
|
|
40
|
-
"usageGuide": "guides/components/
|
|
40
|
+
"usageGuide": "guides/components/header-notification.md",
|
|
41
41
|
"usage": {
|
|
42
|
-
"summary": "`good-
|
|
42
|
+
"summary": "`good-header-notification` is the independent header bell and inbox action. Import `GoodHeaderNotificationComponent`; place it inside `good-header-actions` in any position.",
|
|
43
43
|
"examples": []
|
|
44
44
|
},
|
|
45
45
|
"penpot": [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../component.schema.json",
|
|
3
|
-
"selector": "good-search",
|
|
4
|
-
"className": "
|
|
3
|
+
"selector": "good-header-search",
|
|
4
|
+
"className": "GoodHeaderSearchComponent",
|
|
5
5
|
"kind": "component",
|
|
6
6
|
"import": {
|
|
7
7
|
"package": "@cloudfrogger/goodui",
|
|
8
|
-
"symbol": "
|
|
8
|
+
"symbol": "GoodHeaderSearchComponent"
|
|
9
9
|
},
|
|
10
10
|
"source": "angular/projects/goodui/src/lib/actions.ts",
|
|
11
11
|
"inputs": [
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"controlValueAccessor": false,
|
|
33
33
|
"validator": false
|
|
34
34
|
},
|
|
35
|
-
"usageGuide": "guides/components/search.md",
|
|
35
|
+
"usageGuide": "guides/components/header-search.md",
|
|
36
36
|
"usage": {
|
|
37
|
-
"summary": "`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/
|
|
37
|
+
"summary": "`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.",
|
|
38
38
|
"examples": []
|
|
39
39
|
},
|
|
40
40
|
"penpot": [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../component.schema.json",
|
|
3
|
-
"selector": "good-
|
|
4
|
-
"className": "
|
|
3
|
+
"selector": "good-header-themetoggle",
|
|
4
|
+
"className": "GoodHeaderThemeToggleComponent",
|
|
5
5
|
"kind": "component",
|
|
6
6
|
"import": {
|
|
7
7
|
"package": "@cloudfrogger/goodui",
|
|
8
|
-
"symbol": "
|
|
8
|
+
"symbol": "GoodHeaderThemeToggleComponent"
|
|
9
9
|
},
|
|
10
10
|
"source": "angular/projects/goodui/src/lib/actions.ts",
|
|
11
11
|
"inputs": [],
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"controlValueAccessor": false,
|
|
23
23
|
"validator": false
|
|
24
24
|
},
|
|
25
|
-
"usageGuide": "guides/components/
|
|
25
|
+
"usageGuide": "guides/components/header-themetoggle.md",
|
|
26
26
|
"usage": {
|
|
27
|
-
"summary": "`goodui.theme-toggle` maps to `good-
|
|
27
|
+
"summary": "`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.",
|
|
28
28
|
"examples": []
|
|
29
29
|
},
|
|
30
30
|
"penpot": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"usageGuide": "guides/components/notifications.md",
|
|
29
29
|
"usage": {
|
|
30
|
-
"summary": "`good-
|
|
30
|
+
"summary": "`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.",
|
|
31
31
|
"examples": []
|
|
32
32
|
},
|
|
33
33
|
"penpot": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"usageGuide": "guides/components/settings.md",
|
|
36
36
|
"usage": {
|
|
37
|
-
"summary": "`goodui.settings` has a round trigger and an anchored menu. Apps can supply action buttons and links. The independent [Theme toggle](./
|
|
37
|
+
"summary": "`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.",
|
|
38
38
|
"examples": []
|
|
39
39
|
},
|
|
40
40
|
"penpot": [
|
|
@@ -182,13 +182,13 @@
|
|
|
182
182
|
"composition": {
|
|
183
183
|
"projectedContent": [
|
|
184
184
|
"good-topbar-menu-container",
|
|
185
|
-
"good-
|
|
185
|
+
"good-header-actions"
|
|
186
186
|
],
|
|
187
187
|
"relatedSelectors": [
|
|
188
188
|
"good-icon",
|
|
189
189
|
"good-brand-icon",
|
|
190
190
|
"good-topbar-menu-container",
|
|
191
|
-
"good-
|
|
191
|
+
"good-header-actions"
|
|
192
192
|
],
|
|
193
193
|
"notes": "See source template and component guide for projection slots."
|
|
194
194
|
},
|
package/ai/catalog/index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "index.schema.json",
|
|
3
3
|
"package": "@cloudfrogger/goodui",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.65",
|
|
5
5
|
"generatedFrom": "angular/projects/goodui/src/public-api.ts",
|
|
6
6
|
"components": [
|
|
7
7
|
{
|
|
@@ -208,18 +208,6 @@
|
|
|
208
208
|
"summary": "`good-assistant-panel` places a contextual companion beside a primary workspace. Use it for an inspector, contextual help, or an order summary. The main area gets GoodUI spacing by default; both areas fill their available client height and scroll independently. No pixel height is needed inside `good-main-view layout=\"fill\"`.",
|
|
209
209
|
"penpotCount": 4
|
|
210
210
|
},
|
|
211
|
-
{
|
|
212
|
-
"selector": "good-avatar-menu",
|
|
213
|
-
"className": "GoodAvatarMenuComponent",
|
|
214
|
-
"file": "components/good-avatar-menu.json",
|
|
215
|
-
"import": {
|
|
216
|
-
"package": "@cloudfrogger/goodui",
|
|
217
|
-
"symbol": "GoodAvatarMenuComponent"
|
|
218
|
-
},
|
|
219
|
-
"usageGuide": "guides/components/avatar-menu.md",
|
|
220
|
-
"summary": "`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.",
|
|
221
|
-
"penpotCount": 4
|
|
222
|
-
},
|
|
223
211
|
{
|
|
224
212
|
"selector": "good-avatar-menu-item",
|
|
225
213
|
"className": "GoodAvatarMenuItemComponent",
|
|
@@ -228,8 +216,8 @@
|
|
|
228
216
|
"package": "@cloudfrogger/goodui",
|
|
229
217
|
"symbol": "GoodAvatarMenuItemComponent"
|
|
230
218
|
},
|
|
231
|
-
"usageGuide": "guides/components/avatar
|
|
232
|
-
"summary": "`good-avatar
|
|
219
|
+
"usageGuide": "guides/components/header-avatar.md",
|
|
220
|
+
"summary": "`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.",
|
|
233
221
|
"penpotCount": 3
|
|
234
222
|
},
|
|
235
223
|
{
|
|
@@ -616,6 +604,66 @@
|
|
|
616
604
|
"summary": "`good-group` collects related content without the visual weight of a Card. It owns padding and a 16 px gap between projected children. Paragraphs and controls contribute no outer spacing, so a paragraph, Checkbox, RadioGroup, Select, or FormRow can be substituted without doubling that gap. Checkbox and radio choices retain 44 px touch targets inside their own bounds. `appearance=\"outline\"` (default) draws a quiet border and places an optional title in that border; `contrast` uses a soft theme-aware background; `plain` keeps the spacing with no surface. Set `title` to label the native `section`. `headingLevel` defaults to 2 and accepts 2, 3, or 4 so heading order remains correct. `headingId` can be set when a page needs a stable external reference. The title is omitted completely when empty.",
|
|
617
605
|
"penpotCount": 4
|
|
618
606
|
},
|
|
607
|
+
{
|
|
608
|
+
"selector": "good-header-actions",
|
|
609
|
+
"className": "GoodHeaderActionsComponent",
|
|
610
|
+
"file": "components/good-header-actions.json",
|
|
611
|
+
"import": {
|
|
612
|
+
"package": "@cloudfrogger/goodui",
|
|
613
|
+
"symbol": "GoodHeaderActionsComponent"
|
|
614
|
+
},
|
|
615
|
+
"usageGuide": "guides/components/header-actions.md",
|
|
616
|
+
"summary": "`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.",
|
|
617
|
+
"penpotCount": 1
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"selector": "good-header-avatar",
|
|
621
|
+
"className": "GoodHeaderAvatarComponent",
|
|
622
|
+
"file": "components/good-header-avatar.json",
|
|
623
|
+
"import": {
|
|
624
|
+
"package": "@cloudfrogger/goodui",
|
|
625
|
+
"symbol": "GoodHeaderAvatarComponent"
|
|
626
|
+
},
|
|
627
|
+
"usageGuide": "guides/components/header-avatar.md",
|
|
628
|
+
"summary": "`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.",
|
|
629
|
+
"penpotCount": 4
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"selector": "good-header-notification",
|
|
633
|
+
"className": "GoodHeaderNotificationComponent",
|
|
634
|
+
"file": "components/good-header-notification.json",
|
|
635
|
+
"import": {
|
|
636
|
+
"package": "@cloudfrogger/goodui",
|
|
637
|
+
"symbol": "GoodHeaderNotificationComponent"
|
|
638
|
+
},
|
|
639
|
+
"usageGuide": "guides/components/header-notification.md",
|
|
640
|
+
"summary": "`good-header-notification` is the independent header bell and inbox action. Import `GoodHeaderNotificationComponent`; place it inside `good-header-actions` in any position.",
|
|
641
|
+
"penpotCount": 3
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"selector": "good-header-search",
|
|
645
|
+
"className": "GoodHeaderSearchComponent",
|
|
646
|
+
"file": "components/good-header-search.json",
|
|
647
|
+
"import": {
|
|
648
|
+
"package": "@cloudfrogger/goodui",
|
|
649
|
+
"symbol": "GoodHeaderSearchComponent"
|
|
650
|
+
},
|
|
651
|
+
"usageGuide": "guides/components/header-search.md",
|
|
652
|
+
"summary": "`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.",
|
|
653
|
+
"penpotCount": 2
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"selector": "good-header-themetoggle",
|
|
657
|
+
"className": "GoodHeaderThemeToggleComponent",
|
|
658
|
+
"file": "components/good-header-themetoggle.json",
|
|
659
|
+
"import": {
|
|
660
|
+
"package": "@cloudfrogger/goodui",
|
|
661
|
+
"symbol": "GoodHeaderThemeToggleComponent"
|
|
662
|
+
},
|
|
663
|
+
"usageGuide": "guides/components/header-themetoggle.md",
|
|
664
|
+
"summary": "`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.",
|
|
665
|
+
"penpotCount": 3
|
|
666
|
+
},
|
|
619
667
|
{
|
|
620
668
|
"selector": "good-heading",
|
|
621
669
|
"className": "GoodHeadingComponent",
|
|
@@ -772,18 +820,6 @@
|
|
|
772
820
|
"summary": "`good-listbox` is an always visible list of items. By default it is an action list: activating an item emits `itemActivated` without changing selection. Set `selectionMode=\"single\"` or `\"multiple\"` when the list should own selection. Use `good-select` when choices should open from a form field, or `good-dropdown` for commands and navigation. Selection is a set of item IDs; even single selection uses an array with zero or one ID. This keeps the event and Angular Forms value shape consistent when an app switches between single and multiple selection.",
|
|
773
821
|
"penpotCount": 4
|
|
774
822
|
},
|
|
775
|
-
{
|
|
776
|
-
"selector": "good-main-menu",
|
|
777
|
-
"className": "GoodMainMenuComponent",
|
|
778
|
-
"file": "components/good-main-menu.json",
|
|
779
|
-
"import": {
|
|
780
|
-
"package": "@cloudfrogger/goodui",
|
|
781
|
-
"symbol": "GoodMainMenuComponent"
|
|
782
|
-
},
|
|
783
|
-
"usageGuide": "guides/components/main-menu.md",
|
|
784
|
-
"summary": "`good-main-menu` is the topbar action container. It owns alignment and responsive gaps. Applications compose its children in any order without adding layout CSS.",
|
|
785
|
-
"penpotCount": 1
|
|
786
|
-
},
|
|
787
823
|
{
|
|
788
824
|
"selector": "good-main-view",
|
|
789
825
|
"className": "GoodMainViewComponent",
|
|
@@ -877,21 +913,9 @@
|
|
|
877
913
|
"symbol": "GoodNotificationHostComponent"
|
|
878
914
|
},
|
|
879
915
|
"usageGuide": "guides/components/notifications.md",
|
|
880
|
-
"summary": "`good-
|
|
916
|
+
"summary": "`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.",
|
|
881
917
|
"penpotCount": 1
|
|
882
918
|
},
|
|
883
|
-
{
|
|
884
|
-
"selector": "good-notifications",
|
|
885
|
-
"className": "GoodNotificationsComponent",
|
|
886
|
-
"file": "components/good-notifications.json",
|
|
887
|
-
"import": {
|
|
888
|
-
"package": "@cloudfrogger/goodui",
|
|
889
|
-
"symbol": "GoodNotificationsComponent"
|
|
890
|
-
},
|
|
891
|
-
"usageGuide": "guides/components/notifications.md",
|
|
892
|
-
"summary": "`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.",
|
|
893
|
-
"penpotCount": 3
|
|
894
|
-
},
|
|
895
919
|
{
|
|
896
920
|
"selector": "good-number-input",
|
|
897
921
|
"className": "GoodNumberInputComponent",
|
|
@@ -1048,18 +1072,6 @@
|
|
|
1048
1072
|
"summary": "`good-scatter-chart` plots independent two-dimensional observations. Each row has an X and Y value; two rows with the same X value remain two dots. Use it to compare a relationship, a spread, or several groups. It uses the shared `GoodChartDataSource`, `good-chart-axis`, GoodUI Card, marker palette, and optional Table view.",
|
|
1049
1073
|
"penpotCount": 1
|
|
1050
1074
|
},
|
|
1051
|
-
{
|
|
1052
|
-
"selector": "good-search",
|
|
1053
|
-
"className": "GoodSearchComponent",
|
|
1054
|
-
"file": "components/good-search.json",
|
|
1055
|
-
"import": {
|
|
1056
|
-
"package": "@cloudfrogger/goodui",
|
|
1057
|
-
"symbol": "GoodSearchComponent"
|
|
1058
|
-
},
|
|
1059
|
-
"usageGuide": "guides/components/search.md",
|
|
1060
|
-
"summary": "`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.",
|
|
1061
|
-
"penpotCount": 2
|
|
1062
|
-
},
|
|
1063
1075
|
{
|
|
1064
1076
|
"selector": "good-section",
|
|
1065
1077
|
"className": "GoodSectionComponent",
|
|
@@ -1129,7 +1141,7 @@
|
|
|
1129
1141
|
"symbol": "GoodSettingsComponent"
|
|
1130
1142
|
},
|
|
1131
1143
|
"usageGuide": "guides/components/settings.md",
|
|
1132
|
-
"summary": "`goodui.settings` has a round trigger and an anchored menu. Apps can supply action buttons and links. The independent [Theme toggle](./
|
|
1144
|
+
"summary": "`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.",
|
|
1133
1145
|
"penpotCount": 2
|
|
1134
1146
|
},
|
|
1135
1147
|
{
|
|
@@ -1324,18 +1336,6 @@
|
|
|
1324
1336
|
"summary": "`good-textarea` is the multiline companion to [Input](input.md). Use it for notes, descriptions, or feedback inside a `good-form-field`. It fills its parent width, starts at four text rows, and uses the same input surface, border, focus, error, and required-field styling as `good-input`.",
|
|
1325
1337
|
"penpotCount": 1
|
|
1326
1338
|
},
|
|
1327
|
-
{
|
|
1328
|
-
"selector": "good-theme-toggle",
|
|
1329
|
-
"className": "GoodThemeToggleComponent",
|
|
1330
|
-
"file": "components/good-theme-toggle.json",
|
|
1331
|
-
"import": {
|
|
1332
|
-
"package": "@cloudfrogger/goodui",
|
|
1333
|
-
"symbol": "GoodThemeToggleComponent"
|
|
1334
|
-
},
|
|
1335
|
-
"usageGuide": "guides/components/theme-toggle.md",
|
|
1336
|
-
"summary": "`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.",
|
|
1337
|
-
"penpotCount": 3
|
|
1338
|
-
},
|
|
1339
1339
|
{
|
|
1340
1340
|
"selector": "good-timeline",
|
|
1341
1341
|
"className": "GoodTimelineComponent",
|
|
@@ -16,4 +16,4 @@ For services and TypeScript types, search `angular/projects/goodui/src/public-ap
|
|
|
16
16
|
|
|
17
17
|
Before using a candidate, check its required inputs and projection selectors. A catalog description helps discovery; the detail file and guide establish the actual API. Follow each `source` and `usageGuide` path relative to the reference root. This applies equally to a source checkout, the installed npm package, and a full archive.
|
|
18
18
|
|
|
19
|
-
For configurable topbar actions, project `good-
|
|
19
|
+
For configurable topbar actions, project `good-header-actions` into `good-app-layout` or `good-topbar`, then compose `good-header-search`, `good-header-notification`, `good-header-themetoggle`, and `good-header-avatar` as its children. See `guides/components/header-actions.md`; configure each projected action directly.
|
package/ai/guides/layout.md
CHANGED
|
@@ -16,4 +16,4 @@ For a page-level Card or framed Group that still needs more horizontal room, set
|
|
|
16
16
|
|
|
17
17
|
Read the exact catalog detail for each selected component. Required inputs are explicit there; selector names and imports come from `public-api.ts`.
|
|
18
18
|
|
|
19
|
-
For a custom action area, project `good-
|
|
19
|
+
For a custom action area, project `good-header-actions` directly into AppLayout or Topbar, then place action components inside it in the desired order. The container owns spacing. See `guides/components/header-actions.md`.
|
package/ai/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@cloudfrogger/goodui",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"sourceRevision": "
|
|
3
|
+
"version": "0.0.65",
|
|
4
|
+
"sourceRevision": "dc83aafa5574436b8f3428c1a88f2dcca98d4e4c",
|
|
5
5
|
"note": "References bundled with the npm package."
|
|
6
6
|
}
|
package/ai/skill/goodui/SKILL.md
CHANGED
|
@@ -16,7 +16,7 @@ For a source checkout, use its root and `angular/projects/goodui/package.json`.
|
|
|
16
16
|
1. Read `ai/catalog/index.json` to find suitable selectors and import symbols. `ai/guides/component-discovery.md` explains how to find components, services, and exported types from a task description. Read only the relevant component detail files and linked guides. Catalog files record inputs, defaults, required values, outputs, model changes, projection slots, forms integration, and Penpot ownership. Use `angular/projects/goodui/src/public-api.ts` and the referenced source files for exported types, services, and behavior that needs clarification.
|
|
17
17
|
2. Read `ai/guides/layout.md` and `ai/guides/page-patterns.md` when composing a page. Choose the shell and page layout before arranging controls. MainView owns page insets and heading alignment; Group, FormRow, Card, Columns, ActionGroup, and the workspace components own their layout. Prefer these capabilities and shared tokens when they satisfy the requested screen. Describe a missing reusable capability when the library cannot express the requested layout, and agree on the approach with the user.
|
|
18
18
|
3. Import public symbols from `@cloudfrogger/goodui` and global CSS from `@cloudfrogger/goodui/styles.css`. Check the app's root `provideGoodUI()` configuration and router. Use the catalog's exact inputs, outputs, projected slots, and Angular Forms integration. Keep domain data, persistence, and product-specific commands in the consuming application.
|
|
19
|
-
4. For configurable topbar actions, project `good-
|
|
19
|
+
4. For configurable topbar actions, project `good-header-actions` into AppLayout or Topbar and compose action components inside it. Read `guides/components/header-actions.md` and each child guide; configure projected children directly. For notifications, read `guides/components/notifications.md`. AppLayout includes a notification host and a bell in its default menu. A custom HeaderActions chooses whether to include the bell. Use `GoodNotificationCenter` for revisitable messages, an inline Alert for nearby task/form problems, and a transient toast for immediate feedback.
|
|
20
20
|
5. Use `ai/examples/` for small form, table, and settings patterns. Guides link to complete homepage examples when useful. For a named case study, read `ai/case-studies/index.md`, then that study and its relevant screen. Keep routine component work focused on its relevant references.
|
|
21
21
|
6. Build the consuming app and exercise the requested interaction. Inspect desktop and mobile layouts, light and dark themes, and applicable keyboard, focus, and form behavior. State what was verified and what still needs a real backend, browser, or device check.
|
|
22
22
|
|
|
@@ -12,7 +12,7 @@ import { GoodNotificationAction, GoodNotificationCenter, GoodNotificationEntry }
|
|
|
12
12
|
import { LucideInfo } from '@lucide/angular';
|
|
13
13
|
|
|
14
14
|
@Component({
|
|
15
|
-
selector: 'good-search',
|
|
15
|
+
selector: 'good-header-search',
|
|
16
16
|
standalone: true,
|
|
17
17
|
imports: [GoodIconComponent, RouterLink],
|
|
18
18
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -28,9 +28,9 @@ import { LucideInfo } from '@lucide/angular';
|
|
|
28
28
|
</div>
|
|
29
29
|
</dialog>
|
|
30
30
|
`,
|
|
31
|
-
host: { class: 'good-search' },
|
|
31
|
+
host: { class: 'good-header-search' },
|
|
32
32
|
})
|
|
33
|
-
export class
|
|
33
|
+
export class GoodHeaderSearchComponent {
|
|
34
34
|
readonly items = input<readonly GoodSearchItem[]>([]);
|
|
35
35
|
readonly query = signal('');
|
|
36
36
|
readonly results = computed(() => this.items().filter(item => `${item.label} ${item.description ?? ''}`.toLocaleLowerCase().includes(this.query().toLocaleLowerCase())));
|
|
@@ -45,7 +45,7 @@ export class GoodSearchComponent {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@Component({
|
|
48
|
-
selector: 'good-
|
|
48
|
+
selector: 'good-header-notification',
|
|
49
49
|
standalone: true,
|
|
50
50
|
imports: [GoodIconComponent, RouterLink, GoodAlertComponent, GoodBadgeComponent, GoodButtonComponent, GoodLinkComponent, GoodProgressComponent],
|
|
51
51
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -98,9 +98,9 @@ export class GoodSearchComponent {
|
|
|
98
98
|
</div>
|
|
99
99
|
</dialog>
|
|
100
100
|
`,
|
|
101
|
-
host: { class: 'good-
|
|
101
|
+
host: { class: 'good-header-notification' },
|
|
102
102
|
})
|
|
103
|
-
export class
|
|
103
|
+
export class GoodHeaderNotificationComponent {
|
|
104
104
|
readonly items = input<readonly GoodNotification[]>([]);
|
|
105
105
|
readonly center = inject(GoodNotificationCenter);
|
|
106
106
|
readonly infoIcon = LucideInfo;
|
|
@@ -131,16 +131,16 @@ export class GoodNotificationsComponent {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
@Component({
|
|
134
|
-
selector: 'good-
|
|
134
|
+
selector: 'good-header-themetoggle',
|
|
135
135
|
standalone: true,
|
|
136
136
|
imports: [GoodIconComponent],
|
|
137
137
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
138
138
|
template: `<button type="button" class="good-action-button" [attr.aria-label]="label()" [attr.title]="label()" (click)="theme.cycle()">
|
|
139
139
|
<good-icon [name]="icon()" />
|
|
140
140
|
</button>`,
|
|
141
|
-
host: { class: 'good-
|
|
141
|
+
host: { class: 'good-header-themetoggle' },
|
|
142
142
|
})
|
|
143
|
-
export class
|
|
143
|
+
export class GoodHeaderThemeToggleComponent {
|
|
144
144
|
readonly theme = inject(GoodThemeService);
|
|
145
145
|
readonly icon = computed(() => ({ light: 'sun', system: 'monitor', dark: 'moon' } as const)[this.theme.preference()]);
|
|
146
146
|
readonly label = computed(() => `Appearance: ${this.theme.preference()}. Switch to ${{ light: 'system', system: 'dark', dark: 'light' }[this.theme.preference()]} mode`);
|
|
@@ -246,7 +246,7 @@ export class GoodAvatarMenuItemComponent {
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
@Component({
|
|
249
|
-
selector: 'good-avatar
|
|
249
|
+
selector: 'good-header-avatar',
|
|
250
250
|
standalone: true,
|
|
251
251
|
imports: [GoodAvatarMenuItemComponent],
|
|
252
252
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -270,9 +270,9 @@ export class GoodAvatarMenuItemComponent {
|
|
|
270
270
|
}
|
|
271
271
|
</div> }
|
|
272
272
|
`,
|
|
273
|
-
host: { class: 'good-avatar
|
|
273
|
+
host: { class: 'good-header-avatar' },
|
|
274
274
|
})
|
|
275
|
-
export class
|
|
275
|
+
export class GoodHeaderAvatarComponent {
|
|
276
276
|
readonly user = input<GoodUser | null>(null);
|
|
277
277
|
readonly actions = input<readonly GoodMenuAction[]>([]);
|
|
278
278
|
readonly open = signal(false);
|
|
@@ -291,22 +291,22 @@ export class GoodAvatarMenuComponent {
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
@Component({
|
|
294
|
-
selector: 'good-
|
|
294
|
+
selector: 'good-header-actions',
|
|
295
295
|
standalone: true,
|
|
296
|
-
imports: [
|
|
296
|
+
imports: [GoodHeaderSearchComponent, GoodHeaderNotificationComponent, GoodHeaderThemeToggleComponent, GoodSettingsComponent, GoodHeaderAvatarComponent],
|
|
297
297
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
298
298
|
template: `
|
|
299
299
|
<ng-content>
|
|
300
|
-
@if (showSearch()) { <good-search [items]="searchItems()" /> }
|
|
301
|
-
@if (showNotifications()) { <good-
|
|
302
|
-
@if (showThemeToggle()) { <good-
|
|
300
|
+
@if (showSearch()) { <good-header-search [items]="searchItems()" /> }
|
|
301
|
+
@if (showNotifications()) { <good-header-notification [items]="notifications()" /> }
|
|
302
|
+
@if (showThemeToggle()) { <good-header-themetoggle /> }
|
|
303
303
|
@if (showSettings()) { <good-settings [actions]="settingsActions()" /> }
|
|
304
|
-
@if (showAvatar()) { <good-avatar
|
|
304
|
+
@if (showAvatar()) { <good-header-avatar [user]="user()" [actions]="avatarActions()" /> }
|
|
305
305
|
</ng-content>
|
|
306
306
|
`,
|
|
307
|
-
host: { class: 'good-
|
|
307
|
+
host: { class: 'good-header-actions' },
|
|
308
308
|
})
|
|
309
|
-
export class
|
|
309
|
+
export class GoodHeaderActionsComponent {
|
|
310
310
|
readonly user = input<GoodUser | null>(null);
|
|
311
311
|
readonly notifications = input<readonly GoodNotification[]>([]);
|
|
312
312
|
readonly searchItems = input<readonly GoodSearchItem[]>([]);
|
|
@@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, ElementRef, inject, input, signal,
|
|
|
2
2
|
import { NavigationEnd, Router } from '@angular/router';
|
|
3
3
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
4
|
import { filter } from 'rxjs';
|
|
5
|
-
import {
|
|
5
|
+
import { GoodHeaderActionsComponent } from './actions';
|
|
6
6
|
import { GoodSidebarContainerComponent } from './sidebar';
|
|
7
7
|
import { GoodTopbarComponent, GoodTopbarMenuContainerComponent, GoodTopbarMobileMenuMode } from './topbar';
|
|
8
8
|
import { GoodMainViewComponent } from './main-view';
|
|
@@ -12,7 +12,7 @@ import { GoodNotificationHostComponent } from './notification-host';
|
|
|
12
12
|
@Component({
|
|
13
13
|
selector: 'good-app-layout',
|
|
14
14
|
standalone: true,
|
|
15
|
-
imports: [
|
|
15
|
+
imports: [GoodHeaderActionsComponent, GoodSidebarContainerComponent, GoodTopbarComponent, GoodTopbarMenuContainerComponent, GoodMainViewComponent, GoodNotificationHostComponent],
|
|
16
16
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
17
|
template: `
|
|
18
18
|
<good-sidebar-container class="good-desktop-sidebar" [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [sections]="sidebarSections()" [activeRoute]="activeRoute()" />
|
|
@@ -20,8 +20,8 @@ import { GoodNotificationHostComponent } from './notification-host';
|
|
|
20
20
|
<good-topbar [brand]="brand()" [brandLogoSrc]="brandLogoSrc()" [brandLogoDarkSrc]="brandLogoDarkSrc()" [brandMarkSrc]="brandMarkSrc()" [brandMarkDarkSrc]="brandMarkDarkSrc()" [showBrandIcon]="showBrandIcon()" [showMobileBrand]="showMobileBrand()" [items]="topbarItems()" [activeRoute]="activeRoute()" [mobileMenuMode]="mobileTopbarMenuMode()"
|
|
21
21
|
[user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()"
|
|
22
22
|
(menuToggle)="openDrawer()">
|
|
23
|
-
<ng-content select="good-
|
|
24
|
-
<good-
|
|
23
|
+
<ng-content select="good-header-actions" ngProjectAs="good-header-actions">
|
|
24
|
+
<good-header-actions [user]="user()" [notifications]="notifications()" [searchItems]="searchItems()" [settingsActions]="settingsActions()" [avatarActions]="avatarActions()" [showThemeToggle]="showThemeToggle()" [showSettings]="showSettings()" />
|
|
25
25
|
</ng-content>
|
|
26
26
|
</good-topbar>
|
|
27
27
|
<div class="good-app-page"><ng-content /></div>
|