@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.
Files changed (397) 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 +245 -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 +138 -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 +17 -0
  147. package/ai/guides/design-tokens.md +10 -0
  148. package/ai/guides/layout.md +17 -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 +318 -0
  164. package/angular/projects/goodui/src/lib/alert.ts +60 -0
  165. package/angular/projects/goodui/src/lib/app-layout.ts +79 -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 +402 -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/guides/README.md +17 -0
  264. package/guides/components/action-bar.md +43 -0
  265. package/guides/components/action-group.md +43 -0
  266. package/guides/components/action-menu.md +22 -0
  267. package/guides/components/alert.md +28 -0
  268. package/guides/components/assistant-panel.md +50 -0
  269. package/guides/components/avatar-menu.md +34 -0
  270. package/guides/components/badge.md +39 -0
  271. package/guides/components/bar-chart.md +40 -0
  272. package/guides/components/breadcrumbs.md +37 -0
  273. package/guides/components/button.md +40 -0
  274. package/guides/components/calendar.md +166 -0
  275. package/guides/components/card.md +62 -0
  276. package/guides/components/chart-axis.md +5 -0
  277. package/guides/components/chart-bar.md +5 -0
  278. package/guides/components/chart-data.md +58 -0
  279. package/guides/components/chart-histogram.md +16 -0
  280. package/guides/components/chart-line.md +5 -0
  281. package/guides/components/chart-scatter.md +14 -0
  282. package/guides/components/checkbox.md +36 -0
  283. package/guides/components/code-block.md +35 -0
  284. package/guides/components/color-controls.md +22 -0
  285. package/guides/components/column.md +5 -0
  286. package/guides/components/columns.md +13 -0
  287. package/guides/components/date-input.md +62 -0
  288. package/guides/components/detail-list.md +25 -0
  289. package/guides/components/dropdown.md +48 -0
  290. package/guides/components/error-page.md +31 -0
  291. package/guides/components/expandable.md +36 -0
  292. package/guides/components/form.md +49 -0
  293. package/guides/components/group.md +41 -0
  294. package/guides/components/histogram.md +45 -0
  295. package/guides/components/icon.md +13 -0
  296. package/guides/components/image-input.md +34 -0
  297. package/guides/components/input-phone.md +45 -0
  298. package/guides/components/input.md +59 -0
  299. package/guides/components/line-chart.md +37 -0
  300. package/guides/components/link.md +31 -0
  301. package/guides/components/listbox.md +109 -0
  302. package/guides/components/main-menu.md +11 -0
  303. package/guides/components/main-view.md +21 -0
  304. package/guides/components/modal.md +58 -0
  305. package/guides/components/month-calendar.md +88 -0
  306. package/guides/components/notifications.md +76 -0
  307. package/guides/components/number-input.md +21 -0
  308. package/guides/components/pdf-preview.md +38 -0
  309. package/guides/components/pin-input.md +37 -0
  310. package/guides/components/progress.md +41 -0
  311. package/guides/components/radio-group.md +41 -0
  312. package/guides/components/range-slider.md +42 -0
  313. package/guides/components/rating.md +39 -0
  314. package/guides/components/resizable-pane.md +3 -0
  315. package/guides/components/resizable.md +75 -0
  316. package/guides/components/rich-text-editor.md +113 -0
  317. package/guides/components/scatter-chart.md +43 -0
  318. package/guides/components/search.md +9 -0
  319. package/guides/components/select-font.md +16 -0
  320. package/guides/components/select.md +65 -0
  321. package/guides/components/settings.md +11 -0
  322. package/guides/components/sidebar.md +47 -0
  323. package/guides/components/signature-pad.md +45 -0
  324. package/guides/components/sparkline.md +31 -0
  325. package/guides/components/status-icon.md +32 -0
  326. package/guides/components/submenus.md +30 -0
  327. package/guides/components/subnav.md +54 -0
  328. package/guides/components/switch.md +48 -0
  329. package/guides/components/table.md +256 -0
  330. package/guides/components/tabs.md +46 -0
  331. package/guides/components/textarea.md +44 -0
  332. package/guides/components/theme-toggle.md +33 -0
  333. package/guides/components/timeline-section.md +7 -0
  334. package/guides/components/timeline-step.md +12 -0
  335. package/guides/components/timeline.md +179 -0
  336. package/guides/components/topbar.md +83 -0
  337. package/guides/components/typography.md +155 -0
  338. package/guides/components/world-map.md +72 -0
  339. package/guides/contributing/design-to-code.md +261 -0
  340. package/guides/deployment/drone.md +77 -0
  341. package/guides/examples/user-registration.md +11 -0
  342. package/guides/foundations/naming.md +7 -0
  343. package/guides/foundations/tokens.md +203 -0
  344. package/guides/intro.md +80 -0
  345. package/guides/layout/app-layout.md +64 -0
  346. package/guides/layout/layout-rules.md +16 -0
  347. package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.html +22 -0
  348. package/homepage/src/app/examples/calendar-workspace/calendar-workspace-page.ts +111 -0
  349. package/homepage/src/app/examples/calendar-workspace/source-code.generated.ts +3 -0
  350. package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.html +166 -0
  351. package/homepage/src/app/examples/case-studies/cloudhoster/billing-page.ts +134 -0
  352. package/homepage/src/app/examples/case-studies/cloudhoster/cloudhoster-store.ts +92 -0
  353. package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.html +93 -0
  354. package/homepage/src/app/examples/case-studies/cloudhoster/create-database-page.ts +115 -0
  355. package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.html +202 -0
  356. package/homepage/src/app/examples/case-studies/cloudhoster/database-detail-page.ts +143 -0
  357. package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.html +70 -0
  358. package/homepage/src/app/examples/case-studies/cloudhoster/databases-page.ts +44 -0
  359. package/homepage/src/app/examples/case-studies/cloudhoster/home-page.html +70 -0
  360. package/homepage/src/app/examples/case-studies/cloudhoster/home-page.ts +32 -0
  361. package/homepage/src/app/examples/case-studies/cloudhoster/source-code.generated.ts +12 -0
  362. package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.html +208 -0
  363. package/homepage/src/app/examples/case-studies/vpshoster/create-server-page.ts +214 -0
  364. package/homepage/src/app/examples/case-studies/vpshoster/overview-page.html +35 -0
  365. package/homepage/src/app/examples/case-studies/vpshoster/overview-page.ts +17 -0
  366. package/homepage/src/app/examples/case-studies/vpshoster/servers-page.html +111 -0
  367. package/homepage/src/app/examples/case-studies/vpshoster/servers-page.ts +206 -0
  368. package/homepage/src/app/examples/case-studies/vpshoster/source-code.generated.ts +6 -0
  369. package/homepage/src/app/examples/case-studies/vpshoster/vps-store.ts +92 -0
  370. package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.html +35 -0
  371. package/homepage/src/app/examples/case-studies/webmailer/webmailer-page.ts +17 -0
  372. package/homepage/src/app/examples/error-pages/error-pages-example-page.html +27 -0
  373. package/homepage/src/app/examples/error-pages/error-pages-example-page.ts +34 -0
  374. package/homepage/src/app/examples/error-pages/not-found-page.html +8 -0
  375. package/homepage/src/app/examples/error-pages/not-found-page.ts +19 -0
  376. package/homepage/src/app/examples/error-pages/server-error-page.html +8 -0
  377. package/homepage/src/app/examples/error-pages/server-error-page.ts +20 -0
  378. package/homepage/src/app/examples/error-pages/source-code.generated.ts +7 -0
  379. package/homepage/src/app/examples/mail-compose/mail-compose-page.html +25 -0
  380. package/homepage/src/app/examples/mail-compose/mail-compose-page.ts +28 -0
  381. package/homepage/src/app/examples/mail-workspace/mail-workspace-page.html +59 -0
  382. package/homepage/src/app/examples/mail-workspace/mail-workspace-page.ts +128 -0
  383. package/homepage/src/app/examples/mail-workspace/source-code.generated.ts +3 -0
  384. package/homepage/src/app/examples/notifications/notifications-page.html +51 -0
  385. package/homepage/src/app/examples/notifications/notifications-page.ts +133 -0
  386. package/homepage/src/app/examples/notifications/source-code.generated.ts +3 -0
  387. package/homepage/src/app/examples/pdf-reader/pdf-reader-page.html +27 -0
  388. package/homepage/src/app/examples/pdf-reader/pdf-reader-page.ts +39 -0
  389. package/homepage/src/app/examples/pdf-reader/source-code.generated.ts +3 -0
  390. package/homepage/src/app/examples/user-registration/source-code.generated.ts +5 -0
  391. package/homepage/src/app/examples/user-registration/user-registration-example-page.html +11 -0
  392. package/homepage/src/app/examples/user-registration/user-registration-example-page.ts +21 -0
  393. package/homepage/src/app/examples/user-registration/user-registration-form.html +116 -0
  394. package/homepage/src/app/examples/user-registration/user-registration-form.ts +93 -0
  395. package/homepage/src/app/examples/user-registration/user-registration-page.html +11 -0
  396. package/homepage/src/app/examples/user-registration/user-registration-page.ts +23 -0
  397. package/package.json +2 -2
@@ -0,0 +1,83 @@
1
+ # Topbar
2
+
3
+ **Design IDs:** `goodui.topbar`, `goodui.brand-icon`, `goodui.topbar-menu-container`, `goodui.topbar-menu-item`, `goodui.topbar-dropdown-menu`, `goodui.topbar-dropdown-item`, `goodui.topbar-submenu`.
4
+
5
+ The optional [Theme toggle](./theme-toggle.md) in MainMenu changes appearance with one click and no submenu.
6
+
7
+ The topbar places an optional brand icon and navigation on the left, with [MainMenu](./main-menu.md) on the right. It is 70 px tall on desktop with 30 px horizontal padding. On mobile, the drawer trigger comes first, followed by optional branding. The default `hidden` mode places navigation in the AppLayout drawer; `popup` mode replaces the horizontal row with a topbar icon that opens a separate navigation popup. Penpot contains default, `with-brand`, mobile, mobile icon, and mobile popup states.
8
+
9
+ On mobile, `brandMarkSrc` and optional `brandMarkDarkSrc` display the application symbol after the drawer trigger at 30 × 28 px; `brand` supplies its accessible name. The optional desktop BrandIcon uses the same mark URLs. Existing consumers that only pass `brandLogoSrc` and optional `brandLogoDarkSrc` continue to see the wordmark in the mobile topbar; with no image URL, it displays the brand text. Branding is shown by default. Set `[showMobileBrand]="false"` on `good-app-layout` or a standalone `good-topbar` to leave only the drawer trigger on the left. This does not hide branding in the sidebar or drawer. `good-app-layout` forwards the wordmark and symbol inputs from one place to the topbar and both sidebar presentations.
10
+
11
+ ```html
12
+ <good-app-layout [showMobileBrand]="false" [sidebarSections]="navigation">
13
+ <router-outlet />
14
+ </good-app-layout>
15
+ ```
16
+
17
+ ## Nested menus
18
+
19
+ The Help menu opens a 220 px panel beneath the topbar. It has five 34 px rows and a divider before “Contact Us.” “Support Forum” is a parent row with a chevron. When open, it uses a neutral surface and reveals a 218 × 124 px panel 4 px to its right. Panels have a 6 px radius, subtle border, and semantic light/dark colors.
20
+
21
+ ```text
22
+ TopbarMenuContainer
23
+ └─ TopbarMenuItem “Help”
24
+ └─ TopbarDropdownMenu
25
+ ├─ TopbarDropdownItem “Getting Started” (link)
26
+ ├─ TopbarDropdownItem “Support Forum” (parent)
27
+ │ └─ TopbarSubmenu
28
+ │ ├─ TopbarDropdownItem “All Questions” (link)
29
+ │ ├─ TopbarDropdownItem “Popular Questions” (link)
30
+ │ └─ TopbarDropdownItem “Ask Question” (link)
31
+ ├─ TopbarDropdownItem “Licenses & FAQ” (link)
32
+ ├─ TopbarDropdownItem “Documentation” (link)
33
+ └─ TopbarDropdownItem “Contact Us” (link after divider)
34
+ ```
35
+
36
+ These blocks are Penpot library components with nested instances. Their states include `topbar-menu-item.default/open`, `topbar-dropdown-item.link/parent/open`, `topbar-dropdown-menu.default/nested-open`, `topbar.help-open/help-submenu-open`, and `app-layout.help-submenu-open`. Parent items expand; only leaves navigate. Near the right viewport edge, the submenu opens to the left. On mobile, it expands vertically in the drawer or topbar popup, according to the selected mode.
37
+
38
+ ### Data API
39
+
40
+ The library renders `GoodTopbarItem.children` recursively. `icon` adds an optional icon; `separatorBefore` adds a divider above a row.
41
+
42
+ ```ts
43
+ import type { GoodTopbarItem } from '@cloudfrogger/goodui';
44
+
45
+ const help: GoodTopbarItem = {
46
+ id: 'help', label: 'Help', children: [
47
+ { id: 'getting-started', label: 'Getting Started', icon: 'calendar', route: '/help/getting-started' },
48
+ { id: 'forum', label: 'Support Forum', icon: 'question', children: [
49
+ { id: 'all', label: 'All Questions', icon: 'book', route: '/help/forum/all' },
50
+ { id: 'popular', label: 'Popular Questions', icon: 'star', route: '/help/forum/popular' },
51
+ ] },
52
+ { id: 'contact', label: 'Contact Us', icon: 'contact', route: '/help/contact', separatorBefore: true },
53
+ ],
54
+ };
55
+ ```
56
+
57
+ Parent items are buttons with `aria-expanded` and `aria-controls`; leaves are links. Desktop supports hover, click, and keyboard focus. Escape closes the deepest open level first and returns focus to its trigger. Clicking outside closes the chain. Mobile navigation stacks levels and scrolls when needed.
58
+
59
+ ## Mobile menu mode
60
+
61
+ `good-app-layout` accepts `mobileTopbarMenuMode="hidden" | "popup"` and forwards it to `good-topbar` as `mobileMenuMode`. The default is `hidden`, which keeps topbar navigation in the sidebar drawer. In `popup` mode, AppLayout omits that drawer copy, and the topbar shows an icon button with an accessible label, `aria-expanded`, and `aria-controls`. The popup closes on Escape, outside pointer input, navigation, and desktop resize. Escape closes nested levels before the popup and restores focus to the relevant trigger.
62
+
63
+ ```html
64
+ <good-app-layout [topbarItems]="navigation" mobileTopbarMenuMode="popup">
65
+ <router-outlet />
66
+ </good-app-layout>
67
+ ```
68
+
69
+ For a standalone topbar, use `[mobileMenuMode]="'popup'"`. For a projected menu container, set `mobileMode="popup"` on `good-topbar-menu-container` itself. The Penpot `goodui.topbar-menu-container.mobile-icon` and `.mobile-popup-open` states map to `mobileMode="popup"` with the popup closed/open. `goodui.topbar.mobile-menu-icon` and `.mobile-menu-popup-open` compose those states with the existing mobile topbar. The popup contents reuse linked menu item components in Penpot; Angular renders the supplied `GoodTopbarItem` tree.
70
+
71
+ ### Component composition
72
+
73
+ ```html
74
+ <good-topbar [showBrandIcon]="false">
75
+ <good-topbar-menu-container>
76
+ <good-topbar-menu-item label="Home" route="/" [active]="true" />
77
+ <good-topbar-menu-item label="Projects" route="/projects" />
78
+ </good-topbar-menu-container>
79
+ <good-main-menu />
80
+ </good-topbar>
81
+ ```
82
+
83
+ The topbar owns spacing, hit areas, and responsive behavior. Apps do not need manual `flex`, `gap`, or positioning classes for this structure. `good-app-layout` wires the mobile drawer; with a standalone topbar, use `(menuToggle)` to open your own navigation.
@@ -0,0 +1,155 @@
1
+ # Typography
2
+
3
+ GoodUI Typography supplies content structure and spacing without page-specific margin rules. The Penpot source is `12 Typography`; [typography-components.json](../../design/typography-components.json) maps every published component and variant to its Angular selector. The [homepage example](../../homepage/src/app/getting-started/typography.html) shows the system in use.
4
+
5
+ ## Details and price breakdowns
6
+
7
+ Use `good-detail-list` when labels and values need a stable reading order, such as metadata, settings, or a price breakdown. Each `div goodDetailRow` contains one native `dt` (label) and `dd` (value). GoodUI aligns the values, keeps numbers tabular, and lets long content wrap inside narrow panels. A parent such as `good-prose` owns the space before and after the list; the list owns the spacing between rows.
8
+
9
+ ```html
10
+ <good-detail-list>
11
+ <div goodDetailRow><dt>Storage</dt><dd>320 GB SSD</dd></div>
12
+ <div goodDetailRow><dt>Location</dt><dd>{{ location }}</dd></div>
13
+ <div goodDetailRow><dt>Monthly price</dt><dd>{{ monthlyPrice }}</dd></div>
14
+ </good-detail-list>
15
+ ```
16
+
17
+ Import `GoodDetailListComponent` and `GoodDetailRowDirective` from `@cloudfrogger/goodui`. Use a `good-subheading` for a section title and `good-separator variant="line"` when two related groups need a visual break. Put the emphasized total below the breakdown so individual rows remain easy to scan. The VPS create case study shows this composition in a narrow assistant panel.
18
+
19
+ ## Page heading
20
+
21
+ `good-heading-group` arranges an optional `good-eyebrow`, a `good-heading`, and an optional `good-summary`. Eyebrow defaults to the brand appearance, whose text color follows `color.accent` in both themes, and accepts `appearance="mono"`. The Summary uses 15 px text, weight 700, and 0.75 px letter spacing (0.05em at this fixed size) so it reads as a distinct lead-in above 14 px paragraphs without overpowering the title in multi-line copy. `good-heading` renders a real heading tag according to `level` (1–6, default 1). H1 uses 24 px and weight 800, with a 16 px gap below it when followed by Summary in a HeadingGroup or by page content in MainView; H2–H6 use 20 px and weight 600 with the compact 4 px gap. `good-main-view` already composes these elements for its `eyebrow`, `title`, and `description` inputs.
22
+
23
+ ```html
24
+ <good-main-view eyebrow="WORKSPACE" title="Reports" description="A concise page summary">
25
+ <!-- page content -->
26
+ </good-main-view>
27
+ ```
28
+
29
+ Use the standalone components when a heading belongs inside another layout:
30
+
31
+ ```html
32
+ <good-heading-group>
33
+ <good-eyebrow appearance="mono">Project notes</good-eyebrow>
34
+ <good-heading [level]="2">A reusable heading</good-heading>
35
+ <good-summary>Optional context below the heading.</good-summary>
36
+ </good-heading-group>
37
+ ```
38
+
39
+ Keep heading levels in document order. Penpot's `goodui.heading` variants are `level=1` and `level=2-6`, matching the Angular `level` input and its two weights. Penpot Eyebrow variants are `appearance=brand/mono`. Eyebrow and Summary can be omitted without leaving empty spacing.
40
+
41
+ The Typography page previews seven common calls: Heading H1 and H2, followed by Subheading H2 through H6. The level changes the native heading tag. The current visual scale has three roles: Heading H1 is 24 px, Heading H2–H6 are 20 px, and Subheading H2–H6 are 16 px. The Subheading levels intentionally share a visual size; choose a level for document structure, not to make its text larger or smaller.
42
+
43
+ ## Readable sections
44
+
45
+ Use `good-section` for a content section beneath a page heading or beside other page content. It renders a native `section`, grows up to 1024 px, centers itself in wider containers such as `good-main-view`, and spaces its heading from its body. It fills narrower containers without horizontal overflow. Adjacent sections receive the shared section gap. Give each section a descriptive `good-subheading`; choose its `level` to preserve heading order. `good-prose` owns paragraph spacing inside the section and retains its 760 px reading width. Import `GoodSectionComponent`, `GoodSubheadingComponent`, `GoodProseComponent`, and `GoodParagraphComponent` from `@cloudfrogger/goodui` in the consuming standalone component.
46
+
47
+ ```html
48
+ <good-main-view title="Designing" description="Getting Started with GoodUI">
49
+ <good-section>
50
+ <good-subheading>Design with the component library</good-subheading>
51
+ <good-prose>
52
+ <good-paragraph>Build a page from reusable components.</good-paragraph>
53
+ <good-paragraph>Keep design instances linked to their source.</good-paragraph>
54
+ </good-prose>
55
+ </good-section>
56
+ </good-main-view>
57
+ ```
58
+
59
+ `good-main-view` owns the page heading-to-content gap. It aliases the H1 after-gap token, so a page title has the same 16 px spacing whether a Summary follows or content begins immediately. Section owns the 1024 px content width and heading-to-body spacing; Prose owns the narrower 760 px reading width and rhythm within the body. No page-specific wrapper or text margins are needed. The Penpot `goodui.section` composition uses linked Subheading and Prose instances and binds its gap to `typography.paragraph.subheading-gap`. Its standalone reference board binds Width to `typography.section.max-width`; CSS applies the same token to `max-width` and centers the responsive section with auto inline margins. Penpot cannot show that CSS centering without a containing layout. Prose uses `typography.flow.max-width`; adjacent sections use `typography.flow.section-gap`.
60
+ Choose one page layout: direct `good-section` children for a centered reading page, or free content without `good-section` for a full-width page. With direct Sections, `good-main-view` centers both its optional `eyebrow`/`title`/`description` and the entire content area to the same 1024 px width. Without Sections, heading and content both use the full available width and begin at the same left edge. Keep the two patterns separate within a page. Use the MainView inputs for a standard page heading; place a `good-heading-group` inside a Section only when the heading is part of that Section's own content.
61
+ Both patterns use `layout="page"`, the scrolling default. Use `layout="fill"` for one primary projected component that fills the available height without outer padding and manages its own scrolling; a page heading remains optional. The [AppLayout guide](../layout/app-layout.md) shows a full-height calendar example.
62
+
63
+ When a `good-heading-group` is a direct child of Section, the following sibling receives additional space from `typography.heading.content-gap`. This keeps a page lead-in separate from a form or other content without adding a page-specific margin. The Penpot Section specimen contains a Subheading and Prose; this HeadingGroup-to-content sibling rule is an Angular composition behavior rather than an extra child in that specimen.
64
+
65
+ ## Text columns
66
+
67
+ Use `good-columns` for two to four parallel pieces of page content. Put each piece in a `good-column`; it applies the same text rhythm as Prose to its projected headings, paragraphs, and other content. Two columns are the default. Set `[columns]="3"` or `[columns]="4"` when the content needs more. Columns use the width available to their own container: below 480 px they stack, from 480 px they use up to two columns, from 700 px up to three, and from 960 px up to four. Empty grid tracks collapse when fewer columns are visible. The 24 px gap follows the shared spacing tokens.
68
+
69
+ ```html
70
+ <good-columns [columns]="3">
71
+ <good-column>
72
+ <good-subheading [level]="3">Discover</good-subheading>
73
+ <good-paragraph>Find the need.</good-paragraph>
74
+ </good-column>
75
+ <good-column>
76
+ <good-subheading [level]="3">Design</good-subheading>
77
+ <good-paragraph>Make a clear path.</good-paragraph>
78
+ </good-column>
79
+ <good-column>
80
+ <good-subheading [level]="3">Deliver</good-subheading>
81
+ <good-paragraph>Check the result.</good-paragraph>
82
+ </good-column>
83
+ </good-columns>
84
+ ```
85
+
86
+ Every column is visible at every size unless its `visibleAt` input says otherwise. Set `[visibleAt]="['sm', 'md', 'lg', 'xl']"` to hide one column only at xs. The bands refer to **container width**, not the browser window: xs below 480 px, sm 480–699 px, md 700–959 px, lg 960–1279 px, and xl 1280 px and above. You can list any combination; an empty list hides the column at all sizes. Keep essential information visible at every size, or supply it elsewhere when a column is hidden. The container keeps source order when columns stack, so put content in reading order. Import `GoodColumnsComponent` and `GoodColumnComponent` from `@cloudfrogger/goodui`.
87
+
88
+ Penpot page `12 Typography` publishes a `goodui.columns` variant group with `columns=2/3/4` and a linked `goodui.column` component. Its specimens show desktop composition; the container breakpoints and per-column visibility are Angular runtime behavior. Their published IDs are in [typography-components.json](../../design/typography-components.json).
89
+
90
+ ## Content flow
91
+
92
+ `good-prose` provides a readable 760 px maximum width and owns the vertical rhythm of its children. `good-paragraph` renders only its text and does not set an outer margin of its own, so it can be exchanged for a control or another content component without adding a second gap. Prose uses the 20 px `typography.flow.gap` token between its children. `good-subheading` renders a semantic H2–H6 (`level=2` by default); `good-citation` renders a blockquote with optional `source` and `cite`; and `good-separator` defaults to three quiet dots or accepts `variant="line"`. Penpot's `style` axis maps to the Angular `variant` input because `style` is reserved for HTML/CSS. Subheadings belong between paragraphs as siblings, keeping the HTML valid. A leading Subheading or Separator has no artificial top margin.
93
+
94
+ For mixed content, use `good-group` instead of adding margins to each child. Group supplies a 16 px default gap; `spacing="tight"` clusters full-height choices at a 4 px gap. Card bodies, modal bodies, expanded panels, assistant bodies, and tab panels also arrange their direct children. Keep a Checkbox's or RadioGroup's 44 px touch area intact; that height is part of the control, not extra outer spacing.
95
+
96
+ For a page with paragraphs, import `GoodProseComponent` and `GoodParagraphComponent` from `@cloudfrogger/goodui` in the consuming standalone component, then use:
97
+
98
+ ```html
99
+ <good-prose>
100
+ <good-paragraph>First paragraph.</good-paragraph>
101
+ <good-paragraph>Second paragraph with the correct spacing.</good-paragraph>
102
+ </good-prose>
103
+ ```
104
+
105
+ The [Typography page](../../homepage/src/app/getting-started/typography.html) places copyable Angular markup beside each visual example, including the other content roles and form text.
106
+
107
+ ```html
108
+ <good-prose>
109
+ <good-paragraph>Introduce the subject in a readable text block.</good-paragraph>
110
+ <good-subheading>Next steps</good-subheading>
111
+ <good-paragraph>Continue with the details.</good-paragraph>
112
+ <good-citation source="Team handbook">A short quotation.</good-citation>
113
+ <good-separator />
114
+ <good-inline-image src="/diagram.svg" alt="Workflow diagram" caption="How the steps connect" />
115
+ <good-separator variant="line" />
116
+ </good-prose>
117
+ ```
118
+
119
+ The separator has `role="separator"` and reserves more space before the division than after it. `good-inline-image` renders a semantic figure and optional figcaption. Its `align` is `center` by default, with `left` and `right` alternatives; the image stays within 420 px and shrinks to fit mobile width. Supply meaningful `alt` text for informative images, or an empty string for decorative ones. `loading` defaults to `lazy`.
120
+
121
+ Set `fullWidth` for wide screenshots or diagrams. It lets the figure use the full width of its GoodUI parent while still shrinking on small screens; the default remains the compact 420 px figure. This is a runtime layout option, not another Penpot alignment variant.
122
+
123
+ Set `[previewable]="true"` to open the shared image modal by mouse or keyboard. The optional caption appears below both the inline image and its fitted modal preview. Escape, backdrop dismissal, and the close button return focus to the image trigger. The same preview is available in [Image input](image-input.md).
124
+
125
+ In a standalone Angular page, include `GoodInlineImageComponent` in that page's `imports`. Put a local image in the application's `public/` directory and use a root-relative URL such as `src="/framework_concept.png"`; a relative URL without the leading slash resolves under the current route.
126
+
127
+ ## Form text
128
+
129
+ `goodForm` is an attribute directive on a native `<form>`. Its `layout` input has three choices: `vertical` (default), `left`, and `right`. Vertical places labels above controls. Left gives all fields one shared, left-aligned label column and one shared control column. Right aligns labels to the right edge of that label column, next to the left-aligned controls. The whole form owns the 160 px label column, 24 px column gap, 420 px maximum control width, and 20 px row gap through `form.*` design tokens. Narrow containers stack the horizontal layouts vertically. `good-form-field` owns one label, one control, and optional `good-hint` or `good-error-text`; help and error text align with the control column. A direct child `good-action-group` aligns with that column too.
130
+
131
+ Mark `good-field-label` or its `good-form-field` as required. The label shows a theme-aware red star and announces “required” to assistive technology. Within a FormField, the required state reaches a projected `good-input`, `good-date-input`, `good-image-input`, `good-checkbox`, or `good-radio-group` and their Angular Reactive Forms validators. Input and DateInput need a value, Image Input needs an existing source or selected file, Checkbox must be checked, and RadioGroup needs a selection. Disabled controls are exempt; readonly Inputs are also exempt. A standalone control can use its own `[required]="true"` input.
132
+
133
+ For an Input, Image Input, or Checkbox, `good-field-label forId` targets the native control ID. For a RadioGroup in a horizontal form, omit `forId`, give FieldLabel an `id`, and pass that ID through RadioGroup `labelledBy`. FieldLabel then renders non-interactive text in the shared label column, while the radio fieldset receives its accessible name through `aria-labelledby`.
134
+
135
+ ```html
136
+ <form goodForm layout="right" [formGroup]="form">
137
+ <good-form-field [required]="true">
138
+ <good-field-label forId="email">Email address</good-field-label>
139
+ <good-input inputId="email" label="Email address" type="email"
140
+ formControlName="email" describedBy="email-hint" />
141
+ <good-hint id="email-hint">We use this address for account updates.</good-hint>
142
+ </good-form-field>
143
+ <good-action-group><good-button type="submit">Continue</good-button></good-action-group>
144
+ </form>
145
+ ```
146
+
147
+ Import `GoodFormDirective` with the projected controls in a standalone page. For validation feedback, set the control's error state, replace the hint with `good-error-text`, and point `describedBy` at the error ID. Match `forId` to the control's native `inputId` so clicking the label focuses the input. Use either FormField or FieldLabel `required` as the source for the marker; you do not need to repeat it on Input. Penpot publishes `goodui.form.vertical`, `.left`, and `.right` with linked FieldLabel and Input instances. The selector `form[goodForm]` maps their visual layout to Angular. Penpot's FormField default/error compositions remain available for message states. The former per-field `labelPosition` input and Penpot inline examples were replaced by whole-form alignment; migrate to `goodForm` on the parent form.
148
+
149
+ For a Checkbox with a separate FieldLabel, set `forId` and `inputId` to the same ID; the label activates the native checkbox. A Checkbox can instead show its own label beside the box with `[showLabel]="true"`. A RadioGroup uses its native `legend` as the group label. Supply `label` on `good-radio-group`; do not add an external FieldLabel for the group because a fieldset is not a labelable control. The [Control labels page](../../homepage/src/app/labels-page.ts) demonstrates both patterns and their Reactive Forms validity.
150
+
151
+ ## Tokens and Penpot limits
152
+
153
+ The Penpot `layout` set is the source for the generated `--good-*` CSS variables. Font sizes, weights, letter spacing, colors, image corners, flex gaps, and supported padding are bound to tokens in the published Penpot components. Form compositions bind their width and gap properties to `form.*`; `form.column-gap` and `form.row-gap` alias the base spacing scale. Eyebrow, required, error, and muted colors alias the existing semantic colors and follow the active light or dark theme. The repository snapshot is exported to `design-tokens/penpot.tokens.json`; `npm run tokens:generate` builds the CSS.
154
+
155
+ The current Penpot plugin rejects applying a `fontFamilies` token to text. The specimens retain Inter as their explicit font family; Angular uses the exported `typography.font-family` token. Penpot does not offer a token binding for line height or italic style, so these are explicit properties in Penpot and CSS. Semantic HTML tags, responsive wrapping, image alt text, and live error announcements are verified in Angular.
@@ -0,0 +1,72 @@
1
+ # World map
2
+
3
+ `good-world-map` plots country data on a zoomable, pannable map. It shares `GoodChartDataSource` and the GoodUI marker palette with the other data visualizations. The geometry is bundled and loaded only when a map is opened; it requires no tile service or API key. The map uses Natural Earth 5.1.2 country boundaries via `@cublya/world-atlas` 3.0.0-beta.2. See [Natural Earth's terms](https://www.naturalearthdata.com/about/terms-of-use/) and [World Atlas data license](https://cublya.github.io/world-atlas/guides/boundary-data-licensing/).
4
+
5
+ Start with a source whose country key is `category` and uses two-letter country codes (ISO 3166-1 alpha-2 where available; `XK` for Kosovo). A numeric key supplies the overlay value. A `date` or `datetime` key is optional; with repeated rows the latest observation per country is shown by default. Set `[time]` to an exact date or datetime to show an earlier observation. Rows for countries without mapped geometry are skipped. The bundled independent-country map covers 238 distinct two-letter codes, including `FR`, `NO`, `TW`, and `XK`; it does not include every dependent territory. An unavailable `focusCountry` produces a visible error.
6
+
7
+ ```ts
8
+ import type { GoodChartDataSource } from '@cloudfrogger/goodui';
9
+
10
+ readonly sources: GoodChartDataSource[] = [{
11
+ id: 'coverage',
12
+ keys: [
13
+ { key: 'country', type: 'category' },
14
+ { key: 'date', type: 'date' },
15
+ { key: 'share', type: 'number', unit: '%' },
16
+ ],
17
+ rows: [
18
+ { country: 'DE', date: '2024-01-01', share: 56 },
19
+ { country: 'DE', date: '2025-01-01', share: 64 },
20
+ { country: 'FR', date: '2025-01-01', share: 53 },
21
+ ],
22
+ }];
23
+ ```
24
+
25
+ ```html
26
+ <good-world-map title="Regional coverage" [sources]="sources"
27
+ focusCountry="DE" time="2025-01-01" (countrySelected)="onCountrySelected($event)">
28
+ <good-map-overlay source="coverage" countryKey="country" timeKey="date"
29
+ valueKeys="share" type="percentage" label="Coverage" />
30
+ </good-world-map>
31
+ ```
32
+
33
+ `good-map-overlay` is a declarative child. `source` selects one source ID. `countryKey` defaults to `country`; `timeKey` is optional. `valueKeys` is a comma-separated list of numeric key names. Use `type="percentage"` for one value, or `type="bar"` / `type="pie"` for one or more. Percentages are displayed as supplied, so a value of `64` appears as `64%` (not `6400%`). For pie, nonpositive values do not contribute to the total. `label` changes the accessible description. `color` overrides the first marker color; `[colors]` on the map replaces the shared palette for all glyphs.
34
+
35
+ ## Color countries by value
36
+
37
+ Add one `good-map-color-scale` child to paint countries by a numeric measure. The default `palette="corporate"` uses GoodUI's theme-aware marker sky → blue → violet. Set `palette="heatmap"` for a familiar cool-to-hot blue → cyan → green → yellow → red scale. Both presets follow the active light or dark theme. The map shows the exact scale in a labeled legend below the geography.
38
+
39
+ To supply your own scale, pass **two or more ordered colors** to `[colors]` on `good-map-color-scale`. GoodUI distributes the stops evenly and blends between adjacent stops; the first is the minimum, the last is the maximum. GoodUI marker names such as `teal` and `rose`, CSS colors, and CSS variables are accepted. `[colors]` overrides `palette`. This is separate from `[colors]` on `good-world-map`, which colors bar, pie, and percentage overlays. Existing `lowColor` and `highColor` still define a two-color scale when `[colors]` is absent; they override the selected preset's endpoints.
40
+
41
+ ```html
42
+ <good-world-map title="Regional coverage" [sources]="sources" [time]="selectedDate">
43
+ <good-map-color-scale source="coverage" countryKey="country" timeKey="date"
44
+ valueKey="share" label="Coverage" [min]="0" [max]="100" />
45
+ </good-world-map>
46
+
47
+ <good-world-map title="Regional coverage" [sources]="sources">
48
+ <good-map-color-scale source="coverage" valueKey="share" palette="heatmap"
49
+ [min]="0" [max]="100" />
50
+ </good-world-map>
51
+
52
+ <good-world-map title="Regional coverage" [sources]="sources">
53
+ <good-map-color-scale source="coverage" valueKey="share"
54
+ [colors]="['teal', '#f4d35e', 'rose']" [min]="0" [max]="100" />
55
+ </good-world-map>
56
+ ```
57
+
58
+ `source` and `valueKey` are required. `countryKey` defaults to `country`, and `timeKey` is optional. The selected measure must be `number` or `integer`; invalid, null, and non-finite values are ignored. Countries without a valid value keep the neutral map fill. Optional `min` and `max` set stable bounds for comparing different dates; otherwise GoodUI uses the smallest and largest valid values in the selected snapshot. Values outside the bounds use the endpoint colors. The measure's `unit` appears in the legend and country description. If all valid values are equal and bounds are omitted, GoodUI places them at the center of the scale. A one-color or empty-stop custom list shows a configuration error.
59
+
60
+ The color scale and `good-map-overlay` may be combined in the same map: the scale colors the countries, while overlays remain readable above them. A selected country retains its brand-colored outline. See the [live color-scale example](../../homepage/src/app/visualizations/world-maps-page.html).
61
+
62
+ ## Dense country details
63
+
64
+ GoodUI combines nearby overlay symbols as you zoom out or narrow the map. Each combined symbol shows the **arithmetic mean of each numeric measure** and a small badge with its country count. For example, three countries with `active` values 20, 40, and 60 show a bar for mean `40`; their `planned` values are averaged separately. Percentage, bar, and pie overlays follow the same rule. A pie is built from the mean values, so it still represents their proportions. Hover or focus a combined symbol to read its country count, names, and mean values. Zoom in and the countries separate again.
65
+
66
+ Combining happens within each `good-map-overlay` definition after its date selection and data validation. The country color scale continues to show each country's own value. The default needs no configuration; set `[aggregateOverlays]="false"` on `good-world-map` only when every individual symbol must remain visible. The spacing adapts to the rendered map width, so mobile uses fewer combined symbols than desktop at the same geographic zoom.
67
+
68
+ `focusCountry` accepts a two-letter code and centers that country, preserving enough context to recognize its shape. Bind it to a signal for programmatic changes. Clicking or pressing Enter/Space on a country emits `countrySelected` with its code; the reset button emits an empty string and returns to the whole world. Drag with a mouse or finger to pan; use the wheel, a two-finger pinch, or the GoodUI zoom buttons to zoom. `minZoom` and `maxZoom` default to 1 and 12. The map is responsive and uses the theme-aware surface, border, selected, and marker colors.
69
+
70
+ When a country is selected, its direct land neighbors become gray while the selected country's color and outline remain visible. Neighbor relationships come from shared boundaries in the bundled map topology, so an overseas territory can add a geographically adjacent country. Islands without land borders have no gray neighbors. This behavior needs no extra application data and works with and without a color scale. The [demo](../../homepage/src/app/visualizations/world-maps-page.html) starts with the United States, which shades Canada and Mexico.
71
+
72
+ The glyph title reports the country, label, and values; it does not replace a full data table when precise comparison is important. [Try all three color scales in the live example](../../homepage/src/app/visualizations/world-maps-page.html).