@cloudfrogger/goodui 0.0.72 → 0.0.74
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 +6 -0
- package/ai/catalog/components/good-form-row.json +16 -1
- package/ai/catalog/components/good-group.json +1 -2
- package/ai/catalog/components/good-header-themetoggle.json +1 -8
- package/ai/catalog/components/good-heading-2.json +3 -1
- package/ai/catalog/components/good-heading-group.json +3 -1
- package/ai/catalog/components/good-section.json +49 -1
- package/ai/catalog/components/good-table.json +55 -0
- package/ai/catalog/index.json +6 -6
- package/ai/examples/settings.html +3 -2
- package/ai/examples/settings.ts +2 -2
- package/ai/guides/common-mistakes.md +6 -0
- package/ai/guides/layout.md +4 -2
- package/ai/guides/page-patterns.md +7 -1
- package/ai/manifest.json +2 -2
- package/ai/skill/goodui/SKILL.md +12 -2
- package/angular/projects/goodui/package.json +1 -1
- package/angular/projects/goodui/src/lib/actions.ts +4 -4
- package/angular/projects/goodui/src/lib/group.ts +1 -1
- package/angular/projects/goodui/src/lib/table.ts +6 -1
- package/angular/projects/goodui/src/lib/theme.ts +1 -2
- package/angular/projects/goodui/src/lib/typography.ts +4 -1
- package/angular/projects/goodui/src/styles.css +30 -2
- package/design/component-map.json +44 -8
- package/design/settings-layout-contract.json +166 -0
- package/design/typography-components.json +2 -1
- package/design.md +4 -3
- package/fesm2022/cloudfrogger-goodui.mjs +28 -21
- package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
- package/guides/components/group.md +18 -0
- package/guides/components/header-themetoggle.md +3 -3
- package/guides/components/main-view.md +4 -0
- package/guides/components/settings.md +2 -0
- package/guides/components/table.md +8 -0
- package/guides/components/typography.md +23 -0
- package/guides/contributing/design-to-code.md +16 -1
- package/guides/layout/screen-design.md +63 -0
- package/homepage/src/app/examples/settings/settings-page.html +112 -0
- package/homepage/src/app/examples/settings/settings-page.ts +133 -0
- package/homepage/src/app/examples/settings/source-code.generated.ts +3 -0
- package/package.json +2 -2
- package/styles.css +1 -1
- package/types/cloudfrogger-goodui.d.ts +10 -4
|
@@ -1240,13 +1240,6 @@
|
|
|
1240
1240
|
"kind": "component",
|
|
1241
1241
|
"state": "light"
|
|
1242
1242
|
},
|
|
1243
|
-
{
|
|
1244
|
-
"penpotName": "goodui.theme-toggle.system",
|
|
1245
|
-
"penpotId": "f52a309e-8b45-80e4-8008-d86c7bab8421",
|
|
1246
|
-
"angularSelector": "good-header-themetoggle",
|
|
1247
|
-
"kind": "component",
|
|
1248
|
-
"state": "system"
|
|
1249
|
-
},
|
|
1250
1243
|
{
|
|
1251
1244
|
"penpotName": "goodui.theme-toggle.dark",
|
|
1252
1245
|
"penpotId": "f52a309e-8b45-80e4-8008-d86c7c8f020f",
|
|
@@ -2195,6 +2188,48 @@
|
|
|
2195
2188
|
"angularSelector": "good-header-actions",
|
|
2196
2189
|
"kind": "component",
|
|
2197
2190
|
"state": "search-hotkey"
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
"penpotName": "goodui.section.settings",
|
|
2194
|
+
"penpotId": "489901a3-7f15-8049-8008-fc89e6cf3bc1",
|
|
2195
|
+
"angularSelector": "good-section",
|
|
2196
|
+
"kind": "component",
|
|
2197
|
+
"state": "settings"
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
"penpotName": "goodui.section.settings-danger",
|
|
2201
|
+
"penpotId": "489901a3-7f15-8049-8008-fc89ecca52fa",
|
|
2202
|
+
"angularSelector": "good-section",
|
|
2203
|
+
"kind": "component",
|
|
2204
|
+
"state": "settings-danger"
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
"penpotName": "goodui.table.embedded-default",
|
|
2208
|
+
"penpotId": "489901a3-7f15-8049-8008-fc89ece41d55",
|
|
2209
|
+
"angularSelector": "good-table",
|
|
2210
|
+
"kind": "component",
|
|
2211
|
+
"state": "embedded-default"
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
"penpotName": "goodui.table.embedded-compact",
|
|
2215
|
+
"penpotId": "489901a3-7f15-8049-8008-fc89ed012d9b",
|
|
2216
|
+
"angularSelector": "good-table",
|
|
2217
|
+
"kind": "component",
|
|
2218
|
+
"state": "embedded-compact"
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
"penpotName": "goodui.form-row.3-actions",
|
|
2222
|
+
"penpotId": "489901a3-7f15-8049-8008-fc8a65b2f013",
|
|
2223
|
+
"angularSelector": "good-form-row",
|
|
2224
|
+
"kind": "component",
|
|
2225
|
+
"state": "3-actions"
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
"penpotName": "goodui.form-row.3-actions-mobile",
|
|
2229
|
+
"penpotId": "489901a3-7f15-8049-8008-fc8a672942eb",
|
|
2230
|
+
"angularSelector": "good-form-row",
|
|
2231
|
+
"kind": "component",
|
|
2232
|
+
"state": "3-actions-mobile"
|
|
2198
2233
|
}
|
|
2199
2234
|
],
|
|
2200
2235
|
"variantManifests": [
|
|
@@ -2236,7 +2271,8 @@
|
|
|
2236
2271
|
"design/rich-text-contract.json",
|
|
2237
2272
|
"design/color-controls-contract.json",
|
|
2238
2273
|
"design/world-map-contract.json",
|
|
2239
|
-
"design/header-search-variants.json"
|
|
2274
|
+
"design/header-search-variants.json",
|
|
2275
|
+
"design/settings-layout-contract.json"
|
|
2240
2276
|
],
|
|
2241
2277
|
"angularSelectorOverrides": {
|
|
2242
2278
|
"main-menu": "good-header-actions",
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"page": "44 Settings",
|
|
3
|
+
"pageId": "489901a3-7f15-8049-8008-fc89a1713350",
|
|
4
|
+
"components": [
|
|
5
|
+
{
|
|
6
|
+
"penpotName": "goodui.section.settings",
|
|
7
|
+
"penpotId": "489901a3-7f15-8049-8008-fc89e6cf3bc1",
|
|
8
|
+
"angularSelector": "good-section",
|
|
9
|
+
"kind": "component",
|
|
10
|
+
"state": "settings",
|
|
11
|
+
"shapeId": "489901a3-7f15-8049-8008-fc89e107d22d",
|
|
12
|
+
"semantics": "layout=settings;appearance=default"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"penpotName": "goodui.section.settings-danger",
|
|
16
|
+
"penpotId": "489901a3-7f15-8049-8008-fc89ecca52fa",
|
|
17
|
+
"angularSelector": "good-section",
|
|
18
|
+
"kind": "component",
|
|
19
|
+
"state": "settings-danger",
|
|
20
|
+
"shapeId": "489901a3-7f15-8049-8008-fc89e6d13c61",
|
|
21
|
+
"semantics": "layout=settings;appearance=danger"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"penpotName": "goodui.table.embedded-default",
|
|
25
|
+
"penpotId": "489901a3-7f15-8049-8008-fc89ece41d55",
|
|
26
|
+
"angularSelector": "good-table",
|
|
27
|
+
"kind": "component",
|
|
28
|
+
"state": "embedded-default",
|
|
29
|
+
"shapeId": "489901a3-7f15-8049-8008-fc89eccc38ae",
|
|
30
|
+
"semantics": "frameAppearance=none;density=default"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"penpotName": "goodui.table.embedded-compact",
|
|
34
|
+
"penpotId": "489901a3-7f15-8049-8008-fc89ed012d9b",
|
|
35
|
+
"angularSelector": "good-table",
|
|
36
|
+
"kind": "component",
|
|
37
|
+
"state": "embedded-compact",
|
|
38
|
+
"shapeId": "489901a3-7f15-8049-8008-fc89ece7b0ea",
|
|
39
|
+
"semantics": "frameAppearance=none;density=compact"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"penpotName": "goodui.form-row.3-actions",
|
|
43
|
+
"penpotId": "489901a3-7f15-8049-8008-fc8a65b2f013",
|
|
44
|
+
"angularSelector": "good-form-row",
|
|
45
|
+
"kind": "component",
|
|
46
|
+
"state": "3-actions",
|
|
47
|
+
"shapeId": "489901a3-7f15-8049-8008-fc8a641a728f",
|
|
48
|
+
"semantics": "columns=3;actions"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"penpotName": "goodui.form-row.3-actions-mobile",
|
|
52
|
+
"penpotId": "489901a3-7f15-8049-8008-fc8a672942eb",
|
|
53
|
+
"angularSelector": "good-form-row",
|
|
54
|
+
"kind": "component",
|
|
55
|
+
"state": "3-actions-mobile",
|
|
56
|
+
"shapeId": "489901a3-7f15-8049-8008-fc8a65b6c7d9",
|
|
57
|
+
"semantics": "columns=3;actions;mobile"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"angular": {
|
|
61
|
+
"good-section": {
|
|
62
|
+
"inputs": {
|
|
63
|
+
"layout": [
|
|
64
|
+
"default",
|
|
65
|
+
"settings"
|
|
66
|
+
],
|
|
67
|
+
"appearance": [
|
|
68
|
+
"default",
|
|
69
|
+
"danger"
|
|
70
|
+
],
|
|
71
|
+
"spacing": [
|
|
72
|
+
"default",
|
|
73
|
+
"content"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"projection": [
|
|
77
|
+
"good-heading-group",
|
|
78
|
+
"[good-section-actions]",
|
|
79
|
+
"*"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"good-table": {
|
|
83
|
+
"inputs": {
|
|
84
|
+
"frameAppearance": [
|
|
85
|
+
"default",
|
|
86
|
+
"none"
|
|
87
|
+
],
|
|
88
|
+
"density": [
|
|
89
|
+
"default",
|
|
90
|
+
"compact",
|
|
91
|
+
null
|
|
92
|
+
],
|
|
93
|
+
"searchTerm": "string"
|
|
94
|
+
},
|
|
95
|
+
"note": "Legacy tableStyle=compact selects compact density unless density is explicit. Existing Table variant IDs are preserved."
|
|
96
|
+
},
|
|
97
|
+
"good-form-row": {
|
|
98
|
+
"inputs": {
|
|
99
|
+
"columns": [
|
|
100
|
+
2,
|
|
101
|
+
3
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"projection": [
|
|
105
|
+
"good-form-field",
|
|
106
|
+
"[good-form-row-actions]"
|
|
107
|
+
],
|
|
108
|
+
"breakpoints": {
|
|
109
|
+
"twoColumns": 700,
|
|
110
|
+
"oneColumn": 500
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"good-main-view": {
|
|
114
|
+
"mobileActions": "Actions follow the full-width heading at viewport widths of 640 px and below."
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"examples": [
|
|
118
|
+
{
|
|
119
|
+
"name": "example.settings.overview-desktop",
|
|
120
|
+
"id": "489901a3-7f15-8049-8008-fc8aa7c53294",
|
|
121
|
+
"width": 1440,
|
|
122
|
+
"mode": "overview"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "example.settings.overview-mobile",
|
|
126
|
+
"id": "489901a3-7f15-8049-8008-fc8ac703f99e",
|
|
127
|
+
"width": 390,
|
|
128
|
+
"mode": "overview"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "example.settings.read-desktop",
|
|
132
|
+
"id": "489901a3-7f15-8049-8008-fc8af508e286",
|
|
133
|
+
"width": 1440,
|
|
134
|
+
"mode": "read"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "example.settings.read-mobile",
|
|
138
|
+
"id": "489901a3-7f15-8049-8008-fc8b560d5f14",
|
|
139
|
+
"width": 390,
|
|
140
|
+
"mode": "read"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "example.settings.edit-desktop",
|
|
144
|
+
"id": "489901a3-7f15-8049-8008-fc8b9d74f56b",
|
|
145
|
+
"width": 1440,
|
|
146
|
+
"mode": "edit"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "example.settings.edit-mobile",
|
|
150
|
+
"id": "489901a3-7f15-8049-8008-fc8c1d32a7a3",
|
|
151
|
+
"width": 390,
|
|
152
|
+
"mode": "edit"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"composition": "The example owns detached AppShell, Section, HeadingGroup, and runtime Table composition frames so projected children and runtime cell content can vary. Sidebar, Header, Heading, Summary, FormField, Input, Button, and repeated FormRow components remain linked. Library embedded Table components preserve linked Badge, Switch, and ActionMenu specimens. No domain behavior belongs to the reusable components.",
|
|
156
|
+
"homepage": "homepage/src/app/examples/settings/settings-page.html",
|
|
157
|
+
"prototype": {
|
|
158
|
+
"navigation": [
|
|
159
|
+
"overview -> read",
|
|
160
|
+
"read -> edit",
|
|
161
|
+
"edit -> read (Save or Cancel)",
|
|
162
|
+
"read/edit breadcrumb -> overview"
|
|
163
|
+
],
|
|
164
|
+
"note": "Penpot demonstrates navigation with sample content. Filtering, validation, draft changes, saving, removal, and archive confirmation run in the Angular example."
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -61,7 +61,8 @@
|
|
|
61
61
|
"typography.section.content.subsection-gap",
|
|
62
62
|
"typography.section.content.section-gap"
|
|
63
63
|
],
|
|
64
|
-
"note": "Default preserves compact spacing and its original library ID. Content owns 24 px direct block gaps, 12 px after headings, 40 px before later headings, and 48 px between adjacent content Sections. Prose retains its 20 px paragraph gap; images retain their caption gap. Set spacing explicitly on nested Sections."
|
|
64
|
+
"note": "Default preserves compact spacing and its original library ID. Content owns 24 px direct block gaps, 12 px after headings, 40 px before later headings, and 48 px between adjacent content Sections. Prose retains its 20 px paragraph gap; images retain their caption gap. Set spacing explicitly on nested Sections.",
|
|
65
|
+
"settingsContract": "design/settings-layout-contract.json"
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
"family": "prose",
|
package/design.md
CHANGED
|
@@ -23,12 +23,13 @@ The nested sidebar lets “My Account” expand to “Account Home,” which exp
|
|
|
23
23
|
| Header dropdown | Help panel 220 px wide under topbar; 34 px rows, 2 px row gap, 6 px radius | `HeaderDropdownMenu` owns panel, divider, and rows |
|
|
24
24
|
| Header submenu | Support Forum panel 218 × 124 px; 4 px gap from parent, aligned with trigger row | `HeaderSubmenu` owns the next level and flips at the viewport edge |
|
|
25
25
|
| Avatar menu | About 250 × 384 px account panel under the avatar; 40 px rows, 36 px identity image, 8 px panel radius | `AvatarMenu` owns identity, row spacing, nested menus, appearance switch, and sign-out area |
|
|
26
|
-
| Main view | 20 px top and 30 px horizontal padding below topbar; 24 px horizontal on mobile | `MainView` owns page container and optional heading. `layout=fill` removes workspace padding but keeps that inset on an optional heading; an omitted heading lets the workspace touch the topbar. |
|
|
26
|
+
| Main view | 20 px top and 30 px horizontal padding below topbar; 24 px horizontal on mobile | `MainView` owns page container and optional heading; actions move below the full-width heading at 640 px and below. `layout=fill` removes workspace padding but keeps that inset on an optional heading; an omitted heading lets the workspace touch the topbar. |
|
|
27
27
|
| Subnav | 60 px desktop, 44 px mobile; active 2 px underline; one scrollable row | `Subnav` owns the section strip, item spacing, horizontal scroll, and dropdown position |
|
|
28
28
|
| Button | 32/40/48 px high by size, 6 px radius; optional leading Lucide icon or icon-only square | `Button` owns padding, border, focus, disabled state, and hit area |
|
|
29
29
|
| Action group | 8/12/16 px token gaps; horizontal wrap or vertical stack | `ActionGroup` owns spacing and alignment between related controls |
|
|
30
30
|
| Action bar | Full-width strip above a workspace, with grouped icon-over-label commands and right-side tools | `ActionBar` composes Button, ActionGroup, and Dropdown; it keeps important commands visible and moves other commands to More. `MainView` owns an optional fixed toolbar slot above its fill content. Penpot publication is pending a working plugin connection. |
|
|
31
|
-
| Group and FormRow | Light outline, plain, or contrast group with optional inset title; 16 px default child gap and optional 4 px tight gap; equal-width two or three column fields | `Group` owns frame, heading, padding, and vertical rhythm; `FormRow` owns responsive horizontal field layout |
|
|
31
|
+
| Group and FormRow | Light outline, plain, or contrast group with optional inset title; 16 px default child gap and optional 4 px tight gap; equal-width two or three column fields | `Group` owns frame, heading, padding, and vertical rhythm; `FormRow` owns responsive horizontal field layout and an optional intrinsic-width `[good-form-row-actions]` track |
|
|
32
|
+
| Settings sections | Borderless page sections with a title, short description, wrapping action area, 24 px vertical padding, and quiet dividers | `Section layout=settings` owns local actions and rhythm; `appearance=danger` accents only the heading. MainView owns page actions; application code owns read/edit drafts and confirmation. |
|
|
32
33
|
| Detail list | Compact semantic label/value rows with aligned tabular values | `DetailList` renders a native description list; `div[goodDetailRow]` contains one `dt` and `dd`. The family is published on `12 Typography`. |
|
|
33
34
|
| Card | 1 px border, 12 px outer radius; optional 64 px header, 144 px image header, and footer | `Card` owns frame, clipping, content padding, and section dividers; Header and Footer own their internal flow |
|
|
34
35
|
| Mobile Card and framed Group | 12 px inner side padding at 640 px and below; 16 px Group and Card body vertical padding; optional 8 px bleed on both sides | `Card` and `Group` own their compact spacing and opt-in `mobileBleed`; `MainView` keeps its 24 px mobile side margins |
|
|
@@ -43,7 +44,7 @@ The nested sidebar lets “My Account” expand to “Account Home,” which exp
|
|
|
43
44
|
| Checkbox | 16/20/24 px box; 44 × 44 px minimum hit area | `Checkbox` owns the native input, three-state transition, mark, focus, and disabled presentation |
|
|
44
45
|
| Radio group | 16/20/24 px circular indicators; 44 px minimum choice height | `RadioGroup` owns the native fieldset, legend, exclusive selection, option flow, focus, and disabled presentation |
|
|
45
46
|
| Rating | 16/20/24 px Lucide symbols in 32/40/48 px targets; 4 px gap | `Rating` owns a one-through-count score, native radio selection, display-only semantics, and disabled presentation |
|
|
46
|
-
| Table |
|
|
47
|
+
| Table | Independent frame and density, four legacy styles, external search, default column reordering, responsive column visibility, optional search and pagination, opt-in single selection, and data-driven row emphasis | `Table` owns data rendering, column order and drag handles, sort/filter/page controls, stable row selection by ID, keyboard row focus, selected-row highlighting, and optional bold row text; cell controls retain their own actions. |
|
|
47
48
|
| Line chart | Responsive multi-series SVG plot on a GoodUI Card, with typed sources, declarative axes and lines, and an optional Table view | `LineChart` owns plotting, legend, theme-aware marker/highlight palette, optional `colors` array, icon data toggle, and validation. `ChartAxis` and `ChartLine` configure it declaratively. `GoodChartDataSource` is the common 1D/2D/3D row contract; time bucketing requires explicit aggregation. Penpot page `42 Charts` publishes the chart and configuration specimens. |
|
|
48
49
|
| Bar chart | Responsive grouped bars on a GoodUI Card, vertical by default and optionally horizontal, with the same typed sources, axes, palette API, and Table view | `BarChart` owns grouped bars, the marker/highlight palette, and a zero baseline. `ChartAxis` and `ChartBar` configure it declaratively. `orientation=horizontal` rotates the plot without changing source keys or logical axis tags. Multiple sources share category positions and use the same validation and time aggregation as LineChart. Penpot page `42 Charts` publishes both orientations. |
|
|
49
50
|
| Histogram | Equal-width count intervals from raw numeric observations on a GoodUI Card | `Histogram` owns shared bins across all declared sources, adjacent bars, a count axis, legend, marker palette, optional Table view, and validation. `ChartAxis` and `ChartHistogram` configure it declaratively. Bins use lower-inclusive boundaries and include the upper bound in the final bin. Penpot page `42 Charts` publishes the chart and series specimens. |
|