@canonical/design-system 0.2.5 → 0.43.0-experimental.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 (550) hide show
  1. package/LICENSE +166 -0
  2. package/README.md +255 -14
  3. package/data/apps/component/file_tree.ttl +2 -0
  4. package/data/apps/component/key_value_pair.ttl +2 -0
  5. package/data/apps/component/navigation.ttl +2 -0
  6. package/data/apps/component/notification.ttl +2 -0
  7. package/data/apps/component/side_navigation.ttl +2 -0
  8. package/data/apps/component/skeleton_loading.ttl +2 -0
  9. package/data/apps/component/status_bar.ttl +2 -0
  10. package/data/apps/component/toolbar.ttl +2 -0
  11. package/data/apps/group/key_value_pairs.ttl +2 -0
  12. package/data/apps/group/notifications.ttl +2 -0
  13. package/data/apps/layout/application_layout.ttl +2 -0
  14. package/data/apps/layout/content_layout.ttl +2 -0
  15. package/data/apps/layout/empty_layout.ttl +2 -0
  16. package/data/apps/layout/empty_state.ttl +13 -0
  17. package/data/apps/layout/list_page_layout.ttl +2 -0
  18. package/data/apps/layout/settings_page_layout.ttl +2 -0
  19. package/data/apps/layout/view_layout.ttl +2 -0
  20. package/data/apps/pattern/action_bar.ttl +4 -2
  21. package/data/apps/pattern/code_diff.ttl +2 -0
  22. package/data/apps/pattern/{data_table.ttl → datatable.ttl} +27 -25
  23. package/data/apps/pattern/destructive_modal.ttl +2 -0
  24. package/data/apps/pattern/drawer.ttl +2 -0
  25. package/data/apps/pattern/keyboard_shortcuts.ttl +2 -0
  26. package/data/apps/pattern/notification_center.ttl +4 -2
  27. package/data/apps/pattern/side_panel.ttl +39 -4
  28. package/data/apps/pattern/sidepanel_stacked.ttl +2 -0
  29. package/data/apps/subcomponent/data_table-action_bar.ttl +7 -5
  30. package/data/apps/subcomponent/data_table-body_cell.ttl +27 -25
  31. package/data/apps/subcomponent/data_table-group_header_row.ttl +10 -8
  32. package/data/apps/subcomponent/data_table-header_cell.ttl +13 -11
  33. package/data/apps/subcomponent/data_table-pagination_bar.ttl +11 -9
  34. package/data/apps/subcomponent/data_table-persistent_selection.ttl +12 -10
  35. package/data/apps/subcomponent/data_table-settings_menu.ttl +17 -15
  36. package/data/apps/subcomponent/drawer-content.ttl +2 -0
  37. package/data/apps/subcomponent/drawer-footer.ttl +2 -0
  38. package/data/apps/subcomponent/drawer-header.ttl +2 -0
  39. package/data/apps/subcomponent/file_tree-node.ttl +2 -0
  40. package/data/apps/subcomponent/log.ttl +2 -0
  41. package/data/apps/subcomponent/side_panel-content.ttl +3 -1
  42. package/data/apps/subcomponent/side_panel-footer.ttl +3 -1
  43. package/data/apps/subcomponent/side_panel-header.ttl +3 -1
  44. package/data/apps.ttl +2 -0
  45. package/data/apps_anbox/component/theme_switcher.ttl +2 -0
  46. package/data/apps_anbox/pattern/side_menu.ttl +2 -0
  47. package/data/apps_anbox.ttl +2 -0
  48. package/data/apps_debcrafters/component/deb_package_card.ttl +12 -0
  49. package/data/apps_debcrafters/component/example.ttl +2 -0
  50. package/data/apps_debcrafters/component/my_fancy_component.ttl +2 -0
  51. package/data/apps_debcrafters.ttl +2 -0
  52. package/data/apps_juju/pattern/single_select_multi_layered.ttl +2 -0
  53. package/data/apps_juju.ttl +2 -0
  54. package/data/apps_landscape/component/checkbox_group.ttl +110 -0
  55. package/data/apps_landscape/component/code_editor.ttl +134 -0
  56. package/data/apps_landscape/component/cron_schedule.ttl +40 -0
  57. package/data/apps_landscape/component/expandable_radio_group.ttl +106 -0
  58. package/data/apps_landscape/component/expandable_truncation.ttl +50 -0
  59. package/data/apps_landscape/component/form_section.ttl +33 -0
  60. package/data/apps_landscape/component/gpg_key_field.ttl +86 -0
  61. package/data/apps_landscape/component/grouped_select.ttl +137 -0
  62. package/data/apps_landscape/component/loading_state.ttl +30 -0
  63. package/data/apps_landscape/component/managed_file_input.ttl +75 -0
  64. package/data/apps_landscape/component/multi_select_field.ttl +323 -0
  65. package/data/apps_landscape/component/pass_rate_filter.ttl +13 -0
  66. package/data/apps_landscape/component/password_constraints.ttl +3 -0
  67. package/data/apps_landscape/component/progress_bar.ttl +100 -0
  68. package/data/apps_landscape/component/read_only_field.ttl +46 -0
  69. package/data/apps_landscape/component/search_help_popup.ttl +51 -0
  70. package/data/apps_landscape/component/search_query_editor.ttl +149 -0
  71. package/data/apps_landscape/component/tag_multi_select.ttl +52 -0
  72. package/data/apps_landscape/pattern/content_blocks.ttl +70 -0
  73. package/data/apps_landscape/pattern/dashboard_page_composition.ttl +110 -0
  74. package/data/apps_landscape/pattern/delivery_scheduling.ttl +24 -0
  75. package/data/apps_landscape/pattern/form_field_help.ttl +67 -0
  76. package/data/apps_landscape/pattern/header_search_controls.ttl +106 -0
  77. package/data/apps_landscape/pattern/ignorable_notification.ttl +60 -0
  78. package/data/apps_landscape/pattern/information_grid.ttl +93 -0
  79. package/data/apps_landscape/pattern/instance_association.ttl +29 -0
  80. package/data/apps_landscape/pattern/process_flow.ttl +52 -0
  81. package/data/apps_landscape/pattern/progressively_expandable_table.ttl +158 -0
  82. package/data/apps_landscape/pattern/recurring_schedule.ttl +21 -0
  83. package/data/apps_landscape/pattern/responsive_action_group.ttl +77 -0
  84. package/data/apps_landscape/pattern/responsive_header_actions.ttl +83 -0
  85. package/data/apps_landscape/pattern/responsive_table_filters.ttl +61 -0
  86. package/data/apps_landscape/pattern/side_panel_form_actions.ttl +126 -0
  87. package/data/apps_landscape/pattern/sortable_list.ttl +50 -0
  88. package/data/apps_landscape/pattern/table_filter.ttl +201 -0
  89. package/data/apps_landscape/pattern/table_filter_chips.ttl +174 -0
  90. package/data/apps_landscape/pattern/table_pagination.ttl +220 -0
  91. package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +88 -0
  92. package/data/apps_landscape/subcomponent/bold_substring.ttl +30 -0
  93. package/data/apps_landscape/subcomponent/inline_cell_input.ttl +36 -0
  94. package/data/apps_landscape/subcomponent/label_with_description.ttl +46 -0
  95. package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +61 -0
  96. package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +36 -0
  97. package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +56 -0
  98. package/data/apps_landscape.ttl +2 -0
  99. package/data/apps_launchpad/component/accordion.ttl +12 -0
  100. package/data/apps_launchpad/component/avatar.ttl +4 -2
  101. package/data/apps_launchpad/component/badge.ttl +4 -2
  102. package/data/apps_launchpad/component/breadcrumbs.ttl +2 -0
  103. package/data/apps_launchpad/component/button.ttl +4 -2
  104. package/data/apps_launchpad/component/checkbox_input.ttl +6 -4
  105. package/data/apps_launchpad/component/chip.ttl +2 -0
  106. package/data/apps_launchpad/component/combobox.ttl +4 -2
  107. package/data/apps_launchpad/component/description_list.ttl +2 -0
  108. package/data/apps_launchpad/component/drawer.ttl +6 -4
  109. package/data/apps_launchpad/component/link.ttl +12 -0
  110. package/data/apps_launchpad/component/log.ttl +2 -0
  111. package/data/apps_launchpad/component/markdown_editor.ttl +12 -0
  112. package/data/apps_launchpad/component/modal.ttl +7 -5
  113. package/data/apps_launchpad/component/pagination.ttl +12 -0
  114. package/data/apps_launchpad/component/popover.ttl +12 -0
  115. package/data/apps_launchpad/component/radio_input.ttl +6 -4
  116. package/data/apps_launchpad/component/relative_timestamp.ttl +12 -0
  117. package/data/apps_launchpad/component/select_input.ttl +2 -0
  118. package/data/apps_launchpad/component/spinner.ttl +12 -0
  119. package/data/apps_launchpad/component/switch.ttl +6 -4
  120. package/data/apps_launchpad/component/table.ttl +12 -0
  121. package/data/apps_launchpad/component/text_input.ttl +9 -7
  122. package/data/apps_launchpad/component/textarea_input.ttl +10 -8
  123. package/data/apps_launchpad/component/timestamp.ttl +12 -0
  124. package/data/apps_launchpad/component/tooltip.ttl +4 -2
  125. package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +2 -0
  126. package/data/apps_launchpad/subcomponent/combobox-footer.ttl +2 -0
  127. package/data/apps_launchpad/subcomponent/combobox-group.ttl +2 -0
  128. package/data/apps_launchpad/subcomponent/combobox-helper.ttl +2 -0
  129. package/data/apps_launchpad/subcomponent/combobox-loading.ttl +4 -2
  130. package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +2 -0
  131. package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +2 -0
  132. package/data/apps_launchpad/subcomponent/combobox-search.ttl +6 -4
  133. package/data/apps_launchpad/subcomponent/description_list-item.ttl +2 -0
  134. package/data/apps_launchpad/subcomponent/log-line.ttl +2 -0
  135. package/data/apps_launchpad/subcomponent/modal-content-body.ttl +2 -0
  136. package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +2 -0
  137. package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +2 -0
  138. package/data/apps_launchpad/subcomponent/modal-content-header.ttl +2 -0
  139. package/data/apps_launchpad/subcomponent/modal-content.ttl +4 -2
  140. package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +2 -0
  141. package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +2 -0
  142. package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +2 -0
  143. package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +2 -0
  144. package/data/apps_launchpad/subcomponent/side_panel-content.ttl +2 -0
  145. package/data/apps_launchpad.ttl +2 -0
  146. package/data/apps_lxd/component/back_link.ttl +2 -0
  147. package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +2 -0
  148. package/data/apps_lxd/component/confirmation_checkbox.ttl +2 -0
  149. package/data/apps_lxd/component/doc_link.ttl +4 -2
  150. package/data/apps_lxd/component/meter.ttl +6 -4
  151. package/data/apps_lxd/component/output_field.ttl +2 -0
  152. package/data/apps_lxd/component/rename_header.ttl +17 -15
  153. package/data/apps_lxd/component/tab_links.ttl +6 -4
  154. package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +2 -0
  155. package/data/apps_lxd/view/network_topology.ttl +2 -0
  156. package/data/apps_lxd.ttl +2 -0
  157. package/data/apps_notary.ttl +2 -0
  158. package/data/apps_portal/component/badge.ttl +2 -0
  159. package/data/apps_portal/component/credit_card_input.ttl +2 -0
  160. package/data/apps_portal/component/key_value_pair.ttl +2 -0
  161. package/data/apps_portal/layout/details_view.ttl +18 -0
  162. package/data/apps_portal/pattern/purchase_summary.ttl +2 -0
  163. package/data/apps_portal/subcomponent/read_only_modal.ttl +2 -0
  164. package/data/apps_portal.ttl +2 -0
  165. package/data/apps_support/component/data_spotlight.ttl +12 -0
  166. package/data/apps_support/subcomponent/ai_prompt_input.ttl +12 -0
  167. package/data/apps_support.ttl +6 -0
  168. package/data/apps_workplaceengineering/component/complex_multi_select.ttl +13 -0
  169. package/data/apps_workplaceengineering/component/label-highlight.ttl +3 -1
  170. package/data/apps_workplaceengineering/component/rule.ttl +2 -0
  171. package/data/apps_workplaceengineering/component/skip_link.ttl +2 -0
  172. package/data/apps_workplaceengineering/component/theme_switcher.ttl +2 -0
  173. package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +2 -0
  174. package/data/apps_workplaceengineering/pattern/confirmation_modal.ttl +12 -0
  175. package/data/apps_workplaceengineering/pattern/event_timeline.ttl +2 -0
  176. package/data/apps_workplaceengineering/pattern/group_card.ttl +2 -0
  177. package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +2 -0
  178. package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +12 -0
  179. package/data/apps_workplaceengineering.ttl +2 -0
  180. package/data/concept/Foundations-Baseline.ttl +11 -0
  181. package/data/concept/Foundations-Density--the-form-channel.ttl +11 -0
  182. package/data/concept/Foundations-Grid--Layout.ttl +11 -0
  183. package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +11 -0
  184. package/data/concept/Foundations-Spacing.ttl +11 -0
  185. package/data/concept/Foundations-Surfaces.ttl +11 -0
  186. package/data/concept/Foundations-Typography.ttl +11 -0
  187. package/data/concept/{How-to-differentiate-components-variantsinheritance.ttl → How-to-differentiate-types-of-UI-blocks-.ttl} +5 -3
  188. package/data/concept/How-to-indicate-required-fields-in-forms.ttl +11 -0
  189. package/data/concept/How-to-support-modifiers-in-a-component.ttl +11 -0
  190. package/data/concept/Intentional-friction.ttl +11 -0
  191. package/data/concept/Question-mark-vs-information-icon.ttl +3 -1
  192. package/data/concept/Understanding-the-modifier-contract.ttl +11 -0
  193. package/data/concepttype/Explanation.ttl +2 -0
  194. package/data/concepttype/How-to-guide.ttl +2 -0
  195. package/data/concepttype/Reference.ttl +2 -0
  196. package/data/concepttype/Tutorial.ttl +2 -0
  197. package/data/documentation/layout/documentation_layout.ttl +2 -0
  198. package/data/documentation/pattern/library_side_navigation.ttl +3 -1
  199. package/data/documentation.ttl +2 -0
  200. package/data/global/component/accordion.ttl +180 -1
  201. package/data/global/component/announcement.ttl +13 -2
  202. package/data/global/component/avatar.ttl +2 -0
  203. package/data/global/component/badge.ttl +4 -2
  204. package/data/global/component/breadcrumbs.ttl +77 -2
  205. package/data/global/component/button.ttl +197 -2
  206. package/data/global/component/button_link.ttl +2 -0
  207. package/data/global/component/card.ttl +150 -3
  208. package/data/global/component/checkbox_field.ttl +269 -2
  209. package/data/global/component/chip.ttl +3 -1
  210. package/data/global/component/choices_field.ttl +373 -2
  211. package/data/global/component/code_snippet-content.ttl +3 -1
  212. package/data/global/component/code_snippet-header.ttl +21 -2
  213. package/data/global/component/code_snippet.ttl +28 -1
  214. package/data/global/component/color_field.ttl +2 -0
  215. package/data/global/component/combobox_field.ttl +470 -3
  216. package/data/global/component/contextual_menu.ttl +2 -0
  217. package/data/global/component/data_tooltip.ttl +149 -2
  218. package/data/global/component/date_field.ttl +158 -3
  219. package/data/global/component/date_time_field.ttl +157 -2
  220. package/data/global/component/drag_and_drop_list.ttl +13 -0
  221. package/data/global/component/dropdown_button.ttl +2 -0
  222. package/data/global/component/file_upload_field.ttl +230 -3
  223. package/data/global/component/heading.ttl +62 -3
  224. package/data/global/component/hidden_field.ttl +3 -1
  225. package/data/global/component/icon.ttl +3 -1
  226. package/data/global/component/icon_in_container.ttl +2 -0
  227. package/data/global/component/inline_code.ttl +2 -0
  228. package/data/global/component/keyboard_key.ttl +77 -2
  229. package/data/global/component/markdown_field.ttl +2 -0
  230. package/data/global/component/mode_switcher.ttl +2 -0
  231. package/data/global/component/month_field.ttl +2 -0
  232. package/data/global/component/notification_inline.ttl +2 -0
  233. package/data/global/component/notification_toast.ttl +2 -0
  234. package/data/global/component/number_field.ttl +2 -0
  235. package/data/global/component/pagination.ttl +2 -0
  236. package/data/global/component/password_field.ttl +189 -2
  237. package/data/global/component/phone_field.ttl +173 -2
  238. package/data/global/component/popover.ttl +2 -0
  239. package/data/global/component/range_field.ttl +165 -2
  240. package/data/global/component/rating_field.ttl +2 -0
  241. package/data/global/component/relative_timestamp.ttl +2 -0
  242. package/data/global/component/rich_choices_field.ttl +205 -2
  243. package/data/global/component/rich_text_field.ttl +2 -0
  244. package/data/global/component/search_field.ttl +2 -0
  245. package/data/global/component/segmented_control_field.ttl +2 -0
  246. package/data/global/component/select_field.ttl +158 -3
  247. package/data/global/component/switch_field.ttl +190 -3
  248. package/data/global/component/table.ttl +4 -2
  249. package/data/global/component/tabs.ttl +13 -2
  250. package/data/global/component/tag.ttl +13 -2
  251. package/data/global/component/text_field.ttl +173 -2
  252. package/data/global/component/textarea_field.ttl +157 -2
  253. package/data/global/component/tile.ttl +108 -1
  254. package/data/global/component/time_field.ttl +157 -2
  255. package/data/global/component/timestamp.ttl +2 -0
  256. package/data/global/component/tooltip.ttl +166 -43
  257. package/data/global/component/tooltip_wrapper.ttl +61 -2
  258. package/data/global/group/buttons.ttl +2 -0
  259. package/data/global/group/cards.ttl +2 -0
  260. package/data/global/group/code_snippets.ttl +2 -0
  261. package/data/global/group/keyboard_keys.ttl +101 -2
  262. package/data/global/group/tiles.ttl +2 -0
  263. package/data/global/layout/error_layout.ttl +2 -0
  264. package/data/global/layout/form_layout.ttl +2 -0
  265. package/data/global/layout/identity_page_form.ttl +2 -0
  266. package/data/global/modifier/alpha.ttl +2 -0
  267. package/data/global/modifier/beta.ttl +2 -0
  268. package/data/global/modifier/caution.ttl +2 -0
  269. package/data/global/modifier/comfortable.ttl +2 -0
  270. package/data/global/modifier/completed.ttl +2 -0
  271. package/data/global/modifier/constructive.ttl +2 -0
  272. package/data/global/modifier/dark.ttl +2 -0
  273. package/data/global/modifier/dense.ttl +2 -0
  274. package/data/global/modifier/destructive.ttl +2 -0
  275. package/data/global/modifier/editable.ttl +2 -0
  276. package/data/global/modifier/elevated.ttl +2 -0
  277. package/data/global/modifier/error.ttl +2 -0
  278. package/data/global/modifier/experimental.ttl +2 -0
  279. package/data/global/modifier/failed.ttl +2 -0
  280. package/data/global/modifier/focused.ttl +2 -0
  281. package/data/global/modifier/highlighted.ttl +2 -0
  282. package/data/global/modifier/in_progress.ttl +2 -0
  283. package/data/global/modifier/information.ttl +2 -0
  284. package/data/global/modifier/light.ttl +2 -0
  285. package/data/global/modifier/loading.ttl +2 -0
  286. package/data/global/modifier/modal.ttl +2 -0
  287. package/data/global/modifier/muted.ttl +2 -0
  288. package/data/global/modifier/planned.ttl +2 -0
  289. package/data/global/modifier/primary.ttl +2 -0
  290. package/data/global/modifier/secondary.ttl +2 -0
  291. package/data/global/modifier/stable.ttl +2 -0
  292. package/data/global/modifier/success.ttl +2 -0
  293. package/data/global/modifier/surface1.ttl +2 -0
  294. package/data/global/modifier/surface2.ttl +2 -0
  295. package/data/global/modifier/surface3.ttl +2 -0
  296. package/data/global/modifier/tertiary.ttl +2 -0
  297. package/data/global/modifier/warning.ttl +2 -0
  298. package/data/global/modifier/wireframe.ttl +2 -0
  299. package/data/global/modifier_family/_color_luminosity.ttl +2 -0
  300. package/data/global/modifier_family/_emphasis.ttl +2 -0
  301. package/data/global/modifier_family/_other.ttl +2 -0
  302. package/data/global/modifier_family/anticipation.ttl +2 -0
  303. package/data/global/modifier_family/criticality.ttl +2 -0
  304. package/data/global/modifier_family/density.ttl +2 -0
  305. package/data/global/modifier_family/importance.ttl +2 -0
  306. package/data/global/modifier_family/lifecycle.ttl +2 -0
  307. package/data/global/modifier_family/mode.ttl +2 -0
  308. package/data/global/modifier_family/release.ttl +2 -0
  309. package/data/global/modifier_family/surface.ttl +2 -0
  310. package/data/global/pattern/description_list.ttl +2 -0
  311. package/data/global/pattern/field.ttl +2 -0
  312. package/data/global/pattern/form.ttl +2 -0
  313. package/data/global/pattern/form_login.ttl +2 -0
  314. package/data/global/pattern/info_table.ttl +2 -0
  315. package/data/global/pattern/modal.ttl +431 -4
  316. package/data/global/pattern/navigation.ttl +2 -0
  317. package/data/global/pattern/stepper.ttl +2 -0
  318. package/data/global/pattern/table_of_contents.ttl +85 -2
  319. package/data/global/pattern/timeline.ttl +48 -13
  320. package/data/global/subcomponent/accordion-item.ttl +157 -2
  321. package/data/global/subcomponent/breadcrumbs-item.ttl +69 -2
  322. package/data/global/subcomponent/card-content.ttl +53 -2
  323. package/data/global/subcomponent/card-footer.ttl +2 -0
  324. package/data/global/subcomponent/card-header.ttl +45 -2
  325. package/data/global/subcomponent/card-image.ttl +13 -2
  326. package/data/global/subcomponent/card-thumbnail.ttl +37 -2
  327. package/data/global/subcomponent/chart_legend.ttl +93 -2
  328. package/data/global/subcomponent/chart_legend_item.ttl +77 -2
  329. package/data/global/subcomponent/checkbox_input.ttl +165 -2
  330. package/data/global/subcomponent/color_input.ttl +2 -0
  331. package/data/global/subcomponent/combobox_input.ttl +398 -3
  332. package/data/global/subcomponent/date_input.ttl +85 -2
  333. package/data/global/subcomponent/date_time_input.ttl +85 -2
  334. package/data/global/subcomponent/field-description.ttl +13 -2
  335. package/data/global/subcomponent/field-error.ttl +29 -0
  336. package/data/global/subcomponent/field-label.ttl +37 -2
  337. package/data/global/subcomponent/file_upload_input.ttl +158 -3
  338. package/data/global/subcomponent/hidden_input.ttl +3 -1
  339. package/data/global/subcomponent/kvp_container.ttl +77 -2
  340. package/data/global/subcomponent/kvpitem_base.ttl +69 -2
  341. package/data/global/subcomponent/markdown_input.ttl +2 -0
  342. package/data/global/subcomponent/modal-content.ttl +38 -2
  343. package/data/global/subcomponent/modal-footer.ttl +262 -2
  344. package/data/global/subcomponent/modal-header.ttl +294 -2
  345. package/data/global/subcomponent/month_input.ttl +2 -0
  346. package/data/global/subcomponent/number_input.ttl +2 -0
  347. package/data/global/subcomponent/password_input.ttl +117 -2
  348. package/data/global/subcomponent/phone_input.ttl +101 -2
  349. package/data/global/subcomponent/radio_input.ttl +94 -3
  350. package/data/global/subcomponent/range_input.ttl +85 -2
  351. package/data/global/subcomponent/rating_input.ttl +2 -0
  352. package/data/global/subcomponent/rich_text_input.ttl +2 -0
  353. package/data/global/subcomponent/search_input.ttl +5 -3
  354. package/data/global/subcomponent/segmented_control_input.ttl +2 -0
  355. package/data/global/subcomponent/select_input.ttl +86 -3
  356. package/data/global/subcomponent/spin_button.ttl +2 -0
  357. package/data/global/subcomponent/spinner.ttl +3 -1
  358. package/data/global/subcomponent/switch_input.ttl +86 -3
  359. package/data/global/subcomponent/table-cell.ttl +2 -0
  360. package/data/global/subcomponent/table-row.ttl +2 -0
  361. package/data/global/subcomponent/text_input.ttl +101 -2
  362. package/data/global/subcomponent/textarea_input.ttl +85 -2
  363. package/data/global/subcomponent/tile-content.ttl +45 -2
  364. package/data/global/subcomponent/tile-header.ttl +45 -2
  365. package/data/global/subcomponent/time_input.ttl +85 -2
  366. package/data/global/subcomponent/timeline-content.ttl +37 -2
  367. package/data/global/subcomponent/timeline-event.ttl +42 -7
  368. package/data/global/subcomponent/timeline-expansion_indicator.ttl +3 -1
  369. package/data/global/subcomponent/timeline-header.ttl +3 -1
  370. package/data/global/variant/tooltip_dense.ttl +2 -0
  371. package/data/global/view/settings_view.ttl +2 -0
  372. package/data/global.ttl +2 -0
  373. package/data/sites/component/blog_card.ttl +2 -0
  374. package/data/sites/component/quote.ttl +2 -0
  375. package/data/sites/component/rule.ttl +2 -0
  376. package/data/sites/component/section.ttl +2 -0
  377. package/data/sites/group/blog_cards.ttl +2 -0
  378. package/data/sites/group/xblog_elements.ttl +2 -0
  379. package/data/sites/layout/blog_page_layout.ttl +2 -0
  380. package/data/sites/layout/case_study_layout.ttl +2 -0
  381. package/data/sites/layout/site_layout.ttl +2 -0
  382. package/data/sites/pattern/hero-github.ttl +2 -0
  383. package/data/sites/pattern/hero.ttl +2 -0
  384. package/data/sites/pattern/info_table.ttl +2 -0
  385. package/data/sites/pattern/pricing_section.ttl +2 -0
  386. package/data/sites/pattern/pricing_table.ttl +2 -0
  387. package/data/sites/pattern/read_more_section.ttl +2 -0
  388. package/data/sites/pattern/skip_link.ttl +2 -0
  389. package/data/sites.ttl +2 -0
  390. package/data/sites_webcomponentsprototype/component/blog_cards.ttl +2 -0
  391. package/data/sites_webcomponentsprototype/component/ctablock.ttl +2 -0
  392. package/data/sites_webcomponentsprototype/component/list.ttl +2 -0
  393. package/data/sites_webcomponentsprototype/component/tabs.ttl +2 -0
  394. package/data/sites_webcomponentsprototype/layout/site_layout.ttl +2 -0
  395. package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +2 -0
  396. package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +2 -0
  397. package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +2 -0
  398. package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +2 -0
  399. package/data/sites_webcomponentsprototype/pattern/hero.ttl +2 -0
  400. package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +2 -0
  401. package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +2 -0
  402. package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +2 -0
  403. package/data/sites_webcomponentsprototype.ttl +2 -0
  404. package/data/stores.ttl +2 -0
  405. package/data/tag/allgood.ttl +2 -0
  406. package/data/tag/beta.ttl +2 -0
  407. package/data/tag/candidate.ttl +2 -0
  408. package/data/tag/devbatch1.ttl +2 -0
  409. package/data/tag/devbatch2.ttl +2 -0
  410. package/data/tag/devbatch3.ttl +9 -0
  411. package/data/tag/devexternal.ttl +2 -0
  412. package/data/tag/devreactapproved.ttl +2 -0
  413. package/data/tag/devreactbase.ttl +2 -0
  414. package/data/tag/devreactpreapproved.ttl +2 -0
  415. package/data/tag/devspecial.ttl +2 -0
  416. package/data/tag/devsveltedone.ttl +2 -0
  417. package/data/tag/devsveltein-progress.ttl +2 -0
  418. package/data/tag/divergent.ttl +2 -0
  419. package/data/tag/docscomplete.ttl +2 -0
  420. package/data/tag/draft.ttl +2 -0
  421. package/data/tag/edge.ttl +2 -0
  422. package/data/tag/global-docs-missing.ttl +2 -0
  423. package/data/tag/has-no-global-entry.ttl +2 -0
  424. package/data/tag/lpto-be-upstreamed.ttl +2 -0
  425. package/data/tag/lptriageblocked-reqs-design.ttl +2 -0
  426. package/data/tag/lptriageno-upstream.ttl +2 -0
  427. package/data/tag/lptriagereimplement-and-deprecate.ttl +2 -0
  428. package/data/tag/lptriagereimplement-and-keep.ttl +2 -0
  429. package/data/tag/lptriageupstream-and-deprecate.ttl +2 -0
  430. package/data/tag/minimal.ttl +2 -0
  431. package/data/tag/needsdefinition.ttl +2 -0
  432. package/data/tag/needsdiscussion.ttl +2 -0
  433. package/data/tag/needsdocumentation.ttl +2 -0
  434. package/data/tag/needsreview.ttl +2 -0
  435. package/data/tag/needstriage.ttl +2 -0
  436. package/data/tag/needsupdate.ttl +2 -0
  437. package/data/tag/notstarted.ttl +2 -0
  438. package/data/tag/specialadoption-docs.ttl +2 -0
  439. package/data/tag/stable.ttl +2 -0
  440. package/data/tag/stylesready.ttl +2 -0
  441. package/data/tag/triagedbacklog.ttl +2 -0
  442. package/data/tag/triagedrejected.ttl +2 -0
  443. package/data/tag/upstream-candidate.ttl +2 -0
  444. package/data/tag/upstream-compliant.ttl +2 -0
  445. package/data/tag/upstreamcandidate.ttl +2 -0
  446. package/data/tag/waiting-for-delta-review.ttl +2 -0
  447. package/data/tag/wpeinital-implementation.ttl +2 -0
  448. package/data/tag/wpetriageupstream-and-deprecate.ttl +2 -0
  449. package/data/tagcategory/channel.ttl +2 -0
  450. package/data/tagcategory/concept-status.ttl +2 -0
  451. package/data/tagcategory/concept-type.ttl +2 -0
  452. package/data/tagcategory/documentation-stage.ttl +2 -0
  453. package/data/tagcategory/implementation-status.ttl +2 -0
  454. package/data/tagcategory/lpupstream.ttl +2 -0
  455. package/data/tagcategory/review-status.ttl +2 -0
  456. package/data/tagcategory/tmp.ttl +2 -0
  457. package/definitions/ontology.ttl +70 -1
  458. package/package.json +34 -8
  459. package/skills/adoption-a1-styles/SKILL.md +24 -0
  460. package/skills/adoption-a2-components/SKILL.md +22 -6
  461. package/skills/anatomy-author/ANATOMY_DSL_SPEC.md +1397 -327
  462. package/skills/anatomy-author/SKILL.md +840 -137
  463. package/skills/design-auditor/SKILL.md +133 -9
  464. package/skills/implement-component/SKILL.md +192 -23
  465. package/skills/specify-component/SKILL.md +124 -12
  466. package/skills/specify-pattern/SKILL.md +47 -8
  467. package/src/collect-implementations.ts +0 -0
  468. package/src/serializers/TTLSerializer.tests.ts +101 -0
  469. package/src/serializers/TTLSerializer.ts +17 -2
  470. package/.github/ISSUE_TEMPLATE/propose-changes-to-existing-ui-block.md +0 -14
  471. package/.github/ISSUE_TEMPLATE/propose-new-ui-block.md +0 -26
  472. package/.github/PULL_REQUEST_TEMPLATE.md +0 -22
  473. package/.github/workflows/ci.yml +0 -49
  474. package/.github/workflows/sync-coda-manual.yml +0 -25
  475. package/.github/workflows/sync-coda-scheduled.yml +0 -22
  476. package/.github/workflows/sync-coda.yml +0 -102
  477. package/.mcp.json +0 -12
  478. package/GEMINI.md +0 -2
  479. package/biome.json +0 -6
  480. package/bun.lock +0 -392
  481. package/data/apps_landscape/component/truncated_cell.ttl +0 -38
  482. package/data/concept/Foundations-Grid.ttl +0 -9
  483. package/data/concept/Indicating-required-fields-in-forms.ttl +0 -9
  484. package/data/concepttype/Decision-guide.ttl +0 -5
  485. package/data/concepttype/Mental-model.ttl +0 -5
  486. package/examples/form-roster.target.json +0 -550
  487. package/source.json +0 -205
  488. package/specs/README.md +0 -17
  489. package/src/cli.ts +0 -58
  490. package/src/commands/extract.tests.ts +0 -40
  491. package/src/commands/extract.ts +0 -50
  492. package/src/commands/index.ts +0 -4
  493. package/src/commands/list.tests.ts +0 -25
  494. package/src/commands/list.ts +0 -26
  495. package/src/commands/sync.tests.ts +0 -430
  496. package/src/commands/sync.ts +0 -418
  497. package/src/commands/transform.tests.ts +0 -213
  498. package/src/commands/transform.ts +0 -257
  499. package/src/config/index.ts +0 -2
  500. package/src/config/source.schema.json +0 -146
  501. package/src/config/types.ts +0 -129
  502. package/src/config/validateConfig.tests.ts +0 -46
  503. package/src/config/validateConfig.ts +0 -21
  504. package/src/constants.ts +0 -19
  505. package/src/providers/CodaProvider.tests.ts +0 -335
  506. package/src/providers/CodaProvider.ts +0 -384
  507. package/src/providers/CodaProvider.types.generated.ts +0 -12597
  508. package/src/providers/detectSmartChips.tests.ts +0 -42
  509. package/src/providers/detectSmartChips.ts +0 -60
  510. package/src/providers/index.ts +0 -18
  511. package/src/scripts/checkDataDeletion.ts +0 -68
  512. package/src/scripts/evaluateDataDeletion.tests.ts +0 -100
  513. package/src/scripts/evaluateDataDeletion.ts +0 -100
  514. package/src/sync/constants.ts +0 -52
  515. package/src/sync/diffRoster.tests.ts +0 -455
  516. package/src/sync/diffRoster.ts +0 -241
  517. package/src/sync/loadTargetSpec.tests.ts +0 -208
  518. package/src/sync/loadTargetSpec.ts +0 -139
  519. package/src/sync/renderPlan.tests.ts +0 -144
  520. package/src/sync/renderPlan.ts +0 -88
  521. package/src/sync/snapshotTable.tests.ts +0 -31
  522. package/src/sync/snapshotTable.ts +0 -20
  523. package/src/sync/toLiveEntries.tests.ts +0 -76
  524. package/src/sync/toLiveEntries.ts +0 -55
  525. package/src/sync/types.ts +0 -101
  526. package/src/transform/collectDataMetrics.tests.ts +0 -108
  527. package/src/transform/collectDataMetrics.ts +0 -114
  528. package/src/transform/deltaGuards.tests.ts +0 -136
  529. package/src/transform/deltaGuards.ts +0 -118
  530. package/src/transform/expectedTables.tests.ts +0 -99
  531. package/src/transform/expectedTables.ts +0 -34
  532. package/src/transform/isValidReferenceUri.tests.ts +0 -45
  533. package/src/transform/isValidReferenceUri.ts +0 -55
  534. package/src/transform/materializeInverses.tests.ts +0 -81
  535. package/src/transform/materializeInverses.ts +0 -78
  536. package/src/transform/resolveReferences.tests.ts +0 -67
  537. package/src/transform/resolveReferences.ts +0 -36
  538. package/src/transform/resolveValue.tests.ts +0 -82
  539. package/src/transform/resolveValue.ts +0 -87
  540. package/src/transform/rowFilter.tests.ts +0 -100
  541. package/src/transform/rowFilter.ts +0 -55
  542. package/src/transform/transform.tests.ts +0 -132
  543. package/src/transform/transform.ts +0 -145
  544. package/src/transform/transformRow.malformedRefs.tests.ts +0 -127
  545. package/src/transform/transformRow.tests.ts +0 -466
  546. package/src/transform/transformRow.ts +0 -358
  547. package/src/transform/types.ts +0 -37
  548. package/tsconfig.json +0 -9
  549. package/vite.config.ts +0 -11
  550. package/vitest.config.ts +0 -50
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps.subcomponent.data_table-persistent_selection a ds:Subcomponent;
4
6
  ds:name "DataTable.PersistentSelection";
@@ -6,7 +8,7 @@ ds:apps.subcomponent.data_table-persistent_selection a ds:Subcomponent;
6
8
  ds:anatomyDsl "";
7
9
  ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3340-7087&t=8RN2Hpk8UX3gMX3u-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4815-84027&t=2fO23I8WsyT0YVJ1-4";
8
10
  ds:usage "The persistent selection panel supports workflows where users need to build up a selection of items across multiple table pages before performing a bulk action. Without it, users would lose their selection every time they navigate to a different page, sort, or filter. The panel makes the current selection visible and manageable at all times.\n\nIn enterprise applications, users often work with large datasets where the items they need to act on are not conveniently grouped on a single page. For example, a system administrator managing a fleet of machines may need to select specific instances across several pages to reassign them to a different team, apply a configuration change, or schedule maintenance. The persistent selection panel lets them browse through pages, pick items as they go, and review the full selection before committing to the action. Without persistent selection, this workflow would require the user to memorize or manually track which items they need, then act on them one page at a time.\n\n## When to use\n\n- Users need to select items across multiple table pages before performing a bulk action.\n- The dataset is large enough that relevant items are spread across different pages.\n- Users need to review and adjust their selection before committing to an action.\n\n## When not to use\n\n- All selectable items fit on a single table page. Simple selection is sufficient in this case.\n- The table does not support row selection at all.\n- Bulk actions are not a feature of the table.\n\n## Large selections\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-78504&t=2PBanDq6QA2yNcI2-4\n\nFor tables with hundreds of thousands of items, users could potentially select a very large number. It would be impractical to show all of them in the compact panel. After a certain threshold, a warning message appears when the user scrolls to the bottom of the panel, telling them that the selection is too large to show inline and that they should use the expand function to view the full selection.\n\nIf there are performance concerns related to the number of selected items or frontend pagination of the selection, a hard limit on the number of items a user can select may need to be considered.";
9
- ds:guidelines "# Interactions\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-78505&t=2PBanDq6QA2yNcI2-4\n\n## Opening the panel\n\nSelecting the persistent selection button in the action bar opens the dark panel labeled “Current selection:” that shows the list of selected items.\n\n## Item display and ordering\n\nEach item in the panel shows its human-readable unique ID, usually the value from the first column (the name column). Each item has an “X” button to remove it individually from the selection. This per-row deselect behavior is the same in both the floating and expanded views.\n\nThe panel shows selected items in the order they were selected, with the most recently selected item on top.\n\n## Panel growth and scrolling\n\nAs the user selects more items, the panel grows in size until it reaches a maximum height. After that, the panel content becomes scrollable.\n\n## https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-69949&t=2PBanDq6QA2yNcI2-4\n\n\n\n## Expanded (popped out) view\n\nBefore performing a bulk action, a user might want to inspect their selection more closely, for example using the supporting information in other columns. Sometimes they might not remember the full picture of their selection based on the name column alone.\n\nTo support this, the action bar and persistent selection panel can be “popped out” into an expanded view that shows the selection as a full table with all columns visible. The transition between the floating action bar and the expanded view is animated. The smaller floating action bar visually transforms into the expanded modal-style selection and action bar in a seamless transition.\n\nThere are two ways to close the expanded view:\n\n1. **Collapse button** - selecting the decrease/collapse icon at the top right of the expanded panel returns it to the floating version. The same animated transition plays in reverse.\n2. **Persistent selection button** - selecting the persistent selection button closes the popped-out state entirely, returning to the floating version and also closing the panel.\n\nThe expanded view has a maximum height. Once reached, the table body becomes scrollable. The table cannot show more than 50 items per page. If there are more than 50 items in the selection, a simplified pagination control appears, allowing the user to page through the selection (for example, “of 4 pages” with forward/back navigation arrows).\n\n\n\nA prototype of the rough interaction of the collapse and expand of the panel can be found here: {\"Name\":\"Expand Action Bar Prototype\",\"Image\":{\"type\":\"imageurlref\",\"url\":\"https://s3-alpha.figma.com/thumbnails/a3563251-6cd3-4486-9b57-4f3321524cee?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQ4GOSFWC2FGOZM5C%2F20260816%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20260816T120000Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=349a083b5f3d8f998c60130c06516666d353b48eefbd5ad518554b4a501703a8\",\"outline\":true},\"Url\":{\"type\":\"urlref\",\"url\":\"https://www.figma.com/make/4V5OfFCOm2lYDgYnMVKxTl/Expand-Action-Bar-Prototype?t=hWsBoH4yq28uty6g-1\",\"name\":\"\"},\"Modified\":{\"type\":\"dt\",\"input\":\"5/21/2026 3:52:33 PM\",\"epoch\":1779371553.337,\"formatted\":\"5/21/2026\"},\"ModifiedBy\":{\"type\":\"obj\",\"value\":{\"Handle\":\"Maximilian Blazek\",\"Avatar\":{\"type\":\"imageurlref\",\"url\":\"https://s3-alpha.figma.com/profile/534b2668-e456-4568-98c9-60d645790fdc\",\"outline\":true}}},\"Label\":\"2356039340008127983\",\"CommentsCount\":0}\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-72617&t=2PBanDq6QA2yNcI2-4\n\n## Deselecting items\n\nUsers can deselect individual items by selecting the “X” button on each row in either the floating panel or the expanded view.\n\nSelecting the main deselect (X) button in the action bar deselects everything. If the expanded view is open, the modal closes, and the floating bar is also hidden since nothing remains selected.\n\nAfter the user deselects everything through the main deselect button, a toast notification appears with a message such as “Deselected everything by accident?” with an undo option. This toast disappears after 10 seconds. Proper accessibility needs to be provided for this toast.\n\n## Tooltips\n\nAll interactive selection elements have tooltips on hover:\n\nTable 6\n\n";
11
+ ds:guidelines "# Interactions\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-78505&t=2PBanDq6QA2yNcI2-4\n\n## Opening the panel\n\nSelecting the persistent selection button in the action bar opens the dark panel labeled “Current selection:” that shows the list of selected items.\n\n## Item display and ordering\n\nEach item in the panel shows its human-readable unique ID, usually the value from the first column (the name column). Each item has an “X” button to remove it individually from the selection. This per-row deselect behavior is the same in both the floating and expanded views.\n\nThe panel shows selected items in the order they were selected, with the most recently selected item on top.\n\n## Panel growth and scrolling\n\nAs the user selects more items, the panel grows in size until it reaches a maximum height. After that, the panel content becomes scrollable.\n\n## https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-69949&t=2PBanDq6QA2yNcI2-4\n\n\n\n## Expanded (popped out) view\n\nBefore performing a bulk action, a user might want to inspect their selection more closely, for example using the supporting information in other columns. Sometimes they might not remember the full picture of their selection based on the name column alone.\n\nTo support this, the action bar and persistent selection panel can be “popped out” into an expanded view that shows the selection as a full table with all columns visible. The transition between the floating action bar and the expanded view is animated. The smaller floating action bar visually transforms into the expanded modal-style selection and action bar in a seamless transition.\n\nThere are two ways to close the expanded view:\n\n1. **Collapse button** - selecting the decrease/collapse icon at the top right of the expanded panel returns it to the floating version. The same animated transition plays in reverse.\n2. **Persistent selection button** - selecting the persistent selection button closes the popped-out state entirely, returning to the floating version and also closing the panel.\n\nThe expanded view has a maximum height. Once reached, the table body becomes scrollable. The table cannot show more than 50 items per page. If there are more than 50 items in the selection, a simplified pagination control appears, allowing the user to page through the selection (for example, “of 4 pages” with forward/back navigation arrows).\n\n\n\nA prototype of the rough interaction of the collapse and expand of the panel can be found here: {\"Name\":\"Expand Action Bar Prototype\",\"Image\":{\"type\":\"imageurlref\",\"url\":\"https://s3-alpha.figma.com/thumbnails/a3563251-6cd3-4486-9b57-4f3321524cee?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQ4GOSFWCUPSYUQSX%2F20260913%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20260913T120000Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=3650d3a4870da1fa8819f4d6937d23d3875fb853ff14d7b78cb5e46beffc638f\",\"outline\":true},\"Url\":{\"type\":\"urlref\",\"url\":\"https://www.figma.com/make/4V5OfFCOm2lYDgYnMVKxTl/Expand-Action-Bar-Prototype?t=hWsBoH4yq28uty6g-1\",\"name\":\"\"},\"Modified\":{\"type\":\"dt\",\"input\":\"5/21/2026 3:52:33 PM\",\"epoch\":1779371553.337,\"formatted\":\"5/21/2026\"},\"ModifiedBy\":{\"type\":\"obj\",\"value\":{\"Handle\":\"Maximilian Blazek\",\"Avatar\":{\"type\":\"imageurlref\",\"url\":\"https://s3-alpha.figma.com/profile/534b2668-e456-4568-98c9-60d645790fdc\",\"outline\":true}}},\"Label\":\"2356039340008127983\",\"CommentsCount\":0}\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-72617&t=2PBanDq6QA2yNcI2-4\n\n## Deselecting items\n\nUsers can deselect individual items by selecting the “X” button on each row in either the floating panel or the expanded view.\n\nSelecting the main deselect (X) button in the action bar deselects everything. If the expanded view is open, the modal closes, and the floating bar is also hidden since nothing remains selected.\n\nAfter the user deselects everything through the main deselect button, a toast notification appears with a message such as “Deselected everything by accident?” with an undo option. This toast disappears after 10 seconds. Proper accessibility needs to be provided for this toast.\n\n## Tooltips\n\nAll interactive selection elements have tooltips on hover:\n\nTable 6\n\n";
10
12
  ds:tier ds:apps;
11
13
  ds:documentationStage ds:tag.needsdefinition;
12
14
  ds:hasProperty [
@@ -14,37 +16,37 @@ ds:apps.subcomponent.data_table-persistent_selection a ds:Subcomponent;
14
16
  ds:name "unique-identifier-field";
15
17
  ds:summary "The column or field used to identify each selected item in the panel. Usually the first column (the name column). The panel displays this value as the human-readable label for each selected item.";
16
18
  ds:propertyType "text";
17
- ds:optional "false";
18
- ds:constraints "Inherited from the data table."
19
+ ds:constraints "Inherited from the data table.";
20
+ ds:optional "false"
19
21
  ], [
20
22
  a ds:Property;
21
23
  ds:name "max-selection-count";
22
24
  ds:summary "A hard limit on the number of items a user can select. Use when there are performance concerns related to the number of selected items or frontend pagination of the selection.";
23
25
  ds:propertyType "number";
24
- ds:optional "true";
25
- ds:constraints "Inherited from the data table. Must be a positive integer."
26
+ ds:constraints "Inherited from the data table. Must be a positive integer.";
27
+ ds:optional "true"
26
28
  ], [
27
29
  a ds:Property;
28
30
  ds:name "max-items-per-page";
29
31
  ds:summary "The maximum number of selected items shown per page in the expanded view before simplified pagination controls appear.";
30
32
  ds:propertyType "number";
31
- ds:optional "true";
32
33
  ds:constraints "Must be a positive integer.";
34
+ ds:optional "true";
33
35
  ds:defaultValue "50"
34
36
  ], [
35
37
  a ds:Property;
36
38
  ds:name "undo-toast-duration";
37
39
  ds:summary "How long the undo toast remains visible after the user deselects all items through the main deselect button.";
38
40
  ds:propertyType "number";
39
- ds:optional "true";
40
41
  ds:constraints "Must be a positive integer, in seconds.";
42
+ ds:optional "true";
41
43
  ds:defaultValue "10"
42
44
  ], [
43
45
  a ds:Property;
44
46
  ds:name "large-selection-threshold";
45
47
  ds:summary "The number of selected items after which a warning message appears at the bottom of the compact panel, advising the user to use the expanded view. When not set, no threshold warning is shown.";
46
48
  ds:propertyType "number";
47
- ds:optional "true";
48
- ds:constraints "Must be a positive integer."
49
+ ds:constraints "Must be a positive integer.";
50
+ ds:optional "true"
49
51
  ];
50
- ds:parentComponent ds:apps.pattern.data_table.
52
+ ds:parentComponent ds:apps.pattern.datatable.
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps.subcomponent.data_table-settings_menu a ds:Subcomponent;
4
6
  ds:name "DataTable.SettingsMenu";
@@ -14,50 +16,50 @@ ds:apps.subcomponent.data_table-settings_menu a ds:Subcomponent;
14
16
  ds:name "settings-menu";
15
17
  ds:summary "Whether the settings gear icon and menu are shown in the header row.";
16
18
  ds:propertyType "boolean";
17
- ds:optional "false";
19
+ ds:defaultValue "true";
18
20
  ds:constraints "Inherited from the data table. Only set to false when all column customization features are disabled.";
19
- ds:defaultValue "true"
21
+ ds:optional "false"
20
22
  ], [
21
23
  a ds:Property;
22
24
  ds:name "grouping-columns";
23
25
  ds:summary "The set of columns that support grouping. Columns in this list display a \"Group by\" button in the settings menu.";
24
26
  ds:propertyType "list of text";
25
- ds:optional "false";
26
- ds:constraints "Inherited from the data table. Each value must reference an enumerated-value column."
27
+ ds:constraints "Inherited from the data table. Each value must reference an enumerated-value column.";
28
+ ds:optional "false"
27
29
  ], [
28
30
  a ds:Property;
29
31
  ds:name "reorderable-columns";
30
32
  ds:summary "Whether columns can be reordered through drag-and-drop or keyboard in the settings menu. When false, drag handles are hidden.";
31
33
  ds:propertyType "boolean";
32
- ds:optional "false";
33
- ds:defaultValue "true"
34
+ ds:defaultValue "true";
35
+ ds:optional "false"
34
36
  ], [
35
37
  a ds:Property;
36
38
  ds:name "pinnable-columns";
37
39
  ds:summary "Whether the pin icon is available on column items in the settings menu. When false, pin icons are hidden.";
38
40
  ds:propertyType "boolean";
39
- ds:optional "false";
40
- ds:defaultValue "true"
41
+ ds:defaultValue "true";
42
+ ds:optional "false"
41
43
  ], [
42
44
  a ds:Property;
43
45
  ds:name "hideable-columns";
44
46
  ds:summary "Whether the eye (visibility) icon is available on column items in the settings menu. When false, visibility icons are hidden.";
45
47
  ds:propertyType "boolean";
46
- ds:optional "false";
47
- ds:defaultValue "true"
48
+ ds:defaultValue "true";
49
+ ds:optional "false"
48
50
  ], [
49
51
  a ds:Property;
50
52
  ds:name "reset-enabled";
51
53
  ds:summary "Whether the \"Reset table settings\" action link is shown at the bottom of the menu. Resetting clears all user customizations persisted in browser storage.";
52
54
  ds:propertyType "boolean";
53
- ds:optional "false";
54
- ds:defaultValue "true"
55
+ ds:defaultValue "true";
56
+ ds:optional "false"
55
57
  ], [
56
58
  a ds:Property;
57
59
  ds:name "keyboard-shortcuts-enabled";
58
60
  ds:summary "Whether the \"Table keyboard shortcuts\" action link is shown at the bottom of the menu.";
59
61
  ds:propertyType "boolean";
60
- ds:optional "false";
61
- ds:defaultValue "true"
62
+ ds:defaultValue "true";
63
+ ds:optional "false"
62
64
  ];
63
- ds:parentComponent ds:apps.pattern.data_table.
65
+ ds:parentComponent ds:apps.pattern.datatable.
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps.subcomponent.drawer-content a ds:Subcomponent;
4
6
  ds:name "Drawer.Content";
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps.subcomponent.drawer-footer a ds:Subcomponent;
4
6
  ds:name "Drawer.Footer";
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps.subcomponent.drawer-header a ds:Subcomponent;
4
6
  ds:name "Drawer.Header";
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps.subcomponent.file_tree-node a ds:Subcomponent;
4
6
  ds:name "FileTree.Node";
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps.subcomponent.log a ds:Subcomponent;
4
6
  ds:name "Log";
@@ -1,9 +1,11 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps.subcomponent.side_panel-content a ds:Subcomponent;
4
6
  ds:name "SidePanel.Content";
5
7
  ds:summary "";
6
- ds:anatomyDsl "";
8
+ ds:anatomyDsl "", "--- \nnode: \n uri: apps.subcomponent.side_panel-content \n styles: \n layout.flex: 1 \n spacing.internal.block: spacing/small # --dimension-200 \n edges: \n - node: \n role: content \n relation: \n cardinality: \"1\" \n slotName: default";
7
9
  ds:anatomyClassic "";
8
10
  ds:usage "";
9
11
  ds:guidelines "";
@@ -1,9 +1,11 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps.subcomponent.side_panel-footer a ds:Subcomponent;
4
6
  ds:name "SidePanel.Footer";
5
7
  ds:summary "";
6
- ds:anatomyDsl "";
8
+ ds:anatomyDsl "", "--- \nnode: \n uri: apps.subcomponent.side_panel-footer \n styles: \n layout.type: flow \n layout.direction: horizontal \n layout.justify: end \n layout.align: center \n spacing.gap: spacing/small # --dimension-200 \n spacing.internal.block: spacing/small # --dimension-200 \n appearance.border.top: border/style/divider \n # Sticky to the panel's bottom: actions stay reachable while content scrolls \n edges: \n - node: \n uri: global.component.button \n relation: \n cardinality: \"0..*\" \n slotName: default";
7
9
  ds:anatomyClassic "";
8
10
  ds:usage "";
9
11
  ds:guidelines "";
@@ -1,9 +1,11 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps.subcomponent.side_panel-header a ds:Subcomponent;
4
6
  ds:name "SidePanel.Header";
5
7
  ds:summary "";
6
- ds:anatomyDsl "";
8
+ ds:anatomyDsl "", "--- \nnode: \n uri: apps.subcomponent.side_panel-header \n styles: \n layout.type: flow \n layout.direction: horizontal \n layout.align: center \n spacing.gap: spacing/small # --dimension-200 \n spacing.internal.block: spacing/small # --dimension-200 \n # Sticky to the panel's top: never scrolls with the content \n edges: \n - node: \n role: title heading \n styles: \n typography.size: text/heading/4 # --typography-heading-4-* \n layout.flex: 1 \n relation: \n cardinality: \"1\" \n slotName: default \n - node: \n uri: global.component.button \n props: \n icon: close \n importance: tertiary \n relation: \n cardinality: \"0..1\" # hidden when the panel is not dismissible \n slotName: dismiss";
7
9
  ds:anatomyClassic "";
8
10
  ds:usage "";
9
11
  ds:guidelines "";
package/data/apps.ttl CHANGED
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps a ds:Tier;
4
6
  ds:name "Apps".
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps_anbox.component.theme_switcher a ds:Component;
4
6
  ds:name "ThemeSwitcher";
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps_anbox.pattern.side_menu a ds:Pattern;
4
6
  ds:name "SideMenu";
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps_anbox a ds:Tier;
4
6
  ds:name "Apps/Anbox".
@@ -0,0 +1,12 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:apps_debcrafters.component.deb_package_card a ds:Component;
6
+ ds:name "DebPackageCard";
7
+ ds:summary "";
8
+ ds:anatomyDsl "";
9
+ ds:anatomyClassic "";
10
+ ds:usage "";
11
+ ds:guidelines "";
12
+ ds:tier ds:apps_debcrafters.
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps_debcrafters.component.example a ds:Component;
4
6
  ds:name "Example";
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps_debcrafters.component.my_fancy_component a ds:Component;
4
6
  ds:name "MyFancyComponent";
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps_debcrafters a ds:Tier;
4
6
  ds:name "Apps/Debcrafters".
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps_juju.pattern.single_select_multi_layered a ds:Pattern;
4
6
  ds:name "Single select , multi-layered";
@@ -1,4 +1,6 @@
1
1
  @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
2
4
 
3
5
  ds:apps_juju a ds:Tier;
4
6
  ds:name "Apps/Juju".
@@ -0,0 +1,110 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:apps_landscape.component.checkbox_group a ds:Component;
6
+ ds:name "Checkbox Group";
7
+ ds:summary "Checkbox Group renders a controlled array of string selections as a native `fieldset` containing labelled checkbox inputs. It adds a visible `legend`, optional error and help messages, a visual required marker, group-level disabling, root `className`/`style` hooks, and a shared blur callback.\n\nUse it for a short, visible set of related choices when any number of values may be selected. It differs from a single Checkbox and from mutually exclusive Radio inputs by owning the group label and translating each toggle into the complete next `string[]` value.";
8
+ ds:anatomyDsl "node:\n uri: ds:apps_landscape.component.checkbox_group\n semantic: fieldset\n styles:\n layout.overflow: visible\n edges:\n - node:\n semantic: legend\n role: group label\n relation:\n cardinality: \"1\"\n - node:\n semantic: p\n role: error message\n relation:\n cardinality: \"0..1\"\n condition: error is truthy\n - node:\n semantic: p\n role: help text\n relation:\n cardinality: \"0..1\"\n condition: help is truthy\n - node:\n role: options container\n edges:\n - node:\n uri: global.component.checkbox\n role: checkbox option\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"1\"";
9
+ ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=17-9&t=JhmpJ2Kptl96X0Fe-4\n\nTable 14\n\n";
10
+ ds:usage "### When to use\n\n**Independent choices**\n\nUse when users may select zero, one, or several options from a related set and the form value is a controlled array of strings.\n\n**Visible option set**\n\nUse when showing all options at once improves comparison and discovery.\n\n**Group-level guidance or validation**\n\nUse when the choices need one shared legend, help message, or error message rather than repeated instructions on each checkbox.\n\n### When not to use\n\n**Mutually exclusive choice**\n\nOnly one option may be selected by the user.\n\n**Incorrect pattern**: Using Checkbox Group when the form value must always contain exactly one selected option.\n\n**Remediation strategy**: Use Radio Group for mutually exclusive options, or a Select component for a space-constrained dropdown list.\n\n**Large dynamic set**\n\nThe option list is lengthy, searchable, or grows or shrinks at runtime.\n\n**Incorrect pattern**: Rendering all options of a 50+ item list as visible checkboxes, causing layout overflow and poor discoverability.\n\n**Remediation strategy**: Use a multi-select or tag-select control that supports search, filtering, and scrolling within a compact UI.\n\n**One independent boolean**\n\nThe form contains a single toggle unrelated to other options.\n\n**Incorrect pattern**: Wrapping a single checkbox in Checkbox Group when the setting stands alone and does not benefit from group legend and spacing semantics.\n\n**Remediation strategy**: Use a standalone `Checkbox` component for individual boolean settings; reserve Checkbox Group for logically related sets.\n\n**Per-option disabled choices**\n\nIndividual options must be disabled or enabled independently.\n\n**Incorrect pattern**: Passing `SelectOption.disabled: true` on some options and expecting them to be visually or functionally disabled within the group.\n\n**Remediation strategy**: Currently, only the entire fieldset can be disabled. For per-option disabling, either extend the component to forward the disabled prop to each CheckboxInput, or use a custom wrapper that manages individual disabled states.";
11
+ ds:guidelines "### Accessibility\n\n- Preserve native fieldset and legend semantics so the group label is announced for every checkbox.\n- Do not treat the current asterisk as a complete required-state implementation. The source adds no native `required`, `aria-required`, or minimum-selection validation behavior.\n- The current error/help paragraphs are visually adjacent but have no generated ids or described-by association. Consumers that require deterministic announcement need an upstream API or wrapper that supplies that relationship.\n- Error state is not conveyed only by the `is-error` class because text is rendered, but the error must explain how to recover.\n\n### Content\n\n- Write a concise legend and parallel, independently understandable option labels.\n- Use help text for selection rules such as minimum or maximum counts.\n- Localize the legend, option labels, help, and error content at the call site; the component contains no user-facing default strings.\n\n### Internationalization\n\n- Allow translated labels and messages to wrap. The local stylesheet sets only `overflow: visible` and does not impose truncation.\n- Keep option values stable, locale-independent identifiers; only labels and messages should change with locale.\n\n### Keyboard navigation\n\n- Retain native Tab navigation and Space activation for each checkbox.\n- The component defines no custom key handlers, focus movement, or roving tab index; behavior comes from native inputs through Canonical `CheckboxInput`.\n\n### Device and layout\n\n- Verify wrapping in the surrounding form. The local stylesheet does not define option direction or responsive breakpoints; it only permits overflow to remain visible.\n- Keep each checkbox and label together at narrow widths and do not depend on hover or pointer precision.";
12
+ ds:tier ds:apps_landscape;
13
+ ds:documentationStage ds:tag.specialadoption-docs;
14
+ ds:hasProperty [
15
+ a ds:Property;
16
+ ds:name "name";
17
+ ds:summary "Shared native name forwarded to every checkbox.";
18
+ ds:propertyType "text";
19
+ ds:defaultValue "None";
20
+ ds:constraints "Use a stable form field name.";
21
+ ds:optional "false"
22
+ ], [
23
+ a ds:Property;
24
+ ds:name "label";
25
+ ds:summary "Visible text rendered in the fieldset legend.";
26
+ ds:propertyType "text";
27
+ ds:defaultValue "None";
28
+ ds:constraints "The current API does not accept rich label content.";
29
+ ds:optional "false"
30
+ ], [
31
+ a ds:Property;
32
+ ds:name "options";
33
+ ds:summary "Ordered records with label, value, and optional disabled.";
34
+ ds:propertyType "list of objects";
35
+ ds:defaultValue "None";
36
+ ds:constraints "Values must be unique for React keys and unambiguous selection. Each entry is a `SelectOption` with `label: string`, `value: string`, `disabled?: boolean`. An empty array renders no checkboxes.";
37
+ ds:optional "false"
38
+ ], [
39
+ a ds:Property;
40
+ ds:name "value";
41
+ ds:summary "Controlled selected values.";
42
+ ds:propertyType "list of text";
43
+ ds:defaultValue "None";
44
+ ds:constraints "A checkbox is checked when its option value is included. Unknown values remain in the array until the consumer changes it.";
45
+ ds:optional "false"
46
+ ], [
47
+ a ds:Property;
48
+ ds:name "onChange";
49
+ ds:summary "Receives the complete next array after a toggle.";
50
+ ds:propertyType "function";
51
+ ds:defaultValue "None";
52
+ ds:constraints "The component does not mutate value; the consumer must provide the updated prop.";
53
+ ds:optional "false"
54
+ ], [
55
+ a ds:Property;
56
+ ds:name "onBlur";
57
+ ds:summary "Shared blur handler forwarded to every checkbox.";
58
+ ds:propertyType "function";
59
+ ds:defaultValue "undefined";
60
+ ds:constraints "Receives the blurred checkbox event.";
61
+ ds:optional "true"
62
+ ], [
63
+ a ds:Property;
64
+ ds:name "error";
65
+ ds:summary "Renders a group-level validation paragraph and adds is-error to the fieldset.";
66
+ ds:propertyType "ReactNode";
67
+ ds:defaultValue "undefined";
68
+ ds:constraints "Truthiness controls rendering and class state; no aria-describedby/aria-errormessage wiring is added locally.";
69
+ ds:optional "true"
70
+ ], [
71
+ a ds:Property;
72
+ ds:name "help";
73
+ ds:summary "Renders persistent group guidance after any error and before the options.";
74
+ ds:propertyType "ReactNode";
75
+ ds:defaultValue "undefined";
76
+ ds:constraints "No described-by association is added locally.";
77
+ ds:optional "true"
78
+ ], [
79
+ a ds:Property;
80
+ ds:name "required";
81
+ ds:summary "Adds the local required-marker class to the legend.";
82
+ ds:propertyType "boolean";
83
+ ds:defaultValue "undefined";
84
+ ds:constraints "Visual marker only; the component does not apply required to descendant inputs or enforce a minimum selection.";
85
+ ds:optional "true"
86
+ ], [
87
+ a ds:Property;
88
+ ds:name "disabled";
89
+ ds:summary "Sets native disabled on the fieldset, disabling descendant controls.";
90
+ ds:propertyType "boolean";
91
+ ds:defaultValue "undefined";
92
+ ds:constraints "Applies to the whole group.";
93
+ ds:optional "true"
94
+ ], [
95
+ a ds:Property;
96
+ ds:name "className";
97
+ ds:summary "Merges consumer classes onto the fieldset.";
98
+ ds:propertyType "text";
99
+ ds:defaultValue "undefined";
100
+ ds:constraints "Added after built-in classes through classnames.";
101
+ ds:optional "true"
102
+ ], [
103
+ a ds:Property;
104
+ ds:name "style";
105
+ ds:summary "Applies inline styles to the fieldset.";
106
+ ds:propertyType "object";
107
+ ds:defaultValue "undefined";
108
+ ds:constraints "Standard React style object.";
109
+ ds:optional "true"
110
+ ].
@@ -0,0 +1,134 @@
1
+ @prefix ds: <https://ds.canonical.com/>.
2
+ @prefix anatomy: <https://anatomy.canonical.com/>.
3
+ @prefix dt: <https://dt.canonical.com/>.
4
+
5
+ ds:apps_landscape.component.code_editor a ds:Component;
6
+ ds:name "Code Editor";
7
+ ds:summary "Code Editor is a lazy-loaded form control for editing scripts, configuration, and other language-aware text with Monaco. It combines a required-capable visible label, an optional header-content slot, application-theme selection, Monaco lifecycle hooks, group-level blur handling, and separate error and warning feedback.\n\nThe public `CodeEditor` boundary defers the editor implementation and displays the shared Loading State while that module loads. Monaco has a second Loading State while its own editor surface initializes. The component is keyboard-oriented and has a source-proven minimum editor height of 16rem; it is more substantial than a standard multiline input.";
8
+ ds:anatomyDsl "node:\n uri: ds:apps_landscape.component.code_editor\n edges:\n - node:\n uri: ds:apps_landscape.component.loading_state\n role: module-loading status\n relation:\n cardinality: \"0..1\"\n - node:\n role: validation form group\n edges:\n - node:\n role: label and supporting controls header\n edges:\n - node:\n semantic: label\n role: code editor label\n relation:\n cardinality: \"1\"\n - node:\n role: supporting header content\n relation:\n cardinality: \"0..1\"\n slotName: headerContent\n relation:\n cardinality: \"1\"\n - node:\n role: editor control group\n edges:\n - node:\n uri: global.component.monaco_editor\n role: code input\n relation:\n cardinality: \"1\"\n - node:\n role: error validation message\n semantic: paragraph\n relation:\n cardinality: \"0..1\"\n - node:\n role: warning validation message\n semantic: paragraph\n relation:\n cardinality: \"0..1\"\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"";
9
+ ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=17-11&t=JhmpJ2Kptl96X0Fe-4\n\nTable 15\n\n";
10
+ ds:usage "### When to use\n\n**Structured code entry**\n\nUse when users edit scripts, autoinstall configuration, search expressions, or other structured text that benefits from Monaco’s code-editing behavior.\n\n**Language-aware workflows**\n\nUse when the workflow needs a Monaco language identifier, consumer options, language registration before mount, or access to the mounted editor.\n\n**Form validation**\n\nUse when code entry belongs to a larger form and needs a required marker, negative or caution styling, and group-level blur notification.\n\n### When not to use\n\n**Short plain text**\n\nThe user is entering a simple one-line value or unstructured short note.\n\n**Incorrect pattern**: Loading Monaco and its infrastructure for a single-line input that requires no syntax awareness or language features.\n\n**Remediation strategy**: Use `Input` for short values or `textarea` for short multiline notes. Reserve Code Editor for structured code, configuration, or language-aware workflows.\n\n**Rendered preview**\n\nThe content must be displayed formatted but not edited.\n\n**Incorrect pattern**: Using Code Editor as a read-only, syntax-highlighted code display component.\n\n**Remediation strategy**: Use a code block component with copy support and configurable language highlighting, without the editor’s editing surface and keyboard complexity.\n\n**Touch-primary editing**\n\nThe primary input method is touch (mobile, tablet) and keyboard shortcuts are unavailable or unfamiliar to users.\n\n**Incorrect pattern**: Defaulting to Code Editor on touch devices when a simple textarea meets the functional requirement and provides better touch ergonomics.\n\n**Remediation strategy**: Use `textarea` for touch-primary workflows; Monaco’s keyboard-centric shortcuts and focus behavior are better suited to desktop editing.";
11
+ ds:guidelines "### Accessibility\n\n- Treat the current fixed label target (`code`) and fixed feedback ids (`code-error-message`, `code-warning-message`) as implementation limitations. The source does not assign a matching unique id or `aria-describedby` to Monaco; consumers must not assume those relationships are complete.\n- Preserve Monaco’s accessible editing mode and built-in keyboard support. Do not intercept editor shortcuts without an equivalent path.\n- Ensure dynamic validation feedback is announced by the form integration; the current paragraphs have no live-region semantics.\n- Do not use syntax color as the only way to communicate errors or warnings.\n- Keep a visible label. `labelClassName` must not remove the only accessible naming cue.\n\n### Content\n\n- Name the expected language or format and provide examples outside the editor when syntax is unfamiliar.\n- Keep error and warning messages specific to a line, token, or corrective action where possible.\n- Do not include the `Error:` or `Warning:` prefix in prop content; the component supplies it.\n- Keep header content secondary to the editing task. It is suitable for concise actions or status, not long instructions.\n\n### Keyboard\n\n- Users must be able to tab into the Monaco surface and continue to the next form control. Document any application shortcut that conflicts with Monaco.\n- `onBlur` represents leaving the editor control group, not every Monaco blur. Focus moving to a control in `headerContent` counts as leaving that group.\n- Do not add tab stops to decorative header content or loading indicators.\n\n### Responsive behavior\n\n- The source sets a 16rem minimum editor height and a flex-column container but defines no breakpoint-specific behavior. Consumers must provide enough width and prevent the editor from causing page-level horizontal overflow.\n- The header is a non-wrapping horizontal flex row in the current SCSS. Keep `headerContent` compact and verify long translated labels at narrow widths.\n- Use a simpler textarea when the available viewport or input method cannot support practical code editing.\n\n### Content and internationalization\n\n- Externalize labels and validation messages. The component adds English `Error:` and `Warning:` prefixes in source, so full localization requires changing that implementation rather than passing translated message bodies alone.\n- Monaco language identifiers are implementation values and must not be presented as localized language names without a separate display label.\n- Expect translated labels and feedback to wrap; do not encode meaning through line position or syntax color.";
12
+ ds:tier ds:apps_landscape;
13
+ ds:documentationStage ds:tag.specialadoption-docs;
14
+ ds:hasProperty [
15
+ a ds:Property;
16
+ ds:name "label";
17
+ ds:summary "Visible text rendered in the label element.";
18
+ ds:propertyType "text";
19
+ ds:defaultValue "None";
20
+ ds:constraints "The current label uses the fixed `htmlFor=\"code\"`; repeated instances do not receive unique associations from this API.";
21
+ ds:optional "false"
22
+ ], [
23
+ a ds:Property;
24
+ ds:name "valule";
25
+ ds:summary "Controlled Monaco value.";
26
+ ds:propertyType "text | undefined";
27
+ ds:defaultValue "None";
28
+ ds:constraints "Pass changes back through onChange; avoid switching ownership modes during one mount. ";
29
+ ds:optional "false"
30
+ ], [
31
+ a ds:Property;
32
+ ds:name "className";
33
+ ds:summary "Additional class on the Monaco editor wrapper.";
34
+ ds:propertyType "text";
35
+ ds:defaultValue "undefined";
36
+ ds:constraints "Does not apply to the outer form group.";
37
+ ds:optional "true"
38
+ ], [
39
+ a ds:Property;
40
+ ds:name "error";
41
+ ds:summary " Adds error styling and an Error: message. ";
42
+ ds:propertyType "text | undefined";
43
+ ds:defaultValue "undefined";
44
+ ds:constraints "An empty string or undefined renders no error. Error and warning can both render.";
45
+ ds:optional "true"
46
+ ], [
47
+ a ds:Property;
48
+ ds:name "warning";
49
+ ds:summary " Adds caution styling and a Warning: message. ";
50
+ ds:propertyType "text | undefined";
51
+ ds:defaultValue "undefined";
52
+ ds:constraints "An empty string or undefined renders no warning. When both states are truthy, both form classes and messages are emitted; avoid ambiguous simultaneous feedback.";
53
+ ds:optional "true"
54
+ ], [
55
+ a ds:Property;
56
+ ds:name "labelClassName";
57
+ ds:summary "Additional class on the visible label.";
58
+ ds:propertyType "text";
59
+ ds:defaultValue "undefined";
60
+ ds:constraints "Use for established label presentation only; do not hide the sole visible label.";
61
+ ds:optional "true"
62
+ ], [
63
+ a ds:Property;
64
+ ds:name "onChange";
65
+ ds:summary "Receives Monaco value changes.";
66
+ ds:propertyType "function";
67
+ ds:defaultValue "undefined";
68
+ ds:constraints "Monaco can report undefined; consumers must handle it. ";
69
+ ds:optional "true"
70
+ ], [
71
+ a ds:Property;
72
+ ds:name "onBlur";
73
+ ds:summary "Runs when focus leaves the editor control group.";
74
+ ds:propertyType "function";
75
+ ds:defaultValue "undefined";
76
+ ds:constraints "Moving focus within the control group does not call it. Moving to `headerContent` does, because the header is outside that group.";
77
+ ds:optional "true"
78
+ ], [
79
+ a ds:Property;
80
+ ds:name "required";
81
+ ds:summary "Applies the Vanilla required-label class.";
82
+ ds:propertyType "boolean";
83
+ ds:defaultValue "false";
84
+ ds:constraints "This is a visual label treatment; validation remains consumer-owned.";
85
+ ds:optional "true"
86
+ ], [
87
+ a ds:Property;
88
+ ds:name "language";
89
+ ds:summary "Monaco language identifier.";
90
+ ds:propertyType "text";
91
+ ds:defaultValue "“shell”";
92
+ ds:constraints "Register custom languages through the shared Monaco setup or `monacoBeforeMount`.";
93
+ ds:optional "true"
94
+ ], [
95
+ a ds:Property;
96
+ ds:name "defaultValue";
97
+ ds:summary "Initial value forwarded to Monaco.";
98
+ ds:propertyType "text";
99
+ ds:defaultValue "undefined";
100
+ ds:constraints "Intended for Monaco's initial/uncontrolled value contract; do not use it as a second source of truth beside a changing `value`.";
101
+ ds:optional "true"
102
+ ], [
103
+ a ds:Property;
104
+ ds:name "headerContent";
105
+ ds:summary "Supporting content rendered opposite the label.";
106
+ ds:propertyType "ReactNode";
107
+ ds:defaultValue "undefined";
108
+ ds:constraints "Keep controls compact, labelled, and in a logical focus order.";
109
+ ds:optional "true"
110
+ ], [
111
+ a ds:Property;
112
+ ds:name "options";
113
+ ds:summary " Monaco editor options merged over Landscape defaults. ";
114
+ ds:propertyType "object";
115
+ ds:defaultValue "Landscape Monaco defaults";
116
+ ds:constraints "Consumer values override the default disabled minimap, hidden line highlight, and 8px top/bottom editor padding. For Monaco options type, see Monaco Editor documentation.";
117
+ ds:optional "true"
118
+ ], [
119
+ a ds:Property;
120
+ ds:name "monacoBeforeMount";
121
+ ds:summary "Runs before Monaco mounts.";
122
+ ds:propertyType "function";
123
+ ds:defaultValue "undefined";
124
+ ds:constraints "Use for language or editor registration that must exist before rendering. Monaco parameter is the Monaco Editor API instance.";
125
+ ds:optional "true"
126
+ ], [
127
+ a ds:Property;
128
+ ds:name "onMount";
129
+ ds:summary "Receives the mounted editor and Monaco instance.";
130
+ ds:propertyType "function";
131
+ ds:defaultValue "undefined";
132
+ ds:constraints "Consumers own any setup and cleanup introduced through the callback. Parameters are the mounted Editor instance and Monaco API.";
133
+ ds:optional "true"
134
+ ].