@cloudfrogger/goodui 0.0.60 → 0.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/README.md +10 -0
  2. package/ai/README.md +47 -0
  3. package/ai/case-studies/index.md +10 -0
  4. package/ai/case-studies/vpshoster.md +18 -0
  5. package/ai/case-studies/webmailer.md +21 -0
  6. package/ai/catalog/README.md +7 -0
  7. package/ai/catalog/component.schema.json +289 -0
  8. package/ai/catalog/components/div-goodDetailRow.json +33 -0
  9. package/ai/catalog/components/form-goodForm.json +84 -0
  10. package/ai/catalog/components/good-action-bar.json +83 -0
  11. package/ai/catalog/components/good-action-group.json +143 -0
  12. package/ai/catalog/components/good-action-menu.json +121 -0
  13. package/ai/catalog/components/good-alert.json +184 -0
  14. package/ai/catalog/components/good-app-layout.json +247 -0
  15. package/ai/catalog/components/good-assistant-body.json +43 -0
  16. package/ai/catalog/components/good-assistant-footer.json +43 -0
  17. package/ai/catalog/components/good-assistant-header.json +43 -0
  18. package/ai/catalog/components/good-assistant-main.json +61 -0
  19. package/ai/catalog/components/good-assistant-mobile.json +43 -0
  20. package/ai/catalog/components/good-assistant-panel.json +131 -0
  21. package/ai/catalog/components/good-avatar-menu-item.json +82 -0
  22. package/ai/catalog/components/good-avatar-menu.json +83 -0
  23. package/ai/catalog/components/good-badge.json +180 -0
  24. package/ai/catalog/components/good-bar-chart.json +118 -0
  25. package/ai/catalog/components/good-brand-icon.json +71 -0
  26. package/ai/catalog/components/good-breadcrumbs.json +102 -0
  27. package/ai/catalog/components/good-button.json +192 -0
  28. package/ai/catalog/components/good-calendar.json +430 -0
  29. package/ai/catalog/components/good-card-footer.json +63 -0
  30. package/ai/catalog/components/good-card-header.json +100 -0
  31. package/ai/catalog/components/good-card.json +57 -0
  32. package/ai/catalog/components/good-chart-axis.json +168 -0
  33. package/ai/catalog/components/good-chart-bar.json +89 -0
  34. package/ai/catalog/components/good-chart-histogram.json +78 -0
  35. package/ai/catalog/components/good-chart-line.json +89 -0
  36. package/ai/catalog/components/good-chart-scatter.json +87 -0
  37. package/ai/catalog/components/good-checkbox.json +171 -0
  38. package/ai/catalog/components/good-citation.json +62 -0
  39. package/ai/catalog/components/good-code-block.json +116 -0
  40. package/ai/catalog/components/good-color-controls.json +58 -0
  41. package/ai/catalog/components/good-color-picker.json +141 -0
  42. package/ai/catalog/components/good-column.json +53 -0
  43. package/ai/catalog/components/good-columns.json +77 -0
  44. package/ai/catalog/components/good-date-input.json +386 -0
  45. package/ai/catalog/components/good-detail-list.json +43 -0
  46. package/ai/catalog/components/good-dropdown.json +259 -0
  47. package/ai/catalog/components/good-error-page.json +133 -0
  48. package/ai/catalog/components/good-error-text.json +43 -0
  49. package/ai/catalog/components/good-expandable.json +159 -0
  50. package/ai/catalog/components/good-eyebrow.json +61 -0
  51. package/ai/catalog/components/good-field-label.json +62 -0
  52. package/ai/catalog/components/good-form-field.json +67 -0
  53. package/ai/catalog/components/good-form-row.json +70 -0
  54. package/ai/catalog/components/good-group.json +150 -0
  55. package/ai/catalog/components/good-heading-group.json +45 -0
  56. package/ai/catalog/components/good-heading.json +69 -0
  57. package/ai/catalog/components/good-hint.json +43 -0
  58. package/ai/catalog/components/good-histogram.json +103 -0
  59. package/ai/catalog/components/good-icon.json +97 -0
  60. package/ai/catalog/components/good-image-input.json +190 -0
  61. package/ai/catalog/components/good-image-preview.json +97 -0
  62. package/ai/catalog/components/good-inline-image.json +131 -0
  63. package/ai/catalog/components/good-input-phone.json +226 -0
  64. package/ai/catalog/components/good-input.json +350 -0
  65. package/ai/catalog/components/good-line-chart.json +94 -0
  66. package/ai/catalog/components/good-link.json +147 -0
  67. package/ai/catalog/components/good-listbox.json +248 -0
  68. package/ai/catalog/components/good-main-menu.json +140 -0
  69. package/ai/catalog/components/good-main-view.json +179 -0
  70. package/ai/catalog/components/good-map-color-scale.json +163 -0
  71. package/ai/catalog/components/good-map-overlay.json +136 -0
  72. package/ai/catalog/components/good-modal-footer.json +63 -0
  73. package/ai/catalog/components/good-modal-header.json +73 -0
  74. package/ai/catalog/components/good-modal.json +131 -0
  75. package/ai/catalog/components/good-month-calendar.json +170 -0
  76. package/ai/catalog/components/good-notification-host.json +46 -0
  77. package/ai/catalog/components/good-notifications.json +72 -0
  78. package/ai/catalog/components/good-number-input.json +180 -0
  79. package/ai/catalog/components/good-paragraph.json +47 -0
  80. package/ai/catalog/components/good-pdf-preview.json +153 -0
  81. package/ai/catalog/components/good-pin-input.json +211 -0
  82. package/ai/catalog/components/good-progress.json +158 -0
  83. package/ai/catalog/components/good-prose.json +43 -0
  84. package/ai/catalog/components/good-radio-group.json +181 -0
  85. package/ai/catalog/components/good-range-slider.json +285 -0
  86. package/ai/catalog/components/good-rating.json +160 -0
  87. package/ai/catalog/components/good-resizable-pane.json +61 -0
  88. package/ai/catalog/components/good-resizable.json +185 -0
  89. package/ai/catalog/components/good-rich-text-editor.json +164 -0
  90. package/ai/catalog/components/good-scatter-chart.json +94 -0
  91. package/ai/catalog/components/good-search.json +60 -0
  92. package/ai/catalog/components/good-section.json +43 -0
  93. package/ai/catalog/components/good-select-country.json +205 -0
  94. package/ai/catalog/components/good-select-font.json +111 -0
  95. package/ai/catalog/components/good-select.json +217 -0
  96. package/ai/catalog/components/good-separator.json +59 -0
  97. package/ai/catalog/components/good-settings.json +60 -0
  98. package/ai/catalog/components/good-sidebar-container.json +112 -0
  99. package/ai/catalog/components/good-sidebar-item.json +210 -0
  100. package/ai/catalog/components/good-sidebar-menu-container.json +80 -0
  101. package/ai/catalog/components/good-sidebar-submenu-group.json +98 -0
  102. package/ai/catalog/components/good-sidebar-submenu-item.json +113 -0
  103. package/ai/catalog/components/good-signature-pad.json +115 -0
  104. package/ai/catalog/components/good-sparkline.json +188 -0
  105. package/ai/catalog/components/good-status-icon.json +425 -0
  106. package/ai/catalog/components/good-subheading.json +67 -0
  107. package/ai/catalog/components/good-subnav.json +132 -0
  108. package/ai/catalog/components/good-summary.json +43 -0
  109. package/ai/catalog/components/good-switch.json +167 -0
  110. package/ai/catalog/components/good-tab.json +129 -0
  111. package/ai/catalog/components/good-table.json +294 -0
  112. package/ai/catalog/components/good-tabs.json +90 -0
  113. package/ai/catalog/components/good-textarea.json +194 -0
  114. package/ai/catalog/components/good-theme-toggle.json +57 -0
  115. package/ai/catalog/components/good-timeline-section.json +105 -0
  116. package/ai/catalog/components/good-timeline-step.json +248 -0
  117. package/ai/catalog/components/good-timeline.json +302 -0
  118. package/ai/catalog/components/good-topbar-dropdown-item.json +115 -0
  119. package/ai/catalog/components/good-topbar-dropdown-menu.json +85 -0
  120. package/ai/catalog/components/good-topbar-menu-container.json +96 -0
  121. package/ai/catalog/components/good-topbar-menu-item.json +99 -0
  122. package/ai/catalog/components/good-topbar-submenu.json +77 -0
  123. package/ai/catalog/components/good-topbar.json +259 -0
  124. package/ai/catalog/components/good-world-map.json +145 -0
  125. package/ai/catalog/components/goodCardActions.json +33 -0
  126. package/ai/catalog/components/goodDropdownFooter.json +33 -0
  127. package/ai/catalog/components/goodDropdownHeader.json +33 -0
  128. package/ai/catalog/components/goodExpandableHeader.json +33 -0
  129. package/ai/catalog/components/ng-template-goodListboxItem.json +33 -0
  130. package/ai/catalog/components/ng-template-goodTableCell.json +43 -0
  131. package/ai/catalog/index.json +1484 -0
  132. package/ai/catalog/index.schema.json +13 -0
  133. package/ai/examples/angular.json +26 -0
  134. package/ai/examples/edit-form.html +13 -0
  135. package/ai/examples/edit-form.ts +18 -0
  136. package/ai/examples/index.html +1 -0
  137. package/ai/examples/login.html +11 -0
  138. package/ai/examples/login.ts +14 -0
  139. package/ai/examples/main.ts +25 -0
  140. package/ai/examples/settings.html +10 -0
  141. package/ai/examples/settings.ts +13 -0
  142. package/ai/examples/table-view.html +3 -0
  143. package/ai/examples/table-view.ts +21 -0
  144. package/ai/examples/tsconfig.json +27 -0
  145. package/ai/guides/common-mistakes.md +9 -0
  146. package/ai/guides/component-discovery.md +19 -0
  147. package/ai/guides/design-tokens.md +10 -0
  148. package/ai/guides/layout.md +19 -0
  149. package/ai/guides/page-patterns.md +39 -0
  150. package/ai/install.mjs +25 -0
  151. package/ai/manifest.json +6 -0
  152. package/ai/skill/goodui/SKILL.md +27 -0
  153. package/angular/projects/goodui/package.json +28 -0
  154. package/angular/projects/goodui/src/action-bar.css +20 -0
  155. package/angular/projects/goodui/src/assistant-panel.css +38 -0
  156. package/angular/projects/goodui/src/calendar.css +161 -0
  157. package/angular/projects/goodui/src/chart.css +35 -0
  158. package/angular/projects/goodui/src/color-picker.css +40 -0
  159. package/angular/projects/goodui/src/error-page.css +24 -0
  160. package/angular/projects/goodui/src/lib/action-bar.ts +161 -0
  161. package/angular/projects/goodui/src/lib/action-group.ts +31 -0
  162. package/angular/projects/goodui/src/lib/action-menu.ts +81 -0
  163. package/angular/projects/goodui/src/lib/actions.ts +320 -0
  164. package/angular/projects/goodui/src/lib/alert.ts +60 -0
  165. package/angular/projects/goodui/src/lib/app-layout.ts +84 -0
  166. package/angular/projects/goodui/src/lib/assistant-panel.ts +133 -0
  167. package/angular/projects/goodui/src/lib/badge.ts +47 -0
  168. package/angular/projects/goodui/src/lib/bar-chart.html +80 -0
  169. package/angular/projects/goodui/src/lib/bar-chart.ts +233 -0
  170. package/angular/projects/goodui/src/lib/breadcrumbs.ts +81 -0
  171. package/angular/projects/goodui/src/lib/button.ts +38 -0
  172. package/angular/projects/goodui/src/lib/calendar-layout.ts +68 -0
  173. package/angular/projects/goodui/src/lib/calendar-service.ts +144 -0
  174. package/angular/projects/goodui/src/lib/calendar-working-hours.ts +65 -0
  175. package/angular/projects/goodui/src/lib/calendar.html +200 -0
  176. package/angular/projects/goodui/src/lib/calendar.ts +471 -0
  177. package/angular/projects/goodui/src/lib/card.ts +64 -0
  178. package/angular/projects/goodui/src/lib/chart-colors.ts +22 -0
  179. package/angular/projects/goodui/src/lib/chart-data.ts +269 -0
  180. package/angular/projects/goodui/src/lib/checkbox.ts +87 -0
  181. package/angular/projects/goodui/src/lib/code-block.ts +147 -0
  182. package/angular/projects/goodui/src/lib/color-controls.ts +107 -0
  183. package/angular/projects/goodui/src/lib/color-picker.ts +142 -0
  184. package/angular/projects/goodui/src/lib/color-utils.ts +69 -0
  185. package/angular/projects/goodui/src/lib/country-data.ts +16 -0
  186. package/angular/projects/goodui/src/lib/date-input.ts +542 -0
  187. package/angular/projects/goodui/src/lib/dropdown.ts +309 -0
  188. package/angular/projects/goodui/src/lib/error-page.ts +46 -0
  189. package/angular/projects/goodui/src/lib/expandable.ts +64 -0
  190. package/angular/projects/goodui/src/lib/form.ts +12 -0
  191. package/angular/projects/goodui/src/lib/goodui-config.ts +16 -0
  192. package/angular/projects/goodui/src/lib/group.ts +45 -0
  193. package/angular/projects/goodui/src/lib/histogram.html +52 -0
  194. package/angular/projects/goodui/src/lib/histogram.ts +146 -0
  195. package/angular/projects/goodui/src/lib/icon.ts +44 -0
  196. package/angular/projects/goodui/src/lib/image-input.ts +154 -0
  197. package/angular/projects/goodui/src/lib/image-preview.ts +26 -0
  198. package/angular/projects/goodui/src/lib/input-phone.ts +305 -0
  199. package/angular/projects/goodui/src/lib/input.ts +143 -0
  200. package/angular/projects/goodui/src/lib/line-chart.html +53 -0
  201. package/angular/projects/goodui/src/lib/line-chart.ts +193 -0
  202. package/angular/projects/goodui/src/lib/link.ts +46 -0
  203. package/angular/projects/goodui/src/lib/listbox.ts +254 -0
  204. package/angular/projects/goodui/src/lib/main-view.ts +39 -0
  205. package/angular/projects/goodui/src/lib/marker-colors.ts +7 -0
  206. package/angular/projects/goodui/src/lib/modal.ts +199 -0
  207. package/angular/projects/goodui/src/lib/models.ts +115 -0
  208. package/angular/projects/goodui/src/lib/month-calendar.ts +289 -0
  209. package/angular/projects/goodui/src/lib/notification-center.ts +170 -0
  210. package/angular/projects/goodui/src/lib/notification-host.ts +86 -0
  211. package/angular/projects/goodui/src/lib/number-input.ts +180 -0
  212. package/angular/projects/goodui/src/lib/pdf-preview.ts +242 -0
  213. package/angular/projects/goodui/src/lib/pdf-worker.generated.ts +2 -0
  214. package/angular/projects/goodui/src/lib/pin-input.ts +193 -0
  215. package/angular/projects/goodui/src/lib/progress.ts +93 -0
  216. package/angular/projects/goodui/src/lib/provide-goodui.ts +15 -0
  217. package/angular/projects/goodui/src/lib/radio-group.ts +94 -0
  218. package/angular/projects/goodui/src/lib/range-slider.ts +313 -0
  219. package/angular/projects/goodui/src/lib/rating.ts +90 -0
  220. package/angular/projects/goodui/src/lib/required-control.ts +4 -0
  221. package/angular/projects/goodui/src/lib/resizable.ts +168 -0
  222. package/angular/projects/goodui/src/lib/rich-text-command.ts +111 -0
  223. package/angular/projects/goodui/src/lib/rich-text-editor.html +193 -0
  224. package/angular/projects/goodui/src/lib/rich-text-editor.ts +864 -0
  225. package/angular/projects/goodui/src/lib/rich-text-sanitize.ts +99 -0
  226. package/angular/projects/goodui/src/lib/scatter-chart.html +48 -0
  227. package/angular/projects/goodui/src/lib/scatter-chart.ts +150 -0
  228. package/angular/projects/goodui/src/lib/select-country.ts +104 -0
  229. package/angular/projects/goodui/src/lib/select-font.ts +189 -0
  230. package/angular/projects/goodui/src/lib/select.ts +336 -0
  231. package/angular/projects/goodui/src/lib/sidebar.ts +232 -0
  232. package/angular/projects/goodui/src/lib/signature-pad.ts +238 -0
  233. package/angular/projects/goodui/src/lib/sparkline.html +15 -0
  234. package/angular/projects/goodui/src/lib/sparkline.ts +106 -0
  235. package/angular/projects/goodui/src/lib/status-icon.ts +79 -0
  236. package/angular/projects/goodui/src/lib/subnav.ts +156 -0
  237. package/angular/projects/goodui/src/lib/switch.ts +54 -0
  238. package/angular/projects/goodui/src/lib/table.ts +538 -0
  239. package/angular/projects/goodui/src/lib/tabs.ts +251 -0
  240. package/angular/projects/goodui/src/lib/textarea.ts +83 -0
  241. package/angular/projects/goodui/src/lib/theme.ts +49 -0
  242. package/angular/projects/goodui/src/lib/timeline.ts +252 -0
  243. package/angular/projects/goodui/src/lib/topbar.ts +403 -0
  244. package/angular/projects/goodui/src/lib/typography.ts +250 -0
  245. package/angular/projects/goodui/src/lib/world-map-data.ts +3 -0
  246. package/angular/projects/goodui/src/lib/world-map.html +73 -0
  247. package/angular/projects/goodui/src/lib/world-map.ts +391 -0
  248. package/angular/projects/goodui/src/month-calendar.css +47 -0
  249. package/angular/projects/goodui/src/pdf-preview.css +25 -0
  250. package/angular/projects/goodui/src/progress.css +38 -0
  251. package/angular/projects/goodui/src/public-api.ts +74 -0
  252. package/angular/projects/goodui/src/range-slider.css +54 -0
  253. package/angular/projects/goodui/src/resizable.css +32 -0
  254. package/angular/projects/goodui/src/rich-text-editor.css +33 -0
  255. package/angular/projects/goodui/src/select-font.css +16 -0
  256. package/angular/projects/goodui/src/signature-pad.css +14 -0
  257. package/angular/projects/goodui/src/styles.css +1105 -0
  258. package/angular/projects/goodui/src/timeline.css +138 -0
  259. package/angular/projects/goodui/src/tokens.generated.css +754 -0
  260. package/design/component-map.json +2233 -0
  261. package/design-tokens/penpot.tokens.json +3339 -0
  262. package/design.md +452 -0
  263. package/fesm2022/cloudfrogger-goodui.mjs +32 -18
  264. package/fesm2022/cloudfrogger-goodui.mjs.map +1 -1
  265. package/guides/README.md +17 -0
  266. package/guides/components/action-bar.md +43 -0
  267. package/guides/components/action-group.md +43 -0
  268. package/guides/components/action-menu.md +22 -0
  269. package/guides/components/alert.md +28 -0
  270. package/guides/components/assistant-panel.md +50 -0
  271. package/guides/components/avatar-menu.md +34 -0
  272. package/guides/components/badge.md +39 -0
  273. package/guides/components/bar-chart.md +40 -0
  274. package/guides/components/breadcrumbs.md +37 -0
  275. package/guides/components/button.md +40 -0
  276. package/guides/components/calendar.md +166 -0
  277. package/guides/components/card.md +62 -0
  278. package/guides/components/chart-axis.md +5 -0
  279. package/guides/components/chart-bar.md +5 -0
  280. package/guides/components/chart-data.md +58 -0
  281. package/guides/components/chart-histogram.md +16 -0
  282. package/guides/components/chart-line.md +5 -0
  283. package/guides/components/chart-scatter.md +14 -0
  284. package/guides/components/checkbox.md +36 -0
  285. package/guides/components/code-block.md +35 -0
  286. package/guides/components/color-controls.md +22 -0
  287. package/guides/components/column.md +5 -0
  288. package/guides/components/columns.md +13 -0
  289. package/guides/components/date-input.md +62 -0
  290. package/guides/components/detail-list.md +25 -0
  291. package/guides/components/dropdown.md +48 -0
  292. package/guides/components/error-page.md +31 -0
  293. package/guides/components/expandable.md +36 -0
  294. package/guides/components/form.md +49 -0
  295. package/guides/components/group.md +41 -0
  296. package/guides/components/histogram.md +45 -0
  297. package/guides/components/icon.md +13 -0
  298. package/guides/components/image-input.md +34 -0
  299. package/guides/components/input-phone.md +45 -0
  300. package/guides/components/input.md +59 -0
  301. package/guides/components/line-chart.md +37 -0
  302. package/guides/components/link.md +31 -0
  303. package/guides/components/listbox.md +109 -0
  304. package/guides/components/main-menu.md +23 -0
  305. package/guides/components/main-view.md +21 -0
  306. package/guides/components/modal.md +58 -0
  307. package/guides/components/month-calendar.md +88 -0
  308. package/guides/components/notifications.md +76 -0
  309. package/guides/components/number-input.md +21 -0
  310. package/guides/components/pdf-preview.md +38 -0
  311. package/guides/components/pin-input.md +37 -0
  312. package/guides/components/progress.md +41 -0
  313. package/guides/components/radio-group.md +41 -0
  314. package/guides/components/range-slider.md +42 -0
  315. package/guides/components/rating.md +39 -0
  316. package/guides/components/resizable-pane.md +3 -0
  317. package/guides/components/resizable.md +75 -0
  318. package/guides/components/rich-text-editor.md +113 -0
  319. package/guides/components/scatter-chart.md +43 -0
  320. package/guides/components/search.md +51 -0
  321. package/guides/components/select-font.md +16 -0
  322. package/guides/components/select.md +65 -0
  323. package/guides/components/settings.md +11 -0
  324. package/guides/components/sidebar.md +47 -0
  325. package/guides/components/signature-pad.md +45 -0
  326. package/guides/components/sparkline.md +31 -0
  327. package/guides/components/status-icon.md +32 -0
  328. package/guides/components/submenus.md +30 -0
  329. package/guides/components/subnav.md +54 -0
  330. package/guides/components/switch.md +48 -0
  331. package/guides/components/table.md +256 -0
  332. package/guides/components/tabs.md +46 -0
  333. package/guides/components/textarea.md +44 -0
  334. package/guides/components/theme-toggle.md +33 -0
  335. package/guides/components/timeline-section.md +7 -0
  336. package/guides/components/timeline-step.md +12 -0
  337. package/guides/components/timeline.md +179 -0
  338. package/guides/components/topbar.md +89 -0
  339. package/guides/components/typography.md +155 -0
  340. package/guides/components/world-map.md +72 -0
  341. package/guides/contributing/design-to-code.md +265 -0
  342. package/guides/deployment/drone.md +77 -0
  343. package/guides/examples/user-registration.md +11 -0
  344. package/guides/foundations/naming.md +7 -0
  345. package/guides/foundations/tokens.md +203 -0
  346. package/guides/intro.md +80 -0
  347. package/guides/layout/app-layout.md +81 -0
  348. package/guides/layout/layout-rules.md +16 -0
  349. package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.html +22 -0
  350. package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.ts +111 -0
  351. package/homepage/src/app/examples/calendar-workspace/source-code.generated.ts +3 -0
  352. package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.html +166 -0
  353. package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.ts +134 -0
  354. package/homepage/src/app/examples/case-studies/cloudhoster/cloudhoster-store.ts +92 -0
  355. package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.html +93 -0
  356. package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.ts +115 -0
  357. package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.html +202 -0
  358. package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.ts +143 -0
  359. package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.html +70 -0
  360. package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.ts +44 -0
  361. package/homepage/src/app/examples/case-studies/cloudhoster/home-page.html +70 -0
  362. package/homepage/src/app/examples/case-studies/cloudhoster/home-page.ts +32 -0
  363. package/homepage/src/app/examples/case-studies/cloudhoster/source-code.generated.ts +12 -0
  364. package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.html +208 -0
  365. package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.ts +214 -0
  366. package/homepage/src/app/examples/case-studies/vpshoster/overview-page.html +35 -0
  367. package/homepage/src/app/examples/case-studies/vpshoster/overview-page.ts +17 -0
  368. package/homepage/src/app/examples/case-studies/vpshoster/servers-page.html +111 -0
  369. package/homepage/src/app/examples/case-studies/vpshoster/servers-page.ts +206 -0
  370. package/homepage/src/app/examples/case-studies/vpshoster/source-code.generated.ts +6 -0
  371. package/homepage/src/app/examples/case-studies/vpshoster/vps-store.ts +92 -0
  372. package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.html +35 -0
  373. package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.ts +17 -0
  374. package/homepage/src/app/examples/error-pages/error-pages-example-page.html +27 -0
  375. package/homepage/src/app/examples/error-pages/error-pages-example-page.ts +34 -0
  376. package/homepage/src/app/examples/error-pages/not-found-page.html +8 -0
  377. package/homepage/src/app/examples/error-pages/not-found-page.ts +19 -0
  378. package/homepage/src/app/examples/error-pages/server-error-page.html +8 -0
  379. package/homepage/src/app/examples/error-pages/server-error-page.ts +20 -0
  380. package/homepage/src/app/examples/error-pages/source-code.generated.ts +7 -0
  381. package/homepage/src/app/examples/mail-compose/mail-compose-page.html +25 -0
  382. package/homepage/src/app/examples/mail-compose/mail-compose-page.ts +28 -0
  383. package/homepage/src/app/examples/mail-workspace/mail-workspace-page.html +59 -0
  384. package/homepage/src/app/examples/mail-workspace/mail-workspace-page.ts +128 -0
  385. package/homepage/src/app/examples/mail-workspace/source-code.generated.ts +3 -0
  386. package/homepage/src/app/examples/notifications/notifications-page.html +51 -0
  387. package/homepage/src/app/examples/notifications/notifications-page.ts +133 -0
  388. package/homepage/src/app/examples/notifications/source-code.generated.ts +3 -0
  389. package/homepage/src/app/examples/pdf-reader/pdf-reader-page.html +27 -0
  390. package/homepage/src/app/examples/pdf-reader/pdf-reader-page.ts +39 -0
  391. package/homepage/src/app/examples/pdf-reader/source-code.generated.ts +3 -0
  392. package/homepage/src/app/examples/user-registration/source-code.generated.ts +5 -0
  393. package/homepage/src/app/examples/user-registration/user-registration-example-page.html +11 -0
  394. package/homepage/src/app/examples/user-registration/user-registration-example-page.ts +21 -0
  395. package/homepage/src/app/examples/user-registration/user-registration-form.html +116 -0
  396. package/homepage/src/app/examples/user-registration/user-registration-form.ts +93 -0
  397. package/homepage/src/app/examples/user-registration/user-registration-page.html +11 -0
  398. package/homepage/src/app/examples/user-registration/user-registration-page.ts +23 -0
  399. package/package.json +2 -2
  400. package/types/cloudfrogger-goodui.d.ts +2 -2
@@ -0,0 +1,256 @@
1
+ # Table
2
+
3
+ `good-table` presents records in a native table with a consistent GoodUI frame, header, rows, optional search, and optional pagination. It uses TanStack Table for its row models and column definitions. Without `[pagination]`, all supplied rows remain visible and the table grows vertically with them. Narrow screens scroll the table horizontally inside its frame.
4
+
5
+ ## Start with columns and data
6
+
7
+ ```ts
8
+ import { Component, signal } from '@angular/core';
9
+ import { GoodTableColumn, GoodTableComponent } from '@cloudfrogger/goodui';
10
+
11
+ interface Person { id: string; name: string; role: string }
12
+
13
+ @Component({
14
+ standalone: true,
15
+ imports: [GoodTableComponent],
16
+ template: `<good-table label="People" [data]="people()" [columns]="columns"
17
+ [getRowId]="rowId" [searchable]="true" />`,
18
+ })
19
+ export class PeoplePage {
20
+ readonly people = signal<Person[]>([]);
21
+ readonly rowId = (person: Person) => person.id;
22
+ readonly columns: GoodTableColumn<Person>[] = [
23
+ { accessorKey: 'name', header: 'Name', enableSorting: true },
24
+ { accessorKey: 'role', header: 'Role' },
25
+ ];
26
+ }
27
+ ```
28
+
29
+ Sorting is opt-in for each column. Client sorting and search operate on the supplied rows. Pass a stable `getRowId` when cells contain stateful controls or records can be reordered. Column definitions use TanStack's `accessorKey`, `accessorFn`, `header`, `cell`, `enableSorting`, sorting functions, and `meta`. GoodUI recognizes `meta: { align: 'start' | 'center' | 'end', noWrap: boolean }` for cell alignment and wrapping.
30
+
31
+ ## Show columns from a width
32
+
33
+ Set `meta.visibleFrom` in a column definition to show that column only when the Table's own container is wide enough. The default is `xs`, so existing columns remain visible at every width. The tiers are `xs` (0 px), `sm` (480 px), `md` (700 px), `lg` (960 px), and `xl` (1280 px). Measuring the Table rather than the viewport also works when it sits beside a sidebar or assistant panel.
34
+
35
+ ```ts
36
+ readonly columns: GoodTableColumn<Plan>[] = [
37
+ { accessorKey: 'name', header: 'Plan' },
38
+ { accessorKey: 'vcpus', header: 'vCPUs', meta: { visibleFrom: 'md' } },
39
+ { accessorKey: 'price', header: 'Price' },
40
+ ];
41
+ ```
42
+
43
+ Headers and cells appear together as the container crosses a tier. Hidden columns remain in the data and return automatically when space grows; column order is preserved. Keep an identifying column visible at `xs`. Responsive visibility is runtime data and does not add a Penpot variant.
44
+
45
+ ## Move columns
46
+
47
+ Column movement is enabled by default. Drag the grip beside a header to another header, or focus the grip and use Left, Right, Home, or End. The body cells move with their headers. The sort button remains separate. Use `[reorderable]="false"` in the template when the column order must stay fixed. Bind `[(columnOrder)]` to a `signal<string[]>` when the application needs to save or set the order; the array contains column IDs. Give every column a stable ID (an `accessorKey` supplies one for simple columns).
48
+
49
+ ```html
50
+ <good-table label="Items" [data]="items()" [columns]="columns"
51
+ [(columnOrder)]="columnOrder" />
52
+
53
+ <good-table label="Fixed columns" [data]="items()" [columns]="columns"
54
+ [reorderable]="false" />
55
+ ```
56
+
57
+ ```ts
58
+ readonly columnOrder = signal<string[]>([]); // Empty uses the declared order.
59
+ ```
60
+
61
+ The grip announces its position and keyboard controls. After a move, a live status message announces the new position. With reordering disabled, grips disappear; a bound `columnOrder` can still set a programmatic order.
62
+
63
+ ## Select one row
64
+
65
+ Add the `selectable` attribute to opt in. Bind `selectedRowId` when the selection must be read or changed by the page. `rowSelected` gives the complete record when the user chooses a different row; programmatic changes do not emit that interaction event.
66
+
67
+ ```html
68
+ <good-table label="Choose a person" [data]="people()" [columns]="columns"
69
+ [getRowId]="rowId" selectable [(selectedRowId)]="selectedRowId"
70
+ (rowSelected)="onRowSelected($event)" />
71
+ ```
72
+
73
+ ```ts
74
+ readonly rowId = (person: Person) => person.id;
75
+ readonly selectedRowId = signal<string | null>(null);
76
+
77
+ onRowSelected(person: Person): void {
78
+ // Open details, update another panel, or use the selected record.
79
+ }
80
+
81
+ selectInCode(id: string): void { this.selectedRowId.set(id); }
82
+ clearSelection(): void { this.selectedRowId.set(null); }
83
+ ```
84
+
85
+ Use a stable `getRowId` whenever data can be searched, sorted, paged, or replaced. The highlight follows the ID through those changes. If the selected row is not on the current page, its ID is retained and no visible row is highlighted until it returns. Selection is single and stays selected on a second click; set the ID to `null` to clear it. The table keeps one keyboard tab stop in its body: Up/Down moves focus among visible rows, Home/End jumps to the first/last row, and Enter/Space selects the focused row. Buttons, links, switches, and inputs inside a row keep their own actions and do not select the row.
86
+
87
+ ## Emphasize rows from application data
88
+
89
+ Use `emphasizeRow` when a record state should make the text of its entire row bold. It is independent of selection and works after sorting or filtering. Supply `emphasisLabel` to put the state in the first cell for screen readers without adding a visible status column.
90
+
91
+ ```ts
92
+ readonly needsAttention = (row: RecordRow): boolean => row.needsAttention;
93
+ ```
94
+
95
+ ```html
96
+ <good-table label="Records" [data]="rows()" [columns]="columns"
97
+ [emphasizeRow]="needsAttention" emphasisLabel="Needs attention" />
98
+ ```
99
+
100
+ ## Render GoodUI components in cells
101
+
102
+ For a page-specific cell, keep the column definition simple and put its Angular markup directly inside `good-table`. The server example places a status LED, a link, and a muted second line in the Name cell. There is no separate NameCell class.
103
+
104
+ ```html
105
+ <good-table label="Servers" tableStyle="compact" [data]="servers" [columns]="columns" [getRowId]="rowId">
106
+ <ng-template goodTableCell="name" let-server>
107
+ <good-action-group spacing="small" align="center" [wrap]="false">
108
+ <good-status-icon appearance="led" size="small"
109
+ [status]="server.status === 'running' ? 'completed' : 'dismissed'"
110
+ [ariaLabel]="server.status === 'running' ? 'Running' : 'Stopped'" />
111
+ <good-group appearance="plain" spacing="tight">
112
+ <good-link route="/examples/case-studies/vpshoster/servers">{{ server.name }}</good-link>
113
+ <good-hint>{{ server.plan }} | {{ server.architecture }} | {{ server.diskGb }} GB | {{ server.zone }}</good-hint>
114
+ </good-group>
115
+ </good-action-group>
116
+ </ng-template>
117
+ </good-table>
118
+ ```
119
+
120
+ ```ts
121
+ import { Component } from '@angular/core';
122
+ import {
123
+ GoodActionGroupComponent, GoodGroupComponent, GoodHintComponent, GoodLinkComponent,
124
+ GoodStatusIconComponent, GoodTableCellDirective, GoodTableColumn, GoodTableComponent,
125
+ } from '@cloudfrogger/goodui';
126
+
127
+ interface Server {
128
+ id: string;
129
+ name: string;
130
+ status: 'running' | 'stopped';
131
+ plan: string;
132
+ architecture: string;
133
+ diskGb: number;
134
+ zone: string;
135
+ publicIp: string;
136
+ }
137
+
138
+ @Component({
139
+ standalone: true,
140
+ imports: [GoodTableComponent, GoodTableCellDirective, GoodActionGroupComponent,
141
+ GoodStatusIconComponent, GoodGroupComponent, GoodLinkComponent, GoodHintComponent],
142
+ templateUrl: './servers-page.html',
143
+ })
144
+ export class ServersPage {
145
+ readonly servers: readonly Server[] = [
146
+ { id: 'sample-1', name: 'demo-node', status: 'running', plan: 'CPX22', architecture: 'x86', diskGb: 80, zone: 'eu-central', publicIp: '192.0.2.10' },
147
+ { id: 'sample-2', name: 'backup-node', status: 'stopped', plan: 'CX22', architecture: 'x86', diskGb: 40, zone: 'eu-central', publicIp: '192.0.2.11' },
148
+ ];
149
+ readonly rowId = (server: Server): string => server.id;
150
+ readonly columns: GoodTableColumn<Server>[] = [
151
+ { accessorKey: 'name', header: 'Name', enableSorting: true, meta: { noWrap: true } },
152
+ { accessorKey: 'publicIp', header: 'Public IP', meta: { visibleFrom: 'md' } },
153
+ { accessorKey: 'status', header: 'Status', meta: { visibleFrom: 'md' } },
154
+ ];
155
+ }
156
+ ```
157
+
158
+ `accessorKey: 'name'` supplies the column ID. The matching `goodTableCell="name"` replaces only the visible content of that column; `let-server` exposes the original row, including fields outside Name. The LED reads `server.status`, while the Hint assembles the second line. `meta.noWrap` keeps that line together and lets the Table scroll horizontally when needed. `meta.visibleFrom: 'md'` hides Public IP and Status in a narrow table; Name remains. Import `GoodTableCellDirective` and every GoodUI component used inside the template. A stable `getRowId` preserves row identity through sorting and updates. Replace the example route with your own details route. The [Tables page](../../homepage/src/app/tables-page.ts) renders this example; the [VPS Servers case study](../../homepage/src/app/examples/case-studies/vpshoster/servers-page.html) shows the full screen. `let-value="value"` is available when the template only needs the column value.
159
+
160
+ For a cell shared across pages, TanStack's Angular `flexRenderComponent` is still available. GoodUI re-exports it, so an app using `good-table` can import everything from `@cloudfrogger/goodui`. Its `inputs` object accepts the row's values; the component can expose its usual outputs. A Badge needs no wrapper:
161
+
162
+ ```ts
163
+ import { flexRenderComponent, GoodBadgeComponent, GoodTableColumn } from '@cloudfrogger/goodui';
164
+
165
+ const columns: GoodTableColumn<Person>[] = [
166
+ { accessorKey: 'name', header: 'Name' },
167
+ {
168
+ accessorKey: 'role',
169
+ header: 'Role',
170
+ cell: context => flexRenderComponent(GoodBadgeComponent, {
171
+ inputs: { label: context.getValue<string>(), color: 'secondary', size: 'small' },
172
+ }),
173
+ },
174
+ ];
175
+ ```
176
+
177
+ For a reusable action menu or composed cell, make a small standalone cell component with `input()` properties, then pass the record and callbacks through `flexRenderComponent`. In the Tables example, the action menu and separate last-column Delete button use this route. The icon-only button receives a row-specific accessible label and calls the page's delete handler. A TanStack header or cell can also return a string, number, `TemplateRef`, or another flex-renderable value. Keep destructive actions labeled and confirm deletion when the application requires it.
178
+
179
+ ## Search and sorting
180
+
181
+ Set `[searchable]="true"` to place a GoodUI search input above the table. The default search filters the supplied rows across filterable columns. Set `enableGlobalFilter: false` on a column that should not be searched. Search and sorting reset the page to the first page.
182
+
183
+ `sortingChange` emits TanStack's `SortingState`; `searchChange` emits the current text. Set `sortingMode="manual"` or `searchMode="manual"` when the data provider owns those operations. With `mode: 'pages'` or `mode: 'cursor'`, filtering and sorting are manual automatically. In those modes, `(request)` emits the current `sorting`, `search`, and pagination information so the consumer can query its backend, then update `[data]` with the response. GoodUI never guesses how a backend sorts or filters.
184
+
185
+ ```html
186
+ <good-table label="People" [data]="rows()" [columns]="columns"
187
+ [searchable]="true" [pagination]="pagination()" [loading]="loading()"
188
+ (request)="loadPeople($event)" />
189
+ ```
190
+
191
+ ```ts
192
+ import { GoodTablePagination, GoodTableRequest } from '@cloudfrogger/goodui';
193
+
194
+ readonly pagination = signal<GoodTablePagination>({
195
+ mode: 'pages', pageSize: 25, maxPageSize: 100,
196
+ pageSizeOptions: [10, 25, 50, 100], totalRows: 0,
197
+ });
198
+
199
+ loadPeople(request: GoodTableRequest): void {
200
+ // Query your API with request.pagination.pageIndex, pageSize,
201
+ // request.sorting, and request.search; replace rows and totalRows.
202
+ }
203
+ ```
204
+
205
+ In the page mode, `totalRows` is the total **after** backend filtering. Page numbers and record ranges use it. `loading` marks the frame busy, disables pagination, and shows a loading state when no rows have been received.
206
+
207
+ ## Pagination choices
208
+
209
+ | Mode | Supplied data | Navigation |
210
+ | --- | --- | --- |
211
+ | No `[pagination]` | Full data set | All rows display; no footer or height limit. |
212
+ | `client` | Full data set | TanStack slices filtered rows into numbered pages. |
213
+ | `pages` | Current backend page | Numbered pages use `totalRows`; `(request)` asks for each new page. |
214
+ | `cursor` | Current backend page | Next uses `nextCursor`; Previous uses visited cursors. |
215
+
216
+ ```ts
217
+ const client: GoodTablePagination = { mode: 'client', pageSize: 10, pageSizeOptions: [10, 25] };
218
+ const cursor: GoodTablePagination = {
219
+ mode: 'cursor', pageSize: 25, hasNextPage: true, nextCursor: 'opaque-next-token',
220
+ };
221
+ ```
222
+
223
+ For cursor mode, pass the backend's opaque `nextCursor` and `hasNextPage` with every page response. `(request).pagination.cursor` is the cursor for the page being requested; it is `null` for the initial page unless `initialCursor` is supplied. A search, sort, or page-size change clears the visited cursor history. `maxPageSize` caps the requested size and the page-size choices. Omit it when no cap is needed. Pagination is optional; omit the entire input to show all rows.
224
+
225
+ ## Appearance and accessibility
226
+
227
+ `tableStyle` is `default`, `bordered`, `striped`, or `compact`. Default rows share continuous horizontal dividers. Bordered adds cell boundaries, striped shades alternating rows, and compact reduces row height and padding. Use `tableStyle="compact"` for a literal value or `[tableStyle]="selectedStyle"` for a binding. The older `[style]="selectedStyle"` input remains supported, but literal `style="compact"` is parsed as the native HTML style attribute and does not configure the Table. All styles use shared semantic table, color, spacing, and radius tokens in both themes. The search, page-size selector, and action buttons remain keyboard accessible. Sortable headers are buttons with `aria-sort`; the table uses its `label` as its accessible name. The empty state says “NO records found” by default; override it with `emptyMessage`. Consumers own accessibility labels for interactive cell controls.
228
+
229
+ ```html
230
+ <good-table label="Items" tableStyle="compact"
231
+ [data]="items" [columns]="columns" />
232
+ ```
233
+
234
+ | Input/output | Default | Meaning |
235
+ | --- | --- | --- |
236
+ | `data`, `columns` | required | Rows and TanStack column definitions; `meta.visibleFrom` defaults to `xs`. |
237
+ | `label` | `Records` | Accessible table name. |
238
+ | `tableStyle` | `default` | `default`, `bordered`, `striped`, or `compact`. Prefer this input in templates. |
239
+ | `reorderable` | `true` | Show column grips; set `[reorderable]="false"` to prevent user reordering. |
240
+ | `columnOrder` / `columnOrderChange` | `[]` | Controlled ordered column IDs; supports `[(columnOrder)]`. |
241
+ | `[style]` | `default` | Existing bound style input; retained for compatibility. |
242
+ | `searchable` | `false` | Show the search control. |
243
+ | `searchPlaceholder` | `Search records` | Search prompt. |
244
+ | `pagination` | `null` | Client, page, or cursor pagination configuration. |
245
+ | `sortingMode`, `searchMode` | `client` | `client` or `manual`; page and cursor modes are manual. |
246
+ | `loading` | `false` | Busy state during a backend request. |
247
+ | `emptyMessage` | `NO records found` | Message for zero rows. |
248
+ | `selectable` | `false` | Enables single-row selection from the table body. |
249
+ | `selectedRowId` / `selectedRowIdChange` | `null` | Controlled selected ID; use `[(selectedRowId)]` for two-way binding. |
250
+ | `rowSelected` | — | Complete selected record from a user action. |
251
+ | `emphasizeRow` | always false | Predicate that renders a row's text bold from application data. |
252
+ | `emphasisLabel` | empty | Optional screen reader state text in the first cell of emphasized rows. |
253
+ | `sortingChange`, `searchChange` | — | Current table interaction state. |
254
+ | `request` | — | Complete request for manual search, sorting, or pagination. |
255
+
256
+ Penpot page `16 Tables` publishes `goodui.table` with `style=default/bordered/striped/compact` and `state=populated/empty`. A populated specimen contains linked Badge, Switch, and action controls to show composition; their values and actions are runtime data. Optional search and pagination are composed parts of the same `good-table` selector. [table-variants.json](../../design/table-variants.json) records the published IDs. Penpot and CSS share the `table.*` token relationships through the token export and generation workflow.
@@ -0,0 +1,46 @@
1
+ # Tabs
2
+
3
+ `good-tabs` displays a horizontal row of tabs and one content panel at a time. Put each panel in a `good-tab`. Give every tab a stable `value` and a visible `label`.
4
+
5
+ The active panel has no frame or inner padding. Place a `good-table`, `good-card`, or other complete component directly inside it; that component keeps its own surface and spacing. A quiet rule below the content marks the end of the tab set. The tab heading retains its selected underline and the rule below the tab row.
6
+
7
+ When a panel contains several direct children, it gives them a 12 px vertical gap. Their order stays the same when you exchange a Paragraph for a RadioGroup, form control, or Table; avoid margins on individual children.
8
+
9
+ ```html
10
+ <good-tabs ariaLabel="Account sections">
11
+ <good-tab value="profile" label="Profile">Profile details</good-tab>
12
+ <good-tab value="preferences" label="Preferences">Preference controls</good-tab>
13
+ </good-tabs>
14
+ ```
15
+
16
+ The first enabled tab opens by default. Mark a different tab with `[selected]="true"` to choose its initial panel. The annotation only supplies the initial fallback; a bound `activeId` takes precedence and can switch tabs later.
17
+
18
+ ```ts
19
+ import { signal } from '@angular/core';
20
+ import { type GoodTabActivation } from '@cloudfrogger/goodui';
21
+
22
+ readonly activeId = signal<string | null>(null);
23
+
24
+ openSettings(): void { this.activeId.set('settings'); }
25
+ onTabActivated(event: GoodTabActivation): void {
26
+ console.log(event.id, event.previousId, event.source);
27
+ }
28
+ ```
29
+
30
+ ```html
31
+ <good-tabs ariaLabel="Workspace sections" [(activeId)]="activeId"
32
+ (tabActivated)="onTabActivated($event)">
33
+ <good-tab value="overview" label="Overview">Overview content</good-tab>
34
+ <good-tab value="activity" label="Activity" [selected]="true"
35
+ [icon]="bellIcon" [badge]="3">Recent updates</good-tab>
36
+ <good-tab value="settings" label="Settings" badge="New">Settings content</good-tab>
37
+ </good-tabs>
38
+ ```
39
+
40
+ Set `icon` to a Lucide icon data object. `badge` accepts text or a number; `badgeColor` uses the GoodUI Badge color choices and defaults to `primary`. The badge appears after the label. Set `disabled` on a panel to make it unavailable. The selected tab uses the GoodUI selected surface, accent text, and underline; hover uses the same accent family.
41
+
42
+ `tabActivated` fires for pointer and keyboard activation, including activation of the already selected tab. It reports `{ id, previousId, source }`, with `source` equal to `pointer` or `keyboard`. A programmatic `activeId` change updates the displayed panel and the `activeIdChange` model binding, without reporting a user activation.
43
+
44
+ When the tab row is wider than its container, side arrows appear and scroll only the row. Users can also drag the row with a mouse or swipe it with a finger. Dragging does not activate the tab under the pointer; a click still does. Selecting a tab keeps its header visible. Arrow Left and Arrow Right select adjacent enabled tabs; Home and End select the first and last. The tablist and panels expose their roles and ARIA relationships. Use `ariaLabel` to describe the set when no visible heading labels it.
45
+
46
+ Penpot page `29 Tabs` publishes `goodui.tabs.default`, `.icons-badges`, `.overflow`, and `goodui.tab`. Their IDs and runtime mapping are in [tabs-contract.json](../../design/tabs-contract.json). The states are illustrative; labels, icon data, badges, panel content, and overflow depend on runtime data and available width.
@@ -0,0 +1,44 @@
1
+ # Textarea
2
+
3
+ `good-textarea` is the multiline companion to [Input](input.md). Use it for notes, descriptions, or feedback inside a `good-form-field`. It fills its parent width, starts at four text rows, and uses the same input surface, border, focus, error, and required-field styling as `good-input`.
4
+
5
+ ```html
6
+ <good-textarea label="Notes" [showLabel]="true" placeholder="Write a few sentences"
7
+ [(value)]="notes" />
8
+
9
+ <good-textarea label="Description" [showLabel]="true" [rows]="6"
10
+ [resizable]="true" />
11
+ ```
12
+
13
+ `resizable` defaults to `false`. Set it to `true` to show the browser's lower-right resize grip; users can change the height, while the width stays aligned with the form. `rows` sets the initial text area height when it exceeds the size's minimum; invalid values fall back to four rows. The three sizes use minimum heights of 96, 120, and 144 px with Input's text and horizontal padding scale.
14
+
15
+ ## Inputs and forms
16
+
17
+ | Input | Default | Purpose |
18
+ | --- | --- | --- |
19
+ | `label`, `showLabel` | required, `false` | Accessible name and optional visible label. |
20
+ | `size` | `default` | `small`, `default`, or `large`. |
21
+ | `value` | `''` | Two-way string model; `valueChange` emits as the user types. |
22
+ | `placeholder`, `rows`, `resizable` | `''`, `4`, `false` | Prompt, initial line count, and vertical resizing. |
23
+ | `disabled`, `readonly`, `error` | `false` | Shared Input states; disabled wins over error, then readonly. |
24
+ | `required` | `false` | Native and Angular Forms required validation. |
25
+ | `name`, `inputId`, `describedBy`, `autocomplete` | `''` | Native form and accessibility attributes. |
26
+
27
+ The native textarea supports selection, multiline keyboard editing, and browser spell checking. `readonly` keeps text selectable with a neutral background. `disabled` blocks editing. `error` sets `aria-invalid` and the theme-aware red border; give an error message an ID and pass it through `describedBy`.
28
+
29
+ Use either `[(value)]` or Angular Forms as the value source for one instance. The control implements `ControlValueAccessor` and `Validator`. A surrounding `good-form-field` and `good-field-label` propagate required state, just as they do for Input:
30
+
31
+ ```html
32
+ <good-form-field [required]="true">
33
+ <good-field-label forId="feedback">Feedback</good-field-label>
34
+ <good-textarea inputId="feedback" label="Feedback" formControlName="feedback"
35
+ [error]="isInvalid('feedback')" describedBy="feedback-error" />
36
+ @if (isInvalid('feedback')) {
37
+ <good-error-text id="feedback-error">Enter your feedback.</good-error-text>
38
+ }
39
+ </good-form-field>
40
+ ```
41
+
42
+ ## Design mapping
43
+
44
+ Penpot page `34 Textareas` publishes twelve `goodui.textarea` variants for `size=small/default/large` and `status=default/readonly/disabled/error`. They map to `good-textarea`; values, row count, and resizing are runtime choices. A separate specimen shows the optional resize grip. The verified library IDs are in [textarea-variants.json](../../design/textarea-variants.json). Minimum heights bind to `control.textarea-min-height-*`, while all colors and the control radius reuse Input tokens in both themes.
@@ -0,0 +1,33 @@
1
+ # Theme toggle
2
+
3
+ `goodui.theme-toggle` maps to `good-theme-toggle`. It is an optional 36 × 36 px topbar action. One click cycles **Light → System → Dark → Light** without opening a menu. The icon shows the current preference: sun, monitor, or moon. The accessible button label names both the current and next mode; keyboard users activate it with Enter or Space.
4
+
5
+ ```html
6
+ <good-app-layout [showThemeToggle]="true">
7
+ <router-outlet />
8
+ </good-app-layout>
9
+ ```
10
+
11
+ Set `[showThemeToggle]="false"` to remove it. `good-main-menu` and `good-topbar` accept the same input. A custom composition can place `<good-theme-toggle />` directly. The main menu owns spacing, while the control owns its hit area and hover style.
12
+
13
+ `GoodThemeService.preference()` is `light`, `system`, or `dark`; `theme()` remains the resolved `light` or `dark` value used for colors and theme-aware artwork. Explicit Light and Dark choices are stored in the `goodui-theme` cookie for one year. System mode removes the cookie and follows `prefers-color-scheme`, including changes while the page is open. Apps can select a mode with `theme.setTheme('system')` or advance it with `theme.cycle()`. The legacy `theme.toggle()` remains a direct light/dark switch for callers that need one. Older `localStorage` values are ignored.
14
+
15
+ To apply the correct color before Angular and its CSS load, put this script and critical background in the consuming app's `src/index.html` head, before other styles or scripts. The fallback colors match GoodUI's default `color.canvas` token; update them if your app overrides that token.
16
+
17
+ ```html
18
+ <script>
19
+ const savedTheme = document.cookie.split(';').map(part => part.trim())
20
+ .find(part => part.startsWith('goodui-theme='))?.slice('goodui-theme='.length);
21
+ const initialTheme = savedTheme === 'light' || savedTheme === 'dark'
22
+ ? savedTheme
23
+ : window.matchMedia?.('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
24
+ document.documentElement.setAttribute('data-theme', initialTheme);
25
+ </script>
26
+ <style>
27
+ html { background-color: #fff; color-scheme: light; }
28
+ html[data-theme="dark"] { background-color: #09090b; color-scheme: dark; }
29
+ body { background-color: inherit; }
30
+ </style>
31
+ ```
32
+
33
+ Penpot `01 Components` publishes `goodui.theme-toggle.light`, `.system`, and `.dark`. These are the three runtime states of the same Angular selector, each bound to `control.action-size`, `radius.action`, `color.surface`, and `color.icon`. MainMenu uses the Light instance as its representative default composition; Angular renders the matching icon for the active preference.
@@ -0,0 +1,7 @@
1
+ # Timeline section
2
+
3
+ `good-timeline-section` is a projected child of `good-timeline appearance="sections"`. It supplies a semantic heading, a state marker, and a body for GoodUI controls or content. Import `GoodTimelineSectionComponent` together with `GoodTimelineComponent` from `@cloudfrogger/goodui`.
4
+
5
+ Set the required `title`. Bind `state` to application data: `completed`, `attention`, `current`, `upcoming` (default), or `optional`. Timeline does not validate or advance the workflow. The default heading is H2; set `[headingLevel]="3"` or `4` when the page hierarchy calls for it. `headingId` can override the generated ID for a stable fragment link.
6
+
7
+ The heading becomes a compact opaque sticky bar while its section scrolls. The following section replaces it. The parent owns rail color and size. See [Timeline](timeline.md) for a complete example and the parent inputs.
@@ -0,0 +1,12 @@
1
+ # Timeline step
2
+
3
+ `good-timeline-step` defines one step inside `good-timeline`. It is a declarative configuration tag; the parent renders the visible marker, text, and connector.
4
+
5
+ ```html
6
+ <good-timeline [currentIndex]="1">
7
+ <good-timeline-step id="draft" title="Draft" transitionLabel="Send for review" />
8
+ <good-timeline-step id="review" title="Review" iconName="clipboard-list" />
9
+ </good-timeline>
10
+ ```
11
+
12
+ `id` and `title` are required. Optional inputs are `description`, `eyebrow`, `transitionLabel`, `iconName`, `[icon]`, `imageSrc`, `imageAlt`, `color`, `marker`, `endpoint`, `state`, and `deactivated`. Use `deactivated` as a plain HTML attribute for an inactive step. `endpoint="start"` and `endpoint="end"` place the first and last illustrated steps' graphics on the process line. See the [Timeline guide](timeline.md) for sizes, layouts, colors, states, icon names, and the alternative `[steps]` array.
@@ -0,0 +1,179 @@
1
+ # Timeline
2
+
3
+ ## Long forms with section content
4
+
5
+ Use `appearance="sections"` when the timeline structures a page or form. Import `GoodTimelineComponent` and `GoodTimelineSectionComponent` from `@cloudfrogger/goodui`. Each section accepts arbitrary projected GoodUI content; the parent supplies the vertical dashed rail. This mode stays vertical at every width and leaves existing step timelines unchanged.
6
+
7
+ ```html
8
+ <good-timeline appearance="sections" color="brand" ariaLabel="Document preparation">
9
+ <good-timeline-section title="1. Draft" state="completed">
10
+ <good-paragraph>The draft is ready.</good-paragraph>
11
+ </good-timeline-section>
12
+ <good-timeline-section title="2. Review"
13
+ [state]="approved() ? 'completed' : 'attention'">
14
+ <good-paragraph>Check the content.</good-paragraph>
15
+ <good-button (click)="approved.set(true)">Approve</good-button>
16
+ </good-timeline-section>
17
+ <good-timeline-section title="3. Optional notes" state="optional">
18
+ <good-paragraph>Add any useful context.</good-paragraph>
19
+ </good-timeline-section>
20
+ </good-timeline>
21
+ ```
22
+
23
+ Bind `state` to your own validation or workflow data. Timeline only displays it. `completed` shows a filled accent marker with a white check; `attention` shows a yellow warning marker; `current` uses an accent outline; `upcoming` and `optional` are quiet gray circles. The heading stays at the top of the nearest scrolling area as a compact opaque bar while that section scrolls, then the next section replaces it. `good-assistant-main` accounts for its own top padding so the sticky bar meets the view edge. If you provide a different padded scrolling container, set its `--good-scroll-content-inset-top` to the same value as its top padding. No page-specific scroll handler is needed.
24
+
25
+ | Section input | Default | Effect |
26
+ | --- | --- | --- |
27
+ | `title` | required | Visible heading and accessible section name. |
28
+ | `state` | `upcoming` | `completed`, `attention`, `current`, `upcoming`, or `optional`. |
29
+ | `headingLevel` | `2` | Semantic H2, H3, or H4 for the section title. |
30
+ | `headingId` | generated | Optional stable ID for a link to this section. |
31
+
32
+ The parent's `size`, `tone`, `color`, `completedColor`, `deactivated`, and `ariaLabel` inputs also apply. `currentIndex`, `steps`, `marker`, and `orientation` apply to step presentations and are ignored in section mode. See the [VPS create example](../../homepage/src/app/examples/case-studies/vpshoster/create-server-page.html) for a longer form and the homepage Timeline page for an independent example.
33
+
34
+ `good-timeline` shows an ordered sequence of process steps. It uses a plain numbered line by default. The line becomes vertical when its container is narrow, so the same markup works in a page, card, or mobile view. For a fixed sequence, write the steps directly in HTML:
35
+
36
+ ```html
37
+ <good-timeline [currentIndex]="1">
38
+ <good-timeline-step id="draft" title="Draft" transitionLabel="Send for review" />
39
+ <good-timeline-step id="review" title="Review" description="Check the content." />
40
+ <good-timeline-step id="publish" title="Publish" />
41
+ </good-timeline>
42
+ ```
43
+
44
+ Import both `GoodTimelineComponent` and `GoodTimelineStepComponent` from `@cloudfrogger/goodui` into a standalone page. For example, add them to the page's `imports: [GoodTimelineComponent, GoodTimelineStepComponent]`. `currentIndex` is zero-based. With `1`, Draft is completed, Review is current, and Publish is upcoming. Bind it to a signal to update the display programmatically. Set it to the step count when all steps are complete. Timeline is a read-only progress view and does not change process state itself.
45
+
46
+ Each child tag defines a step; it is hidden as a configuration node while the parent renders the visible ordered list. Keep the `id` stable and unique. For fixed content, this markup keeps the sequence, descriptions, and transition labels together in one place without a matching TypeScript array.
47
+
48
+ When steps come from an API or change in number, use the array form instead:
49
+
50
+ ```ts
51
+ import { GoodTimelineStep } from '@cloudfrogger/goodui';
52
+
53
+ readonly steps: GoodTimelineStep[] = [
54
+ { id: 'draft', title: 'Draft', transitionLabel: 'Send for review' },
55
+ { id: 'review', title: 'Review', description: 'Check the content.' },
56
+ { id: 'publish', title: 'Publish' },
57
+ ];
58
+ ```
59
+
60
+ ```html
61
+ <good-timeline [steps]="steps" [currentIndex]="1" />
62
+ ```
63
+
64
+ Both forms use the same step fields and produce the same visual output. Use one form per timeline; when `[steps]` is supplied, it takes precedence over child tags.
65
+
66
+ ## Choose a presentation
67
+
68
+ Start with the shape of the information, then choose its palette:
69
+
70
+ | Goal | Set | Result |
71
+ | --- | --- | --- |
72
+ | A compact sequence such as onboarding or checkout | `appearance="simple"` | A line with numbered, icon, or dot markers and short labels. This is the default. |
73
+ | Each step needs an eyebrow or explanation | `appearance="detailed"` | Step text sits in bordered panels below the same progress line. |
74
+ | Each step needs a graphic or a clear start and finish | `appearance="illustrated"` | Graphics sit above the markers with short stems. The first and last steps can become endpoints. |
75
+ | Each step contains controls or other page content | `appearance="sections"` | A full-width vertical form with a dashed rail and sticky section headings. |
76
+
77
+ `orientation="auto"` is usually right: the timeline becomes vertical when the component has less than 680 px of width. Choose `vertical` for a history that should always read top to bottom, or `horizontal` when horizontal scrolling is preferred in narrow space. Set `size` to `small`, `default`, or `large` to change marker, graphic, text, and spacing sizes together.
78
+
79
+ | Input | Default | What it controls |
80
+ | --- | --- | --- |
81
+ | `steps` | omitted | Optional array for data-driven steps. Otherwise use `good-timeline-step` child tags with unique `id` and visible `title`. |
82
+ | `currentIndex` | `0` | Position used to derive completed, current, and upcoming states. |
83
+ | `orientation` | `auto` | `auto` changes from horizontal to vertical below 680 px of available component width. `horizontal` stays horizontal and scrolls when needed. `vertical` always stays vertical. |
84
+ | `appearance` | `simple` | `simple` is the plain line, `detailed` frames step text in small cards, `illustrated` adds a visual orb, and `sections` places projected content beside a dashed vertical rail. |
85
+ | `tone` | `brand` | `brand` uses the GoodUI accent, `secondary` uses a quieter neutral fill, and `mono` uses only theme-aware black, white, and gray with print-style typography. The tone is independent of `appearance`. |
86
+ | `size` | `default` | `small`, `default`, or `large` scales markers, illustrations, typography, spacing, and minimum horizontal step width together. |
87
+ | `marker` | `number` | `number`, `icon`, or `dot` inside the progress marker. An icon marker uses each step's `icon`; without one, it falls back to a dot. |
88
+ | `color` | `brand` | Default accent: `brand`, `accent`, `success`, `warning`, `info`, `destructive`, `neutral`, or `violet`. |
89
+ | `completedColor` | omitted | Optional accent for completed steps, their illustration rings, stems, and outgoing connectors. Uses the same values as `color`. A step's explicit `color` takes precedence. `tone="mono"` always stays monochrome. |
90
+ | `deactivated` | `false` | Mute the entire timeline and remove its current/completed emphasis while keeping its steps visible. |
91
+ | `ariaLabel` | `Timeline` | Accessible name of the ordered list. Use a name that identifies this process when several timelines appear on a page. |
92
+
93
+ The `color` and `completedColor` inputs accept exactly `brand`, `accent`, `success`, `warning`, `info`, `destructive`, `neutral`, and `violet`. They follow the active GoodUI light or dark theme. `tone="brand"` uses that color normally. `tone="secondary"` uses a soft neutral treatment for steps without an explicit accent. `tone="mono"` forces a black, white, and gray treatment even when a color was supplied.
94
+
95
+ Choose a **value**, not a CSS hex code or token name, for the `color` attribute:
96
+
97
+ | Write in HTML | GoodUI token used by Timeline | Choose it for |
98
+ | --- | --- | --- |
99
+ | `color="accent"` | `color.accent` | The usual process accent. Blue in both themes, lighter in dark mode. Recommended for an illustrated timeline. |
100
+ | `color="brand"` | `color.brand` | The core brand blue. This is the default; it matches `accent` in the current light theme. |
101
+ | `color="success"` | `color.success` | A genuinely successful outcome, such as a completed approval. Green. |
102
+ | `color="warning"` | `color.warning-foreground` | Attention that needs stronger text/icon contrast. Dark amber in light mode, yellow in dark mode. |
103
+ | `color="info"` | `color.info` | Informational state. Sky blue. |
104
+ | `color="destructive"` | `color.error` | Failure or destructive outcome. Red. `state="error"` also uses this color automatically. |
105
+ | `color="neutral"` | `color.muted` | Quiet or less prominent process information. Gray. |
106
+ | `color="violet"` | `color.marker.violet` | A category accent when violet has meaning in your product. Purple. |
107
+
108
+ Use one `color` on the parent for a coherent timeline. Completed steps are already emphasized with filled markers, stronger illustration outlines, and completed connectors. Add `completedColor="success"` only when completion itself should mean success green; it uses the same eight values above. A step's `color` is for a deliberate exception. `tone="secondary"` makes ordinary steps neutral, so the parent's `color` does not recolor them; `completedColor` and step colors still apply. `tone="mono"` overrides every color choice.
109
+
110
+ For progress, `currentIndex` is the position of the active step starting at `0`. Earlier steps are completed and later steps are upcoming. Use the number of steps as `currentIndex` to show that all steps are complete. A step's `state` can override this calculation when needed.
111
+
112
+ ## Configure a step
113
+
114
+ | Step input | Default | Allowed values and effect |
115
+ | --- | --- | --- |
116
+ | `id` | required | Stable, unique string used to track the step. |
117
+ | `title` | required | Visible name of the step. |
118
+ | `description` | none | Supporting text below the title. |
119
+ | `eyebrow` | none | Short uppercase label above the title, such as `Step 2`. |
120
+ | `transitionLabel` | none | Small label on the line *from this step to the next*. It has no effect on the last step. |
121
+ | `marker` | inherited | `number`, `icon`, or `dot`. `icon` uses the step icon and falls back to a dot when none is supplied. |
122
+ | `iconName` | none | One built-in Lucide name listed below. Used inside `marker="icon"` and in illustrated graphics. |
123
+ | `[icon]` | none | Any imported Lucide icon data or component. Takes precedence over `iconName`. |
124
+ | `imageSrc` | none | Trusted application image URL for an illustrated graphic. Takes precedence over both icon fields. |
125
+ | `imageAlt` | empty | Accessible description of `imageSrc`; leave empty only if the visible title already conveys the image meaning. |
126
+ | `endpoint` | none | `start` on the first step or `end` on the last step, only in illustrated mode. Replaces that step's marker with a graphic on the line. |
127
+ | `color` | inherited | One color from the list above. Overrides both the timeline's `color` and `completedColor` for this step. |
128
+ | `state` | derived | `completed`, `current`, `upcoming`, `error`, or `deactivated`. An explicit state overrides `currentIndex`. |
129
+ | `deactivated` | `false` | Boolean HTML attribute or binding. Mutes this step and takes priority over its `state`. |
130
+
131
+ The built-in `iconName` choices are `check` (completion), `clipboard-list` (checklist), `file-text` (document), `house` (origin), `map-pin` (destination), `package-check` (prepared item), `shield-check` (verification), and `truck` (transport). The names describe the artwork only; your application supplies the step's meaning through its title.
132
+
133
+ Color priority is: `tone="mono"` for the whole timeline; otherwise `state="error"` uses the error accent; otherwise a step's `color`; otherwise `completedColor` for a completed step; otherwise the timeline's `color` (or the neutral treatment of `tone="secondary"`). Use `deactivated` when the step should stay visible without active emphasis.
134
+
135
+ Step fields beyond `id` and `title` are optional: `description` adds supporting text, `eyebrow` adds a short heading, and `transitionLabel` places a small label on the line **from that step to the next**. There is no connector after the final step. `color` and `marker` override the timeline defaults for one step. `state` overrides one derived state with `completed`, `current`, `upcoming`, `error`, or `deactivated`. The boolean `deactivated` attribute is a shorter way to mark an inactive step and takes priority over `state`; its marker and text are muted, and its outgoing connector is not shown as completed. A deactivated step remains in the list, so later step numbers do not shift. Set `deactivated` on the parent to mute every step at once.
136
+
137
+ Use `tone="mono"` when a whole timeline should look like black-and-white print. Mono takes precedence over `color` on the timeline and its steps, including error accents. It also desaturates images in illustrated steps. The source image remains unchanged. `tone="secondary"` uses the same neutral surface and foreground roles as a secondary GoodUI button; an explicitly colored step still keeps its semantic accent.
138
+
139
+ All visual choices can stay in the template:
140
+
141
+ ```html
142
+ <good-timeline [currentIndex]="1" appearance="detailed" tone="brand" size="large" marker="number" color="brand">
143
+ <good-timeline-step id="request" title="Request" marker="icon"
144
+ iconName="file-text" color="success" transitionLabel="Submitted" />
145
+ <good-timeline-step id="review" title="Review" />
146
+ <good-timeline-step id="closed" title="Closed" deactivated />
147
+ </good-timeline>
148
+ ```
149
+
150
+ In `illustrated` mode, `iconName` supplies a Lucide graphic in the orb without a TypeScript icon import. Available names are `check`, `clipboard-list`, `file-text`, `house`, `map-pin`, `package-check`, `shield-check`, and `truck`. For any other Lucide icon, bind `[icon]` to imported icon data. Alternatively, `imageSrc` supplies an application image; `imageAlt` is optional when the visible step title already names it. Use trusted, accessible images supplied by your application. The artwork examples in `artwork/` are inspiration, not required assets or runtime dependencies.
151
+
152
+ The illustrated layout connects a middle step's icon to its marker with a short vertical stem. Mark the first and last steps with `endpoint="start"` and `endpoint="end"` when their illustrations should sit directly on the process line. Endpoints are close in size to the middle graphics. They use the same `iconName`, `[icon]`, or `imageSrc` fields as any other step. An endpoint value on an interior step, or in another appearance, has no visual effect. On narrow screens, endpoints become marker-sized icons in the vertical timeline so labels remain readable.
153
+
154
+ ```html
155
+ <good-timeline appearance="illustrated" marker="dot" color="accent"
156
+ [currentIndex]="2">
157
+ <good-timeline-step id="start" title="Start" iconName="house" endpoint="start" />
158
+ <good-timeline-step id="review" title="Review" iconName="file-text" />
159
+ <good-timeline-step id="finish" title="Finish" iconName="map-pin" endpoint="end" />
160
+ </good-timeline>
161
+ ```
162
+
163
+ ```ts
164
+ import { LucideShieldCheck } from '@lucide/angular';
165
+
166
+ readonly reviewSteps: GoodTimelineStep[] = [
167
+ { id: 'received', title: 'Received', iconName: 'file-text',
168
+ description: 'The request is recorded.', transitionLabel: 'Send to review' },
169
+ { id: 'review', title: 'Review', icon: LucideShieldCheck,
170
+ description: 'Check the information.', color: 'warning' },
171
+ ];
172
+ ```
173
+
174
+ ```html
175
+ <good-timeline [steps]="reviewSteps" [currentIndex]="1"
176
+ appearance="illustrated" marker="dot" color="violet" />
177
+ ```
178
+
179
+ The Penpot page `39 Timelines` publishes simple, detailed, illustrated, illustrated with endpoints, vertical, small, large, deactivated, secondary, mono, and single-step specimens, plus a long-form sections specimen and a section family. Their stable IDs and input mapping are in [timeline-contract.json](../../design/timeline-contract.json). Penpot shows representative content; titles, icons, image assets, colors, progress, and projected section bodies are supplied at runtime.