@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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"required": ["$schema", "package", "version", "generatedFrom", "components"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"$schema": { "const": "index.schema.json" },
|
|
8
|
+
"package": { "const": "@cloudfrogger/goodui" },
|
|
9
|
+
"version": { "type": "string" },
|
|
10
|
+
"generatedFrom": { "type": "string" },
|
|
11
|
+
"components": { "type": "array", "minItems": 1, "items": { "type": "object", "additionalProperties": false, "required": ["selector", "className", "file", "import", "usageGuide", "penpotCount"], "properties": { "selector": { "type": "string" }, "className": { "type": "string" }, "file": { "type": "string" }, "import": { "type": "object", "required": ["package", "symbol"], "properties": { "package": { "const": "@cloudfrogger/goodui" }, "symbol": { "type": "string" } } }, "usageGuide": { "type": ["string", "null"] }, "summary": { "type": ["string", "null"] }, "penpotCount": { "type": "integer", "minimum": 0 } } } }
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../../@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"examples": {
|
|
7
|
+
"projectType": "application",
|
|
8
|
+
"root": "",
|
|
9
|
+
"sourceRoot": "",
|
|
10
|
+
"architect": {
|
|
11
|
+
"build": {
|
|
12
|
+
"builder": "@angular/build:application",
|
|
13
|
+
"options": {
|
|
14
|
+
"outputPath": "dist",
|
|
15
|
+
"index": "index.html",
|
|
16
|
+
"browser": "main.ts",
|
|
17
|
+
"tsConfig": "tsconfig.json",
|
|
18
|
+
"styles": [
|
|
19
|
+
"../../styles.css"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<good-main-view title="Edit profile" description="Update a person's details.">
|
|
2
|
+
<form goodForm [formGroup]="form" (ngSubmit)="save()">
|
|
3
|
+
<good-group title="Personal information">
|
|
4
|
+
<good-form-row>
|
|
5
|
+
<good-input label="Full name" [showLabel]="true" formControlName="name" [error]="form.controls.name.touched && form.controls.name.invalid" />
|
|
6
|
+
<good-input label="Email address" type="email" [showLabel]="true" formControlName="email" [error]="form.controls.email.touched && form.controls.email.invalid" />
|
|
7
|
+
</good-form-row>
|
|
8
|
+
<good-select label="Role" [showLabel]="true" [options]="roles" formControlName="role" />
|
|
9
|
+
</good-group>
|
|
10
|
+
<good-action-group><good-button type="submit">Save changes</good-button></good-action-group>
|
|
11
|
+
</form>
|
|
12
|
+
@if (saved()) { <good-paragraph>Changes saved in this demo.</good-paragraph> }
|
|
13
|
+
</good-main-view>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
3
|
+
import { GoodActionGroupComponent, GoodButtonComponent, GoodFormDirective, GoodFormRowComponent, GoodGroupComponent, GoodInputComponent, GoodMainViewComponent, GoodSelectComponent, GoodSelectOption, GoodParagraphComponent } from '@cloudfrogger/goodui';
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-edit-form-example', standalone: true,
|
|
6
|
+
imports: [ReactiveFormsModule, GoodMainViewComponent, GoodFormDirective, GoodGroupComponent, GoodFormRowComponent, GoodInputComponent, GoodSelectComponent, GoodActionGroupComponent, GoodButtonComponent, GoodParagraphComponent],
|
|
7
|
+
templateUrl: './edit-form.html',
|
|
8
|
+
})
|
|
9
|
+
export class EditFormExample {
|
|
10
|
+
readonly form = new FormGroup({
|
|
11
|
+
name: new FormControl('Avery Chen', { nonNullable: true, validators: Validators.required }),
|
|
12
|
+
email: new FormControl('avery@example.com', { nonNullable: true, validators: [Validators.required, Validators.email] }),
|
|
13
|
+
role: new FormControl<string | null>('editor'),
|
|
14
|
+
});
|
|
15
|
+
readonly roles: GoodSelectOption[] = [{ value: 'viewer', label: 'Viewer' }, { value: 'editor', label: 'Editor' }, { value: 'admin', label: 'Administrator' }];
|
|
16
|
+
readonly saved = signal(false);
|
|
17
|
+
save(): void { if (this.form.valid) this.saved.set(true); else this.form.markAllAsTouched(); }
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>GoodUI AI examples</title><meta name="viewport" content="width=device-width, initial-scale=1"></head><body><app-root></app-root></body></html>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<good-main-view title="Sign in" description="Access your account.">
|
|
2
|
+
<good-card>
|
|
3
|
+
<good-card-header title="Welcome back" />
|
|
4
|
+
<form goodForm [formGroup]="form" (ngSubmit)="submit()">
|
|
5
|
+
<good-input label="Email address" type="email" autocomplete="email" formControlName="email" [showLabel]="true" [error]="form.controls.email.touched && form.controls.email.invalid" />
|
|
6
|
+
<good-input label="Password" type="password" autocomplete="current-password" formControlName="password" [showLabel]="true" [error]="form.controls.password.touched && form.controls.password.invalid" />
|
|
7
|
+
<good-action-group><good-button type="submit">Sign in</good-button></good-action-group>
|
|
8
|
+
</form>
|
|
9
|
+
@if (signedIn()) { <good-paragraph>Demo sign-in completed locally.</good-paragraph> }
|
|
10
|
+
</good-card>
|
|
11
|
+
</good-main-view>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
3
|
+
import { GoodActionGroupComponent, GoodButtonComponent, GoodCardComponent, GoodCardHeaderComponent, GoodFormDirective, GoodInputComponent, GoodMainViewComponent, GoodParagraphComponent } from '@cloudfrogger/goodui';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'app-login-example', standalone: true,
|
|
7
|
+
imports: [ReactiveFormsModule, GoodMainViewComponent, GoodCardComponent, GoodCardHeaderComponent, GoodFormDirective, GoodInputComponent, GoodButtonComponent, GoodActionGroupComponent, GoodParagraphComponent],
|
|
8
|
+
templateUrl: './login.html',
|
|
9
|
+
})
|
|
10
|
+
export class LoginExample {
|
|
11
|
+
readonly form = new FormGroup({ email: new FormControl('', { nonNullable: true, validators: [Validators.required, Validators.email] }), password: new FormControl('', { nonNullable: true, validators: Validators.required }) });
|
|
12
|
+
readonly signedIn = signal(false);
|
|
13
|
+
submit(): void { if (this.form.valid) this.signedIn.set(true); else this.form.markAllAsTouched(); }
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { bootstrapApplication } from '@angular/platform-browser';
|
|
3
|
+
import { GoodButtonComponent, GoodActionGroupComponent } from '@cloudfrogger/goodui';
|
|
4
|
+
import { LoginExample } from './login';
|
|
5
|
+
import { TableViewExample } from './table-view';
|
|
6
|
+
import { EditFormExample } from './edit-form';
|
|
7
|
+
import { SettingsExample } from './settings';
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'app-root', standalone: true,
|
|
10
|
+
imports: [GoodActionGroupComponent, GoodButtonComponent, LoginExample, TableViewExample, EditFormExample, SettingsExample],
|
|
11
|
+
template: `<good-action-group ariaLabel="Examples">
|
|
12
|
+
<good-button (click)="page.set('login')">Login</good-button>
|
|
13
|
+
<good-button (click)="page.set('table')">Table</good-button>
|
|
14
|
+
<good-button (click)="page.set('edit')">Edit</good-button>
|
|
15
|
+
<good-button (click)="page.set('settings')">Settings</good-button>
|
|
16
|
+
</good-action-group>
|
|
17
|
+
@switch (page()) {
|
|
18
|
+
@case ('login') { <app-login-example /> }
|
|
19
|
+
@case ('table') { <app-table-example /> }
|
|
20
|
+
@case ('edit') { <app-edit-form-example /> }
|
|
21
|
+
@case ('settings') { <app-settings-example /> }
|
|
22
|
+
}`,
|
|
23
|
+
})
|
|
24
|
+
class App { readonly page = signal<'login' | 'table' | 'edit' | 'settings'>('login'); }
|
|
25
|
+
bootstrapApplication(App).catch(error => console.error(error));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<good-main-view title="Settings" description="Choose how you receive updates.">
|
|
2
|
+
<form goodForm [formGroup]="form" (ngSubmit)="save()">
|
|
3
|
+
<good-group title="Notifications">
|
|
4
|
+
<good-switch label="Email updates" [showLabel]="true" formControlName="emailUpdates" />
|
|
5
|
+
<good-switch label="Activity alerts" [showLabel]="true" formControlName="activityAlerts" />
|
|
6
|
+
</good-group>
|
|
7
|
+
<good-action-group><good-button type="submit">Save settings</good-button></good-action-group>
|
|
8
|
+
</form>
|
|
9
|
+
@if (saved()) { <good-paragraph>Settings saved in this demo.</good-paragraph> }
|
|
10
|
+
</good-main-view>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { GoodActionGroupComponent, GoodButtonComponent, GoodFormDirective, GoodGroupComponent, GoodMainViewComponent, GoodParagraphComponent, GoodSwitchComponent } from '@cloudfrogger/goodui';
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-settings-example', standalone: true,
|
|
6
|
+
imports: [ReactiveFormsModule, GoodMainViewComponent, GoodGroupComponent, GoodFormDirective, GoodSwitchComponent, GoodActionGroupComponent, GoodButtonComponent, GoodParagraphComponent],
|
|
7
|
+
templateUrl: './settings.html',
|
|
8
|
+
})
|
|
9
|
+
export class SettingsExample {
|
|
10
|
+
readonly form = new FormGroup({ emailUpdates: new FormControl(true, { nonNullable: true }), activityAlerts: new FormControl(false, { nonNullable: true }) });
|
|
11
|
+
readonly saved = signal(false);
|
|
12
|
+
save(): void { this.saved.set(true); }
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { GoodMainViewComponent, GoodTableComponent, GoodTableColumn } from '@cloudfrogger/goodui';
|
|
3
|
+
interface Person { id: number; name: string; email: string; status: string; }
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-table-example', standalone: true,
|
|
6
|
+
imports: [GoodMainViewComponent, GoodTableComponent],
|
|
7
|
+
templateUrl: './table-view.html',
|
|
8
|
+
})
|
|
9
|
+
export class TableViewExample {
|
|
10
|
+
readonly people: Person[] = [
|
|
11
|
+
{ id: 1, name: 'Avery Chen', email: 'avery@example.com', status: 'Active' },
|
|
12
|
+
{ id: 2, name: 'Jordan Smith', email: 'jordan@example.com', status: 'Invited' },
|
|
13
|
+
{ id: 3, name: 'Taylor Reed', email: 'taylor@example.com', status: 'Active' },
|
|
14
|
+
];
|
|
15
|
+
readonly columns: GoodTableColumn<Person>[] = [
|
|
16
|
+
{ accessorKey: 'name', header: 'Name' },
|
|
17
|
+
{ accessorKey: 'email', header: 'Email' },
|
|
18
|
+
{ accessorKey: 'status', header: 'Status' },
|
|
19
|
+
];
|
|
20
|
+
readonly pagination = { mode: 'client' as const, pageSize: 10 };
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ES2022",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"strict": true,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"useDefineForClassFields": false,
|
|
10
|
+
"baseUrl": ".",
|
|
11
|
+
"paths": {
|
|
12
|
+
"@cloudfrogger/goodui": [
|
|
13
|
+
"../.."
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"angularCompilerOptions": {
|
|
18
|
+
"strictTemplates": true
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"main.ts",
|
|
22
|
+
"login.ts",
|
|
23
|
+
"table-view.ts",
|
|
24
|
+
"edit-form.ts",
|
|
25
|
+
"settings.ts"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Common mistakes
|
|
2
|
+
|
|
3
|
+
- **Guessing API names:** Open `ai/catalog/index.json`, then the selected detail file. Import the listed symbol from `@cloudfrogger/goodui` and use the recorded selector and inputs.
|
|
4
|
+
- **Using an old catalog with another package version:** Compare the installed `@cloudfrogger/goodui` version with the AI package. For a mismatch, fetch the exact matching release/tag or commit; never substitute `master` silently.
|
|
5
|
+
- **Treating `model()` as an ordinary input:** Its `nameChange` output is generated by Angular. For forms, prefer `formControlName` on components with `forms.controlValueAccessor: true`.
|
|
6
|
+
- **Adding a field without its required label:** The catalog marks required inputs. A hidden visual label still needs an accessible name.
|
|
7
|
+
- **Duplicating shell spacing or heading markup:** Use MainView and Group ownership as described in `layout.md`.
|
|
8
|
+
- **Assuming every Penpot shape is a public selector:** `penpot.kind` distinguishes component and internal part; absent mappings are marked in `missing`.
|
|
9
|
+
- **Assuming a successful TypeScript build proves usability:** Check keyboard focus, form errors, dark theme, and narrow screens in a browser.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Find components from a task
|
|
2
|
+
|
|
3
|
+
Start with `ai/catalog/index.json`. Each entry gives a selector, Angular import symbol, detail-file path, guide, and a short description when a component guide exists. Read the details for the candidates that fit the task, then their usage guide and source examples.
|
|
4
|
+
|
|
5
|
+
| User need | Starting points |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| Application frame, sidebar, navigation, page spacing | `good-app-layout`, `good-main-view`, `good-subnav`, `good-breadcrumbs`; `ai/guides/layout.md` |
|
|
8
|
+
| Form, validation, fields, choices, date, phone, file | `form[goodForm]`, `good-group`, `good-form-row`, `good-form-field`; input, select, checkbox, radio, date, and upload families |
|
|
9
|
+
| Records, filters, ordering, pagination, row actions | `good-table`, `good-input`, `good-select`, `good-action-menu`; `guides/components/table.md` |
|
|
10
|
+
| Commands, menus, confirmations, notifications | Button, ActionGroup, ActionBar, Dropdown, Modal, Alert; `guides/components/notifications.md` |
|
|
11
|
+
| Workspace, schedule, composition, assistant | Resizable, Calendar, RichTextEditor, AssistantPanel; relevant component guides |
|
|
12
|
+
| Charts, maps, metrics, progress | LineChart, BarChart, Histogram, ScatterChart, Sparkline, WorldMap, Progress, Timeline |
|
|
13
|
+
| Content, headings, summaries, image captions | MainView, Section, Prose, HeadingGroup, Card, Columns, InlineImage; `guides/components/typography.md` |
|
|
14
|
+
|
|
15
|
+
For services and TypeScript types, search `angular/projects/goodui/src/public-api.ts` and its exported modules. For example, notifications use `GoodNotificationCenter`, theme preferences use `GoodThemeService`, and shared initialization uses `provideGoodUI()`. These APIs have dedicated guides and source; they do not have Angular selectors.
|
|
16
|
+
|
|
17
|
+
Before using a candidate, check its required inputs and projection selectors. A catalog description helps discovery; the detail file and guide establish the actual API. Follow each `source` and `usageGuide` path relative to the reference root. This applies equally to a source checkout, the installed npm package, and a full archive.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Design tokens
|
|
2
|
+
|
|
3
|
+
GoodUI ships its own stylesheet. Load `@cloudfrogger/goodui/styles.css` once in the application build; do not recreate component colors or spacing in page CSS. The token source in this repository is `design-tokens/penpot.tokens.json`; generated CSS is an output, not an editing target.
|
|
4
|
+
|
|
5
|
+
- Use semantic roles such as brand, surface, text, border, destructive, and warning. Keep both light and dark themes readable.
|
|
6
|
+
- Use GoodUI appearance inputs for a component's documented variants. The catalog lists actual accepted values and defaults.
|
|
7
|
+
- Prefer `good-action-group`, `good-form-row`, `good-group`, `good-card`, and the layout components for spacing and grouping. Avoid margins on individual controls.
|
|
8
|
+
- Check light and dark rendering after changing an app-level theme. Do not assume a light-theme color works in dark mode.
|
|
9
|
+
|
|
10
|
+
In a source checkout, compare `design-tokens/penpot.tokens.json` with `angular/projects/goodui/src/styles.css` and the rendered homepage. In the full AI download, the token JSON is included as a local reference.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Layout rules
|
|
2
|
+
|
|
3
|
+
Use `good-app-layout` for a full application shell. Its composition is AppLayout → SidebarContainer / Topbar / MainView. `good-main-view` owns the page title, description, eyebrow, actions, and content flow. Use `good-heading-group` only when building an independent heading composition; do not nest it around a `good-main-view` title.
|
|
4
|
+
|
|
5
|
+
Choose one page pattern. For a centered content page, put `good-section` elements directly inside `good-main-view`; MainView aligns its heading and entire content area to the same 1024 px width. For a free full-width page, use no `good-section`; heading and content then begin at the same left edge. Do not mix direct Sections and free page content. A standard page title belongs in MainView's `title` input in either pattern.
|
|
6
|
+
|
|
7
|
+
`good-main-view layout="page"` is the default and lets the page scroll. For a workspace that fills the client area below the topbar without outer padding, set `layout="fill"`, project one primary child, and let that child scroll internally. For `good-calendar`, also set `[fillHeight]="true"` for a flush frame. See `guides/layout/app-layout.md` and `homepage/src/app/examples/calendar-workspace/` for the complete pattern.
|
|
8
|
+
|
|
9
|
+
For forms, use native `<form goodForm>` with Angular forms, `good-group` for sections, `good-form-row` for two or three responsive fields, and `good-action-group` for buttons. For bounded content, use `good-card` with `good-card-header` and `good-card-footer`; project content into the documented slots. Avoid app-specific CSS or Tailwind layout rules in examples. If a layout need cannot be expressed with GoodUI components, verify the library capability before adding a local workaround.
|
|
10
|
+
|
|
11
|
+
For parallel text content, use `<good-columns [columns]="3">` with one `<good-column>` per piece. Two columns are the default; three and four are optional. Each Column supplies Prose spacing to projected headings and paragraphs. Columns stack as their container narrows. All are visible by default; use a Column's `[visibleAt]="['sm', 'md', 'lg', 'xl']"` only when that content may be omitted at xs. The bands are container widths, documented in `guides/components/typography.md`.
|
|
12
|
+
|
|
13
|
+
On mobile (640 px and below), framed Groups and Cards already reduce their inner side padding to 12 px. Keep the MainView margins in `layout="page"`; do not add a page-level negative margin or another compacting rule to compensate for container padding. `layout="fill"` has no outer margins.
|
|
14
|
+
|
|
15
|
+
For a page-level Card or framed Group that still needs more horizontal room, set `[mobileBleed]="true"`. It adds a symmetric 8 px extension on each side only at mobile widths. The default is `false`, so nested bounded content does not move unexpectedly.
|
|
16
|
+
|
|
17
|
+
Read the exact catalog detail for each selected component. Required inputs are explicit there; selector names and imports come from `public-api.ts`.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Page patterns
|
|
2
|
+
|
|
3
|
+
Pick the page width before composing controls:
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<!-- Centered content: heading and sections share one width. -->
|
|
7
|
+
<good-main-view title="Settings" description="Manage your preferences">
|
|
8
|
+
<good-section>
|
|
9
|
+
<good-group title="Notifications">...</good-group>
|
|
10
|
+
</good-section>
|
|
11
|
+
</good-main-view>
|
|
12
|
+
|
|
13
|
+
<!-- Free content: heading and content both start at the page edge. -->
|
|
14
|
+
<good-main-view title="Schedule" description="Upcoming work">
|
|
15
|
+
<good-calendar />
|
|
16
|
+
</good-main-view>
|
|
17
|
+
|
|
18
|
+
<!-- Fill the remaining shell area; the calendar scrolls inside its frame. -->
|
|
19
|
+
<good-main-view layout="fill">
|
|
20
|
+
<good-calendar [fillHeight]="true" />
|
|
21
|
+
</good-main-view>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Keep one pattern per page. In the centered pattern, put each top-level content block inside a direct `good-section`; do not insert a free sibling between sections. MainView centers both its heading and content area automatically. The first two patterns use the default `layout="page"` and let the page scroll. The fill pattern reserves the remaining height for one primary child, which owns its scrollbars.
|
|
25
|
+
|
|
26
|
+
| Need | GoodUI composition | Example |
|
|
27
|
+
| --- | --- | --- |
|
|
28
|
+
| Sign in | MainView → Card → native form + Input + Button | `ai/examples/login.ts` and `.html` |
|
|
29
|
+
| Data overview | MainView → Table with typed columns, search and pagination | `ai/examples/table-view.ts` and `.html` |
|
|
30
|
+
| Edit record | MainView → native form + Group + FormRow + Input/Select + ActionGroup | `ai/examples/edit-form.ts` and `.html` |
|
|
31
|
+
| Settings | MainView → native form + Group + Switch + ActionGroup | `ai/examples/settings.ts` and `.html` |
|
|
32
|
+
|
|
33
|
+
The example app in `ai/examples/main.ts` renders all four pages. It compiles against the locally built library. Its demo handlers keep state in memory; add real persistence and authorization in the consuming application.
|
|
34
|
+
|
|
35
|
+
## Place notifications in the shell
|
|
36
|
+
|
|
37
|
+
If the application uses `good-app-layout`, it already has the Notifications bell and one notification host. For maintenance notices, background jobs, and other messages a person may need to revisit, publish through `GoodNotificationCenter`; use `delivery: 'inbox'` when no toast should interrupt the page. Do not reproduce a reference screenshot's notification banner as an Expandable or permanent page Alert merely because it appears above the content. Read `guides/components/notifications.md` before implementing that part of a screen.
|
|
38
|
+
|
|
39
|
+
Keep a `good-alert` in page content when it explains the current task or a nearby field, such as a form validation error. Use a toast for brief action feedback when the user should see it immediately; choose `persist` according to whether it belongs in the bell history. Avoid publishing the same seeded message on every route visit.
|
package/ai/install.mjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, join } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
|
|
5
|
+
const args = process.argv.slice(2);
|
|
6
|
+
const agent = args[args.indexOf('--agent') + 1];
|
|
7
|
+
if (!args.includes('--agent') || !['codex', 'claude', 'both'].includes(agent)
|
|
8
|
+
|| args.some((argument, index) => argument !== '--agent' && argument !== '--force'
|
|
9
|
+
&& args[index - 1] !== '--agent')) {
|
|
10
|
+
throw new Error('Usage: node node_modules/@cloudfrogger/goodui/ai/install.mjs --agent codex|claude|both [--force]');
|
|
11
|
+
}
|
|
12
|
+
const source = readFileSync(join(dirname(fileURLToPath(import.meta.url)), 'skill/goodui/SKILL.md'), 'utf8');
|
|
13
|
+
const directories = agent === 'both' ? ['.agents', '.claude'] : [agent === 'codex' ? '.agents' : '.claude'];
|
|
14
|
+
const targets = directories.map(directory => join(process.cwd(), directory, 'skills/goodui/SKILL.md'));
|
|
15
|
+
for (const target of targets) {
|
|
16
|
+
if (existsSync(target) && readFileSync(target, 'utf8') !== source && !args.includes('--force')) {
|
|
17
|
+
throw new Error(`${target} already contains a different skill. Review it and use --force to replace it.`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
for (const target of targets) {
|
|
21
|
+
mkdirSync(dirname(target), { recursive: true });
|
|
22
|
+
writeFileSync(target, source);
|
|
23
|
+
console.log(`Installed GoodUI skill at ${target}`);
|
|
24
|
+
}
|
|
25
|
+
console.log('Start a new agent session in this project and ask it to use the GoodUI skill.');
|
package/ai/manifest.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: goodui
|
|
3
|
+
description: Build or refine Angular screens with GoodUI components, or compose linked GoodUI designs in Penpot. Use the installed package's component catalog, API details, layout rules, and examples.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# GoodUI
|
|
7
|
+
|
|
8
|
+
## Find the matching references
|
|
9
|
+
|
|
10
|
+
In the consuming application's root, read `node_modules/@cloudfrogger/goodui/package.json`. Prefer the references bundled in that same package. Set your reference root to `node_modules/@cloudfrogger/goodui`; paths below are relative to that directory. Check its `ai/manifest.json` and `ai/catalog/index.json` against the installed package name and version.
|
|
11
|
+
|
|
12
|
+
For a source checkout, use its root and `angular/projects/goodui/package.json`. Older projects may keep a full reference archive in `.goodui/`; check its manifest against the installed version and recorded commit before using it. If bundled references are absent, use the exact installed version's release archive or the package's recorded `gitHead` commit. Resolve GitHub URLs against that tag or full commit. Explain a missing or mismatched reference and obtain the matching files before relying on their APIs.
|
|
13
|
+
|
|
14
|
+
## Build an Angular screen
|
|
15
|
+
|
|
16
|
+
1. Read `ai/catalog/index.json` to find suitable selectors and import symbols. `ai/guides/component-discovery.md` explains how to find components, services, and exported types from a task description. Read only the relevant component detail files and linked guides. Catalog files record inputs, defaults, required values, outputs, model changes, projection slots, forms integration, and Penpot ownership. Use `angular/projects/goodui/src/public-api.ts` and the referenced source files for exported types, services, and behavior that needs clarification.
|
|
17
|
+
2. Read `ai/guides/layout.md` and `ai/guides/page-patterns.md` when composing a page. Choose the shell and page layout before arranging controls. MainView owns page insets and heading alignment; Group, FormRow, Card, Columns, ActionGroup, and the workspace components own their layout. Prefer these capabilities and shared tokens when they satisfy the requested screen. Describe a missing reusable capability when the library cannot express the requested layout, and agree on the approach with the user.
|
|
18
|
+
3. Import public symbols from `@cloudfrogger/goodui` and global CSS from `@cloudfrogger/goodui/styles.css`. Check the app's root `provideGoodUI()` configuration and router. Use the catalog's exact inputs, outputs, projected slots, and Angular Forms integration. Keep domain data, persistence, and product-specific commands in the consuming application.
|
|
19
|
+
4. For notifications, read `guides/components/notifications.md`. AppLayout already hosts the bell and notification host. Use `GoodNotificationCenter` for revisitable messages, an inline Alert for nearby task/form problems, and a transient toast for immediate feedback.
|
|
20
|
+
5. Use `ai/examples/` for small form, table, and settings patterns. Guides link to complete homepage examples when useful. For a named case study, read `ai/case-studies/index.md`, then that study and its relevant screen. Keep routine component work focused on its relevant references.
|
|
21
|
+
6. Build the consuming app and exercise the requested interaction. Inspect desktop and mobile layouts, light and dark themes, and applicable keyboard, focus, and form behavior. State what was verified and what still needs a real backend, browser, or device check.
|
|
22
|
+
|
|
23
|
+
## Work from a Penpot design
|
|
24
|
+
|
|
25
|
+
When the task includes Penpot, inspect the live GoodUI library and the target screen through the available Penpot MCP connection. Compose linked instances using the mapped names and variants, and inspect their rendered result. Use `design/component-map.json` and the catalog's Penpot ownership records to map them to Angular selectors. Internal parts belong to their public component. Keep any unpublished design status visible in your report. If the required connection or file access is missing, identify it before claiming a design change.
|
|
26
|
+
|
|
27
|
+
Repository: `https://github.com/cloudfrogger/goodui`.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudfrogger/goodui",
|
|
3
|
+
"version": "0.0.62",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"registry": "https://registry.npmjs.org/"
|
|
8
|
+
},
|
|
9
|
+
"peerDependencies": {
|
|
10
|
+
"@angular/common": "^21.2.0",
|
|
11
|
+
"@angular/core": "^21.2.0",
|
|
12
|
+
"@angular/forms": "^21.2.0",
|
|
13
|
+
"@angular/router": "^21.2.0"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@lucide/angular": "^1.61.0",
|
|
17
|
+
"@tanstack/angular-table": "^9.3.1",
|
|
18
|
+
"country-flag-icons": "^1.6.20",
|
|
19
|
+
"libphonenumber-js": "^1.13.15",
|
|
20
|
+
"pdfjs-dist": "5.4.624",
|
|
21
|
+
"highlight.js": "^11.12.0",
|
|
22
|
+
"tslib": "^2.3.0"
|
|
23
|
+
},
|
|
24
|
+
"exports": {
|
|
25
|
+
"./styles.css": "./styles.css"
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.good-action-bar { display: flex; align-items: center; gap: 16px; min-width: 0; width: 100%; padding: 10px 16px; border-bottom: 1px solid var(--good-color-border); background: var(--good-canvas); font-family: var(--good-typography-font-family), ui-sans-serif, system-ui, sans-serif; position: relative; }
|
|
2
|
+
.good-action-bar { --good-action-bar-command-height: 56px; --good-action-bar-command-icon-size: 20px; --good-action-bar-command-font-size: 11px; }
|
|
3
|
+
.good-action-bar[data-size="default"] { --good-action-bar-command-height: 64px; --good-action-bar-command-icon-size: 22px; --good-action-bar-command-font-size: 12px; }
|
|
4
|
+
.good-action-bar[data-size="large"] { --good-action-bar-command-height: 72px; --good-action-bar-command-icon-size: 24px; --good-action-bar-command-font-size: 13px; }
|
|
5
|
+
.good-action-bar :is(.good-action-bar-visible, .good-action-bar-more, .good-action-bar-measure) .good-button-control { flex-direction: column; gap: 4px; width: auto; height: var(--good-action-bar-command-height); min-width: 56px; padding: 5px 9px; font-size: var(--good-action-bar-command-font-size); line-height: 1.2; }
|
|
6
|
+
.good-action-bar :is(.good-action-bar-visible, .good-action-bar-more, .good-action-bar-measure) .good-button-icon { width: var(--good-action-bar-command-icon-size); height: var(--good-action-bar-command-icon-size); }
|
|
7
|
+
.good-action-bar-commands { display: flex; align-items: center; min-width: 0; flex: 1; gap: 8px; }
|
|
8
|
+
.good-action-bar-visible { display: flex; align-items: center; min-width: 0; gap: 14px; overflow-x: auto; scrollbar-width: thin; }
|
|
9
|
+
.good-action-bar-visible > .good-action-group { flex: none; }
|
|
10
|
+
.good-action-bar-more { flex: none; }
|
|
11
|
+
.good-action-bar-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; flex: none; }
|
|
12
|
+
.good-action-bar-tools:empty { display: none; }
|
|
13
|
+
.good-action-bar-tools > [goodActionBarTools] { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
14
|
+
.good-action-bar-measure { position: fixed; left: -10000px; top: 0; display: flex; width: max-content; visibility: hidden; pointer-events: none; white-space: nowrap; }
|
|
15
|
+
.good-action-bar-measure-item, .good-action-bar-measure-more { display: inline-flex; }
|
|
16
|
+
.good-action-bar[data-stacked="true"] { flex-wrap: wrap; }
|
|
17
|
+
.good-action-bar[data-stacked="true"] .good-action-bar-commands { flex-basis: 100%; }
|
|
18
|
+
.good-action-bar[data-stacked="true"] .good-action-bar-tools { flex: 1; justify-content: flex-start; }
|
|
19
|
+
.good-action-bar[data-stacked="true"] .good-action-bar-tools > [goodActionBarTools] { flex: 1; }
|
|
20
|
+
.good-action-bar[data-stacked="true"] .good-action-bar-tools good-input { flex: 1; min-width: 0; }
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.good-assistant-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--good-assistant-width)); width: 100%; height: 100%; min-height: 0; min-width: 0; background: var(--good-canvas); color: var(--good-text); }
|
|
2
|
+
.good-assistant-main { --good-scroll-content-inset-top: var(--good-space-6); display: block; box-sizing: border-box; min-width: 0; min-height: 0; height: 100%; overflow: auto; padding: var(--good-scroll-content-inset-top) var(--good-main-view-inline-padding, var(--good-space-6)); }
|
|
3
|
+
.good-assistant-main[data-padding="none"] { --good-scroll-content-inset-top: 0px; padding: 0; }
|
|
4
|
+
.good-assistant-surface { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: var(--good-canvas); }
|
|
5
|
+
.good-assistant-panel[data-appearance="soft"] .good-assistant-surface { height: auto; min-height: 0; margin: var(--good-space-3); border-radius: var(--good-radius-card); background: var(--good-color-selected); }
|
|
6
|
+
.good-assistant-header, .good-assistant-footer { display: block; flex: none; padding: var(--good-space-4); }
|
|
7
|
+
.good-assistant-header > header, .good-assistant-footer > footer { display: flex; flex-direction: column; gap: var(--good-space-2); }
|
|
8
|
+
.good-assistant-body { display: flex; flex: 1; flex-direction: column; gap: var(--good-space-4); min-height: 0; overflow: auto; padding: 0 var(--good-space-4); }
|
|
9
|
+
.good-assistant-backdrop, good-button.good-assistant-launcher, good-button.good-assistant-close, .good-assistant-dock { display: none; }
|
|
10
|
+
@media (max-width: 700px) {
|
|
11
|
+
.good-assistant-panel { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
|
|
12
|
+
.good-assistant-main { --good-scroll-content-inset-top: var(--good-space-4); width: 100%; height: 100%; padding: var(--good-scroll-content-inset-top) var(--good-main-view-inline-padding, var(--good-space-4)); }
|
|
13
|
+
.good-assistant-main[data-padding="none"] { --good-scroll-content-inset-top: 0px; padding: 0; }
|
|
14
|
+
.good-assistant-surface { position: fixed; z-index: 102; top: 0; right: 0; bottom: 0; width: min(90vw, 360px); height: auto; box-shadow: -8px 0 32px color-mix(in srgb, var(--good-text) 14%, transparent); transform: translateX(105%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
|
|
15
|
+
.good-assistant-panel[data-appearance="soft"] .good-assistant-surface { margin: 0; border-radius: var(--good-radius-card) 0 0 var(--good-radius-card); }
|
|
16
|
+
.good-assistant-panel[data-open="true"] .good-assistant-surface { transform: translateX(0); visibility: visible; }
|
|
17
|
+
good-button.good-assistant-close { display: flex; position: absolute; z-index: 1; top: 8px; right: 8px; }
|
|
18
|
+
.good-assistant-header { padding-right: 52px; min-height: 52px; }
|
|
19
|
+
.good-assistant-body { padding-inline: var(--good-space-3); }
|
|
20
|
+
.good-assistant-surface:not(:has(good-assistant-header)) .good-assistant-body { padding-top: 52px; }
|
|
21
|
+
.good-assistant-footer { padding: var(--good-space-3); }
|
|
22
|
+
.good-assistant-backdrop { position: fixed; z-index: 101; inset: 0; background: color-mix(in srgb, var(--good-text) 35%, transparent); }
|
|
23
|
+
.good-assistant-panel[data-open="true"] .good-assistant-backdrop { display: block; }
|
|
24
|
+
good-button.good-assistant-launcher { display: flex; position: fixed; z-index: 100; right: 16px; bottom: 16px; }
|
|
25
|
+
.good-assistant-panel[data-mobile-mode="dock"] { grid-template-rows: minmax(0, 1fr) auto; }
|
|
26
|
+
.good-assistant-panel[data-mobile-mode="dock"] good-button.good-assistant-launcher,
|
|
27
|
+
.good-assistant-panel[data-mobile-mode="hidden"] good-button.good-assistant-launcher { display: none; }
|
|
28
|
+
.good-assistant-panel[data-mobile-mode="dock"] .good-assistant-dock { display: flex; align-items: flex-start; min-width: 0; max-height: min(40dvh, 300px); overflow: auto; padding: var(--good-space-3); border-radius: var(--good-radius-card) var(--good-radius-card) 0 0; background: var(--good-surface); box-shadow: 0 -8px 24px color-mix(in srgb, var(--good-text) 10%, transparent); }
|
|
29
|
+
.good-assistant-panel[data-appearance="soft"][data-mobile-mode="dock"] .good-assistant-dock { background: var(--good-color-selected); }
|
|
30
|
+
.good-assistant-mobile { display: block; flex: 1; min-width: 0; }
|
|
31
|
+
.good-assistant-panel[data-mobile-mode="dock"] .good-assistant-surface { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(85dvh, 720px); border-radius: var(--good-radius-card) var(--good-radius-card) 0 0; transform: translateY(105%); box-shadow: 0 -8px 32px color-mix(in srgb, var(--good-text) 14%, transparent); }
|
|
32
|
+
.good-assistant-panel[data-appearance="soft"][data-mobile-mode="dock"] .good-assistant-surface { border-radius: var(--good-radius-card) var(--good-radius-card) 0 0; }
|
|
33
|
+
.good-assistant-panel[data-mobile-mode="dock"][data-open="true"] .good-assistant-surface { transform: translateY(0); }
|
|
34
|
+
.good-assistant-panel[data-mobile-mode="hidden"] .good-assistant-surface,
|
|
35
|
+
.good-assistant-panel[data-mobile-mode="hidden"] .good-assistant-backdrop,
|
|
36
|
+
.good-assistant-panel[data-mobile-mode="hidden"] .good-assistant-dock { display: none; }
|
|
37
|
+
}
|
|
38
|
+
@media (prefers-reduced-motion: reduce) { .good-assistant-surface { transition: none; } }
|