@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
@@ -0,0 +1,39 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.component.textarea_input a ds:Component;
4
+ ds:name "TextareaInput";
5
+ ds:summary "The **Textarea** component is a form element that allows users to enter a multi-line text input.\n\n**Main Use Cases:**\n\n- **Forms:** Used in forms to allow users to enter a long text, such as a comment or a message.\n- **Editors:** Used as the base for a simple text editor.\n\n";
6
+ ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.textarea\n styles:\n layout.display: inline-block\n spacing.internal: spacing/inline/medium\n appearance.background: color/background/input\n appearance.border: border/style/underline\n typography.size: typography/paragraph/default";
7
+ ds:anatomyClassic "\n\nhttps://www.figma.com/design/Y0cqKbTG4rejU9xm2oh5pR/%F0%9F%92%A0-Vanilla---Core-component-library?node-id=2066-51&m=dev\n\n1. **Textarea:** The main text input area.";
8
+ ds:usage "### 1. General Description\n\nThe Textarea is used when you need to allow users to enter a large amount of text. It is a versatile component that can be used in a variety of situations.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Multi-line input:** Use when you need to allow users to enter multi-line text.\n- **Long text:** Use when the expected input is longer than a single line.\n\n2.2 When Not to Use\n\n- **Single-line input:** Do not use for single-line input. Use a TextInput instead.\n\n";
9
+ ds:guidelines "### Accessibility\n\n- **Focusable elements:** Tooltips should only be used on focusable elements, such as buttons and links.\n- **Keyboard accessible:** The tooltip content should be accessible to keyboard users.\n\n### Keyboard Navigation\n\n- **Focus:** When the trigger element receives focus, the tooltip should appear.\n- **Escape:** Pressing the Escape key should dismiss the tooltip.";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "value";
14
+ ds:summary "The current value of the textarea.";
15
+ ds:propertyType "text";
16
+ ds:optional "true";
17
+ ds:defaultValue "“”"
18
+ ], [
19
+ a ds:Property;
20
+ ds:name "placeholder";
21
+ ds:summary "The placeholder text for the textarea.";
22
+ ds:propertyType "text";
23
+ ds:optional "true";
24
+ ds:defaultValue "“”"
25
+ ], [
26
+ a ds:Property;
27
+ ds:name "disabled";
28
+ ds:summary "Whether the textarea is disabled or not. ";
29
+ ds:propertyType "boolean";
30
+ ds:optional "true";
31
+ ds:defaultValue "false"
32
+ ], [
33
+ a ds:Property;
34
+ ds:name "rows";
35
+ ds:summary "The number of visible text lines.";
36
+ ds:propertyType "object";
37
+ ds:optional "true";
38
+ ds:defaultValue "2"
39
+ ].
@@ -2,27 +2,31 @@
2
2
 
3
3
  ds:apps_launchpad.component.tooltip a ds:Component;
4
4
  ds:name "Tooltip";
5
- ds:summary "The Tooltip is a small pop-up box that appears when a user hovers over an element. It provides additional information about the element, such as its name or a brief description.\nMain Use Cases:\nClarification: Provide more information about an icon or a button.\nHints: Offer hints or instructions for a form field.\nData Visualization: Show the exact value of a data point on a chart.\n";
6
- ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.tooltip\n styles:\n layout.display: contents\n edges:\n - node:\n role: trigger\n edges:\n - node:\n role: trigger element\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: trigger\n - node:\n role: popup\n styles:\n layout.display: block\n position.type: absolute\n appearance.background: color/background/inverted\n appearance.border: border/style/none\n appearance.radius: radius/small\n appearance.shadow: shadow/overlay/default\n typography.color: color/text/inverted\n typography.size: typography/paragraph/extra-small\n edges:\n - node: \n role: content\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"0..1\"\n";
5
+ ds:summary "The **Tooltip** is a small pop-up box that appears when a user hovers over an element. It provides additional information about the element, such as its name or a brief description.\n\n**Main Use Cases:**\n\n- **Clarification:** Provide more information about an icon or a button.\n- **Hints:** Offer hints or instructions for a form field.\n- **Data Visualization:** Show the exact value of a data point on a chart.\n\n";
6
+ ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.tooltip\n styles:\n layout.display: contents\n edges:\n - node:\n role: trigger\n edges:\n - node:\n role: trigger element\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: trigger\n - node:\n role: popup\n styles:\n layout.display: block\n position.type: absolute\n appearance.background: color/background/inverted\n appearance.border: border/style/none\n appearance.radius: radius/small\n appearance.shadow: shadow/overlay/default\n typography.color: color/text/inverted\n typography.size: typography/paragraph/extra-small\n edges:\n - node: \n role: content\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"0..1\"";
7
+ ds:anatomyClassic "The Tooltip is composed of a trigger element and a popup.\n\n1. **Trigger:** The element that the user hovers over to show the tooltip.\n2. **Popup:** The box that appears with the additional information.\n3. **Content:** The text or other content inside the popup.\n\nhttps://www.figma.com/design/Y0cqKbTG4rejU9xm2oh5pR/%F0%9F%92%A0-Vanilla---Core-component-library?node-id=2066-52";
8
+ ds:usage "### 1. General Description\n\nTooltips are used to provide additional information that is not critical to the user’s workflow. They should be used sparingly, as they can be distracting if overused.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Non-essential information:** Use for information that is helpful but not essential.\n- **Space constraints:** Use when you have limited space and cannot display the information directly.\n\n2.2 When Not to Use\n\n- **Critical information:** Do not use for information that is critical to the user’s task.\n- **Long content:** Do not use for long-form content. Keep the content of the tooltip short and concise.";
9
+ ds:guidelines "### Accessibility\n\n- **Focusable elements:** Tooltips should only be used on focusable elements, such as buttons and links.\n- **Keyboard accessible:** The tooltip content should be accessible to keyboard users.\n\n### Keyboard Navigation\n\n- **Focus:** When the trigger element receives focus, the tooltip should appear.\n- **Escape:** Pressing the Escape key should dismiss the tooltip.";
7
10
  ds:tier ds:apps_launchpad;
8
11
  ds:hasProperty [
9
12
  a ds:Property;
10
13
  ds:name "content";
14
+ ds:summary "The content to be displayed in the tooltip.";
11
15
  ds:propertyType "text";
12
16
  ds:optional "false"
13
17
  ], [
14
18
  a ds:Property;
15
- ds:name "Position";
16
- ds:summary "Preferred placement relative to trigger";
19
+ ds:name "position";
20
+ ds:summary "The position of the tooltip relative to the trigger.";
17
21
  ds:propertyType "choice";
18
- ds:optional "false";
19
- ds:defaultValue "Auto";
20
- ds:constraints "Left\nRight\nUp\nDown"
22
+ ds:optional "true";
23
+ ds:constraints "[<position-area>](https://developer.mozilla.org/en-US/docs/Web/CSS/position-area)";
24
+ ds:defaultValue "block-start"
21
25
  ], [
22
26
  a ds:Property;
23
27
  ds:name "delay";
24
28
  ds:summary "The delay in milliseconds before the tooltip appears.";
25
29
  ds:propertyType "number";
26
30
  ds:optional "true";
27
- ds:defaultValue "0"
31
+ ds:defaultValue "350"
28
32
  ].
@@ -2,23 +2,24 @@
2
2
 
3
3
  ds:apps_launchpad.subcomponent.combobox-checkbox_option a ds:Subcomponent;
4
4
  ds:name "Combobox.CheckboxOption";
5
- ds:summary "The Combobox CheckboxOption is a subcomponent of the Combobox that represents an option that can be selected with a checkbox. It is used for multi-select Comboboxes.\nMain Use Cases:\nMulti-select: Allow users to select multiple options from a list.\nFiltering: Used in filtering interfaces where users can select multiple criteria.";
6
- ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.checkbox-option\n styles:\n layout.display: grid\n appearance.background: color/background/default\n spacing.padding: spacing/inline/medium\n edges:\n - node:\n role: label text\n relation:\n cardinality: \"1\"\n slotName: text\n - node:\n role: option icon\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: secondary text\n relation:\n cardinality: \"0..1\"\n slotName: secondaryText\n - node:\n role: trailing text\n relation:\n cardinality: \"0..1\"\n slotName: trailingText\n - node:\n uri: app-launchpad.component.checkbox\n relation:\n cardinality: \"1\"\n slotName: checked\n";
5
+ ds:summary "The **Combobox CheckboxOption** is a subcomponent of the Combobox that represents an option that can be selected with a checkbox. It is used for multi-select Comboboxes.\n\n**Main Use Cases:**\n\n- **Multi-select:** Allow users to select multiple options from a list.\n- **Filtering:** Used in filtering interfaces where users can select multiple criteria.";
6
+ ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.checkbox-option\n styles:\n layout.display: grid\n appearance.background: color/background/default\n spacing.padding: spacing/inline/medium\n edges:\n - node:\n role: label text\n relation:\n cardinality: \"1\"\n slotName: text\n - node:\n role: option icon\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: secondary text\n relation:\n cardinality: \"0..1\"\n slotName: secondaryText\n - node:\n role: trailing text\n relation:\n cardinality: \"0..1\"\n slotName: trailingText\n - node:\n uri: app-launchpad.component.checkbox\n relation:\n cardinality: \"1\"\n slotName: checked";
7
+ ds:anatomyClassic "The Combobox CheckboxOption is composed of a main container, a checkbox, a label, and optional icons and secondary text.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the option.\n2. **Checkbox:** The checkbox that indicates whether the option is selected or not.\n3. **Label Text:** The primary text for the option.\n4. **Option Icon:** An optional icon to visually represent the option.\n5. **Secondary Text:** Optional text to provide additional information about the option.\n6. **Trailing Text:** Optional text that is displayed at the end of the option.";
8
+ ds:usage "### 1. General Description\n\nThe Combobox CheckboxOption is used to represent a selectable option in a multi-select Combobox. It provides a clear visual indication of the selection status of each option.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Multi-select Combobox:** Use as the option type in a multi-select Combobox.\n\n2.2 When Not to Use\n\n- **Single-select Combobox:** Do not use in a single-select Combobox. Use a simple option instead.";
9
+ ds:guidelines "### Content Specification\n\n- **Labels:** Use clear and concise labels for the options.\n- **Secondary text:** Use secondary text to provide additional information, but keep it short.";
7
10
  ds:tier ds:apps_launchpad;
8
11
  ds:hasProperty [
9
12
  a ds:Property;
10
13
  ds:name "value";
11
- ds:summary "The current value of the text input. ";
14
+ ds:summary "The value of the option.";
12
15
  ds:propertyType "text";
13
- ds:optional "true";
14
- ds:defaultValue "“”"
16
+ ds:optional "false"
15
17
  ], [
16
18
  a ds:Property;
17
19
  ds:name "label";
18
- ds:summary "A label for the select element. ";
20
+ ds:summary "The label for the option.";
19
21
  ds:propertyType "text";
20
- ds:optional "true";
21
- ds:defaultValue "“”"
22
+ ds:optional "false"
22
23
  ], [
23
24
  a ds:Property;
24
25
  ds:name "hecke";
@@ -26,4 +27,5 @@ ds:apps_launchpad.subcomponent.combobox-checkbox_option a ds:Subcomponent;
26
27
  ds:propertyType "boolean";
27
28
  ds:optional "true";
28
29
  ds:defaultValue "false"
29
- ].
30
+ ];
31
+ ds:parentComponent ds:apps_launchpad.component.combobox.
@@ -2,12 +2,17 @@
2
2
 
3
3
  ds:apps_launchpad.subcomponent.combobox-footer a ds:Subcomponent;
4
4
  ds:name "Combobox.Footer";
5
- ds:summary "The Combobox Footer is a subcomponent of the Combobox that provides a dedicated area for actions, such as “Apply” or “Cancel” buttons.\nMain Use Cases:\nActions: Provide a clear and consistent location for primary and secondary actions.\nInformation: Display additional information, such as the number of selected items.";
6
- ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.footer\n styles:\n layout.display: flex\n layout.direction: horizontal\n layout.align: center\n layout.justify: flex-end\n spacing.gap: spacing/inline/extra-small\n appearance.border: border/style/divider\n edges:\n - node:\n role: action area\n relation:\n cardinality: \"1..*\"\n slotName: default\n";
5
+ ds:summary "The **Combobox Footer** is a subcomponent of the Combobox that provides a dedicated area for actions, such as “Apply” or “Cancel” buttons.\n\n**Main Use Cases:**\n\n- **Actions:** Provide a clear and consistent location for primary and secondary actions.\n- **Information:** Display additional information, such as the number of selected items.";
6
+ ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.footer\n styles:\n layout.display: flex\n layout.direction: horizontal\n layout.align: center\n layout.justify: flex-end\n spacing.gap: spacing/inline/extra-small\n appearance.border: border/style/divider\n edges:\n - node:\n role: action area\n relation:\n cardinality: \"1..*\"\n slotName: default";
7
+ ds:anatomyClassic "The Combobox Footer is composed of a main container and an action area.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the footer.\n2. **Action Area:** The area where the action buttons are placed.";
8
+ ds:usage "### 1. General Description\n\nThe Combobox Footer is used to provide a consistent location for actions within a Combobox. It is particularly useful when the Combobox has a multi-select functionality.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Multi-select:** Use when the Combobox allows for multiple selections.\n- **Actions:** Use when you need to provide actions, such as “Apply” or “Cancel”.\n\n2.2 When Not to Use\n\n- **Single-select:** Do not use when the Combobox only allows for a single selection.";
9
+ ds:guidelines "### Content Specification\n\n- **Button labels:** Use clear and concise labels for the action buttons.\n- **Order:** Place the primary action on the right and the secondary action on the left.";
7
10
  ds:tier ds:apps_launchpad;
8
11
  ds:hasProperty [
9
12
  a ds:Property;
10
13
  ds:name "children";
14
+ ds:summary "The content of the footer, usually action buttons.";
11
15
  ds:propertyType "node";
12
16
  ds:optional "false"
13
- ].
17
+ ];
18
+ ds:parentComponent ds:apps_launchpad.component.combobox.
@@ -2,19 +2,23 @@
2
2
 
3
3
  ds:apps_launchpad.subcomponent.combobox-group a ds:Subcomponent;
4
4
  ds:name "Combobox.Group";
5
- ds:summary "The Combobox Group is a subcomponent of the Combobox that allows for grouping of options under a common label.\nMain Use Cases:\nCategorization: Group related options together to improve scannability.\nHierarchy: Create a visual hierarchy within the list of options.";
6
- ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.group\n styles:\n layout.display: flex\n layout.direction: vertical\n appearance.border: border/style/none\n edges:\n - node:\n role: group legend\n styles:\n typography.size: typography/paragraph/default/small-caps\n typography.color: color/text/muted\n relation:\n cardinality: \"0..1\"\n slotName: groupTitle\n - node:\n role: option list\n relation:\n cardinality: \"1..*\"\n slotName: default\n";
5
+ ds:summary "The **Combobox Group** is a subcomponent of the Combobox that allows for grouping of options under a common label.\n\n**Main Use Cases:**\n\n- **Categorization:** Group related options together to improve scannability.\n- **Hierarchy:** Create a visual hierarchy within the list of options.";
6
+ ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.group\n styles:\n layout.display: flex\n layout.direction: vertical\n appearance.border: border/style/none\n edges:\n - node:\n role: group legend\n styles:\n typography.size: typography/paragraph/default/small-caps\n typography.color: color/text/muted\n relation:\n cardinality: \"0..1\"\n slotName: groupTitle\n - node:\n role: option list\n relation:\n cardinality: \"1..*\"\n slotName: default";
7
+ ds:anatomyClassic "The Combobox Group is composed of a main container, an optional group legend, and a list of options.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the group.\n2. **Group Legend:** The label for the group of options.\n3. **Option List:** The list of options within the group.";
8
+ ds:usage "### 1. General Description\n\nThe Combobox Group is used to organize a long list of options into smaller, more manageable groups. This can help users to find the option they are looking for more quickly.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Long lists:** Use when you have a long list of options that can be logically grouped.\n- **Categorization:** Use to categorize options and improve scannability.\n\n2.2 When Not to Use\n\n- **Short lists:** Do not use for short lists of options that do not need to be grouped.";
9
+ ds:guidelines "### Content Specification\n\n- **Group labels:** Use short and descriptive labels for the groups.\n- **Order:** Order the groups in a logical way.";
7
10
  ds:tier ds:apps_launchpad;
8
11
  ds:hasProperty [
9
12
  a ds:Property;
10
13
  ds:name "label";
11
- ds:summary "A label for the select element. ";
14
+ ds:summary "The label for the group.";
12
15
  ds:propertyType "text";
13
- ds:optional "true";
14
- ds:defaultValue "“”"
16
+ ds:optional "false"
15
17
  ], [
16
18
  a ds:Property;
17
19
  ds:name "children";
20
+ ds:summary "The list of options within the group.";
18
21
  ds:propertyType "node";
19
22
  ds:optional "false"
20
- ].
23
+ ];
24
+ ds:parentComponent ds:apps_launchpad.component.combobox.
@@ -2,18 +2,23 @@
2
2
 
3
3
  ds:apps_launchpad.subcomponent.combobox-helper a ds:Subcomponent;
4
4
  ds:name "Combobox.Helper";
5
- ds:summary "The Combobox Helper is a subcomponent of the Combobox that provides a dedicated area for displaying helper text or instructions.\nMain Use Cases:\nInstructions: Provide instructions on how to use the Combobox.\nHints: Offer hints or suggestions to the user.\nValidation: Display validation messages.";
6
- ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.helper\n styles:\n layout.display: flex\n layout.direction: horizontal\n layout.align: center\n spacing.gap: spacing/inline/extra-small\n appearance.background: color/background/default\n edges:\n - node:\n role: icon container\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: helper text\n relation:\n cardinality: \"1\"\n slotName: default\n";
5
+ ds:summary "The **Combobox Helper** is a subcomponent of the Combobox that provides a dedicated area for displaying helper text or instructions.\n\n**Main Use Cases:**\n\n- **Instructions:** Provide instructions on how to use the Combobox.\n- **Hints:** Offer hints or suggestions to the user.\n- **Validation:** Display validation messages.";
6
+ ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.helper\n styles:\n layout.display: flex\n layout.direction: horizontal\n layout.align: center\n spacing.gap: spacing/inline/extra-small\n appearance.background: color/background/default\n edges:\n - node:\n role: icon container\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: helper text\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "The Combobox Helper is composed of a main container, an optional icon, and the helper text.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the helper.\n2. **Icon Container:** An optional container for an icon.\n3. **Helper Text:** The text that provides the help or instructions.";
8
+ ds:usage "### 1. General Description\n\nThe Combobox Helper is used to provide additional information or guidance to the user. It can be used to improve the usability of the Combobox, especially for complex use cases.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Complex Comboboxes:** Use when the Combobox has a complex behavior or a large number of options.\n- **Instructions:** Use to provide instructions that are always visible.\n\n2.2 When Not to Use\n\n- **Simple Comboboxes:** Do not use for simple Comboboxes where the usage is obvious.";
9
+ ds:guidelines "### Content Specification\n\n- **Clarity:** Use clear and concise language for the helper text.\n- **Brevity:** Keep the helper text short and to the point.";
7
10
  ds:tier ds:apps_launchpad;
8
11
  ds:hasProperty [
9
12
  a ds:Property;
10
13
  ds:name "children";
14
+ ds:summary "The content of the helper, usually text.";
11
15
  ds:propertyType "node";
12
16
  ds:optional "false"
13
17
  ], [
14
18
  a ds:Property;
15
19
  ds:name "icon";
16
- ds:summary "Describes which icon should be displayed from a preexisting list";
17
- ds:propertyType "text";
18
- ds:optional "false"
19
- ].
20
+ ds:summary "An optional icon to be displayed next to the text.";
21
+ ds:propertyType "node";
22
+ ds:optional "true"
23
+ ];
24
+ ds:parentComponent ds:apps_launchpad.component.combobox.
@@ -2,12 +2,18 @@
2
2
 
3
3
  ds:apps_launchpad.subcomponent.combobox-loading a ds:Subcomponent;
4
4
  ds:name "Combobox.Loading";
5
- ds:summary "The Combobox Loading is a subcomponent of the Combobox that is displayed when the options are being loaded asynchronously.\nMain Use Cases:\nFeedback: Provide feedback to the user that the options are being loaded.\nPrevent interaction: Prevent the user from interacting with the Combobox while the options are loading.";
5
+ ds:summary "The **Combobox Loading** is a subcomponent of the Combobox that is displayed when the options are being loaded asynchronously.\n\n**Main Use Cases:**\n\n- **Feedback:** Provide feedback to the user that the options are being loaded.\n- **Prevent interaction:** Prevent the user from interacting with the Combobox while the options are loading.";
6
6
  ds:anatomyDsl "";
7
+ ds:anatomyClassic "The Combobox Loading is composed of a main container, a spinner, and optional loading text.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the loading indicator.\n2. **Spinner:** A visual indicator that the options are being loaded.\n3. **Loading Text:** Optional text to provide additional information, such as “Loading…”.";
8
+ ds:usage "### 1. General Description\n\nThe Combobox Loading is used to provide a clear and consistent loading state for a Combobox. It is particularly useful when the options are fetched from a remote server.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Asynchronous loading:** Use when the options are loaded asynchronously.\n\n2.2 When Not to Use\n\n- **Synchronous loading:** Do not use when the options are loaded synchronously.";
9
+ ds:guidelines "### Content Specification\n\n- **Loading text:** Use a short and descriptive loading text.\n- **Consistency:** Use a consistent loading indicator across the application.\n\n";
7
10
  ds:tier ds:apps_launchpad;
8
11
  ds:hasProperty [
9
12
  a ds:Property;
10
13
  ds:name "children";
14
+ ds:summary "Optional text to be displayed next to the spinner.";
11
15
  ds:propertyType "node";
12
- ds:optional "false"
13
- ].
16
+ ds:optional "true";
17
+ ds:defaultValue "'Loading...'"
18
+ ];
19
+ ds:parentComponent ds:apps_launchpad.component.combobox.
@@ -2,12 +2,17 @@
2
2
 
3
3
  ds:apps_launchpad.subcomponent.combobox-no_results a ds:Subcomponent;
4
4
  ds:name "Combobox.NoResults";
5
- ds:summary "The Combobox NoResults is a subcomponent of the Combobox that is displayed when there are no matching results for the user’s search query.\nMain Use Cases:\nFeedback: Provide feedback to the user that their search query did not match any results.\nGuidance: Offer guidance on what to do next, such as trying a different search query.";
6
- ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.no-results\n styles:\n layout.display: flex\n typography.size: typography/paragraph/default\n typography.style: italic\n typography.color: color/text/muted\n edges:\n - node:\n role: message\n relation:\n cardinality: \"1\"\n slotName: default\n";
5
+ ds:summary "The **Combobox NoResults** is a subcomponent of the Combobox that is displayed when there are no matching results for the user’s search query.\n\n**Main Use Cases:**\n\n- **Feedback:** Provide feedback to the user that their search query did not match any results.\n- **Guidance:** Offer guidance on what to do next, such as trying a different search query.";
6
+ ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.no-results\n styles:\n layout.display: flex\n typography.size: typography/paragraph/default\n typography.style: italic\n typography.color: color/text/muted\n edges:\n - node:\n role: message\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "The Combobox NoResults is composed of a main container and a message.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the no-results message.\n2. **Message:** The text that is displayed to the user.";
8
+ ds:usage "### 1. General Description\n\nThe Combobox NoResults is used to provide a clear and helpful message to the user when their search query does not yield any results.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Searchable Combobox:** Use in a Combobox that has a search functionality.\n\n2.2 When Not to Use\n\n- **Non-searchable Combobox:** Do not use in a Combobox that does not have a search functionality.";
9
+ ds:guidelines "### Content Specification\n\n- **Helpful message:** Provide a helpful message that explains why there are no results.\n- **Actionable:** If possible, provide an actionable suggestion, such as trying a different search term.";
7
10
  ds:tier ds:apps_launchpad;
8
11
  ds:hasProperty [
9
12
  a ds:Property;
10
13
  ds:name "children";
14
+ ds:summary "The content of the no-results message, usually text.";
11
15
  ds:propertyType "node";
12
16
  ds:optional "false"
13
- ].
17
+ ];
18
+ ds:parentComponent ds:apps_launchpad.component.combobox.
@@ -2,28 +2,30 @@
2
2
 
3
3
  ds:apps_launchpad.subcomponent.combobox-radio_option a ds:Subcomponent;
4
4
  ds:name "Combobox.RadioOption";
5
- ds:summary "The Combobox RadioOption is a subcomponent of the Combobox that represents an option that can be selected with a radio button. It is used for single-select Comboboxes where the selection needs to be visually represented.\nMain Use Cases:\nSingle-select: Allow users to select a single option from a list.\nVisual selection: Provide a clear visual indication of the selected option.";
6
- ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.radio-option\n styles:\n layout.display: grid\n appearance.background: color/background/default\n spacing.padding: spacing/inline/medium\n edges:\n - node:\n role: label text\n relation:\n cardinality: \"1\"\n slotName: text\n - node:\n role: option icon\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: secondary text\n relation:\n cardinality: \"0..1\"\n slotName: secondaryText\n - node:\n role: trailing text\n relation:\n cardinality: \"0..1\"\n slotName: trailingText\n - node:\n uri: app-launchpad.component.radio\n relation:\n cardinality: \"1\"\n slotName: checked\n";
5
+ ds:summary "The **Combobox RadioOption** is a subcomponent of the Combobox that represents an option that can be selected with a radio button. It is used for single-select Comboboxes where the selection needs to be visually represented.\n\n**Main Use Cases:**\n\n- **Single-select:** Allow users to select a single option from a list.\n- **Visual selection:** Provide a clear visual indication of the selected option.";
6
+ ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.radio-option\n styles:\n layout.display: grid\n appearance.background: color/background/default\n spacing.padding: spacing/inline/medium\n edges:\n - node:\n role: label text\n relation:\n cardinality: \"1\"\n slotName: text\n - node:\n role: option icon\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: secondary text\n relation:\n cardinality: \"0..1\"\n slotName: secondaryText\n - node:\n role: trailing text\n relation:\n cardinality: \"0..1\"\n slotName: trailingText\n - node:\n uri: app-launchpad.component.radio\n relation:\n cardinality: \"1\"\n slotName: checked";
7
+ ds:anatomyClassic "The Combobox RadioOption is composed of a main container, a radio button, a label, and optional icons and secondary text.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the option.\n2. **Radio Button:** The radio button that indicates whether the option is selected or not.\n3. **Label Text:** The primary text for the option.\n4. **Option Icon:** An optional icon to visually represent the option.\n5. **Secondary Text:** Optional text to provide additional information about the option.\n6. **Trailing Text:** Optional text that is displayed at the end of the option.";
8
+ ds:usage "### 1. General Description\n\nThe Combobox RadioOption is used to represent a selectable option in a single-select Combobox. It is an alternative to a simple option when a more explicit visual representation of the selection is needed.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Single-select Combobox:** Use as the option type in a single-select Combobox.\n- **Visual clarity:** Use when you want to make the selection more visually apparent.\n\n2.2 When Not to Use\n\n- **Multi-select Combobox:** Do not use in a multi-select Combobox. Use a CheckboxOption instead.";
9
+ ds:guidelines "### Content Specification\n\n- **Labels:** Use clear and concise labels for the options.\n- **Secondary text:** Use secondary text to provide additional information, but keep it short.";
7
10
  ds:tier ds:apps_launchpad;
8
11
  ds:hasProperty [
9
12
  a ds:Property;
10
13
  ds:name "value";
11
- ds:summary "The current value of the text input. ";
14
+ ds:summary "The value of the option.";
12
15
  ds:propertyType "text";
13
- ds:optional "true";
14
- ds:defaultValue "“”"
16
+ ds:optional "false"
15
17
  ], [
16
18
  a ds:Property;
17
19
  ds:name "label";
18
- ds:summary "A label for the select element. ";
20
+ ds:summary "The label for the option.";
19
21
  ds:propertyType "text";
20
- ds:optional "true";
21
- ds:defaultValue "“”"
22
+ ds:optional "false"
22
23
  ], [
23
24
  a ds:Property;
24
25
  ds:name "checked";
25
- ds:summary "Whether the switch is checked or not.";
26
+ ds:summary "Whether the option is selected or not.";
26
27
  ds:propertyType "boolean";
27
28
  ds:optional "true";
28
29
  ds:defaultValue "false"
29
- ].
30
+ ];
31
+ ds:parentComponent ds:apps_launchpad.component.combobox.
@@ -2,21 +2,25 @@
2
2
 
3
3
  ds:apps_launchpad.subcomponent.combobox-search a ds:Subcomponent;
4
4
  ds:name "Combobox.Search";
5
- ds:summary "The Combobox Search is a subcomponent of the Combobox that provides a search input field to filter the options.\nMain Use Cases:\nFiltering: Allow users to filter a long list of options.\nSearch: Provide a quick way to find a specific option.";
6
- ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.search\n styles:\n layout.display: flex\n layout.direction: vertical\n spacing.gap: spacing/inline/small\n edges:\n - node:\n uri: app-launchpad.component.search-box\n relation:\n cardinality: \"1\"\n slotName: default\n";
5
+ ds:summary "The **Combobox Search** is a subcomponent of the Combobox that provides a search input field to filter the options.\n\n**Main Use Cases:**\n\n- **Filtering:** Allow users to filter a long list of options.\n- **Search:** Provide a quick way to find a specific option.";
6
+ ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.combobox.search\n styles:\n layout.display: flex\n layout.direction: vertical\n spacing.gap: spacing/inline/small\n edges:\n - node:\n uri: app-launchpad.component.search-box\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "The Combobox Search is composed of a main container that holds a SearchBox component.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the search input.\n2. **SearchBox:** The input field where the user can type their search query.";
8
+ ds:usage "### 1. General Description\n\nThe Combobox Search is used to provide a search functionality within a Combobox. It is particularly useful when the Combobox has a large number of options.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Long lists:** Use when you have a long list of options that is difficult to navigate.\n- **Filtering:** Use to provide a powerful filtering mechanism.\n\n2.2 When Not to Use\n\n- **Short lists:** Do not use for short lists of options that can be easily scanned.";
9
+ ds:guidelines "### Accessibility\n\n- **Label:** Provide a clear label for the search input.\n- **Focus management:** Ensure that the focus is managed correctly when the search input is used.\n\n";
7
10
  ds:tier ds:apps_launchpad;
8
11
  ds:hasProperty [
9
12
  a ds:Property;
10
13
  ds:name "value";
11
- ds:summary "The current value of the text input. ";
14
+ ds:summary "The current value of the search input.";
12
15
  ds:propertyType "text";
13
16
  ds:optional "true";
14
17
  ds:defaultValue "“”"
15
18
  ], [
16
19
  a ds:Property;
17
20
  ds:name "placeholder";
18
- ds:summary "The placeholder text for the text input.";
21
+ ds:summary "The placeholder text for the search input.";
19
22
  ds:propertyType "text";
20
23
  ds:optional "true";
21
- ds:defaultValue "“”"
22
- ].
24
+ ds:defaultValue "Search..."
25
+ ];
26
+ ds:parentComponent ds:apps_launchpad.component.combobox.
@@ -2,8 +2,11 @@
2
2
 
3
3
  ds:apps_launchpad.subcomponent.description_list-item a ds:Subcomponent;
4
4
  ds:name "DescriptionList.Item";
5
- ds:summary "The DescriptionList Item is a subcomponent of the DescriptionList that represents a key-value pair.\nMain Use Cases:\nMetadata: Display metadata about an object.\nDefinitions: Provide definitions for a list of terms.";
6
- ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.description-list.item\n styles:\n layout.display: flex\n layout.direction: vertical\n spacing.gap: spacing/block/extra-small\n edges:\n - node:\n role: term\n styles:\n typography.size: typography/paragraph/small/strong\n typography.color: color/text/muted\n relation:\n cardinality: \"1\"\n slotName: name\n - node:\n role: separator\n styles:\n appearance.background: color/border/low-contrast\n size.height: 1px\n relation:\n cardinality: \"0..1\"\n - node:\n role: description\n styles:\n typography.size: typography/paragraph/small\n typography.color: color/text/default\n relation:\n cardinality: \"1\"\n slotName: default\n";
5
+ ds:summary "The **DescriptionList Item** is a subcomponent of the DescriptionList that represents a key-value pair.\n\n**Main Use Cases:**\n\n- **Metadata:** Display metadata about an object.\n- **Definitions:** Provide definitions for a list of terms.";
6
+ ds:anatomyDsl "---\nnode:\n uri: app-launchpad.subcomponent.description-list.item\n styles:\n layout.display: flex\n layout.direction: vertical\n spacing.gap: spacing/block/extra-small\n edges:\n - node:\n role: term\n styles:\n typography.size: typography/paragraph/small/strong\n typography.color: color/text/muted\n relation:\n cardinality: \"1\"\n slotName: name\n - node:\n role: separator\n styles:\n appearance.background: color/border/low-contrast\n size.height: 1px\n relation:\n cardinality: \"0..1\"\n - node:\n role: description\n styles:\n typography.size: typography/paragraph/small\n typography.color: color/text/default\n relation:\n cardinality: \"1\"\n slotName: default";
7
+ ds:anatomyClassic "The DescriptionList Item is composed of a main container, a term, an optional separator, and a description.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the item.\n2. **Term:** The key or the term to be described.\n3. **Separator:** An optional separator between the term and the description.\n4. **Description:** The value or the description of the term.";
8
+ ds:usage "### 1. General Description\n\nThe DescriptionList Item is used to display a single item in a DescriptionList. It provides a clear and consistent way to present key-value pairs.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **DescriptionList:** Use as a direct child of a DescriptionList component.\n\n2.2 When Not to Use\n\n- **Standalone:** Do not use as a standalone component.";
9
+ ds:guidelines "### Content Specification\n\n- **Terms:** Use short and descriptive terms.\n- **Descriptions:** Keep the descriptions concise and to the point.";
7
10
  ds:tier ds:apps_launchpad;
8
11
  ds:hasProperty [
9
12
  a ds:Property;
@@ -14,6 +17,8 @@ ds:apps_launchpad.subcomponent.description_list-item a ds:Subcomponent;
14
17
  ], [
15
18
  a ds:Property;
16
19
  ds:name "children";
20
+ ds:summary "The description of the term. ";
17
21
  ds:propertyType "node";
18
22
  ds:optional "false"
19
- ].
23
+ ];
24
+ ds:parentComponent ds:apps_launchpad.component.description_list.
@@ -0,0 +1,38 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.log-line a ds:Subcomponent;
4
+ ds:name "Log.Line";
5
+ ds:summary "Log.Line is a single row within a Log table, combining a line number, an optional timestamp, and free-form message content. It must be used as a direct child of Log. The line number cell supports a custom snippet to enable deep-linking (e.g. wrapping the number in a Link), and each line can be individually permalink-addressable via its `id` attribute and the browser's native URL fragment mechanism.";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.log-line\n styles:\n layout.display: grid\n typography.font: \"typography/code/s\"\n color.text: \"color/text/default\"\n edges:\n - node:\n role: line-number\n styles:\n color.text: \"color/text/muted\"\n layout.position: sticky\n relation:\n cardinality: \"1\"\n slotName: line\n\n - node:\n role: timestamp\n relation:\n cardinality: \"0..1\"\n slotName: timestamp\n\n - node:\n role: content\n relation:\n cardinality: \"1\"\n slotName: children";
7
+ ds:anatomyClassic "https://www.figma.com/design/zLPPWH90vDkSUaTnYC0em0/Launchpad-components--LUI-?node-id=3929-122302&m=dev";
8
+ ds:usage "### When to use\n\nUse Log.Line for each individual entry in a Log. Every visible row in a log output — whether it carries a timestamp or not — is a Log.Line.\n\n### Timestamped log entry\n\nRendering a single event from a stream where the source provides an ISO timestamp, a Unix epoch, or a Date object alongside the message text.\n\n### Anonymous log entry\n\nRendering a line that has no associated timestamp (e.g. blank separators, or synthetic entries injected by the UI), by omitting the `timestamp` prop. The timestamp cell is rendered empty, preserving column alignment with surrounding lines.";
9
+ ds:guidelines "## Row header scope\n\nLog.Line renders its line number as a `<th scope=\"row\">`, establishing a row header relationship so screen readers associate the line number with the timestamp and content cells on the same row.\n\nTimestamp element\n\nWhen a timestamp is present, it is wrapped in a `<time>` element whose `datetime` attribute is set to the ISO 8601 representation of the date, regardless of how the visible text is formatted. This allows assistive technologies and machine parsers to access the precise time value.\n\n## Deep-linking and line highlighting\n\nSet a unique `id` on Log.Line to make it permalink-addressable. When the element’s `id` matches the URL fragment, the `:target` pseudo-class applies a highlight animation: the row background transitions to `color/background/active`, holds for 5 seconds, then fades back to the default. Pair this with a `Link` in the `line` snippet so users can copy the fragment URL directly from the line number.\n\n## Line number snippet\n\nWhen the default numeric line number is insufficient — for example when lines should be individually linkable — pass a snippet to the `line` prop instead of a number. The snippet replaces the entire line number cell content, so it is responsible for rendering the visible number as well as any interactive wrapper.";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "line";
14
+ ds:summary "When a snippet is used (e.g. wrapping the number in a `Link`), it replaces the default numeric rendering entirely.";
15
+ ds:propertyType "number";
16
+ ds:optional "false"
17
+ ], [
18
+ a ds:Property;
19
+ ds:name "timestamp";
20
+ ds:summary "The timestamp of the log entry.";
21
+ ds:propertyType "datetime";
22
+ ds:optional "true";
23
+ ds:constraints "Accepts any value accepted by the `Date` constructor (Date, number, string). If omitted, the timestamp cell is rendered empty."
24
+ ], [
25
+ a ds:Property;
26
+ ds:name "children";
27
+ ds:summary "The message content of the log entry.";
28
+ ds:propertyType "Snippet";
29
+ ds:optional "false";
30
+ ds:constraints "Rendered as pre-formatted text. Wrapping is controlled by the parent `Log`’s `wrapLines` prop."
31
+ ], [
32
+ a ds:Property;
33
+ ds:name "HTML tr attributes";
34
+ ds:summary "Forwarded HTML `<tr>` attributes.";
35
+ ds:optional "true";
36
+ ds:constraints "Setting id enables URL fragment deep-linking and the :target highlight animation."
37
+ ];
38
+ ds:parentComponent ds:apps_launchpad.component.log.
@@ -0,0 +1,18 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.modal-content-body a ds:Subcomponent;
4
+ ds:name "Modal.Content.Body";
5
+ ds:summary "Modal.Content.Body is the main narrative region inside modal content. It carries explanatory text, form fields, or other core task UI.\n\nMain use cases:\n\n- Present decision context and consequences.\n- Host primary interaction controls such as form elements.";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.modal-content_body\n styles:\n typography.style: \"paragraph/default\"\n typography.color: \"color/text/default\"";
7
+ ds:anatomyClassic "";
8
+ ds:usage "## When to use\n\nUse it for the main informational or interactive payload of the modal.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "children";
14
+ ds:summary "Snippet that renders the content";
15
+ ds:propertyType "Snippet";
16
+ ds:optional "true"
17
+ ];
18
+ ds:parentComponent ds:apps_launchpad.subcomponent.modal-content.
@@ -0,0 +1,18 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.modal-content-footer a ds:Subcomponent;
4
+ ds:name "Modal.Content.Footer";
5
+ ds:summary "Modal.Content.Footer is the action row region for modal controls.\n\nMain use cases:\n\n- Place confirm/cancel actions in a predictable location.\n- Preserve consistent action alignment across modal variants.\n- Support variable action count with wrapping behavior.";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.modal-content_footer\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.justify: end\n layout.wrap: true\n spacing.gap: spacing/inline/m\n edges:\n - node:\n role: action items\n relation:\n cardinality: \"1..*\"";
7
+ ds:anatomyClassic "";
8
+ ds:usage "## When to use\n\nUse it as the primary action container for modal outcomes.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "children";
14
+ ds:summary "Snippet that renders the content";
15
+ ds:propertyType "Snippet";
16
+ ds:optional "true"
17
+ ];
18
+ ds:parentComponent ds:apps_launchpad.subcomponent.modal-content.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.modal-content-header-close_button a ds:Subcomponent;
4
+ ds:name "Modal.Content.Header.CloseButton";
5
+ ds:summary "Modal.Content.Header.CloseButton is the specialized dismiss control for modal headers. It is a button-based close action with predefined visual and icon behavior.\n\nMain use cases:\n\n- Provide a standard dismiss affordance in the header.\n- Keep close action visually consistent across modal instances.";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.modal-content_header-close-button\n edges:\n - node:\n role: close icon\n relation:\n cardinality: \"1\"";
7
+ ds:anatomyClassic "";
8
+ ds:usage "## When to use\n\nUse it for explicit modal dismissal from the header region.\n\n## When not to use\n\n### Reusing as generic action button\n\n**Incorrect pattern**: Using close button for non-dismiss actions, e.g., to confirm, delete, or save actions. \n**Remediation strategy**: Use regular action buttons in Footer for non-dismiss semantics.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:parentComponent ds:apps_launchpad.subcomponent.modal-content-header.
@@ -0,0 +1,19 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.modal-content-header a ds:Subcomponent;
4
+ ds:name "Modal.Content.Header";
5
+ ds:summary "Modal.Content.Header is the top section of modal content. It establishes dialog intent and can include a trailing close control.\n\nMain use cases:\n\n- Display concise modal title text.\n- Pair title with a dismiss control.";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.modal-content_header\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: start\n typography.style: \"heading/h4\"\n edges:\n - node:\n role: heading content\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: app-launchpad.subcomponent.modal-content_header-close-button\n relation:\n cardinality: \"0..1\"\n slotName: actions";
7
+ ds:anatomyClassic "";
8
+ ds:usage "Header is used inside Modal.Content to provide title context, optionally with a close button aligned to the end.\n\n## When to use\n\nUse it to present modal purpose immediately.\n\n## When not to use\n\n### Placing primary actions in header\n\n**Incorrect pattern**: Treating header as main action row. \n**Remediation strategy**: Move main actions to Footer and keep header for context and dismiss affordance.\n\n### Long body text in header\n\n**Incorrect pattern**: Using header for paragraphs and explanatory copy. \n**Remediation strategy**: Keep explanatory content in Body and keep header concise.";
9
+ ds:guidelines "## Provide a clear heading\n\nUse short, descriptive title text for quick context establishment.";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "children";
14
+ ds:summary "Header content, usually title text and optional controls.";
15
+ ds:propertyType "Snippet";
16
+ ds:optional "true"
17
+ ];
18
+ ds:hasSubcomponent ds:apps_launchpad.subcomponent.modal-content-header-close_button;
19
+ ds:parentComponent ds:apps_launchpad.subcomponent.modal-content.
@@ -0,0 +1,20 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.modal-content a ds:Subcomponent;
4
+ ds:name "Modal.Content";
5
+ ds:summary "Modal.Content is the structured content container subcomponent for Modal. It organizes dialog content into predictable regions.\n\nMain use cases:\n\n- Build a complete modal body with header, content, and footer actions.\n- Add a close affordance aligned in the header using Modal.Content.Header.CloseButton.\n- Keep action rows consistently right-aligned and wrapped for variable button counts.\n\nUse Modal.Content when modal content needs a canonical structure and reusable semantics. Use custom children directly on Modal when the layout must be intentionally non-standard";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.modal-content\n styles:\n layout.type: stack\n layout.direction: vertical\n spacing.gap: \"spacing/block/m\"\n spacing.internal.block: \"spacing/block/l\"\n spacing.internal.inline: \"spacing/inline/l\"\n appearance.background: \"color/background/default\"\n edges:\n - node:\n uri: app-launchpad.subcomponent.modal-content_header\n relation:\n cardinality: \"1\"\n slotName: header\n\n - node:\n uri: app-launchpad.subcomponent.modal-content_body\n relation:\n cardinality: \"1\"\n slotName: default\n\n - node:\n uri: app-launchpad.subcomponent.modal-content_footer\n relation:\n cardinality: \"0..1\"\n slotName: footer";
7
+ ds:anatomyClassic "";
8
+ ds:usage "Modal.Content is used as the root content block inside a Modal children snippet.\n\n## When to use\n\nUse it to enforce consistent dialog composition, typically for worklfows that require user’s confirmation.\n\n## When not to use\n\n### Freeform non-dialog page layout\n\n**Incorrect pattern**: Using Modal.Content as a generic page section container. \n**Remediation strategy**: Use standard layout containers intended for in-flow page content.\n\n### Action-only dialog with no context\n\n**Incorrect pattern**: Rendering only footer actions without body context. \n**Remediation strategy**: Include Header and Body section that explain impact before actions.";
9
+ ds:guidelines "## **Keep structural order meaningful**\n\nPlace title/context before actions so assistive users get intent first.\n\n\n\n";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "children";
14
+ ds:summary "Content rendered inside the dialog content container.";
15
+ ds:propertyType "Snippet";
16
+ ds:optional "true";
17
+ ds:constraints "Typically Header, Body, Footer composition."
18
+ ];
19
+ ds:hasSubcomponent ds:apps_launchpad.subcomponent.modal-content-footer, ds:apps_launchpad.subcomponent.modal-content-body, ds:apps_launchpad.subcomponent.modal-content-header;
20
+ ds:parentComponent ds:apps_launchpad.component.modal.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.side_panel-content-body a ds:Subcomponent;
4
+ ds:name "SidePanel.Content.Body";
5
+ ds:summary "SidePanel.Content.Body is the main narrative region inside side panel content. It carries explanatory text, form fields, or other core task UI.\n\nMain use cases:\n\n- Present decision context and consequences.\n- Host primary interaction controls such as form elements.";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.side-panel-content_body\n styles:\n typography.style: \"paragraph/default\"\n typography.color: \"color/text/default\"";
7
+ ds:anatomyClassic "";
8
+ ds:usage "## When to use\n\nUse it for the main informational or interactive payload of the side panel.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:parentComponent ds:apps_launchpad.subcomponent.side_panel-content.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.side_panel-content-footer a ds:Subcomponent;
4
+ ds:name "SidePanel.Content.Footer";
5
+ ds:summary "SidePanel.Content.Footer is the action row region for side panel controls.\n\nMain use cases:\n\n- Place confirm/cancel actions in a predictable location.\n- Preserve consistent action alignment across side panel variants.\n- Support variable action count with wrapping behavior.";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.side-panel-content_footer\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.justify: end\n layout.wrap: true\n spacing.gap: spacing/inline/m\n edges:\n - node:\n role: action items\n relation:\n cardinality: \"1..*\"";
7
+ ds:anatomyClassic "";
8
+ ds:usage "## When to use\n\nUse it as the primary action container for side panel outcomes.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:parentComponent ds:apps_launchpad.subcomponent.side_panel-content.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.side_panel-content-header-close_button a ds:Subcomponent;
4
+ ds:name "SidePanel.Content.Header.CloseButton";
5
+ ds:summary "SidePanel.Content.Header.CloseButton is the specialized dismiss control for modal headers. It is a button-based close action with predefined visual and icon behavior.\n\nMain use cases:\n\n- Provide a standard dismiss affordance in the header.\n- Keep close action visually consistent across side panel instances.";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.side-panel-content_header-close-button\n edges:\n - node:\n role: close icon\n relation:\n cardinality: \"1\"";
7
+ ds:anatomyClassic "";
8
+ ds:usage "## When to use\n\nUse it for explicit side panel dismissal from the header region.\n\n## When not to use\n\n### Reusing as generic action button\n\n**Incorrect pattern**: Using close button for non-dismiss actions, e.g., to confirm, delete, or save actions. \n**Remediation strategy**: Use regular action buttons in Footer for non-dismiss semantics.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:parentComponent ds:apps_launchpad.subcomponent.side_panel-content-header.
@@ -0,0 +1,12 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.side_panel-content-header a ds:Subcomponent;
4
+ ds:name "SidePanel.Content.Header";
5
+ ds:summary "SidePanel.Content.Header is the top section of side panel content. It establishes dialog intent and can include a trailing close control.\n\nMain use cases:\n\n- Display concise side panel title text.\n- Pair title with a dismiss control.";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.side-panel-content_header\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: start\n typography.style: \"heading/h4\"\n edges:\n - node:\n role: heading content\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: app-launchpad.subcomponent.side-panel-content_header-close-button\n relation:\n cardinality: \"0..1\"\n slotName: actions";
7
+ ds:anatomyClassic "";
8
+ ds:usage "Header is used inside SidePanel.Content to provide title context, optionally with a close button aligned to the end.\n\n## When to use\n\nUse it to present side panel purpose immediately.\n\n## When not to use\n\n### Placing primary actions in header\n\n**Incorrect pattern**: Treating header as main action row. \n**Remediation strategy**: Move main actions to Footer and keep header for context and dismiss affordance.\n\n### Long body text in header\n\n**Incorrect pattern**: Using header for paragraphs and explanatory copy. \n**Remediation strategy**: Keep explanatory content in Body and keep header concise.";
9
+ ds:guidelines "## Provide a clear heading\n\nUse short, descriptive title text for quick context establishment.";
10
+ ds:tier ds:apps_launchpad;
11
+ ds:hasSubcomponent ds:apps_launchpad.subcomponent.side_panel-content-header-close_button;
12
+ ds:parentComponent ds:apps_launchpad.subcomponent.side_panel-content.