@canonical/design-system 0.46.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/apps/component/file_tree.ttl +1 -2
- package/data/apps/component/inline_panel.ttl +2 -3
- package/data/apps/component/log.ttl +0 -1
- package/data/apps/component/navigation.ttl +0 -1
- package/data/apps/component/notification.ttl +0 -1
- package/data/apps/component/side_navigation.ttl +678 -5
- package/data/apps/component/skeleton_loading.ttl +0 -1
- package/data/apps/component/status_bar.ttl +0 -1
- package/data/apps/component/toolbar.ttl +0 -1
- package/data/apps/group/notifications.ttl +0 -1
- package/data/apps/layout/application_layout.ttl +1 -2
- package/data/apps/layout/content_layout.ttl +1 -2
- package/data/apps/layout/empty_layout.ttl +0 -1
- package/data/apps/layout/list_page_layout.ttl +0 -1
- package/data/apps/layout/login_layout.ttl +0 -1
- package/data/apps/layout/settings_page_layout.ttl +0 -1
- package/data/apps/layout/side_panel_form_layout.ttl +0 -1
- package/data/apps/layout/view_layout.ttl +0 -1
- package/data/apps/pattern/action_bar.ttl +0 -1
- package/data/apps/pattern/code_diff.ttl +2 -2
- package/data/apps/pattern/data_views.ttl +85 -0
- package/data/apps/pattern/datatable.ttl +8 -78
- package/data/apps/pattern/destructive_modal.ttl +0 -1
- package/data/apps/pattern/drawer.ttl +0 -1
- package/data/apps/pattern/keyboard_shortcuts.ttl +0 -1
- package/data/apps/pattern/notification_center.ttl +4 -5
- package/data/apps/pattern/page_header.ttl +58 -6
- package/data/apps/pattern/side_panel.ttl +221 -45
- package/data/apps/pattern/sidepanel_stacked.ttl +0 -1
- package/data/apps/subcomponent/data_table-action_bar.ttl +3 -3
- package/data/apps/subcomponent/data_table-body_cell.ttl +19 -19
- package/data/apps/subcomponent/data_table-group_header_row.ttl +1 -1
- package/data/apps/subcomponent/data_table-header_cell.ttl +11 -11
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +9 -9
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +2 -2
- package/data/apps/subcomponent/data_table-settings_menu.ttl +3 -3
- package/data/apps/subcomponent/data_views-filters.ttl +12 -0
- package/data/apps/subcomponent/data_views-saved_views.ttl +12 -0
- package/data/apps/subcomponent/data_views-sort_panel.ttl +12 -0
- package/data/apps/subcomponent/drawer-content.ttl +0 -1
- package/data/apps/subcomponent/drawer-footer.ttl +0 -1
- package/data/apps/subcomponent/drawer-header.ttl +0 -1
- package/data/apps/subcomponent/file_tree-node.ttl +0 -1
- package/data/apps/subcomponent/file_tree-search_box.ttl +13 -0
- package/data/apps/subcomponent/file_tree-tree_view.ttl +13 -0
- package/data/apps/subcomponent/git_diff_viewer-code_diff_viewer.ttl +13 -0
- package/data/apps/subcomponent/git_diff_viewer-file_header.ttl +13 -0
- package/data/apps/subcomponent/side_navigation-content.ttl +339 -3
- package/data/apps/subcomponent/side_navigation-context_switcher-field.ttl +18 -0
- package/data/apps/subcomponent/side_navigation-context_switcher-item_content.ttl +18 -0
- package/data/apps/subcomponent/side_navigation-context_switcher.ttl +172 -2
- package/data/apps/subcomponent/side_navigation-footer.ttl +270 -0
- package/data/apps/subcomponent/side_navigation-header.ttl +262 -0
- package/data/apps/subcomponent/side_navigation-item.ttl +115 -2
- package/data/apps/subcomponent/side_navigation-item_group.ttl +224 -2
- package/data/apps/subcomponent/side_panel-footer.ttl +39 -7
- package/data/apps/subcomponent/side_panel-header.ttl +86 -110
- package/data/apps_anbox/pattern/side_menu.ttl +5 -6
- package/data/apps_debcrafters/component/deb_package_card.ttl +0 -1
- package/data/apps_debcrafters/component/example.ttl +0 -1
- package/data/apps_debcrafters/component/my_fancy_component.ttl +0 -1
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +0 -1
- package/data/apps_landscape/component/checkbox_group.ttl +26 -26
- package/data/apps_landscape/component/code_editor.ttl +32 -32
- package/data/apps_landscape/component/cron_schedule.ttl +2 -2
- package/data/apps_landscape/component/expandable_radio_group.ttl +18 -18
- package/data/apps_landscape/component/expandable_truncation.ttl +11 -11
- package/data/apps_landscape/component/form_section.ttl +2 -2
- package/data/apps_landscape/component/gpg_key_field.ttl +21 -21
- package/data/apps_landscape/component/grouped_select.ttl +23 -23
- package/data/apps_landscape/component/loading_state.ttl +6 -6
- package/data/apps_landscape/component/managed_file_input.ttl +13 -13
- package/data/apps_landscape/component/multi_select_field.ttl +44 -44
- package/data/apps_landscape/component/password_constraints.ttl +2 -2
- package/data/apps_landscape/component/progress_bar.ttl +15 -15
- package/data/apps_landscape/component/read_only_field.ttl +10 -10
- package/data/apps_landscape/component/search_help_popup.ttl +10 -10
- package/data/apps_landscape/component/search_query_editor.ttl +29 -29
- package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
- package/data/apps_landscape/pattern/content_blocks.ttl +16 -16
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +26 -26
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +2 -2
- package/data/apps_landscape/pattern/form_field_help.ttl +12 -12
- package/data/apps_landscape/pattern/header_search_controls.ttl +26 -26
- package/data/apps_landscape/pattern/ignorable_notification.ttl +10 -10
- package/data/apps_landscape/pattern/information_grid.ttl +13 -13
- package/data/apps_landscape/pattern/instance_association.ttl +5 -5
- package/data/apps_landscape/pattern/process_flow.ttl +9 -9
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +29 -29
- package/data/apps_landscape/pattern/recurring_schedule.ttl +4 -4
- package/data/apps_landscape/pattern/responsive_action_group.ttl +11 -11
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +9 -9
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +30 -30
- package/data/apps_landscape/pattern/sortable_list.ttl +11 -11
- package/data/apps_landscape/pattern/table_filter.ttl +40 -40
- package/data/apps_landscape/pattern/table_filter_chips.ttl +44 -44
- package/data/apps_landscape/pattern/table_pagination.ttl +48 -48
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +18 -18
- package/data/apps_landscape/subcomponent/bold_substring.ttl +6 -6
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +7 -7
- package/data/apps_landscape/subcomponent/label_with_description.ttl +10 -10
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +9 -9
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +14 -14
- package/data/apps_launchpad/component/accordion.ttl +0 -1
- package/data/apps_launchpad/component/avatar.ttl +2 -2
- package/data/apps_launchpad/component/badge.ttl +2 -2
- package/data/apps_launchpad/component/button.ttl +2 -2
- package/data/apps_launchpad/component/combobox.ttl +2 -2
- package/data/apps_launchpad/component/description_list.ttl +1 -1
- package/data/apps_launchpad/component/drawer.ttl +0 -1
- package/data/apps_launchpad/component/link.ttl +0 -1
- package/data/apps_launchpad/component/markdown_editor.ttl +0 -1
- package/data/apps_launchpad/component/modal.ttl +5 -5
- package/data/apps_launchpad/component/pagination.ttl +0 -1
- package/data/apps_launchpad/component/popover.ttl +0 -1
- package/data/apps_launchpad/component/relative_timestamp.ttl +0 -1
- package/data/apps_launchpad/component/spinner.ttl +0 -1
- package/data/apps_launchpad/component/table.ttl +0 -1
- package/data/apps_launchpad/component/text_input.ttl +1 -1
- package/data/apps_launchpad/component/timestamp.ttl +0 -1
- package/data/apps_launchpad/component/tooltip.ttl +2 -2
- package/data/apps_launchpad/subcomponent/modal-content-body.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-header.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content.ttl +0 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/output_field.ttl +7 -7
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +1 -1
- package/data/apps_lxd/view/network_topology.ttl +6 -6
- package/data/apps_portal/component/badge.ttl +0 -1
- package/data/apps_portal/component/credit_card_input.ttl +0 -1
- package/data/apps_portal/component/key_value_pair.ttl +0 -1
- package/data/apps_portal/pattern/purchase_summary.ttl +0 -1
- package/data/apps_portal/subcomponent/read_only_modal.ttl +0 -1
- package/data/apps_support/component/data_spotlight.ttl +0 -1
- package/data/apps_support/subcomponent/ai_prompt_input.ttl +0 -1
- package/data/{apps_workplaceengineering → apps_workplace}/component/complex_multi_select.ttl +3 -4
- package/data/{apps_workplaceengineering → apps_workplace}/component/label-highlight.ttl +5 -5
- package/data/{apps_workplaceengineering → apps_workplace}/component/org_chart.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/rule.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/skip_link.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/theme_switcher.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/callout_numbers_card.ttl +3 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/confirmation_modal.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/org_event_card.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/subcomponent/multi_select_input.ttl +2 -3
- package/data/{apps_workplaceengineering.ttl → apps_workplace.ttl} +2 -2
- package/data/concept/Accessibility.ttl +9 -0
- package/data/concept/Breakpoints.ttl +9 -0
- package/data/concept/Design-tokens-Overview.ttl +10 -0
- package/data/concept/Filtering-patterns.ttl +0 -1
- package/data/concept/Foundations-Baseline.ttl +0 -1
- package/data/concept/Foundations-Color.ttl +10 -0
- package/data/concept/Foundations-Density--the-form-channel.ttl +0 -1
- package/data/concept/Foundations-Grid--Layout.ttl +1 -2
- package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +0 -1
- package/data/concept/Foundations-Spacing.ttl +0 -1
- package/data/concept/Foundations-Surfaces.ttl +0 -1
- package/data/concept/Foundations-Typography.ttl +1 -2
- package/data/concept/How-to-choose-between-question-mark-and-information-icon.ttl +10 -0
- package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +0 -1
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +0 -1
- package/data/concept/How-to-support-modifiers-in-a-component.ttl +0 -1
- package/data/concept/Intentional-friction.ttl +0 -1
- package/data/concept/Overflow.ttl +0 -1
- package/data/concept/Understanding-the-modifier-contract.ttl +0 -1
- package/data/documentation/layout/content_page_layout.ttl +0 -1
- package/data/documentation/layout/documentation_layout.ttl +0 -1
- package/data/documentation/layout/library_layout.ttl +0 -1
- package/data/documentation/layout/search_page_layout.ttl +0 -1
- package/data/documentation/pattern/library_side_navigation.ttl +2 -2
- package/data/global/component/accordion.ttl +15 -15
- package/data/global/component/announcement.ttl +3 -2
- package/data/global/component/avatar.ttl +1 -2
- package/data/global/component/badge.ttl +10 -10
- package/data/global/component/breadcrumbs.ttl +10 -10
- package/data/global/component/button.ttl +14 -14
- package/data/global/component/button_link.ttl +1 -2
- package/data/global/component/card.ttl +3 -7
- package/data/global/component/checkbox_field.ttl +0 -1
- package/data/global/component/chip.ttl +15 -14
- package/data/global/component/choices_field.ttl +0 -1
- package/data/global/component/code_snippet-content.ttl +0 -1
- package/data/global/component/code_snippet-header.ttl +0 -1
- package/data/global/component/code_snippet.ttl +1 -1
- package/data/global/component/color_field.ttl +0 -1
- package/data/global/component/combobox_field.ttl +0 -1
- package/data/global/component/contextual_menu.ttl +10 -9
- package/data/global/component/data_tooltip.ttl +49 -55
- package/data/global/component/date_field.ttl +0 -1
- package/data/global/component/date_time_field.ttl +0 -1
- package/data/global/component/drag_and_drop_list.ttl +0 -1
- package/data/global/component/dropdown_button.ttl +1 -1
- package/data/global/component/file_upload_field.ttl +509 -60
- package/data/global/component/heading.ttl +1 -1
- package/data/global/component/hidden_field.ttl +0 -1
- package/data/global/component/icon.ttl +4 -4
- package/data/global/component/icon_button.ttl +141 -6
- package/data/global/component/icon_in_container.ttl +2 -3
- package/data/{apps → global}/component/key_value_pair.ttl +2 -3
- package/data/global/component/keyboard_key.ttl +0 -1
- package/data/global/component/link.ttl +0 -1
- package/data/global/component/links.ttl +0 -1
- package/data/global/component/{markdown_field.ttl → markdown_editor_field.ttl} +3 -4
- package/data/global/component/mode_switcher.ttl +1 -2
- package/data/global/component/month_field.ttl +0 -1
- package/data/global/component/notification_inline.ttl +0 -1
- package/data/global/component/notification_toast.ttl +0 -1
- package/data/global/component/number_field.ttl +1 -2
- package/data/global/component/pagination.ttl +0 -1
- package/data/global/component/password_field.ttl +0 -1
- package/data/global/component/phone_field.ttl +0 -1
- package/data/global/component/popover.ttl +0 -1
- package/data/global/component/range_field.ttl +0 -80
- package/data/global/component/rating_field.ttl +0 -1
- package/data/global/component/relative_timestamp.ttl +0 -1
- package/data/global/component/rich_choices_field.ttl +0 -1
- package/data/global/component/rich_text_editor.ttl +0 -1
- package/data/global/component/rich_text_field.ttl +0 -1
- package/data/global/component/search_field.ttl +0 -1
- package/data/global/component/segmented_control.ttl +0 -1
- package/data/global/component/segmented_control_field.ttl +0 -1
- package/data/global/component/select_field.ttl +0 -1
- package/data/global/component/switch_field.ttl +0 -1
- package/data/global/component/table.ttl +2 -2
- package/data/global/component/tag.ttl +2 -2
- package/data/global/component/text_field.ttl +0 -1
- package/data/global/component/textarea_field.ttl +0 -1
- package/data/global/component/tile.ttl +8 -8
- package/data/global/component/time_field.ttl +0 -1
- package/data/global/component/timestamp.ttl +0 -1
- package/data/global/component/tooltip.ttl +76 -208
- package/data/global/component/wrapper_tooltip.ttl +188 -0
- package/data/global/group/buttons.ttl +0 -1
- package/data/global/group/cards.ttl +1 -2
- package/data/global/group/code_snippets.ttl +0 -1
- package/data/{apps → global}/group/key_value_pairs.ttl +2 -3
- package/data/global/group/keyboard_keys.ttl +0 -1
- package/data/global/group/tiles.ttl +0 -1
- package/data/global/layout/error_layout.ttl +0 -1
- package/data/global/layout/identity_page_form.ttl +0 -1
- package/data/global/modifier/achromat.ttl +8 -0
- package/data/global/modifier/constructive.ttl +1 -1
- package/data/global/modifier/dark.ttl +1 -1
- package/data/global/modifier/deprecated.ttl +8 -0
- package/data/global/modifier/{focused.ttl → deutan.ttl} +3 -3
- package/data/global/modifier/elevated.ttl +1 -1
- package/data/global/modifier/end_of_life.ttl +8 -0
- package/data/global/modifier/{muted.ttl → less.ttl} +3 -3
- package/data/global/modifier/light.ttl +1 -1
- package/data/global/modifier/{loading.ttl → lts.ttl} +3 -3
- package/data/global/modifier/modal.ttl +1 -1
- package/data/global/modifier/{editable.ttl → more.ttl} +3 -3
- package/data/global/modifier/protan.ttl +8 -0
- package/data/global/modifier/standard.ttl +8 -0
- package/data/global/modifier/tritan.ttl +8 -0
- package/data/global/modifier/typical.ttl +8 -0
- package/data/global/modifier_family/_emphasis.ttl +1 -2
- package/data/global/modifier_family/_other.ttl +1 -2
- package/data/global/modifier_family/{mode.ttl → color.ttl} +2 -2
- package/data/global/modifier_family/color_vision.ttl +9 -0
- package/data/global/modifier_family/contrast.ttl +9 -0
- package/data/global/modifier_family/elevation.ttl +9 -0
- package/data/global/modifier_family/support.ttl +9 -0
- package/data/global/modifier_family/surface.ttl +1 -1
- package/data/global/pattern/description_list.ttl +1 -2
- package/data/global/pattern/field.ttl +0 -1
- package/data/global/pattern/filter.ttl +0 -1
- package/data/global/pattern/form_login.ttl +0 -1
- package/data/global/pattern/info_table.ttl +0 -1
- package/data/global/pattern/modal.ttl +198 -142
- package/data/global/pattern/stepper.ttl +0 -1
- package/data/global/pattern/table_of_contents.ttl +0 -1
- package/data/global/pattern/timeline.ttl +22 -22
- package/data/global/pattern/{navigation.ttl → top_navigation.ttl} +2 -3
- package/data/global/subcomponent/accordion-item.ttl +1 -2
- package/data/global/subcomponent/breadcrumbs-item.ttl +0 -1
- package/data/global/subcomponent/card-content.ttl +1 -2
- package/data/global/subcomponent/card-footer.ttl +0 -1
- package/data/global/subcomponent/card-header.ttl +1 -2
- package/data/global/subcomponent/card-image.ttl +1 -2
- package/data/global/subcomponent/card-thumbnail.ttl +0 -1
- package/data/global/subcomponent/chart_legend.ttl +0 -1
- package/data/global/subcomponent/chart_legend_item.ttl +0 -1
- package/data/global/subcomponent/checkbox_input.ttl +0 -1
- package/data/global/subcomponent/color_input.ttl +0 -1
- package/data/global/subcomponent/combobox_input.ttl +0 -1
- package/data/global/subcomponent/contextual_menu-item.ttl +13 -0
- package/data/global/subcomponent/contextual_menu-list.ttl +13 -0
- package/data/global/subcomponent/contextual_menu-submenu.ttl +13 -0
- package/data/global/subcomponent/data_tooltip-chart_legend.ttl +133 -0
- package/data/global/subcomponent/date_input.ttl +0 -1
- package/data/global/subcomponent/date_time_input.ttl +0 -1
- package/data/global/subcomponent/field-description.ttl +1 -2
- package/data/global/subcomponent/field-error.ttl +1 -2
- package/data/global/subcomponent/field-label.ttl +1 -2
- package/data/global/subcomponent/file_upload_input.ttl +503 -50
- package/data/global/subcomponent/hidden_input.ttl +0 -1
- package/data/global/subcomponent/kvp_container.ttl +1 -2
- package/data/global/subcomponent/kvpitem_base.ttl +1 -2
- package/data/global/subcomponent/{markdown_input.ttl → markdown_editor_input.ttl} +3 -4
- package/data/global/subcomponent/modal-content.ttl +4 -13
- package/data/global/subcomponent/modal-footer.ttl +21 -29
- package/data/global/subcomponent/modal-header.ttl +53 -141
- package/data/global/subcomponent/month_input.ttl +0 -1
- package/data/global/subcomponent/number_input.ttl +1 -2
- package/data/global/subcomponent/password_input.ttl +0 -1
- package/data/global/subcomponent/phone_input.ttl +0 -1
- package/data/global/subcomponent/radio_input.ttl +0 -1
- package/data/global/subcomponent/range_input.ttl +3 -85
- package/data/global/subcomponent/rating_input.ttl +0 -1
- package/data/global/subcomponent/rich_text_input.ttl +0 -1
- package/data/global/subcomponent/search_input.ttl +8 -8
- package/data/global/subcomponent/segmented_control_input.ttl +0 -1
- package/data/global/subcomponent/select_input.ttl +0 -1
- package/data/global/subcomponent/spin_button.ttl +0 -1
- package/data/global/subcomponent/spinner.ttl +0 -1
- package/data/global/subcomponent/switch_input.ttl +0 -1
- package/data/global/subcomponent/table-cell.ttl +0 -1
- package/data/global/subcomponent/table-row.ttl +0 -1
- package/data/global/subcomponent/text_editor_input.ttl +12 -0
- package/data/global/subcomponent/text_input.ttl +0 -1
- package/data/global/subcomponent/textarea_input.ttl +1 -2
- package/data/global/subcomponent/tile-content.ttl +0 -1
- package/data/global/subcomponent/tile-header.ttl +5 -6
- package/data/global/subcomponent/time_input.ttl +0 -1
- package/data/global/subcomponent/timeline-content.ttl +1 -2
- package/data/global/subcomponent/timeline-event.ttl +1 -1
- package/data/global/variant/tooltip_dense.ttl +111 -5
- package/data/global/view/settings_view.ttl +0 -1
- package/data/global_dataviews/component/filter_button.ttl +486 -0
- package/data/global_dataviews/component/query_bar.ttl +1638 -0
- package/data/global_dataviews/component/query_chip.ttl +605 -0
- package/data/global_dataviews/group/query_chips.ttl +564 -0
- package/data/global_dataviews/modifier/exclusion.ttl +8 -0
- package/data/global_dataviews/modifier/inclusion.ttl +8 -0
- package/data/global_dataviews/modifier/match.ttl +8 -0
- package/data/global_dataviews/modifier/presence.ttl +8 -0
- package/data/global_dataviews/modifier/range.ttl +8 -0
- package/data/global_dataviews/modifier_family/condition.ttl +9 -0
- package/data/global_dataviews/subcomponent/query_chip-entry.ttl +185 -0
- package/data/global_dataviews/subcomponent/query_chip-segment.ttl +240 -0
- package/data/global_dataviews/subcomponent/query_input.ttl +1286 -0
- package/data/global_dataviews.ttl +6 -0
- package/data/sites/component/quote.ttl +0 -1
- package/data/sites/component/rule.ttl +0 -1
- package/data/sites/component/section.ttl +0 -1
- package/data/sites/component/store_card.ttl +7 -7
- package/data/sites/group/blog_cards.ttl +0 -1
- package/data/sites/group/xblog_elements.ttl +0 -1
- package/data/sites/layout/blog_page_layout.ttl +0 -1
- package/data/sites/layout/case_study_layout.ttl +0 -1
- package/data/sites/layout/site_layout.ttl +0 -1
- package/data/sites/pattern/hero-github.ttl +0 -1
- package/data/sites/pattern/hero.ttl +1 -2
- package/data/sites/pattern/info_table.ttl +0 -1
- package/data/sites/pattern/pricing_section.ttl +0 -1
- package/data/sites/pattern/pricing_table.ttl +0 -1
- package/data/sites/pattern/read_more_section.ttl +0 -1
- package/data/sites/pattern/skip_link.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/list.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/tabs.ttl +0 -1
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +0 -1
- package/data/tag/{wpeinital-implementation.ttl → workplaceinitial-implementation.ttl} +2 -2
- package/data/tag/{wpetriageupstream-and-deprecate.ttl → workplacetriageupstream-and-deprecate.ttl} +2 -2
- package/definitions/ontology.ttl +8 -2
- package/package.json +6 -6
- package/skills/adoption-a1-styles/SKILL.md +11 -0
- package/skills/adoption-a2-components/SKILL.md +82 -2
- package/skills/anatomy-author/SKILL.md +278 -95
- package/skills/anatomy-author/clarification-guidelines.md +150 -0
- package/skills/anatomy-author/completeness-checklist.md +224 -0
- package/skills/implement-component/SKILL.md +2 -2
- package/data/apps/subcomponent/side_panel-content.ttl +0 -14
- package/data/concept/Question-mark-vs-information-icon.ttl +0 -11
- package/data/global/component/tooltip_wrapper.ttl +0 -140
- package/data/global/modifier/highlighted.ttl +0 -8
- package/data/global/modifier/wireframe.ttl +0 -8
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.hidden_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "HiddenInput";
|
|
7
7
|
ds:summary "The non-visible value-carrying part a host field places in context; it holds a value submitted with the form but shown to no one. Consumed by [HiddenField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-erOCIafN7p) .";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/HiddenInput/HiddenInput.tsx (`.ds.form-hidden`). The\n# implementation ships no stylesheet, and correctly so: a hidden input is pure\n# markup — an <input type=\"hidden\"> that carries a value into the form and\n# paints nothing — so the anatomy is a single node with no styles and no parts.\nnode:\n uri: global.subcomponent.hidden_input";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The non-visible carrier part a host places in context to hold a value that travels with a submission but is never edited.\n\n\n\n### When to use\n\n- A host must retain a fixed or system-derived value alongside visible entries.\n\n- A value needs to accompany the field's data without inviting interaction.\n\n\n\n### When not to use\n\n- The person should see or change the value — compose **TextInput**.\n\n- The value is purely presentational and not part of the field's data — it belongs in the host's content, not an input part.";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,11 +6,10 @@ ds:global.subcomponent.kvp_container a ds:Subcomponent;
|
|
|
6
6
|
ds:name "KVP (container)";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "---\n# TODO implementation: no reference in @canonical/react-ds-global or react-ds-global-form\n# Notation-only migration. Two repairs: the root uri was\n# `ds:global.component:KeyValuePair` — the wrong type segment, the wrong block\n# and the retired colon spelling; and the item reference is spelled as the\n# subject that does exist, global.subcomponent.kvpitem_base. The notation's\n# markdown fence and title line are dropped.\nnode:\n uri: global.subcomponent.kvp_container\n styles:\n layout.type: flex\n layout.direction: column\n layout.align: flex-start\n spacing.gap: dimension.100 # the block gap between fields\n edges:\n - node:\n uri: global.subcomponent.kvpitem_base\n relation:\n cardinality: \"1..*\"\n slotName: default";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
13
|
-
ds:parentComponent ds:global.component.
|
|
12
|
+
ds:parentComponent ds:global.component.wrapper_tooltip;
|
|
14
13
|
ds:hasTokenBinding [
|
|
15
14
|
a ds:TokenBinding;
|
|
16
15
|
ds:viaBlock ds:global.subcomponent.kvp_container;
|
|
@@ -6,11 +6,10 @@ ds:global.subcomponent.kvpitem_base a ds:Subcomponent;
|
|
|
6
6
|
ds:name "KVPItem (base)";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "---\n# TODO implementation: no reference in @canonical/react-ds-global or react-ds-global-form\n# Notation-only migration. The root uri was `ds:global.subcomponent:KVPItem` in\n# the retired colon spelling.\n#\n# The notation carried FOUR trees in one cell — a base item, an `.Inline`\n# variant, a `.Stacked` variant and a `.Meta` variant — under uris\n# (`…:KVPItem.Inline`, `.Stacked`, `.Meta`) that name no ds: subject. One block\n# is one anatomy, so the base tree is the anatomy here, the Meta variant's two\n# extra parts are folded in as optional edges above the pair, and the rest is\n# recorded:\n# Inline — the same row, with layout.align: center rather than flex-start.\n# Stacked — a column rather than a row, layout.align: flex-start.\n# Meta — a heading and a meta-value above, and then the base item repeated\n# 1..* beneath them. That self-reference is left out rather than\n# encoded as recursion, so the heading and the meta-value here sit\n# above ONE key/value pair.\n# Either the variants earn their own blocks or they become a switch once someone\n# rules on it; nothing here invents the uris.\nnode:\n uri: global.subcomponent.kvpitem_base\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: flex-start\n edges:\n - node:\n role: heading\n styles:\n # From the Meta variant. `text/secondary/bold` migrates to the\n # composite it names; the size key admits dimension.* alone, so\n # typography.font carries the tier.\n typography.font: typography.text.secondary.bold\n typography.color: color.text\n relation:\n cardinality: \"0..1\"\n slotName: header\n - node:\n role: meta-value\n styles:\n # From the Meta variant.\n typography.font: typography.text.secondary\n typography.color: color.text\n relation:\n cardinality: \"0..1\"\n slotName: headerValue\n - node:\n role: key\n styles:\n typography.font: typography.text.secondary\n typography.color: color.text.muted\n relation:\n cardinality: \"1\"\n slotName: key\n - node:\n role: value\n styles:\n typography.font: typography.text.secondary\n typography.color: color.text\n relation:\n cardinality: \"1\"\n slotName: value";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
13
|
-
ds:parentComponent ds:global.component.
|
|
12
|
+
ds:parentComponent ds:global.component.wrapper_tooltip;
|
|
14
13
|
ds:hasTokenBinding [
|
|
15
14
|
a ds:TokenBinding;
|
|
16
15
|
ds:viaBlock ds:global.subcomponent.kvpitem_base;
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:global.subcomponent.
|
|
6
|
-
ds:name "
|
|
5
|
+
ds:global.subcomponent.markdown_editor_input a ds:Subcomponent;
|
|
6
|
+
ds:name "MarkdownEditorInput";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
12
|
+
ds:documentationStage ds:tag.triagedbacklog.
|
|
@@ -4,27 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.subcomponent.modal-content a ds:Subcomponent;
|
|
6
6
|
ds:name "Modal.Content";
|
|
7
|
-
ds:summary "";
|
|
8
|
-
ds:anatomyDsl "---\
|
|
7
|
+
ds:summary "The modal content sits between the header and the footer and holds the body of the modal, such as a message, a description or a form. It is always present and stacks its items vertically. It hugs its content until the content is taller than the space between the header and the footer. After that it fills the space and scrolls, while the header and footer stay fixed.";
|
|
8
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.modal-content\n styles:\n layout.type: flex\n layout.direction: column\n layout.align: flex-start\n # Hugs the content until it is taller than the space between the header\n # and the footer, then fills that space and scrolls.\n layout.overflow.block: auto\n spacing.gap: dimension.300\n spacing.internal.inline.start: dimension.300\n spacing.internal.inline.end: dimension.300";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
|
-
ds:usage "";
|
|
10
|
+
ds:usage "The modal content is a required part of [Modal](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-3zLQspaZbf), which covers when to use it.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.needsdesign;
|
|
14
13
|
ds:parentComponent ds:global.pattern.modal;
|
|
15
14
|
ds:hasTokenBinding [
|
|
16
15
|
a ds:TokenBinding;
|
|
17
16
|
ds:viaBlock ds:global.subcomponent.modal-content;
|
|
18
17
|
ds:node "$root";
|
|
19
|
-
anatomy:styleKey "spacing.
|
|
20
|
-
anatomy:styleState "default";
|
|
21
|
-
ds:rank 1;
|
|
22
|
-
ds:consumesSymbol dt:dimension.300
|
|
23
|
-
], [
|
|
24
|
-
a ds:TokenBinding;
|
|
25
|
-
ds:viaBlock ds:global.subcomponent.modal-content;
|
|
26
|
-
ds:node "$root";
|
|
27
|
-
anatomy:styleKey "spacing.internal.block.end";
|
|
18
|
+
anatomy:styleKey "spacing.gap";
|
|
28
19
|
anatomy:styleState "default";
|
|
29
20
|
ds:rank 1;
|
|
30
21
|
ds:consumesSymbol dt:dimension.300
|
|
@@ -4,23 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.subcomponent.modal-footer a ds:Subcomponent;
|
|
6
6
|
ds:name "Modal.Footer";
|
|
7
|
-
ds:summary "";
|
|
8
|
-
ds:anatomyDsl "---\
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
|
-
ds:usage "";
|
|
7
|
+
ds:summary "The modal footer sits at the bottom of the modal and holds its actions as buttons. At least one button is required. It is always present and stays fixed at the bottom while the content scrolls above it. A divider appears along its top edge when the content continues below the visible area.";
|
|
8
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.modal-footer\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n # Anchors the overflow divider.\n layout.position: relative\n spacing.internal.block.start: dimension.200\n spacing.internal.block.end: dimension.200\n spacing.internal.inline.start: dimension.300\n spacing.internal.inline.end: dimension.300\n appearance.background: color.background\n edges:\n - node:\n role: button group\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n spacing.gap: dimension.100\n edges:\n - node:\n uri: global.component.button\n relation:\n cardinality: \"1..*\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: overflow divider\n styles:\n layout.position: absolute\n layout.offset.top: 0\n layout.offset.left: 0\n size.width: 100%\n # No stroke-thickness symbol of 2px is declared, so the thickness is a\n # literal.\n size.block: 2px\n appearance.background: color.border.muted\n relation:\n # Drawn along the footer's top edge only while the content continues\n # below it.\n cardinality: \"0..1\"";
|
|
9
|
+
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-1356&t=3F9PQQB2fYjyLEYQ-1\n\n## Styling\n\n### Layout and spacing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-2100&t=3F9PQQB2fYjyLEYQ-1\n\n### Colors\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-3684&t=3F9PQQB2fYjyLEYQ-1";
|
|
10
|
+
ds:usage "The modal footer is a required part of [Modal](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-3zLQspaZbf), which covers when to use it.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
13
|
ds:documentationStage ds:tag.needsdesign;
|
|
14
14
|
ds:parentComponent ds:global.pattern.modal;
|
|
15
15
|
ds:hasTokenBinding [
|
|
16
|
-
a ds:TokenBinding;
|
|
17
|
-
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
18
|
-
ds:node "$root";
|
|
19
|
-
anatomy:styleKey "spacing.gap";
|
|
20
|
-
anatomy:styleState "default";
|
|
21
|
-
ds:rank 1;
|
|
22
|
-
ds:consumesSymbol dt:dimension.100
|
|
23
|
-
], [
|
|
24
16
|
a ds:TokenBinding;
|
|
25
17
|
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
26
18
|
ds:node "$root";
|
|
@@ -52,6 +44,22 @@ ds:global.subcomponent.modal-footer a ds:Subcomponent;
|
|
|
52
44
|
anatomy:styleState "default";
|
|
53
45
|
ds:rank 1;
|
|
54
46
|
ds:consumesSymbol dt:dimension.300
|
|
47
|
+
], [
|
|
48
|
+
a ds:TokenBinding;
|
|
49
|
+
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
50
|
+
ds:node "$root";
|
|
51
|
+
anatomy:styleKey "appearance.background";
|
|
52
|
+
anatomy:styleState "default";
|
|
53
|
+
ds:rank 1;
|
|
54
|
+
ds:consumesSymbol dt:color.background
|
|
55
|
+
], [
|
|
56
|
+
a ds:TokenBinding;
|
|
57
|
+
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
58
|
+
ds:node "$root/button group";
|
|
59
|
+
anatomy:styleKey "spacing.gap";
|
|
60
|
+
anatomy:styleState "default";
|
|
61
|
+
ds:rank 1;
|
|
62
|
+
ds:consumesSymbol dt:dimension.100
|
|
55
63
|
], [
|
|
56
64
|
a ds:TokenBinding;
|
|
57
65
|
ds:viaBlock ds:global.component.button;
|
|
@@ -231,23 +239,7 @@ ds:global.subcomponent.modal-footer a ds:Subcomponent;
|
|
|
231
239
|
], [
|
|
232
240
|
a ds:TokenBinding;
|
|
233
241
|
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
234
|
-
ds:node "$root/divider
|
|
235
|
-
anatomy:styleKey "layout.offset.inline.start";
|
|
236
|
-
anatomy:styleState "default";
|
|
237
|
-
ds:rank 1;
|
|
238
|
-
ds:consumesSymbol dt:dimension.300
|
|
239
|
-
], [
|
|
240
|
-
a ds:TokenBinding;
|
|
241
|
-
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
242
|
-
ds:node "$root/divider rule";
|
|
243
|
-
anatomy:styleKey "size.block";
|
|
244
|
-
anatomy:styleState "default";
|
|
245
|
-
ds:rank 1;
|
|
246
|
-
ds:consumesSymbol dt:dimension.stroke.thickness.medium
|
|
247
|
-
], [
|
|
248
|
-
a ds:TokenBinding;
|
|
249
|
-
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
250
|
-
ds:node "$root/divider rule";
|
|
242
|
+
ds:node "$root/overflow divider";
|
|
251
243
|
anatomy:styleKey "appearance.background";
|
|
252
244
|
anatomy:styleState "default";
|
|
253
245
|
ds:rank 1;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.subcomponent.modal-header a ds:Subcomponent;
|
|
6
6
|
ds:name "Modal.Header";
|
|
7
|
-
ds:summary "";
|
|
8
|
-
ds:anatomyDsl "
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
|
-
ds:usage "";
|
|
7
|
+
ds:summary "The modal header sits at the top of the modal and names it with a title. It holds a close button for dismissing the modal. It is always present and stays fixed at the top while the content scrolls beneath it. A divider appears along its bottom edge when the content continues above the visible area.";
|
|
8
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.modal-header\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n # Anchors the overflow divider.\n layout.position: relative\n spacing.gap: dimension.200\n spacing.internal.block.start: dimension.200\n spacing.internal.block.end: dimension.200\n spacing.internal.inline.start: dimension.300\n spacing.internal.inline.end: dimension.300\n appearance.background: color.background\n edges:\n - node:\n role: title\n styles:\n layout.flex.grow: 1\n typography.font: typography.heading.2\n typography.color: color.text\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: global.component.icon_button\n props:\n icon: close\n styles:\n layout.flex.shrink: 0\n relation:\n cardinality: \"1\"\n - node:\n role: overflow divider\n styles:\n layout.position: absolute\n layout.offset.bottom: 0\n layout.offset.left: 0\n size.width: 100%\n # No stroke-thickness symbol of 2px is declared, so the thickness is a\n # literal.\n size.block: 2px\n appearance.background: color.border.muted\n relation:\n # Drawn along the header's bottom edge only while the content continues\n # above it.\n cardinality: \"0..1\"";
|
|
9
|
+
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-1164&t=3F9PQQB2fYjyLEYQ-1\n\n## Styling\n\n### Layout and spacing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-1449&t=3F9PQQB2fYjyLEYQ-1\n\n### Colors\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-3252&t=3F9PQQB2fYjyLEYQ-1\n\n### Typography\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-4116&t=3F9PQQB2fYjyLEYQ-1";
|
|
10
|
+
ds:usage " The modal header is a required part of [Modal](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-3zLQspaZbf), which covers when to use it.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
13
|
ds:documentationStage ds:tag.needsdesign;
|
|
@@ -55,231 +55,143 @@ ds:global.subcomponent.modal-header a ds:Subcomponent;
|
|
|
55
55
|
], [
|
|
56
56
|
a ds:TokenBinding;
|
|
57
57
|
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
58
|
-
ds:node "$root
|
|
59
|
-
anatomy:styleKey "
|
|
58
|
+
ds:node "$root";
|
|
59
|
+
anatomy:styleKey "appearance.background";
|
|
60
60
|
anatomy:styleState "default";
|
|
61
61
|
ds:rank 1;
|
|
62
|
-
ds:consumesSymbol dt:
|
|
62
|
+
ds:consumesSymbol dt:color.background
|
|
63
63
|
], [
|
|
64
64
|
a ds:TokenBinding;
|
|
65
65
|
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
66
66
|
ds:node "$root/title";
|
|
67
|
-
anatomy:styleKey "typography.
|
|
68
|
-
anatomy:styleState "default";
|
|
69
|
-
ds:rank 1;
|
|
70
|
-
ds:consumesSymbol dt:typography.weight.light
|
|
71
|
-
], [
|
|
72
|
-
a ds:TokenBinding;
|
|
73
|
-
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
74
|
-
ds:node "$root/global.component.button";
|
|
75
|
-
anatomy:styleKey "spacing.internal.inline.start";
|
|
67
|
+
anatomy:styleKey "typography.font";
|
|
76
68
|
anatomy:styleState "default";
|
|
77
69
|
ds:rank 1;
|
|
78
|
-
ds:consumesSymbol dt:
|
|
70
|
+
ds:consumesSymbol dt:typography.heading.2
|
|
79
71
|
], [
|
|
80
72
|
a ds:TokenBinding;
|
|
81
73
|
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
82
|
-
ds:node "$root/
|
|
83
|
-
anatomy:styleKey "
|
|
74
|
+
ds:node "$root/title";
|
|
75
|
+
anatomy:styleKey "typography.color";
|
|
84
76
|
anatomy:styleState "default";
|
|
85
77
|
ds:rank 1;
|
|
86
|
-
ds:consumesSymbol dt:
|
|
78
|
+
ds:consumesSymbol dt:color.text
|
|
87
79
|
], [
|
|
88
80
|
a ds:TokenBinding;
|
|
89
|
-
ds:viaBlock ds:global.component.
|
|
81
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
90
82
|
ds:node "$root";
|
|
91
|
-
anatomy:styleKey "appearance.
|
|
83
|
+
anatomy:styleKey "appearance.background";
|
|
92
84
|
anatomy:styleState "default";
|
|
93
85
|
ds:rank 1;
|
|
94
|
-
ds:consumesSymbol dt:
|
|
86
|
+
ds:consumesSymbol dt:surface.color.foreground.ghost
|
|
95
87
|
], [
|
|
96
88
|
a ds:TokenBinding;
|
|
97
|
-
ds:viaBlock ds:global.component.
|
|
89
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
98
90
|
ds:node "$root";
|
|
99
91
|
anatomy:styleKey "appearance.background";
|
|
100
92
|
anatomy:styleState "default";
|
|
101
|
-
ds:rank
|
|
102
|
-
ds:consumesSymbol dt:modifier.color.foreground.
|
|
93
|
+
ds:rank 2;
|
|
94
|
+
ds:consumesSymbol dt:modifier.color.foreground.ghost
|
|
103
95
|
], [
|
|
104
96
|
a ds:TokenBinding;
|
|
105
|
-
ds:viaBlock ds:global.component.
|
|
97
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
106
98
|
ds:node "$root";
|
|
107
99
|
anatomy:styleKey "appearance.background";
|
|
108
100
|
anatomy:styleState "default";
|
|
109
|
-
ds:rank
|
|
110
|
-
ds:consumesSymbol dt:color.foreground.
|
|
101
|
+
ds:rank 3;
|
|
102
|
+
ds:consumesSymbol dt:color.foreground.ghost
|
|
111
103
|
], [
|
|
112
104
|
a ds:TokenBinding;
|
|
113
|
-
ds:viaBlock ds:global.component.
|
|
105
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
114
106
|
ds:node "$root";
|
|
115
107
|
anatomy:styleKey "appearance.background";
|
|
116
108
|
anatomy:styleState "hover";
|
|
117
109
|
ds:rank 1;
|
|
118
|
-
ds:consumesSymbol dt:color.foreground.
|
|
110
|
+
ds:consumesSymbol dt:color.foreground.ghost.hover
|
|
119
111
|
], [
|
|
120
112
|
a ds:TokenBinding;
|
|
121
|
-
ds:viaBlock ds:global.component.
|
|
113
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
122
114
|
ds:node "$root";
|
|
123
115
|
anatomy:styleKey "appearance.background";
|
|
124
116
|
anatomy:styleState "active";
|
|
125
117
|
ds:rank 1;
|
|
126
|
-
ds:consumesSymbol dt:color.foreground.
|
|
118
|
+
ds:consumesSymbol dt:color.foreground.ghost.active
|
|
127
119
|
], [
|
|
128
120
|
a ds:TokenBinding;
|
|
129
|
-
ds:viaBlock ds:global.component.
|
|
121
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
130
122
|
ds:node "$root";
|
|
131
123
|
anatomy:styleKey "appearance.background";
|
|
132
124
|
anatomy:styleState "disabled";
|
|
133
125
|
ds:rank 1;
|
|
134
|
-
ds:consumesSymbol dt:color.foreground.
|
|
126
|
+
ds:consumesSymbol dt:color.foreground.ghost.disabled
|
|
135
127
|
], [
|
|
136
128
|
a ds:TokenBinding;
|
|
137
|
-
ds:viaBlock ds:global.component.
|
|
129
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
138
130
|
ds:node "$root";
|
|
139
|
-
anatomy:styleKey "appearance.
|
|
140
|
-
anatomy:styleState "
|
|
141
|
-
ds:rank 1;
|
|
142
|
-
ds:consumesSymbol dt:modifier.color.border
|
|
143
|
-
], [
|
|
144
|
-
a ds:TokenBinding;
|
|
145
|
-
ds:viaBlock ds:global.component.button;
|
|
146
|
-
ds:node "$root";
|
|
147
|
-
anatomy:styleKey "appearance.border.color";
|
|
148
|
-
anatomy:styleState "default";
|
|
149
|
-
ds:rank 2;
|
|
150
|
-
ds:consumesSymbol dt:color.border.highlighted
|
|
151
|
-
], [
|
|
152
|
-
a ds:TokenBinding;
|
|
153
|
-
ds:viaBlock ds:global.component.button;
|
|
154
|
-
ds:node "$root";
|
|
155
|
-
anatomy:styleKey "appearance.border.color";
|
|
156
|
-
anatomy:styleState "default";
|
|
157
|
-
ds:rank 3;
|
|
158
|
-
ds:consumesSymbol dt:color.border
|
|
159
|
-
], [
|
|
160
|
-
a ds:TokenBinding;
|
|
161
|
-
ds:viaBlock ds:global.component.button;
|
|
162
|
-
ds:node "$root";
|
|
163
|
-
anatomy:styleKey "appearance.border.color";
|
|
164
|
-
anatomy:styleState "disabled";
|
|
165
|
-
ds:rank 1;
|
|
166
|
-
ds:consumesSymbol dt:color.border.highlighted.disabled
|
|
167
|
-
], [
|
|
168
|
-
a ds:TokenBinding;
|
|
169
|
-
ds:viaBlock ds:global.component.button;
|
|
170
|
-
ds:node "$root";
|
|
171
|
-
anatomy:styleKey "typography.color";
|
|
172
|
-
anatomy:styleState "default";
|
|
131
|
+
anatomy:styleKey "appearance.outline.color";
|
|
132
|
+
anatomy:styleState "focus";
|
|
173
133
|
ds:rank 1;
|
|
174
|
-
ds:consumesSymbol dt:modifier.color.
|
|
134
|
+
ds:consumesSymbol dt:modifier.color.focusRing
|
|
175
135
|
], [
|
|
176
136
|
a ds:TokenBinding;
|
|
177
|
-
ds:viaBlock ds:global.component.
|
|
137
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
178
138
|
ds:node "$root";
|
|
179
|
-
anatomy:styleKey "
|
|
180
|
-
anatomy:styleState "
|
|
139
|
+
anatomy:styleKey "appearance.outline.color";
|
|
140
|
+
anatomy:styleState "focus";
|
|
181
141
|
ds:rank 2;
|
|
182
|
-
ds:consumesSymbol dt:color.
|
|
183
|
-
], [
|
|
184
|
-
a ds:TokenBinding;
|
|
185
|
-
ds:viaBlock ds:global.component.button;
|
|
186
|
-
ds:node "$root";
|
|
187
|
-
anatomy:styleKey "typography.color";
|
|
188
|
-
anatomy:styleState "disabled";
|
|
189
|
-
ds:rank 1;
|
|
190
|
-
ds:consumesSymbol dt:color.text.disabled
|
|
191
|
-
], [
|
|
192
|
-
a ds:TokenBinding;
|
|
193
|
-
ds:viaBlock ds:global.component.button;
|
|
194
|
-
ds:node "$root";
|
|
195
|
-
anatomy:styleKey "typography.font";
|
|
196
|
-
anatomy:styleState "default";
|
|
197
|
-
ds:rank 1;
|
|
198
|
-
ds:consumesSymbol dt:typography.text.primary
|
|
199
|
-
], [
|
|
200
|
-
a ds:TokenBinding;
|
|
201
|
-
ds:viaBlock ds:global.component.button;
|
|
202
|
-
ds:node "$root";
|
|
203
|
-
anatomy:styleKey "spacing.gap";
|
|
204
|
-
anatomy:styleState "default";
|
|
205
|
-
ds:rank 1;
|
|
206
|
-
ds:consumesSymbol dt:dimension.100
|
|
142
|
+
ds:consumesSymbol dt:color.focusRing
|
|
207
143
|
], [
|
|
208
144
|
a ds:TokenBinding;
|
|
209
|
-
ds:viaBlock ds:global.component.
|
|
210
|
-
ds:node "$root";
|
|
211
|
-
anatomy:styleKey "
|
|
145
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
146
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
147
|
+
anatomy:styleKey "size.width";
|
|
212
148
|
anatomy:styleState "default";
|
|
213
149
|
ds:rank 1;
|
|
214
150
|
ds:consumesSymbol dt:dimension.200
|
|
215
151
|
], [
|
|
216
152
|
a ds:TokenBinding;
|
|
217
|
-
ds:viaBlock ds:global.component.
|
|
218
|
-
ds:node "$root";
|
|
219
|
-
anatomy:styleKey "
|
|
153
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
154
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
155
|
+
anatomy:styleKey "size.height";
|
|
220
156
|
anatomy:styleState "default";
|
|
221
157
|
ds:rank 1;
|
|
222
158
|
ds:consumesSymbol dt:dimension.200
|
|
223
159
|
], [
|
|
224
160
|
a ds:TokenBinding;
|
|
225
|
-
ds:viaBlock ds:global.component.
|
|
226
|
-
ds:node "$root";
|
|
227
|
-
anatomy:styleKey "appearance.outline.color";
|
|
228
|
-
anatomy:styleState "focus";
|
|
229
|
-
ds:rank 1;
|
|
230
|
-
ds:consumesSymbol dt:modifier.color.focusRing
|
|
231
|
-
], [
|
|
232
|
-
a ds:TokenBinding;
|
|
233
|
-
ds:viaBlock ds:global.component.button;
|
|
234
|
-
ds:node "$root";
|
|
235
|
-
anatomy:styleKey "appearance.outline.color";
|
|
236
|
-
anatomy:styleState "focus";
|
|
237
|
-
ds:rank 2;
|
|
238
|
-
ds:consumesSymbol dt:color.focusRing
|
|
239
|
-
], [
|
|
240
|
-
a ds:TokenBinding;
|
|
241
|
-
ds:viaBlock ds:global.component.button;
|
|
242
|
-
ds:node "$root/icon";
|
|
161
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
162
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
243
163
|
anatomy:styleKey "typography.color";
|
|
244
164
|
anatomy:styleState "default";
|
|
245
165
|
ds:rank 1;
|
|
246
166
|
ds:consumesSymbol dt:modifier.color.icon
|
|
247
167
|
], [
|
|
248
168
|
a ds:TokenBinding;
|
|
249
|
-
ds:viaBlock ds:global.component.
|
|
250
|
-
ds:node "$root/icon";
|
|
169
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
170
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
251
171
|
anatomy:styleKey "typography.color";
|
|
252
172
|
anatomy:styleState "default";
|
|
253
173
|
ds:rank 2;
|
|
254
|
-
ds:consumesSymbol dt:
|
|
174
|
+
ds:consumesSymbol dt:color.icon
|
|
255
175
|
], [
|
|
256
176
|
a ds:TokenBinding;
|
|
257
|
-
ds:viaBlock ds:global.component.
|
|
258
|
-
ds:node "$root/icon";
|
|
177
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
178
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
259
179
|
anatomy:styleKey "typography.color";
|
|
260
180
|
anatomy:styleState "disabled";
|
|
261
181
|
ds:rank 1;
|
|
262
182
|
ds:consumesSymbol dt:color.icon.disabled
|
|
263
183
|
], [
|
|
264
184
|
a ds:TokenBinding;
|
|
265
|
-
ds:viaBlock ds:global.
|
|
266
|
-
ds:node "$root/
|
|
267
|
-
anatomy:styleKey "
|
|
268
|
-
anatomy:styleState "default";
|
|
269
|
-
ds:rank 1;
|
|
270
|
-
ds:consumesSymbol dt:dimension.300
|
|
271
|
-
], [
|
|
272
|
-
a ds:TokenBinding;
|
|
273
|
-
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
274
|
-
ds:node "$root/divider rule";
|
|
275
|
-
anatomy:styleKey "size.block";
|
|
185
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
186
|
+
ds:node "$root/icon wrapper/case[global.subcomponent.spinner]";
|
|
187
|
+
anatomy:styleKey "typography.color";
|
|
276
188
|
anatomy:styleState "default";
|
|
277
189
|
ds:rank 1;
|
|
278
|
-
ds:consumesSymbol dt:
|
|
190
|
+
ds:consumesSymbol dt:color.icon
|
|
279
191
|
], [
|
|
280
192
|
a ds:TokenBinding;
|
|
281
193
|
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
282
|
-
ds:node "$root/divider
|
|
194
|
+
ds:node "$root/overflow divider";
|
|
283
195
|
anatomy:styleKey "appearance.background";
|
|
284
196
|
anatomy:styleState "default";
|
|
285
197
|
ds:rank 1;
|
|
@@ -6,8 +6,7 @@ ds:global.subcomponent.number_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "NumberInput";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
12
|
+
ds:documentationStage ds:tag.triagedbacklog.
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.password_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "PasswordInput";
|
|
7
7
|
ds:summary "The masked secret-entry part a host field places in context: it obscures the value as it is entered and provides a reveal/mask toggle so the user can check what they typed. It is consumed by controls such as PasswordField and is not used on its own.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/PasswordInput/styles.css on .ds.input.password and its\n# child selectors (> input, > .reveal-toggle, > .reveal-toggle > .reveal-icon),\n# together with the shared `.ds.input.chrome` rule in src/index.css, which the\n# component's own class list (`ds input password chrome`) puts on this same\n# element.\nnode:\n uri: global.subcomponent.password_input\n styles:\n # A composite wrapper: it overrides the chrome's `display: block` and resets\n # its padding, because the inner <input> is the text-bearing leaf.\n layout.type: flex\n layout.align: stretch\n layout.position: relative\n layout.boxSizing: border-box\n typography.direction: inherit\n size.width: 100%\n spacing.internal.block.start: 0\n spacing.internal.block.end: 0\n spacing.internal.inline.start: 0\n spacing.internal.inline.end: 0\n # ── the shared input chrome (src/index.css, `.ds.input.chrome`) ──────────\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: solid\n # The base theme is bottom-border-only: `border-color` is set from\n # --form-input-border-color, and then the top, right and left colours are\n # overridden to `transparent` (--form-input-border-color-{top,right,left}),\n # so only the bottom edge paints. The four-side key therefore takes the\n # literal the three overridden sides end at, and the bottom key the token\n # the fourth falls through to.\n appearance.border.color: transparent\n appearance.border.bottom.color: color.border\n # A `.danger` field — a failed validation — repaints the bottom border alone,\n # through --form-input-border-color-bottom.\n appearance.border.bottom.color@invalid: color.border.error\n appearance.radius: dimension.radius.small\n appearance.background: color.foreground.input\n typography.color: color.text\n # The font-family, font-size and line-height facets of the text-primary\n # composite are read (--typography-text-primary-font-family, and its\n # font-size and line-height through --form-input-font-size and\n # --form-input-line-height), so the composite is bound once: typography.size\n # admits dimension.* alone.\n typography.font: typography.text.primary\n motion.property: border-color, box-shadow\n # The hover fill reads --hover--color-foreground-input first, a computed state\n # variable that no stratum declares as a symbol.\n appearance.background@hover: color.foreground.input.hover\n # Focus lights all four edges and drops the user-agent outline for a ring of\n # its own.\n appearance.border.color@focus: color.focusRing\n appearance.outline.style@focus: none\n # A disabled control keeps its border BOX so its height still matches an\n # enabled one, and drops only the paint.\n appearance.background@disabled: color.foreground.input.disabled\n appearance.border.color@disabled: transparent\n interaction.cursor@disabled: not-allowed\n # Not bound, and why:\n # - height reads --form-input-height, a calc() over --space-baseline, which\n # no stratum declares;\n # - padding-block reads --form-input-padding-block, then\n # --component-padding-block, neither of which is declared. A density scope\n # re-derives the INLINE padding (--form-input-padding-inline, from\n # --density-padding-inline then --space-200) and never padding-block;\n # - the focus ring and the disabled text colour are a box-shadow at\n # --form-focus-ring-color and a read of --disabled--color-text: no roster\n # key takes a box-shadow, and the computed state variable is not a symbol;\n # - the transition duration reads --motion-duration-fast, undeclared;\n # - a `.danger` field lights the focus ring at color.focusRing.error, which\n # needs the compound of invalid and focus that this version of the\n # notation reserves. Its bottom border is bound above.\n edges:\n - node:\n role: masked value\n styles:\n layout.flex.grow: 1\n layout.flex.shrink: 1\n layout.flex.basis: 0%\n size.min.width: 0\n appearance.border.style: none\n appearance.background: transparent\n appearance.outline.style: none\n typography.color: inherit\n typography.fontFamily: inherit\n # The leaf carries the inline padding, which reads\n # --form-input-padding-inline then --component-padding-inline: neither\n # is declared. Font-size, line-height and the baseline nudges come from\n # the `.p` class.\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: reveal toggle\n styles:\n layout.type: flex\n layout.align: center\n layout.justify: center\n appearance.border.style: none\n appearance.background: transparent\n typography.color: color.icon\n appearance.outline.style@focus: none\n interaction.cursor: pointer\n appearance.radius@focus: dimension.radius.small\n # The toggle keeps color.icon in every pointer state, per design\n # review, so there is no hover binding. Its focus ring is a box-shadow\n # at color.focusRing, which no roster key takes. padding-inline reads\n # --form-field-inline-gap then --container-gap-default, undeclared.\n edges:\n - node:\n role: reveal icon\n styles:\n size.width: dimension.200\n size.height: dimension.200\n appearance.background: currentColor\n # show.svg and hide.svg from @canonical/ds-assets, applied as a\n # mask keyed off data-state so the glyph takes currentColor; no\n # roster key takes a mask.\n relation:\n cardinality: \"1\"\n relation:\n # The toggle is rendered only when the input is `revealable`.\n cardinality: \"0..1\"\n slotName: suffix";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The concealed single-line entry part a host places in context for sensitive text that must be obscured as it is typed.\n\n\n\n### When to use\n\n- A host collects a secret credential or sensitive string that should not be shown.\n\n- Typed characters must be masked from onlookers during entry.\n\n\n\n### When not to use\n\n- The text is ordinary and should remain readable — compose [TextInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-csRvI-VTpO) .";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.phone_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "PhoneInput";
|
|
7
7
|
ds:summary "The composite phone-entry part a host field places in context: a country selector paired with a number-entry area. It is consumed by controls such as PhoneField and is not used on its own.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/PhoneInput/styles.css on .ds.input.phone and its child\n# selectors (> .country-select, > .number-input), together with the shared\n# `.ds.input.chrome` rule in src/index.css, which the component's own class list\n# (`ds input phone chrome`) puts on this same element.\nnode:\n uri: global.subcomponent.phone_input\n styles:\n # A composite wrapper: two controls share one visual box, so it overrides the\n # chrome's `display: block` and resets its padding.\n layout.type: flex\n layout.align: stretch\n layout.boxSizing: border-box\n size.width: 100%\n spacing.internal.block.start: 0\n spacing.internal.block.end: 0\n spacing.internal.inline.start: 0\n spacing.internal.inline.end: 0\n # ── the shared input chrome (src/index.css, `.ds.input.chrome`) ──────────\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: solid\n # The base theme is bottom-border-only: `border-color` is set from\n # --form-input-border-color, and then the top, right and left colours are\n # overridden to `transparent` (--form-input-border-color-{top,right,left}),\n # so only the bottom edge paints. The four-side key therefore takes the\n # literal the three overridden sides end at, and the bottom key the token\n # the fourth falls through to.\n appearance.border.color: transparent\n appearance.border.bottom.color: color.border\n # A `.danger` field — a failed validation — repaints the bottom border alone,\n # through --form-input-border-color-bottom.\n appearance.border.bottom.color@invalid: color.border.error\n appearance.radius: dimension.radius.small\n appearance.background: color.foreground.input\n typography.color: color.text\n # The font-family, font-size and line-height facets of the text-primary\n # composite are read (--typography-text-primary-font-family, and its\n # font-size and line-height through --form-input-font-size and\n # --form-input-line-height), so the composite is bound once: typography.size\n # admits dimension.* alone.\n typography.font: typography.text.primary\n motion.property: border-color, box-shadow\n # The hover fill reads --hover--color-foreground-input first, a computed state\n # variable that no stratum declares as a symbol.\n appearance.background@hover: color.foreground.input.hover\n # Focus lights all four edges and drops the user-agent outline for a ring of\n # its own.\n appearance.border.color@focus: color.focusRing\n appearance.outline.style@focus: none\n # A disabled control keeps its border BOX so its height still matches an\n # enabled one, and drops only the paint.\n appearance.background@disabled: color.foreground.input.disabled\n appearance.border.color@disabled: transparent\n interaction.cursor@disabled: not-allowed\n # Not bound, and why:\n # - height reads --form-input-height, a calc() over --space-baseline, which\n # no stratum declares;\n # - padding-block reads --form-input-padding-block, then\n # --component-padding-block, neither of which is declared. A density scope\n # re-derives the INLINE padding (--form-input-padding-inline, from\n # --density-padding-inline then --space-200) and never padding-block;\n # - the focus ring and the disabled text colour are a box-shadow at\n # --form-focus-ring-color and a read of --disabled--color-text: no roster\n # key takes a box-shadow, and the computed state variable is not a symbol;\n # - the transition duration reads --motion-duration-fast, undeclared;\n # - a `.danger` field lights the focus ring at color.focusRing.error, which\n # needs the compound of invalid and focus that this version of the\n # notation reserves. Its bottom border is bound above.\n edges:\n - node:\n role: country selector\n styles:\n appearance.native: none\n appearance.border.style: none\n appearance.background: transparent\n typography.color: inherit\n typography.fontFamily: inherit\n typography.whiteSpace: nowrap\n interaction.cursor: pointer\n size.min.width: 5.5rem\n # The separator between the two controls: a border-inline-end at\n # --form-input-border-width. The roster has an inline-end colour key\n # but no inline-end width key, so only the colour is bound.\n appearance.border.inline.end.color: color.border\n # Focus tints the selector with the input hover fill; its first rank,\n # --hover--color-foreground-input, is a computed state variable that no\n # stratum declares as a symbol.\n appearance.background@focus: color.foreground.input.hover\n appearance.outline.style@focus: none\n interaction.cursor@disabled: not-allowed\n # Not bound: padding-inline and padding-inline-end read\n # --form-input-padding-inline / --form-field-inline-gap, then\n # --component-padding-inline / --container-gap-default, none declared;\n # the disabled text colour reads --form-input-color-disabled, i.e. the\n # computed --disabled--color-text; and the disabled separator colour is\n # `transparent`, which the inline-end colour key (token only) cannot\n # take. The `.p` class supplies font-size, line-height and the\n # baseline nudges.\n relation:\n cardinality: \"1\"\n - node:\n role: number entry\n styles:\n layout.flex.grow: 1\n layout.flex.shrink: 1\n layout.flex.basis: 0%\n size.min.width: 0\n appearance.border.style: none\n appearance.background: transparent\n appearance.outline.style: none\n typography.color: inherit\n typography.fontFamily: inherit\n interaction.cursor@disabled: not-allowed\n # The leaf carries the inline padding (--form-input-padding-inline,\n # then --component-padding-inline: undeclared), and its disabled text\n # colour reads the computed --disabled--color-text.\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The telephone-number entry part a host places in context when the value follows dialling conventions.\n\n\n\n### When to use\n\n- A host collects a phone number that benefits from regional formatting and validation.\n\n- The value should be guided toward a recognised dialling pattern.\n\n\n\n### When not to use\n\n- The value is free-form text with no number conventions — compose [TextInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-csRvI-VTpO) .\n\n- The value is a general numeric quantity within a range — compose [RangeInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-UoMsaXBhOs) .";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.radio_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "RadioInput";
|
|
7
7
|
ds:summary "The atomic single-select option part a host places in context: one selectable choice within a mutually-exclusive set. It is consumed by a choices group (e.g. single-select Choices/SimpleChoices) which supplies the set, labelling, and validation; it is not used on its own.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/RadioInput/styles.css on .ds.form-radio. The atomic radio\n# control: a circular native input with the design-system selection chrome,\n# carrying no label — the host supplies it.\nnode:\n uri: global.subcomponent.radio_input\n styles:\n appearance.native: none\n layout.boxSizing: border-box\n # margin-inline reads --form-input-padding-inline, then\n # --component-padding-inline: neither is declared.\n # A 16px control: a fixed element size, deliberately NOT a baseline multiple.\n size.width: dimension.200\n size.height: dimension.200\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: solid\n appearance.border.color: color.border\n appearance.radius: 50%\n # The unselected fill reads the surface channel so the control adapts to\n # OnSurface stepping, then the flat token.\n appearance.background: [surface.color.foreground.radio.unselected, color.foreground.radio.unselected]\n appearance.background@hover: color.foreground.radio.unselected.hover\n # Selected, the ring border takes the selected token; the dot itself is a\n # radial-gradient (selected at 40%, unselected from 41%), which no roster key\n # takes. Its first rank, --surface-color-foreground-radio-selected, is not\n # declared: the surface family mints channels for the checkmark and the\n # unselected fill only.\n appearance.border.color@selected: color.foreground.radio.selected\n appearance.border.color@focus: color.focusRing\n appearance.outline.style@focus: none\n appearance.border.color@disabled: color.border.disabled\n appearance.background@disabled: color.foreground.radio.unselected.disabled\n interaction.cursor: pointer\n interaction.cursor@disabled: not-allowed\n motion.property: background-color, border-color\n # Not bound: the transition duration reads --motion-duration-fast; the focus\n # ring is a box-shadow at color.focusRing; and a hovered selected radio\n # repaints the gradient from --hover--color-foreground-radio-selected, a\n # computed state variable that is not a symbol and would need a compound\n # state in any case.";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The mutually-exclusive single-choice entry part a host places in context when exactly one option must win from a small set.\n\n### When to use\n- A host presents a short, fully visible set of options where only one may be chosen.\n- Seeing all options side by side aids the decision.\n\n### When not to use\n- Several choices may be active at once — compose **CheckboxInput**.\n- The option set is long or searchable — compose **SelectInput** or **ComboboxInput**.";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|