@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
@@ -0,0 +1,40 @@
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.cron_schedule a ds:Component;
6
+ ds:name "Cron Schedule";
7
+ ds:summary "Cron Schedule is an Input-based form component for authoring five-field cron expressions. It translates a valid value into inline English help and includes a help trigger in its default label that opens an in-product syntax reference.\n\nMain use cases:\n\n- Workflows that intentionally expose five-field cron syntax. \n- Users need immediate feedback (phrase translation) while editing cron intervals. \n- In-product reference when users cannot access external crontab documentation.\n\n**Limitations:** Not a complete validator. Reads only first five ASCII-space-separated fields, ignores additional fields, non-whitespace delimiters, and zero/negative steps. Always validate on the server side.\n\n";
8
+ ds:anatomyDsl "node:\n uri: ds:apps_landscape.component.cron_schedule\n role: cron expression input\n edges:\n - node:\n role: default label cluster\n relation:\n cardinality: \"0..1\"\n condition: label prop does not replace the default\n edges:\n - node:\n role: label text\n content: Schedule\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.button\n role: cron help trigger\n a11y:\n aria-label: Open cron help\n edges:\n - node:\n uri: global.component.icon\n name: help\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.modal\n role: cron reference dialog\n relation:\n cardinality: \"0..1\"\n condition: isModalOpen\n edges:\n - node:\n role: example section\n edges:\n - node:\n role: cron example part\n relation:\n cardinality: \"5\"\n - node:\n role: example prose\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: accepted values section\n edges:\n - node:\n uri: global.component.main-table\n relation:\n cardinality: \"2\"\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: help phrase\n relation:\n cardinality: \"0..1\"\n condition: toCronPhrase returns successfully\n - node:\n role: error message\n relation:\n cardinality: \"0..1\"\n condition: toCronPhrase throws Error and touched is truthy";
9
+ ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=17-20&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 17";
10
+ ds:usage "### When to use\n\n**Five-field cron authoring**\n\nUse when a workflow stores the same minute, hour, day-of-month, month, and day-of-week grammar represented by the helper and reference modal.\n\n**Teach-while-typing** \nUse the computed phrase as immediate interpretation of a syntactically accepted value. Do not treat it as proof that the execution engine will run with identical semantics.\n\n**In-context reference** \nUse the built-in help trigger when you cannot rely on users leaving the app to read crontab documentation.\n\n### When not to use\n\n**Constrained schedules**\n\nThe product supports only a fixed set of named schedule presets like “Hourly”, “Daily”, or “Weekly”.\n\n**Incorrect pattern**: Exposing full five-field cron syntax when the business logic allows only a few predefined options.\n\n**Remediation strategy**: Use radio buttons or a select dropdown with preset labels; map the selected preset to a cron value at the API boundary if needed, but do not expose raw cron to users.\n\n**Non-cron schedulers**\n\nThe backend uses calendar RRule, systemd OnCalendar grammar, business-hours pickers, or another scheduling format.\n\n**Incorrect pattern**: Using Cron Schedule for calendar RFC RRule fields or minute-less UIs when the backend does not execute cron semantics.\n\n**Remediation strategy**: Use or build a scheduler component tailored to the target format; do not translate between formats at the UI level unless the API explicitly requires it.\n\n**Execution validation**\n\nThe `toCronPhrase` output must be treated as validation that the job will execute as expected.\n\n**Incorrect pattern**: Relying solely on `toCronPhrase` returning a phrase as proof that the cron interval is correct and will run on the target system.\n\n**Remediation strategy**: Validate on the server side; use `toCronPhrase` only as UX interpretation. Additional fields are ignored, non-positive steps are not rejected, and execution engine behavior remains the server’s responsibility.\n\n**Locale-critical legal or compliance copy**\n\nSchedule prose must be provided in the user’s language and cannot be hardcoded in English.\n\n**Incorrect pattern**: Using `toCronPhrase` as-is in a compliance-sensitive workflow that requires translated schedule prose.\n\n**Remediation strategy**: Either extend the component to support i18n translations of month/day names, ordinals, and connectors, or use a different scheduler component until localization is implemented.";
11
+ ds:guidelines "### Accessibility\n\n- The help trigger has an explicit accessible name and `type=\"button\"`; the icon has no local `aria-hidden` prop, so its final accessibility behavior depends on Canonical `Icon`.\n- Dialog semantics, focus trap, Escape behavior, and focus restoration are delegated to Canonical `Modal` and are not asserted by local tests.\n- Error/help association is delegated to Canonical `Input`; local tests verify visible text, not computed ARIA relationships or announcements.\n- Example parts in the modal are visual teaching aids; the prose sentence under the example must carry the meaning, not the large numbers alone.\n\n### Content\n\n- Help phrase should read like a confirmation sentence, not a debug dump.\n- Error messages are short and actionable (“Enter a complete interval.”, “Value out of range.”, “Invalid character.”).\n- Modal copy should stay reference-like: operators table + accepted ranges + one worked example.\n\n### Internationalization / globalization\n\n- Default label, modal title, section headings, table content, example prose, and trigger accessible name are hardcoded English with no props for replacement.\n- `toCronPhrase` hardcodes English month/day names, ordinals, and connectors such as “at”, “past”, “on”, “and on”, “in”, and “every”.\n- Ordinal suffixes (`st`, `nd`, `rd`, `th`) are English-specific.\n\n### Animation\n\n- Source adds no local animation. Any modal animation belongs to Canonical `Modal`.\n- Parsing occurs synchronously on every render. Valid help and touched errors replace one another immediately.\n\n### Keyboard navigation\n\n- Field: standard text input tab stop and editing.\n- The native button should activate with Enter/Space. Local tests cover pointer clicks only.\n- Modal keyboard behavior is dependency-owned and is not proven by this dossier’s tests.\n\n### Device / layout\n\n- Cron Help sets the example row to `display: flex` with a `2rem` gap and no wrapping rule.\n- Both tables have a fixed `38rem` width. There is no component breakpoint, max-width, horizontal-scroll wrapper, or narrow-screen adaptation in local styles.\n- The input’s responsive behavior comes from Canonical `Input` and its containing layout.\n\n### Security / correctness\n\n- Treat phrase generation as UX interpretation, not a substitute for server-side and execution-engine validation.\n- The helper joins non-wildcard day-of-month and day-of-week phrases with “and on”; it does not establish whether a target cron engine executes those fields with AND or OR semantics.\n- A non-`Error` thrown during parsing causes `CronSchedule` to return `undefined` and render nothing. Helper code currently throws `Error`, but the fallback is not tested.";
12
+ ds:tier ds:apps_landscape;
13
+ ds:documentationStage ds:tag.specialadoption-docs;
14
+ ds:hasProperty [
15
+ a ds:Property;
16
+ ds:name "**CronSchedule**";
17
+ ds:optional "false"
18
+ ], [
19
+ a ds:Property;
20
+ ds:name "value";
21
+ ds:summary "Inherited native Input value passed to the field and converted with `.toString()` for parsing.";
22
+ ds:optional "false";
23
+ ds:propertyType "text | number | list of text";
24
+ ds:constraints "Intended usage is a cron string with five ASCII-space-separated fields. Numbers and arrays remain type-valid inherited values but do not provide the intended cron contract; arrays stringify with commas. "
25
+ ], [
26
+ a ds:Property;
27
+ ds:name "touched";
28
+ ds:summary " When true, parse failures are shown as Input error. When false, failures stay silent while help may be empty. ";
29
+ ds:optional "true";
30
+ ds:propertyType "boolean";
31
+ ds:defaultValue "undefined / falsy"
32
+ ], [
33
+ a ds:Property;
34
+ ds:name "inputProps";
35
+ ds:summary " Forwards Input props including handlers, name, disabled, required, label, and type. ";
36
+ ds:optional "true";
37
+ ds:propertyType "object";
38
+ ds:constraints "`label` and `type` override local defaults because they are spread later. `help`, `value`, and `error` are then overwritten by computed props. This is Canonical Input's `ComponentProps<typeof Input>`.";
39
+ ds:defaultValue "Canonical Input defaults, except local label/type defaults"
40
+ ].
@@ -0,0 +1,106 @@
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.expandable_radio_group a ds:Component;
6
+ ds:name "Expandable Radio Group";
7
+ ds:summary "Expandable Radio Group is a Formik-bound renderer for a typed, mutually exclusive option list. Each option composes a Canonical RadioInput with optional persistent help, an optional `onSelect` effect, and an `expansion` slot mounted inside shared Indent layout only while that option’s value loosely equals the current Formik value.\n\nIt is useful as a Landscape composition primitive, but it is not currently a complete accessible radio-group abstraction: its optional visual label is a styled paragraph and the source adds no `fieldset`, `legend`, `role=\"radiogroup\"`, or label association.";
8
+ ds:anatomyDsl "node:\n uri: ds:apps_landscape.component.expandable_radio_group\n edges:\n - node:\n semantic: p\n role: group label\n relation:\n cardinality: \"1\"\n - node:\n role: options container\n edges:\n - node:\n role: radio option block\n edges:\n - node:\n uri: global.component.radio\n relation:\n cardinality: \"1\"\n - node:\n semantic: p\n role: option help\n styles:\n typography.color: $colors--theme--text-muted\n spacing.margin.left: $sp-x-large\n relation:\n cardinality: \"0..1\"\n condition: option help is truthy\n - node:\n uri: ds:apps_landscape.layout.indent\n role: option expansion\n relation:\n cardinality: \"0..1\"\n slotName: expansion\n condition: option value loosely equals the Formik field value\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-23&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 20\n\n";
10
+ ds:usage "### When to use\n\n**Mutually exclusive modes**\n\nUse when exactly one choice applies and some choices require additional configuration.\n\n**Choice-specific explanation**\n\nUse when options need short help text or an asynchronous side effect after selection.\n\n**Choice-specific controls**\n\nUse when a selected mode reveals a small amount of subordinate content that belongs directly beneath that option.\n\n### When not to use\n\n**Independent selections**\n\nMultiple options that may be selected simultaneously.\n\n**Incorrect pattern**: Using this component when users need to select checkboxes or multiple independent items.\n\n**Remediation strategy**: Use a checkbox group instead for independent multi-select scenarios.\n\n**Large option set**\n\nMany choices or complex nested forms that require navigation or filtering.\n\n**Incorrect pattern**: Rendering dozens of radio options vertically or attempting complex nested form structures.\n\n**Remediation strategy**: Use a select dropdown or separate workflow/modal for extensive option lists.\n\n**Accessible group semantics without a wrapper**\n\nA radio set that needs a programmatic group label but cannot be wrapped.\n\n**Incorrect pattern**: Rendering the radio group bare without providing proper fieldset, legend, or ARIA group semantics.\n\n**Remediation strategy**: Either wrap the component with proper ARIA grouping, or choose a different abstraction that includes complete group semantics.\n\n**Independent or unbound state**\n\nChoices that are not owned by a Formik context or that need independent state management.\n\n**Incorrect pattern**: Using this component for non-Formik state or for checkbox-like independent selections.\n\n**Remediation strategy**: Either integrate with a Formik form context, or use a simpler controlled component pattern for independent state.";
11
+ ds:guidelines "### Accessibility\n\n- The current source lacks a native fieldset/legend and an ARIA radiogroup/name. The styled paragraph is not a programmatic group label; upstream work should correct this rather than documenting it as complete.\n- Option help is visually indented but is not associated with its radio through `aria-describedby`.\n- Revealed content follows its option in DOM order, but indentation alone must not be the only ownership cue.\n- Do not use indentation alone to communicate which option owns conditional content.\n\n### Content\n\n- Write parallel option labels and use help text for consequences rather than repeating the label.\n- Keep expansions narrowly scoped to information required by their selected mode.\n- The component supplies no default user-facing strings. Localize `label`, each inherited RadioInput label, help, and expansion content at the call site.\n\n### Internationalization\n\n- Allow group and option copy to wrap. The local styles set spacing and muted colour but no truncation.\n- Keep typed option values stable and locale-independent.\n\n### Keyboard navigation\n\n- The wrapper defines no keyboard handlers. Radio keyboard behavior comes from Canonical RadioInput/native inputs.\n- The selected expansion follows the option in Tab order. Selection does not move focus into it, and rejected `setFieldValue`/`onSelect` promises have no local recovery behavior.\n\n### Device and layout\n\n- Options and expansions use block DOM order. Help receives a fixed `$sp-x-large` left margin, and expansion indentation comes from the separate Indent component.\n- The source has no component-specific media/container query. Check fixed indentation with long translations and narrow side panels.";
12
+ ds:tier ds:apps_landscape;
13
+ ds:documentationStage ds:tag.specialadoption-docs;
14
+ ds:hasProperty [
15
+ a ds:Property;
16
+ ds:name "field ";
17
+ ds:summary "Formik field name read and updated by every option. ";
18
+ ds:propertyType "text";
19
+ ds:defaultValue "— ";
20
+ ds:constraints "Must be a valid key in the Formik context's values object. "
21
+ ], [
22
+ a ds:Property;
23
+ ds:name "formik ";
24
+ ds:summary "Supplies current values, getFieldProps, and setFieldValue. ";
25
+ ds:propertyType "object";
26
+ ds:defaultValue "— ";
27
+ ds:constraints "Exact TypeScript type: FormikContextType<TFormik>, where TFormik extends Record<TField, TValue> and contains the named field with compatible values. "
28
+ ], [
29
+ a ds:Property;
30
+ ds:name "inputs ";
31
+ ds:summary "Ordered option descriptors. ";
32
+ ds:propertyType "node";
33
+ ds:defaultValue "[]";
34
+ ds:constraints "Exact TypeScript type: (Omit<ComponentProps<typeof RadioInput>, \"checked\" | \"key\" | \"onChange\" | keyof ReturnType<FormikContextType<TFormik>[\"getFieldProps\"]>> & { value: TValue; key: Key; expansion?: ReactNode; help?: ReactNode; onSelect?: () => Promise<void> | void; })[]. Empty or omitted input renders no radios. ";
35
+ ds:optional "true"
36
+ ], [
37
+ a ds:Property;
38
+ ds:name "label ";
39
+ ds:summary "Content rendered in the visual label paragraph. ";
40
+ ds:propertyType "node";
41
+ ds:defaultValue "— ";
42
+ ds:constraints "Does not programmatically label the radios. The paragraph still renders when omitted. ";
43
+ ds:optional "true"
44
+ ], [
45
+ a ds:Property;
46
+ ds:name "labelHeading ";
47
+ ds:summary "Declared group flag. ";
48
+ ds:propertyType "boolean";
49
+ ds:defaultValue "— ";
50
+ ds:constraints "Currently unused; changes neither markup nor classes. ";
51
+ ds:optional "true"
52
+ ], [
53
+ a ds:Property;
54
+ ds:name "sideByside ";
55
+ ds:summary "Declared group flag with this exact spelling. ";
56
+ ds:propertyType "boolean";
57
+ ds:defaultValue "— ";
58
+ ds:constraints "Currently unused; options always use the same vertical DOM structure. ";
59
+ ds:optional "true"
60
+ ], [
61
+ a ds:Property;
62
+ ds:name "inputs[].key ";
63
+ ds:summary "React identity for the option block. ";
64
+ ds:propertyType "text";
65
+ ds:defaultValue "— ";
66
+ ds:constraints "Exact TypeScript type: Key. Must be unique and stable; not forwarded to RadioInput. "
67
+ ], [
68
+ a ds:Property;
69
+ ds:name "inputs[].value ";
70
+ ds:summary "Value compared with the current field and written on selection. ";
71
+ ds:propertyType "text";
72
+ ds:defaultValue "— ";
73
+ ds:constraints "Exact TypeScript type: TValue. Checked state uses loose ==, so coercible values can collide. "
74
+ ], [
75
+ a ds:Property;
76
+ ds:name "inputs[].RadioInput props ";
77
+ ds:summary "Supplies the visible label and other supported Canonical radio configuration. ";
78
+ ds:propertyType "object";
79
+ ds:defaultValue "Canonical RadioInput defaults ";
80
+ ds:constraints "Exact TypeScript type: Omit<ComponentProps<typeof RadioInput>, \"checked\" | \"key\" | \"onChange\" | keyof ReturnType<FormikContextType<TFormik>[\"getFieldProps\"]>>. Consumers may supply any supported subset. Local Formik bindings and local checked and onChange cannot be overridden. ";
81
+ ds:optional "true"
82
+ ], [
83
+ a ds:Property;
84
+ ds:name "inputs[].help ";
85
+ ds:summary "Renders persistent small muted text below the radio. ";
86
+ ds:propertyType "node";
87
+ ds:defaultValue "— ";
88
+ ds:constraints "No generated id or aria-describedby is added. Falsy values render nothing. ";
89
+ ds:optional "true"
90
+ ], [
91
+ a ds:Property;
92
+ ds:name "inputs[].expansion ";
93
+ ds:summary "Composition slot rendered inside Indent for the selected option. ";
94
+ ds:propertyType "node";
95
+ ds:defaultValue "— ";
96
+ ds:constraints "Mounted only while selected; local state inside it is lost when another option is selected. ";
97
+ ds:optional "true"
98
+ ], [
99
+ a ds:Property;
100
+ ds:name "inputs[].onSelect ";
101
+ ds:summary "Runs after setFieldValue resolves. ";
102
+ ds:propertyType "callback";
103
+ ds:defaultValue "— ";
104
+ ds:constraints "Exact TypeScript type: () => Promise<void> | void. The async change handler awaits it; errors are not caught locally. ";
105
+ ds:optional "true"
106
+ ].
@@ -0,0 +1,50 @@
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.expandable_truncation a ds:Component;
6
+ ds:name "Expandable Truncation";
7
+ ds:summary "Expandable Truncation is a controlled disclosure for content that overflows a single line. It renders caller content in a clipped span, measures direct child nodes against the right edge, and shows a disclosure button when content extends past that boundary. When expanded, it displays an absolutely positioned layer with scrollable content.\n\nMain use cases:\n\n- Compact table and metadata values that stay on one line until requested \n- Scenarios where complete content can safely overlay nearby layout without portaling \n- Composition inside tables and information grids with different expanded styling\n\nExpansion state, collapse behavior, and accessible disclosure relationships stay with the caller.";
8
+ ds:anatomyDsl "```yaml\nnode:\n uri: ds:apps_landscape.component.expandable_truncation\n role: expansion positioning context\n edges:\n - node:\n role: collapsed or expanded layout\n description: Switches between inline clipping and an absolutely positioned expanded layer.\n edges:\n - node:\n role: measured value\n description: Renders caller content and measures direct child nodes against the parent right edge.\n relation:\n cardinality: \"1\"\n slotName: content\n - node:\n uri: global.component.button\n role: one-way disclosure\n description: Requests expansion and displays either fixed copy or an overflowing-child count.\n relation:\n cardinality: \"0..1\"\n condition: Rendered when one or more direct child nodes overflow and isExpanded is false.\n relation:\n cardinality: \"1\"\n```\n\n`TruncatedCell` is a preset around this root, not a child in its rendered anatomy.";
9
+ ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-29&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 8\n\n";
10
+ ds:usage "### When to use\n\n- Use for secondary table or metadata values that must stay on one line until requested.\n- Pass content as direct, stable child nodes when `showCount` needs to represent hidden items; wrapping every item in one fragment or text node changes the count semantics.\n- Keep `isExpanded` and `onExpand` in the owning component. Add an explicit collapse path when users need to return to the compact state.\n- Use `TruncatedCell` only where an absolutely positioned expanded panel can safely overlay the table cell and adjacent content.\n\n### When not to use\n\n**Errors, instructions, or primary content**\n\nInformation required to decide whether to expand or that must always be visible.\n\n**Incorrect pattern**: Hiding error messages, instructions, or primary identifiers inside truncation.\n\n**Remediation strategy**: Keep essential information visible and use truncation only for secondary or supplementary values.\n\n**Headings, controls, or substantial content**\n\nComplex, interactive, or block-level content requiring full expand/collapse semantics.\n\n**Incorrect pattern**: Using this component for substantial blocks, form controls, or content that needs persistent interaction.\n\n**Remediation strategy**: Use a disclosure or accordion component that provides complete open/close semantics and focus management.\n\n**Character or word counts**\n\nScenarios where `showCount` must represent text length rather than item counts.\n\n**Incorrect pattern**: Using `showCount={true}` to display character or word counts; one text node produces only one overflow count.\n\n**Remediation strategy**: For text-based counts, render a separate numeric label or omit `showCount` entirely.\n\n**Positioned expansion in clipping context**\n\nSituations where the expanded layer must avoid clipping or stacking context limitations.\n\n**Incorrect pattern**: Rendering the absolute-positioned expanded content inside a clipped ancestor or low stacking context without testing.\n\n**Remediation strategy**: Use a portal-based disclosure or verify safe stacking and clipping behavior in all contexts before adoption.";
11
+ ds:guidelines "### Accessibility\n\n- Keep the native button and make the surrounding value identify what will expand. The fixed “Show more” label is not unique when several instances appear together.\n- The control exposes no `aria-expanded` or `aria-controls`, and the expanded content has no generated id. Consumers needing a programmatic disclosure relationship require an implementation change, not only different prose.\n- The clipped content remains in the DOM and accessibility tree; this is visual truncation rather than semantic hiding.\n- Do not rely on `+N` alone when the number does not clearly describe recognizable items in context.\n\n### Content and internationalization\n\n- Put identifying content first because collapsed rendering is one line with ellipsis.\n- “Show more” is hardcoded English. The component has no label, formatter, plural-rules, or translation prop.\n- `+N` uses an unformatted JavaScript number and has no localized explanatory text.\n- Avoid assuming text direction from right-edge measurement. RTL, mixed-direction content, and vertical writing modes are not covered by source or tests.\n\n### Keyboard and focus\n\n- The disclosure is a native button and receives standard keyboard activation.\n- Expansion removes that button from the DOM. The component does not move focus into the expanded value or provide a collapse target, so consumers must verify the resulting focus behavior.\n- There are no Escape, arrow-key, or focus-restoration handlers.\n\n### Device and layout\n\n- `ResizeObserver` watches the immediate parent, not the content span or viewport. Content-only changes that do not resize the parent are not guaranteed to trigger a new measurement.\n- Collapsed layout uses flex and a nonwrapping value/control. Expanded content scrolls vertically after `8rem`.\n- The expanded layer uses `position: absolute; left: 0; right: 0; top: 0` inside a relative root, with no z-index or portal. Check clipping, overlap, and stacking in every host.\n- Touch users can activate the button, but no touch-specific behavior is implemented.";
12
+ ds:tier ds:apps_landscape;
13
+ ds:documentationStage ds:tag.specialadoption-docs;
14
+ ds:hasProperty [
15
+ a ds:Property;
16
+ ds:name "Truncated.content ";
17
+ ds:summary "Content rendered in both states and inspected by direct child node. ";
18
+ ds:propertyType "node";
19
+ ds:defaultValue "— ";
20
+ ds:constraints "Exact type: ReactNode. Measurement uses DOM ranges and each child's right edge; semantic item counts require one direct node per item. "
21
+ ], [
22
+ a ds:Property;
23
+ ds:name "Truncated.expandedClassName ";
24
+ ds:summary "Layout/visual class added to the expanded content-layout element. ";
25
+ ds:propertyType "text";
26
+ ds:defaultValue "— ";
27
+ ds:constraints "Must provide any required background, border, stacking, and placement treatment; it is not applied while collapsed. "
28
+ ], [
29
+ a ds:Property;
30
+ ds:name "Truncated.isExpanded ";
31
+ ds:summary "Controlled visual state. ";
32
+ ds:propertyType "boolean";
33
+ ds:defaultValue "— ";
34
+ ds:constraints "When true, the disclosure disappears and no built-in control can set the value false. "
35
+ ], [
36
+ a ds:Property;
37
+ ds:name "Truncated.onExpand ";
38
+ ds:summary "Handles activation of the conditional disclosure. ";
39
+ ds:propertyType "callback";
40
+ ds:defaultValue "— ";
41
+ ds:constraints "Exact type: (event: ReactMouseEvent<HTMLButtonElement, MouseEvent>) => void. The caller must update controlled state; the component does not await, disable, or debounce the callback. "
42
+ ], [
43
+ a ds:Property;
44
+ ds:name "Truncated.showCount ";
45
+ ds:summary "Replaces \"Show more\" with +N. ";
46
+ ds:propertyType "boolean";
47
+ ds:defaultValue "— ";
48
+ ds:constraints "Omission is treated as false. N is overflowing direct child nodes, not total children and not hidden characters or words. ";
49
+ ds:optional "true"
50
+ ].
@@ -0,0 +1,33 @@
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.form_section a ds:Component;
6
+ ds:name "Form Section";
7
+ ds:summary "Form Section groups related settings in a named semantic region. It renders a generated-id `h2` beside the consumer `children` in a two-column CSS grid, then stacks the heading above the content when the section container becomes narrower than the columns’ combined minimum widths.\n\nUse it for settings groups whose controls are conceptually related but are not one native checkbox/radio fieldset. Consecutive Form Section siblings receive a theme-aware divider and vertical separation; a lone or first section does not.";
8
+ ds:anatomyDsl "node:\n uri: ds:apps_landscape.component.form_section\n semantic: section\n a11y:\n labelled-by: generated heading id\n edges:\n - node:\n role: responsive grid\n styles:\n layout.display: grid\n layout.columns: minmax(19rem, 24rem) minmax(28rem, 1fr)\n spacing.gap: $spv--large $sph--x-large\n edges:\n - node:\n semantic: h2\n role: section heading\n relation:\n cardinality: \"1\"\n - node:\n role: settings content\n styles:\n size.min-width: 0\n relation:\n cardinality: \"1\"\n slotName: children\n relation:\n cardinality: \"1\"";
9
+ ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-54&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 28\n\n";
10
+ ds:usage "### When to use\n\n**Settings grouping**\n\nUse to divide a settings surface into labelled groups of related controls.\n\n**Responsive heading layout**\n\nUse when the heading should sit beside content when space allows and stack above it in constrained containers.\n\n**Discoverable page regions**\n\nUse when the section should appear as a named region in the accessibility tree and the surrounding heading hierarchy expects a level-two heading.\n\n### When not to use\n\n**Checkbox or radio semantics**\n\nA group of mutually exclusive choices that need fieldset and legend.\n\n**Incorrect pattern**: Using Form Section instead of fieldset/legend for choice groups.\n\n**Remediation strategy**: Use a native fieldset with legend for radio and checkbox groups, or use Expandable Radio Group.\n\n**Unlabelled spacing**\n\nUsing the component merely to add visual spacing or dividers.\n\n**Incorrect pattern**: Rendering a Form Section without a meaningful title just to add a divider or grid.\n\n**Remediation strategy**: Use Vanilla utility classes or a dedicated divider/spacing component; every section requires a purposeful title.\n\n**Arbitrary heading levels**\n\nA heading hierarchy where `h2` would create skipped or flattened levels.\n\n**Incorrect pattern**: Using Form Section in a context where the heading hierarchy would be broken (e.g., after an h3).\n\n**Remediation strategy**: Use a different component or restructure the page heading hierarchy; the current API does not expose heading-level control.\n\n**General card or field group**\n\nDecorative card layout or a generic field wrapper without semantic region meaning.\n\n**Incorrect pattern**: Using Form Section as a replacement for arbitrary cards or field containers.\n\n**Remediation strategy**: Use a plain styled div with Vanilla classes, or use a semantic section only when it represents a named page region.";
11
+ ds:guidelines "### Accessibility\n\n- Preserve the section, h2, and aria-labelledby relationship generated by the component.\n- The named `<section>` is exposed as a region; use enough sections to aid navigation, not so many that landmark/region navigation becomes noisy.\n- Keep heading levels logical in the surrounding page. The fixed `h2` cannot be changed through props.\n- The component adds no focus target or keyboard behavior; focus remains on interactive children.\n\n### Content\n\n- Use a short noun phrase that describes the settings in the section.\n- Keep unrelated controls in separate sections and avoid sections containing only one trivial field.\n- Localize `title` and child content at the call site; there are no source-owned visible strings.\n\n### Internationalization\n\n- Allow longer translated headings to wrap. The heading column has a 19rem minimum in wide mode and stacks when the full grid no longer fits.\n- Do not encode meaning only through the small-caps visual treatment; the semantic heading text must remain clear in every locale.\n\n### Keyboard navigation\n\n- The section itself adds no tab stop; child controls retain normal document order.\n- Grid presentation does not change DOM order: the heading precedes `children` in both layouts.\n\n### Device and layout\n\n- The breakpoint follows the section’s own inline size, not viewport width, so navigation or side panels can trigger stacking.\n- Wide mode requires the 19rem label minimum, horizontal gap, and 28rem content minimum. At or below their combined threshold the grid becomes one `minmax(0, 1fr)` column.\n- Content receives `min-width: 0` so descendants can shrink, but consumers remain responsible for responsive child controls and overflow.";
12
+ ds:tier ds:apps_landscape;
13
+ ds:documentationStage ds:tag.specialadoption-docs;
14
+ ds:hasProperty [
15
+ a ds:Property;
16
+ ds:name "title";
17
+ ds:summary "Content rendered in the `h2`; its generated id labels the section. ";
18
+ ds:propertyType "node";
19
+ ds:constraints "Exact type: `ReactNode`. Keep it textual and concise. Interactive or complex content can produce an unsuitable heading/region name. "
20
+ ], [
21
+ a ds:Property;
22
+ ds:name "children";
23
+ ds:summary "Composition slot rendered in the content column.";
24
+ ds:propertyType "node";
25
+ ds:constraints "Exact type: `ReactNode`. Maintain logical reading and focus order; `null` is type-compatible React content but leaves an empty named section. "
26
+ ], [
27
+ a ds:Property;
28
+ ds:name "className";
29
+ ds:summary "Merged onto the root section with the local class.";
30
+ ds:propertyType "text";
31
+ ds:constraints "Consumer CSS can affect layout or semantics; preserve the container and label relationship. ";
32
+ ds:optional "true"
33
+ ].
@@ -0,0 +1,86 @@
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.gpg_key_field a ds:Component;
6
+ ds:name "GPG Key Field";
7
+ ds:summary "GPG Key Field is a controlled edit-form composition for GPG key text. Without an `existingKey`, it renders a Canonical Textarea for a new value. With an `existingKey`, it first renders a “keep current” CheckboxInput and mounts the replacement Textarea only when `keepCurrentKey` is false.\n\nThe component does not display, parse, validate, upload, or otherwise inspect the existing or replacement key. The `existingKey` object is used only as a truthy presence signal; value, error, touched state, and persistence remain the parent form’s responsibility.";
8
+ ds:anatomyDsl "node:\n uri: ds:apps_landscape.component.gpg_key_field\n edges:\n - node:\n uri: global.component.checkbox\n role: keep current key\n relation:\n cardinality: \"0..1\"\n condition: existing key is present\n - node:\n uri: global.component.textarea\n role: GPG key input\n relation:\n cardinality: \"0..1\"\n condition: no existing key or keep current is false";
9
+ ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-55&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 29\n\n";
10
+ ds:usage "### When to use\n\n**Create with a key**\n\nUse when a form accepts a pasted GPG public key for a new resource.\n\n**Optional key replacement**\n\nUse when editing a resource should retain its existing key unless the user explicitly replaces it.\n\n**Parent-controlled validation**\n\nUse when the parent form already owns key parsing/validation and can pass a string error to the textarea.\n\n### When not to use\n\n**Key generation or upload**\n\nUsers need to generate keys, inspect keyrings, or upload a key file.\n\n**Incorrect pattern**: Rendering the field to allow users to create or import external key material.\n\n**Remediation strategy**: Use a dedicated key management form or upload component that handles generation and keyrings.\n\n**Secret key material**\n\nUsers must not accidentally enter private keys or passphrases in this public-key field.\n\n**Incorrect pattern**: Labeling the field generically without clarifying that only public keys are accepted.\n\n**Remediation strategy**: Always label the field as “GPG public key” or “verification key” and document that private key material is not accepted.\n\n**Existing-key inspection**\n\nUsers need to see a fingerprint, owner, expiry, algorithm, or the current armored text.\n\n**Incorrect pattern**: Expecting the component to read or display properties from the `existingKey` object.\n\n**Remediation strategy**: Add a separate read-only display component that renders fingerprint, owner, and other key metadata before or after the edit control.\n\n**Automatic validation or persistence**\n\nBuilt-in GPG validation, file handling, API calls, or confirmation is required.\n\n**Incorrect pattern**: Relying on the component to validate armor, upload to an API, or handle persistence automatically.\n\n**Remediation strategy**: Implement validation, persistence, and API handling in the parent form or a custom validation layer outside the component.";
11
+ ds:guidelines "### Accessibility\n\n- Keep explicit labels on both controls and associate parse errors with the textarea.\n- The source preserves explicit Canonical control labels and places the replacement input immediately after the checkbox in reading and tab order.\n- Reveal/hide is driven by the native checkbox change. The component does not move focus or announce that a Textarea was inserted/removed.\n- Error association and announcement are inherited from Canonical Textarea; there is no local id or ARIA wiring.\n\n### Content and security\n\n- Say GPG public key where ambiguity with private key material is possible.\n- Never echo secret key material in errors, logs, or notifications.\n- Validate armor, fingerprint, expiry, and permitted key type in the parent/client and on a trusted backend; this component performs no checks.\n- The default source label says only “GPG key”. Consumers that accept only public or verification keys should override it, as the mirror edit form does with “Verification GPG key”.\n\n### Internationalization\n\n- The two default labels are hardcoded English but injectable. Pass translated `keepCurrentLabel` and `textareaLabel` in localized surfaces.\n- Error strings originate in the parent and must be localized there.\n- Armored key text itself must not be translated or typographically transformed.\n\n### Keyboard navigation\n\n- Support Space on the retain checkbox and normal keyboard editing in the textarea.\n- The component adds no custom keyboard handling. Tabbing follows checkbox then conditional Textarea when it is present.\n\n### Device and layout\n\n- Layout, textarea size, wrapping, and overflow are entirely inherited from Canonical components and the surrounding form; there is no local stylesheet.\n- Verify long armored lines at narrow widths and avoid exposing content through unintended horizontal page overflow.";
12
+ ds:tier ds:apps_landscape;
13
+ ds:documentationStage ds:tag.specialadoption-docs;
14
+ ds:hasProperty [
15
+ a ds:Property;
16
+ ds:name "existingKey";
17
+ ds:summary "Truthy presence selects existing-key mode.";
18
+ ds:propertyType "object";
19
+ ds:defaultValue "—";
20
+ ds:constraints "Exact type: `GpgKey`. No properties are read and the current key is not displayed. ";
21
+ ds:optional "Yes"
22
+ ], [
23
+ a ds:Property;
24
+ ds:name "keepCurrentKey";
25
+ ds:summary "Controls the CheckboxInput and whether replacement Textarea is mounted in existing-key mode. ";
26
+ ds:propertyType "boolean";
27
+ ds:defaultValue "—";
28
+ ds:constraints "Ignored for rendering when `existingKey` is absent. ";
29
+ ds:optional "No"
30
+ ], [
31
+ a ds:Property;
32
+ ds:name "gpgKeyValue";
33
+ ds:summary "Controlled textarea value.";
34
+ ds:propertyType "text";
35
+ ds:defaultValue "—";
36
+ ds:constraints "`undefined` is normalized to `\"\"`; the component keeps no local draft. ";
37
+ ds:optional "Yes"
38
+ ], [
39
+ a ds:Property;
40
+ ds:name "gpgKeyError";
41
+ ds:summary "Passed to Textarea's `error` prop.";
42
+ ds:propertyType "text";
43
+ ds:defaultValue "—";
44
+ ds:constraints "Not rendered while the textarea is unmounted.";
45
+ ds:optional "Yes"
46
+ ], [
47
+ a ds:Property;
48
+ ds:name "keepCurrentLabel";
49
+ ds:summary "Visible checkbox label.";
50
+ ds:propertyType "text";
51
+ ds:defaultValue "`\"Keep current GPG key\"`";
52
+ ds:constraints "Used only in existing-key mode.";
53
+ ds:optional "Yes"
54
+ ], [
55
+ a ds:Property;
56
+ ds:name "textareaLabel";
57
+ ds:summary "Visible Textarea label in new and replacement modes. ";
58
+ ds:propertyType "text";
59
+ ds:defaultValue "`\"GPG key\"`";
60
+ ds:constraints "Keep terminology explicit about public or verification keys where needed. ";
61
+ ds:optional "Yes"
62
+ ], [
63
+ a ds:Property;
64
+ ds:name "onKeepCurrentChange";
65
+ ds:summary "Called with the checkbox's next checked value.";
66
+ ds:propertyType "callback";
67
+ ds:defaultValue "—";
68
+ ds:constraints "Exact type: `(checked: boolean) => void`. The parent must update `keepCurrentKey`; no event object is exposed. ";
69
+ ds:optional "No"
70
+ ], [
71
+ a ds:Property;
72
+ ds:name "onGpgKeyChange";
73
+ ds:summary "Called with the Textarea's next string value.";
74
+ ds:propertyType "callback";
75
+ ds:defaultValue "—";
76
+ ds:constraints "Exact type: `(value: string) => void`. The parent must update `gpgKeyValue`; no event object is exposed. ";
77
+ ds:optional "No"
78
+ ], [
79
+ a ds:Property;
80
+ ds:name "onGpgKeyBlur";
81
+ ds:summary "Passed as the Textarea blur callback.";
82
+ ds:propertyType "callback";
83
+ ds:defaultValue "—";
84
+ ds:constraints "Exact type: `() => void`. No event object is exposed. Common consumer use is marking the parent Formik field touched. ";
85
+ ds:optional "Yes"
86
+ ].
@@ -0,0 +1,137 @@
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.grouped_select a ds:Component;
6
+ ds:name "Grouped Select";
7
+ ds:summary "Renders a controlled native `select` whose options are organized in native `optgroup` elements. The DOM value combines the group label and option value for selection, while `onChange` reports the selected option value and group label as separate strings from `data-*` attributes.";
8
+ ds:anatomyDsl "node:\n uri: ds:apps_landscape.component.grouped_select\n edges:\n - node:\n role: field wrapper\n edges:\n - node:\n semantic: label\n role: field label\n relation:\n cardinality: \"0..1\"\n condition: label is non-empty\n - node:\n semantic: select\n role: grouped selection control\n edges:\n - node:\n semantic: option\n role: empty option\n relation:\n cardinality: \"0..1\"\n condition: emptyOption.enabled is true\n - node:\n semantic: optgroup\n role: option group\n edges:\n - node:\n semantic: option\n role: grouped option\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"1\"\n - node:\n semantic: paragraph\n role: validation message\n edges:\n - node:\n semantic: strong\n role: error prefix\n relation:\n cardinality: \"1\"\n - node:\n role: error content\n relation:\n cardinality: \"1\"\n slotName: error\n relation:\n cardinality: \"0..1\"\n condition: error is truthy\n relation:\n cardinality: \"1\"";
9
+ ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-56&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 30\n\n";
10
+ ds:usage "### When to use\n\n**Categorized options**\n\nUse when a native platform picker is appropriate and category labels materially improve scanning.\n\n**Separate group and value**\n\nUse when the caller stores both the selected `optGroup` string and option `value` and can update both after every change.\n\n### When not to use\n\n**Searchable long list**\n\nUsers need filtering or autocomplete across many options.\n\n**Incorrect pattern**: Using a native select with many ungrouped or poorly categorized options and no search.\n\n**Remediation strategy**: Use a search-powered select component or autocomplete input that allows users to filter options as they type.\n\n**Group is decorative**\n\nCategories do not help users choose and labels would repeat option text.\n\n**Incorrect pattern**: Adding option groups that do not materially improve scanning or that duplicate information already visible in option labels.\n\n**Remediation strategy**: Use a flat select without groups if categories are not providing genuine cognitive benefit.\n\n**Values containing the compound delimiter**\n\nGroup or option values containing `/` make the compound DOM value ambiguous to tools or form serialization.\n\n**Incorrect pattern**: Storing group or option values that include `/`, then relying on the compound `${group}/${option}` DOM value for serialization or parsing.\n\n**Remediation strategy**: Sanitize group and option values to exclude `/`, or use a different serialization approach that does not concatenate them into a single field value.";
11
+ ds:guidelines "### Accessibility\n\n- Retain native label, select, optgroup, and option semantics.\n- A truthy `error` sets `aria-invalid=\"true\"` and `aria-errormessage=\"pull-pocket-validation-message\"`; without an error, `aria-errormessage` is omitted.\n- The validation id is hard-coded, so do not render multiple errored instances on one page without first fixing the source to generate unique ids.\n- `required` is visual only. Consumers needing native required semantics must not assume this component sets `required` on the `select`.\n- `hidden` applies only to the select, not its label or feedback. Do not use it as a complete field-visibility mechanism.\n\n### Content\n\n- Use concise, distinct group labels and parallel option labels that remain understandable in native pickers.\n- Give an enabled empty option an explicit prompt such as `Select a pocket`; the implementation otherwise renders a blank first option.\n- The component hard-codes the English `Error:` prefix; it has no translation prop.\n\n### Internationalization\n\n- Group, option, label, empty-option, and error content are caller-provided and can be localized.\n- The `Error:` prefix is internal English text. Localizing it requires an API or source change.\n- Compound values include the displayed `optGroup` string, so translating group labels can also change the submitted DOM value.\n\n### Keyboard and device\n\n- Keyboard navigation, focus, and mobile picker presentation are native `select` behavior; the component adds no custom key handlers or focus movement.\n- Long labels receive no local truncation or wrapping treatment and may be constrained by the platform picker.";
12
+ ds:tier ds:apps_landscape;
13
+ ds:documentationStage ds:tag.specialadoption-docs;
14
+ ds:hasProperty [
15
+ a ds:Property;
16
+ ds:name "`groupedOptions`";
17
+ ds:summary "Defines the native groups and their options.";
18
+ ds:propertyType "list of objects";
19
+ ds:defaultValue "—";
20
+ ds:constraints "Exact type: `groupedOption[]`, where `groupedOption` is `{ options: SelectOption[]; optGroup: string }` and `SelectOption` is `{ label: string; value: string; disabled?: boolean }`. Empty arrays are accepted; `disabled` is not forwarded. "
21
+ ], [
22
+ a ds:Property;
23
+ ds:name "`name`";
24
+ ds:summary "Sets the native field name and supplies the fallback id source. ";
25
+ ds:propertyType "text";
26
+ ds:defaultValue "—";
27
+ ds:constraints "The derived id replaces underscores and whitespace with hyphens, splits one camel-case boundary at a time, and lowercases the result. "
28
+ ], [
29
+ a ds:Property;
30
+ ds:name "`group`";
31
+ ds:summary "Controlled selected group label.";
32
+ ds:propertyType "text";
33
+ ds:defaultValue "—";
34
+ ds:constraints "Used only when `option` is non-empty to build the DOM value `${group}/${option}`. "
35
+ ], [
36
+ a ds:Property;
37
+ ds:name "`option`";
38
+ ds:summary "Controlled selected option value.";
39
+ ds:propertyType "text";
40
+ ds:defaultValue "—";
41
+ ds:constraints "An empty string forces the select value to `\"\"`; callers must provide a matching option for non-empty values. "
42
+ ], [
43
+ a ds:Property;
44
+ ds:name "`onChange`";
45
+ ds:summary "Reports the selected option value first and group label second. ";
46
+ ds:propertyType "callback";
47
+ ds:defaultValue "—";
48
+ ds:constraints "Exact type: `(newOption: string, newGroup: string) => void`. Values come from the selected option's `data-value` and `data-group`; missing data becomes `\"\"`. The component does not update controlled state. "
49
+ ], [
50
+ a ds:Property;
51
+ ds:name "`id`";
52
+ ds:summary "Overrides the derived select id and label target.";
53
+ ds:propertyType "text";
54
+ ds:defaultValue "Derived from `name`";
55
+ ds:constraints "Use a page-unique id.";
56
+ ds:optional "true"
57
+ ], [
58
+ a ds:Property;
59
+ ds:name "`label`";
60
+ ds:summary "Renders the native field label.";
61
+ ds:propertyType "text";
62
+ ds:defaultValue "`\"\"`";
63
+ ds:constraints "An empty string omits the label entirely.";
64
+ ds:optional "true"
65
+ ], [
66
+ a ds:Property;
67
+ ds:name "`emptyOption`";
68
+ ds:summary "Optionally inserts an empty first option.";
69
+ ds:propertyType "object";
70
+ ds:defaultValue "—";
71
+ ds:constraints "Exact type: `{ enabled: boolean; label?: string }`. `enabled: false` renders nothing; an omitted label renders an empty option label. The empty option is not automatically disabled for required fields. ";
72
+ ds:optional "true"
73
+ ], [
74
+ a ds:Property;
75
+ ds:name "`error`";
76
+ ds:summary "Applies invalid styling, `aria-invalid`, and renders error content after `Error:`. ";
77
+ ds:propertyType "node";
78
+ ds:defaultValue "—";
79
+ ds:constraints "Exact type: `ReactNode`. Truthiness controls the error state. Every errored instance uses the fixed id `pull-pocket-validation-message`, so multiple instances create duplicate ids. ";
80
+ ds:optional "true"
81
+ ], [
82
+ a ds:Property;
83
+ ds:name "`onBlur`";
84
+ ds:summary "Forwards the native select blur event.";
85
+ ds:propertyType "callback";
86
+ ds:defaultValue "—";
87
+ ds:constraints "Exact type: `FocusEventHandler<HTMLSelectElement>`. No internal touched state is maintained. ";
88
+ ds:optional "true"
89
+ ], [
90
+ a ds:Property;
91
+ ds:name "`disabled`";
92
+ ds:summary "Sets the native select's disabled state.";
93
+ ds:propertyType "boolean";
94
+ ds:defaultValue "—";
95
+ ds:constraints "Omission is treated as false and does not alter the controlled value. ";
96
+ ds:optional "true"
97
+ ], [
98
+ a ds:Property;
99
+ ds:name "`hidden`";
100
+ ds:summary "Sets the native `hidden` attribute on the select only. ";
101
+ ds:propertyType "boolean";
102
+ ds:defaultValue "—";
103
+ ds:constraints "Omission is treated as false. The outer wrapper, optional label, and error message remain in the DOM and may remain visible. ";
104
+ ds:optional "true"
105
+ ], [
106
+ a ds:Property;
107
+ ds:name "`required`";
108
+ ds:summary "Adds `is-required` to the visible label.";
109
+ ds:propertyType "boolean";
110
+ ds:defaultValue "—";
111
+ ds:constraints "Omission is treated as false. It does not set the native select's `required` attribute and does not disable or remove the empty option. ";
112
+ ds:optional "true"
113
+ ], [
114
+ a ds:Property;
115
+ ds:name "`className`";
116
+ ds:summary "Adds classes to the native select.";
117
+ ds:propertyType "text";
118
+ ds:defaultValue "—";
119
+ ds:constraints "Does not style the wrapper or label.";
120
+ ds:optional "true"
121
+ ], [
122
+ a ds:Property;
123
+ ds:name "`labelClassName`";
124
+ ds:summary "Adds classes to the label.";
125
+ ds:propertyType "text";
126
+ ds:defaultValue "—";
127
+ ds:constraints "Has no effect when `label` is empty.";
128
+ ds:optional "true"
129
+ ], [
130
+ a ds:Property;
131
+ ds:name "`wrapperClassName`";
132
+ ds:summary "Adds classes to the root validation wrapper.";
133
+ ds:propertyType "text";
134
+ ds:defaultValue "—";
135
+ ds:constraints "—";
136
+ ds:optional "true"
137
+ ].
@@ -0,0 +1,30 @@
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.loading_state a ds:Component;
6
+ ds:name "Loading State";
7
+ ds:summary "Loading State is an indeterminate status indicator with an off-screen `Loading...` label and a spinning Canonical icon hidden from assistive technology. It renders either a compact inline `<span role=\"status\">` or an outer `<div>` containing a Vanilla strip with centered spinner content.\n\nEvery non-inline rendering has the same outer wrapper. `centerOnScreen` only conditionally adds the CSS-module class that gives that wrapper full-viewport-height centering and padding. The component reports no percentage, accepts no custom message, and adds no focus target.";
8
+ ds:anatomyDsl "node:\n uri: ds:apps_landscape.component.loading_state\n edges:\n - node:\n role: contained-mode outer wrapper\n styles:\n size.height: 100vh when centerOnScreen is truthy\n spacing.padding: 1rem when centerOnScreen is truthy\n edges:\n - node:\n semantic: status\n role: contained loading status\n edges:\n - node:\n role: centered status content\n edges:\n - node:\n role: accessible loading label\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.icon\n role: indeterminate spinner\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"\n condition: inline is falsy\n - node:\n semantic: status\n role: inline loading status\n edges:\n - node:\n role: accessible loading label\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.icon\n role: indeterminate spinner\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"\n condition: inline is truthy";
9
+ ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-74&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 37\n\n";
10
+ ds:usage "### When to use\n\n**Wait for asynchronous content**\n\nIndicate that a region or page is waiting for indeterminate asynchronous work before stable content can render.\n\n**Signal route redirection**\n\nCompose the separate Redirecting component, which uses `LoadingState inline`, when visible route-transition wording is required.\n\n**Compact pending values**\n\nUse the inline variant where a count, status, or small content fragment is pending and a strip would disrupt its surrounding layout.\n\n### When not to use\n\n**Report determinate progress**\n\nDisplaying a progress percentage or completion count for known-length operations.\n\n**Incorrect pattern**: Using Loading State with a custom message or label to show “50% complete” or similar measured progress.\n\n**Remediation strategy**: Use a dedicated progress component (e.g., Vanilla Framework progress bar) when a percentage, count, or known total is available.\n\n**Load a button action**\n\nIndicating pending work initiated by a button click.\n\n**Incorrect pattern**: Wrapping a button in a Loading State div while its action awaits completion, disconnecting the status from the initiating control.\n\n**Remediation strategy**: Use the Button component’s native loading prop or disabled state so the pending status remains visually associated with the control that triggered it.\n\n**Explain a long operation**\n\nIndicating an extended wait without context about what is happening or why.\n\n**Incorrect pattern**: Rendering only the spinner with a generic “Loading…” message when a multi-minute operation is in progress, without explaining the task or recovery options.\n\n**Remediation strategy**: Add persistent context outside the Loading State component describing the operation; use a more specific status pattern (modal, toast, or status page) for long waits that need explanation or cancellation options.";
11
+ ds:guidelines "### Accessibility\n\n- Keep `role=\"status\"` and the off-screen `Loading...` label intact. The spinner is correctly `aria-hidden`, so state is not conveyed by animation alone.\n- `role=\"status\"` supplies polite live-region semantics. Do not wrap it in another competing status or alert that announces the same loading event.\n- The fixed message does not identify the affected region. Provide nearby context when multiple independent loading states can appear.\n- Do not move focus to the status; preserve focus on the initiating control or stable route destination.\n\n### Content\n\n- Use the separate Redirecting composition only when navigation, rather than data loading, is pending.\n- Pair long waits with useful visible context outside the spinner when users need to understand the operation or recovery path.\n- Do not add adjacent visible text that contradicts the fixed accessible `Loading...` status.\n\n### Responsive behavior\n\n- Use inline inside compact controls or copy and contained layout for a content region.\n- Reserve screen centering for a page-level wait state. Its source uses `height: 100vh` and `padding: 1rem`, with no small-viewport or dynamic-viewport override.\n- The default strip follows Vanilla layout. The component itself defines no width, breakpoint, or overflow rule.\n\n### Keyboard\n\n- Do not move focus to the spinner; preserve focus on the initiating control or next stable destination.\n- Loading State contains no interactive elements and must not be added to the tab order.\n- If pending work temporarily removes an interactive region, restore focus deliberately when stable content returns.\n\n### Internationalization\n\n- The accessible `Loading...` text is hardcoded English and cannot be customized through props. Localization requires a source API change.\n- The component has no visible copy, except when used by a separate composition such as Redirecting.\n- Ellipsis punctuation is part of the fixed source string; do not infer localization readiness from the icon-only visual presentation.\n\n";
12
+ ds:tier ds:apps_landscape;
13
+ ds:documentationStage ds:tag.specialadoption-docs;
14
+ ds:hasProperty [
15
+ a ds:Property;
16
+ ds:name "`LoadingState.centerOnScreen`";
17
+ ds:summary "Adds the full-viewport-height centering class to the outer non-inline wrapper. ";
18
+ ds:propertyType "boolean";
19
+ ds:defaultValue "—";
20
+ ds:constraints "It does not add another element. Ignored when `inline` is truthy because the inline branch returns before wrapper rendering. ";
21
+ ds:optional "true"
22
+ ], [
23
+ a ds:Property;
24
+ ds:name "`LoadingState.inline`";
25
+ ds:summary "Renders a bare status span instead of the contained strip structure. ";
26
+ ds:propertyType "boolean";
27
+ ds:defaultValue "—";
28
+ ds:constraints "Takes precedence over `centerOnScreen`; intended for compact placements. ";
29
+ ds:optional "true"
30
+ ].