@cloudfrogger/goodui 0.0.59 → 0.0.62
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/README.md +10 -0
- package/ai/README.md +47 -0
- package/ai/case-studies/index.md +10 -0
- package/ai/case-studies/vpshoster.md +18 -0
- package/ai/case-studies/webmailer.md +21 -0
- package/ai/catalog/README.md +7 -0
- package/ai/catalog/component.schema.json +289 -0
- package/ai/catalog/components/div-goodDetailRow.json +33 -0
- package/ai/catalog/components/form-goodForm.json +84 -0
- package/ai/catalog/components/good-action-bar.json +83 -0
- package/ai/catalog/components/good-action-group.json +143 -0
- package/ai/catalog/components/good-action-menu.json +121 -0
- package/ai/catalog/components/good-alert.json +184 -0
- package/ai/catalog/components/good-app-layout.json +245 -0
- package/ai/catalog/components/good-assistant-body.json +43 -0
- package/ai/catalog/components/good-assistant-footer.json +43 -0
- package/ai/catalog/components/good-assistant-header.json +43 -0
- package/ai/catalog/components/good-assistant-main.json +61 -0
- package/ai/catalog/components/good-assistant-mobile.json +43 -0
- package/ai/catalog/components/good-assistant-panel.json +131 -0
- package/ai/catalog/components/good-avatar-menu-item.json +82 -0
- package/ai/catalog/components/good-avatar-menu.json +83 -0
- package/ai/catalog/components/good-badge.json +180 -0
- package/ai/catalog/components/good-bar-chart.json +118 -0
- package/ai/catalog/components/good-brand-icon.json +71 -0
- package/ai/catalog/components/good-breadcrumbs.json +102 -0
- package/ai/catalog/components/good-button.json +192 -0
- package/ai/catalog/components/good-calendar.json +430 -0
- package/ai/catalog/components/good-card-footer.json +63 -0
- package/ai/catalog/components/good-card-header.json +100 -0
- package/ai/catalog/components/good-card.json +57 -0
- package/ai/catalog/components/good-chart-axis.json +168 -0
- package/ai/catalog/components/good-chart-bar.json +89 -0
- package/ai/catalog/components/good-chart-histogram.json +78 -0
- package/ai/catalog/components/good-chart-line.json +89 -0
- package/ai/catalog/components/good-chart-scatter.json +87 -0
- package/ai/catalog/components/good-checkbox.json +171 -0
- package/ai/catalog/components/good-citation.json +62 -0
- package/ai/catalog/components/good-code-block.json +116 -0
- package/ai/catalog/components/good-color-controls.json +58 -0
- package/ai/catalog/components/good-color-picker.json +141 -0
- package/ai/catalog/components/good-column.json +53 -0
- package/ai/catalog/components/good-columns.json +77 -0
- package/ai/catalog/components/good-date-input.json +386 -0
- package/ai/catalog/components/good-detail-list.json +43 -0
- package/ai/catalog/components/good-dropdown.json +259 -0
- package/ai/catalog/components/good-error-page.json +133 -0
- package/ai/catalog/components/good-error-text.json +43 -0
- package/ai/catalog/components/good-expandable.json +159 -0
- package/ai/catalog/components/good-eyebrow.json +61 -0
- package/ai/catalog/components/good-field-label.json +62 -0
- package/ai/catalog/components/good-form-field.json +67 -0
- package/ai/catalog/components/good-form-row.json +70 -0
- package/ai/catalog/components/good-group.json +150 -0
- package/ai/catalog/components/good-heading-group.json +45 -0
- package/ai/catalog/components/good-heading.json +69 -0
- package/ai/catalog/components/good-hint.json +43 -0
- package/ai/catalog/components/good-histogram.json +103 -0
- package/ai/catalog/components/good-icon.json +97 -0
- package/ai/catalog/components/good-image-input.json +190 -0
- package/ai/catalog/components/good-image-preview.json +97 -0
- package/ai/catalog/components/good-inline-image.json +131 -0
- package/ai/catalog/components/good-input-phone.json +226 -0
- package/ai/catalog/components/good-input.json +350 -0
- package/ai/catalog/components/good-line-chart.json +94 -0
- package/ai/catalog/components/good-link.json +147 -0
- package/ai/catalog/components/good-listbox.json +248 -0
- package/ai/catalog/components/good-main-menu.json +138 -0
- package/ai/catalog/components/good-main-view.json +179 -0
- package/ai/catalog/components/good-map-color-scale.json +163 -0
- package/ai/catalog/components/good-map-overlay.json +136 -0
- package/ai/catalog/components/good-modal-footer.json +63 -0
- package/ai/catalog/components/good-modal-header.json +73 -0
- package/ai/catalog/components/good-modal.json +131 -0
- package/ai/catalog/components/good-month-calendar.json +170 -0
- package/ai/catalog/components/good-notification-host.json +46 -0
- package/ai/catalog/components/good-notifications.json +72 -0
- package/ai/catalog/components/good-number-input.json +180 -0
- package/ai/catalog/components/good-paragraph.json +47 -0
- package/ai/catalog/components/good-pdf-preview.json +153 -0
- package/ai/catalog/components/good-pin-input.json +211 -0
- package/ai/catalog/components/good-progress.json +158 -0
- package/ai/catalog/components/good-prose.json +43 -0
- package/ai/catalog/components/good-radio-group.json +181 -0
- package/ai/catalog/components/good-range-slider.json +285 -0
- package/ai/catalog/components/good-rating.json +160 -0
- package/ai/catalog/components/good-resizable-pane.json +61 -0
- package/ai/catalog/components/good-resizable.json +185 -0
- package/ai/catalog/components/good-rich-text-editor.json +164 -0
- package/ai/catalog/components/good-scatter-chart.json +94 -0
- package/ai/catalog/components/good-search.json +60 -0
- package/ai/catalog/components/good-section.json +43 -0
- package/ai/catalog/components/good-select-country.json +205 -0
- package/ai/catalog/components/good-select-font.json +111 -0
- package/ai/catalog/components/good-select.json +217 -0
- package/ai/catalog/components/good-separator.json +59 -0
- package/ai/catalog/components/good-settings.json +60 -0
- package/ai/catalog/components/good-sidebar-container.json +112 -0
- package/ai/catalog/components/good-sidebar-item.json +210 -0
- package/ai/catalog/components/good-sidebar-menu-container.json +80 -0
- package/ai/catalog/components/good-sidebar-submenu-group.json +98 -0
- package/ai/catalog/components/good-sidebar-submenu-item.json +113 -0
- package/ai/catalog/components/good-signature-pad.json +115 -0
- package/ai/catalog/components/good-sparkline.json +188 -0
- package/ai/catalog/components/good-status-icon.json +425 -0
- package/ai/catalog/components/good-subheading.json +67 -0
- package/ai/catalog/components/good-subnav.json +132 -0
- package/ai/catalog/components/good-summary.json +43 -0
- package/ai/catalog/components/good-switch.json +167 -0
- package/ai/catalog/components/good-tab.json +129 -0
- package/ai/catalog/components/good-table.json +294 -0
- package/ai/catalog/components/good-tabs.json +90 -0
- package/ai/catalog/components/good-textarea.json +194 -0
- package/ai/catalog/components/good-theme-toggle.json +57 -0
- package/ai/catalog/components/good-timeline-section.json +105 -0
- package/ai/catalog/components/good-timeline-step.json +248 -0
- package/ai/catalog/components/good-timeline.json +302 -0
- package/ai/catalog/components/good-topbar-dropdown-item.json +115 -0
- package/ai/catalog/components/good-topbar-dropdown-menu.json +85 -0
- package/ai/catalog/components/good-topbar-menu-container.json +96 -0
- package/ai/catalog/components/good-topbar-menu-item.json +99 -0
- package/ai/catalog/components/good-topbar-submenu.json +77 -0
- package/ai/catalog/components/good-topbar.json +259 -0
- package/ai/catalog/components/good-world-map.json +145 -0
- package/ai/catalog/components/goodCardActions.json +33 -0
- package/ai/catalog/components/goodDropdownFooter.json +33 -0
- package/ai/catalog/components/goodDropdownHeader.json +33 -0
- package/ai/catalog/components/goodExpandableHeader.json +33 -0
- package/ai/catalog/components/ng-template-goodListboxItem.json +33 -0
- package/ai/catalog/components/ng-template-goodTableCell.json +43 -0
- package/ai/catalog/index.json +1484 -0
- package/ai/catalog/index.schema.json +13 -0
- package/ai/examples/angular.json +26 -0
- package/ai/examples/edit-form.html +13 -0
- package/ai/examples/edit-form.ts +18 -0
- package/ai/examples/index.html +1 -0
- package/ai/examples/login.html +11 -0
- package/ai/examples/login.ts +14 -0
- package/ai/examples/main.ts +25 -0
- package/ai/examples/settings.html +10 -0
- package/ai/examples/settings.ts +13 -0
- package/ai/examples/table-view.html +3 -0
- package/ai/examples/table-view.ts +21 -0
- package/ai/examples/tsconfig.json +27 -0
- package/ai/guides/common-mistakes.md +9 -0
- package/ai/guides/component-discovery.md +17 -0
- package/ai/guides/design-tokens.md +10 -0
- package/ai/guides/layout.md +17 -0
- package/ai/guides/page-patterns.md +39 -0
- package/ai/install.mjs +25 -0
- package/ai/manifest.json +6 -0
- package/ai/skill/goodui/SKILL.md +27 -0
- package/angular/projects/goodui/package.json +28 -0
- package/angular/projects/goodui/src/action-bar.css +20 -0
- package/angular/projects/goodui/src/assistant-panel.css +38 -0
- package/angular/projects/goodui/src/calendar.css +161 -0
- package/angular/projects/goodui/src/chart.css +35 -0
- package/angular/projects/goodui/src/color-picker.css +40 -0
- package/angular/projects/goodui/src/error-page.css +24 -0
- package/angular/projects/goodui/src/lib/action-bar.ts +161 -0
- package/angular/projects/goodui/src/lib/action-group.ts +31 -0
- package/angular/projects/goodui/src/lib/action-menu.ts +81 -0
- package/angular/projects/goodui/src/lib/actions.ts +318 -0
- package/angular/projects/goodui/src/lib/alert.ts +60 -0
- package/angular/projects/goodui/src/lib/app-layout.ts +79 -0
- package/angular/projects/goodui/src/lib/assistant-panel.ts +133 -0
- package/angular/projects/goodui/src/lib/badge.ts +47 -0
- package/angular/projects/goodui/src/lib/bar-chart.html +80 -0
- package/angular/projects/goodui/src/lib/bar-chart.ts +233 -0
- package/angular/projects/goodui/src/lib/breadcrumbs.ts +81 -0
- package/angular/projects/goodui/src/lib/button.ts +38 -0
- package/angular/projects/goodui/src/lib/calendar-layout.ts +68 -0
- package/angular/projects/goodui/src/lib/calendar-service.ts +144 -0
- package/angular/projects/goodui/src/lib/calendar-working-hours.ts +65 -0
- package/angular/projects/goodui/src/lib/calendar.html +200 -0
- package/angular/projects/goodui/src/lib/calendar.ts +471 -0
- package/angular/projects/goodui/src/lib/card.ts +64 -0
- package/angular/projects/goodui/src/lib/chart-colors.ts +22 -0
- package/angular/projects/goodui/src/lib/chart-data.ts +269 -0
- package/angular/projects/goodui/src/lib/checkbox.ts +87 -0
- package/angular/projects/goodui/src/lib/code-block.ts +147 -0
- package/angular/projects/goodui/src/lib/color-controls.ts +107 -0
- package/angular/projects/goodui/src/lib/color-picker.ts +142 -0
- package/angular/projects/goodui/src/lib/color-utils.ts +69 -0
- package/angular/projects/goodui/src/lib/country-data.ts +16 -0
- package/angular/projects/goodui/src/lib/date-input.ts +542 -0
- package/angular/projects/goodui/src/lib/dropdown.ts +309 -0
- package/angular/projects/goodui/src/lib/error-page.ts +46 -0
- package/angular/projects/goodui/src/lib/expandable.ts +64 -0
- package/angular/projects/goodui/src/lib/form.ts +12 -0
- package/angular/projects/goodui/src/lib/goodui-config.ts +16 -0
- package/angular/projects/goodui/src/lib/group.ts +45 -0
- package/angular/projects/goodui/src/lib/histogram.html +52 -0
- package/angular/projects/goodui/src/lib/histogram.ts +146 -0
- package/angular/projects/goodui/src/lib/icon.ts +44 -0
- package/angular/projects/goodui/src/lib/image-input.ts +154 -0
- package/angular/projects/goodui/src/lib/image-preview.ts +26 -0
- package/angular/projects/goodui/src/lib/input-phone.ts +305 -0
- package/angular/projects/goodui/src/lib/input.ts +143 -0
- package/angular/projects/goodui/src/lib/line-chart.html +53 -0
- package/angular/projects/goodui/src/lib/line-chart.ts +193 -0
- package/angular/projects/goodui/src/lib/link.ts +46 -0
- package/angular/projects/goodui/src/lib/listbox.ts +254 -0
- package/angular/projects/goodui/src/lib/main-view.ts +39 -0
- package/angular/projects/goodui/src/lib/marker-colors.ts +7 -0
- package/angular/projects/goodui/src/lib/modal.ts +199 -0
- package/angular/projects/goodui/src/lib/models.ts +115 -0
- package/angular/projects/goodui/src/lib/month-calendar.ts +289 -0
- package/angular/projects/goodui/src/lib/notification-center.ts +170 -0
- package/angular/projects/goodui/src/lib/notification-host.ts +86 -0
- package/angular/projects/goodui/src/lib/number-input.ts +180 -0
- package/angular/projects/goodui/src/lib/pdf-preview.ts +242 -0
- package/angular/projects/goodui/src/lib/pdf-worker.generated.ts +2 -0
- package/angular/projects/goodui/src/lib/pin-input.ts +193 -0
- package/angular/projects/goodui/src/lib/progress.ts +93 -0
- package/angular/projects/goodui/src/lib/provide-goodui.ts +15 -0
- package/angular/projects/goodui/src/lib/radio-group.ts +94 -0
- package/angular/projects/goodui/src/lib/range-slider.ts +313 -0
- package/angular/projects/goodui/src/lib/rating.ts +90 -0
- package/angular/projects/goodui/src/lib/required-control.ts +4 -0
- package/angular/projects/goodui/src/lib/resizable.ts +168 -0
- package/angular/projects/goodui/src/lib/rich-text-command.ts +111 -0
- package/angular/projects/goodui/src/lib/rich-text-editor.html +193 -0
- package/angular/projects/goodui/src/lib/rich-text-editor.ts +864 -0
- package/angular/projects/goodui/src/lib/rich-text-sanitize.ts +99 -0
- package/angular/projects/goodui/src/lib/scatter-chart.html +48 -0
- package/angular/projects/goodui/src/lib/scatter-chart.ts +150 -0
- package/angular/projects/goodui/src/lib/select-country.ts +104 -0
- package/angular/projects/goodui/src/lib/select-font.ts +189 -0
- package/angular/projects/goodui/src/lib/select.ts +336 -0
- package/angular/projects/goodui/src/lib/sidebar.ts +232 -0
- package/angular/projects/goodui/src/lib/signature-pad.ts +238 -0
- package/angular/projects/goodui/src/lib/sparkline.html +15 -0
- package/angular/projects/goodui/src/lib/sparkline.ts +106 -0
- package/angular/projects/goodui/src/lib/status-icon.ts +79 -0
- package/angular/projects/goodui/src/lib/subnav.ts +156 -0
- package/angular/projects/goodui/src/lib/switch.ts +54 -0
- package/angular/projects/goodui/src/lib/table.ts +538 -0
- package/angular/projects/goodui/src/lib/tabs.ts +251 -0
- package/angular/projects/goodui/src/lib/textarea.ts +83 -0
- package/angular/projects/goodui/src/lib/theme.ts +49 -0
- package/angular/projects/goodui/src/lib/timeline.ts +252 -0
- package/angular/projects/goodui/src/lib/topbar.ts +402 -0
- package/angular/projects/goodui/src/lib/typography.ts +250 -0
- package/angular/projects/goodui/src/lib/world-map-data.ts +3 -0
- package/angular/projects/goodui/src/lib/world-map.html +73 -0
- package/angular/projects/goodui/src/lib/world-map.ts +391 -0
- package/angular/projects/goodui/src/month-calendar.css +47 -0
- package/angular/projects/goodui/src/pdf-preview.css +25 -0
- package/angular/projects/goodui/src/progress.css +38 -0
- package/angular/projects/goodui/src/public-api.ts +74 -0
- package/angular/projects/goodui/src/range-slider.css +54 -0
- package/angular/projects/goodui/src/resizable.css +32 -0
- package/angular/projects/goodui/src/rich-text-editor.css +33 -0
- package/angular/projects/goodui/src/select-font.css +16 -0
- package/angular/projects/goodui/src/signature-pad.css +14 -0
- package/angular/projects/goodui/src/styles.css +1105 -0
- package/angular/projects/goodui/src/timeline.css +138 -0
- package/angular/projects/goodui/src/tokens.generated.css +754 -0
- package/design/component-map.json +2233 -0
- package/design-tokens/penpot.tokens.json +3339 -0
- package/design.md +452 -0
- package/guides/README.md +17 -0
- package/guides/components/action-bar.md +43 -0
- package/guides/components/action-group.md +43 -0
- package/guides/components/action-menu.md +22 -0
- package/guides/components/alert.md +28 -0
- package/guides/components/assistant-panel.md +50 -0
- package/guides/components/avatar-menu.md +34 -0
- package/guides/components/badge.md +39 -0
- package/guides/components/bar-chart.md +40 -0
- package/guides/components/breadcrumbs.md +37 -0
- package/guides/components/button.md +40 -0
- package/guides/components/calendar.md +166 -0
- package/guides/components/card.md +62 -0
- package/guides/components/chart-axis.md +5 -0
- package/guides/components/chart-bar.md +5 -0
- package/guides/components/chart-data.md +58 -0
- package/guides/components/chart-histogram.md +16 -0
- package/guides/components/chart-line.md +5 -0
- package/guides/components/chart-scatter.md +14 -0
- package/guides/components/checkbox.md +36 -0
- package/guides/components/code-block.md +35 -0
- package/guides/components/color-controls.md +22 -0
- package/guides/components/column.md +5 -0
- package/guides/components/columns.md +13 -0
- package/guides/components/date-input.md +62 -0
- package/guides/components/detail-list.md +25 -0
- package/guides/components/dropdown.md +48 -0
- package/guides/components/error-page.md +31 -0
- package/guides/components/expandable.md +36 -0
- package/guides/components/form.md +49 -0
- package/guides/components/group.md +41 -0
- package/guides/components/histogram.md +45 -0
- package/guides/components/icon.md +13 -0
- package/guides/components/image-input.md +34 -0
- package/guides/components/input-phone.md +45 -0
- package/guides/components/input.md +59 -0
- package/guides/components/line-chart.md +37 -0
- package/guides/components/link.md +31 -0
- package/guides/components/listbox.md +109 -0
- package/guides/components/main-menu.md +11 -0
- package/guides/components/main-view.md +21 -0
- package/guides/components/modal.md +58 -0
- package/guides/components/month-calendar.md +88 -0
- package/guides/components/notifications.md +76 -0
- package/guides/components/number-input.md +21 -0
- package/guides/components/pdf-preview.md +38 -0
- package/guides/components/pin-input.md +37 -0
- package/guides/components/progress.md +41 -0
- package/guides/components/radio-group.md +41 -0
- package/guides/components/range-slider.md +42 -0
- package/guides/components/rating.md +39 -0
- package/guides/components/resizable-pane.md +3 -0
- package/guides/components/resizable.md +75 -0
- package/guides/components/rich-text-editor.md +113 -0
- package/guides/components/scatter-chart.md +43 -0
- package/guides/components/search.md +9 -0
- package/guides/components/select-font.md +16 -0
- package/guides/components/select.md +65 -0
- package/guides/components/settings.md +11 -0
- package/guides/components/sidebar.md +47 -0
- package/guides/components/signature-pad.md +45 -0
- package/guides/components/sparkline.md +31 -0
- package/guides/components/status-icon.md +32 -0
- package/guides/components/submenus.md +30 -0
- package/guides/components/subnav.md +54 -0
- package/guides/components/switch.md +48 -0
- package/guides/components/table.md +256 -0
- package/guides/components/tabs.md +46 -0
- package/guides/components/textarea.md +44 -0
- package/guides/components/theme-toggle.md +33 -0
- package/guides/components/timeline-section.md +7 -0
- package/guides/components/timeline-step.md +12 -0
- package/guides/components/timeline.md +179 -0
- package/guides/components/topbar.md +83 -0
- package/guides/components/typography.md +155 -0
- package/guides/components/world-map.md +72 -0
- package/guides/contributing/design-to-code.md +261 -0
- package/guides/deployment/drone.md +77 -0
- package/guides/examples/user-registration.md +11 -0
- package/guides/foundations/naming.md +7 -0
- package/guides/foundations/tokens.md +203 -0
- package/guides/intro.md +80 -0
- package/guides/layout/app-layout.md +64 -0
- package/guides/layout/layout-rules.md +16 -0
- package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.html +22 -0
- package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.ts +111 -0
- package/homepage/src/app/examples/calendar-workspace/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.html +166 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.ts +134 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/cloudhoster-store.ts +92 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.html +93 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.ts +115 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.html +202 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.ts +143 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.html +70 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.ts +44 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/home-page.html +70 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/home-page.ts +32 -0
- package/homepage/src/app/examples/case-studies/cloudhoster/source-code.generated.ts +12 -0
- package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.html +208 -0
- package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.ts +214 -0
- package/homepage/src/app/examples/case-studies/vpshoster/overview-page.html +35 -0
- package/homepage/src/app/examples/case-studies/vpshoster/overview-page.ts +17 -0
- package/homepage/src/app/examples/case-studies/vpshoster/servers-page.html +111 -0
- package/homepage/src/app/examples/case-studies/vpshoster/servers-page.ts +206 -0
- package/homepage/src/app/examples/case-studies/vpshoster/source-code.generated.ts +6 -0
- package/homepage/src/app/examples/case-studies/vpshoster/vps-store.ts +92 -0
- package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.html +35 -0
- package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.ts +17 -0
- package/homepage/src/app/examples/error-pages/error-pages-example-page.html +27 -0
- package/homepage/src/app/examples/error-pages/error-pages-example-page.ts +34 -0
- package/homepage/src/app/examples/error-pages/not-found-page.html +8 -0
- package/homepage/src/app/examples/error-pages/not-found-page.ts +19 -0
- package/homepage/src/app/examples/error-pages/server-error-page.html +8 -0
- package/homepage/src/app/examples/error-pages/server-error-page.ts +20 -0
- package/homepage/src/app/examples/error-pages/source-code.generated.ts +7 -0
- package/homepage/src/app/examples/mail-compose/mail-compose-page.html +25 -0
- package/homepage/src/app/examples/mail-compose/mail-compose-page.ts +28 -0
- package/homepage/src/app/examples/mail-workspace/mail-workspace-page.html +59 -0
- package/homepage/src/app/examples/mail-workspace/mail-workspace-page.ts +128 -0
- package/homepage/src/app/examples/mail-workspace/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/notifications/notifications-page.html +51 -0
- package/homepage/src/app/examples/notifications/notifications-page.ts +133 -0
- package/homepage/src/app/examples/notifications/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/pdf-reader/pdf-reader-page.html +27 -0
- package/homepage/src/app/examples/pdf-reader/pdf-reader-page.ts +39 -0
- package/homepage/src/app/examples/pdf-reader/source-code.generated.ts +3 -0
- package/homepage/src/app/examples/user-registration/source-code.generated.ts +5 -0
- package/homepage/src/app/examples/user-registration/user-registration-example-page.html +11 -0
- package/homepage/src/app/examples/user-registration/user-registration-example-page.ts +21 -0
- package/homepage/src/app/examples/user-registration/user-registration-form.html +116 -0
- package/homepage/src/app/examples/user-registration/user-registration-form.ts +93 -0
- package/homepage/src/app/examples/user-registration/user-registration-page.html +11 -0
- package/homepage/src/app/examples/user-registration/user-registration-page.ts +23 -0
- package/package.json +2 -2
package/design.md
ADDED
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
# GoodUI design and component contract
|
|
2
|
+
|
|
3
|
+
## Purpose and baseline
|
|
4
|
+
|
|
5
|
+
GoodUI is an Angular UI library styled with Tailwind CSS 4 and designed in Penpot. Its shell arranges the sidebar, topbar, menus, main view, and responsive drawer so applications can provide navigation, user data, and page content without rebuilding the layout. The library is in `angular/projects/goodui`; the consuming example is in `homepage`.
|
|
6
|
+
|
|
7
|
+
GoodUI's current layout baseline is documented here and in Penpot. The shell is reviewed at 1440 × 900 and 390 × 844 px. The topbar action sequence is **search, notifications, settings, avatar**.
|
|
8
|
+
|
|
9
|
+
The nested sidebar lets “My Account” expand to “Account Home,” which expands to links. An active link sits on a neutral surface with blue text and a dot. A vertical guide line connects indented levels.
|
|
10
|
+
|
|
11
|
+
## Layout measurements
|
|
12
|
+
|
|
13
|
+
| Area | Current baseline | GoodUI owner |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| Sidebar | 280 px wide, fixed at left, white, right border | `SidebarContainer` owns width, scrolling, brand area, and menu spacing |
|
|
16
|
+
| Topbar | 70 px tall, fixed beside sidebar | `Topbar` arranges navigation and `MainMenu` |
|
|
17
|
+
| Topbar content | 30 px horizontal padding | Topbar owns padding |
|
|
18
|
+
| Sidebar menu | About 20 px left padding, 4 px between rows | `SidebarMenuContainer` owns heading and item list |
|
|
19
|
+
| Active sidebar item | 8 px radius, neutral background | `SidebarItem` owns active state |
|
|
20
|
+
| Expanded sidebar | About 34 px parent row; 36 px child rows with 4 px gap and indentation | `SidebarItem` owns open state; `SidebarSubmenuGroup` owns guide lines and layout |
|
|
21
|
+
| Cards and panels | 12 px radius, subtle neutral border | `radius.card` and `color.border` |
|
|
22
|
+
| Topbar actions | 36 × 36 px circular hit areas | `MainMenu` owns four actions and 10 px gaps |
|
|
23
|
+
| Topbar dropdown | Help panel 220 px wide under topbar; 34 px rows, 2 px row gap, 6 px radius | `TopbarDropdownMenu` owns panel, divider, and rows |
|
|
24
|
+
| Topbar submenu | Support Forum panel 218 × 124 px; 4 px gap from parent, aligned with trigger row | `TopbarSubmenu` owns the next level and flips at the viewport edge |
|
|
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. |
|
|
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
|
+
| 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
|
+
| Action group | 8/12/16 px token gaps; horizontal wrap or vertical stack | `ActionGroup` owns spacing and alignment between related controls |
|
|
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 |
|
|
32
|
+
| 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
|
+
| 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
|
+
| 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 |
|
|
35
|
+
| StatusIcon | Six semantic states; flat, LED, clock, circle, mono, and symbol treatments in three sizes | `StatusIcon` owns the visual indicator, accessible name, disabled presentation, semantic colors, and theme text color for mono |
|
|
36
|
+
| Expandable | Full-width disclosure with 48 px trigger, optional rich heading, four icon choices, and projected body | `Expandable` owns toggle state, disabled behavior, accessible relationships, and user-activation events |
|
|
37
|
+
| Text columns | Two, three, or four equal columns, 24 px gap, stacked by container width | `Columns` owns responsive distribution; each `Column` owns the existing Prose rhythm and optional breakpoint visibility |
|
|
38
|
+
| Link | Inline text with hover or persistent underline | `Link` owns appearance, decoration style, disabled presentation, and navigation behavior |
|
|
39
|
+
| Code block | Proportional source text, optional line numbers, copy, collapsed preview, and inline mode | `CodeBlock` owns source formatting, scrolling, toolbar, and expansion |
|
|
40
|
+
| PDF preview | Responsive document frame with toolbar, page controls, zoom, rotation, text layer, and scrollable viewport | `PdfPreview` owns document rendering, page fitting, controls, loading and error states |
|
|
41
|
+
| Modal | 420/560/720 px dialog widths; optional fullwidth or near-viewport overlay; 12 px radius | `Modal` owns the backdrop, focus, stacking, and body scrolling; Header and Footer own their internal flow |
|
|
42
|
+
| Switch | 28 × 16 / 36 × 20 / 44 × 24 px track; 44 × 44 px minimum hit area | `Switch` owns state, thumb, focus, disabled/error presentation, and accessible input |
|
|
43
|
+
| 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
|
+
| 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
|
+
| 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 | Four frame styles, 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
|
+
| 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
|
+
| 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
|
+
| 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. |
|
|
50
|
+
| Scatter plot | Responsive two-dimensional points on a GoodUI Card, with independent observations from multiple sources | `ScatterChart` owns dots, continuous axes, legend, theme-aware marker palette, optional Table view, and validation. `ChartAxis` and `ChartScatter` configure it declaratively. Equal X values stay separate unless aggregation is requested. Penpot page `42 Charts` publishes the chart and series specimens. |
|
|
51
|
+
| Sparkline | Compact single-series trend in 24/32/48 px heights, with no Card, axes, or legend | `Sparkline` uses the shared `GoodChartDataSource`, validates typed X/Y keys, and can group time values explicitly. Its default marker-blue stroke, optional endpoint, accessible description, and small/default/large sizes work in metrics and Table cells. Penpot page `42 Charts` publishes the default specimen. |
|
|
52
|
+
| World map | Responsive independent-country geometry with programmatic focus, pan, zoom, compact glyphs, automatic mean aggregation, and a numeric country color scale | `WorldMap` owns geometry and navigation; declarative `MapOverlay` and `MapColorScale` select typed source keys. Nearby overlay glyphs combine by measure mean at low zoom and show their country count; zooming in separates them. The 50m geometry is loaded on demand. Country fills use a theme-aware GoodUI palette by default, with heatmap and custom color-stop alternatives; countries without data stay neutral. Direct land neighbors of a selected country become gray. |
|
|
53
|
+
| Input | 32/40/48 px high by size, 6 px radius; native text or file input | `Input` owns label, field, optional adornments, focus, readonly/disabled/error states, and file selection |
|
|
54
|
+
| Textarea | 96/120/144 px minimum height by size, 6 px radius; native multiline field | `Textarea` owns value, optional vertical resize grip, focus, required/readonly/disabled/error states, and form validation |
|
|
55
|
+
| Rich text editor | Full-width bordered writing surface with compact top toolbar and optional 280 px assistant pane | `RichTextEditor` owns sanitized HTML loading and output, plain text readback, an optional `features` allowlist for editing tools, formatting commands and history, dialogs, contextual table actions with icons, cell selection, pointer and keyboard resizing, the mobile assistant overlay, and optional header/footer slots; `fillHeight` fills a `MainView` workspace with internal scrolling |
|
|
56
|
+
| Color controls | Compact swatch dropdown in small/default/large sizes, 25-color palette, optional custom colors enabled by default, and detailed RGB/HSL controls with persistent hex display | `ColorPicker` owns preset colors, optional custom slots, icons and disabled state; `ColorControls` owns color-space and numeric editing. Both are reusable independently of the editor. |
|
|
57
|
+
| Font select | 32/40/48 px dropdown with previews of locally available web-safe candidate families | `SelectFont` owns candidate detection, generic fallbacks, selection, disabled state, keyboard access, and Angular Forms; the rich text editor composes it. |
|
|
58
|
+
| Number input | 32/40/48 px high by size, 6 px radius; minus, animated value, and plus | `NumberInput` owns finite step and bounds, native numeric editing, optional Lucide icon, focus, and disabled state |
|
|
59
|
+
| Range slider | 32/40/48 px touch targets by size; token-colored rail, selected interval, and circular thumb | `RangeSlider` owns snapping, one or two slider handles, keyboard/pointer movement, optional ticks, bounds, and step buttons |
|
|
60
|
+
| Signature pad | Full-width bordered control with an unmistakable dashed white signing surface, baseline, and Clear action | `SignaturePad` captures ordered pen, touch, or mouse traces as X/Y/T/pressure samples, renders them as SVG paths, exposes a standalone SVG and optional InkML serialization, supports Angular Forms, and lets the signer start again |
|
|
61
|
+
| Timeline | Responsive horizontal or vertical ordered process line with 32/40/48 px markers for small/default/large, numbered, icon, or dot content | `Timeline` owns connector geometry, optional transition labels, current/completed/upcoming/error/deactivated states, semantic color, an optional completed-step accent, brand/secondary/mono tones, and simple/detailed/illustrated treatments. Illustrated steps connect their visuals to markers; optional start/end endpoints place the first/last graphic on the line at 44/56/68 px (small/default/large), close to the middle graphic size. Mono is theme-aware black, white, and gray, overrides step accents, and desaturates images. `TimelineStep` is a declarative child configuration tag with per-step color and marker overrides; callers may instead supply a `steps` array for dynamic data. The parent renders the visible step. |
|
|
62
|
+
| Timeline sections | Full-width vertical process form with a brand dashed rail, state markers, and a compact sticky heading while scrolling | `Timeline appearance="sections"` projects `TimelineSection` content. Section state is bound by the application (`completed`, `attention`, `current`, `upcoming`, `optional`); the parent owns the rail and shared tone/size/color, and each child owns its heading and arbitrary GoodUI content. Step timelines retain their existing rendering path. Penpot page `39 Timelines` publishes the sections specimen and section family. |
|
|
63
|
+
| Resizable | Two independently scrolling panes separated by a 12 px divider; side by side at 680 px component width and wider, stacked below | `Resizable` owns percentage constraints, responsive direction, pointer and keyboard resizing, disabled state, and four handle drawings. `ResizablePane` owns optional content padding and the projected start/end content. A nested Resizable can use `height="100%"` inside a `padding="none"` pane; the nested frame becomes flush with its parent. |
|
|
64
|
+
| Assistant panel | Fixed-width, borderless contextual surface beside an inset primary workspace; optional soft rounded surface; right drawer, compact bottom summary, or no companion on mobile | `AssistantPanel` owns client-height layout, launcher, overlay, focus, and responsive mode. `appearance=soft` uses the existing theme-aware `color.selected` tint for a borderless inset card; `default` remains open. `AssistantMain` owns primary padding; Header, Body, Footer, and optional Mobile own the companion's projected sections. A Mobile section chooses the docked presentation; without it, the whole companion slides from the right. `hideOnMobile` removes it below 700 px. Penpot page `41 Assistant Panels` publishes the desktop, soft, mobile drawer, and mobile dock states and five section families. |
|
|
65
|
+
| PIN input | 44 × 48 / 52 × 56 / 60 × 64 px slots by size; 6 px radius | `PinInput` owns code slots, keyboard and paste editing, character filtering, masking, focus, and disabled presentation |
|
|
66
|
+
| Alert | Three token-scaled sizes, 12 px card radius, tone-aware surface and icon | `Alert` owns message flow, projected actions, and optional close button |
|
|
67
|
+
| Notifications | Three visible toasts in a top-right or top-center stack; overflow waits its turn; 16 px count on the bell | `NotificationHost` owns placement and animation; `Notifications` owns the bell, unread Badge, and panel |
|
|
68
|
+
| Phone input | 32/40/48 px high, with flag and calling-code selector beside a native telephone field | `InputPhone` owns country selection, national digits, international value, and field states |
|
|
69
|
+
| Dropdown | Button-sized trigger; 240 px token-based popup with 36 px item rows | `Dropdown` owns sections, placement, scrolling, nested items, and dismissal |
|
|
70
|
+
| Breadcrumbs | 14 px labels, 8 px gaps; optional card border and 12 px radius | `Breadcrumbs` owns hierarchy, separators, overflow menu, and card frame |
|
|
71
|
+
| Mobile | 60 px topbar, sidebar as drawer | `AppLayout` owns trigger, scrim, drawer, and scroll lock |
|
|
72
|
+
|
|
73
|
+
These are the current desktop and mobile measurements for GoodUI. The shell should avoid horizontal overflow between 390 px and desktop. The Angular implementation switches navigation at a 900 px breakpoint.
|
|
74
|
+
|
|
75
|
+
## Component hierarchy
|
|
76
|
+
|
|
77
|
+
```text
|
|
78
|
+
AppLayout
|
|
79
|
+
├─ SidebarContainer
|
|
80
|
+
│ ├─ brand area
|
|
81
|
+
│ └─ SidebarMenuContainer (repeatable)
|
|
82
|
+
│ ├─ heading
|
|
83
|
+
│ └─ SidebarItem (repeatable)
|
|
84
|
+
│ └─ SidebarSubmenuGroup (optional and recursive)
|
|
85
|
+
│ └─ SidebarSubmenuItem (repeatable)
|
|
86
|
+
└─ content area
|
|
87
|
+
├─ Topbar
|
|
88
|
+
│ ├─ mobile drawer trigger
|
|
89
|
+
│ ├─ BrandIcon (optional; after the trigger on mobile)
|
|
90
|
+
│ ├─ TopbarMenuContainer
|
|
91
|
+
│ │ └─ TopbarMenuItem (repeatable; optional dropdown)
|
|
92
|
+
│ │ └─ TopbarDropdownMenu
|
|
93
|
+
│ │ ├─ TopbarDropdownItem (link or expandable parent)
|
|
94
|
+
│ │ └─ TopbarSubmenu (optional and recursive)
|
|
95
|
+
│ │ └─ TopbarDropdownItem (repeatable)
|
|
96
|
+
│ └─ MainMenu
|
|
97
|
+
│ ├─ Search
|
|
98
|
+
│ ├─ Notifications
|
|
99
|
+
│ ├─ ThemeToggle (optional; direct Light → System → Dark cycle)
|
|
100
|
+
│ ├─ Settings (optional menu)
|
|
101
|
+
│ └─ AvatarMenu
|
|
102
|
+
│ ├─ identity (avatar, name, email, optional badge)
|
|
103
|
+
│ ├─ AvatarMenuItem (repeatable link or parent)
|
|
104
|
+
│ │ └─ AvatarMenuItem (recursive submenu)
|
|
105
|
+
│ ├─ Dark Mode switch
|
|
106
|
+
│ └─ optional sign-out item
|
|
107
|
+
└─ MainView
|
|
108
|
+
├─ Subnav (optional)
|
|
109
|
+
│ ├─ SubnavItem (repeatable; optional child links)
|
|
110
|
+
│ └─ actions (optional: Button and ActionMenu)
|
|
111
|
+
├─ optional page heading
|
|
112
|
+
└─ page content
|
|
113
|
+
└─ Card (optional, repeatable)
|
|
114
|
+
├─ CardHeader (optional; title, subtitle, right actions, optional image)
|
|
115
|
+
├─ body content
|
|
116
|
+
└─ CardFooter (optional; text, Link, Button, or mixed actions)
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
`AppLayout` owns shell geometry, scrolling, and mobile switching. Apps do not set sidebar offsets, topbar height, overlay layers, or content padding. Each container owns its alignment and spacing; individual items have no external layout margins.
|
|
120
|
+
|
|
121
|
+
`Dropdown` can be placed in any action area. It owns a Button trigger, optional header and footer, and a list of recursive `DropdownItem` entries inside a positioned `DropdownPanel`.
|
|
122
|
+
|
|
123
|
+
The shell owns the brand image placement, while the consuming app owns the actual artwork. Optional `brandLogoSrc` and `brandLogoDarkSrc` URLs on `AppLayout` feed the desktop sidebar and mobile drawer; `brandMarkSrc` and `brandMarkDarkSrc` feed the mobile topbar symbol and optional desktop BrandIcon. On mobile the drawer trigger precedes the symbol. `showMobileBrand=false` hides only the mobile topbar branding; the sidebar and drawer retain their branding. `brand` is the image's accessible name. When no mark URL is supplied, the mobile topbar retains the wordmark or text fallback for existing consumers. The dark URLs are optional; if absent, their light URLs remain visible in both themes. Favicon selection belongs to each application's `index.html` and public assets, never to the Angular library. The GoodUI homepage uses the exported GoodUI wordmarks and mark; this does not make them default assets for consumers. Penpot's AppLayout, SidebarContainer, Topbar, and BrandIcon masters show GoodUI artwork as specimen content to demonstrate placement; the runtime fallback remains generic.
|
|
124
|
+
|
|
125
|
+
### Alerts and notifications
|
|
126
|
+
|
|
127
|
+
`good-alert` has `tone=neutral/info/success/brand/destructive/warning`, `appearance=default/mono/outline/light`, and `size=small/default/large`. Default uses a tone-tinted surface, light uses a quieter tint, outline uses the base surface and border with tone-colored text, and mono leaves only its optional icon tone-colored. The neutral surface aliases the application gray. Warning, Badge, and Rating share `color.warning` (`#EAB308` light, `#FACC15` dark); small Warning text and Alert icon strokes use the companion `color.warning-foreground` for contrast. The `alert.*` Penpot tokens alias existing GoodUI color and spacing roles, including theme-specific badge tints, so no separate dark value list is maintained. Content, actions, the optional X, and the custom Lucide icon are runtime options. `good-alert` owns the action row and responsive wrapping; callers project Buttons and Links through `[goodAlertActions]`.
|
|
128
|
+
|
|
129
|
+
`provideGoodUI()` is the root Angular provider entry point for the library's application services and shared options. It registers `GoodNotificationCenter` and `GoodThemeService`; existing direct service injection remains available. `GoodNotificationCenter` publishes the same alert content to a top-right toast, a centered top-entry toast, or the notification side panel only. AppLayout includes `good-notification-host`; standalone layouts place one host near their root. Three toasts are visible at once, with later messages queued and timed only after display. Focus and hover pause timeouts. `persist` on each published toast overrides the optional `notifications.persistToHistory` app default (true); inbox-only delivery always persists. Acknowledgement messages wait for action and remain in the panel as read when saved; the panel also offers mark-as-read and removal. The panel orders dated messages newest first and shows their creation date and time in the viewer's locale. `GoodNotification` input items can supply a Unix-millisecond `createdAt` for the same behavior; undated legacy items follow in supplied order. The bell displays unread count through `good-badge`, sized by `notification.count.*` tokens to 16 px. The published `goodui.notifications.unread` Penpot composition links the bell and Badge; its single-digit label is centered as a local instance override because Penpot does not reflow that copied Badge label after the width override. Angular uses regular flex centering. The drawer closes on backdrop clicks, Escape, or the close button and returns focus to the bell. Session memory is the library default; application persistence is a separate integration. See [Alert](guides/components/alert.md), [Notifications](guides/components/notifications.md), and [design/alert-contract.json](design/alert-contract.json).
|
|
130
|
+
|
|
131
|
+
Penpot page `21 Alerts` publishes 72 `goodui.alert` variants and four `goodui.notification-host` arrangements. All Alert variants retain linked Lucide Info artwork and bind their surface, text, padding, and icon size to `alert.*` tokens. The action/dismiss composition is a separate reusable component with a detached Alert frame, linked GoodUI Button, and linked Lucide X: Penpot does not permit adding children inside a component copy. The manifests record every published ID. The light and dark renders were inspected, and Penpot was restored to light on `02 Layout`.
|
|
132
|
+
|
|
133
|
+
## Public components
|
|
134
|
+
|
|
135
|
+
| Design ID | Responsibility |
|
|
136
|
+
| --- | --- |
|
|
137
|
+
| `goodui.app-layout` | Desktop/mobile shell, fixed areas, drawer, content offset |
|
|
138
|
+
| `goodui.sidebar-container` | Brand area, scrolling, desktop/drawer presentation |
|
|
139
|
+
| `goodui.sidebar-menu-container` | Group heading and vertical sidebar items |
|
|
140
|
+
| `goodui.sidebar-item` | Navigation, icon, label, optional badge/expander, active/open/disabled states |
|
|
141
|
+
| `goodui.sidebar-submenu-group` | Indented nested level, guide lines, child links, open/closed state |
|
|
142
|
+
| `goodui.sidebar-submenu-item` | Child link with dot, label, route, active state |
|
|
143
|
+
| `goodui.topbar` | Optional brand icon, navigation, action group, mobile trigger |
|
|
144
|
+
| `goodui.brand-icon` | Optional brand placeholder without a fixed product logo |
|
|
145
|
+
| `goodui.topbar-menu-container` | Navigation items and responsive drawer layout |
|
|
146
|
+
| `goodui.topbar-menu-item` | Link or dropdown trigger with active/open state |
|
|
147
|
+
| `goodui.topbar-dropdown-menu` | Panel, border, dividers, rows, open submenu state |
|
|
148
|
+
| `goodui.topbar-dropdown-item` | Reusable 34 px link or submenu trigger; `link`, `parent`, `open` states |
|
|
149
|
+
| `goodui.topbar-submenu` | Next menu level using the same row components |
|
|
150
|
+
| `goodui.main-menu` | Search, notifications, settings, avatar in fixed order |
|
|
151
|
+
| `goodui.search` | Trigger and search dialog with input, results, empty state |
|
|
152
|
+
| `goodui.notifications` | Bell, unread Badge, and dismissible drawer; `default`, `unread`, and `open` design states |
|
|
153
|
+
| `goodui.alert` | Inline or delivered message with six semantic tones, four appearances, three sizes, actions, and optional dismissal |
|
|
154
|
+
| `goodui.progress` | Determinate, indeterminate, or timed progress with solid or segmented fill, three sizes, theme colors, optional title and percentage |
|
|
155
|
+
| `goodui.status-icon` | Compact status indicator with six states, seven appearances, three runtime sizes, disabled state, and an accessible name |
|
|
156
|
+
| `goodui.expandable` | Full-width disclosure with projected heading and body, four icon choices, expanded/collapsed variants, and a linked disabled specimen |
|
|
157
|
+
| `goodui.month-calendar` | Compact month picker with day or week selection, consecutive blocks, year choice, and marker-colored dates |
|
|
158
|
+
| `goodui.pdf-preview` | A loaded document specimen; `good-pdf-preview` owns runtime source, loading, error, page, zoom, rotation, and download states |
|
|
159
|
+
| `goodui.error-page` | Reusable recovery layout with 404 and 500 specimens; status, tone, text, icon, reference, and actions are runtime inputs/content |
|
|
160
|
+
| `goodui.notification-host` | Toast placement and stacking; in-memory delivery is controlled by `GoodNotificationCenter` |
|
|
161
|
+
| `goodui.settings` | Trigger and app-configured settings menu |
|
|
162
|
+
| `goodui.avatar-menu` | Avatar trigger and account menu with identity, nested actions, appearance switch, and sign-out area |
|
|
163
|
+
| `goodui.avatar-menu-item` | Reusable account link, action, or expandable parent row |
|
|
164
|
+
| `goodui.main-view` | Optional page heading, actions, and projected content |
|
|
165
|
+
| `goodui.subnav` | Optional page subnav, scroll viewport, active indicator, and child menu |
|
|
166
|
+
| `goodui.subnav-item` | Link or menu trigger with optional chevron and active state |
|
|
167
|
+
| `goodui.button` | Reusable action control with five variants, three sizes, and text/icon content options |
|
|
168
|
+
| `goodui.action-group` | Reusable horizontal or vertical layout for related actions, with three spacing choices |
|
|
169
|
+
| `goodui.card` | Bordered content container with optional linked header and footer parts |
|
|
170
|
+
| `goodui.card-header` | Title, optional subtitle and actions, default/secondary surface or image background |
|
|
171
|
+
| `goodui.card-footer` | Footer row for text, Link, Buttons, or mixed content |
|
|
172
|
+
| `goodui.link` | Navigable text with brand/mono appearance, underline behavior and style, and disabled presentation |
|
|
173
|
+
| `goodui.code-block` | Selectable source with highlighted languages, optional line numbers, copy, preview, and inline display |
|
|
174
|
+
| `goodui.switch` | Accessible on/off setting with three sizes, brand/mono appearance, and disabled/error presentation |
|
|
175
|
+
| `goodui.checkbox` | Native three-state selection with brand/mono appearance, three sizes, and disabled presentation |
|
|
176
|
+
| `goodui.radio-group` | Exclusive native choice group with brand/mono appearance, three sizes, and disabled presentation |
|
|
177
|
+
| `goodui.rating` | Selectable or display-only whole-number score with star, heart, thumbs-up, or custom Lucide artwork |
|
|
178
|
+
| `goodui.table` | TanStack-powered record table with optional search, column sorting, rich cells, and client or server pagination |
|
|
179
|
+
| `goodui.form` | Whole-form vertical, left-aligned, or right-aligned label and control columns; Angular `form[goodForm]` directive |
|
|
180
|
+
| `goodui.group` | Light, reusable content group with outline, contrast, or plain appearance and optional heading |
|
|
181
|
+
| `goodui.form-row` | Two or three equal-width FormField columns that stack in narrow containers |
|
|
182
|
+
| `goodui.input` | Text and file fields with three sizes and applicable default, readonly, disabled, and error states |
|
|
183
|
+
| `goodui.textarea` | Multiline text field with three sizes and default, readonly, disabled, and error states; vertical resizing is optional |
|
|
184
|
+
| `goodui.number-input` | Editable numeric stepper with three sizes, disabled state, and optional Lucide icon; Angular fills its parent by default and offers compact width as a runtime option |
|
|
185
|
+
| `goodui.range-slider` | Single-value or interval slider with limits, ticks, optional bounds and step buttons; twelve Penpot variants cover mode, size, and disabled status |
|
|
186
|
+
| `goodui.listbox` | Always-visible, grouped single or multiple selection with optional search, checkbox presentation, and rich item content |
|
|
187
|
+
| `goodui.tabs` / `goodui.tab` | Horizontal tablist and projected content panels with optional icons, badges, and overflow scrolling |
|
|
188
|
+
| `goodui.pin-input` | Planned single-field code control with three sizes, brand/mono appearance, and empty/filled/masked/disabled presentations; pending live Penpot publication |
|
|
189
|
+
| `goodui.input-addon` | Internal start/end icon or text part with inline and contrast treatments |
|
|
190
|
+
| `goodui.input-phone` | Country-aware telephone field in three sizes and empty, filled, disabled, or error states |
|
|
191
|
+
| `goodui.phone-country` | Internal flag, calling code, and chevron selector part of InputPhone |
|
|
192
|
+
| `goodui.date-input` | Locale-aware date, range, multiple, month, or year field with an optional time editor |
|
|
193
|
+
| `goodui.date-input-addon` / `goodui.date-calendar` / `goodui.date-day` / `goodui.date-calendar-overlay` | Internal linked icon, calendar views, day states, and mobile modal owned by DateInput |
|
|
194
|
+
| `goodui.calendar` | Scheduling surface with month, week, day, and list views; linked toolbar and appointment parts |
|
|
195
|
+
| `goodui.dropdown` | Button-based trigger and positioned popup with click or hover activation |
|
|
196
|
+
| `goodui.dropdown-panel` | Internal header, item list, and footer composition |
|
|
197
|
+
| `goodui.dropdown-item` | Internal action, link, badge, icon, disabled state, or submenu parent |
|
|
198
|
+
| `goodui.breadcrumbs` | Ordered path, optional first icon, configurable separators, collapsed middle, and optional card frame |
|
|
199
|
+
| `goodui.badge` | Compact status or metadata label with semantic color, treatment, shape, size, optional icon, and removable action |
|
|
200
|
+
| `goodui.action-menu` | Compact icon trigger and accessible action list |
|
|
201
|
+
|
|
202
|
+
Tabs keep only the tab-row divider and selected underline above their content. The panel has no frame, surface, or inner padding, so a nested Card or Table owns its own boundary. A subdued divider after the panel marks the end of the tab set. Penpot page `29 Tabs` shows this open composition in its published tab specimens; their stable component IDs remain unchanged.
|
|
203
|
+
|
|
204
|
+
## Naming and Angular API
|
|
205
|
+
|
|
206
|
+
Table is published on Penpot page `16 Tables` with `style=default/bordered/striped/compact` and `state=populated/empty`. The populated specimens demonstrate linked Badge, Switch, and action controls inside cells. Search and pagination are optional parts of `good-table`, rather than separate top-level selectors. Angular uses TanStack Table v9 column definitions and flex rendering so cell content may be plain text, a GoodUI control, or a consumer-owned component. For page-specific rich cells, a projected `ng-template[goodTableCell]` names the column ID and receives the original row; reusable cell components can still use `flexRenderComponent`. Columns are reorderable by default through header grips; `[reorderable]="false"` removes user controls, while `columnOrder` remains a runtime array of stable column IDs. Each column's `meta.visibleFrom` optionally sets the minimum table-container width tier at which it is shown (`xs`, `sm`, `md`, `lg`, `xl`); omitted values default to `xs`. Reordering and responsive visibility are runtime behavior and do not create Penpot variant axes. Each column opts into sorting; client mode sorts supplied data while manual mode emits sorting and search with the pagination request for a backend. With no pagination configuration the table shows every supplied row and grows vertically. Client pagination, numbered backend pages, and cursor navigation are distinct configurations. The `table.*` semantic tokens own surface, border, header, row state, spacing, minimum width, and density in both themes. See [Table](guides/components/table.md) and `design/table-variants.json`.
|
|
207
|
+
|
|
208
|
+
Select is published on Penpot page `17 Selects`. `goodui.select` has `size=small/default/large` and representative `state=placeholder/selected/multi/disabled` variants; the visual state maps to `good-select` inputs and value rather than separate selectors. `goodui.select-option` and `goodui.select-panel` are internal parts owned by `good-select`: they represent selected marks, optional icons, tags, descriptions, disabled choices, and the searchable popup. The panel owns option flow and scrolling. `goodui.select-country` is a separate country-focused component mapping to `good-select-country`, with its own size and placeholder/selected/disabled variants. The German flag is an editable example; Angular supplies the complete country code list, localized names, and SVG flags at runtime. Search, exact option set, multi selection count, `maxSelected`, selected badges, focus, and keyboard behavior are runtime data and interaction. Select aliases the existing Input control geometry and Dropdown popup surfaces through semantic `select.*` tokens, preserving light/dark theme behavior. See [Select](guides/components/select.md) and `design/select-variants.json`.
|
|
209
|
+
|
|
210
|
+
Listbox is published on Penpot page `28 Listboxes` as four illustrative components: a plain action list, highlighted single selection, checkbox multiple selection, and a grouped searchable list. Each maps to `good-listbox`; `items` and `groups` provide simple or named sections without changing the selector. Named groups indent their rows beneath a subtle guide line. `selectionMode` controls action-only, single, or multiple selection, while `appearance` controls highlight or checkbox presentation in selection modes. The runtime `bordered` option defaults to true and removes the outer frame when false; `compact` defaults to false and tightens row and group spacing when true. The published specimens retain their frame and default spacing. An optional `goodListboxItem` template supplies complex visual rows but the Listbox retains activation, selection, focus, and events. The optional search icon defaults to a magnifier and accepts a Lucide icon or image URL override. The homepage also demonstrates a searchable plain list, highlighted multiple selection, a long flat single-selection list, and country items with flags. Its surfaces and colors use the established `select.*` semantic roles and shared card radius in both themes. See [Listbox](guides/components/listbox.md) and `design/listbox-contract.json`.
|
|
211
|
+
|
|
212
|
+
Tabs are published on Penpot page `29 Tabs` as simple, icon-and-badge, and overflow specimens, plus a single `goodui.tab` panel specimen. Angular `good-tabs` owns the horizontal tablist, selection, arrow controls, and keyboard navigation; `good-tab` owns a projected content panel. A `selected` annotation chooses the initial tab, while `activeId` supports two-way programmatic selection and `tabActivated` reports user activation. The selected surface and accent underline follow the existing page navigation style. See [Tabs](guides/components/tabs.md) and `design/tabs-contract.json`.
|
|
213
|
+
|
|
214
|
+
Phone Input is published on Penpot page `18 Phone Inputs` as `goodui.input-phone`, with `size=small/default/large` and `state=empty/filled/disabled/error` variants. Each has a linked `goodui.phone-country` instance, which is an internal visual part owned by `good-input-phone` and separately published in three sizes. The field composes the flag, calling code, separator, and native telephone entry in one control. The country comes from an explicit `country`, a browser locale, or a fallback. During editing, the field preserves the typed text; `+` and `00` prefixes update the country as soon as a calling code is recognized. On blur, it displays national digits without leading zeroes or an international prefix. Its model value stays a normalized international `+` number throughout editing. Changing country retains the national digits. The Penpot flag and `+49` are example content; Angular provides the country list, flag assets, metadata, searchable popup, focus, Forms integration, and optional number possibility validation. Semantic `phone.*` tokens alias Input and Select roles across light and dark themes. See [Phone input](guides/components/input-phone.md) and `design/input-phone-variants.json`.
|
|
215
|
+
|
|
216
|
+
Rating is published on Penpot page `15 Ratings` as 36 `icon` × `size` × representative `value` × `status` variants. Its five linked Lucide instances and flex item containers use `rating.*` color, gap, icon size, and target size tokens; `design/rating-variants.json` records stable library IDs. Stars and thumbs-up use `rating.selected.color` (yellow), hearts use `rating.heart.color` (red), and unselected symbols use `rating.unselected.color` (gray), each with theme-aware values. A separate linked-smile specimen shows `rating.custom.color` (purple) without becoming another published variant. Angular `good-rating` supplies a runtime count, exact integer value, editable native radios, read-only description, disabled state, custom Lucide icon, optional `selectedColor` override, and form control integration. Penpot `value=1/3` represents examples, not a two-value limit. See [Rating](guides/components/rating.md).
|
|
217
|
+
|
|
218
|
+
DateInput is published on Penpot page `14 Date Inputs` as 30 `mode` × `size` × `status` variants. Each contains linked Input and Calendar Days icon instances. The calendar has six `view` variants and linked five-state DateDay instances; these are internal parts of `good-date-input`. The page also publishes a mobile overlay composition with linked Calendar and Button instances. `design/date-input-variants.json` records every library ID. `layout.date.*` aliases existing surface, text, spacing, and radius roles so the component follows light and dark themes. Angular owns the locale-specific text, selection rules, native mobile modal, focus, and desktop placement. See [Date input](guides/components/date-input.md) for its value contract and API.
|
|
219
|
+
The calendar's flex containers have no hard-coded white fill; the panel and time control use the semantic surface token. In Penpot, a temporary `space.4` change from 16 to 20 moved panel padding, and a `date.day.size` change from 40 to 44 resized day instances after theme reevaluation. Both values were restored and the light and dark calendar exports were checked.
|
|
220
|
+
|
|
221
|
+
The scheduling Calendar is a separate public family on Penpot page `22 Calendars`, mapped to `good-calendar`; it must not be confused with the internal `goodui.date-calendar` of DateInput. The four published states correspond to the `view` input: `month`, `week`, `day`, and `list`. Each composition reuses the matching `goodui.calendar-toolbar` and `goodui.calendar-event` parts. Appointments are data, not component variants. Angular owns the 24-hour scroll grid, overlap lanes, drag/drop, keyboard movement, navigation, localization, and `GoodCalendarService` state. `calendar.*` tokens alias existing GoodUI surface, text, radius, and spacing roles; the brand event fill and foreground have light and dark values. The time-positioned event blocks are the only intentionally absolute layout elements. See [Calendar](guides/components/calendar.md).
|
|
222
|
+
An optional projected `[goodCalendarSidebar]` panel adds a linked `good-month-calendar` and filters to a scheduling page. The homepage workspace composes a multiple-selection `good-listbox` for the visible calendars. `sidebarEnabled` opts in; `sidebarOpen` is the controlled disclosure state and `sidebarLabel` names it accessibly. The calendar's toolbar owns the toggle and the panel stacks above the grid in narrow containers. This is a runtime composition of the published Calendar, MonthCalendar, and Listbox families, not a new Penpot family or variant. The standalone Penpot Calendar views retain their published IDs and do not depict this optional composition.
|
|
223
|
+
An optional `showDayStrip` input displays seven nearby dates above the day grid in narrow containers. The strip and sidebar are runtime responsive behavior; they do not change the published Penpot `view=day` state or claim a new library ID.
|
|
224
|
+
The compact MonthCalendar is a separate `goodui.month-calendar` public family on Penpot page `32 Month Calendars`, mapped to `good-month-calendar`. Its `selection=day/week` variants describe selected date and selected week. One header controls a configurable number of consecutive blocks, which wrap horizontally or stack vertically. The current month, selected date, locale, marker-colored dates, disabled behavior, and mobile year dialog are runtime values. The component reuses `date.*` and shared `color.marker.*` tokens. See [Month calendar](guides/components/month-calendar.md).
|
|
225
|
+
Calendar event `resizable: true` maps to the internal `goodui.calendar-event.timed-resizable` or `goodui.calendar-event.all-day-resizable` visual state. The resize handle is a sibling overlay to the linked event component, never a nested button. Timed events resize from the bottom in week/day views; all-day events resize by their final day from the right in month/week views. Start remains fixed; the end is exclusive and snaps to a time interval or local calendar day. `eventResized` is a separate output from `eventMoved`, and `GoodCalendarService.resizeEvent()` updates service-owned events. The handle uses `calendar.resize.handle.size` in Penpot and CSS. The list view does not support either pointer operation.
|
|
226
|
+
Calendar `workingHours` is a weekly schedule of local time intervals. The default is Monday–Friday 08:00–12:00 and 13:00–17:00. The component derives non-working bands as the complement of merged intervals per day, using `calendar.nonworking.background` (an alias of the neutral selected surface) in both themes. The default 12:00–13:00 gap is labeled "Lunch break"; `[nonWorkingLabels]` supplies captions only for matching gaps. Week/day bands are behind appointments and ignore pointer events, so non-working times remain fully bookable. Month and all-day cells use the same role when a day has no working interval; list view is not shaded. Penpot `goodui.calendar.nonworking-band` and its linked `.labeled` state are internal visual parts of `good-calendar`, not independent selectors.
|
|
227
|
+
Calendar selection is modeled by `[(selectedEventId)]` and the `eventSelected` output, while `eventClicked` remains available. Moving emits `eventMoved` with previous and proposed bounds; the homepage demonstrates both outputs with a GoodUI Modal. The 16 `color.marker.*` tokens form a separate category/highlight palette in `layout` and `layout-dark`, shown on Penpot page `23 Marker Colors`. The event `marker` input overrides the event's `tone` presentation with the exact marker token as its fill; list dots and drag previews use that token too. `calendar.marker.text` supplies readable text for most hues, while `calendar.marker.text-on-deep` supplies contrast for blue, indigo, violet, and purple in light mode. Both resolve to dark ink on the lighter dark-theme palette. Linked Penpot event instances override their fills and text with these tokens while retaining the generic event components. Marker names are generic hue names, not product categories or status meanings.
|
|
228
|
+
The optional `[showCurrentTime]` defaults to true. In week/day views, one pointer-transparent current-time line spans the full time grid, including every day column. It also appears in day view, independent of the selected date, as a current time-of-day guide. The local clock refreshes at minute boundaries and its position follows the hour grid height. The published internal `goodui.calendar.now-indicator` is linked into both Penpot view specimens; the week instance spans all seven columns. Its line height, dot size, and accent color bind to `calendar.now.*`; the fixed Penpot y-coordinate is illustrative rather than a runtime time value. Month and list views omit the indicator.
|
|
229
|
+
`holidays` accepts named local dates and adds a compact, noninteractive label to month, week, day, and list views without making a day unavailable. The linked internal `goodui.calendar.holiday-label` component uses `color.selected` for the surface, `color.text` for readable small text, `color.marker.rose` for the decorative dot, `radius.compact` for corners, and `calendar.holiday.marker.size` for the dot in both appearance themes. The public `locale` input overrides the application's Angular `LOCALE_ID`; otherwise the browser locale is used. Formatting includes the hour rail and appointment times, so `de-DE` yields 24-hour time.
|
|
230
|
+
The handle token is bound to height in the timed specimen and width in the all-day specimen. A temporary change from 16 to 20 resized both live Penpot handles to 20; the token and light theme were restored to 16. The repository snapshot and generated CSS expose the same 16 px value.
|
|
231
|
+
The live Penpot `calendar.*` catalog and the repository token snapshot have matching names, types, values, and aliases (24 layout tokens and two dark overrides). In a reversible binding check, changing `space.2` from 8 to 10 moved a month cell's bound padding from 8 to 10; changing `calendar.cell.padding` to 12 moved it to 12. Both values and the light theme were restored. The dark theme resolves the event background to `#172554` and the calendar surface to `#09090B`, with the component bindings retained. The non-working band and weekend month cells retain their `calendar.nonworking.background` fill binding and resolve to `#18181B` in dark mode.
|
|
232
|
+
|
|
233
|
+
- Semantic design ID: `goodui.<kebab-name>`, such as `goodui.sidebar-menu-container`.
|
|
234
|
+
- Penpot main component: `goodui.<kebab-name>.<state-or-variant>`, such as `goodui.sidebar-item.active`.
|
|
235
|
+
- Angular selector: `good-<kebab-name>`, such as `good-sidebar-item`.
|
|
236
|
+
- Native form exception: `goodui.form` maps to the attribute directive `form[goodForm]` so native submit behavior and Angular Forms remain intact.
|
|
237
|
+
- Documentation path: `components/<name>`.
|
|
238
|
+
- `design/component-map.json` records every Penpot family and its Angular selector or internal owner; verify it against live Penpot through MCP and run `npm run check:mapping` when names change.
|
|
239
|
+
- Internal shape names describe purpose: `heading`, `label`, `icon`, `content-slot`, `scrim`.
|
|
240
|
+
- Variant axes are named by actual design choices: Button uses `variant`, `size`, and `content`; runtime interaction states stay in Angular.
|
|
241
|
+
|
|
242
|
+
The simple API accepts brand, sidebar groups, topbar items, actions, user, and notifications. Apps can also compose the exported containers and items directly. Public TypeScript exports are in `angular/projects/goodui/src/public-api.ts`; see `homepage/` for examples.
|
|
243
|
+
|
|
244
|
+
### Typography
|
|
245
|
+
|
|
246
|
+
`12 Typography` publishes reusable text families with one-to-one Angular selectors in [typography-components.json](design/typography-components.json). `good-heading-group` owns the optional `good-eyebrow`, `good-heading`, and `good-summary` relationship; `good-main-view` uses the same components through its existing `title` and `description` inputs plus optional `eyebrow` and `eyebrowAppearance=brand/mono`. The page title remains a semantic H1. Penpot `goodui.heading` has `level=1` and `level=2-6` variants: H1 uses 24 px and weight 800, while H2–H6 retain 20 px and weight 600. A HeadingGroup with H1 gives it 16 px after-space before Summary; groups with lower levels keep the compact 4 px gap. `good-summary` uses 15 px, weight 700, and 0.75 px letter spacing (equivalent to 0.05em at 15 px); the reduced tracking keeps multi-line summaries subordinate to the title. Penpot MainView desktop, mobile, and account main instances contain linked Heading and Summary instances with their existing example text preserved.
|
|
247
|
+
|
|
248
|
+
`good-section` is the reusable semantic section for page content. It has a token-bound 1024 px width in the Penpot reference, a 1024 px maximum width in Angular, centers in wider containers including `good-main-view`, and owns the small gap between a projected `good-subheading` and `good-prose`; adjacent sections use the larger section gap. `good-prose` retains the separate 760 px reading width. The Penpot library component contains linked Subheading and Prose instances. `good-main-view` continues to own the gap between the page heading and its content. `good-prose` owns the vertical rhythm within a section and may also be used on its own. It accepts `good-paragraph`, semantic `good-subheading`, italic `good-citation`, `good-separator` (Penpot `style=dots/line` → Angular `variant=dots/line`), and `good-inline-image` (`align=center/left/right`, optional caption). `good-paragraph` has no outer margin; its parent owns spacing. Prose aliases its 20 px child gap to `typography.paragraph.after-gap`, while Group uses a 16 px `group.gap` for mixed text and controls, or 4 px when `spacing="tight"` clusters choices. A first Subheading or Separator in Prose receives no leading margin; the larger gap applies only after preceding content. A paragraph is one text block; subheadings are siblings in the prose flow so the HTML remains valid. The default separator uses three subtle dots. InlineImage's `src`, `alt`, and caption are runtime content, with the Penpot image slot acting as a replaceable example. Its `fullWidth` runtime option lets a large screenshot use its parent width without changing the published alignment variants. `good-image-caption` is a linked internal visual part of `good-inline-image`, not another Angular selector.
|
|
249
|
+
When `good-main-view` contains a direct `good-section` child, its input-driven page heading and content area share the same centered 1024 px width. Without a Section they retain the full MainView content width and the same left edge. Pages choose one composition rather than mixing centered Sections and free content. This is a runtime composition rule; Penpot's standalone MainView specimens show the full-width heading, while Section's standalone reference shows its maximum width.
|
|
250
|
+
`good-main-view layout="page"` is the scrolling default for both centered Section pages and free full-width pages. `layout="fill"` removes MainView's outer padding and gives one primary projected child all remaining height below the application topbar; the child owns its scrollbars. `good-calendar [fillHeight]="true"` is the matching flush-frame behavior for the time grid, month, list, and optional sidebar. These are runtime sizing states of the existing published MainView and Calendar selectors. The current Penpot specimens show their ordinary page-sized arrangements, not a separate fill variant or new library ID.
|
|
251
|
+
|
|
252
|
+
When a `good-heading-group` is directly followed by content inside `good-section`, Section adds `typography.heading.content-gap` after its standard child gap. This gives the lead-in room before a form or another content block without an example-specific layout rule. The existing Penpot Section specimen keeps its linked Subheading and Prose; this sibling relationship is a runtime composition rule.
|
|
253
|
+
|
|
254
|
+
`good-group` provides a light, reusable composition for forms and content. Its `appearance=outline/contrast/plain` input selects a token-bound frame or soft surface; optional `title`, `headingLevel`, and `headingId` provide a semantic heading. The outlined heading sits in the border while the contrast and plain headings remain inside the flow. `good-form-row [columns]=2/3` owns equal-width columns for FormField children and stacks them by container width. A `goodForm` may set `[fullWidth]=true` to use its container instead of the default 760 px form and 420 px direct-control maximums. The registration example uses only these published GoodUI components for responsive horizontal fields. Penpot publishes four Group specimens and two linked FormRow specimens on `19 Groups`; IDs and input mapping are in `design/group-components.json`.
|
|
255
|
+
|
|
256
|
+
`goodForm` is a directive on a native `<form>`. `layout=vertical/left/right` is selected once for the whole form so every field shares the same label and control columns. Vertical places labels above controls; left keeps labels left-aligned; right aligns labels against the control column. Both horizontal modes use `form.label-width`, `form.control-width`, `form.column-gap`, `form.row-gap`, and `form.max-width` tokens, and stack when the form container is narrow. The direct child ActionGroup aligns to the control column. `good-form-field` owns one label, control, and help or error message. `good-field-label [required]` or `good-form-field [required]` adds the red semantic marker and makes a projected GoodInput, Checkbox, or RadioGroup required in native HTML and Angular forms. Checkbox uses requiredTrue semantics; a standalone RadioGroup shows its native legend. In a horizontal form, `good-field-label` without `forId` renders text in the shared label column and its host `id` is passed to RadioGroup `labelledBy`, which names the fieldset and visually hides its duplicate legend. Other projected controls must supply their own validator. Match `forId` to the control's native ID where applicable and connect hints or errors through `aria-describedby`; errors also expose `role=alert`. Penpot `goodui.form.vertical/left/right` compositions contain linked Label and Input instances and map to `form[goodForm]`. The former per-field `labelPosition` input and inline Penpot examples were replaced by the whole-form layout; FormField default/error compositions remain for message states.
|
|
257
|
+
|
|
258
|
+
Shared Typography font, color, width, and spacing values are in Penpot `layout` and the generated CSS. Semantic color aliases follow light and dark themes. Penpot binds supported font size, font weight, letter spacing, fill, flex gap, padding, and image corner properties directly. The plugin API rejects applying a `fontFamilies` token to text; Penpot specimens retain Inter explicitly, while Angular uses `typography.font-family`. Penpot has no token binding for text line-height or italic style in this version, so those properties are set explicitly and documented in [Typography](guides/components/typography.md). Responsive line wrapping, semantic heading tags, native image alt text, and live error announcements are runtime behavior.
|
|
259
|
+
|
|
260
|
+
### Image input and preview
|
|
261
|
+
|
|
262
|
+
Penpot page `13 Images` publishes `goodui.image-input` as a four-variant group (`shape=square/circle`, `state=empty/filled`) and `goodui.image-preview` as a linked Modal composition. `design/image-input-variants.json` records stable IDs and the Angular mapping. `good-image-input` owns the 180 px square preview, optional upload and remove actions, native image file selection, and Angular Forms value/required behavior. `good-image-preview` is shared by ImageInput and `good-inline-image` when `previewable=true`; it carries `alt` and the optional caption into the modal. `image-input.size` is the semantic size token; the square uses `radius.card`, the circle uses `radius.action`, and surfaces and borders use the existing theme colors. The linked Penpot Modal copy cannot accept new projected children through the plugin API, so the sample image and caption are overlaid in the ImagePreview design component; Angular projects both into the real modal body. Remove is a distinct button and emits `removed` so consumers can persist deletion. Image selection emits `selected` with the chosen File. The Penpot components represent visual states; file dialogs, focus, modal dismissal, and object URL cleanup are runtime behavior.
|
|
263
|
+
|
|
264
|
+
### Page subnav
|
|
265
|
+
|
|
266
|
+
`MainView.subnavItems` places `Subnav` above the heading and extends its strip across the page width. `Subnav` can also be used independently. Its `GoodSubnavItem` model has a stable `id`, `label`, optional `route`, optional one-level `children`, and optional `disabled`. A route plus children produces a link and a separate chevron button, so navigating and opening the child menu remain distinct actions. Items with only children use a menu button. The active item follows the Angular Router URL unless `activeRoute` is supplied directly to `Subnav`.
|
|
267
|
+
|
|
268
|
+
The track stays on one line at every viewport width. On mobile, the 44 px strip scrolls horizontally with touch or a trackpad; the page itself does not gain horizontal overflow. The active item scrolls into view on route changes. The child menu opens outside the clipped scroll viewport, stays within the screen edge, and closes on Escape, outside click, scroll, resize, or navigation. Links receive `aria-current="page"`; menu buttons expose `aria-expanded` and `aria-controls`. Arrow keys, Home, and End move between top-level items; opening a menu focuses its first link and Escape returns focus to its trigger.
|
|
269
|
+
|
|
270
|
+
Penpot contains desktop, mobile clipped-scroll, dropdown, and composed open variants. The account MainView variants use nested Subnav component instances. The Angular homepage supplies the account sections and real child routes.
|
|
271
|
+
|
|
272
|
+
`Subnav` also owns a fixed right action area. `MainView.subnavActions` or `Subnav.actions` accepts `GoodSubnavAction[]` and renders reusable Buttons or ActionMenus. Direct `good-subnav` users may also project a `[good-subnav-actions]` group. Only the item track scrolls. The action area stays visible and item labels never wrap. Its default Button presentation is an outlined 32 px control with text or an accessible icon-only presentation. `ActionMenu` provides focus movement, Escape, and outside-click dismissal. The Penpot `goodui.subnav.with-actions` composition uses nested Button instances and maps to the same Angular `good-subnav` selector with action data.
|
|
273
|
+
|
|
274
|
+
### Button
|
|
275
|
+
|
|
276
|
+
The reusable `goodui.button` Penpot variant group on `03 Controls` has `variant` = `default`, `secondary`, `destructive`, `outline`, or `ghost`; `size` = `small`, `default`, or `large`; and `content` = `text`, `with-icon`, or `icon-only`. All 45 combinations map to `good-button` with the same `variant` and `size` inputs. `content=text` projects a label, `with-icon` sets a Lucide `icon` plus label, and `icon-only` sets an icon plus an accessible `ariaLabel`. The complete published-ID map is `design/button-variants.json`; the two preexisting outlined components retain their IDs as `outline/small/text` and `outline/small/icon-only`.
|
|
277
|
+
|
|
278
|
+
The default size is 40 px, small is 32 px, and large is 48 px. Icon-only controls use those values for both width and height. The default variant uses brand blue, secondary a quiet neutral surface, destructive a vivid red, outline a transparent surface with a border, and ghost a transparent surface without a border. The control owns hover, focus, and disabled runtime states. Subnav and ActionMenu request outline/small to preserve their established layout. Penpot icons are instances of the connected `Lucide-icons` library; Angular renders Lucide Angular icon classes or data. The component name and variant values stay domain neutral for reuse in future projects.
|
|
279
|
+
|
|
280
|
+
The Penpot Lucide source shapes use 24 px vector geometry. Their linked Button instances use 14, 16, or 20 px geometry to match Angular; the child paths and strokes must scale with the instance bounds. The Penpot plugin's `resize()` changes an instance's bounds without scaling its child paths, so check the actual vector geometry and preserve the width/height and stroke-color token bindings whenever an icon instance is replaced or resized.
|
|
281
|
+
|
|
282
|
+
### Action group
|
|
283
|
+
|
|
284
|
+
`good-action-group` owns spacing between related controls. Buttons own their own dimensions and internal content and receive no external margins. The group accepts `orientation=horizontal/vertical/responsive`, `spacing=small/default/large`, `wrap`, `justify`, `align`, and an optional accessible `ariaLabel`. Horizontal actions wrap by default. Responsive actions use a row above 680 px and a full-width column below it; vertical actions remain a column at every size. Controls can include Buttons, Dropdowns, and links. The parent supplies available width, while the group owns the action flow. Modal Body examples use this group; Modal Footer has its own section-specific action spacing.
|
|
285
|
+
|
|
286
|
+
Penpot page `11 Action Groups` publishes six `goodui.action-group` variants (`orientation=horizontal/vertical` × `spacing=small/default/large`) containing linked GoodUI Buttons. `design/action-group-variants.json` records all six IDs. `action-group.gap.*` tokens bind both row and column gaps and alias the shared 8/12/16 px spacing scale. The Angular `responsive` option maps to the horizontal variant on desktop and the vertical variant on mobile; wrapping and alignment are runtime layout behavior.
|
|
287
|
+
|
|
288
|
+
The homepage exposes Action group as its own Components page at `/components/action-groups`, with Buttons, Dropdowns, and Links in the same flow. The Modal page uses it for launchers; the Buttons page stays focused on the Button control itself.
|
|
289
|
+
|
|
290
|
+
### Card
|
|
291
|
+
|
|
292
|
+
`good-card` owns the same neutral border, surface, and 12 px corners as the existing demo cards. Its body wrapper supplies padding without app layout CSS. Optional `good-card-header` accepts `title`, `headingLevel`, `tone=default/secondary`, and `backgroundImage`; an image fills the entire header behind a dark scrim and title text. A projected `[goodCardSubtitle]` and `[goodCardActions]` region let the header arrange supporting text, Buttons, and ActionMenus. The header's default surface matches the body, including in the simple title-only composition; secondary uses the selected surface. The Card owns the thin separators. `good-card-footer` accepts projected text, Links, Buttons, or any combination and provides `align=start/end/between`. Both Card and its sections use flex layout; only the decorative image and scrim overlay are absolute. The outer Card clips the image to its rounded top corners.
|
|
293
|
+
|
|
294
|
+
Penpot page `08 Cards and Links` publishes 20 `goodui.card` variants (`header=none/default/secondary/image` × `footer=none/text/link/buttons/mixed`), six `goodui.card-header` variants (`tone=default/secondary/image` × `actions=none/buttons`), and four `goodui.card-footer` content variants. The root Card variants contain linked Header and Footer instances; the Header actions and Footer link/button examples retain their linked GoodUI component instances. `design/card-variants.json` records all 30 IDs and the default/mixed Card composition that shows right-side actions. The image example in Penpot uses a PNG rendering of `homepage/public/card-header-art.svg`; the Angular homepage uses that SVG directly. A consuming app supplies its own image URL.
|
|
295
|
+
|
|
296
|
+
### Link
|
|
297
|
+
|
|
298
|
+
`good-link` accepts either `route` for in-app navigation or `href` for a URL. `appearance=brand/mono` chooses the accent or theme text color. `underline=hover/always` controls when the line appears, and `decoration=solid/dashed/dotted` controls its style. Disabled links keep their text visible, have no destination, and leave the tab order. Penpot publishes 24 `goodui.link` variants on `08 Cards and Links` across these four axes and `status=default/disabled`; `design/link-variants.json` records their IDs. Penpot's hover variants depict the resting state, while Angular adds the underline on pointer hover. The line's style is an editable Penpot stroke; its color and the label fill bind to the same semantic Link color token. In CSS the native text decoration follows that token and respects theme changes.
|
|
299
|
+
|
|
300
|
+
### Code block
|
|
301
|
+
|
|
302
|
+
`good-code-block` accepts literal `code` and a `language`. Its built-in grammars cover Bash, CSS, Go, HTML, Java, JavaScript, JSON, Markdown, Python, Rust, SQL, TypeScript, and YAML; plaintext is the fallback. Grammars are loaded only when used. The block owns a toolbar with an optional `title` and `copyable` action, optional `lineNumbers`, horizontal scrolling, and an optional `collapsible` preview with `collapsedLines`. A longer preview starts collapsed, shows a bottom fade, and has a keyboard-operable Show more/Show less button. `[inline]=true` places a short snippet within running text without block controls. The proportional Inter/system UI font is intentional; spaces and line breaks remain preserved.
|
|
303
|
+
|
|
304
|
+
Penpot page `09 Code` publishes five `goodui.code-block` variants across `display=block/inline`, `lineNumbers=off/on`, and `preview=full/collapsed` where those combinations apply. `design/code-block-variants.json` records every ID. Language and title are content, while copy and expansion behavior are Angular runtime states. The Penpot toolbar and expand controls contain linked GoodUI Button instances. Code surfaces, colors, dimensions, padding, and corners bind to semantic `code.*` tokens. Penpot uses a series of token-bound translucent fade strips because token binding of individual gradient stops is unavailable; Angular renders a smooth CSS gradient using the same background token.
|
|
305
|
+
|
|
306
|
+
### Modal
|
|
307
|
+
|
|
308
|
+
`good-modal` owns a native modal dialog, dimmed backdrop with optional blur, focus management, viewport margins, and a single active dialog stack. `open` is a two-way model. Opening another `good-modal` suspends the current one; closing the top dialog restores the previous dialog and its focused control. Opening focuses the first available control inside the dialog; closing the last dialog returns focus to the original trigger. Escape and optional backdrop clicks dismiss. `size=small/default/large` chooses 420/560/720 px standard widths. `presentation=fullwidth` uses 960/1120/1280 px maximum widths; `presentation=overlay` fills the viewport except for a 20 px margin. Below 900 px every presentation becomes an overlay with a 12 px margin. `scrollBody` keeps Header and Footer visible while Body scrolls. Content belongs in the Body projection; `good-modal-header` provides required title, optional description, optional actions, and a close button; `good-modal-footer` projects actions with start, end, or between alignment. The Footer itself is optional.
|
|
309
|
+
|
|
310
|
+
Penpot page `10 Modals` publishes 18 `goodui.modal` variants across `presentation`, `size`, and `footer`, two `goodui.modal-header` description variants, and two `goodui.modal-footer` action examples. Root variants contain linked Header/Footer instances; Header and Footer retain linked GoodUI Buttons and a linked Lucide X in the close action. `design/modal-variants.json` records all 22 library IDs and exact Angular mappings. The `modal.*` tokens bind dimensions, colors, padding, gaps, and corner radius. A separate preview uses a linked Modal instance over a backdrop shape whose fill and opacity bind to semantic tokens. Native focus, stacking, scrolling, viewport rules, and dismissal are runtime behaviors rather than static Penpot variants. Penpot cannot bind a blur radius to the backdrop blur effect, so the preview uses a fixed 8 px effect while CSS applies `modal.backdrop.blur` at runtime.
|
|
311
|
+
|
|
312
|
+
### Switch
|
|
313
|
+
|
|
314
|
+
The `goodui.switch` Penpot variant group on `03 Controls` has `state=off/on`, `size=small/default/large`, `status=default/disabled/error`, and `appearance=brand/mono`. Its 36 published variants map to `good-switch`; the original 18 IDs remain the brand variants. `state` maps to `checked`, `size` and `appearance` map directly to inputs, and `status` maps to `disabled` or `error`. The complete library-ID map is `design/switch-variants.json`. Each variant keeps a token-bound track and thumb as editable shapes. Mono uses theme text color for the on track, a surface thumb when on, and a text-colored thumb when off; no brand blue appears in its normal state or focus ring. Disabled variants are dimmed; error variants retain a semantic error outline. If `disabled` and `error` are both true at runtime, disabled styling takes priority.
|
|
315
|
+
|
|
316
|
+
### Radio group
|
|
317
|
+
|
|
318
|
+
`good-radio-group` is the reusable exclusive-choice container. It accepts a required `label` and `options` array of unique string values and visible option labels. A native `fieldset` and `legend` give the group its accessible name; each option contains a native radio input. `value` is a two-way `string | null` model and Angular forms use the same value through ControlValueAccessor. The group can be disabled through its input or a form control; individual options may also be disabled. `size=small/default/large` selects 16/20/24 px indicators, and `appearance=brand/mono` chooses brand or theme text color for the selected dot and ring. The optional horizontal orientation wraps its items; vertical is the default. The group owns 44 px minimum choice heights, item spacing, and focus styling.
|
|
319
|
+
|
|
320
|
+
Penpot publishes 24 `goodui.radio-group` variants on `07 Radio Groups` with axes `appearance=brand/mono`, `size=small/default/large`, `selection=none/selected`, and `status=default/disabled`. The `selected` specimen selects its second option. Each Penpot specimen shows three choices; the Angular `options` array supplies runtime labels and count, so neither is a variant axis. `design/radio-group-variants.json` records every library ID. The group uses flex layout: the root owns legend spacing, its options container owns row spacing, and each option owns indicator-to-label spacing. The indicator and dot bind their dimensions and colors to distinct `radio.*` roles, including aliases to the theme-aware base colors.
|
|
321
|
+
|
|
322
|
+
### Checkbox
|
|
323
|
+
|
|
324
|
+
`good-checkbox` wraps a native checkbox and owns its 44 × 44 px minimum hit area, optional visible label, focus ring, three-state mark, and disabled presentation. `checked` and `indeterminate` are two-way models. With Angular forms, `false` means unchecked, `true` checked, and `null` indeterminate. When the user clicks or presses Space on an indeterminate checkbox, it becomes unchecked; the next activation checks it. `appearance=brand/mono` chooses brand or theme text color for the selected surface and mark. `size=small/default/large` gives a 16/20/24 px box and 10/12/16 px vector mark. Disabled controls keep their current state. `goodui.checkbox` lives on `06 Checkboxes` as 36 `appearance × state × size × status` variants; `design/checkbox-variants.json` maps all library IDs to the Angular API. The box and transparent mark wrapper are flex-centered and token-sized, with token-bound surface, outline, corner radius, and mark stroke. The vector path itself has fixed coordinates for each size because Penpot cannot size-bind the imported SVG group; the token-sized wrapper is the supported binding.
|
|
325
|
+
|
|
326
|
+
### Input contract
|
|
327
|
+
|
|
328
|
+
`good-input` supports `small`, `default`, and `large` at the same 32/40/48 px control heights as Button. `type=file` uses a native file input with a fixed File action and filename text; other supported types use a native text-like input. `disabled` prevents interaction, `readonly` keeps text selectable with a neutral surface, and `error` uses a theme-specific red border. Start and end slots each accept a Lucide icon or fixed text, with `inline` or `contrast` presentation. Icons and fixed text are display-only. The shell uses flex layout so addons and the editable area align without absolute offsets. Only the invisible native file input overlays the shell to retain native file activation.
|
|
329
|
+
|
|
330
|
+
The published Penpot `goodui.input` family uses `kind=text/file`, `size=small/default/large`, and `status=default/disabled/readonly/error` where valid. The internal `goodui.input-addon` family supplies optional start/end icon or text content with inline or contrast treatment. The 21 Input and 24 addon library IDs and their Angular mapping are recorded in `design/input-variants.json`. The two example compositions retain linked addon instances. The Angular component and demo use the same state and size semantics.
|
|
331
|
+
|
|
332
|
+
`good-textarea` follows Input's label, value, required, error, readonly, disabled, and Angular Forms behavior with a native multiline field. Its `small/default/large` minimum heights are 96/120/144 px in `control.textarea-min-height-*`; `rows` may increase the initial height and `[resizable]` enables vertical resizing. The published `goodui.textarea` Penpot family on `34 Textareas` has twelve `size × status` variants; `design/textarea-variants.json` records the IDs. Values, line count, and the optional grip are runtime choices, with a separate resize specimen. The same Input color and radius tokens drive both themes.
|
|
333
|
+
|
|
334
|
+
### PIN input contract
|
|
335
|
+
|
|
336
|
+
`good-pin-input` is one native text or password field with a visual row of individually clickable slots. The default length is six; `length` accepts 1–64. `allowedCharacters` is a comma-separated set of literal characters and inclusive ranges, defaulting to `0-9,a-z,A-Z`. Input, paste, model writes, and later rule changes are filtered to that set and capped at the configured length. A numeric-only set selects the mobile number keypad. `masked` shows an asterisk in each filled slot and uses a native password field. Empty slots use a neutral surface and optionally show `placeholder` characters or a Lucide `placeholderIcon`. The brand appearance colors entered characters and focus with the brand role; `mono` uses the theme text role. `size=small/default/large` maps to 44 × 48, 52 × 56, and 60 × 64 px slots. Long codes scroll horizontally inside the control instead of overflowing the page. The control supports Angular forms, required state inherited from FormField, completion events, and a full-length validator for nonempty values.
|
|
337
|
+
|
|
338
|
+
The proposed `goodui.pin-input` Penpot family maps directly to `good-pin-input`; `size`, `appearance`, and representative `state=empty/filled/masked/disabled` are design axes. Code length, characters, placeholder content, browser focus, and editing are runtime properties. Its exact mapping is in `design/pin-input-contract.json`. The `20 PIN Inputs` page and semantic `pin.*` tokens were created through MCP. The plugin disconnected while the first variant was being constructed, so this family has **no verified published Penpot component or IDs yet** and remains in `pendingPenpotFamilies`. The token values in the repository were copied from the MCP creation result, but a live catalog recheck is still required after reconnection. `pin.*` aliases existing Input, brand/text, spacing, and control-radius roles so light and dark themes follow the same base colors.
|
|
339
|
+
|
|
340
|
+
### Breadcrumbs contract
|
|
341
|
+
|
|
342
|
+
`good-breadcrumbs` accepts an ordered `GoodBreadcrumbItem[]` path. The last item is the current page; earlier items use their optional Angular routes. `homeIcon` replaces the first label visually while preserving its accessible name. `separator` accepts a Lucide/custom icon or text, defaulting to Lucide Chevron Right. `maxItems` is an optional displayed-entry limit with a minimum of three. When exceeded, the component keeps the first and final entries and collapses consecutive ancestors starting at level two into an ellipsis dropdown. The dropdown reuses GoodUI's menu focus, dismissal, and placement behavior. `card` applies the shared surface, border, `radius.card`, and spacing roles. The component owns list semantics, links, overflow, wrapping, and focus presentation.
|
|
343
|
+
|
|
344
|
+
### Badge
|
|
345
|
+
|
|
346
|
+
`good-badge` is an inline label for status and metadata. `color` is `primary`, `secondary`, `destructive`, `warning`, `success`, `info`, or `text`; `secondary` aliases the secondary Button color and `text` follows the current theme text role. `variant` is `solid` (default), `outline` (a light tint with a role-colored border), or `light` (a softened fill). `shape` is `pill` (default) or `square`; `circle` remains an Angular alias for older consumers. `size` is `small`, `default`, or `large`; Angular also accepts `medium` as an alias for `default`. The optional leading `icon` accepts the same Lucide or custom icon data as Button. `removable` adds a real trailing button; its `removed` output lets the owner remove the item. The owner supplies `label` and may override the button's accessible `removeLabel`.
|
|
347
|
+
|
|
348
|
+
The `goodui.badge` Penpot variant group is on `05 Badges` with all 126 `color × variant × shape × size` combinations. Four linked example instances show plain text, a leading icon, an X, and both content options. The component owns flex alignment, spacing, icon sizing, and pill or compact corners; consuming layouts only place the finished Badge. Hidden Lucide icon slots in every Penpot variant can be revealed in an instance. `design/badge-variants.json` records the exact published variant IDs. Token-bound heights are 24/28/32 px; inline padding is 8/10/12 px, gap is 4/6/8 px, and icon sizes are 12/14/16 px. Color roles, typography, radii, and spacing are semantic tokens shared with the generated CSS. Penpot examples show the X visually; click, keyboard focus, and event emission belong to Angular.
|
|
349
|
+
|
|
350
|
+
The Penpot `goodui.breadcrumbs` family on `03 Controls` contains sixteen `style=plain/card` × `start=text/icon` × `path=full/collapsed` × `separator=chevron/slash` variants. `style` maps to `[card]`; `start` maps to optional `[homeIcon]`; `path` maps to the actual `items` length and `[maxItems]`; `separator` maps to `[separator]`. Chevron and home instances remain linked to Lucide, and the Card and text roles are token-bound. The collapsed design shows the trigger; actual menu behavior belongs to Angular. IDs are in `design/breadcrumbs-variants.json`.
|
|
351
|
+
|
|
352
|
+
### Dropdown contract
|
|
353
|
+
|
|
354
|
+
`good-dropdown` uses `good-button` for its trigger. It inherits Button variant, size, icon, disabled behavior, and focus treatment; an optional trailing chevron indicates the popup. The popup can contain projected header and footer content around a data-driven item list. An optional height limit scrolls only the middle list. Items accept Lucide or custom icons, text, badges, secondary detail, actions, routes, disabled state, dividers, and recursive children. Parent items expand rather than navigate. The four placement preferences are `top-start`, `bottom-start`, `left-start`, and `right-start`; viewport clamping can shift the final location. `click` is the default trigger; `hover` opens with a pointer, while touch and keyboard remain usable.
|
|
355
|
+
|
|
356
|
+
Penpot's `goodui.dropdown` has 16 `placement` × `chevron` × `state` variants and linked Button instances. `goodui.dropdown-panel` has four `sections` × `scroll` variants; `goodui.dropdown-item` has twelve `content` × `state` variants. These two are internal to `good-dropdown`. The `goodui.dropdown.submenu-open` composition demonstrates linked panels. `design/dropdown-variants.json` records every library ID. The Penpot panel uses flex layout, token-bound surface, border, radius, padding, gap, and width; items bind their height, padding, radius, text, icon, and badge roles. Penpot can clip a scroll example but does not implement browser scrollbars, hover, focus, or dynamic placement. Angular supplies those behaviors and keeps header and footer outside the scrollable list. The trigger's extra chevron is a linked Lucide instance over a linked Button instance in Penpot because the plugin cannot add children inside a Button copy; Angular renders the chevron inside the Button through its trailing-icon API.
|
|
357
|
+
|
|
358
|
+
The switch track and thumb dimensions have their own semantic sizing tokens. `switch.on.background` aliases `color.brand` in light mode and is overridden in dark mode. `switch.error.border` aliases `color.error`, which is `#DC2626` in light mode and `#F87171` in dark mode. The same relationships generate the CSS variables. Angular uses a native checkbox with switch semantics, a 44 × 44 px minimum hit area, an accessible label, and optional `ControlValueAccessor` form binding. The visual component contains no product-specific label; consumers supply the label text.
|
|
359
|
+
|
|
360
|
+
### Nested topbar menus
|
|
361
|
+
|
|
362
|
+
The homepage has a top-level “Getting Started” menu with Introduction, Designing, Developing, License, and Changelog routes. Its separate Help menu has “Support Forum,” “Licenses & FAQ,” “Documentation,” and “Contact Us” after a divider. “Support Forum” reveals “All Questions,” “Popular Questions,” and “Ask Question.” Parents show a chevron; only leaves navigate. The selected parent uses `color.selected`; text, icons, borders, and surfaces use semantic color roles.
|
|
363
|
+
|
|
364
|
+
`TopbarMenuItem` owns the trigger and first open state. `TopbarDropdownMenu` arranges the first level; `TopbarDropdownItem` renders a link or parent; `TopbarSubmenu` arranges the next level. Further levels reuse these components. Desktop supports hover, click, and keyboard focus. On mobile, `mobileTopbarMenuMode` selects the default drawer placement (`hidden`) or a topbar icon and popup (`popup`). Both stack nested levels vertically. Escape closes the deepest level first and returns focus to its trigger; outside clicks close the chain. Submenus flip toward available viewport space.
|
|
365
|
+
|
|
366
|
+
Penpot includes `goodui.topbar-menu-item.open`, `goodui.topbar-dropdown-item.link`/`.parent`/`.open`, `goodui.topbar-dropdown-menu.default`/`.nested-open`, `goodui.topbar-submenu.default`, and the composed topbar and AppLayout open states. Its `goodui.topbar-menu-container.mobile-icon` and `.mobile-popup-open` states compose into `goodui.topbar.mobile-menu-icon` and `.mobile-menu-popup-open`. Angular renders the recursive `GoodTopbarItem.children` model through `GoodTopbarDropdownItemComponent`, `GoodTopbarDropdownMenuComponent`, and `GoodTopbarSubmenuComponent`. The homepage shows Help → Support Forum with working routes, mobile popup layout, and edge flipping, plus dedicated Topbar menu and Topbar submenu component pages.
|
|
367
|
+
|
|
368
|
+
### Avatar account menu
|
|
369
|
+
|
|
370
|
+
The avatar menu opens as a narrow panel aligned to the right edge of the avatar. Its identity header shows an avatar, name, email, and optional badge. Icon rows lead to profile and account destinations; “My Account” and “Language” open second-level panels. A divider separates navigation from the Dark Mode switch and outlined Log out action. The menu uses semantic color roles in both appearances.
|
|
371
|
+
|
|
372
|
+
`AvatarMenu` owns the panel and appearance switch. `AvatarMenuItem` renders route links, callback actions, and recursive parents from `GoodMenuAction.children`; `separatorBefore` and `variant: 'sign-out'` express grouping and the bottom action. The consuming app supplies account routes, language choices, and its own sign-out behavior. The desktop submenu opens toward the available left side of the right-aligned panel; mobile submenus expand within the panel. Escape closes the deepest open level first, then the panel; outside clicks close the chain. The `GoodUser.badge` field is optional.
|
|
373
|
+
|
|
374
|
+
## Tokens and theming
|
|
375
|
+
|
|
376
|
+
Penpot themes `appearance/light` and `appearance/dark` switch the same semantic roles. Light activates `layout`; dark activates `layout` plus `layout-dark`. The latter overrides colors only, so dimensions stay identical. Component surfaces, text, and icons use tokens.
|
|
377
|
+
|
|
378
|
+
| Role | Token | Light (`layout`) | Dark (`layout-dark`) |
|
|
379
|
+
| --- | --- | --- | --- |
|
|
380
|
+
| Canvas | `color.canvas` | `#FFFFFF` | `#09090B` |
|
|
381
|
+
| Surface | `color.surface` | `#FFFFFF` | `#09090B` |
|
|
382
|
+
| Primary text | `color.text` | `#09090B` | `#FAFAFA` |
|
|
383
|
+
| Secondary text | `color.muted` | `#71717A` | `#A1A1AA` |
|
|
384
|
+
| Border | `color.border` | `#E4E4E7` | `#27272A` |
|
|
385
|
+
| Accent | `color.accent` | `#2563EB` | `#60A5FA` |
|
|
386
|
+
| Selected item | `color.selected` | `#F4F4F5` | `#18181B` |
|
|
387
|
+
| Icon | `color.icon` | `#69707D` | `#A1A1AA` |
|
|
388
|
+
| Overlay | `color.overlay` | `#000000` | `#000000` |
|
|
389
|
+
|
|
390
|
+
Shared `layout` dimensions: `space.1`, `.2`, `.2_5`, `.3`, `.5`, `.6`, `.7_5` = 4, 8, 10, 12, 20, 24, 30 px; `radius.item` = 8 px; `radius.card` = 12 px; `size.sidebar` = 280 px; `size.topbar` = 70 px. Add shared roles for overlay opacity, hover, or focus if several components need them.
|
|
391
|
+
|
|
392
|
+
`radius.control` aliases the 6 px `radius.button`; `radius.compact` is 4 px; `radius.action` is the circular action-trigger role. The Angular stylesheet uses shared tokens for control, menu, item, card, action, and pill corners. Input main components and compositions bind their radius, sizing, gaps, padding, fills, borders, readonly surface, and error colors to semantic tokens. The `goodui.input` group has 21 variants; `goodui.input-addon` has 24. The addon is an internal visual part of `good-input`. The two compositions preserve linked addon instances. All rounded main-component boards on `01 Components` now have role-token bindings; nested inset surfaces retain their existing geometric radii and need separate treatment if their construction changes.
|
|
393
|
+
|
|
394
|
+
Angular Switch, the avatar appearance switch, and all 36 Penpot Switch variants place their thumbs with flex alignment while retaining the same track sizes and on/off positions. `switch.thumb-inset` binds the four track paddings in Penpot and CSS. Absolute positioning remains appropriate for popovers, fixed submenus, and invisible native input overlays.
|
|
395
|
+
|
|
396
|
+
The live Penpot file uses version 2.17.0 of the plugin API. Shell responsive and open states are separate main components; Button is a registered 45-combination Penpot variant group. The existing color tokens remain bound to fills and strokes. Semantic aliases in `layout` bind `topbar.padding-inline` to topbar flex padding, `main-menu.gap` to MainMenu flex column gap, and `sidebar.menu-gap` to the sidebar menu flex row gap. Sizing tokens bind sidebar width, desktop/mobile topbar height, subnav height, sidebar row height, the four 36 px action controls, and Button heights and icon sizes. `radius.item` binds sidebar item corners; `radius.card` binds MainView content border corners; `radius.button` binds Button corners. Main component IDs and intentionally different instance values remain unchanged.
|
|
397
|
+
|
|
398
|
+
The Penpot token catalog supports `spacing` on flex/grid gaps and padding, `sizing` on width/height, and `borderRadius` on corners. The account MainView, subnavigation track, and mobile topbar use absolute positioning rather than Penpot flex layout, so their placement offsets and mobile topbar padding cannot receive spacing-token bindings without changing layout behavior. They remain explicit geometry; the corresponding runtime CSS values are documented. Nested sidebar menu copies with a different flex gap are not rebound to the main component's gap token.
|
|
399
|
+
|
|
400
|
+
`color.accent` is a foreground color on neutral backgrounds. Filled Buttons use separate `color.brand` and `button.default.background` roles, with white foreground; destructive Buttons use `button.destructive.background` and `button.destructive.foreground`. Do not substitute the accent foreground for a filled control surface.
|
|
401
|
+
|
|
402
|
+
### Angular and Tailwind CSS 4 contract
|
|
403
|
+
|
|
404
|
+
- The app may set `data-theme="light"` or `data-theme="dark"` on a common root. Without it, light applies. Theme changes update CSS variables at runtime without rebuilding the library.
|
|
405
|
+
- Components use semantic roles (`canvas`, `surface`, `text`, `muted`, `border`, `accent`, `selected`, `icon`, `overlay`). Apps can override these variables per theme without changing component CSS. A future brand theme may override accent/brand roles independently of appearance.
|
|
406
|
+
- Tailwind CSS 4 maps runtime variables to `--color-good-*` through `@theme inline`; `@custom-variant dark` uses the same selector. The mapping and example are in [Design tokens](guides/foundations/tokens.md).
|
|
407
|
+
- `design-tokens/penpot.tokens.json` is a Penpot-compatible snapshot. `scripts/generate-tokens.mjs` generates the CSS variables and Tailwind color mapping from it. Refreshing the snapshot from Penpot is manual; the build does not read the live Penpot file.
|
|
408
|
+
- Check new color combinations visually and for contrast in both appearances. Icons follow `color.icon`; state surfaces should not hard-code light colors.
|
|
409
|
+
|
|
410
|
+
## Penpot inventory
|
|
411
|
+
|
|
412
|
+
File: `New File 4` (ID `a552d28a-7556-80e4-8008-d3392c96c899`; the plugin API could not rename the file). Pages: `01 Components`, `02 Layout`, `03 Controls`, `04 Logos`, `05 Badges`, `06 Checkboxes`, `07 Radio Groups`, `08 Cards and Links`, and `09 Code`. The library contains main components for the elements above. AppLayout has desktop, mobile, mobile drawer open, desktop sidebar expanded, and mobile drawer expanded states. Topbar has default, with-brand, and mobile states. Search, notifications, settings, and avatar each have trigger and open states. The sidebar also has real components for expanded parents, open/closed groups, and normal/active child links.
|
|
413
|
+
|
|
414
|
+
`04 Logos` contains 14 reusable brand assets: light and dark wordmarks, standalone symbols, square symbols, glossy square symbols, and three badge styles in both appearances. The names use `goodui.logo.<form>.<appearance>`; the complete IDs are in [Design to Angular](guides/contributing/design-to-code.md). These are product artwork assets, not UI component families, so they have no Angular selector. Both wordmarks and both standalone symbols have transparent, editable Penpot vector paths traced from the supplied PNGs. Their direct SVG exports are `assets/brand/goodui-logo-light.svg`, `goodui-logo-dark.svg`, `goodui-mark.svg`, and `goodui-mark-dark.svg`. The Angular homepage uses the symbols for its mobile topbar and favicons, selecting the dark assets according to the active GoodUI theme. Square symbols, glossy square symbols, and badges still use image fills that preserve their original backgrounds and effects. A traced vector can differ slightly from its raster source; review each exported SVG against the artwork after any brand update.
|
|
415
|
+
|
|
416
|
+
Shell compositions use nested component instances. Keep IDs when a component retains its meaning. The current ID registry is in [Design to Angular](guides/contributing/design-to-code.md) and can be verified through Penpot MCP.
|
|
417
|
+
|
|
418
|
+
## Behavior contract
|
|
419
|
+
|
|
420
|
+
- Navigation uses real Angular Router links. Expanders are buttons with `aria-expanded` and control only their own submenu.
|
|
421
|
+
- Parent rows and nested group rows have separate buttons with `aria-controls` and `aria-expanded`; only leaves navigate. When a route is active, its ancestors open and the link gets `aria-current="page"`. One group per level can stay open. Clicking an open group closes it without navigation; simultaneous groups at the same level are not configurable.
|
|
422
|
+
- `SidebarMenuContainer` owns group spacing and scrolling. `SidebarSubmenuGroup` owns indentation and guide lines on desktop and in the mobile drawer.
|
|
423
|
+
- Popovers, dialogs, and drawers need accessible labels, focus management, Escape handling, and focus return.
|
|
424
|
+
- The mobile sidebar opens from the topbar trigger and closes through the scrim or Escape. Desktop sidebar collapse exists as a design variant but is not yet exposed as an Angular API state.
|
|
425
|
+
- `MainView` accepts page content without imposing a card layout. The heading and actions are optional; content grows and scrolls.
|
|
426
|
+
- `Subnav` owns its horizontal viewport and child menu. Apps provide route data and do not add custom wrapping or page offsets.
|
|
427
|
+
- `MainMenu` can hide its ThemeToggle and other actions independently. ThemeToggle is shown by default; Settings is a separate optional menu. Apps may project a custom `good-main-menu` into `Topbar`; the container still owns spacing and hit areas.
|
|
428
|
+
- Tailwind CSS 4 theme variables provide colors; the shipped component CSS provides geometry. Apps do not add `margin-left` or `padding-top` to align the shell.
|
|
429
|
+
|
|
430
|
+
## Maintenance workflow
|
|
431
|
+
|
|
432
|
+
1. Review the current GoodUI design and intended behavior; update this contract.
|
|
433
|
+
2. Edit the affected Penpot main component and inspect its nested instances.
|
|
434
|
+
3. Export and visually review desktop, mobile, and open states.
|
|
435
|
+
4. Update the homepage examples and the Penpot-to-Angular mapping when behavior or APIs change.
|
|
436
|
+
5. When implementation is requested, build Angular/Tailwind and verify behavior, accessibility, and visual alignment.
|
|
437
|
+
|
|
438
|
+
## Progress
|
|
439
|
+
|
|
440
|
+
`good-progress` is the generic progress indicator. `mode=determinate` displays the clamped `[value]`; `indeterminate` shows motion without asserting a numerical value; `timed` fills over `[durationMs]` and repeats by default, with `[loop]="false"` stopping at 100%. `appearance=solid/segmented`, `size=small/default/large`, optional `title` and `showPercent`, and semantic, marker, or CSS colors cover common task states. The track owns its radius, height, label spacing, and segment spacing through `progress.*` tokens in the Penpot `layout` set. Penpot 2.17 did not repaint bound `progress.*` color aliases on these variants when the theme changed, so the live shapes bind directly to their base tokens: `color.selected` for track, `color.text` for label, and `color.surface` for dividers. The semantic aliases retain the same relationships for generated CSS. Penpot cannot bind the repeated divider pitch, so its 14 px positions mirror `progress.segment.width`; CSS consumes that token directly. Custom RGB is a local consumer override. Progress projects directly into Alert content, where Alert owns the vertical spacing. See [Progress](guides/components/progress.md).
|
|
441
|
+
|
|
442
|
+
`GoodNotificationCenter.publish()` accepts an optional Progress configuration. `update(id, changes)` replaces message presentation fields without changing delivery, creation time, or read state. NotificationHost and the bell panel render the same `good-progress` state from the entry. A running job uses `duration: 0` until the application reports completion; `delivery: 'inbox'` keeps the progress entirely in the panel. The Notifications example shows both a report job with inline and toast progress and an inbox-only job. This behavior uses the existing linked `goodui.alert-composition.progress` reference on Penpot page `24 Progress`; no new visual family is introduced.
|
|
443
|
+
|
|
444
|
+
## PDF preview
|
|
445
|
+
|
|
446
|
+
`good-pdf-preview` is the generic PDF reader frame. It accepts a URL, File, ArrayBuffer, Uint8Array, or an empty source; PDF.js renders the current page and selectable text. The component owns toolbar, page navigation, fit-to-width scaling, 50–300% zoom, rotation, download, viewport scrolling, and loading/error presentation. Angular models expose `pageNumber` and `zoom`; outputs report page changes, total page count, and failures. The Penpot `goodui.pdf-preview` component on `25 PDF Preview` shows the loaded state and links six GoodUI Button instances. Its frame binds `color.surface`, `color.border`, and `radius.card`; toolbar and viewport bind the existing space and color tokens. The sample PDF content is illustrative. Empty, loading, error, and document interactions are runtime states, not separate component names. The worker is lazily bundled by default; strict CSP consumers can host the version-matched worker under `[workerUrl]`. See [PDF preview](guides/components/pdf-preview.md).
|
|
447
|
+
|
|
448
|
+
The PDF toolbar's six linked Lucide icons use 14 px outer bounds and scaled child paths; every visible stroke binds to `button.ghost.foreground`. Replacing the nested icon with Penpot `swapComponent()` can retain 24 px child geometry, so verify path bounds inside the icon frame after each swap. The corrected toolbar was checked against the light and dark color sets.
|
|
449
|
+
|
|
450
|
+
## Error pages
|
|
451
|
+
|
|
452
|
+
`good-error-page` is the generic recovery page body. The 404 and 500 Penpot variants on `26 Error Pages` show brand and destructive tones; their status code, title, description, optional reference, icon, image, and projected GoodUI Button actions are configured by the application. The Penpot variants show the default generated illustration; `imageSrc` and `imageAlt` supply runtime content without changing the layout. The component owns its responsive split layout and mobile stacking. Applications route unknown paths to a page that renders it; a client-side route does not itself change the HTTP response status. See [Error page](guides/components/error-page.md).
|
package/guides/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# GoodUI guides
|
|
2
|
+
|
|
3
|
+
These Markdown guides document the Angular library and its Penpot mapping. The [homepage](../homepage/) contains the public Getting Started flow and runnable component examples.
|
|
4
|
+
|
|
5
|
+
- [Get started](intro.md)
|
|
6
|
+
- [Design tokens](foundations/tokens.md) and [naming](foundations/naming.md)
|
|
7
|
+
- [App layout](layout/app-layout.md) and [layout rules](layout/layout-rules.md)
|
|
8
|
+
- [Components](components/)
|
|
9
|
+
- [Typography](components/typography.md)
|
|
10
|
+
- [PIN input](components/pin-input.md)
|
|
11
|
+
- [Alerts](components/alert.md) and [Notifications](components/notifications.md)
|
|
12
|
+
- [Expandable](components/expandable.md)
|
|
13
|
+
- [Month calendar](components/month-calendar.md)
|
|
14
|
+
- [User registration example](examples/user-registration.md)
|
|
15
|
+
- [Penpot to Angular mapping and artwork registry](contributing/design-to-code.md)
|
|
16
|
+
|
|
17
|
+
Run `npm run build:homepage` to build the Angular library and homepage. These guides have no separate build step.
|