@canonical/design-system 0.47.0 → 0.48.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 (354) hide show
  1. package/data/apps/component/file_tree.ttl +1 -2
  2. package/data/apps/component/inline_panel.ttl +2 -3
  3. package/data/apps/component/log.ttl +0 -1
  4. package/data/apps/component/navigation.ttl +0 -1
  5. package/data/apps/component/notification.ttl +0 -1
  6. package/data/apps/component/side_navigation.ttl +678 -5
  7. package/data/apps/component/skeleton_loading.ttl +0 -1
  8. package/data/apps/component/status_bar.ttl +0 -1
  9. package/data/apps/component/toolbar.ttl +0 -1
  10. package/data/apps/group/notifications.ttl +0 -1
  11. package/data/apps/layout/application_layout.ttl +1 -2
  12. package/data/apps/layout/content_layout.ttl +1 -2
  13. package/data/apps/layout/empty_layout.ttl +0 -1
  14. package/data/apps/layout/list_page_layout.ttl +0 -1
  15. package/data/apps/layout/login_layout.ttl +0 -1
  16. package/data/apps/layout/settings_page_layout.ttl +0 -1
  17. package/data/apps/layout/side_panel_form_layout.ttl +0 -1
  18. package/data/apps/layout/view_layout.ttl +0 -1
  19. package/data/apps/pattern/action_bar.ttl +0 -1
  20. package/data/apps/pattern/code_diff.ttl +2 -2
  21. package/data/apps/pattern/data_views.ttl +7 -7
  22. package/data/apps/pattern/datatable.ttl +7 -7
  23. package/data/apps/pattern/destructive_modal.ttl +0 -1
  24. package/data/apps/pattern/drawer.ttl +0 -1
  25. package/data/apps/pattern/keyboard_shortcuts.ttl +0 -1
  26. package/data/apps/pattern/notification_center.ttl +4 -5
  27. package/data/apps/pattern/page_header.ttl +17 -10
  28. package/data/apps/pattern/side_panel.ttl +221 -45
  29. package/data/apps/pattern/sidepanel_stacked.ttl +0 -1
  30. package/data/apps/subcomponent/data_table-action_bar.ttl +1 -1
  31. package/data/apps/subcomponent/data_table-body_cell.ttl +19 -19
  32. package/data/apps/subcomponent/data_table-group_header_row.ttl +1 -1
  33. package/data/apps/subcomponent/data_table-header_cell.ttl +11 -11
  34. package/data/apps/subcomponent/data_table-pagination_bar.ttl +7 -7
  35. package/data/apps/subcomponent/data_table-persistent_selection.ttl +2 -2
  36. package/data/apps/subcomponent/data_table-settings_menu.ttl +3 -3
  37. package/data/apps/subcomponent/data_views-filters.ttl +0 -1
  38. package/data/apps/subcomponent/data_views-saved_views.ttl +0 -1
  39. package/data/apps/subcomponent/data_views-sort_panel.ttl +0 -1
  40. package/data/apps/subcomponent/drawer-content.ttl +0 -1
  41. package/data/apps/subcomponent/drawer-footer.ttl +0 -1
  42. package/data/apps/subcomponent/drawer-header.ttl +0 -1
  43. package/data/apps/subcomponent/file_tree-node.ttl +0 -1
  44. package/data/apps/subcomponent/file_tree-search_box.ttl +13 -0
  45. package/data/apps/subcomponent/file_tree-tree_view.ttl +13 -0
  46. package/data/apps/subcomponent/git_diff_viewer-code_diff_viewer.ttl +13 -0
  47. package/data/apps/subcomponent/git_diff_viewer-file_header.ttl +13 -0
  48. package/data/apps/subcomponent/side_navigation-content.ttl +339 -3
  49. package/data/apps/subcomponent/side_navigation-context_switcher-field.ttl +18 -0
  50. package/data/apps/subcomponent/side_navigation-context_switcher-item_content.ttl +18 -0
  51. package/data/apps/subcomponent/side_navigation-context_switcher.ttl +172 -2
  52. package/data/apps/subcomponent/side_navigation-footer.ttl +270 -0
  53. package/data/apps/subcomponent/side_navigation-header.ttl +262 -0
  54. package/data/apps/subcomponent/side_navigation-item.ttl +115 -2
  55. package/data/apps/subcomponent/side_navigation-item_group.ttl +224 -2
  56. package/data/apps/subcomponent/side_panel-footer.ttl +39 -7
  57. package/data/apps/subcomponent/side_panel-header.ttl +86 -110
  58. package/data/apps_anbox/pattern/side_menu.ttl +5 -6
  59. package/data/apps_debcrafters/component/deb_package_card.ttl +0 -1
  60. package/data/apps_debcrafters/component/example.ttl +0 -1
  61. package/data/apps_debcrafters/component/my_fancy_component.ttl +0 -1
  62. package/data/apps_juju/pattern/single_select_multi_layered.ttl +0 -1
  63. package/data/apps_landscape/component/checkbox_group.ttl +26 -26
  64. package/data/apps_landscape/component/code_editor.ttl +32 -32
  65. package/data/apps_landscape/component/cron_schedule.ttl +2 -2
  66. package/data/apps_landscape/component/expandable_radio_group.ttl +18 -18
  67. package/data/apps_landscape/component/expandable_truncation.ttl +11 -11
  68. package/data/apps_landscape/component/form_section.ttl +2 -2
  69. package/data/apps_landscape/component/gpg_key_field.ttl +21 -21
  70. package/data/apps_landscape/component/grouped_select.ttl +23 -23
  71. package/data/apps_landscape/component/loading_state.ttl +6 -6
  72. package/data/apps_landscape/component/managed_file_input.ttl +13 -13
  73. package/data/apps_landscape/component/multi_select_field.ttl +44 -44
  74. package/data/apps_landscape/component/password_constraints.ttl +2 -2
  75. package/data/apps_landscape/component/progress_bar.ttl +15 -15
  76. package/data/apps_landscape/component/read_only_field.ttl +10 -10
  77. package/data/apps_landscape/component/search_help_popup.ttl +10 -10
  78. package/data/apps_landscape/component/search_query_editor.ttl +29 -29
  79. package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
  80. package/data/apps_landscape/pattern/content_blocks.ttl +16 -16
  81. package/data/apps_landscape/pattern/dashboard_page_composition.ttl +26 -26
  82. package/data/apps_landscape/pattern/delivery_scheduling.ttl +2 -2
  83. package/data/apps_landscape/pattern/form_field_help.ttl +12 -12
  84. package/data/apps_landscape/pattern/header_search_controls.ttl +26 -26
  85. package/data/apps_landscape/pattern/ignorable_notification.ttl +10 -10
  86. package/data/apps_landscape/pattern/information_grid.ttl +13 -13
  87. package/data/apps_landscape/pattern/instance_association.ttl +5 -5
  88. package/data/apps_landscape/pattern/process_flow.ttl +9 -9
  89. package/data/apps_landscape/pattern/progressively_expandable_table.ttl +29 -29
  90. package/data/apps_landscape/pattern/recurring_schedule.ttl +4 -4
  91. package/data/apps_landscape/pattern/responsive_action_group.ttl +11 -11
  92. package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
  93. package/data/apps_landscape/pattern/responsive_table_filters.ttl +9 -9
  94. package/data/apps_landscape/pattern/side_panel_form_actions.ttl +30 -30
  95. package/data/apps_landscape/pattern/sortable_list.ttl +11 -11
  96. package/data/apps_landscape/pattern/table_filter.ttl +40 -40
  97. package/data/apps_landscape/pattern/table_filter_chips.ttl +44 -44
  98. package/data/apps_landscape/pattern/table_pagination.ttl +48 -48
  99. package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +18 -18
  100. package/data/apps_landscape/subcomponent/bold_substring.ttl +6 -6
  101. package/data/apps_landscape/subcomponent/inline_cell_input.ttl +7 -7
  102. package/data/apps_landscape/subcomponent/label_with_description.ttl +10 -10
  103. package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +9 -9
  104. package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
  105. package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +14 -14
  106. package/data/apps_launchpad/component/accordion.ttl +0 -1
  107. package/data/apps_launchpad/component/avatar.ttl +2 -2
  108. package/data/apps_launchpad/component/badge.ttl +2 -2
  109. package/data/apps_launchpad/component/button.ttl +2 -2
  110. package/data/apps_launchpad/component/combobox.ttl +2 -2
  111. package/data/apps_launchpad/component/description_list.ttl +1 -1
  112. package/data/apps_launchpad/component/drawer.ttl +0 -1
  113. package/data/apps_launchpad/component/link.ttl +0 -1
  114. package/data/apps_launchpad/component/markdown_editor.ttl +0 -1
  115. package/data/apps_launchpad/component/modal.ttl +6 -6
  116. package/data/apps_launchpad/component/pagination.ttl +0 -1
  117. package/data/apps_launchpad/component/popover.ttl +0 -1
  118. package/data/apps_launchpad/component/relative_timestamp.ttl +0 -1
  119. package/data/apps_launchpad/component/spinner.ttl +0 -1
  120. package/data/apps_launchpad/component/table.ttl +0 -1
  121. package/data/apps_launchpad/component/text_input.ttl +1 -1
  122. package/data/apps_launchpad/component/timestamp.ttl +0 -1
  123. package/data/apps_launchpad/component/tooltip.ttl +2 -2
  124. package/data/apps_launchpad/subcomponent/modal-content-body.ttl +0 -1
  125. package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +0 -1
  126. package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +0 -1
  127. package/data/apps_launchpad/subcomponent/modal-content-header.ttl +0 -1
  128. package/data/apps_launchpad/subcomponent/modal-content.ttl +0 -1
  129. package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +0 -1
  130. package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +0 -1
  131. package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +0 -1
  132. package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +0 -1
  133. package/data/apps_launchpad/subcomponent/side_panel-content.ttl +0 -1
  134. package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
  135. package/data/apps_lxd/component/output_field.ttl +7 -7
  136. package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +1 -1
  137. package/data/apps_lxd/view/network_topology.ttl +6 -6
  138. package/data/apps_portal/component/badge.ttl +0 -1
  139. package/data/apps_portal/component/credit_card_input.ttl +0 -1
  140. package/data/apps_portal/component/key_value_pair.ttl +0 -1
  141. package/data/apps_portal/pattern/purchase_summary.ttl +0 -1
  142. package/data/apps_portal/subcomponent/read_only_modal.ttl +0 -1
  143. package/data/apps_support/component/data_spotlight.ttl +0 -1
  144. package/data/apps_support/subcomponent/ai_prompt_input.ttl +0 -1
  145. package/data/apps_workplace/component/complex_multi_select.ttl +0 -1
  146. package/data/apps_workplace/component/label-highlight.ttl +2 -2
  147. package/data/apps_workplace/component/org_chart.ttl +0 -1
  148. package/data/apps_workplace/component/rule.ttl +0 -1
  149. package/data/apps_workplace/component/skip_link.ttl +0 -1
  150. package/data/apps_workplace/component/theme_switcher.ttl +0 -1
  151. package/data/apps_workplace/pattern/callout_numbers_card.ttl +1 -1
  152. package/data/apps_workplace/pattern/confirmation_modal.ttl +0 -1
  153. package/data/apps_workplace/pattern/org_event_card.ttl +0 -1
  154. package/data/apps_workplace/subcomponent/multi_select_input.ttl +0 -1
  155. package/data/documentation/layout/content_page_layout.ttl +0 -1
  156. package/data/documentation/layout/documentation_layout.ttl +0 -1
  157. package/data/documentation/layout/library_layout.ttl +0 -1
  158. package/data/documentation/layout/search_page_layout.ttl +0 -1
  159. package/data/documentation/pattern/library_side_navigation.ttl +1 -1
  160. package/data/global/component/accordion.ttl +16 -16
  161. package/data/global/component/announcement.ttl +2 -2
  162. package/data/global/component/avatar.ttl +0 -1
  163. package/data/global/component/badge.ttl +11 -11
  164. package/data/global/component/breadcrumbs.ttl +9 -9
  165. package/data/global/component/button.ttl +11 -11
  166. package/data/global/component/button_link.ttl +0 -1
  167. package/data/global/component/card.ttl +2 -2
  168. package/data/global/component/checkbox_field.ttl +0 -1
  169. package/data/global/component/chip.ttl +15 -15
  170. package/data/global/component/choices_field.ttl +0 -1
  171. package/data/global/component/code_snippet-content.ttl +0 -1
  172. package/data/global/component/code_snippet-header.ttl +0 -1
  173. package/data/global/component/code_snippet.ttl +2 -2
  174. package/data/global/component/color_field.ttl +0 -1
  175. package/data/global/component/combobox_field.ttl +0 -1
  176. package/data/global/component/contextual_menu.ttl +10 -9
  177. package/data/global/component/{tooltip_data.ttl → data_tooltip.ttl} +41 -55
  178. package/data/global/component/date_field.ttl +0 -1
  179. package/data/global/component/date_time_field.ttl +0 -1
  180. package/data/global/component/drag_and_drop_list.ttl +0 -1
  181. package/data/global/component/dropdown_button.ttl +3 -3
  182. package/data/global/component/file_upload_field.ttl +2 -2
  183. package/data/global/component/heading.ttl +1 -1
  184. package/data/global/component/hidden_field.ttl +0 -1
  185. package/data/global/component/icon.ttl +3 -3
  186. package/data/global/component/icon_button.ttl +119 -6
  187. package/data/global/component/icon_in_container.ttl +2 -3
  188. package/data/global/component/key_value_pair.ttl +0 -1
  189. package/data/global/component/keyboard_key.ttl +0 -1
  190. package/data/global/component/link.ttl +0 -1
  191. package/data/global/component/links.ttl +0 -1
  192. package/data/global/component/markdown_editor_field.ttl +0 -1
  193. package/data/global/component/mode_switcher.ttl +0 -1
  194. package/data/global/component/month_field.ttl +0 -1
  195. package/data/global/component/notification_inline.ttl +0 -1
  196. package/data/global/component/notification_toast.ttl +0 -1
  197. package/data/global/component/number_field.ttl +0 -1
  198. package/data/global/component/pagination.ttl +0 -1
  199. package/data/global/component/password_field.ttl +0 -1
  200. package/data/global/component/phone_field.ttl +0 -1
  201. package/data/global/component/popover.ttl +0 -1
  202. package/data/global/component/rating_field.ttl +0 -1
  203. package/data/global/component/relative_timestamp.ttl +0 -1
  204. package/data/global/component/rich_choices_field.ttl +0 -1
  205. package/data/global/component/rich_text_editor.ttl +0 -1
  206. package/data/global/component/rich_text_field.ttl +0 -1
  207. package/data/global/component/search_field.ttl +0 -1
  208. package/data/global/component/segmented_control.ttl +0 -1
  209. package/data/global/component/segmented_control_field.ttl +0 -1
  210. package/data/global/component/select_field.ttl +0 -1
  211. package/data/global/component/switch_field.ttl +0 -1
  212. package/data/global/component/tag.ttl +2 -2
  213. package/data/global/component/text_field.ttl +0 -1
  214. package/data/global/component/textarea_field.ttl +0 -1
  215. package/data/global/component/tile.ttl +9 -9
  216. package/data/global/component/time_field.ttl +0 -1
  217. package/data/global/component/timestamp.ttl +0 -1
  218. package/data/global/component/tooltip.ttl +31 -123
  219. package/data/global/component/{tooltip_wrapper.ttl → wrapper_tooltip.ttl} +45 -53
  220. package/data/global/group/buttons.ttl +0 -1
  221. package/data/global/group/cards.ttl +0 -1
  222. package/data/global/group/code_snippets.ttl +0 -1
  223. package/data/global/group/key_value_pairs.ttl +0 -1
  224. package/data/global/group/keyboard_keys.ttl +0 -1
  225. package/data/global/group/tiles.ttl +0 -1
  226. package/data/global/layout/error_layout.ttl +0 -1
  227. package/data/global/layout/identity_page_form.ttl +0 -1
  228. package/data/global/modifier/achromat.ttl +8 -0
  229. package/data/global/modifier/dark.ttl +1 -1
  230. package/data/global/modifier/deprecated.ttl +8 -0
  231. package/data/global/modifier/deutan.ttl +8 -0
  232. package/data/global/modifier/elevated.ttl +1 -1
  233. package/data/global/modifier/end_of_life.ttl +8 -0
  234. package/data/global/modifier/less.ttl +8 -0
  235. package/data/global/modifier/light.ttl +1 -1
  236. package/data/global/modifier/lts.ttl +8 -0
  237. package/data/global/modifier/modal.ttl +1 -1
  238. package/data/global/modifier/more.ttl +8 -0
  239. package/data/global/modifier/protan.ttl +8 -0
  240. package/data/global/modifier/standard.ttl +8 -0
  241. package/data/global/modifier/tritan.ttl +8 -0
  242. package/data/global/modifier/typical.ttl +8 -0
  243. package/data/global/modifier_family/{mode.ttl → color.ttl} +2 -2
  244. package/data/global/modifier_family/color_vision.ttl +9 -0
  245. package/data/global/modifier_family/contrast.ttl +9 -0
  246. package/data/global/modifier_family/elevation.ttl +9 -0
  247. package/data/global/modifier_family/support.ttl +9 -0
  248. package/data/global/modifier_family/surface.ttl +1 -1
  249. package/data/global/pattern/description_list.ttl +0 -1
  250. package/data/global/pattern/field.ttl +0 -1
  251. package/data/global/pattern/filter.ttl +0 -1
  252. package/data/global/pattern/form_login.ttl +0 -1
  253. package/data/global/pattern/info_table.ttl +0 -1
  254. package/data/global/pattern/modal.ttl +197 -141
  255. package/data/global/pattern/stepper.ttl +0 -1
  256. package/data/global/pattern/table_of_contents.ttl +0 -1
  257. package/data/global/pattern/timeline.ttl +22 -22
  258. package/data/global/pattern/top_navigation.ttl +0 -1
  259. package/data/global/subcomponent/accordion-item.ttl +1 -2
  260. package/data/global/subcomponent/breadcrumbs-item.ttl +0 -1
  261. package/data/global/subcomponent/card-content.ttl +1 -2
  262. package/data/global/subcomponent/card-footer.ttl +0 -1
  263. package/data/global/subcomponent/card-header.ttl +1 -2
  264. package/data/global/subcomponent/card-image.ttl +1 -2
  265. package/data/global/subcomponent/card-thumbnail.ttl +0 -1
  266. package/data/global/subcomponent/chart_legend.ttl +1 -2
  267. package/data/global/subcomponent/chart_legend_item.ttl +1 -2
  268. package/data/global/subcomponent/checkbox_input.ttl +0 -1
  269. package/data/global/subcomponent/color_input.ttl +0 -1
  270. package/data/global/subcomponent/combobox_input.ttl +0 -1
  271. package/data/global/subcomponent/contextual_menu-item.ttl +13 -0
  272. package/data/global/subcomponent/contextual_menu-list.ttl +13 -0
  273. package/data/global/subcomponent/contextual_menu-submenu.ttl +13 -0
  274. package/data/global/subcomponent/data_tooltip-chart_legend.ttl +133 -0
  275. package/data/global/subcomponent/date_input.ttl +0 -1
  276. package/data/global/subcomponent/date_time_input.ttl +0 -1
  277. package/data/global/subcomponent/field-description.ttl +1 -2
  278. package/data/global/subcomponent/field-error.ttl +1 -2
  279. package/data/global/subcomponent/field-label.ttl +1 -2
  280. package/data/global/subcomponent/file_upload_input.ttl +3 -3
  281. package/data/global/subcomponent/hidden_input.ttl +0 -1
  282. package/data/global/subcomponent/kvp_container.ttl +1 -2
  283. package/data/global/subcomponent/kvpitem_base.ttl +1 -2
  284. package/data/global/subcomponent/markdown_editor_input.ttl +0 -1
  285. package/data/global/subcomponent/modal-content.ttl +4 -13
  286. package/data/global/subcomponent/modal-footer.ttl +21 -29
  287. package/data/global/subcomponent/modal-header.ttl +53 -141
  288. package/data/global/subcomponent/month_input.ttl +0 -1
  289. package/data/global/subcomponent/number_input.ttl +0 -1
  290. package/data/global/subcomponent/password_input.ttl +0 -1
  291. package/data/global/subcomponent/phone_input.ttl +0 -1
  292. package/data/global/subcomponent/radio_input.ttl +0 -1
  293. package/data/global/subcomponent/range_input.ttl +0 -1
  294. package/data/global/subcomponent/rating_input.ttl +0 -1
  295. package/data/global/subcomponent/rich_text_input.ttl +0 -1
  296. package/data/global/subcomponent/search_input.ttl +8 -8
  297. package/data/global/subcomponent/segmented_control_input.ttl +0 -1
  298. package/data/global/subcomponent/select_input.ttl +0 -1
  299. package/data/global/subcomponent/spin_button.ttl +0 -1
  300. package/data/global/subcomponent/spinner.ttl +0 -1
  301. package/data/global/subcomponent/switch_input.ttl +0 -1
  302. package/data/global/subcomponent/table-cell.ttl +0 -1
  303. package/data/global/subcomponent/table-row.ttl +0 -1
  304. package/data/global/subcomponent/text_editor_input.ttl +0 -1
  305. package/data/global/subcomponent/text_input.ttl +0 -1
  306. package/data/global/subcomponent/textarea_input.ttl +1 -2
  307. package/data/global/subcomponent/tile-content.ttl +0 -1
  308. package/data/global/subcomponent/tile-header.ttl +5 -6
  309. package/data/global/subcomponent/time_input.ttl +0 -1
  310. package/data/global/subcomponent/timeline-content.ttl +1 -2
  311. package/data/global/subcomponent/timeline-event.ttl +1 -1
  312. package/data/global/variant/tooltip_dense.ttl +28 -3
  313. package/data/global/view/settings_view.ttl +0 -1
  314. package/data/global_dataviews/component/filter_button.ttl +3 -4
  315. package/data/global_dataviews/component/query_bar.ttl +1 -2
  316. package/data/global_dataviews/component/query_chip.ttl +1 -1
  317. package/data/global_dataviews/group/query_chips.ttl +1 -2
  318. package/data/global_dataviews/subcomponent/query_chip-entry.ttl +1 -2
  319. package/data/global_dataviews/subcomponent/query_chip-segment.ttl +1 -2
  320. package/data/global_dataviews/subcomponent/query_input.ttl +1 -2
  321. package/data/sites/component/quote.ttl +0 -1
  322. package/data/sites/component/rule.ttl +0 -1
  323. package/data/sites/component/section.ttl +0 -1
  324. package/data/sites/component/store_card.ttl +7 -7
  325. package/data/sites/group/blog_cards.ttl +0 -1
  326. package/data/sites/group/xblog_elements.ttl +0 -1
  327. package/data/sites/layout/blog_page_layout.ttl +0 -1
  328. package/data/sites/layout/case_study_layout.ttl +0 -1
  329. package/data/sites/layout/site_layout.ttl +0 -1
  330. package/data/sites/pattern/hero-github.ttl +0 -1
  331. package/data/sites/pattern/hero.ttl +1 -2
  332. package/data/sites/pattern/info_table.ttl +0 -1
  333. package/data/sites/pattern/pricing_section.ttl +0 -1
  334. package/data/sites/pattern/pricing_table.ttl +0 -1
  335. package/data/sites/pattern/read_more_section.ttl +0 -1
  336. package/data/sites/pattern/skip_link.ttl +0 -1
  337. package/data/sites_webcomponentsprototype/component/blog_cards.ttl +0 -1
  338. package/data/sites_webcomponentsprototype/component/ctablock.ttl +0 -1
  339. package/data/sites_webcomponentsprototype/component/list.ttl +0 -1
  340. package/data/sites_webcomponentsprototype/component/tabs.ttl +0 -1
  341. package/data/sites_webcomponentsprototype/layout/site_layout.ttl +0 -1
  342. package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +0 -1
  343. package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +0 -1
  344. package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +0 -1
  345. package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +0 -1
  346. package/data/sites_webcomponentsprototype/pattern/hero.ttl +0 -1
  347. package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +0 -1
  348. package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +0 -1
  349. package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +0 -1
  350. package/package.json +6 -6
  351. package/data/apps/subcomponent/side_panel-content.ttl +0 -14
  352. package/skills/map-journeys/SKILL.md +0 -395
  353. package/skills/map-journeys/journey-graph.example.html +0 -298
  354. package/skills/model-domains/SKILL.md +0 -502
@@ -4,23 +4,15 @@
4
4
 
5
5
  ds:global.subcomponent.modal-footer a ds:Subcomponent;
6
6
  ds:name "Modal.Footer";
7
- ds:summary "";
8
- ds:anatomyDsl "---\n\n# Authored 2026-09-13 from @canonical/react-ds-global\n\n# src/lib/pattern/Modal/common/Footer/styles.css on .ds.modal-footer and its\n\n# ::before rule.\n\nnode:\n\n uri: global.subcomponent.modal-footer\n\n styles:\n\n layout.type: flex\n\n layout.direction: row\n\n layout.align: center\n\n layout.justify: flex-start\n\n # Never shrink: only the content pane gives way.\n\n layout.flex.grow: 0\n\n layout.flex.shrink: 0\n\n layout.flex.basis: auto\n\n # Positions the inset rule below.\n\n layout.position: relative\n\n # The inline padding --modal-padding-inline is shared with the header and\n\n # the content, so the three sections align.\n\n spacing.gap: dimension.100 # --modal-footer-gap, the inline gap between actions\n\n spacing.internal.block.start: dimension.200 # --modal-footer-padding-block, a surface inset\n\n spacing.internal.block.end: dimension.200 # --modal-footer-padding-block, a surface inset\n\n spacing.internal.inline.start: dimension.300 # --modal-padding-inline, a surface inset\n\n spacing.internal.inline.end: dimension.300 # --modal-padding-inline, a surface inset\n\n edges:\n\n - node:\n\n uri: global.component.button\n\n relation:\n\n cardinality: \"0..*\"\n\n slotName: default\n\n - node:\n\n role: divider rule\n\n styles:\n\n layout.position: absolute\n\n # Inset to the footer's own inline padding so it aligns with the\n\n # actions and the content. inset-block-start is a raw 0, which the\n\n # block-axis offset keys take a token only for.\n\n layout.offset.inline.start: dimension.300\n\n size.block: dimension.stroke.thickness.medium\n\n appearance.background: color.border.muted\n\n # The second of the two rules bounding the content. Drawn as ::before\n\n # rather than a border so it can be inset to the footer's inline\n\n # padding and align with the actions and the content.\n\n relation:\n\n cardinality: \"1\"\n\n";
9
- ds:anatomyClassic "";
10
- ds:usage "";
7
+ ds:summary "The modal footer sits at the bottom of the modal and holds its actions as buttons. At least one button is required. It is always present and stays fixed at the bottom while the content scrolls above it. A divider appears along its top edge when the content continues below the visible area.";
8
+ ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.modal-footer\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n # Anchors the overflow divider.\n layout.position: relative\n spacing.internal.block.start: dimension.200\n spacing.internal.block.end: dimension.200\n spacing.internal.inline.start: dimension.300\n spacing.internal.inline.end: dimension.300\n appearance.background: color.background\n edges:\n - node:\n role: button group\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n spacing.gap: dimension.100\n edges:\n - node:\n uri: global.component.button\n relation:\n cardinality: \"1..*\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: overflow divider\n styles:\n layout.position: absolute\n layout.offset.top: 0\n layout.offset.left: 0\n size.width: 100%\n # No stroke-thickness symbol of 2px is declared, so the thickness is a\n # literal.\n size.block: 2px\n appearance.background: color.border.muted\n relation:\n # Drawn along the footer's top edge only while the content continues\n # below it.\n cardinality: \"0..1\"";
9
+ ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-1356&t=3F9PQQB2fYjyLEYQ-1\n\n## Styling\n\n### Layout and spacing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-2100&t=3F9PQQB2fYjyLEYQ-1\n\n### Colors\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-3684&t=3F9PQQB2fYjyLEYQ-1";
10
+ ds:usage "The modal footer is a required part of [Modal](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-3zLQspaZbf), which covers when to use it.";
11
11
  ds:guidelines "";
12
12
  ds:tier ds:global;
13
13
  ds:documentationStage ds:tag.needsdesign;
14
14
  ds:parentComponent ds:global.pattern.modal;
15
15
  ds:hasTokenBinding [
16
- a ds:TokenBinding;
17
- ds:viaBlock ds:global.subcomponent.modal-footer;
18
- ds:node "$root";
19
- anatomy:styleKey "spacing.gap";
20
- anatomy:styleState "default";
21
- ds:rank 1;
22
- ds:consumesSymbol dt:dimension.100
23
- ], [
24
16
  a ds:TokenBinding;
25
17
  ds:viaBlock ds:global.subcomponent.modal-footer;
26
18
  ds:node "$root";
@@ -52,6 +44,22 @@ ds:global.subcomponent.modal-footer a ds:Subcomponent;
52
44
  anatomy:styleState "default";
53
45
  ds:rank 1;
54
46
  ds:consumesSymbol dt:dimension.300
47
+ ], [
48
+ a ds:TokenBinding;
49
+ ds:viaBlock ds:global.subcomponent.modal-footer;
50
+ ds:node "$root";
51
+ anatomy:styleKey "appearance.background";
52
+ anatomy:styleState "default";
53
+ ds:rank 1;
54
+ ds:consumesSymbol dt:color.background
55
+ ], [
56
+ a ds:TokenBinding;
57
+ ds:viaBlock ds:global.subcomponent.modal-footer;
58
+ ds:node "$root/button group";
59
+ anatomy:styleKey "spacing.gap";
60
+ anatomy:styleState "default";
61
+ ds:rank 1;
62
+ ds:consumesSymbol dt:dimension.100
55
63
  ], [
56
64
  a ds:TokenBinding;
57
65
  ds:viaBlock ds:global.component.button;
@@ -231,23 +239,7 @@ ds:global.subcomponent.modal-footer a ds:Subcomponent;
231
239
  ], [
232
240
  a ds:TokenBinding;
233
241
  ds:viaBlock ds:global.subcomponent.modal-footer;
234
- ds:node "$root/divider rule";
235
- anatomy:styleKey "layout.offset.inline.start";
236
- anatomy:styleState "default";
237
- ds:rank 1;
238
- ds:consumesSymbol dt:dimension.300
239
- ], [
240
- a ds:TokenBinding;
241
- ds:viaBlock ds:global.subcomponent.modal-footer;
242
- ds:node "$root/divider rule";
243
- anatomy:styleKey "size.block";
244
- anatomy:styleState "default";
245
- ds:rank 1;
246
- ds:consumesSymbol dt:dimension.stroke.thickness.medium
247
- ], [
248
- a ds:TokenBinding;
249
- ds:viaBlock ds:global.subcomponent.modal-footer;
250
- ds:node "$root/divider rule";
242
+ ds:node "$root/overflow divider";
251
243
  anatomy:styleKey "appearance.background";
252
244
  anatomy:styleState "default";
253
245
  ds:rank 1;
@@ -4,10 +4,10 @@
4
4
 
5
5
  ds:global.subcomponent.modal-header a ds:Subcomponent;
6
6
  ds:name "Modal.Header";
7
- ds:summary "";
8
- ds:anatomyDsl "--- \n# Authored 2026-09-13 from @canonical/react-ds-global \n# src/lib/pattern/Modal/common/Header/styles.css on .ds.modal-header and its \n# child selectors (::after, > .title, > .close). \n# Re-authored 2026-09-22: the title now reads the heading-2 scale instead of \n# the text-primary ramp; the header comment and the spacing bindings are \n# unchanged. \nnode: \n uri: global.subcomponent.modal-header \n styles: \n layout.type: flex \n layout.direction: row \n layout.align: center \n layout.justify: space-between \n # Never shrink: only the content pane gives way. \n layout.flex.grow: 0 \n layout.flex.shrink: 0 \n layout.flex.basis: auto \n # Positions the inset rule below. \n layout.position: relative \n # The inline padding --modal-padding-inline is shared with the content and \n # the footer, so title, rules, content and actions align on the same two \n # edges. \n spacing.gap: dimension.200 # --modal-header-gap, the inline gap between title and dismiss \n spacing.internal.block.start: dimension.200 # --modal-header-padding-block, a surface inset \n spacing.internal.block.end: dimension.200 # --modal-header-padding-block, a surface inset \n spacing.internal.inline.start: dimension.300 # --modal-padding-inline, a surface inset \n spacing.internal.inline.end: dimension.300 # --modal-padding-inline, a surface inset \n edges: \n - node: \n role: title \n styles: \n layout.flex.grow: 1 \n layout.flex.shrink: 1 \n layout.flex.basis: 0% \n # The title reads as a heading, not body text, so it consumes the \n # heading-2 scale exactly like the `h2` element rule does \n # (@canonical/styles-typography, elements.css). It stays a `span`, not an \n # `h2`: a modal opens from anywhere in the document, so no heading \n # level would be right everywhere, and the dialog is named through \n # aria-labelledby instead; only the type scale is borrowed, never \n # the outline semantics. All five of the composite's facets are \n # read (--modal-header-font-family / -font-size / -font-weight / \n # -letter-spacing / -line-height alias the typography.heading.2 \n # tokens), declared on .ds.modal-header rather than :root: the \n # typography ramp is restated per surface, and a var() inside a \n # custom property is substituted where the declaration sits, so a \n # :root declaration would freeze the root value past the context \n # the header renders inside. \n typography.font: typography.heading.2 \n typography.weight: typography.weight.light \n relation: \n cardinality: \"1\" \n slotName: default \n - node: \n uri: global.component.button \n props: \n icon: close \n styles: \n layout.flex.grow: 0 \n layout.flex.shrink: 0 \n layout.flex.basis: auto \n # The dismiss control equalises Button's own inline padding through the \n # component's custom-property API — --button-padding-inline-start and \n # -end both to dimension.100 — because Button tightens the start side \n # when it carries an icon and an icon-only button then reads lopsided. \n # The dimension is what the override writes, and writing the action \n # inset role instead would assert the very padding it exists to change. \n spacing.internal.inline.start: dimension.100 # --button-padding-inline-start \n spacing.internal.inline.end: dimension.100 # --button-padding-inline-end \n # The implementation also sets importance=\"tertiary\" on this Button. \n # That is not pinned: `importance` is a modifier family Button \n # consumes (ds:hasModifierFamily), not one of its ds:hasProperty \n # names, and a pin asserts a prop value. \n relation: \n cardinality: \"0..1\" \n - node: \n role: divider rule \n styles: \n layout.position: absolute \n # Inset to the header's own inline padding so it aligns with the \n # title, the content and the actions. inset-block-end is a raw 0, \n # which the block-axis offset keys take a token only for. \n layout.offset.inline.start: dimension.300 \n size.block: dimension.stroke.thickness.medium \n appearance.background: color.border.muted \n # The first of the two rules bounding the content. Drawn as ::after \n # rather than a border so it can be inset to the header's inline \n # padding and align with the title, the content and the actions. \n relation: \n cardinality: \"1\"";
9
- ds:anatomyClassic "";
10
- ds:usage "";
7
+ ds:summary "The modal header sits at the top of the modal and names it with a title. It holds a close button for dismissing the modal. It is always present and stays fixed at the top while the content scrolls beneath it. A divider appears along its bottom edge when the content continues above the visible area.";
8
+ ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.modal-header\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n # Anchors the overflow divider.\n layout.position: relative\n spacing.gap: dimension.200\n spacing.internal.block.start: dimension.200\n spacing.internal.block.end: dimension.200\n spacing.internal.inline.start: dimension.300\n spacing.internal.inline.end: dimension.300\n appearance.background: color.background\n edges:\n - node:\n role: title\n styles:\n layout.flex.grow: 1\n typography.font: typography.heading.2\n typography.color: color.text\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: global.component.icon_button\n props:\n icon: close\n styles:\n layout.flex.shrink: 0\n relation:\n cardinality: \"1\"\n - node:\n role: overflow divider\n styles:\n layout.position: absolute\n layout.offset.bottom: 0\n layout.offset.left: 0\n size.width: 100%\n # No stroke-thickness symbol of 2px is declared, so the thickness is a\n # literal.\n size.block: 2px\n appearance.background: color.border.muted\n relation:\n # Drawn along the header's bottom edge only while the content continues\n # above it.\n cardinality: \"0..1\"";
9
+ ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-1164&t=3F9PQQB2fYjyLEYQ-1\n\n## Styling\n\n### Layout and spacing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-1449&t=3F9PQQB2fYjyLEYQ-1\n\n### Colors\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-3252&t=3F9PQQB2fYjyLEYQ-1\n\n### Typography\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-4116&t=3F9PQQB2fYjyLEYQ-1";
10
+ ds:usage " The modal header is a required part of [Modal](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-3zLQspaZbf), which covers when to use it.";
11
11
  ds:guidelines "";
12
12
  ds:tier ds:global;
13
13
  ds:documentationStage ds:tag.needsdesign;
@@ -55,231 +55,143 @@ ds:global.subcomponent.modal-header a ds:Subcomponent;
55
55
  ], [
56
56
  a ds:TokenBinding;
57
57
  ds:viaBlock ds:global.subcomponent.modal-header;
58
- ds:node "$root/title";
59
- anatomy:styleKey "typography.font";
58
+ ds:node "$root";
59
+ anatomy:styleKey "appearance.background";
60
60
  anatomy:styleState "default";
61
61
  ds:rank 1;
62
- ds:consumesSymbol dt:typography.heading.2
62
+ ds:consumesSymbol dt:color.background
63
63
  ], [
64
64
  a ds:TokenBinding;
65
65
  ds:viaBlock ds:global.subcomponent.modal-header;
66
66
  ds:node "$root/title";
67
- anatomy:styleKey "typography.weight";
68
- anatomy:styleState "default";
69
- ds:rank 1;
70
- ds:consumesSymbol dt:typography.weight.light
71
- ], [
72
- a ds:TokenBinding;
73
- ds:viaBlock ds:global.subcomponent.modal-header;
74
- ds:node "$root/global.component.button";
75
- anatomy:styleKey "spacing.internal.inline.start";
67
+ anatomy:styleKey "typography.font";
76
68
  anatomy:styleState "default";
77
69
  ds:rank 1;
78
- ds:consumesSymbol dt:dimension.100
70
+ ds:consumesSymbol dt:typography.heading.2
79
71
  ], [
80
72
  a ds:TokenBinding;
81
73
  ds:viaBlock ds:global.subcomponent.modal-header;
82
- ds:node "$root/global.component.button";
83
- anatomy:styleKey "spacing.internal.inline.end";
74
+ ds:node "$root/title";
75
+ anatomy:styleKey "typography.color";
84
76
  anatomy:styleState "default";
85
77
  ds:rank 1;
86
- ds:consumesSymbol dt:dimension.100
78
+ ds:consumesSymbol dt:color.text
87
79
  ], [
88
80
  a ds:TokenBinding;
89
- ds:viaBlock ds:global.component.button;
81
+ ds:viaBlock ds:global.component.icon_button;
90
82
  ds:node "$root";
91
- anatomy:styleKey "appearance.border.width";
83
+ anatomy:styleKey "appearance.background";
92
84
  anatomy:styleState "default";
93
85
  ds:rank 1;
94
- ds:consumesSymbol dt:dimension.stroke.thickness.medium
86
+ ds:consumesSymbol dt:surface.color.foreground.ghost
95
87
  ], [
96
88
  a ds:TokenBinding;
97
- ds:viaBlock ds:global.component.button;
89
+ ds:viaBlock ds:global.component.icon_button;
98
90
  ds:node "$root";
99
91
  anatomy:styleKey "appearance.background";
100
92
  anatomy:styleState "default";
101
- ds:rank 1;
102
- ds:consumesSymbol dt:modifier.color.foreground.primary
93
+ ds:rank 2;
94
+ ds:consumesSymbol dt:modifier.color.foreground.ghost
103
95
  ], [
104
96
  a ds:TokenBinding;
105
- ds:viaBlock ds:global.component.button;
97
+ ds:viaBlock ds:global.component.icon_button;
106
98
  ds:node "$root";
107
99
  anatomy:styleKey "appearance.background";
108
100
  anatomy:styleState "default";
109
- ds:rank 2;
110
- ds:consumesSymbol dt:color.foreground.primary
101
+ ds:rank 3;
102
+ ds:consumesSymbol dt:color.foreground.ghost
111
103
  ], [
112
104
  a ds:TokenBinding;
113
- ds:viaBlock ds:global.component.button;
105
+ ds:viaBlock ds:global.component.icon_button;
114
106
  ds:node "$root";
115
107
  anatomy:styleKey "appearance.background";
116
108
  anatomy:styleState "hover";
117
109
  ds:rank 1;
118
- ds:consumesSymbol dt:color.foreground.primary.hover
110
+ ds:consumesSymbol dt:color.foreground.ghost.hover
119
111
  ], [
120
112
  a ds:TokenBinding;
121
- ds:viaBlock ds:global.component.button;
113
+ ds:viaBlock ds:global.component.icon_button;
122
114
  ds:node "$root";
123
115
  anatomy:styleKey "appearance.background";
124
116
  anatomy:styleState "active";
125
117
  ds:rank 1;
126
- ds:consumesSymbol dt:color.foreground.primary.active
118
+ ds:consumesSymbol dt:color.foreground.ghost.active
127
119
  ], [
128
120
  a ds:TokenBinding;
129
- ds:viaBlock ds:global.component.button;
121
+ ds:viaBlock ds:global.component.icon_button;
130
122
  ds:node "$root";
131
123
  anatomy:styleKey "appearance.background";
132
124
  anatomy:styleState "disabled";
133
125
  ds:rank 1;
134
- ds:consumesSymbol dt:color.foreground.primary.disabled
126
+ ds:consumesSymbol dt:color.foreground.ghost.disabled
135
127
  ], [
136
128
  a ds:TokenBinding;
137
- ds:viaBlock ds:global.component.button;
129
+ ds:viaBlock ds:global.component.icon_button;
138
130
  ds:node "$root";
139
- anatomy:styleKey "appearance.border.color";
140
- anatomy:styleState "default";
141
- ds:rank 1;
142
- ds:consumesSymbol dt:modifier.color.border
143
- ], [
144
- a ds:TokenBinding;
145
- ds:viaBlock ds:global.component.button;
146
- ds:node "$root";
147
- anatomy:styleKey "appearance.border.color";
148
- anatomy:styleState "default";
149
- ds:rank 2;
150
- ds:consumesSymbol dt:color.border.highlighted
151
- ], [
152
- a ds:TokenBinding;
153
- ds:viaBlock ds:global.component.button;
154
- ds:node "$root";
155
- anatomy:styleKey "appearance.border.color";
156
- anatomy:styleState "default";
157
- ds:rank 3;
158
- ds:consumesSymbol dt:color.border
159
- ], [
160
- a ds:TokenBinding;
161
- ds:viaBlock ds:global.component.button;
162
- ds:node "$root";
163
- anatomy:styleKey "appearance.border.color";
164
- anatomy:styleState "disabled";
165
- ds:rank 1;
166
- ds:consumesSymbol dt:color.border.highlighted.disabled
167
- ], [
168
- a ds:TokenBinding;
169
- ds:viaBlock ds:global.component.button;
170
- ds:node "$root";
171
- anatomy:styleKey "typography.color";
172
- anatomy:styleState "default";
131
+ anatomy:styleKey "appearance.outline.color";
132
+ anatomy:styleState "focus";
173
133
  ds:rank 1;
174
- ds:consumesSymbol dt:modifier.color.text
134
+ ds:consumesSymbol dt:modifier.color.focusRing
175
135
  ], [
176
136
  a ds:TokenBinding;
177
- ds:viaBlock ds:global.component.button;
137
+ ds:viaBlock ds:global.component.icon_button;
178
138
  ds:node "$root";
179
- anatomy:styleKey "typography.color";
180
- anatomy:styleState "default";
139
+ anatomy:styleKey "appearance.outline.color";
140
+ anatomy:styleState "focus";
181
141
  ds:rank 2;
182
- ds:consumesSymbol dt:color.text
183
- ], [
184
- a ds:TokenBinding;
185
- ds:viaBlock ds:global.component.button;
186
- ds:node "$root";
187
- anatomy:styleKey "typography.color";
188
- anatomy:styleState "disabled";
189
- ds:rank 1;
190
- ds:consumesSymbol dt:color.text.disabled
191
- ], [
192
- a ds:TokenBinding;
193
- ds:viaBlock ds:global.component.button;
194
- ds:node "$root";
195
- anatomy:styleKey "typography.font";
196
- anatomy:styleState "default";
197
- ds:rank 1;
198
- ds:consumesSymbol dt:typography.text.primary
199
- ], [
200
- a ds:TokenBinding;
201
- ds:viaBlock ds:global.component.button;
202
- ds:node "$root";
203
- anatomy:styleKey "spacing.gap";
204
- anatomy:styleState "default";
205
- ds:rank 1;
206
- ds:consumesSymbol dt:dimension.100
142
+ ds:consumesSymbol dt:color.focusRing
207
143
  ], [
208
144
  a ds:TokenBinding;
209
- ds:viaBlock ds:global.component.button;
210
- ds:node "$root";
211
- anatomy:styleKey "spacing.internal.inline.start";
145
+ ds:viaBlock ds:global.component.icon_button;
146
+ ds:node "$root/icon wrapper/case[global.component.icon]";
147
+ anatomy:styleKey "size.width";
212
148
  anatomy:styleState "default";
213
149
  ds:rank 1;
214
150
  ds:consumesSymbol dt:dimension.200
215
151
  ], [
216
152
  a ds:TokenBinding;
217
- ds:viaBlock ds:global.component.button;
218
- ds:node "$root";
219
- anatomy:styleKey "spacing.internal.inline.end";
153
+ ds:viaBlock ds:global.component.icon_button;
154
+ ds:node "$root/icon wrapper/case[global.component.icon]";
155
+ anatomy:styleKey "size.height";
220
156
  anatomy:styleState "default";
221
157
  ds:rank 1;
222
158
  ds:consumesSymbol dt:dimension.200
223
159
  ], [
224
160
  a ds:TokenBinding;
225
- ds:viaBlock ds:global.component.button;
226
- ds:node "$root";
227
- anatomy:styleKey "appearance.outline.color";
228
- anatomy:styleState "focus";
229
- ds:rank 1;
230
- ds:consumesSymbol dt:modifier.color.focusRing
231
- ], [
232
- a ds:TokenBinding;
233
- ds:viaBlock ds:global.component.button;
234
- ds:node "$root";
235
- anatomy:styleKey "appearance.outline.color";
236
- anatomy:styleState "focus";
237
- ds:rank 2;
238
- ds:consumesSymbol dt:color.focusRing
239
- ], [
240
- a ds:TokenBinding;
241
- ds:viaBlock ds:global.component.button;
242
- ds:node "$root/icon";
161
+ ds:viaBlock ds:global.component.icon_button;
162
+ ds:node "$root/icon wrapper/case[global.component.icon]";
243
163
  anatomy:styleKey "typography.color";
244
164
  anatomy:styleState "default";
245
165
  ds:rank 1;
246
166
  ds:consumesSymbol dt:modifier.color.icon
247
167
  ], [
248
168
  a ds:TokenBinding;
249
- ds:viaBlock ds:global.component.button;
250
- ds:node "$root/icon";
169
+ ds:viaBlock ds:global.component.icon_button;
170
+ ds:node "$root/icon wrapper/case[global.component.icon]";
251
171
  anatomy:styleKey "typography.color";
252
172
  anatomy:styleState "default";
253
173
  ds:rank 2;
254
- ds:consumesSymbol dt:modifier.color.text
174
+ ds:consumesSymbol dt:color.icon
255
175
  ], [
256
176
  a ds:TokenBinding;
257
- ds:viaBlock ds:global.component.button;
258
- ds:node "$root/icon";
177
+ ds:viaBlock ds:global.component.icon_button;
178
+ ds:node "$root/icon wrapper/case[global.component.icon]";
259
179
  anatomy:styleKey "typography.color";
260
180
  anatomy:styleState "disabled";
261
181
  ds:rank 1;
262
182
  ds:consumesSymbol dt:color.icon.disabled
263
183
  ], [
264
184
  a ds:TokenBinding;
265
- ds:viaBlock ds:global.subcomponent.modal-header;
266
- ds:node "$root/divider rule";
267
- anatomy:styleKey "layout.offset.inline.start";
268
- anatomy:styleState "default";
269
- ds:rank 1;
270
- ds:consumesSymbol dt:dimension.300
271
- ], [
272
- a ds:TokenBinding;
273
- ds:viaBlock ds:global.subcomponent.modal-header;
274
- ds:node "$root/divider rule";
275
- anatomy:styleKey "size.block";
185
+ ds:viaBlock ds:global.component.icon_button;
186
+ ds:node "$root/icon wrapper/case[global.subcomponent.spinner]";
187
+ anatomy:styleKey "typography.color";
276
188
  anatomy:styleState "default";
277
189
  ds:rank 1;
278
- ds:consumesSymbol dt:dimension.stroke.thickness.medium
190
+ ds:consumesSymbol dt:color.icon
279
191
  ], [
280
192
  a ds:TokenBinding;
281
193
  ds:viaBlock ds:global.subcomponent.modal-header;
282
- ds:node "$root/divider rule";
194
+ ds:node "$root/overflow divider";
283
195
  anatomy:styleKey "appearance.background";
284
196
  anatomy:styleState "default";
285
197
  ds:rank 1;
@@ -6,7 +6,6 @@ ds:global.subcomponent.month_input a ds:Subcomponent;
6
6
  ds:name "MonthInput";
7
7
  ds:summary "";
8
8
  ds:anatomyDsl "";
9
- ds:anatomyClassic "";
10
9
  ds:usage "";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.number_input a ds:Subcomponent;
6
6
  ds:name "NumberInput";
7
7
  ds:summary "";
8
8
  ds:anatomyDsl "";
9
- ds:anatomyClassic "";
10
9
  ds:usage "";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.password_input a ds:Subcomponent;
6
6
  ds:name "PasswordInput";
7
7
  ds:summary "The masked secret-entry part a host field places in context: it obscures the value as it is entered and provides a reveal/mask toggle so the user can check what they typed. It is consumed by controls such as PasswordField and is not used on its own.";
8
8
  ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/PasswordInput/styles.css on .ds.input.password and its\n# child selectors (> input, > .reveal-toggle, > .reveal-toggle > .reveal-icon),\n# together with the shared `.ds.input.chrome` rule in src/index.css, which the\n# component's own class list (`ds input password chrome`) puts on this same\n# element.\nnode:\n uri: global.subcomponent.password_input\n styles:\n # A composite wrapper: it overrides the chrome's `display: block` and resets\n # its padding, because the inner <input> is the text-bearing leaf.\n layout.type: flex\n layout.align: stretch\n layout.position: relative\n layout.boxSizing: border-box\n typography.direction: inherit\n size.width: 100%\n spacing.internal.block.start: 0\n spacing.internal.block.end: 0\n spacing.internal.inline.start: 0\n spacing.internal.inline.end: 0\n # ── the shared input chrome (src/index.css, `.ds.input.chrome`) ──────────\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: solid\n # The base theme is bottom-border-only: `border-color` is set from\n # --form-input-border-color, and then the top, right and left colours are\n # overridden to `transparent` (--form-input-border-color-{top,right,left}),\n # so only the bottom edge paints. The four-side key therefore takes the\n # literal the three overridden sides end at, and the bottom key the token\n # the fourth falls through to.\n appearance.border.color: transparent\n appearance.border.bottom.color: color.border\n # A `.danger` field — a failed validation — repaints the bottom border alone,\n # through --form-input-border-color-bottom.\n appearance.border.bottom.color@invalid: color.border.error\n appearance.radius: dimension.radius.small\n appearance.background: color.foreground.input\n typography.color: color.text\n # The font-family, font-size and line-height facets of the text-primary\n # composite are read (--typography-text-primary-font-family, and its\n # font-size and line-height through --form-input-font-size and\n # --form-input-line-height), so the composite is bound once: typography.size\n # admits dimension.* alone.\n typography.font: typography.text.primary\n motion.property: border-color, box-shadow\n # The hover fill reads --hover--color-foreground-input first, a computed state\n # variable that no stratum declares as a symbol.\n appearance.background@hover: color.foreground.input.hover\n # Focus lights all four edges and drops the user-agent outline for a ring of\n # its own.\n appearance.border.color@focus: color.focusRing\n appearance.outline.style@focus: none\n # A disabled control keeps its border BOX so its height still matches an\n # enabled one, and drops only the paint.\n appearance.background@disabled: color.foreground.input.disabled\n appearance.border.color@disabled: transparent\n interaction.cursor@disabled: not-allowed\n # Not bound, and why:\n # - height reads --form-input-height, a calc() over --space-baseline, which\n # no stratum declares;\n # - padding-block reads --form-input-padding-block, then\n # --component-padding-block, neither of which is declared. A density scope\n # re-derives the INLINE padding (--form-input-padding-inline, from\n # --density-padding-inline then --space-200) and never padding-block;\n # - the focus ring and the disabled text colour are a box-shadow at\n # --form-focus-ring-color and a read of --disabled--color-text: no roster\n # key takes a box-shadow, and the computed state variable is not a symbol;\n # - the transition duration reads --motion-duration-fast, undeclared;\n # - a `.danger` field lights the focus ring at color.focusRing.error, which\n # needs the compound of invalid and focus that this version of the\n # notation reserves. Its bottom border is bound above.\n edges:\n - node:\n role: masked value\n styles:\n layout.flex.grow: 1\n layout.flex.shrink: 1\n layout.flex.basis: 0%\n size.min.width: 0\n appearance.border.style: none\n appearance.background: transparent\n appearance.outline.style: none\n typography.color: inherit\n typography.fontFamily: inherit\n # The leaf carries the inline padding, which reads\n # --form-input-padding-inline then --component-padding-inline: neither\n # is declared. Font-size, line-height and the baseline nudges come from\n # the `.p` class.\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: reveal toggle\n styles:\n layout.type: flex\n layout.align: center\n layout.justify: center\n appearance.border.style: none\n appearance.background: transparent\n typography.color: color.icon\n appearance.outline.style@focus: none\n interaction.cursor: pointer\n appearance.radius@focus: dimension.radius.small\n # The toggle keeps color.icon in every pointer state, per design\n # review, so there is no hover binding. Its focus ring is a box-shadow\n # at color.focusRing, which no roster key takes. padding-inline reads\n # --form-field-inline-gap then --container-gap-default, undeclared.\n edges:\n - node:\n role: reveal icon\n styles:\n size.width: dimension.200\n size.height: dimension.200\n appearance.background: currentColor\n # show.svg and hide.svg from @canonical/ds-assets, applied as a\n # mask keyed off data-state so the glyph takes currentColor; no\n # roster key takes a mask.\n relation:\n cardinality: \"1\"\n relation:\n # The toggle is rendered only when the input is `revealable`.\n cardinality: \"0..1\"\n slotName: suffix";
9
- ds:anatomyClassic "";
10
9
  ds:usage "The concealed single-line entry part a host places in context for sensitive text that must be obscured as it is typed.\n\n\n\n### When to use\n\n- A host collects a secret credential or sensitive string that should not be shown.\n\n- Typed characters must be masked from onlookers during entry.\n\n\n\n### When not to use\n\n- The text is ordinary and should remain readable — compose [TextInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-csRvI-VTpO) .";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.phone_input a ds:Subcomponent;
6
6
  ds:name "PhoneInput";
7
7
  ds:summary "The composite phone-entry part a host field places in context: a country selector paired with a number-entry area. It is consumed by controls such as PhoneField and is not used on its own.";
8
8
  ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/PhoneInput/styles.css on .ds.input.phone and its child\n# selectors (> .country-select, > .number-input), together with the shared\n# `.ds.input.chrome` rule in src/index.css, which the component's own class list\n# (`ds input phone chrome`) puts on this same element.\nnode:\n uri: global.subcomponent.phone_input\n styles:\n # A composite wrapper: two controls share one visual box, so it overrides the\n # chrome's `display: block` and resets its padding.\n layout.type: flex\n layout.align: stretch\n layout.boxSizing: border-box\n size.width: 100%\n spacing.internal.block.start: 0\n spacing.internal.block.end: 0\n spacing.internal.inline.start: 0\n spacing.internal.inline.end: 0\n # ── the shared input chrome (src/index.css, `.ds.input.chrome`) ──────────\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: solid\n # The base theme is bottom-border-only: `border-color` is set from\n # --form-input-border-color, and then the top, right and left colours are\n # overridden to `transparent` (--form-input-border-color-{top,right,left}),\n # so only the bottom edge paints. The four-side key therefore takes the\n # literal the three overridden sides end at, and the bottom key the token\n # the fourth falls through to.\n appearance.border.color: transparent\n appearance.border.bottom.color: color.border\n # A `.danger` field — a failed validation — repaints the bottom border alone,\n # through --form-input-border-color-bottom.\n appearance.border.bottom.color@invalid: color.border.error\n appearance.radius: dimension.radius.small\n appearance.background: color.foreground.input\n typography.color: color.text\n # The font-family, font-size and line-height facets of the text-primary\n # composite are read (--typography-text-primary-font-family, and its\n # font-size and line-height through --form-input-font-size and\n # --form-input-line-height), so the composite is bound once: typography.size\n # admits dimension.* alone.\n typography.font: typography.text.primary\n motion.property: border-color, box-shadow\n # The hover fill reads --hover--color-foreground-input first, a computed state\n # variable that no stratum declares as a symbol.\n appearance.background@hover: color.foreground.input.hover\n # Focus lights all four edges and drops the user-agent outline for a ring of\n # its own.\n appearance.border.color@focus: color.focusRing\n appearance.outline.style@focus: none\n # A disabled control keeps its border BOX so its height still matches an\n # enabled one, and drops only the paint.\n appearance.background@disabled: color.foreground.input.disabled\n appearance.border.color@disabled: transparent\n interaction.cursor@disabled: not-allowed\n # Not bound, and why:\n # - height reads --form-input-height, a calc() over --space-baseline, which\n # no stratum declares;\n # - padding-block reads --form-input-padding-block, then\n # --component-padding-block, neither of which is declared. A density scope\n # re-derives the INLINE padding (--form-input-padding-inline, from\n # --density-padding-inline then --space-200) and never padding-block;\n # - the focus ring and the disabled text colour are a box-shadow at\n # --form-focus-ring-color and a read of --disabled--color-text: no roster\n # key takes a box-shadow, and the computed state variable is not a symbol;\n # - the transition duration reads --motion-duration-fast, undeclared;\n # - a `.danger` field lights the focus ring at color.focusRing.error, which\n # needs the compound of invalid and focus that this version of the\n # notation reserves. Its bottom border is bound above.\n edges:\n - node:\n role: country selector\n styles:\n appearance.native: none\n appearance.border.style: none\n appearance.background: transparent\n typography.color: inherit\n typography.fontFamily: inherit\n typography.whiteSpace: nowrap\n interaction.cursor: pointer\n size.min.width: 5.5rem\n # The separator between the two controls: a border-inline-end at\n # --form-input-border-width. The roster has an inline-end colour key\n # but no inline-end width key, so only the colour is bound.\n appearance.border.inline.end.color: color.border\n # Focus tints the selector with the input hover fill; its first rank,\n # --hover--color-foreground-input, is a computed state variable that no\n # stratum declares as a symbol.\n appearance.background@focus: color.foreground.input.hover\n appearance.outline.style@focus: none\n interaction.cursor@disabled: not-allowed\n # Not bound: padding-inline and padding-inline-end read\n # --form-input-padding-inline / --form-field-inline-gap, then\n # --component-padding-inline / --container-gap-default, none declared;\n # the disabled text colour reads --form-input-color-disabled, i.e. the\n # computed --disabled--color-text; and the disabled separator colour is\n # `transparent`, which the inline-end colour key (token only) cannot\n # take. The `.p` class supplies font-size, line-height and the\n # baseline nudges.\n relation:\n cardinality: \"1\"\n - node:\n role: number entry\n styles:\n layout.flex.grow: 1\n layout.flex.shrink: 1\n layout.flex.basis: 0%\n size.min.width: 0\n appearance.border.style: none\n appearance.background: transparent\n appearance.outline.style: none\n typography.color: inherit\n typography.fontFamily: inherit\n interaction.cursor@disabled: not-allowed\n # The leaf carries the inline padding (--form-input-padding-inline,\n # then --component-padding-inline: undeclared), and its disabled text\n # colour reads the computed --disabled--color-text.\n relation:\n cardinality: \"1\"\n slotName: default";
9
- ds:anatomyClassic "";
10
9
  ds:usage "The telephone-number entry part a host places in context when the value follows dialling conventions.\n\n\n\n### When to use\n\n- A host collects a phone number that benefits from regional formatting and validation.\n\n- The value should be guided toward a recognised dialling pattern.\n\n\n\n### When not to use\n\n- The value is free-form text with no number conventions — compose [TextInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-csRvI-VTpO) .\n\n- The value is a general numeric quantity within a range — compose [RangeInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-UoMsaXBhOs) .";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.radio_input a ds:Subcomponent;
6
6
  ds:name "RadioInput";
7
7
  ds:summary "The atomic single-select option part a host places in context: one selectable choice within a mutually-exclusive set. It is consumed by a choices group (e.g. single-select Choices/SimpleChoices) which supplies the set, labelling, and validation; it is not used on its own.";
8
8
  ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/RadioInput/styles.css on .ds.form-radio. The atomic radio\n# control: a circular native input with the design-system selection chrome,\n# carrying no label — the host supplies it.\nnode:\n uri: global.subcomponent.radio_input\n styles:\n appearance.native: none\n layout.boxSizing: border-box\n # margin-inline reads --form-input-padding-inline, then\n # --component-padding-inline: neither is declared.\n # A 16px control: a fixed element size, deliberately NOT a baseline multiple.\n size.width: dimension.200\n size.height: dimension.200\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: solid\n appearance.border.color: color.border\n appearance.radius: 50%\n # The unselected fill reads the surface channel so the control adapts to\n # OnSurface stepping, then the flat token.\n appearance.background: [surface.color.foreground.radio.unselected, color.foreground.radio.unselected]\n appearance.background@hover: color.foreground.radio.unselected.hover\n # Selected, the ring border takes the selected token; the dot itself is a\n # radial-gradient (selected at 40%, unselected from 41%), which no roster key\n # takes. Its first rank, --surface-color-foreground-radio-selected, is not\n # declared: the surface family mints channels for the checkmark and the\n # unselected fill only.\n appearance.border.color@selected: color.foreground.radio.selected\n appearance.border.color@focus: color.focusRing\n appearance.outline.style@focus: none\n appearance.border.color@disabled: color.border.disabled\n appearance.background@disabled: color.foreground.radio.unselected.disabled\n interaction.cursor: pointer\n interaction.cursor@disabled: not-allowed\n motion.property: background-color, border-color\n # Not bound: the transition duration reads --motion-duration-fast; the focus\n # ring is a box-shadow at color.focusRing; and a hovered selected radio\n # repaints the gradient from --hover--color-foreground-radio-selected, a\n # computed state variable that is not a symbol and would need a compound\n # state in any case.";
9
- ds:anatomyClassic "";
10
9
  ds:usage "The mutually-exclusive single-choice entry part a host places in context when exactly one option must win from a small set.\n\n### When to use\n- A host presents a short, fully visible set of options where only one may be chosen.\n- Seeing all options side by side aids the decision.\n\n### When not to use\n- Several choices may be active at once — compose **CheckboxInput**.\n- The option set is long or searchable — compose **SelectInput** or **ComboboxInput**.";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.range_input a ds:Subcomponent;
6
6
  ds:name "RangeInput";
7
7
  ds:summary "The slider part a host field places in context: a track the user drags to set a value within bounds, paired with a live readout of the current value. Consumed by controls such as RangeField; not used on its own.";
8
8
  ds:anatomyDsl "---\n\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n\n# src/lib/subcomponent/RangeInput/styles.css on .ds.range (with its\n\n# ::-webkit-slider-runnable-track / ::-moz-range-track and\n\n# ::-webkit-slider-thumb / ::-moz-range-thumb) and on .ds.range-output. The\n\n# component renders a FRAGMENT — the slider and its live <output> readout are\n\n# siblings, with no wrapper element between them — so the root of this anatomy\n\n# is the subcomponent itself and carries no styles: `@implements` sits on the\n\n# component, and the .ds.range declarations belong to the slider child below.\n\n```\nnode:\n uri: global.subcomponent.range_input\n edges:\n - node:\n role: track\n styles:\n appearance.native: none\n size.width: 100%\n # The element box is as tall as the THUMB, so neither the thumb nor its\n # focus ring is ever clipped in a flex row; the visible bar is painted\n # by the track pseudo-elements and centred within this box.\n size.height: dimension.200\n appearance.background: transparent\n appearance.border.style: none\n appearance.outline.style: none\n interaction.cursor: pointer\n interaction.cursor@disabled: not-allowed\n edges:\n - node:\n role: bar\n styles:\n # The vendor track pseudo-element keeps a user-agent border even\n # after `appearance: none`, so the flat bar is painted here, 8px\n # tall, in both the WebKit and the Firefox spelling.\n size.height: dimension.100\n appearance.background: color.foreground.slider.track\n appearance.background@disabled: color.foreground.slider.track.disabled\n appearance.border.style: none\n appearance.radius: dimension.radius.small\n relation:\n cardinality: \"1\"\n - node:\n role: thumb\n styles:\n size.width: dimension.200\n size.height: dimension.200\n appearance.radius: 50%\n appearance.background: color.foreground.slider.progress\n appearance.background@disabled: color.foreground.slider.progress.disabled\n appearance.border.style: none\n interaction.cursor: pointer\n # margin-top re-centres the 16px thumb on the 8px bar as a calc()\n # over the two dimension tokens, and the focus ring is a\n # box-shadow at color.focusRing: neither has a roster key.\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: value readout\n styles:\n layout.type: block\n typography.align: center\n typography.color: color.text.muted\n # Font-size, line-height and the baseline nudges come from the `.p`\n # class on the <output>, not from this rule.\n relation:\n cardinality: \"1\"\n```\n\n";
9
- ds:anatomyClassic "";
10
9
  ds:usage "The bounded-quantity entry part a host places in context when a value is selected along a continuous span.\n\n\n\n### When to use\n\n- A host collects a numeric value between a known minimum and maximum.\n\n- Approximate, relative selection along a scale matters more than an exact figure.\n\n\n\n### When not to use\n\n- A precise number or arbitrary text is needed — compose [TextInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-csRvI-VTpO) .\n\n- The value is one option from a labelled set — compose [SelectInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-EVwqNhd3WH) or [RadioInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-x_sKubP8Qh) .";
11
10
  ds:guidelines "\n\nReference\n\n[Canonical internal] [DE080](https://docs.google.com/document/d/19k-5YOuQc6B82mYPEwvmlJpui3Oex4o8ACwKBbo-d44/edit?usp=sharing) - Accessibility consideration for syncing a slider and an input to control one value\n\n";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.rating_input a ds:Subcomponent;
6
6
  ds:name "RatingInput";
7
7
  ds:summary "";
8
8
  ds:anatomyDsl "";
9
- ds:anatomyClassic "";
10
9
  ds:usage "";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.rich_text_input a ds:Subcomponent;
6
6
  ds:name "RichTextInput";
7
7
  ds:summary "";
8
8
  ds:anatomyDsl "";
9
- ds:anatomyClassic "";
10
9
  ds:usage "";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -10,18 +10,18 @@ ds:global.subcomponent.search_input a ds:Subcomponent;
10
10
  ds:usage "The Search component provides users with a text input field to query and locate content within an application. It consists of an input field, a “search” icon for visual affordance, and a “clear” icon to reset the query. This component is well-suited for applications with substantial content where users benefit from quickly finding specific items, such as documentation sites, marketing sites and data-heavy dashboards.\n\n### When to Use\n\n- The application contains substantial content that users need to locate quickly\n- Users have a specific item or piece of information in mind and need to find it efficiently\n- Content is distributed across multiple pages, sections, or categories\n- The interface includes filterable lists, tables, or collections that benefit from query-based narrowing\n- Users are likely to repeat searches or refine queries during a session\n\n### When Not to Use\n\n- The content set is small enough that users can scan it without assistance\n- If filters better serves the use case\n- The application lacks sufficient content to warrant a dedicated search function\n- Users are engaged in a guided flow where search would interrupt the intended progression\n- The data structure does not support meaningful text-based querying";
11
11
  ds:guidelines "### Instant search vs submit-based search\n\nThe choice between instant search and submit-based search should be driven primarily by performance considerations. If the expected time for a search to execute exceeds one second, submit-based search is the appropriate choice. When search results can be returned in under one second, instant search may be considered.\n\nInstant search provides an improved user experience by making the application feel more responsive and real-time. This approach works best when searching small, well-defined domains such as settings menus, available actions, or filtered lists. Implementing a debounce on the input is optional but can help reduce unnecessary requests during rapid typing.\n\nSubmit-based search is appropriate when search performance cannot meet the responsiveness threshold required for instant search, or when the search domain is large and not well-defined. Examples include searching across an entire website, application, or external database where query execution inherently requires more time.\n\n### Suggested searches drawer\n\nSuggested search queries are presented in a drawer. They are only compatible with submit-based search. This feature displays possible queries to help users compose their search terms and understand available syntax. As the user types, the component can prefetch results based on the current partial query and display a summary of potential matches. This approach bridges the gap between the immediacy of instant search and the intentionality of submit-based search by providing feedback without committing to a full search execution.\n\n### Results display\n\nSearch results can be presented in several locations depending on context:\n\n- **Current page:** Displaying results on the current page is appropriate when searching within content that is already visible, such as filtering rows in a table or narrowing items on a listing page. This approach is also the standard for instant search implementations where results update in place.\n- **New page:** Results should be displayed on a new page when the content being searched is not currently visible in the interface, such as a global site search that spans multiple sections or content types. \n- **Drawer:** Presenting results in a drawer is suitable for instant search scenarios where an overlay provides quick access to matches without navigating away from the current context. In all display modes, highlighting matched strings within results helps users quickly identify why each result was returned.\n\n### Clear icon behavior\n\nThe clear icon resets the search query, but its broader effect depends on the search type in use. With instant search, clicking the clear icon also clears the displayed results, returning the interface to its pre-search state. With submit-based search, the clear button removes the query text but does not affect previously submitted results, as those results represent a completed action. When submit-based search is combined with a suggested searches drawer, the clear icon dismisses the suggestions and returns the drawer to its default state.\n\n### Keyboard navigation\n\nA well-designed search experience must be centered around keyboard interaction. Users should be able to complete their entire search workflow, including composing queries, reviewing suggestions, and selecting results, without reaching for a mouse. Click-dependent search interfaces introduce unnecessary friction and slow users down.\n\n### Placement\n\nThe placement of a search component should reflect the scope of content it searches:\n\n- **Global:** When search spans an entire application or website, the component belongs in the global navigation where it remains persistently accessible regardless of the current page. \n- **Page:** For search that applies to the content of a single page, position the component at the top of that page above the searchable content. \n- **Subsection:** When search targets a specific subsection, such as a panel or module within a larger page, place the search input directly above that subsection to clearly communicate its scope.";
12
12
  ds:tier ds:global;
13
- ds:documentationStage ds:tag.needstriage;
13
+ ds:changeLog [
14
+ a ds:ChangeLogEntry;
15
+ ds:timestamp "2026-04-27T00:00:00.000+02:00";
16
+ ds:changeType "change"
17
+ ];
14
18
  ds:hasProperty [
15
19
  a ds:Property;
16
20
  ds:name "Placeholder text";
17
21
  ds:summary "The placeholder text should specify what the scope of the search is. It should always include the word e.g. “Search machines”.";
18
22
  ds:propertyType "text";
19
23
  ds:optional "false";
20
- ds:constraints "Include “Search” at the beginning of the placeholder string.";
21
- ds:defaultValue "Search"
24
+ ds:defaultValue "Search";
25
+ ds:constraints "Include “Search” at the beginning of the placeholder string."
22
26
  ];
23
- ds:changeLog [
24
- a ds:ChangeLogEntry;
25
- ds:timestamp "2026-04-27T00:00:00.000+02:00";
26
- ds:changeType "change"
27
- ].
27
+ ds:documentationStage ds:tag.needstriage.
@@ -6,7 +6,6 @@ ds:global.subcomponent.segmented_control_input a ds:Subcomponent;
6
6
  ds:name "SegmentedControlInput";
7
7
  ds:summary "";
8
8
  ds:anatomyDsl "";
9
- ds:anatomyClassic "";
10
9
  ds:usage "";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.select_input a ds:Subcomponent;
6
6
  ds:name "SelectInput";
7
7
  ds:summary "The single-choice dropdown part a host field places in context: a collapsed control that reveals a list of mutually-exclusive options. Consumed by controls such as SelectField.";
8
8
  ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/SelectInput/styles.css on .ds.input.select, together with\n# the shared `.ds.input.chrome` rule in src/index.css, which the component's own\n# class list (`ds input select chrome`) puts on this same element. A native\n# <select>: the element itself is the text-bearing leaf and the options are its\n# own children.\nnode:\n uri: global.subcomponent.select_input\n styles:\n layout.type: block\n layout.boxSizing: border-box\n size.width: 100%\n appearance.native: none\n # The chevron is DRAWN, not masked: a <select> is a replaced element with no\n # ::before to mask, and a background-image SVG cannot be recoloured, so two\n # diagonally-striped linear-gradients butted together form the chevron\n # stroke, coloured by --select-caret-color (color.icon, then currentColor)\n # and sized by --select-caret-half (0.4em per half). The roster minted these\n # three primitive keys for exactly this case, so the literals are\n # transcribed; the two component-local variables stay in them, because that\n # is what the implementation writes.\n appearance.background.image: \"linear-gradient(45deg, transparent 42%, var(--select-caret-color) 42%, var(--select-caret-color) 58%, transparent 58%), linear-gradient(135deg, transparent 42%, var(--select-caret-color) 42%, var(--select-caret-color) 58%, transparent 58%)\"\n appearance.background.position: \"right calc(var(--form-input-padding-inline) + var(--select-caret-half)) center, right var(--form-input-padding-inline) center\"\n appearance.background.repeat: no-repeat\n appearance.background.size: var(--select-caret-half) var(--select-caret-half)\n # The element carries the inline padding itself (the chrome supplies only the\n # block padding): the start side reads --form-input-padding-inline, then\n # --component-padding-inline, neither declared, and the end side is a calc()\n # over it leaving room for the chevron.\n # ── the shared input chrome (src/index.css, `.ds.input.chrome`) ──────────\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: solid\n # The base theme is bottom-border-only: `border-color` is set from\n # --form-input-border-color, and then the top, right and left colours are\n # overridden to `transparent` (--form-input-border-color-{top,right,left}),\n # so only the bottom edge paints. The four-side key therefore takes the\n # literal the three overridden sides end at, and the bottom key the token\n # the fourth falls through to.\n appearance.border.color: transparent\n appearance.border.bottom.color: color.border\n # A `.danger` field — a failed validation — repaints the bottom border alone,\n # through --form-input-border-color-bottom.\n appearance.border.bottom.color@invalid: color.border.error\n appearance.radius: dimension.radius.small\n appearance.background: color.foreground.input\n typography.color: color.text\n # The font-family, font-size and line-height facets of the text-primary\n # composite are read (--typography-text-primary-font-family, and its\n # font-size and line-height through --form-input-font-size and\n # --form-input-line-height), so the composite is bound once: typography.size\n # admits dimension.* alone.\n typography.font: typography.text.primary\n motion.property: border-color, box-shadow\n # The hover fill reads --hover--color-foreground-input first, a computed state\n # variable that no stratum declares as a symbol.\n appearance.background@hover: color.foreground.input.hover\n # Focus lights all four edges and drops the user-agent outline for a ring of\n # its own.\n appearance.border.color@focus: color.focusRing\n appearance.outline.style@focus: none\n # A disabled control keeps its border BOX so its height still matches an\n # enabled one, and drops only the paint.\n appearance.background@disabled: color.foreground.input.disabled\n appearance.border.color@disabled: transparent\n interaction.cursor@disabled: not-allowed\n # Not bound, and why:\n # - height reads --form-input-height, a calc() over --space-baseline, which\n # no stratum declares;\n # - padding-block reads --form-input-padding-block, then\n # --component-padding-block, neither of which is declared. A density scope\n # re-derives the INLINE padding (--form-input-padding-inline, from\n # --density-padding-inline then --space-200) and never padding-block;\n # - the focus ring and the disabled text colour are a box-shadow at\n # --form-focus-ring-color and a read of --disabled--color-text: no roster\n # key takes a box-shadow, and the computed state variable is not a symbol;\n # - the transition duration reads --motion-duration-fast, undeclared;\n # - a `.danger` field lights the focus ring at color.focusRing.error, which\n # needs the compound of invalid and focus that this version of the\n # notation reserves. Its bottom border is bound above.\n edges:\n - node:\n role: option\n # The <option> children carry no rule of their own in the stylesheet.\n relation:\n cardinality: \"1..*\"\n slotName: default";
9
- ds:anatomyClassic "";
10
9
  ds:usage "The condensed single-choice entry part a host places in context to pick one option from a list revealed on demand.\n\n### When to use\n- A host offers a moderate set of options that should stay collapsed until needed.\n- Conserving space matters and all options need not be shown at once.\n\n### When not to use\n- The set is short and choosing benefits from full visibility — compose **RadioInput**.\n- The set is large enough to need typing to filter — compose **ComboboxInput**.\n- Several options may be selected together — compose **CheckboxInput**.";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.spin_button a ds:Subcomponent;
6
6
  ds:name "SpinButton";
7
7
  ds:summary "";
8
8
  ds:anatomyDsl "";
9
- ds:anatomyClassic "";
10
9
  ds:usage "";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.spinner a ds:Subcomponent;
6
6
  ds:name "Spinner";
7
7
  ds:summary "A looping activity indicator built from the spinner icon (the Canonical “circle of friends”), rotating continuously to signal that work is in progress.\n\nThe Spinner is a single element: the spinner icon rotated continuously by a motion animation. It has no text of its own — labeling is the responsibility of the consumer (e.g. Button, Combobox.Loading).";
8
8
  ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/subcomponent/Spinner/styles.css on .ds.spinner.\nnode:\n uri: global.subcomponent.spinner\n styles:\n layout.type: inline-block\n layout.verticalAlign: middle\n # The size cascade is --spinner-size (a per-instance override) then\n # --icon-size (the shared icon convention) then 1em, so the spinner tracks\n # the container font-size. Neither variable is declared, so the literal the\n # chain falls back to is written.\n size.width: 1em\n size.height: 1em\n # The rotation is a keyframe animation at --spinner-duration (1s fallback,\n # linear, infinite); no roster key takes an animation, and no ratified motion\n # token is that long.\n # The icon edge the notation carried is dropped: the implementation renders the\n # `spinner` glyph itself, as an <svg> with a <use> reference to\n # spinner.svg#spinner, rather than composing global.component.icon.";
9
- ds:anatomyClassic "";
10
9
  ds:usage "### When to use\n\n- **Indeterminate waits:** an action is in progress and its duration is unknown (button submitting, options loading).\n\n### When not to use\n\n- **Determinate progress:** use a progress bar when completion \ncan be measured.";
11
10
  ds:guidelines "- **Motion:** rotates via a motion token; honours `prefers-reduced-motion`.\n- **Accessibility:** decorative by default; the \nsurrounding control owns the accessible status text.\n\n";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.switch_input a ds:Subcomponent;
6
6
  ds:name "SwitchInput";
7
7
  ds:summary "The atomic on/off toggle part a host places in context, carrying the binary state and the user's flip interaction; consumed by components such as SwitchField. Not used on its own.";
8
8
  ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/SwitchInput/styles.css on .ds.form-switch and its ::before\n# knob. A checkbox with role=\"switch\" styled as a sliding pill: the track is the\n# <input> box, the knob is a pseudo-element that slides from one end to the\n# other.\nnode:\n uri: global.subcomponent.switch_input\n styles:\n appearance.native: none\n layout.boxSizing: border-box\n layout.position: relative\n # margin-inline reads --form-label-padding-inline, undeclared, falling back\n # to 0: the control aligns to the field edge like the label.\n spacing.external.inline.start: 0\n spacing.external.inline.end: 0\n # A 32x16 track: fixed element sizes, deliberately NOT baseline multiples.\n # The track carries no border, so width and height are the exact track box\n # and the absolutely-positioned knob is measured against the same box.\n size.width: dimension.400\n size.height: dimension.200\n appearance.radius: dimension.radius.full\n # The unselected track prefers --surface-color-foreground-switch-unselected,\n # which no stratum declares (the surface family mints the switch knob channel\n # alone), so only the flat token is written.\n appearance.background: color.foreground.switch.unselected\n # Selected, the track reads --surface-color-foreground-switch-selected first,\n # which no stratum declares (the surface family mints the knob channel only).\n appearance.background@selected: color.foreground.switch.selected\n appearance.background@disabled: color.foreground.switch.unselected.disabled\n appearance.outline.style@focus: none\n interaction.cursor: pointer\n interaction.cursor@disabled: not-allowed\n motion.property: background-color\n # Not bound, and why:\n # - the transition duration reads --motion-duration-fast, undeclared;\n # - the focus ring is a box-shadow at color.focusRing, which no roster key\n # takes;\n # - hover shifts only the track, from --hover--color-foreground-switch-\n # unselected / -selected: computed state variables that are not symbols,\n # and nothing in either chain resolves;\n # - a disabled selected track takes color.foreground.switch.selected.disabled,\n # which needs a compound state.\n edges:\n - node:\n # drawn as ::before\n role: knob\n styles:\n layout.position: absolute\n # Inset 1px from the track edges (--switch-knob-inset, a literal the\n # component writes). The knob's own size is a calc() over the track\n # height and that inset, so it is not bound.\n # The start inset is written logically (inset-inline-start); the roster's\n # logical offset key takes a token only, so the literal goes on the\n # physical key.\n layout.offset.top: 1px\n layout.offset.bottom: 1px\n layout.offset.left: 1px\n appearance.radius: dimension.radius.full\n appearance.background: [surface.color.foreground.switch.knob, color.foreground.switch.knob]\n appearance.background@disabled: color.foreground.switch.knob.disabled\n # Selected, the knob translates to the far edge by the space left over\n # after the knob and both insets — a calc(), and `translate` has no\n # value key of its own.\n motion.property: translate\n relation:\n cardinality: \"1\"";
9
- ds:anatomyClassic "";
10
9
  ds:usage "The instant on/off entry part a host places in context for a single setting that takes effect immediately.\n\n### When to use\n- A host toggles one binary setting whose change applies at once, like enabling a mode.\n- The choice reads as turning something on or off rather than ticking a list.\n\n### When not to use\n- The choice is one of several that may each be selected — compose **CheckboxInput**.\n- Exactly one option must win from a set — compose **RadioInput**.";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;
@@ -6,7 +6,6 @@ ds:global.subcomponent.table-cell a ds:Subcomponent;
6
6
  ds:name "Table.Cell";
7
7
  ds:summary "";
8
8
  ds:anatomyDsl "";
9
- ds:anatomyClassic "";
10
9
  ds:usage "";
11
10
  ds:guidelines "";
12
11
  ds:tier ds:global;