@canonical/design-system 0.1.2 → 0.2.1

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 (452) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE.md +15 -6
  2. package/.github/workflows/ci.yml +14 -4
  3. package/.github/workflows/sync-coda-manual.yml +13 -0
  4. package/.github/workflows/sync-coda-scheduled.yml +9 -0
  5. package/.github/workflows/sync-coda.yml +65 -1
  6. package/README.md +132 -79
  7. package/bun.lock +51 -12
  8. package/data/apps/component/file_tree.ttl +6 -1
  9. package/data/apps/component/key_value_pair.ttl +5 -1
  10. package/data/apps/component/navigation.ttl +5 -1
  11. package/data/apps/component/notification.ttl +5 -1
  12. package/data/apps/component/side_navigation.ttl +11 -0
  13. package/data/apps/component/skeleton_loading.ttl +5 -1
  14. package/data/apps/component/status_bar.ttl +5 -1
  15. package/data/apps/component/toolbar.ttl +5 -1
  16. package/data/apps/group/key_value_pairs.ttl +11 -0
  17. package/data/apps/group/notifications.ttl +5 -1
  18. package/data/apps/layout/application_layout.ttl +4 -0
  19. package/data/apps/layout/content_layout.ttl +11 -1
  20. package/data/apps/layout/empty_layout.ttl +5 -1
  21. package/data/apps/layout/list_page_layout.ttl +5 -1
  22. package/data/apps/layout/settings_page_layout.ttl +5 -1
  23. package/data/apps/layout/view_layout.ttl +4 -0
  24. package/data/apps/pattern/action_bar.ttl +11 -0
  25. package/data/apps/pattern/code_diff.ttl +5 -1
  26. package/data/apps/pattern/data_table.ttl +205 -2
  27. package/data/apps/pattern/destructive_modal.ttl +5 -1
  28. package/data/apps/pattern/drawer.ttl +12 -0
  29. package/data/apps/pattern/keyboard_shortcuts.ttl +5 -1
  30. package/data/apps/pattern/notification_center.ttl +19 -1
  31. package/data/apps/pattern/side_panel.ttl +6 -1
  32. package/data/apps/pattern/sidepanel_stacked.ttl +5 -1
  33. package/data/apps/subcomponent/data_table-action_bar.ttl +27 -0
  34. package/data/apps/subcomponent/data_table-body_cell.ttl +106 -0
  35. package/data/apps/subcomponent/data_table-group_header_row.ttl +58 -0
  36. package/data/apps/subcomponent/data_table-header_cell.ttl +73 -0
  37. package/data/apps/subcomponent/data_table-pagination_bar.ttl +44 -0
  38. package/data/apps/subcomponent/data_table-persistent_selection.ttl +50 -0
  39. package/data/apps/subcomponent/data_table-settings_menu.ttl +63 -0
  40. package/data/apps/subcomponent/drawer-content.ttl +12 -0
  41. package/data/apps/subcomponent/drawer-footer.ttl +12 -0
  42. package/data/apps/subcomponent/drawer-header.ttl +12 -0
  43. package/data/apps/subcomponent/file_tree-node.ttl +5 -1
  44. package/data/apps/subcomponent/log.ttl +11 -0
  45. package/data/apps/subcomponent/side_panel-content.ttl +12 -0
  46. package/data/apps/subcomponent/side_panel-footer.ttl +12 -0
  47. package/data/apps/subcomponent/side_panel-header.ttl +12 -0
  48. package/data/apps_anbox/component/theme_switcher.ttl +10 -0
  49. package/data/apps_anbox/pattern/side_menu.ttl +11 -1
  50. package/data/apps_debcrafters/component/example.ttl +10 -0
  51. package/data/apps_debcrafters/component/my_fancy_component.ttl +11 -0
  52. package/data/apps_debcrafters.ttl +4 -0
  53. package/data/apps_juju/pattern/single_select_multi_layered.ttl +4 -1
  54. package/data/apps_landscape/component/password_constraints.ttl +4 -1
  55. package/data/apps_landscape/component/truncated_cell.ttl +38 -0
  56. package/data/apps_launchpad/component/avatar.ttl +31 -0
  57. package/data/apps_launchpad/component/badge.ttl +11 -9
  58. package/data/apps_launchpad/component/breadcrumbs.ttl +5 -2
  59. package/data/apps_launchpad/component/button.ttl +11 -9
  60. package/data/apps_launchpad/component/checkbox_input.ttl +31 -0
  61. package/data/apps_launchpad/component/chip.ttl +11 -8
  62. package/data/apps_launchpad/component/combobox.ttl +16 -11
  63. package/data/apps_launchpad/component/description_list.ttl +8 -3
  64. package/data/apps_launchpad/component/drawer.ttl +38 -0
  65. package/data/apps_launchpad/component/log.ttl +58 -0
  66. package/data/apps_launchpad/component/modal.ttl +44 -0
  67. package/data/apps_launchpad/component/radio_input.ttl +37 -0
  68. package/data/apps_launchpad/component/select_input.ttl +38 -0
  69. package/data/apps_launchpad/component/switch.ttl +8 -4
  70. package/data/apps_launchpad/component/text_input.ttl +13 -9
  71. package/data/apps_launchpad/component/textarea_input.ttl +39 -0
  72. package/data/apps_launchpad/component/tooltip.ttl +12 -8
  73. package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +11 -9
  74. package/data/apps_launchpad/subcomponent/combobox-footer.ttl +8 -3
  75. package/data/apps_launchpad/subcomponent/combobox-group.ttl +10 -6
  76. package/data/apps_launchpad/subcomponent/combobox-helper.ttl +11 -6
  77. package/data/apps_launchpad/subcomponent/combobox-loading.ttl +9 -3
  78. package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +8 -3
  79. package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +12 -10
  80. package/data/apps_launchpad/subcomponent/combobox-search.ttl +10 -6
  81. package/data/apps_launchpad/subcomponent/description_list-item.ttl +8 -3
  82. package/data/apps_launchpad/subcomponent/log-line.ttl +38 -0
  83. package/data/apps_launchpad/subcomponent/modal-content-body.ttl +18 -0
  84. package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +18 -0
  85. package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +11 -0
  86. package/data/apps_launchpad/subcomponent/modal-content-header.ttl +19 -0
  87. package/data/apps_launchpad/subcomponent/modal-content.ttl +20 -0
  88. package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +11 -0
  89. package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +11 -0
  90. package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +11 -0
  91. package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +12 -0
  92. package/data/apps_launchpad/subcomponent/side_panel-content.ttl +12 -0
  93. package/data/apps_lxd/component/back_link.ttl +29 -0
  94. package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +54 -0
  95. package/data/apps_lxd/component/confirmation_checkbox.ttl +19 -3
  96. package/data/apps_lxd/component/doc_link.ttl +45 -0
  97. package/data/apps_lxd/component/meter.ttl +37 -0
  98. package/data/apps_lxd/component/output_field.ttl +48 -0
  99. package/data/apps_lxd/component/rename_header.ttl +74 -0
  100. package/data/apps_lxd/component/tab_links.ttl +35 -0
  101. package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +39 -0
  102. package/data/apps_lxd/view/network_topology.ttl +16 -2
  103. package/data/apps_notary.ttl +4 -0
  104. package/data/apps_portal/component/badge.ttl +3 -0
  105. package/data/apps_portal/component/credit_card_input.ttl +10 -0
  106. package/data/apps_portal/component/key_value_pair.ttl +10 -0
  107. package/data/apps_portal/pattern/purchase_summary.ttl +10 -0
  108. package/data/apps_portal/subcomponent/read_only_modal.ttl +10 -0
  109. package/data/apps_workplaceengineering/component/label-highlight.ttl +18 -0
  110. package/data/apps_workplaceengineering/component/rule.ttl +11 -0
  111. package/data/apps_workplaceengineering/component/skip_link.ttl +10 -0
  112. package/data/apps_workplaceengineering/component/theme_switcher.ttl +11 -0
  113. package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +11 -0
  114. package/data/apps_workplaceengineering/pattern/event_timeline.ttl +11 -0
  115. package/data/apps_workplaceengineering/pattern/group_card.ttl +11 -0
  116. package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +12 -0
  117. package/data/apps_workplaceengineering.ttl +4 -0
  118. package/data/documentation/layout/documentation_layout.ttl +5 -1
  119. package/data/documentation/pattern/library_side_navigation.ttl +6 -2
  120. package/data/global/component/accordion.ttl +61 -2
  121. package/data/global/component/announcement.ttl +12 -2
  122. package/data/global/component/avatar.ttl +11 -0
  123. package/data/global/component/badge.ttl +42 -1
  124. package/data/global/component/breadcrumbs.ttl +18 -2
  125. package/data/global/component/button.ttl +36 -8
  126. package/data/global/component/button_link.ttl +5 -1
  127. package/data/global/component/card.ttl +33 -2
  128. package/data/global/component/checkbox_field.ttl +11 -0
  129. package/data/global/component/chip.ttl +74 -2
  130. package/data/global/component/choices_field.ttl +11 -0
  131. package/data/global/component/code_snippet-content.ttl +6 -2
  132. package/data/global/component/code_snippet-header.ttl +6 -2
  133. package/data/global/component/code_snippet.ttl +13 -2
  134. package/data/global/component/color_field.ttl +11 -0
  135. package/data/global/component/combobox_field.ttl +11 -0
  136. package/data/global/component/contextual_menu.ttl +22 -2
  137. package/data/global/component/data_tooltip.ttl +84 -0
  138. package/data/global/component/date_field.ttl +11 -0
  139. package/data/global/component/date_time_field.ttl +11 -0
  140. package/data/global/component/dropdown_button.ttl +18 -0
  141. package/data/global/component/file_upload_field.ttl +11 -0
  142. package/data/global/component/heading.ttl +5 -1
  143. package/data/global/component/hidden_field.ttl +11 -0
  144. package/data/global/component/icon.ttl +6 -2
  145. package/data/global/component/icon_in_container.ttl +5 -1
  146. package/data/global/component/inline_code.ttl +11 -0
  147. package/data/global/component/keyboard_key.ttl +7 -3
  148. package/data/global/component/markdown_field.ttl +11 -0
  149. package/data/global/component/mode_switcher.ttl +11 -0
  150. package/data/global/component/month_field.ttl +11 -0
  151. package/data/global/component/notification_inline.ttl +5 -1
  152. package/data/global/component/notification_toast.ttl +5 -1
  153. package/data/global/component/number_field.ttl +11 -0
  154. package/data/global/component/pagination.ttl +6 -2
  155. package/data/global/component/password_field.ttl +11 -0
  156. package/data/global/component/phone_field.ttl +11 -0
  157. package/data/global/component/popover.ttl +5 -1
  158. package/data/global/component/range_field.ttl +11 -0
  159. package/data/global/component/rating_field.ttl +11 -0
  160. package/data/global/component/relative_timestamp.ttl +10 -0
  161. package/data/global/component/rich_choices_field.ttl +11 -0
  162. package/data/global/component/rich_text_field.ttl +11 -0
  163. package/data/global/component/search_field.ttl +11 -0
  164. package/data/global/component/segmented_control_field.ttl +11 -0
  165. package/data/global/component/select_field.ttl +11 -0
  166. package/data/global/component/switch_field.ttl +11 -0
  167. package/data/global/component/table.ttl +7 -2
  168. package/data/global/component/tabs.ttl +7 -3
  169. package/data/global/component/tag.ttl +18 -0
  170. package/data/global/component/text_field.ttl +11 -0
  171. package/data/global/component/textarea_field.ttl +11 -0
  172. package/data/global/component/tile.ttl +24 -3
  173. package/data/global/component/time_field.ttl +11 -0
  174. package/data/global/component/timestamp.ttl +10 -0
  175. package/data/global/component/tooltip.ttl +75 -56
  176. package/data/global/component/tooltip_wrapper.ttl +81 -0
  177. package/data/global/group/buttons.ttl +12 -1
  178. package/data/global/group/cards.ttl +9 -1
  179. package/data/global/group/code_snippets.ttl +5 -1
  180. package/data/global/group/keyboard_keys.ttl +7 -3
  181. package/data/global/group/tiles.ttl +5 -1
  182. package/data/global/layout/error_layout.ttl +5 -1
  183. package/data/global/layout/form_layout.ttl +5 -1
  184. package/data/global/layout/identity_page_form.ttl +5 -1
  185. package/data/global/modifier/dark.ttl +1 -1
  186. package/data/global/modifier/information.ttl +1 -1
  187. package/data/global/modifier/light.ttl +1 -1
  188. package/data/global/modifier/modal.ttl +6 -0
  189. package/data/global/modifier/surface1.ttl +6 -0
  190. package/data/global/modifier/surface2.ttl +6 -0
  191. package/data/global/modifier/surface3.ttl +6 -0
  192. package/data/global/modifier_family/_emphasis.ttl +2 -1
  193. package/data/global/modifier_family/_other.ttl +2 -1
  194. package/data/global/modifier_family/anticipation.ttl +2 -1
  195. package/data/global/modifier_family/criticality.ttl +2 -1
  196. package/data/global/modifier_family/density.ttl +2 -1
  197. package/data/global/modifier_family/importance.ttl +2 -1
  198. package/data/global/modifier_family/lifecycle.ttl +2 -1
  199. package/data/global/modifier_family/mode.ttl +7 -0
  200. package/data/global/modifier_family/release.ttl +2 -1
  201. package/data/global/modifier_family/surface.ttl +7 -0
  202. package/data/global/pattern/description_list.ttl +11 -0
  203. package/data/global/pattern/field.ttl +11 -0
  204. package/data/global/pattern/form.ttl +10 -0
  205. package/data/global/pattern/form_login.ttl +10 -0
  206. package/data/global/pattern/info_table.ttl +5 -1
  207. package/data/global/pattern/modal.ttl +7 -2
  208. package/data/global/pattern/navigation.ttl +5 -1
  209. package/data/global/pattern/stepper.ttl +5 -1
  210. package/data/global/pattern/table_of_contents.ttl +5 -1
  211. package/data/global/pattern/timeline.ttl +33 -2
  212. package/data/global/subcomponent/accordion-item.ttl +10 -5
  213. package/data/global/subcomponent/breadcrumbs-item.ttl +7 -3
  214. package/data/global/subcomponent/card-content.ttl +8 -3
  215. package/data/global/subcomponent/card-footer.ttl +12 -0
  216. package/data/global/subcomponent/card-header.ttl +8 -3
  217. package/data/global/subcomponent/card-image.ttl +8 -3
  218. package/data/global/subcomponent/card-thumbnail.ttl +6 -1
  219. package/data/global/subcomponent/chart_legend.ttl +11 -0
  220. package/data/global/subcomponent/chart_legend_item.ttl +11 -0
  221. package/data/global/subcomponent/checkbox_input.ttl +11 -0
  222. package/data/global/subcomponent/color_input.ttl +11 -0
  223. package/data/global/subcomponent/combobox_input.ttl +11 -0
  224. package/data/global/subcomponent/date_input.ttl +11 -0
  225. package/data/global/subcomponent/date_time_input.ttl +11 -0
  226. package/data/global/subcomponent/field-description.ttl +11 -0
  227. package/data/global/subcomponent/field-label.ttl +11 -0
  228. package/data/global/subcomponent/file_upload_input.ttl +11 -0
  229. package/data/global/subcomponent/hidden_input.ttl +11 -0
  230. package/data/global/subcomponent/kvp_container.ttl +11 -0
  231. package/data/global/subcomponent/kvpitem_base.ttl +11 -0
  232. package/data/global/subcomponent/markdown_input.ttl +11 -0
  233. package/data/global/subcomponent/modal-content.ttl +5 -1
  234. package/data/global/subcomponent/modal-footer.ttl +5 -1
  235. package/data/global/subcomponent/modal-header.ttl +5 -1
  236. package/data/global/subcomponent/month_input.ttl +11 -0
  237. package/data/global/subcomponent/number_input.ttl +11 -0
  238. package/data/global/subcomponent/password_input.ttl +11 -0
  239. package/data/global/subcomponent/phone_input.ttl +11 -0
  240. package/data/global/subcomponent/radio_input.ttl +11 -0
  241. package/data/global/subcomponent/range_input.ttl +11 -0
  242. package/data/global/subcomponent/rating_input.ttl +11 -0
  243. package/data/global/subcomponent/rich_text_input.ttl +11 -0
  244. package/data/global/subcomponent/search_input.ttl +26 -0
  245. package/data/global/subcomponent/segmented_control_input.ttl +11 -0
  246. package/data/global/subcomponent/select_input.ttl +11 -0
  247. package/data/global/subcomponent/spin_button.ttl +11 -0
  248. package/data/global/subcomponent/spinner.ttl +7 -3
  249. package/data/global/subcomponent/switch_input.ttl +11 -0
  250. package/data/global/subcomponent/table-cell.ttl +5 -1
  251. package/data/global/subcomponent/table-row.ttl +5 -1
  252. package/data/global/subcomponent/text_input.ttl +11 -0
  253. package/data/global/subcomponent/textarea_input.ttl +33 -0
  254. package/data/global/subcomponent/tile-content.ttl +7 -3
  255. package/data/global/subcomponent/tile-header.ttl +13 -4
  256. package/data/global/subcomponent/time_input.ttl +11 -0
  257. package/data/global/subcomponent/timeline-content.ttl +7 -2
  258. package/data/global/subcomponent/timeline-event.ttl +8 -3
  259. package/data/global/subcomponent/timeline-expansion_indicator.ttl +6 -1
  260. package/data/global/subcomponent/timeline-header.ttl +6 -1
  261. package/data/global/variant/tooltip_dense.ttl +14 -0
  262. package/data/global/view/settings_view.ttl +5 -1
  263. package/data/sites/component/blog_card.ttl +11 -0
  264. package/data/sites/component/quote.ttl +11 -0
  265. package/data/sites/component/rule.ttl +11 -0
  266. package/data/sites/component/section.ttl +11 -0
  267. package/data/sites/group/blog_cards.ttl +11 -0
  268. package/data/sites/group/xblog_elements.ttl +10 -0
  269. package/data/sites/layout/blog_page_layout.ttl +11 -0
  270. package/data/{site → sites}/layout/case_study_layout.ttl +6 -2
  271. package/data/sites/layout/site_layout.ttl +11 -0
  272. package/data/sites/pattern/hero-github.ttl +11 -0
  273. package/data/sites/pattern/hero.ttl +11 -0
  274. package/data/sites/pattern/info_table.ttl +11 -0
  275. package/data/sites/pattern/pricing_section.ttl +11 -0
  276. package/data/sites/pattern/pricing_table.ttl +11 -0
  277. package/data/sites/pattern/read_more_section.ttl +11 -0
  278. package/data/sites/pattern/skip_link.ttl +11 -0
  279. package/data/{site.ttl → sites.ttl} +2 -2
  280. package/data/sites_webcomponentsprototype/component/blog_cards.ttl +4 -1
  281. package/data/sites_webcomponentsprototype/component/ctablock.ttl +4 -1
  282. package/data/sites_webcomponentsprototype/component/list.ttl +5 -2
  283. package/data/sites_webcomponentsprototype/component/tabs.ttl +5 -2
  284. package/data/sites_webcomponentsprototype/layout/site_layout.ttl +3 -0
  285. package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +4 -1
  286. package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +4 -1
  287. package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +5 -2
  288. package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +5 -2
  289. package/data/sites_webcomponentsprototype/pattern/hero.ttl +5 -2
  290. package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +5 -2
  291. package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +5 -2
  292. package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +5 -2
  293. package/data/tag/allgood.ttl +7 -0
  294. package/data/tag/beta.ttl +7 -0
  295. package/data/tag/candidate.ttl +7 -0
  296. package/data/tag/devbatch1.ttl +7 -0
  297. package/data/tag/devbatch2.ttl +7 -0
  298. package/data/tag/devexternal.ttl +7 -0
  299. package/data/tag/devreactapproved.ttl +7 -0
  300. package/data/tag/devreactbase.ttl +7 -0
  301. package/data/tag/devreactpreapproved.ttl +7 -0
  302. package/data/tag/devspecial.ttl +7 -0
  303. package/data/tag/devsveltedone.ttl +7 -0
  304. package/data/tag/devsveltein-progress.ttl +7 -0
  305. package/data/tag/divergent.ttl +7 -0
  306. package/data/tag/docscomplete.ttl +7 -0
  307. package/data/tag/draft.ttl +7 -0
  308. package/data/tag/edge.ttl +7 -0
  309. package/data/tag/global-docs-missing.ttl +7 -0
  310. package/data/tag/has-no-global-entry.ttl +7 -0
  311. package/data/tag/lpto-be-upstreamed.ttl +7 -0
  312. package/data/tag/lptriageblocked-reqs-design.ttl +7 -0
  313. package/data/tag/lptriageno-upstream.ttl +7 -0
  314. package/data/tag/lptriagereimplement-and-deprecate.ttl +7 -0
  315. package/data/tag/lptriagereimplement-and-keep.ttl +7 -0
  316. package/data/tag/lptriageupstream-and-deprecate.ttl +7 -0
  317. package/data/tag/minimal.ttl +7 -0
  318. package/data/tag/needsdefinition.ttl +7 -0
  319. package/data/tag/needsdiscussion.ttl +7 -0
  320. package/data/tag/needsdocumentation.ttl +7 -0
  321. package/data/tag/needsreview.ttl +7 -0
  322. package/data/tag/needstriage.ttl +7 -0
  323. package/data/tag/needsupdate.ttl +7 -0
  324. package/data/tag/notstarted.ttl +7 -0
  325. package/data/tag/specialadoption-docs.ttl +7 -0
  326. package/data/tag/stable.ttl +7 -0
  327. package/data/tag/stylesready.ttl +7 -0
  328. package/data/tag/triagedbacklog.ttl +7 -0
  329. package/data/tag/triagedrejected.ttl +7 -0
  330. package/data/tag/upstream-candidate.ttl +7 -0
  331. package/data/tag/upstream-compliant.ttl +7 -0
  332. package/data/tag/upstreamcandidate.ttl +7 -0
  333. package/data/tag/waiting-for-delta-review.ttl +7 -0
  334. package/data/tag/wpeinital-implementation.ttl +7 -0
  335. package/data/tag/wpetriageupstream-and-deprecate.ttl +6 -0
  336. package/data/tagcategory/channel.ttl +4 -0
  337. package/data/tagcategory/concept-status.ttl +4 -0
  338. package/data/tagcategory/concept-type.ttl +4 -0
  339. package/data/tagcategory/documentation-stage.ttl +4 -0
  340. package/data/tagcategory/implementation-status.ttl +4 -0
  341. package/data/tagcategory/lpupstream.ttl +4 -0
  342. package/data/tagcategory/review-status.ttl +4 -0
  343. package/data/tagcategory/tmp.ttl +4 -0
  344. package/definitions/ontology.ttl +133 -14
  345. package/examples/form-roster.target.json +550 -0
  346. package/package.json +5 -2
  347. package/skills/adoption-a1-styles/SKILL.md +159 -0
  348. package/skills/adoption-a2-components/SKILL.md +186 -0
  349. package/skills/adoption-a3-forms/SKILL.md +155 -0
  350. package/skills/anatomy-author/ANATOMY_DSL_SPEC.md +89 -106
  351. package/skills/anatomy-author/SKILL.md +350 -141
  352. package/skills/design-auditor/SKILL.md +197 -274
  353. package/skills/implement-component/SKILL.md +244 -0
  354. package/skills/specify-component/SKILL.md +232 -0
  355. package/skills/specify-pattern/SKILL.md +192 -0
  356. package/source.json +64 -2
  357. package/specs/README.md +17 -0
  358. package/src/cli.ts +23 -10
  359. package/src/commands/index.ts +1 -0
  360. package/src/commands/sync.tests.ts +430 -0
  361. package/src/commands/sync.ts +418 -0
  362. package/src/commands/transform.tests.ts +190 -5
  363. package/src/commands/transform.ts +163 -67
  364. package/src/constants.ts +1 -0
  365. package/src/providers/CodaProvider.tests.ts +94 -0
  366. package/src/providers/CodaProvider.ts +211 -1
  367. package/src/providers/detectSmartChips.tests.ts +42 -0
  368. package/src/providers/detectSmartChips.ts +60 -0
  369. package/src/scripts/checkDataDeletion.ts +68 -0
  370. package/src/scripts/evaluateDataDeletion.tests.ts +100 -0
  371. package/src/scripts/evaluateDataDeletion.ts +100 -0
  372. package/src/sync/constants.ts +52 -0
  373. package/src/sync/diffRoster.tests.ts +455 -0
  374. package/src/sync/diffRoster.ts +241 -0
  375. package/src/sync/loadTargetSpec.tests.ts +208 -0
  376. package/src/sync/loadTargetSpec.ts +139 -0
  377. package/src/sync/renderPlan.tests.ts +144 -0
  378. package/src/sync/renderPlan.ts +88 -0
  379. package/src/sync/snapshotTable.tests.ts +31 -0
  380. package/src/sync/snapshotTable.ts +20 -0
  381. package/src/sync/toLiveEntries.tests.ts +76 -0
  382. package/src/sync/toLiveEntries.ts +55 -0
  383. package/src/sync/types.ts +101 -0
  384. package/src/transform/collectDataMetrics.tests.ts +108 -0
  385. package/src/transform/collectDataMetrics.ts +114 -0
  386. package/src/transform/deltaGuards.tests.ts +136 -0
  387. package/src/transform/deltaGuards.ts +118 -0
  388. package/src/transform/expectedTables.tests.ts +99 -0
  389. package/src/transform/expectedTables.ts +34 -0
  390. package/src/transform/isValidReferenceUri.tests.ts +45 -0
  391. package/src/transform/isValidReferenceUri.ts +55 -0
  392. package/src/transform/materializeInverses.tests.ts +81 -0
  393. package/src/transform/materializeInverses.ts +78 -0
  394. package/src/transform/transform.tests.ts +22 -0
  395. package/src/transform/transform.ts +31 -3
  396. package/src/transform/transformRow.malformedRefs.tests.ts +127 -0
  397. package/src/transform/transformRow.tests.ts +82 -0
  398. package/src/transform/transformRow.ts +90 -7
  399. package/src/transform/types.ts +11 -0
  400. package/vitest.config.ts +29 -0
  401. package/data/apps/pattern/key_value_summary.ttl +0 -7
  402. package/data/apps_anbox/component/copy_to_clipboard.ttl +0 -7
  403. package/data/apps_launchpad/component/checkbox.ttl +0 -28
  404. package/data/apps_launchpad/component/radio.ttl +0 -34
  405. package/data/apps_launchpad/component/select.ttl +0 -34
  406. package/data/apps_launchpad/component/textarea.ttl +0 -35
  407. package/data/apps_launchpad/component/user_avatar.ttl +0 -25
  408. package/data/apps_lxd/component/copy_to_clipboard.ttl +0 -7
  409. package/data/apps_workplace/component/label-highlight.ttl +0 -7
  410. package/data/apps_workplace.ttl +0 -4
  411. package/data/apps_wpe.ttl +0 -4
  412. package/data/global/component/code.ttl +0 -7
  413. package/data/global/component/label.ttl +0 -14
  414. package/data/global/component/rich_text_editor.ttl +0 -7
  415. package/data/global/component/search_bar.ttl +0 -7
  416. package/data/global/component/theme_switcher.ttl +0 -7
  417. package/data/global/modifier/paper.ttl +0 -6
  418. package/data/global/pattern/dropdown_button.ttl +0 -7
  419. package/data/global/subcomponent/divider.ttl +0 -7
  420. package/data/global_form/component/checkbox_input.ttl +0 -7
  421. package/data/global_form/component/choices_input.ttl +0 -7
  422. package/data/global_form/component/combobox_input.ttl +0 -7
  423. package/data/global_form/component/custom_choices_input.ttl +0 -7
  424. package/data/global_form/component/datepicker_input.ttl +0 -7
  425. package/data/global_form/component/rating_input.ttl +0 -7
  426. package/data/global_form/component/rich_text_input.ttl +0 -7
  427. package/data/global_form/component/segmented_control_input.ttl +0 -7
  428. package/data/global_form/component/slider_input.ttl +0 -7
  429. package/data/global_form/component/switch_input.ttl +0 -7
  430. package/data/global_form/component/text_input.ttl +0 -7
  431. package/data/global_form/component/textarea_input.ttl +0 -7
  432. package/data/global_form/component/wysiwginput.ttl +0 -7
  433. package/data/global_form/pattern/field.ttl +0 -7
  434. package/data/global_form/pattern/form.ttl +0 -7
  435. package/data/global_form/subcomponent/field-description.ttl +0 -7
  436. package/data/global_form/subcomponent/field-label.ttl +0 -7
  437. package/data/global_form.ttl +0 -4
  438. package/data/site/component/blog_card.ttl +0 -7
  439. package/data/site/component/quote.ttl +0 -7
  440. package/data/site/component/rule.ttl +0 -7
  441. package/data/site/component/section.ttl +0 -7
  442. package/data/site/group/blog_cards.ttl +0 -7
  443. package/data/site/layout/blog_page_layout.ttl +0 -7
  444. package/data/site/layout/site_layout.ttl +0 -7
  445. package/data/site/pattern/hero-github.ttl +0 -7
  446. package/data/site/pattern/hero.ttl +0 -7
  447. package/data/site/pattern/info_table.ttl +0 -7
  448. package/data/site/pattern/pricing_section.ttl +0 -7
  449. package/data/site/pattern/pricing_table.ttl +0 -7
  450. package/data/site/pattern/read_more_section.ttl +0 -7
  451. package/data/site/pattern/skip_link.ttl +0 -7
  452. package/skills/component-specifier/SKILL.md +0 -412
@@ -4,4 +4,8 @@ ds:global.component.icon_in_container a ds:Component;
4
4
  ds:name "Icon in Container";
5
5
  ds:summary "";
6
6
  ds:anatomyDsl "";
7
- ds:tier ds:global.
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.triagedrejected.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.inline_code a ds:Component;
4
+ ds:name "InlineCode";
5
+ ds:summary "The code component displays code, commands, and technical language that requires distinct visual treatment. This includes programming languages, domain-specific languages such as search syntax, terminal commands, file paths, and configuration values. This component is designed for simple, single-line code. For multi-line or more complex use cases, use [CodeSnippet](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-qaVsf7J6ln) instead.";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2305-13374&t=mrOkyDfhQY9JZwMz-1\n\nStyling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4394-108294&t=mrOkyDfhQY9JZwMz-1";
8
+ ds:usage "The component appears most often within paragraph text but can also be used in lists, Tables, and other structured content.\n\n### Inline code\n\nUse inline code for short, simple references within the normal text flow, such as commands, function names, or configuration keys. Keep inline code concise.\n\n### Code block\n\nUse code block when single-line code benefits from separation from surrounding text. Code block scrolls horizontally by default if the line length exceeds the available width. For code that requires wrapping or multiple lines, use Code snippet instead.\n\n### When to use\n\nTo display programming code, terminal commands, or domain-specific languages \nFor technical values that should be interpreted literally \nTo present executable snippets users may copy\n\n### When not to use\n\nFor regular prose or human-readable text - use paragraph text instead \nFor emphasis or stress - use bold or italics instead \nFor multi-line code - use [CodeSnippet](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-qaVsf7J6ln) instead";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -2,6 +2,10 @@
2
2
 
3
3
  ds:global.component.keyboard_key a ds:Component;
4
4
  ds:name "KeyboardKey";
5
- ds:summary "";
6
- ds:anatomyDsl "";
7
- ds:tier ds:global.
5
+ ds:summary "The KeyboardKey component renders a single keyboard key as a styled kbd element. It maps a key identifier (letters, digits, modifiers, function keys, navigation keys, and action keys) to its display label and presents it as a compact, inline visual indicator. Use it to represent keyboard shortcuts, key bindings, or individual keys within instructional or reference content. It is non-interactive and purely informational.";
6
+ ds:anatomyDsl "---\nnode:\n uri: global.component.keyboard_key\n styles:\n layout.display: inline-flex\n layout.align: center\n layout.justify: center\n appearance.border.style: solid\n appearance.background: color/background/default\n appearance.border.width: spacing/border-width\n appearance.border.color: color/text/muted\n appearance.radius: radius/keyboard-key\n typography.size: font/size/xsmall\n typography.weight: font/weight/bold\n typography.line.height: line-height/xsmall\n typography.color: color/text\n spacing.internal.inline: spacing/horizontal/xsmall";
7
+ ds:anatomyClassic "";
8
+ ds:usage "When to use\n\n- Embed key representations in help articles, changelogs, or feature announcements to give consistent visual treatment to every key reference.\n\n\n\nWhen not to use\n\n- The content is not a keyboard key. Status labels, tags or category badges have their own components.";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdocumentation.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.markdown_field a ds:Component;
4
+ ds:name "MarkdownField";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needstriage.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.mode_switcher a ds:Component;
4
+ ds:name "ModeSwitcher";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.month_field a ds:Component;
4
+ ds:name "MonthField";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needstriage.
@@ -4,4 +4,8 @@ ds:global.component.notification_inline a ds:Component;
4
4
  ds:name "NotificationInline";
5
5
  ds:summary "";
6
6
  ds:anatomyDsl "";
7
- ds:tier ds:global.
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.triagedrejected.
@@ -4,4 +4,8 @@ ds:global.component.notification_toast a ds:Component;
4
4
  ds:name "NotificationToast";
5
5
  ds:summary "";
6
6
  ds:anatomyDsl "";
7
- ds:tier ds:global.
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needstriage.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.number_field a ds:Component;
4
+ ds:name "NumberField";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needstriage.
@@ -2,6 +2,10 @@
2
2
 
3
3
  ds:global.component.pagination a ds:Component;
4
4
  ds:name "Pagination";
5
- ds:summary "";
5
+ ds:summary "Pagination is a navigational component that allows users to move between pages of content. It provides controls for navigating to the previous or next page, as well as optionally jumping directly to a specific numbered page. This component is best suited for content-heavy sites where information is divided across multiple pages, such as blog posts, articles, tutorials, or search results. For paginating tabular data, use the Table pagination component instead.\n\n";
6
6
  ds:anatomyDsl "";
7
- ds:tier ds:global.
7
+ ds:anatomyClassic "";
8
+ ds:usage "### When to use\n\n- Content is divided across multiple pages and requires navigation controls\n- Users may need to jump to a specific page within the content\n- Users are likely to return to a previously visited page\n- The total number of items or pages is known and finite\n- Content consumption benefits from clear boundaries between pages\n\n### When not to use\n\n- Paginating tabular data; use the Table pagination component instead\n- Guided flows or multi-step processes; use step navigation (“Back” and “Next” buttons) instead\n- Exploratory interfaces where users browse without a specific target; consider infinite scrolling\n- Single-page content that does not require division";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.password_field a ds:Component;
4
+ ds:name "PasswordField";
5
+ ds:summary "A form control for collecting a secret value, such as a password, that is masked as the user types. It frames the entry with a label, optional guidance, and validation, and offers a control to briefly reveal the entered value for verification.";
6
+ ds:anatomyDsl "node:\n uri: global.component.password-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.password-input\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "";
8
+ ds:usage "A labelled, masked secret entry within a form.\n\n\n\n### When to use\n\n- Collecting a password or other secret the user should not see in plain text on screen.\n\n- Cases where the user benefits from a reveal control to verify a typed secret.\n\n\n\n### When not to use\n\n- Ordinary visible text — use [TextField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-QAuX4qtecx) .\n\n- A value that should always be visible for confirmation — use [TextField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-QAuX4qtecx) .";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.phone_field a ds:Component;
4
+ ds:name "PhoneField";
5
+ ds:summary "A form control for collecting a telephone number together with its country, framing the entry with a label, optional guidance, and validation. It lets the user pick the country (which establishes the dialling prefix) and enter the national number.";
6
+ ds:anatomyDsl "node:\n uri: global.component.phone-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.phone-input\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "";
8
+ ds:usage "A labelled telephone-number entry, paired with its country, within a form.\n\n\n\n### When to use\n\n- A telephone number is collected and the country (and its dialling prefix) is part of the value.\n\n- The entry benefits from picking a country alongside typing the national number.\n\n\n\n### When not to use\n\n- A generic short value with no country context is wanted — use [TextField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-QAuX4qtecx) .";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -4,4 +4,8 @@ ds:global.component.popover a ds:Component;
4
4
  ds:name "Popover";
5
5
  ds:summary "";
6
6
  ds:anatomyDsl "";
7
- ds:tier ds:global.
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.range_field a ds:Component;
4
+ ds:name "RangeField";
5
+ ds:summary "A form control for choosing a number within a fixed minimum and maximum by sliding, with the current value shown as it changes. It frames the choice with a label and optional guidance and suits approximate selection within a bounded scale.";
6
+ ds:anatomyDsl "node:\n uri: global.component.range-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.range-input\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3749-4947&t=yaXCR1Fr1yOsAxs6-1";
8
+ ds:usage "A labelled control for choosing a number within a fixed minimum and maximum by sliding.\n\n\n\n### When to use\n\n- An approximate number is chosen within a known, bounded scale, with the current value shown as it changes.\n\n- Sliding along a continuous track communicates the choice more naturally than typing an exact figure.\n\n\n\n### When not to use\n\n- A precise or open-ended number is required rather than an approximate one within bounds — use [TextInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-csRvI-VTpO) .";
9
+ ds:guidelines "## Accessibility (draft) \n\n\nHow to ensure accessibility requirements are met:\n\n1. Group the slider and the input into a fieldset.\n2. Add a legend to the fieldset.\n3. Programatically: keep the `<label>`s; or use the `title` attribute to replace the `<label>`.\n4. Visually: hide the labels .\n5. Visually: make sure the slider and the input are clearly a group associated with the legend. \nSee spec: [https://docs.google.com/document/d/19k-5YOuQc6B82mYPEwvmlJpui3Oex4o8ACwKBbo-d44/edit?tab=t.0](https://docs.google.com/document/d/19k-5YOuQc6B82mYPEwvmlJpui3Oex4o8ACwKBbo-d44/edit?tab=t.0)\n\n*Future work: revisit the styling in the future so that it's clearly a group*\n\n";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.rating_field a ds:Component;
4
+ ds:name "RatingField";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,10 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.relative_timestamp a ds:Component;
4
+ ds:name "RelativeTimestamp";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.rich_choices_field a ds:Component;
4
+ ds:name "RichChoicesField";
5
+ ds:summary "A form control for selecting one or several options from a set whose choices can carry rich labels (text, icon, or richer content). It frames the set with a label, optional guidance, and validation, and supports either single-choice or multiple-choice selection.";
6
+ ds:anatomyDsl "node:\n uri: global.component.choices-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n role: option\n styles: {}\n edges:\n - node:\n role: control\n relation:\n cardinality: \"1\"\n - node:\n role: rich label\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"2..*\"";
7
+ ds:anatomyClassic "";
8
+ ds:usage "A labelled set of selectable options, single- or multiple-choice, with richly-labelled choices.\n\n\n\n### When to use\n\n- Choosing one or several options from a small, visible set where the choices benefit from rich labels.\n\n\n\n### When not to use\n\n- A long list better searched than scanned — use [ComboboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-kfEQ25cX4a) .\n\n- A single binary decision — use [CheckboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-vwBCoHgXoG) .\n\n- Text-only options where layout control matters more than rich labels — use [ChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-IFk-NNRL3C) .";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.rich_text_field a ds:Component;
4
+ ds:name "RichTextField";
5
+ ds:summary "Reference: [https://github.com/canonical/design-system/discussions/35](https://github.com/canonical/design-system/discussions/35)";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.search_field a ds:Component;
4
+ ds:name "SearchField";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.segmented_control_field a ds:Component;
4
+ ds:name "SegmentedControlField";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.select_field a ds:Component;
4
+ ds:name "SelectField";
5
+ ds:summary "A form control for choosing exactly one value from a compact dropdown list, framed with a label, optional guidance, and validation.";
6
+ ds:anatomyDsl "node:\n uri: global.component.select-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.select-input\n relation:\n cardinality: \"1\"\n slotName: default\n\\`\\`\\`";
7
+ ds:anatomyClassic "";
8
+ ds:usage "\n### When to use\n- Exactly one value is chosen from a short, known set that stays collapsed until opened.\n- The set is small enough to scan in full without typing to filter.\n\n### When not to use\n- The set is large enough that filtering by typing would help — use **Combobox**.\n- Several options may be chosen at once, or the choices benefit from rich labels shown in full — use **Choices** or **SimpleChoices**.\n- A single binary decision is being made — use **Checkbox**.";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.switch_field a ds:Component;
4
+ ds:name "SwitchField";
5
+ ds:summary "A form control for a single on/off setting presented as a toggle, framed with a label and optional guidance. It expresses a binary state the user flips directly; in form use the value is committed with the form.";
6
+ ds:anatomyDsl "node:\n uri: global.component.switch-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.switch-input\n relation:\n cardinality: \"1\"\n slotName: default\n\\`\\`\\`";
7
+ ds:anatomyClassic "";
8
+ ds:usage "\n### When to use\n- The setting has exactly two states, on and off, with an immediate sense of being enabled or disabled.\n- A toggle reads more naturally than a tick, such as turning a feature or preference on or off.\n\n### When not to use\n- The user is agreeing to terms or opting in as part of submitting a form — use **Checkbox**.\n- The user must pick among several distinct options rather than flip one setting — use **Choices**.";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -2,6 +2,11 @@
2
2
 
3
3
  ds:global.component.table a ds:Component;
4
4
  ds:name "Table";
5
- ds:summary "";
5
+ ds:summary "A table displays data in rows and columns. This structured format helps users review and compare large data sets efficiently. The table is a static component suited to presenting data without complex interactions. For advanced needs – pagination, selection, bulk actions, filtering, sorting, and grouping – use the [DataTable](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-VpHrA4bXUJ) (Apps tier) instead. Sites tier products typically use this table. However, if a use case requires richer functionality, refer to the [DataTable](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-VpHrA4bXUJ) documentation.\n\n";
6
6
  ds:anatomyDsl "";
7
- ds:tier ds:global.
7
+ ds:anatomyClassic "Styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4462-94135&t=mrOkyDfhQY9JZwMz-1\n\n";
8
+ ds:usage "Use a table to display data where items share two or more characteristics and belong together as a group. Rows represent items, and columns represent their characteristics. Tables work best when all items share the same set of characteristics, allowing users to compare across rows.\n\n## When to use\n\n- Entities share multiple characteristics and group together under a common category\n- Cross-row comparison is meaningful to the user\n- The user needs to locate or compare specific data points within a known dataset\n\n### \n\n## When not to use\n\n- Datasets have different structures.\n - Incorrect: Forcing two distinct objects, such as “User Profiles” and “Invoices,” into a single table by using generic headers or leaving many cells empty.\n - Remediation: Use separate tables or a [List](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fi4xttt9mh) to clearly distinguish between different data types and their unique schemas.\n- The user needs to browse or explore content without a specific task.\n - Incorrect: Using a table to display a \"News Feed\" where the goal is for the user to discover stories or read highlights at a leisurely pace.\n - Remediation: Consider using [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD)s for exploratory, media-heavy content or a simple [List](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fi4xttt9mh) for smaller volumes of narrative data.\n- The use case involves complex interactions such as bulk selection, filtering, multi-column sorting, or pagination.\n - Incorrect: Using a basic, static table to display thousands of rows of data that require real-time manipulation and deep analysis.\n - Remediation: Use the [DataTable](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-VpHrA4bXUJ) instead to provide advanced functionality like global search, column resizing, and bulk action processing.\n\n### \n\n## Columns\n\n### \n\nAlign columns to the grid where possible. If that is not feasible, size columns to fit their content. Consider the available space when deciding how many columns to include. Display only the information the user needs at that moment. Keep column headings short, typically one to two words, and ensure they describe the column content.\n\n## Cell content\n\nChips, icons, and links are permitted within table cells. Use linked text for navigation only, not as calls to action. Right-align numbers when users need to compare values across rows. Left-align numbers when comparison is not the intent. Do not apply semantic color to cell text. Use icons or status indicators to convey semantic meaning instead.\n\n## Sorting\n\nTables support sorting on a per-column basis. Designers decide which columns should be sortable. Do not enable sorting on every column. Apply sorting where the data has a meaningful order, such as status categories, dates, or alphabetically significant values. Columns with unordered data do not warrant sorting.\n\n## Pagination\n\nCombine a table with simple pagination when the number of rows would overwhelm the user. Pagination is particularly useful when content appears below the table. Without it, a large number of rows can push that content out of the viewport. Paginating the table reduces its vertical size and keeps the surrounding content visible.\n\n## Mobile\n\nOn mobile, consider converting a table into cards if doing so improves usability. Do not convert tables to cards if it reduces the ability to compare items.";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition;
12
+ ds:hasSubcomponent ds:global.subcomponent.table-row, ds:global.subcomponent.table-cell.
@@ -2,6 +2,10 @@
2
2
 
3
3
  ds:global.component.tabs a ds:Component;
4
4
  ds:name "Tabs";
5
- ds:summary "";
6
- ds:anatomyDsl "";
7
- ds:tier ds:global.
5
+ ds:summary "A tabs component organizes related content into separate sections, allowing users to switch between different content panels within the same context by clicking on labeled tab headers. It helps reduce visual clutter by displaying only one content panel at a time while keeping all options easily accessible.";
6
+ ds:anatomyDsl "---\n node:\n uri: global.component.tabs\n styles: {}\n edges:\n - node:\n role: tab\n relation:\n cardinality: \"1..*\"\n slotName: default\n";
7
+ ds:anatomyClassic "Styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4388-106316&t=mrOkyDfhQY9JZwMz-1";
8
+ ds:usage "Tabs are used to organize related content at the same level of hierarchy, allowing users to focus on one section at a time without leaving the current context. They work best when content sections are closely related but mutually exclusive (when users typically need to see only one section to complete their task).\n\nUnlike navigation, which moves users between different pages or sections of an application, tabs keep users in the same place while switching between different aspects of the same topic or dataset. This distinction is important: tabs are a content organization pattern, not a navigation pattern. The tab labels should be predictable and not overlap in content, giving users a clear mental model of what content lives under each tab. For example, tabs labeled \"Overview,\" \"Specifications,\" and \"Reviews\" for a product page set clear expectations about what each section contains.\n\nUnlike [Accordion](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-FfEcibePe1) , which stack vertically and can display multiple sections simultaneously, tabs enforce a single-focus model where only one content panel is ever visible. Choose [Accordion](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-FfEcibePe1) when users may need to compare information across sections or reference multiple sections at once. Choose tabs when the content is mutually exclusive and users benefit from focusing on one thing at a time.\n\n## \n\n### When to use\n\n- To organize related content that doesn't need to be viewed simultaneously\n- When you have 2–7 sections of content that are at the same level of hierarchy\n- To reduce cognitive load by breaking up content into digestible chunks\n- For switching between different aspects or properties of a single item (e.g., Overview, Specifications, Reviews for a product)\n- When space is limited and you need to display multiple categories of information in the same area\n- To group related settings or configuration options that are independent of each other\n\n### When not to use\n\n- As primary navigation. Tabs are for content organization, not for moving between pages. \n - Incorrect: Using tabs in a main header to navigate the user to entirely different pages or unrelated views.\n - Remediation: Use [Navigation](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-nkDiZdUMkV) to direct users to new pages.\n- Within forms where submission scope is unclear. Users won't know if all tabs or just the visible tab will be submitted. \n - Incorrect: Placing a multi-part form across multiple tabs and having a single submit button at the bottom, confusing users about whether hidden fields are being saved. \n - Remediation: Use a stepper or wizard pattern to guide the user through a clear, linear submission process.\n- For sequential or step-by-step processes. \n - Incorrect: Guiding users through an onboarding or checkout process using tabs where the chronological order of operations is not well-defined. \n - Remediation: Use a stepper or wizard pattern to represent chronological progression.\n- When users need to compare content across sections. \n - Incorrect: Hiding comparative specifications across different tabs, forcing the user to click back and forth to evaluate differences. \n - Remediation: Consider using a pattern that allows multiple sections to be viewed or expanded simultaneously, such as [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD)s.\n- For a single section of content. Tabs require at least two sections to be meaningful. \n - Incorrect: Displaying only one tab containing all the page content, which serves no organizational purpose and adds unnecessary UI clutter. \n - Remediation: Remove the tab structure and display the content directly on the page surface using standard headings and paragraphs.\n- When you have many sections (8+). \n - Incorrect: Cluttering the interface with too many tabs that wrap onto multiple lines and overwhelm the user. \n - Remediation: Consider breaking the content into separate pages or using a dropdown/sidebar navigation instead.\n- To show different views of the same data/content. \n - Incorrect: Using tabs to switch between a list view and a map view of the exact same location data. \n - Remediation: Use [SegmentedControlField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-q1-jZEKyxy) to indicate that the user is changing the view, not the content category.\n\n### Placement and context\n\nTabs should not appear at the very top of a page. Placing them there essentially creates another layer of navigation, which confuses users about where they are in the application hierarchy. If you find yourself wanting top-level tabs, consider whether those sections belong in the primary navigation instead.\n\nThere should always be content above the tabs that establishes context. This could be a page title, a description, or information about the item the tabs relate to. The tabs then organize the detailed content that follows. This placement reinforces that tabs are subdividing content within a page, not defining the page itself.\n\n### URL structure\n\nConsider whether users will want to reference a specific tab in the future, either for themselves or to share with others. If so, each tab should have its own URL. In marketing websites or informational pages, users rarely need to link directly to a specific tab. However, in applications where users collaborate or need to bookmark specific views, such as machine details, customer records, or project settings, deep linking to individual tabs becomes valuable. A technician sending a colleague to the \"Networking\" tab of a specific machine should be able to share a direct link.\n\n### Scope of effect\n\nTabs affect all content below them. This is the expected behavior and requires no additional visual treatment. However, there are cases where tabs appear in the middle of a page and only control a specific section rather than everything beneath them. In these situations, the affected area must be clearly distinguishable through visual boundaries, background colors, or contained card layouts, so users understand exactly what will change when they switch tabs.\n\nTabs cannot be nested. If you find yourself wanting tabs within tabs, reconsider your information architecture. This usually indicates that the content structure is too complex and would benefit from a different approach, such as separate pages or a combination of navigation and tabs.";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,18 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.tag a ds:Component;
4
+ ds:name "Tag";
5
+ ds:summary "The label component is a compact, non-interactive visual element used to categorize content or indicate a status. Its primary role is metadata visualization. While it has similar visual properties to the [Chip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-N-fnT7n4mU), it is purely informational and does not trigger actions or allow for removal.";
6
+ ds:anatomyDsl "---\nnode:\n uri: global.component.label\n styles:\n layout.display: inline\n typography.size: font/size/label\n typography.weight: font/weight/medium\n edges:\n - node:\n role: icon\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: content\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2877-15897&t=ZeOhPBVqjN81UglM-1\n\nStyling \nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4327-100398&t=mrOkyDfhQY9JZwMz-1";
8
+ ds:usage "The label is intended to serve as an indicator of meta data or status. It provides a visual shortcut for users to identify the state or classification of an item without requiring any direct interaction with the element itself.\n\n### When to use\n\n- When you need to surface high-priority metadata that helps users scan and differentiate items within a larger set.\n- When an object undergoes a lifecycle (e.g., a ticket moving from \"Open\" to \"Resolved\"). Labels provide an immediate visual cue of the current state.\n- When items need to be grouped by type or department (e.g., \"HR,\" \"Finance,\" or \"Legal\") to help users find relevant information quickly.\n- When a specific, non-actionable characteristic needs to be called out, such as \"New\" on a product card or \"Required\" next to a form field.\n- When using a color-coded system to indicate urgency or importance levels, such as \"Critical,\" \"High,\" or \"Low\" in a task list, that is not a filter.\n\n### When not to use\n\n- When the user expects to click the element to filter a list or navigate to a category page.\n - Incorrect: A user clicks a \"Marketing\" label expecting to see all marketing posts, but nothing happens.\n - Remediation: Use a [Chip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-N-fnT7n4mU) component which supports click events and hover states.\n- When the metadata is temporary or user-defined and needs to be removable.\n - Incorrect: A search results page where \"Applied Filters\" are displayed as labels with no \"X\" or delete functionality.\n - Remediation: Use a [Chip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-N-fnT7n4mU) with an integrated \"Remove\" action.\n- When the information being displayed is a long sentence or requires multiple lines.\n - Incorrect: A label containing the text: \"This item was approved by the manager yesterday.\"\n - Remediation: Use a [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW) or helper text to keep the interface clean and avoid breaking the label's compact \"pill\" shape.\n- When the element is used as the primary trigger for a process.\n - Incorrect: A \"Submit\" button styled as a label to save space.\n - Remediation: Use a [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr) component to ensure the user perceives it as an interactive CTA.";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdocumentation;
12
+ ds:hasProperty [
13
+ a ds:Property;
14
+ ds:name "children";
15
+ ds:propertyType "text";
16
+ ds:optional "false"
17
+ ];
18
+ ds:hasModifierFamily ds:global.modifier_family.anticipation, ds:global.modifier_family.importance, ds:global.modifier_family.criticality.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.text_field a ds:Component;
4
+ ds:name "TextField";
5
+ ds:summary "A form control for collecting a single line of free-form text from the user, such as a name, reference, or short value. It frames the entry with a label, optional guidance, and validation, and can hint at the kind of content expected (e.g. email or telephone) to aid entry.";
6
+ ds:anatomyDsl "node:\n uri: global.component.text-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.text-input\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "";
8
+ ds:usage "A labelled single-line text entry within a form.\n\n\n\n### When to use\n\n- Collecting a short, free-form value on one line (name, code, email, URL, telephone).\n\n\n\n\n\n### When not to use\n\n- Multi-line or long-form text — use [TextareaField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-1BX4RBEZu6) .\n\n- Masking sensitive entry (password) — a content-type variant of this control, [PasswordField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-wg-OYudWS0) .\n\n- Choosing from a known set of values — use [SelectField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-u5dH7O-tHI) , [ComboboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-kfEQ25cX4a) , [RichChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-OE7Ygmz_vT) , or [ChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-IFk-NNRL3C) .\n\n- Numeric selection within a bounded range — use [RangeField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-N4ek7saDSq) .";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.textarea_field a ds:Component;
4
+ ds:name "TextareaField";
5
+ ds:summary "A form control for collecting multi-line free-form text, such as notes, descriptions, or comments, with consistent labelling and validation.";
6
+ ds:anatomyDsl "node:\n uri: global.component.textarea-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.textarea-input\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "";
8
+ ds:usage "A labelled multi-line text entry within a form.\n\n\n\n### When to use\n\n- Longer, free-form text is collected over several lines, such as notes, descriptions, or comments.\n\n- The user benefits from writing and revising across multiple lines rather than a single line.\n\n\n\n### When not to use\n\n- A short, single-line value is wanted — use [TextField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-QAuX4qtecx) .\n\n- The value is chosen from a known set rather than written freely — use [SelectField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-u5dH7O-tHI) , [ComboboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-kfEQ25cX4a) , [RichChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-OE7Ygmz_vT) , or [ChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-IFk-NNRL3C) .";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -2,12 +2,33 @@
2
2
 
3
3
  ds:global.component.tile a ds:Component;
4
4
  ds:name "Tile";
5
- ds:summary "The tile component is a flexible container for information or actions that is meant to be grouped together but does not repeat the same structure. It acts as a container that creates a clear boundary between different pieces of content, making complex layouts easier to scan and organize. It is often used for dashboards, “Bento box” navigation, and rich media layouts.\nFor information that repeats its structure and belongs in a series, use Card instead.";
6
- ds:anatomyDsl "---\nnode:\n uri: global.component.tile\n styles:\n layout.type: stack\n layout.direction: vertical\n interaction.cursor: pointer\n appearance.background: color/surface/tile\n appearance.radius: radius/tile\n edges:\n - node:\n uri: global.subcomponent.tile-header\n relation:\n cardinality: \"0..1\"\n slotName: header\n - node:\n uri: global.subcomponent.tile-content\n relation:\n cardinality: \"1\"\n slotName: default\n\n";
5
+ ds:summary "The tile component is a flexible container for information or actions that are meant to be grouped together but do not repeat the same structure. It acts as a container that creates a clear boundary between different pieces of content, making complex layouts easier to scan and organize. It is often used for dashboards, “Bento box” layout, and rich media layouts.\n\nFor information that is broken down into pieces that all share the same structure and belongs in a series, use [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD)s instead. \n\n";
6
+ ds:anatomyDsl "---\nnode:\n uri: global.component.tile\n styles:\n layout.type: stack\n layout.direction: vertical\n interaction.cursor: pointer\n appearance.background: color/surface/tile\n appearance.radius: radius/tile\n edges:\n - node:\n uri: global.subcomponent.tile-header\n relation:\n cardinality: \"0..1\"\n slotName: header\n - node:\n uri: global.subcomponent.tile-content\n relation:\n cardinality: \"1\"\n slotName: default\n";
7
+ ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3141-13818&t=ZeOhPBVqjN81UglM-1\n\nStyling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2146-3117&t=ch8BFFPUe9gCvMdg-1\n\n";
8
+ ds:usage "The tile is a container designed to wrap unique or variable data sets. Tiles should be used to create clear visual separation without over-complicating the interface with too many layers.\n\n### When to use\n\n- When you have a collection of items that differ in their structure but logically fit together (i.e. a dashboard), use multiple tiles. \n- When one or more items (image, title, description, price) need to be artificially perceived as a unit.\n\n### When not to use\n\n- When you are presenting a simple document or long-form article that should flow naturally.\n - Incorrect: Wrapping every paragraph of a blog post in its own individual tile or breaking up an article by changing the style of the presented data.\n - Remediation: Use standard typography components and vertical spacing to separate paragraphs.\n- When a tile is placed inside another tile without a clear functional reason, creating \"nested box\" fatigue.\n - Incorrect: A large tile containing a list of items where every single list item is also in its own tile.\n - Remediation: Use a [List](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fi4xttt9mh) or a [Table](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Olq5LYSopF) inside the main tile to display the child items.\n- When the container is used solely to house a single item like a button or a link.\n - Incorrect: Placing a single \"Submit\" button inside a tile with no other content.\n - Remediation: Place the component directly on the page surface.\n- When the items you are displaying have the same properties.\n - Incorrect: Using tiles to display all instances running.\n - Remediation: Use the [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD) components, which allow for more strict object mappings to content types.\n\n";
9
+ ds:guidelines "";
7
10
  ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdocumentation;
8
12
  ds:hasProperty [
9
13
  a ds:Property;
10
14
  ds:name "children";
11
- ds:propertyType "node";
15
+ ds:propertyType "element";
12
16
  ds:optional "false"
17
+ ];
18
+ ds:hasSubcomponent ds:global.subcomponent.tile-content, ds:global.subcomponent.tile-header;
19
+ ds:changeLog [
20
+ a ds:ChangeLogEntry;
21
+ ds:timestamp "2026-04-17T00:00:00.000+02:00";
22
+ ds:change "comments have been addressed and documentation has been updated";
23
+ ds:changeType "change"
24
+ ], [
25
+ a ds:ChangeLogEntry;
26
+ ds:timestamp "2026-04-17T00:00:00.000+02:00";
27
+ ds:change "The tile can have an optional header.";
28
+ ds:changeType "decision"
29
+ ], [
30
+ a ds:ChangeLogEntry;
31
+ ds:timestamp "2026-04-24T00:00:00.000+02:00";
32
+ ds:change "updated the summary deflection ant the usage description";
33
+ ds:changeType "change"
13
34
  ].
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.time_field a ds:Component;
4
+ ds:name "TimeField";
5
+ ds:summary "A form control for collecting a time of day from the user, such as an appointment slot, opening hour, or reminder time. It frames the entry with a label, optional guidance, and validation, lets the user set a time using a clock metaphor, and can confine the selection to an allowed range and to set increments.";
6
+ ds:anatomyDsl "node:\n uri: global.component.time-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.time-input\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "";
8
+ ds:usage "A labelled time-of-day entry within a form.\n\n\n\n### When to use\n\n- Collecting one specific time of day (appointment slot, opening hour, reminder time).\n\n- The time is an absolute point in the day that benefits from a clock metaphor rather than free typing.\n\n- The allowable times form a continuous range that can be bounded by an earliest and latest time, optionally snapped to set increments.\n\n\n\n### When not to use\n\n- A calendar day with no time attached — use [DateField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Btd18SrL7F) .\n\n- A calendar day together with a time of day — use [DateTimeField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-iMMaj5QewN) .\n\n- A time drawn from a small, named set rather than the open clock — use [SelectField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-u5dH7O-tHI) or [RichChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-OE7Ygmz_vT) .\n\n- A length of time rather than a point in the day — use a duration field.\n\n";
9
+ ds:guidelines "";
10
+ ds:tier ds:global;
11
+ ds:documentationStage ds:tag.needsdefinition.
@@ -0,0 +1,10 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:global.component.timestamp a ds:Component;
4
+ ds:name "Timestamp";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:global.