@canonical/design-system 0.1.2 → 0.2.0

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 (451) 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 +115 -0
  348. package/skills/adoption-a2-components/SKILL.md +170 -0
  349. package/skills/adoption-a3-forms/SKILL.md +134 -0
  350. package/skills/anatomy-author/ANATOMY_DSL_SPEC.md +89 -106
  351. package/skills/anatomy-author/SKILL.md +318 -141
  352. package/skills/implement-component/SKILL.md +223 -0
  353. package/skills/specify-component/SKILL.md +195 -0
  354. package/skills/specify-pattern/SKILL.md +157 -0
  355. package/source.json +64 -2
  356. package/specs/README.md +17 -0
  357. package/src/cli.ts +23 -10
  358. package/src/commands/index.ts +1 -0
  359. package/src/commands/sync.tests.ts +430 -0
  360. package/src/commands/sync.ts +418 -0
  361. package/src/commands/transform.tests.ts +190 -5
  362. package/src/commands/transform.ts +163 -67
  363. package/src/constants.ts +1 -0
  364. package/src/providers/CodaProvider.tests.ts +94 -0
  365. package/src/providers/CodaProvider.ts +211 -1
  366. package/src/providers/detectSmartChips.tests.ts +42 -0
  367. package/src/providers/detectSmartChips.ts +60 -0
  368. package/src/scripts/checkDataDeletion.ts +68 -0
  369. package/src/scripts/evaluateDataDeletion.tests.ts +100 -0
  370. package/src/scripts/evaluateDataDeletion.ts +100 -0
  371. package/src/sync/constants.ts +52 -0
  372. package/src/sync/diffRoster.tests.ts +455 -0
  373. package/src/sync/diffRoster.ts +241 -0
  374. package/src/sync/loadTargetSpec.tests.ts +208 -0
  375. package/src/sync/loadTargetSpec.ts +139 -0
  376. package/src/sync/renderPlan.tests.ts +144 -0
  377. package/src/sync/renderPlan.ts +88 -0
  378. package/src/sync/snapshotTable.tests.ts +31 -0
  379. package/src/sync/snapshotTable.ts +20 -0
  380. package/src/sync/toLiveEntries.tests.ts +76 -0
  381. package/src/sync/toLiveEntries.ts +55 -0
  382. package/src/sync/types.ts +101 -0
  383. package/src/transform/collectDataMetrics.tests.ts +108 -0
  384. package/src/transform/collectDataMetrics.ts +114 -0
  385. package/src/transform/deltaGuards.tests.ts +136 -0
  386. package/src/transform/deltaGuards.ts +118 -0
  387. package/src/transform/expectedTables.tests.ts +99 -0
  388. package/src/transform/expectedTables.ts +34 -0
  389. package/src/transform/isValidReferenceUri.tests.ts +45 -0
  390. package/src/transform/isValidReferenceUri.ts +55 -0
  391. package/src/transform/materializeInverses.tests.ts +81 -0
  392. package/src/transform/materializeInverses.ts +78 -0
  393. package/src/transform/transform.tests.ts +22 -0
  394. package/src/transform/transform.ts +31 -3
  395. package/src/transform/transformRow.malformedRefs.tests.ts +127 -0
  396. package/src/transform/transformRow.tests.ts +82 -0
  397. package/src/transform/transformRow.ts +90 -7
  398. package/src/transform/types.ts +11 -0
  399. package/vitest.config.ts +29 -0
  400. package/data/apps/pattern/key_value_summary.ttl +0 -7
  401. package/data/apps_anbox/component/copy_to_clipboard.ttl +0 -7
  402. package/data/apps_launchpad/component/checkbox.ttl +0 -28
  403. package/data/apps_launchpad/component/radio.ttl +0 -34
  404. package/data/apps_launchpad/component/select.ttl +0 -34
  405. package/data/apps_launchpad/component/textarea.ttl +0 -35
  406. package/data/apps_launchpad/component/user_avatar.ttl +0 -25
  407. package/data/apps_lxd/component/copy_to_clipboard.ttl +0 -7
  408. package/data/apps_workplace/component/label-highlight.ttl +0 -7
  409. package/data/apps_workplace.ttl +0 -4
  410. package/data/apps_wpe.ttl +0 -4
  411. package/data/global/component/code.ttl +0 -7
  412. package/data/global/component/label.ttl +0 -14
  413. package/data/global/component/rich_text_editor.ttl +0 -7
  414. package/data/global/component/search_bar.ttl +0 -7
  415. package/data/global/component/theme_switcher.ttl +0 -7
  416. package/data/global/modifier/paper.ttl +0 -6
  417. package/data/global/pattern/dropdown_button.ttl +0 -7
  418. package/data/global/subcomponent/divider.ttl +0 -7
  419. package/data/global_form/component/checkbox_input.ttl +0 -7
  420. package/data/global_form/component/choices_input.ttl +0 -7
  421. package/data/global_form/component/combobox_input.ttl +0 -7
  422. package/data/global_form/component/custom_choices_input.ttl +0 -7
  423. package/data/global_form/component/datepicker_input.ttl +0 -7
  424. package/data/global_form/component/rating_input.ttl +0 -7
  425. package/data/global_form/component/rich_text_input.ttl +0 -7
  426. package/data/global_form/component/segmented_control_input.ttl +0 -7
  427. package/data/global_form/component/slider_input.ttl +0 -7
  428. package/data/global_form/component/switch_input.ttl +0 -7
  429. package/data/global_form/component/text_input.ttl +0 -7
  430. package/data/global_form/component/textarea_input.ttl +0 -7
  431. package/data/global_form/component/wysiwginput.ttl +0 -7
  432. package/data/global_form/pattern/field.ttl +0 -7
  433. package/data/global_form/pattern/form.ttl +0 -7
  434. package/data/global_form/subcomponent/field-description.ttl +0 -7
  435. package/data/global_form/subcomponent/field-label.ttl +0 -7
  436. package/data/global_form.ttl +0 -4
  437. package/data/site/component/blog_card.ttl +0 -7
  438. package/data/site/component/quote.ttl +0 -7
  439. package/data/site/component/rule.ttl +0 -7
  440. package/data/site/component/section.ttl +0 -7
  441. package/data/site/group/blog_cards.ttl +0 -7
  442. package/data/site/layout/blog_page_layout.ttl +0 -7
  443. package/data/site/layout/site_layout.ttl +0 -7
  444. package/data/site/pattern/hero-github.ttl +0 -7
  445. package/data/site/pattern/hero.ttl +0 -7
  446. package/data/site/pattern/info_table.ttl +0 -7
  447. package/data/site/pattern/pricing_section.ttl +0 -7
  448. package/data/site/pattern/pricing_table.ttl +0 -7
  449. package/data/site/pattern/read_more_section.ttl +0 -7
  450. package/data/site/pattern/skip_link.ttl +0 -7
  451. package/skills/component-specifier/SKILL.md +0 -412
@@ -0,0 +1,12 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_launchpad.subcomponent.side_panel-content a ds:Subcomponent;
4
+ ds:name "SidePanel.Content";
5
+ ds:summary "SidePanel.Content is the structured content container subcomponent for SidePanel. It organizes dialog content into predictable regions.\n\nMain use cases:\n\n- Build a complete side panel body with header, content, and footer actions.\n- Add a close affordance aligned in the header using MoSidePaneldal.Content.Header.CloseButton.\n- Keep action rows consistently right-aligned and wrapped for variable button counts.\n\nUse SidePanel.Content when modal content needs a canonical structure and reusable semantics. Use custom children directly on SidePanel when the layout must be intentionally non-standard";
6
+ ds:anatomyDsl "node:\n uri: app-launchpad.subcomponent.side-panel-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.side-panel-content_header\n relation:\n cardinality: \"1\"\n slotName: header\n\n - node:\n uri: app-launchpad.subcomponent.side-panel-content_body\n relation:\n cardinality: \"1\"\n slotName: default\n\n - node:\n uri: app-launchpad.subcomponent.side-panel-content_footer\n relation:\n cardinality: \"0..1\"\n slotName: footer";
7
+ ds:anatomyClassic "";
8
+ ds:usage "SidePanel.Content is used as the root content block inside a SidePanel 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 SidePanel.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:hasSubcomponent ds:apps_launchpad.subcomponent.side_panel-content-body, ds:apps_launchpad.subcomponent.side_panel-content-footer, ds:apps_launchpad.subcomponent.side_panel-content-header;
12
+ ds:parentComponent ds:apps_launchpad.component.drawer.
@@ -0,0 +1,29 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_lxd.component.back_link a ds:Component;
4
+ ds:name "BackLink";
5
+ ds:summary "The **BackLink** component is a navigational breadcrumb element that provides users with contextual back navigation within a multi-step workflow. It displays a clickable back link with a left-pointing chevron icon, followed by the current page or step title, creating a clear visual hierarchy of \"← Previous Context / Current Context\".\n\n\n\n**Primary purpose**\n\nThis component enables intuitive backward navigation while maintaining context awareness, helping users understand their current location within a multi-step process and providing an easy path to return to the previous state.\n\n\n\n**Main use cases**\n\n- **Multi-Step modal navigation**: Navigate between steps in complex modal workflows like volume creation, instance migration, or storage configuration, where users need to move back and forth between different configuration stages\n- **Hierarchical form flows**: Provide navigation within nested form sections, such as permission group management where users drill down into specific configuration areas and need clear paths back to parent forms\n- **Wizard-style workflows**: Enable step-by-step process navigation in creation wizards (custom ISO upload, volume setup) where users may need to revisit previous steps to modify selections\n\n\n\n**Key features**\n\n- **Visual hierarchy**: Uses chevron-left icon and breadcrumb-style text formatting to clearly indicate navigation direction and current context\n- **Contextual labeling**: Displays both the previous context (back link text) and current context (title) for clear orientation\n- **Click handler integration**: Accepts custom onClick functions to handle state changes, modal navigation, or route transitions\n\n";
6
+ ds:anatomyDsl "node:\n uri: core:component:BackLink\n styles:\n # Structural (implicitly invariant)\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n \n # Themeable\n spacing.gap: spacing/small\n typography.size: font/size/heading/4\n \n edges:\n - node:\n uri: core:component:Button\n styles:\n # Structural (implicitly invariant)\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n interaction.cursor: pointer\n \n # Themeable\n appearance.variant: link\n spacing.internal: spacing/dense\n typography.size: font/size/heading/4\n typography.weight: font/weight/normal\n \n edges:\n - node:\n uri: core:element:Icon\n styles:\n # Structural (implicitly invariant)\n layout.display: inline-block\n size.width: hug\n size.height: hug\n \n # Themeable\n appearance.name: chevron-left\n spacing.margin.right: spacing/xsmall\n \n relation:\n cardinality: \"1..1\"\n slotName: icon\n \n - node:\n role: back link text\n styles:\n # Structural (implicitly invariant)\n layout.display: inline\n \n # Themeable\n typography.color: color/text/link\n \n relation:\n cardinality: \"1..1\"\n slotName: text\n \n relation:\n cardinality: \"1..1\"\n slotName: backButton\n \n - node:\n role: separator\n styles:\n # Structural (implicitly invariant)\n layout.display: inline\n \n # Themeable\n typography.color: color/text/muted\n spacing.margin.horizontal: spacing/xsmall\n \n relation:\n cardinality: \"1..1\"\n \n - node:\n role: current title\n styles:\n # Structural (implicitly invariant)\n layout.display: inline\n \n # Themeable\n typography.color: color/text/default\n typography.weight: font/weight/normal\n \n relation:\n cardinality: \"1..1\"\n slotName: title";
7
+ ds:anatomyClassic "\n\n\n\n";
8
+ ds:usage "Use the **BackLink** component when you need to provide backward navigation within contained workflows where users need to understand their current position relative to a previous state and maintain context across state transitions.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_lxd;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "link";
14
+ ds:summary "Text displayed in the clickable back navigation link, typically describing the previous context or step";
15
+ ds:propertyType "text";
16
+ ds:optional "false"
17
+ ], [
18
+ a ds:Property;
19
+ ds:name "title";
20
+ ds:summary "Current context or page title displayed after the back link separator, can be text or complex JSX elements";
21
+ ds:propertyType "node";
22
+ ds:optional "false"
23
+ ], [
24
+ a ds:Property;
25
+ ds:name "onClick";
26
+ ds:summary "Callback function executed when the back link button is clicked, typically handles navigation or state changes";
27
+ ds:propertyType "function";
28
+ ds:optional "false"
29
+ ].
@@ -0,0 +1,54 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_lxd.component.code_snippet_with_copy_button a ds:Component;
4
+ ds:name "CodeSnippetWithCopyButton";
5
+ ds:summary "The **CodeSnippetWithCopyButton** component is a CodeSnippet (from `react-components`) with a `CopyToClipboard` component embedded in the code.\n\n\n\n**Primary purpose**\n\nThis component is used to display code content that users are expected to copy and execute elsewhere. It enhances the standard code snippet presentation by embedding copy functionality directly within the formatted code block.\n\n\n\n**Main use cases**\n\n- **Command line instructions**: terminal commands, shell scripts, or CLI instructions that users need to execute in their local environments\n- **Configuration examples**: configuration file snippets, YAML blocks, or JSON structures that users should copy into their project files\n- **Credentials and tokens**: public keys, access tokens, or other sensitive values that need to be copied securely\n- **Documentation code blocks**: code examples or samples in tutorials or documentation that readers should copy and try\n\n\n\n**When to use:**\n\n- ✅ C**ode or commands** that users are expected to run or implement\n- ✅ **Code examples** in documentation or tutorials where users want to copy and experiment\n- ✅ **Configuration snippets** that users need to integrate into their own files or systems\n\n\n\n**When not to use**\n\n- ❌ **Non-executable text content** that doesn't require code formatting or syntax highlighting\n- ❌ **Editable code examples** where users need to modify the content before copying\n- ❌ **Content that rarely gets copied**, where CodeSnippet would be more efficient";
6
+ ds:anatomyDsl "node:\n uri: core:component:CodeSnippetWithCopyButton\n styles:\n layout.type: stack\n layout.direction: vertical\n layout.display: block\n appearance.background: color/surface/code\n appearance.radius: shape/rounded/small\n appearance.border: border/style/code\n spacing.internal: spacing/none\n \n edges:\n - node:\n uri: core:element:CodeSnippet\n styles:\n layout.type: block\n layout.display: block\n size.width: fill\n appearance.theme: appearance/code/blocks\n typography.family: font/family/mono\n \n relation:\n cardinality: \"1..1\"\n slotName: default\n \n edges:\n - node:\n role: command container\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n layout.justify: space-between\n size.width: fill\n spacing.internal: spacing/small\n appearance.background: color/surface/code/block\n \n relation:\n cardinality: \"1..1\"\n slotName: code\n \n edges:\n - node:\n role: code text display\n styles:\n layout.display: inline-block\n layout.flex: 1\n layout.overflow: hidden\n text.truncate: true\n text.wrap: nowrap\n typography.family: font/family/mono\n typography.size: font/size/code\n typography.color: color/text/code\n appearance.background: transparent\n \n relation:\n cardinality: \"1..1\"\n slotName: content\n \n - node:\n uri: core:component:CopyToClipboard\n styles:\n layout.display: inline-block\n layout.flex: none\n layout.align.self: center\n spacing.margin.left: spacing/small\n \n relation:\n cardinality: \"1..1\"\n slotName: action";
7
+ ds:anatomyClassic "\n\n\n\nIn this modal, we use it twice: for the identity trust token and for the command line. \n";
8
+ ds:usage "### **General description**\n\nThe **CodeSnippetWithCopyButton** component provides a formatted display for executable code and commands with integrated copy functionality. It combines syntax highlighting, proper code formatting, and one-click copying to streamline the process of sharing technical instructions, configuration examples, and executable commands. The component ensures accurate code presentation while eliminating copy-paste errors common with manual text selection.\n\n\n\n**When to use:**\n\n- ✅ C**ode or commands** that users are expected to run or implement\n- ✅ **Code examples** in documentation or tutorials where users want to copy and experiment\n- ✅ **Configuration snippets** that users need to integrate into their own files or systems\n\n\n\n**When not to use**\n\n- ❌ **Non-executable text content** that doesn't require code formatting or syntax highlighting\n- ❌ **Editable code examples** where users need to modify the content before copying\n- ❌ **Content that rarely gets copied**, where CodeSnippet would be more efficient";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_lxd;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "code";
14
+ ds:summary "The source code or command text to display";
15
+ ds:propertyType "text";
16
+ ds:optional "false"
17
+ ], [
18
+ a ds:Property;
19
+ ds:name "className";
20
+ ds:summary "Additional CSS class names to apply to the component wrapper";
21
+ ds:propertyType "text";
22
+ ds:optional "true";
23
+ ds:defaultValue "`undefined`"
24
+ ], [
25
+ a ds:Property;
26
+ ds:name "appearance";
27
+ ds:summary "Visual styling variant that determines the code block's presentation format";
28
+ ds:propertyType "text";
29
+ ds:optional "true";
30
+ ds:defaultValue "`linuxPrompt`";
31
+ ds:constraints "Must be `linuxPrompt` (terminal/command line styling) or `numbered` (code with line numbers) or `url` (code block with border styling) or `windowsPrompt` "
32
+ ], [
33
+ a ds:Property;
34
+ ds:name "title";
35
+ ds:summary "Header text displayed above the code block to provide context or label the code content";
36
+ ds:propertyType "text";
37
+ ds:optional "true";
38
+ ds:defaultValue "`undefined`"
39
+ ], [
40
+ a ds:Property;
41
+ ds:name "tooltipMessage";
42
+ ds:summary "Text to display in the copy button's tooltip on hover";
43
+ ds:propertyType "text";
44
+ ds:optional "true";
45
+ ds:defaultValue "`Copy`"
46
+ ], [
47
+ a ds:Property;
48
+ ds:name "onCopyButtonClick";
49
+ ds:summary "Callback function that executes after the copy button is successfully clicked";
50
+ ds:propertyType "function";
51
+ ds:optional "true";
52
+ ds:defaultValue "`undefined`";
53
+ ds:constraints "Must be a function with signature `() => void` (no parameters, no return value)"
54
+ ].
@@ -2,6 +2,22 @@
2
2
 
3
3
  ds:apps_lxd.component.confirmation_checkbox a ds:Component;
4
4
  ds:name "ConfirmationCheckbox";
5
- ds:summary "Extends the ConfirmationModal with a checkbox in the footer.\nTo control additional aspects of the action about to be confirmed, such as\nthe “force” flag or some action, such as force stop, or force delete.\nrestoring an instance “with state” when using a snapshot of the instance.\nAdding additional friction to the confirmation. Confirming “I have copied the token” when the confirmation shows one-off information.";
6
- ds:anatomyDsl "";
7
- ds:tier ds:apps_lxd.
5
+ ds:summary "The **ConfirmationCheckbox** extends the ConfirmationModal with a checkbox in the footer of the modal. It is used where users must explicitly acknowledge or confirm specific conditions before proceeding with an action. The action is usually dangerous and/or permanent.\n\n\n\n**Main use cases**:\n\n1. **Force action confirmation** - the below actions can be perform with or without `force` flag:\n\n - Force stopping running instances\n - Force deleting active instances\n - Force restarting instances in problematic states\n\n1. **Prerequisite acknowledgment** - Ensures users have completed required steps before continuing:\n\n - users confirm they have copied authentication token in a safe place after creating an identity (in this case, the `Done` button is disabled until the **ConfirmationCheckbox** is checked)\n - users confirm they acknowledge data loss warnings in destructive operations (eg restoring an instance “with state” when using a snapshot of the instance)\n - users confirm they understand irreversible actions (eg permanently deleting an entity)\n\n\n\n**When to use**:\n\n- ✅ When you need an additional safety check before executing potentially harmful actions\n- ✅ When users must acknowledge they understand the consequences of their action\n- ✅ When implementing `force` variants of standard operations\n- ✅ When users need to confirm completion of prerequisite steps\n- ✅ In confirmation modals where state-controlled checkbox behavior is needed";
6
+ ds:anatomyDsl "---\nnode:\n uri: lxd.component.ConfirmationCheckbox\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: start\n layout.float: left\n edges:\n - node:\n role: wrapper container\n styles:\n layout.display: inline\n layout.float: left\n edges:\n - node:\n uri: canonical:component:CheckboxInput\n styles:\n layout.display: inline\n interaction.tabindex: -1\n form.type: checkbox\n form.controlled: true\n relation:\n cardinality: \"1..1\"\n slotName: default\n relation:\n cardinality: \"1..1\"";
7
+ ds:anatomyClassic "\n\n\n\n\n\n\n\n";
8
+ ds:usage "## **General description**\n\nThe **ConfirmationCheckbox** extends the ConfirmationModal with a checkbox in the footer of the modal. It is used where users must explicitly acknowledge or confirm specific conditions before proceeding with an action. The action is usually dangerous and/or permanent.\n\n\n\n## Implementation guidelines\n\n### When to use\n\n Use the **ConfirmationCheckbox** when you need to ensure users explicitly acknowledge risks, consequences, or prerequisites before allowing them to proceed. This component serves as a safety gate in critical workflows where user understanding and intention must be verified.\n\n**When to use**:\n\n- ✅ When you need an additional safety check before executing potentially harmful actions\n- ✅ When users must acknowledge they understand the consequences of their action\n- ✅ When implementing `force` variants of standard operations\n- ✅ When users need to confirm completion of prerequisite steps\n- ✅ In confirmation modals where state-controlled checkbox behavior is needed\n\n\n\n**When not to use**:\n\n- ❌ For simple boolean preferences, settings or standard form inputs: in scenarios where you need basic checkbox functionality, use the standard CheckboxInput component instead.\n- ❌ For low-risk operation: avoid using this component for actions that can be easily undone or have minimal consequences, as it would create unnecessary friction.\n- ❌ When accessibility requirements demand standard keyboard navigation: the component sets `tabIndex={-1}` which removes it from the tab order, making it unsuitable for forms that must support full keyboard accessibility.\n\n\n\n## Implementation notes\n\nThe component requires a React state tuple `[boolean, Dispatch<SetStateAction<boolean>>]` passed as the `confirmed` prop. This controlled pattern ensures the confirmation state is managed by the parent component and can be used to control the availability of subsequent actions.";
9
+ ds:guidelines "### Accessibility\n\n**Non-standard focus behavior:** This component deliberately uses `tabIndex={-1}` to remove the checkbox from standard keyboard navigation flow. This design choice acknowledges that confirmation checkboxes are secondary actions that should be activated through mouse interaction or alternative keyboard shortcuts within their containing modal or dialog.\n\n**Screen reader compatibility**: The underlying CheckboxInput component maintains proper ARIA attributes and semantic markup. Screen readers will correctly announce the checkbox label and state.\n\n### Content specification\n\n- **Concise:** Keep the label concise, as it has to fit in the footer of the ConfirmationModal, usually next to action buttons.";
10
+ ds:tier ds:apps_lxd;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "label";
14
+ ds:summary "Text displays next to the checbox";
15
+ ds:propertyType "text";
16
+ ds:optional "false"
17
+ ], [
18
+ a ds:Property;
19
+ ds:name "confirmed";
20
+ ds:summary "React useState const [isConfirmed, setConfirmed] = confirmed;";
21
+ ds:propertyType "[boolean, Dispatch<SetStateAction<boolean>>]";
22
+ ds:optional "false"
23
+ ].
@@ -0,0 +1,45 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_lxd.component.doc_link a ds:Component;
4
+ ds:name "DocLink";
5
+ ds:summary "The **DocLink** component provides a specialized interface for creating links to external documentation pages with consistent behavior and security practices. It automatically constructs URLs by combining a base documentation URL with specific page paths, ensuring all documentation links follow the same pattern while opening in new tabs to preserve user context.\n\n\n\n**Primary purpose**\n\nThis component serves as a standardized solution for linking to external documentation from within the application interface. It eliminates the need to manually construct full documentation URLs and ensures consistent link behavior, security attributes, and visual indicators across all documentation references in the application.\n\n\n\n**Main use cases**\n\n- **Empty state**: there are no entities created yet, so use **DocLink** to show the user how to create an entity\n- In **HelpLink**: component used mainly in headers to display a title followed by a help icon. The help icon is wrapper into a **DocLink** component.\n- **In the main navigation menu** to link documentation\n- **In input’s help text in forms**\n- **In notifications**\n\n\n\n**When to use**\n\n- ✅ **External documentation references** that need to open in separate tabs to preserve user context\n- ✅ **Consistent documentation URL patterns** where you need to append paths to a base documentation URL\n- ✅ **Visual consistency requirements** for external documentation links across the application\n- ✅ **Dynamic documentation URLs** where the base URL might change based on configuration or environment\n\n\n\n**When not to use**\n\n- ❌ **Internal application navigation** where you need to stay within the same tab or window (use standard router links instead)\n- ❌ **Non-documentation external links** such as social media, external tools, or general websites (use standard anchor elements instead)\n- ❌ **Download links** or file references that don't represent browsable documentation\n- ❌ **Same-page anchor links** or internal section navigation within the current page\n- ❌ **Links that require custom click handling** or complex interaction behavior beyond simple navigation";
6
+ ds:anatomyDsl "node:\n uri: core:component:DocLink\n styles:\n layout.type: inline\n layout.display: inline-block\n interaction.cursor: pointer\n interaction.target: _blank\n link.rel: \"noopener noreferrer\"\n typography.decoration: text/decoration/link\n typography.color: color/text/link\n appearance.focus: focus/ring/link\n interaction.hover.color: color/text/link/hover\n \n edges:\n - node:\n role: link content wrapper\n styles:\n # Structural (implicitly invariant)\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n layout.wrap: nowrap\n \n # Themeable\n spacing.gap: spacing/xs\n \n relation:\n cardinality: \"1..1\"\n slotName: default\n \n edges:\n - node:\n role: link content\n styles:\n # Structural (implicitly invariant)\n layout.display: inline\n layout.flex: 1\n \n # Themeable\n typography.inherit: true\n \n relation:\n cardinality: \"1..1\"\n slotName: children\n \n - node:\n uri: core:element:Icon\n styles:\n # Structural (implicitly invariant)\n layout.display: inline\n layout.flex: none\n size.width: size/icon/small\n size.height: size/icon/small\n \n # Themeable\n appearance.color: color/icon/external\n \n relation:\n cardinality: \"0..1\"\n slotName: icon";
7
+ ds:anatomyClassic "Empty state\n\n\n\n\n\nHelpLink\n\n\n\n\n\nMain navigation bar (Documentation)\n\n\n\n\n\nInput help text\n\n\n\nNotification\n\n";
8
+ ds:usage "### **General description**\n\nThe **DocLink** component provides a standardized interface for creating secure external links to documentation pages. It automatically constructs URLs by combining a configurable base documentation URL with specific page paths, while ensuring all links open in new tabs with proper security attributes. The component offers optional visual indicators for external links and maintains consistent behavior across all documentation references in the application.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_lxd;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "docPath";
14
+ ds:summary "The relative path to append to the base documentation URL obtained from the docs context. This path will be combined with the base URL to create the complete documentation link.";
15
+ ds:propertyType "text";
16
+ ds:optional "false";
17
+ ds:constraints "Must be a valid string representing a URL path (e.g., \"/guides/getting-started\", \"/api/endpoints\")"
18
+ ], [
19
+ a ds:Property;
20
+ ds:name "children";
21
+ ds:summary "The content to display as the clickable link text or elements.";
22
+ ds:propertyType "node";
23
+ ds:optional "false"
24
+ ], [
25
+ a ds:Property;
26
+ ds:name "hasExternalIcon";
27
+ ds:summary "Controls whether to display an external link icon alongside the link content to visually indicate that the link opens in a new tab and leads to external documentation.";
28
+ ds:propertyType "boolean";
29
+ ds:optional "true";
30
+ ds:defaultValue "`false`"
31
+ ], [
32
+ a ds:Property;
33
+ ds:name "className";
34
+ ds:summary "Additional CSS class names to apply to the anchor element";
35
+ ds:propertyType "text";
36
+ ds:optional "true";
37
+ ds:defaultValue "`undefined`"
38
+ ], [
39
+ a ds:Property;
40
+ ds:name "title";
41
+ ds:summary "Tooltip text that appears when users hover over the link";
42
+ ds:propertyType "text";
43
+ ds:optional "true";
44
+ ds:defaultValue "`undefined`"
45
+ ].
@@ -0,0 +1,37 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_lxd.component.meter a ds:Component;
4
+ ds:name "Meter";
5
+ ds:summary "The **Meter** component is a visual progress indicator designed to display percentage-based data with accompanying descriptive text. It renders a horizontal bar that fills proportionally to represent usage, capacity, or completion metrics.\n\n\n\n**Primary purpose**\n\nThis component visualizes numeric data as a percentage-filled bar, making it easy for users to quickly assess levels, usage, or progress at a glance.\n\n**Main use cases**\n\n- **Resource utilization**: Display storage usage, memory consumption, CPU load, or network bandwidth utilization\n- **Dual-Value Metrics**: Present two related percentage values simultaneously (e.g., allocated vs used, or primary vs secondary usage)\n- **Progress Tracking**: Indicate completion status of operations, downloads, or multi-step processes\n\n \n**Key features**\n\n- **Single or dual display**: Can show one primary percentage or two complementary percentages\n- **Contextual text**: Includes descriptive text below the meter for clarity\n- **Hover information**: Optional tooltip support for additional details\n- **Responsive styling**: Automatically adapts to container width while maintaining minimum visibility\n\n";
6
+ ds:anatomyDsl "node:\n uri: core:component:Meter\n styles:\n # Structural (implicitly invariant)\n layout.type: stack\n layout.direction: vertical\n layout.align: start\n \n # Themeable\n spacing.gap: spacing/small\n \n edges:\n - node:\n role: meter bar container\n styles:\n # Structural (implicitly invariant)\n layout.type: flow\n layout.direction: horizontal\n layout.align: start\n size.width: fill\n size.height: hug\n \n # Themeable\n appearance.background: color/background/meter\n appearance.radius: shape/rounded/small\n size.min.height: size/meter/height\n \n edges:\n - node:\n role: primary meter bar\n styles:\n # Structural (implicitly invariant)\n layout.display: block\n size.height: fill\n \n # Dynamic width based on percentage prop\n # Note: actual width calculation happens at runtime\n size.min.width: size/meter/minimum\n \n # Themeable\n appearance.background: color/meter/primary\n appearance.radius: shape/rounded/small\n \n relation:\n cardinality: \"1..1\"\n \n - node:\n role: secondary meter bar\n styles:\n # Structural (implicitly invariant)\n layout.display: block\n size.height: fill\n \n # Themeable\n appearance.background: color/meter/secondary\n appearance.radius: shape/rounded/small\n \n relation:\n cardinality: \"0..1\"\n \n relation:\n cardinality: \"1..1\"\n slotName: meter\n \n - node:\n role: description text\n styles:\n # Structural (implicitly invariant)\n layout.display: block\n \n # Themeable\n typography.size: font/size/small\n typography.color: color/text/muted\n spacing.margin.top: spacing/none\n spacing.margin.bottom: spacing/none\n \n relation:\n cardinality: \"1..1\"\n slotName: description";
7
+ ds:anatomyClassic "In a table:\n\n\n\nIn an overview page:\n\n*Memory has a secondary percentage*\n\n";
8
+ ds:usage "### **General description**\n\nThe Meter component is a visual progress indicator that displays resource utilization, capacity metrics, or completion status through a horizontal bar representation. It transforms numerical percentage data into an immediate visual assessment, making it easy to quickly understand levels, usage patterns, and capacity relationships at a glance.\n\n\n\n### **When to use**\n\nUse the Meter component when you need to visualize percentage-based data where understanding the relationship to a total capacity or maximum value is more important than precise numeric readouts.\n\nExample: instance memory usage showing 45% used memory with an additional 15% cached, displayed as \"2.0GiB of 3.8GiB\" below the visual bars and with “free: 1.7 GiB | used: 482.4 MiB | cached: 1.5 GiB” in hoverText ";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_lxd;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "percentage";
14
+ ds:summary "Primary percentage value to display in the meter bar";
15
+ ds:propertyType "number";
16
+ ds:optional "false";
17
+ ds:constraints "Must be between 0-100"
18
+ ], [
19
+ a ds:Property;
20
+ ds:name "secondaryPercentage";
21
+ ds:summary "Secondary percentage value for dual-metric display, shown as additional bar segment";
22
+ ds:propertyType "number";
23
+ ds:optional "true";
24
+ ds:constraints "Must be between 0-100"
25
+ ], [
26
+ a ds:Property;
27
+ ds:name "text";
28
+ ds:summary "Descriptive text label displayed below the meter to explain what the meter represents or to give precise values (eg 2.4 GiB of 8.6 GiB)";
29
+ ds:propertyType "text";
30
+ ds:optional "false"
31
+ ], [
32
+ a ds:Property;
33
+ ds:name "hoverText";
34
+ ds:summary "Tooltip text that appears on hover to provide additional context or detailed information";
35
+ ds:propertyType "text";
36
+ ds:optional "true"
37
+ ].
@@ -0,0 +1,48 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_lxd.component.output_field a ds:Component;
4
+ ds:name "OutputField";
5
+ ds:summary "The OutputField component is a read-only display element that presents labelled information in a consistent, structured format. Use output fields to display read-only information with a label and optional help text. Output fields are ideal for displaying calculated values or results of user input in a consistent format, making them well suited for form contexts where certain values are derived or system-generated rather than directly editable by the user.";
6
+ ds:anatomyDsl "node:\n uri: core:component:OutputField\n styles:\n # Structural (implicitly invariant)\n layout.type: stack\n layout.direction: vertical\n\n edges:\n - node:\n uri: core:element:OutputFieldLabel\n styles:\n # Themeable\n typography.color: color/text/label\n typography.size: font/size/small\n relation:\n cardinality: \"1..1\"\n slotName: label\n\n - node:\n uri: core:element:OutputFieldValue\n styles:\n # Themeable\n typography.color: color/text/primary\n typography.weight: font/weight/bold\n relation:\n cardinality: \"1..1\"\n slotName: default\n\n - node:\n uri: core:element:OutputFieldHelpText\n styles:\n # Themeable\n typography.color: color/text/muted\n typography.size: font/size/small\n relation:\n cardinality: \"0..1\"\n slotName: help";
7
+ ds:anatomyClassic " ";
8
+ ds:usage "**General description**\n\nThe OutputField component is a read-only display element that presents labelled information in a consistent, structured format. It pairs a descriptive label with a value to clearly communicate calculated results, system-generated data, or information that the user should see but not edit. An optional help text provides additional context where needed.\n\n**When to use**\n\nUse the OutputField component when you need to display information that is the result of user input, a system calculation, or a read-only property within a form or detail view, where visual consistency with surrounding form fields is important.\n\n*Example: displaying the automatically calculated CIDR range after a user configures a network subnet, shown as \"IPv4 address\" with value \"10.0.0.0/24\" alongside editable fields in the same form.*\n\n**When not to use**\n\n- Avoid using the OutputField component when the information being displayed is not directly related to form input or output — use plain text, a description list, or a summary table instead.\n- Do not use it for values the user should be able to edit, as the read-only presentation may cause confusion. \n- Avoid it for long-form content or rich text, as it is designed for concise single-value display.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_lxd;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "Label";
14
+ ds:summary "The label for the output field.";
15
+ ds:propertyType "text";
16
+ ds:optional "false"
17
+ ], [
18
+ a ds:Property;
19
+ ds:name "Id";
20
+ ds:summary "The id of the output element. This is used to associate the label with the output element for form or accessibility purposes.";
21
+ ds:propertyType "text";
22
+ ds:optional "false"
23
+ ], [
24
+ a ds:Property;
25
+ ds:name "Value";
26
+ ds:summary "The value to be displayed in the output field.";
27
+ ds:propertyType "text";
28
+ ds:optional "false"
29
+ ], [
30
+ a ds:Property;
31
+ ds:name "Help";
32
+ ds:summary "Optional help text to provide additional information about the output field.";
33
+ ds:propertyType "ReactNode";
34
+ ds:optional "true"
35
+ ], [
36
+ a ds:Property;
37
+ ds:name "Required";
38
+ ds:summary "Whether the output field is required.";
39
+ ds:propertyType "boolean";
40
+ ds:optional "true"
41
+ ];
42
+ ds:changeLog [
43
+ a ds:ChangeLogEntry;
44
+ ds:timestamp "2026-04-16T00:00:00.000+02:00";
45
+ ds:change "Added to React Components";
46
+ ds:changeType "decision";
47
+ ds:githubLink "https://github.com/canonical/react-components/pull/1346"
48
+ ].
@@ -0,0 +1,74 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_lxd.component.rename_header a ds:Component;
4
+ ds:name "RenameHeader";
5
+ ds:summary "The **RenameHeader** component is a specialized header that combines breadcrumb navigation with inline renaming functionality. It provides users with contextual navigation while enabling direct editing of the current resource name through a toggle-based interface that transforms between display and edit modes.\n\n\n\n**Primary purpose**\n\nThis component serves as a page header that shows navigation hierarchy through breadcrumbs while offering seamless inline editing capabilities for the current resource name, eliminating the need for separate editing pages or modals.";
6
+ ds:anatomyDsl "node:\n uri: core:component:RenameHeader\n styles:\n # Structural (implicitly invariant)\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n layout.justify: space-between\n layout.role: banner\n \n # Themeable\n appearance.background: color/surface/header\n appearance.border.bottom: border/style/header\n spacing.internal: spacing/header/internal\n spacing.external: spacing/header/external\n \n edges:\n - node:\n role: screen reader title\n styles:\n # Structural (implicitly invariant)\n layout.display: none\n accessibility.screen-reader: visible\n \n # Themeable\n typography.size: font/size/heading/1\n typography.weight: font/weight/bold\n \n relation:\n cardinality: \"1..1\"\n \n - node:\n uri: core:element:HeaderTitle\n styles:\n # Structural (implicitly invariant)\n layout.type: stack\n layout.direction: vertical\n layout.flex: 1\n \n edges:\n - node:\n uri: core:component:Breadcrumbs\n styles:\n # Structural (implicitly invariant)\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n \n # Themeable\n spacing.gap: spacing/breadcrumb/gap\n typography.size: font/size/heading/4\n \n edges:\n - node:\n uri: core:element:BreadcrumbItem\n styles:\n # Structural (implicitly invariant)\n layout.display: inline\n interaction.cursor: pointer\n \n # Themeable\n typography.color: color/text/breadcrumb\n typography.weight: font/weight/normal\n appearance.text-decoration: text/decoration/link\n appearance.text-decoration:hover: text/decoration/underline\n \n relation:\n cardinality: \"1..*\"\n slotName: parentItems\n \n - node:\n role: current item container\n styles:\n # Structural (implicitly invariant)\n layout.display: inline\n \n edges:\n - node:\n uri: core:element:EditableText\n styles:\n # Structural (implicitly invariant)\n layout.display: inline\n interaction.cursor: pointer\n typography.overflow: ellipsis\n typography.whitespace: nowrap\n \n # Themeable\n typography.color: color/text/current\n typography.weight: font/weight/semibold\n spacing.internal: spacing/text/clickable\n \n relation:\n cardinality: \"1..1\"\n \n - node:\n uri: core:component:RenameForm\n styles:\n # Structural (implicitly invariant)\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n layout.display: none\n layout.display:editing: flex\n \n # Themeable\n spacing.gap: spacing/form/inline\n \n edges:\n - node:\n uri: core:element:Input\n styles:\n # Structural (implicitly invariant)\n interaction.focus: auto\n interaction.validation: true\n \n # Themeable\n size.width: size/input/name\n appearance.border: border/style/input\n appearance.border:error: border/style/error\n spacing.internal: spacing/input/internal\n \n relation:\n cardinality: \"1..1\"\n slotName: input\n \n - node:\n role: action buttons\n styles:\n # Structural (implicitly invariant)\n layout.type: flow\n layout.direction: horizontal\n \n # Themeable\n spacing.gap: spacing/button/group\n \n edges:\n - node:\n uri: core:element:Button\n styles:\n # Themeable\n appearance.variant: base\n \n relation:\n cardinality: \"1..1\"\n slotName: cancel\n \n - node:\n uri: core:element:ActionButton\n styles:\n # Themeable\n appearance.variant: positive\n interaction.loading: conditional\n \n relation:\n cardinality: \"1..1\"\n slotName: save\n \n relation:\n cardinality: \"1..1\"\n \n relation:\n cardinality: \"0..1\"\n \n relation:\n cardinality: \"1..1\"\n \n relation:\n cardinality: \"1..1\"\n slotName: currentItem\n \n relation:\n cardinality: \"1..1\"\n slotName: navigation\n \n - node:\n uri: core:element:Chip\n styles:\n # Structural (implicitly invariant)\n layout.display: inline-block\n \n # Themeable\n appearance.variant: related\n spacing.external: spacing/chip/related\n \n relation:\n cardinality: \"0..1\"\n slotName: relatedChip\n \n - node:\n role: center controls\n styles:\n # Structural (implicitly invariant)\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n layout.display: none\n layout.display:not-editing: flex\n \n # Themeable\n spacing.gap: spacing/controls/center\n \n relation:\n cardinality: \"0..1\"\n slotName: centerControls\n \n relation:\n cardinality: \"1..1\"\n slotName: title\n \n - node:\n role: side controls\n styles:\n # Structural (implicitly invariant)\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n layout.display: none\n layout.display:loaded-not-editing: flex\n \n # Themeable\n spacing.gap: spacing/controls/side\n \n relation:\n cardinality: \"0..1\"\n slotName: controls";
7
+ ds:anatomyClassic "\n\n\n\non hover when renaming is disabled\n\n";
8
+ ds:usage "### **When to use**\n\n✅ When you need to provide contextual navigation and immediate editing access for named resources in hierarchical interfaces where rename operations are frequent and should feel lightweight.\n\n\n\n### **When not to use**\n\n❌ Headers for pages where the primary content identifier should not be editable or where editing is rare and requires extensive workflows.\n\n❌ Interfaces where users need to rename multiple objects simultaneously or where renaming is part of larger batch operations.\n\n❌ Renaming operations that require additional validation, approval steps, dependency checks, or impact analysis before completion.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_lxd;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "name";
14
+ ds:summary "The current name/title of the resource being displayed and potentially renamed. This appears in the breadcrumb as the final item and serves as the default value when entering edit mode";
15
+ ds:propertyType "text";
16
+ ds:optional "false";
17
+ ds:constraints "Must be a non-empty string. Should follow the application's naming conventions for the specific resource type"
18
+ ], [
19
+ a ds:Property;
20
+ ds:name "parentItems";
21
+ ds:summary "Array of React elements representing the hierarchical breadcrumb path leading to the current resource. Each item typically contains links or text showing the navigation hierarchy";
22
+ ds:propertyType "list of nodes";
23
+ ds:optional "false";
24
+ ds:constraints "Must be a non-empty array. Each element should represent a clickable or non-clickable breadcrumb item"
25
+ ], [
26
+ a ds:Property;
27
+ ds:name "isLoaded";
28
+ ds:summary "Indicates whether the page content has finished loading. Controls the visibility of the controls area to prevent layout shifts during loading states";
29
+ ds:propertyType "boolean";
30
+ ds:optional "false"
31
+ ], [
32
+ a ds:Property;
33
+ ds:name "relatedChip";
34
+ ds:summary "Optional chip or badge element displayed alongside the breadcrumb navigation to show additional context about the current resource (e.g., status, type, or relationship indicators)";
35
+ ds:propertyType "node";
36
+ ds:optional "true";
37
+ ds:constraints "Accepts any ReactNode, typically small informational components like chips or badges"
38
+ ], [
39
+ a ds:Property;
40
+ ds:name "titleClassName";
41
+ ds:summary "Additional CSS class names to apply to the title container for custom styling or layout adjustments";
42
+ ds:propertyType "text";
43
+ ds:optional "true";
44
+ ds:constraints "Must be valid CSS class names"
45
+ ], [
46
+ a ds:Property;
47
+ ds:name "centerControls";
48
+ ds:summary "Content displayed in the center area of the header when not in rename mode, typically used for contextual actions or status information";
49
+ ds:propertyType "node";
50
+ ds:optional "true";
51
+ ds:constraints "Accepts any ReactNode. Hidden during rename operations to avoid layout conflicts"
52
+ ], [
53
+ a ds:Property;
54
+ ds:name "controls";
55
+ ds:summary "Primary action controls displayed on the right side of the header when not in rename mode, typically containing main page actions like edit, delete, or settings buttons";
56
+ ds:propertyType "node";
57
+ ds:optional "true";
58
+ ds:constraints "Accepts any ReactNode. Only displayed when isLoaded is true and not in rename mode"
59
+ ], [
60
+ a ds:Property;
61
+ ds:name "renameDisabledReason";
62
+ ds:summary "When provided, disables the rename functionality and shows this message as a tooltip explanation for why renaming is not available (e.g., \"Insufficient permissions\" or \"Resource is read-only\")";
63
+ ds:propertyType "text";
64
+ ds:optional "true";
65
+ ds:constraints "Should be a clear, user-friendly explanation. When undefined, renaming is enabled";
66
+ ds:defaultValue "undefined (renaming enabled)"
67
+ ], [
68
+ a ds:Property;
69
+ ds:name "formik";
70
+ ds:summary "Formik form management object that handles the rename operation state, validation, and submission. Must conform to the RenameHeaderValues interface with name and isRenaming fields";
71
+ ds:propertyType "object";
72
+ ds:optional "true";
73
+ ds:constraints "Must be FormikProps<RenameHeaderValues> object. Required for rename functionality to work. Values must include: name (string), isRenaming (boolean)"
74
+ ].
@@ -0,0 +1,35 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_lxd.component.tab_links a ds:Component;
4
+ ds:name "TabLinks";
5
+ ds:summary "The **TabLinks** component is a wrapper that extends `canonical/react-components` [Tabs](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.html) by automatically handling URL navigation and browser history management when users switch between tabs.\n\n\n\n**Primary purpose**\n\nThis component creates a set of navigational tabs where each tab corresponds to a different route/URL, allowing users to navigate between related sections or views while maintaining proper browser history and bookmarkable URLs.\n\n\n\n**Main use cases**\n\n1. **Page section navigation**: Organize different views or sections of a page (e.g., \"Overview\", \"Settings\", \"Logs\") where each tab represents a distinct route\n2. **Multi-step workflows**: Guide users through sequential steps or categories where each tab represents a stage in a process";
6
+ ds:anatomyDsl "node:\n uri: core:component:TabLinks\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.role: navigation\n appearance.background: color/surface/navigation\n spacing.external: spacing/medium\n \n edges:\n - node:\n uri: core:component:Tabs\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: start\n layout.wrap: false\n appearance.border.bottom: border/style/tab-navigation\n spacing.gap: spacing/none\n \n edges:\n - node:\n uri: core:element:TabLink\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n layout.justify: center\n interaction.cursor: pointer\n interaction.focusable: true\n \n appearance.background: color/surface/tab/default\n appearance.background:active: color/surface/tab/active\n appearance.background:hover: color/surface/tab/hover\n appearance.background:focus: color/surface/tab/focus\n \n appearance.border.bottom: border/style/none\n appearance.border.bottom:active: border/style/tab/active\n \n spacing.internal: spacing/tab/internal\n typography.color: color/text/tab/default\n typography.color:active: color/text/tab/active\n typography.size: font/size/navigation\n typography.weight: font/weight/medium\n typography.weight:active: font/weight/semibold\n \n interaction.transition.property: background, border, color\n interaction.transition.duration: transition/duration/fast\n interaction.transition.timing: ease\n \n edges:\n - node:\n role: tab label\n styles:\n layout.display: block\n typography.overflow: ellipsis\n typography.whitespace: nowrap\n typography.color: inherit\n typography.size: inherit\n typography.weight: inherit\n \n relation:\n cardinality: \"1..1\"\n slotName: default\n \n relation:\n cardinality: \"1..*\"\n slotName: default\n \n relation:\n cardinality: \"1..1\"\n slotName: default";
7
+ ds:anatomyClassic "\n\n";
8
+ ds:usage "### **When to use**\n\n✅ Navigable sections where each section needs its own URL for direct access.\n\n\n\n### **When not to use**\n\n❌ Switching between content views where URL persistence isn't needed\n\n❌ Navigation to external resources or different applications";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_lxd;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "tabs";
14
+ ds:summary "Array of tab definitions that can be either simple string labels or TabLink objects from canonical/react-components";
15
+ ds:optional "false";
16
+ ds:constraints "Must contain at least one tab. When using strings, they will be automatically converted to URL-friendly slugs. When using TabLink objects, they must follow the canonical/react-components TabLink interface"
17
+ ], [
18
+ a ds:Property;
19
+ ds:name "tabUrl";
20
+ ds:summary "Base URL path for the tab navigation. Individual tabs will extend this URL with their slugified names (except the first tab which uses the base URL)";
21
+ ds:optional "false";
22
+ ds:constraints "Must be a valid URL path. Should not include trailing slash as tab paths are appended automatically";
23
+ ds:propertyType "text"
24
+ ], [
25
+ a ds:Property;
26
+ ds:name "activeTab";
27
+ ds:summary "The slug identifier of the currently active tab. Used to determine which tab should display as selected";
28
+ ds:optional "true";
29
+ ds:constraints "Must match the slugified version of a tab name or the id of a TabLink object. If not provided, the first tab becomes active by default";
30
+ ds:propertyType "text";
31
+ ds:defaultValue "First tab in the tabs array"
32
+ ], [
33
+ a ds:Property;
34
+ ds:optional "false"
35
+ ].
@@ -0,0 +1,39 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_lxd.subcomponent.copy_to_clipboard a ds:Subcomponent;
4
+ ds:name "CopyToClipboard";
5
+ ds:summary "The **CopyToClipboard** component provides a user-friendly way to copy text values to the clipboard with a single click. It combines content display with an integrated copy button, offering immediate visual feedback. It can have a custom tooltip message, if not it will say “Copy” on hover.\n\nThe icon is copy-to-clipboard. After copied, the icon changes to task-outstanding.\n\n\n\n**Primary purpose**\n\nThis component serves as a reusable interface element that displays content alongside a copy button, eliminating the need for users to manually select and copy text. It's designed to improve user experience when working with read-only values that are frequently copied to other applications or contexts.\n\n\n\n**Main use cases**\n\n- **Code snippets**: command lines, configuration snippets, or code samples\n- **Credentials and tokens**: public keys, access tokens, or other sensitive values that need to be copied securely\n- **System identifiers**: ids, names and other system-generated identifiers\n\n\n\n**When to use**\n\n- ✅ **Read-only content** that users frequently need to copy elsewhere\n- ✅ **Long or complex strings** that are difficult to select manually\n- ✅ **System-generated values** like UUIDs, hashes, or auto-generated names\n- ✅ **Technical data** such as IP addresses, ports, or configuration values\n\n\n\n**When not to use**\n\n- ❌ Editable input fields (use standard form inputs instead)\n- ❌ Very short, easily selectable text where the copy button adds unnecessary complexity\n- ❌ Content that rarely gets copied, where the copy button would be unused\n\n \n";
6
+ ds:anatomyDsl "---\nnode:\n uri: global.component.copy-button\n edges:\n - node:\n role: button wrapper\n edges:\n - node:\n uri: global.component.icon\n relation:\n cardinality: \"1\"\n slotName: icon\n - node:\n role: label text\n relation:\n cardinality: \"0..1\"\n slotName: label\n relation:\n cardinality: \"1\"";
7
+ ds:anatomyClassic "In those two examples, the CopyToClipboard button is embedded in a code snippet. It is used to copy the identity trust token.\n\n\n\n\n\n\n\n\n\nOnce clicked, the icon changes: \n";
8
+ ds:usage "### **General Description**\n\nThe **CopyToClipboard** component provides users with a convenient way to copy text content to their clipboard through a dedicated copy button. It combines content display with integrated copy functionality, offering immediate visual and accessibility feedback to confirm successful copy operations. The component automatically handles clipboard API availability and provides graceful fallbacks for unsupported environments.\n\n\n\n**When to use**\n\n- ✅ **Read-only content** that users frequently need to copy elsewhere\n- ✅ **Long or complex strings** that are difficult to select manually\n- ✅ **System-generated values** like UUIDs, hashes, or auto-generated names\n- ✅ **Technical data** such as IP addresses, ports, or configuration values\n\n\n\n**When not to use**\n\n- ❌ Editable input fields (use standard form inputs instead)\n- ❌ Very short, easily selectable text where the copy button adds unnecessary complexity\n- ❌ Content that rarely gets copied, where the copy button would be unused";
9
+ ds:guidelines "### Accessibility\n\nThe component provides dynamic [aria-label](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.html) attributes that communicate the current state to assistive technologies. The label changes from \"Copy to clipboard\" to \"Copied to clipboard\" to provide clear feedback about the action's success.\n\nThe copy button is fully keyboard accessible through the underlying Button component from `@canonical/react-components`, ensuring proper focus indicators and keyboard interaction patterns are maintained.\n\nVisual state changes use meaningful icons ([copy-to-clipboard](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.html) for default state, `task-outstanding` for success) that convey action completion through visual cues, supplemented by the changing aria-label for non-visual users.\n\n\n\n### **Device Specification**\n\nThe component gracefully handles devices or browsers where [navigator.clipboard](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.html) is undefined by falling back to displaying only the children content without the copy functionality.\n\nUses the modern `[navigator.clipboard.writeText()](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.html)` API with proper error handling for browsers that support it, while providing fallback behavior for unsupported environments.\n\n### Content specification\n\n- **Concise:** Long content is automatically truncated using the `u-truncate` CSS class, ensuring the layout remains stable regardless of content length while maintaining the copy button's visibility.";
10
+ ds:tier ds:apps_lxd;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:name "value";
14
+ ds:summary "The text content that will be copied to the clipboard when the copy button is clicked. ";
15
+ ds:propertyType "text";
16
+ ds:optional "false"
17
+ ], [
18
+ a ds:Property;
19
+ ds:name "children";
20
+ ds:summary "The content to display alongside the copy button. This can be text, other components, or any renderable React elements that represent what the user sees before copying.";
21
+ ds:propertyType "node";
22
+ ds:optional "true";
23
+ ds:defaultValue "undefined"
24
+ ], [
25
+ a ds:Property;
26
+ ds:name "tooltipMessage";
27
+ ds:summary "Custom text to display in the tooltip that appears when hovering over the copy button.";
28
+ ds:propertyType "text";
29
+ ds:optional "true";
30
+ ds:defaultValue "\"Copy\""
31
+ ], [
32
+ a ds:Property;
33
+ ds:name "onCopyButtonClick";
34
+ ds:summary "Callback function that executes after a successful copy operation.";
35
+ ds:propertyType "function";
36
+ ds:optional "true";
37
+ ds:defaultValue "undefined";
38
+ ds:constraints "Must be a function with no parameters and no return value `() => void`"
39
+ ].
@@ -2,6 +2,20 @@
2
2
 
3
3
  ds:apps_lxd.view.network_topology a ds:View;
4
4
  ds:name "NetworkTopology";
5
- ds:summary "Visualize entities as chips in a network topology with connecting lines between them. Creates a view like in an actual physical network for virtual network resources.\nEntities can be network interfaces, virtual network definitions, computers, virtual machines, and instances.\nIdeally used in combination with entities shown as rich chips that clearly show entities with their respective icon. On hovering an entity, standardized tooltips display more information about the entity.\n";
5
+ ds:summary "Visualize entities as chips in a network topology with connecting lines between them. Creates a view like in an actual physical network for virtual network resources.\n\nEntities can be network interfaces, virtual network definitions, computers, virtual machines, and instances.\n\nIdeally used in combination with entities shown as rich chips that clearly show entities with their respective icon. On hovering an entity, standardized tooltips display more information about the entity.\n\n";
6
6
  ds:anatomyDsl "";
7
- ds:tier ds:apps_lxd.
7
+ ds:anatomyClassic "";
8
+ ds:usage "**When to use**\n\nTo display entities connected to a virtual or physical network\n\n**When not to use**\n\nTo visualize non-networking-related entity connections.";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_lxd;
11
+ ds:hasProperty [
12
+ a ds:Property;
13
+ ds:optional "false"
14
+ ];
15
+ ds:changeLog [
16
+ a ds:ChangeLogEntry;
17
+ ds:timestamp "2026-02-11T00:00:00.000+01:00";
18
+ ds:change "Adding description";
19
+ ds:changeType "change";
20
+ ds:githubLink "https://github.com/canonical/lxd-ui/blob/main/src/pages/networks/NetworkTopology.tsx"
21
+ ].
@@ -0,0 +1,4 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_notary a ds:Tier;
4
+ ds:name "Apps/Notary".
@@ -4,4 +4,7 @@ ds:apps_portal.component.badge a ds:Component;
4
4
  ds:name "Badge";
5
5
  ds:summary "Mainly used to display a certain value/number in a condensed fashion.";
6
6
  ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
7
10
  ds:tier ds:apps_portal.
@@ -0,0 +1,10 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_portal.component.credit_card_input a ds:Component;
4
+ ds:name "CreditCardInput";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_portal.
@@ -0,0 +1,10 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_portal.component.key_value_pair a ds:Component;
4
+ ds:name "Key value pair";
5
+ ds:summary "Key-value pairs help present a pair of data in a structured way. They are useful for displaying data in an organized manner, making it easier to understand and process information on the screen. Key value pairs consist of properties (keys) each paired with their respective values.";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_portal.
@@ -0,0 +1,10 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_portal.pattern.purchase_summary a ds:Pattern;
4
+ ds:name "Purchase summary";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_portal.
@@ -0,0 +1,10 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_portal.subcomponent.read_only_modal a ds:Subcomponent;
4
+ ds:name "Read only modal";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_portal.
@@ -0,0 +1,18 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_workplaceengineering.component.label-highlight a ds:Component;
4
+ ds:name "Label.Highlight";
5
+ ds:summary "This component is a variant (?) of the [Tag](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-osLY8UcQUp) component. It is a read-only label, meant to stand out when multiple labels are used. \nPossible names: High contrast label chips, highlighted label chip. \n";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "Anatomy is WIP, current look: \n\n \nFigma file reference (WIP as of 19 feb 2026): [link](https://www.figma.com/design/PWvbBHNoPeCIyhWWvJ6uvN/26.04-Promotion-tool---Historical-applications?node-id=12738-8830&t=SUMGjIyfz79K6FOQ-1)";
8
+ ds:usage "Usage example (WIP UI as per 19 feb 2026): \n\n\n\n\n\n";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_workplaceengineering;
11
+ ds:hasSubcomponent ds:apps_workplaceengineering.component.label-highlight;
12
+ ds:changeLog [
13
+ a ds:ChangeLogEntry;
14
+ ds:timestamp "2026-02-19T00:00:00.000+01:00";
15
+ ds:change "initial entry in the database";
16
+ ds:changeType "change"
17
+ ];
18
+ ds:parentComponent ds:apps_workplaceengineering.component.label-highlight.
@@ -0,0 +1,11 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+
3
+ ds:apps_workplaceengineering.component.rule a ds:Component;
4
+ ds:name "Rule";
5
+ ds:summary "";
6
+ ds:anatomyDsl "";
7
+ ds:anatomyClassic "";
8
+ ds:usage "";
9
+ ds:guidelines "";
10
+ ds:tier ds:apps_workplaceengineering;
11
+ ds:documentationStage ds:tag.needstriage.