@canonical/design-system 0.47.0 → 0.49.0-experimental.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/README.md +3 -3
- 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 +7 -7
- package/data/apps/pattern/datatable.ttl +7 -7
- 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 +17 -10
- package/data/apps/pattern/side_panel.ttl +219 -43
- package/data/apps/pattern/sidepanel_stacked.ttl +0 -1
- package/data/apps/subcomponent/data_table-action_bar.ttl +1 -1
- 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 +7 -7
- 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 +0 -1
- package/data/apps/subcomponent/data_views-saved_views.ttl +0 -1
- package/data/apps/subcomponent/data_views-sort_panel.ttl +0 -1
- 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_navigation-primary_navigation.ttl +638 -0
- package/data/apps/subcomponent/side_navigation-secondary_navigation.ttl +646 -0
- package/data/apps/subcomponent/side_panel-content.ttl +45 -5
- package/data/apps/subcomponent/side_panel-footer.ttl +40 -8
- package/data/apps/subcomponent/side_panel-header.ttl +87 -111
- package/data/apps.ttl +2 -1
- package/data/apps_anbox/pattern/side_menu.ttl +5 -6
- package/data/apps_anbox.ttl +2 -1
- 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_debcrafters.ttl +2 -1
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +0 -1
- package/data/apps_juju.ttl +2 -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_landscape.ttl +2 -1
- 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 +6 -6
- 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_launchpad.ttl +2 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/favorite_star_icon_button.ttl +16 -0
- 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_lxd.ttl +2 -1
- package/data/apps_notary.ttl +2 -1
- 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_portal.ttl +2 -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_workplace/component/complex_multi_select.ttl +0 -1
- package/data/apps_workplace/component/label-highlight.ttl +2 -2
- package/data/apps_workplace/component/org_chart.ttl +0 -1
- package/data/apps_workplace/component/rule.ttl +0 -1
- package/data/apps_workplace/component/skip_link.ttl +0 -1
- package/data/apps_workplace/component/theme_switcher.ttl +0 -1
- package/data/apps_workplace/pattern/callout_numbers_card.ttl +1 -1
- package/data/apps_workplace/pattern/confirmation_modal.ttl +0 -1
- package/data/apps_workplace/pattern/org_event_card.ttl +0 -1
- package/data/apps_workplace/subcomponent/multi_select_input.ttl +0 -1
- package/data/apps_workplace.ttl +2 -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 +1 -1
- package/data/documentation.ttl +2 -1
- package/data/global/component/accordion.ttl +16 -16
- package/data/global/component/announcement.ttl +2 -2
- package/data/global/component/avatar.ttl +0 -1
- package/data/global/component/badge.ttl +11 -11
- package/data/global/component/breadcrumbs.ttl +9 -9
- package/data/global/component/button.ttl +11 -11
- package/data/global/component/button_link.ttl +0 -1
- package/data/global/component/card.ttl +2 -2
- package/data/global/component/checkbox_field.ttl +0 -1
- package/data/global/component/chip.ttl +15 -15
- 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 +2 -2
- 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/{tooltip_data.ttl → data_tooltip.ttl} +41 -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 +3 -3
- package/data/global/component/file_upload_field.ttl +2 -2
- package/data/global/component/heading.ttl +1 -1
- package/data/global/component/hidden_field.ttl +0 -1
- package/data/global/component/icon.ttl +3 -3
- package/data/global/component/icon_button.ttl +119 -6
- package/data/global/component/icon_in_container.ttl +2 -3
- package/data/global/component/key_value_pair.ttl +0 -1
- 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_editor_field.ttl +0 -1
- package/data/global/component/mode_switcher.ttl +0 -1
- 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 +0 -1
- 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/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/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 +9 -9
- package/data/global/component/time_field.ttl +0 -1
- package/data/global/component/timestamp.ttl +0 -1
- package/data/global/component/tooltip.ttl +31 -123
- package/data/global/component/{tooltip_wrapper.ttl → wrapper_tooltip.ttl} +45 -53
- package/data/global/group/buttons.ttl +0 -1
- package/data/global/group/cards.ttl +0 -1
- package/data/global/group/code_snippets.ttl +0 -1
- package/data/global/group/key_value_pairs.ttl +0 -1
- 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/alpha.ttl +1 -1
- package/data/global/modifier/beta.ttl +1 -1
- package/data/global/modifier/branded.ttl +8 -0
- package/data/global/modifier/caution.ttl +1 -1
- package/data/global/modifier/comfortable.ttl +1 -1
- package/data/global/modifier/completed.ttl +1 -1
- package/data/global/modifier/constructive.ttl +1 -1
- package/data/global/modifier/{elevated.ttl → contrasted.ttl} +2 -2
- package/data/global/modifier/dark.ttl +2 -2
- package/data/global/modifier/dense.ttl +1 -1
- package/data/global/modifier/deprecated.ttl +8 -0
- package/data/global/modifier/destructive.ttl +1 -1
- package/data/global/modifier/{success.ttl → deutan.ttl} +3 -3
- package/data/global/modifier/end_of_life.ttl +8 -0
- package/data/global/modifier/error.ttl +2 -2
- package/data/global/modifier/experimental.ttl +1 -1
- package/data/global/modifier/failed.ttl +1 -1
- package/data/global/modifier/highlighted.ttl +8 -0
- package/data/global/modifier/in_progress.ttl +1 -1
- package/data/global/modifier/information.ttl +2 -2
- package/data/global/modifier/{surface2.ttl → layer1.ttl} +2 -2
- package/data/global/modifier/{surface1.ttl → layer2.ttl} +2 -2
- package/data/global/modifier/{surface3.ttl → layer3.ttl} +2 -2
- package/data/global/modifier/less.ttl +8 -0
- package/data/global/modifier/light.ttl +2 -2
- package/data/global/modifier/lts.ttl +8 -0
- package/data/global/modifier/more.ttl +8 -0
- package/data/global/modifier/muted.ttl +8 -0
- package/data/global/modifier/planned.ttl +1 -1
- package/data/global/modifier/primary.ttl +1 -1
- package/data/global/modifier/protan.ttl +8 -0
- package/data/global/modifier/secondary.ttl +1 -1
- package/data/global/modifier/stable.ttl +1 -1
- package/data/global/modifier/standard.ttl +8 -0
- package/data/global/modifier/tertiary.ttl +1 -1
- package/data/global/modifier/tritan.ttl +8 -0
- package/data/global/modifier/typical.ttl +8 -0
- package/data/global/modifier/warning.ttl +2 -2
- package/data/global/modifier_family/anticipation.ttl +1 -0
- package/data/global/modifier_family/{mode.ttl → color.ttl} +3 -2
- package/data/global/modifier_family/color_vision.ttl +10 -0
- package/data/global/modifier_family/contrast.ttl +10 -0
- package/data/global/modifier_family/density.ttl +1 -0
- package/data/global/modifier_family/emphasis.ttl +10 -0
- package/data/global/modifier_family/importance.ttl +1 -0
- package/data/global/modifier_family/lifecycle.ttl +1 -0
- package/data/global/modifier_family/release.ttl +1 -0
- package/data/global/modifier_family/severity.ttl +10 -0
- package/data/global/modifier_family/support.ttl +10 -0
- package/data/global/modifier_family/surface.ttl +2 -1
- package/data/global/pattern/description_list.ttl +0 -1
- package/data/global/pattern/field.ttl +0 -1
- package/data/global/pattern/filter.ttl +0 -1
- package/data/global/pattern/form.ttl +6 -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 +202 -141
- 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/top_navigation.ttl +0 -1
- package/data/global/{modifier_family/_other.ttl → state/editable.ttl} +2 -2
- package/data/global/{modifier_family/_emphasis.ttl → state/focused.ttl} +2 -2
- package/data/global/{modifier_family/_color_luminosity.ttl → state/invalid.ttl} +2 -2
- package/data/global/{modifier/modal.ttl → state/loading.ttl} +3 -3
- package/data/global/state/valid.ttl +8 -0
- package/data/global/state/wireframe.ttl +8 -0
- 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 +1 -2
- package/data/global/subcomponent/chart_legend_item.ttl +1 -2
- 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 +3 -3
- 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_editor_input.ttl +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +28 -3
- package/data/global/view/settings_view.ttl +0 -1
- package/data/global.ttl +2 -1
- package/data/global_dataviews/component/filter_button.ttl +3 -4
- package/data/global_dataviews/component/query_bar.ttl +1 -2
- package/data/global_dataviews/component/query_chip.ttl +2 -2
- package/data/global_dataviews/group/query_chips.ttl +1 -2
- package/data/global_dataviews/modifier/exclusion.ttl +1 -1
- package/data/global_dataviews/modifier/inclusion.ttl +1 -1
- package/data/global_dataviews/modifier/match.ttl +1 -1
- package/data/global_dataviews/modifier/presence.ttl +1 -1
- package/data/global_dataviews/modifier/range.ttl +1 -1
- package/data/global_dataviews/modifier_family/condition.ttl +1 -0
- package/data/global_dataviews/subcomponent/query_chip-entry.ttl +1 -2
- package/data/global_dataviews/subcomponent/query_chip-segment.ttl +1 -2
- package/data/global_dataviews/subcomponent/query_input.ttl +1 -2
- package/data/global_dataviews.ttl +2 -1
- 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.ttl +2 -1
- package/data/sites_stores.ttl +2 -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 +6 -2
- 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/sites_webcomponentsprototype.ttl +2 -1
- package/definitions/ontology.ttl +46 -0
- package/package.json +6 -6
- package/skills/design-auditor/SKILL.md +4 -4
- package/skills/implement-component/SKILL.md +1 -1
- package/skills/specify-component/SKILL.md +1 -1
- package/src/graph/GraphStore.ts +8 -2
- package/data/global/modifier_family/criticality.ttl +0 -9
- package/skills/map-journeys/SKILL.md +0 -395
- package/skills/map-journeys/journey-graph.example.html +0 -298
- package/skills/model-domains/SKILL.md +0 -502
|
@@ -6,17 +6,16 @@ ds:global.subcomponent.card-content a ds:Subcomponent;
|
|
|
6
6
|
ds:name "Card.Content";
|
|
7
7
|
ds:summary "The card content is the primary body area of the component used to house the main information of the [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD). It can include body text, data points, or interactive elements like buttons and links. Its purpose is to serve as the flexible space where the detailed story or task of the card is communicated to the user. Because cards are used for comparison, this section is structured to show the same types of information across all instances in a set.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Card/common/Content/styles.css on .ds.card-content, with the\n# parent's own child rules in src/lib/component/Card/styles.css\n# (.ds.card > .card-content, and the divider on a non-last section).\nnode:\n uri: global.subcomponent.card-content\n styles:\n layout.type: flex\n layout.direction: column\n layout.grid.row: 3\n layout.grid.column: \"1 / -1\"\n # --card-content-* are declared in :root. The block padding is deliberately\n # asymmetric (one baseline above, two below), which no single spacing role\n # can say.\n spacing.gap: dimension.100 # --card-content-gap, the block gap between fields\n spacing.internal.block.start: dimension.100 # --card-content-padding-block-start\n spacing.internal.block.end: dimension.200 # --card-content-padding-block-end\n spacing.internal.inline.start: dimension.200 # --card-content-padding-inline, a surface inset\n spacing.internal.inline.end: dimension.200 # --card-content-padding-inline, a surface inset\n # A content section that is not the card's last draws the divider to the\n # section below. The roster has no block-end colour key, so the bottom key\n # carries it; the matching width, dimension.stroke.thickness.medium via\n # --card-border-width, has no one-edge key at all.\n appearance.border.bottom.color: color.border.muted\n appearance.border.style: solid";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
14
12
|
ds:hasProperty [
|
|
15
13
|
a ds:Property;
|
|
16
14
|
ds:name "children";
|
|
17
15
|
ds:propertyType "node";
|
|
18
16
|
ds:optional "false"
|
|
19
17
|
];
|
|
18
|
+
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
20
19
|
ds:parentComponent ds:global.component.card;
|
|
21
20
|
ds:hasTokenBinding [
|
|
22
21
|
a ds:TokenBinding;
|
|
@@ -6,17 +6,16 @@ ds:global.subcomponent.card-header a ds:Subcomponent;
|
|
|
6
6
|
ds:name "Card.Header";
|
|
7
7
|
ds:summary "The card header is a structural sub-component used to provide the primary context for the [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD). It contains the title and optional subtitles or icons to identify the object being described. Its sole functionality is to offer a consistent anchoring point for identification at the top of the container.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Card/common/Header/styles.css on .ds.card-header, with the\n# parent's own child rules in src/lib/component/Card/styles.css\n# (.ds.card > .card-header).\nnode:\n uri: global.subcomponent.card-header\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.justify: space-between\n # The card places each section on a fixed row track and spans its single\n # column; the header is track 2.\n layout.grid.row: 2\n layout.grid.column: \"1 / -1\"\n # --card-header-gap and --card-header-padding-{block,inline} are declared in\n # :root off --dimension-200.\n spacing.gap: dimension.200 # --card-header-gap, between title and actions\n spacing.internal.block.start: dimension.200 # --card-header-padding-block, a surface inset\n spacing.internal.block.end: dimension.200 # --card-header-padding-block, a surface inset\n spacing.internal.inline.start: dimension.200 # --card-header-padding-inline, a surface inset\n spacing.internal.inline.end: dimension.200 # --card-header-padding-inline, a surface inset\n # The card collapses the header/content seam: with a content section\n # directly after it, the header's block-end padding drops to a raw 0, which\n # the parent writes as unthemable by design.\n edges:\n # The implementation renders one container with `children`; the two positions\n # are what `justify-content: space-between` is for, and they carry no styles\n # of their own there. The title's `font/weight/semibold` binding is dropped:\n # neither the header nor its children set a font-weight.\n - node:\n role: title\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: actions\n relation:\n cardinality: \"0..1\"\n slotName: actions";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
14
12
|
ds:hasProperty [
|
|
15
13
|
a ds:Property;
|
|
16
14
|
ds:name "children";
|
|
17
15
|
ds:propertyType "node";
|
|
18
16
|
ds:optional "false"
|
|
19
17
|
];
|
|
18
|
+
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
20
19
|
ds:parentComponent ds:global.component.card;
|
|
21
20
|
ds:hasTokenBinding [
|
|
22
21
|
a ds:TokenBinding;
|
|
@@ -6,11 +6,9 @@ ds:global.subcomponent.card-image a ds:Subcomponent;
|
|
|
6
6
|
ds:name "Card.Image";
|
|
7
7
|
ds:summary "The card image is a full-width visual element that spans the horizontal extent of the [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD) container. It is used to provide high-impact visual context or to represent the primary subject of sequentially to reflect the true architecturesequentially to reflect the true architecturesequentially to reflect the true architecturethe card, such as a product photo or a hero graphic. Its sole functionality is to reinforce the narrative of the card through large-scale media.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Card/common/Image/styles.css on .ds.card-image, with the\n# parent's own child rules in src/lib/component/Card/styles.css\n# (.ds.card > .card-image, and the divider on a non-last section).\nnode:\n uri: global.subcomponent.card-image\n styles:\n layout.type: block\n layout.grid.row: 1\n layout.grid.column: \"1 / -1\"\n size.width: 100%\n size.height: auto\n # Media stays full bleed: the image section pads nothing.\n # An image that is not the card's last section draws the divider below it.\n # The roster has no block-end colour key, so the bottom key carries it.\n appearance.border.bottom.color: color.border.muted\n appearance.border.style: solid\n # `object.fit: cover` is dropped: the implementation sets no object-fit, and\n # the roster's key is layout.objectFit.";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
14
12
|
ds:hasProperty [
|
|
15
13
|
a ds:Property;
|
|
16
14
|
ds:name "url";
|
|
@@ -23,6 +21,7 @@ ds:global.subcomponent.card-image a ds:Subcomponent;
|
|
|
23
21
|
ds:propertyType "text";
|
|
24
22
|
ds:optional "false"
|
|
25
23
|
];
|
|
24
|
+
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
26
25
|
ds:parentComponent ds:global.component.card;
|
|
27
26
|
ds:hasTokenBinding [
|
|
28
27
|
a ds:TokenBinding;
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.card-thumbnail a ds:Subcomponent;
|
|
|
6
6
|
ds:name "Card.Thumbnail";
|
|
7
7
|
ds:summary "Displays a small thumbnail image within a card, typically used alongside content for logo/icon representation.";
|
|
8
8
|
ds:anatomyDsl "---\n# TODO implementation: no reference in @canonical/react-ds-global or react-ds-global-form\n# Notation-only migration: the structure and the bindings are kept, the values\n# are migrated off the retired slash notation.\nnode:\n uri: global.subcomponent.card-thumbnail\n # Every spacing binding below is a ROLE match, not a value match: the retired\n # value each line names is not a symbol in any namespace a spacing key admits,\n # so the symbol says what the space IS for and the old value stays on the line.\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: flex-start\n # `spacing.internal: spacing/medium` is not a roster key and spacing/medium\n # names no symbol; the four sides take the surface inset, which is what a\n # padded card section reads elsewhere in the component.\n spacing.internal.block.start: spacing.inset.surface.block\n spacing.internal.block.end: spacing.inset.surface.block\n spacing.internal.inline.start: spacing.inset.surface.inline\n spacing.internal.inline.end: spacing.inset.surface.inline\n edges:\n - node:\n role: image\n styles:\n size.width: 4rem\n size.height: 4rem\n layout.flex.shrink: 0\n layout.objectFit: contain\n relation:\n cardinality: \"1\"\n - node:\n role: content\n relation:\n cardinality: \"0..1\"\n slotName: default";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,11 +6,10 @@ ds:global.subcomponent.chart_legend a ds:Subcomponent;
|
|
|
6
6
|
ds:name "ChartLegend";
|
|
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. Three repairs: the root uri was\n# `ds:global.component:ChartLegend` — the wrong type segment, the wrong block and\n# the retired colon spelling; the heading it referenced,\n# `ds:global.subcomponent:ChartLegendHeading`, names no ds: subject, so the\n# position becomes a role node; and the item reference is spelled as the subject\n# that does exist, global.subcomponent.chart_legend_item. The notation's markdown\n# fence and title line are dropped.\nnode:\n uri: global.subcomponent.chart_legend\n styles:\n layout.type: flex\n layout.direction: column\n layout.align: flex-start\n edges:\n - node:\n role: heading\n styles:\n # `text/secondary/bold` migrates to the composite it names; the size\n # key admits dimension.* alone, so 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 uri: global.subcomponent.chart_legend_item\n relation:\n cardinality: \"1..*\"\n slotName: default";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "**Accessibility**\n\n**Hover and focus triggers** \nTooltips must be accessible via both pointer (hover) and keyboard (focus). Any element that triggers a tooltip must be focusable and expose the same information on focus as on hover. The tooltip itself has no focus state.\n\n**Screen reader support** \nTooltip content should be programmatically associated with its trigger using appropriate ARIA attributes. Content must be announced without requiring additional interaction.\n\n**Content clarity and brevity** \nAs mentioned earlier, tooltip content should be concise and written in plain language. Avoid relying on tooltips to communicate critical or required information, as they may not be consistently discovered.\n\n**Non-hover environments** \nOn touch devices where hover is not available, tooltips should either appear on tap, or be replaced by an alternative pattern. Again, no essential info should be hidden behind a hover-only interaction. \n\n\n\n**Device and input considerations**\n\n**Pointer vs touch behavior** \nOn pointer devices, tooltips appear on hover and dismiss on pointer exit. On touch devices, tooltips should be triggered by tap and dismissible via a second tap (on itself), outside tap, or timeout.\n\n**Target size and spacing** \nInteractive elements that trigger tooltips must meet the minimum touch target size (24 px by 24 px on desktops). Avoid attaching tooltips to very small or densely packed targets without sufficient padding.\n\n**Responsive positioning** \nTooltip placement should adapt to viewport constraints. When insufficient space is available, the tooltip should flip or reposition to remain fully visible.\n\n\n\n**Content**\n\n**Purpose of tooltips** \nAgain, as mentioned earlier, use tooltips to provide supplementary, non-critical information that is used as clarification.\n\n**Appropriate use cases**\n\n- Explaining unfamiliar icons, abbreviations, or controls\n- Providing short contextual hints without adding visual clutter\n- Supporting data interpretation in charts and dashboards\n\n**Avoid misuse**\n\n- Do not include essential instructions or required actions\n- Do not include complex, multi-step, or interactive content\n- Do not duplicate clearly visible labels or text\n\n**Length and structure** \nKeep content short (ideally one line, maximum two lines for standard). Avoid paragraphs.\n\n\n\n**Animation**\n\n**Entrance and exit timing** \nTooltips should appear after a short delay on hover or focus (~400 ms) and dismiss after a similar delay when the pointer leaves.\n\n**Motion behaviour** \nThis element uses subtle, non-distracting motion. Cursor-follow behaviour (for data vis) should feel responsive and stable.\n\n**Interruptions and re-triggering** \nIf the pointer moves between adjacent triggers, skip exit/entry animations and display the new tooltip immediately to maintain continuity.\n\n\n\n**Keyboard navigation**\n\n**Focus order** \nTooltip triggers must be reachable via standard tab navigation. The tooltip itself should not receive focus unless it contains interactive content (which I realise can happen if we’re using links – could you help out here please [Elaine Liman](mailto:elaine.liman@canonical.com)?).\n\n**Dismissal** \nTooltips should dismiss when the focus moves away from the trigger\n\n\n\n**Interaction behavior**\n\n**Trigger types** \nTooltips may be triggered by icons, text, or UI controls. For data vis, tooltips may follow the cursor.\n\n**Positioning** \nDefault placement should be centred relative to the trigger with a consistent offset. Placement should adjust dynamically to avoid viewport overflow.\n\n**Collision handling** \nIn-built, but there is consistent collision padding to ensure tooltips do not touch screen edges (or overlap critical UI elements). \n\n\n\n**Layout and spacing**\n\n**Standard and dense variants**\n\n- Standard tooltips prioritise readability with balanced padding\n- Dense tooltips reduce spacing for compact environments\n\n\n\n**Wrapper variant** \nWrapper tooltips support more complex content structures and flexible layouts. Spacing should follow token-based guidance but remain adaptable to context (at the designer’s discretion)\n\n\n\n**Color and theming**\n\n**Contrast and readability** \nThe tooltip ensures sufficient contrast between its background and the text it houses, in all themes. \n\n**Contextual theming** \nFor data vis, tooltip styling may match the visualisation theme (light or dark) for consistency.\n\n\n\n**Overflow and constraints**\n\n**Viewport boundaries** \nTooltips must remain fully visible within the viewport. If necessary, reposition or constrain width.\n\n**Content overflow** \nAvoid scrolling within tooltips. If content exceeds reasonable limits, use a more appropriate pattern (e.g.modal – do we have this?)";
|
|
12
11
|
ds:tier ds:global;
|
|
13
|
-
ds:parentComponent ds:global.component.
|
|
12
|
+
ds:parentComponent ds:global.component.data_tooltip;
|
|
14
13
|
ds:hasTokenBinding [
|
|
15
14
|
a ds:TokenBinding;
|
|
16
15
|
ds:viaBlock ds:global.subcomponent.chart_legend;
|
|
@@ -6,11 +6,10 @@ ds:global.subcomponent.chart_legend_item a ds:Subcomponent;
|
|
|
6
6
|
ds:name "ChartLegendItem";
|
|
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:ChartLegendItem`\n# in the retired colon spelling; the notation's markdown fence and title line are\n# dropped.\nnode:\n uri: global.subcomponent.chart_legend_item\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n # `spacing.internal.vertical` is not a roster key: it becomes the two block\n # sides. Both it and the gap carry dimension.100, which the spacing keys now\n # admit; no spacing symbol resolves to 8px in every context, so the dimension\n # is bound and the role it plays is named on the line.\n spacing.internal.block.start: dimension.100 # a surface inset\n spacing.internal.block.end: dimension.100 # a surface inset\n spacing.gap: dimension.100 # the inline gap between marks\n edges:\n - node:\n role: marker\n styles:\n appearance.background: color.text\n relation:\n cardinality: \"1\"\n slotName: icon\n - node:\n role: label\n styles:\n # `text/secondary/root` migrates to the composite it names; the size\n # key admits dimension.* alone, so typography.font carries the tier.\n typography.font: typography.text.secondary\n typography.color: color.text\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: value\n styles:\n typography.font: typography.text.secondary\n typography.color: color.text\n relation:\n cardinality: \"0..1\"\n slotName: value\n - node:\n role: divider\n styles:\n appearance.background: color.palette.gray.180\n relation:\n cardinality: \"0..1\"\n slotName: separator";
|
|
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.data_tooltip;
|
|
14
13
|
ds:hasTokenBinding [
|
|
15
14
|
a ds:TokenBinding;
|
|
16
15
|
ds:viaBlock ds:global.subcomponent.chart_legend_item;
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.checkbox_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "CheckboxInput";
|
|
7
7
|
ds:summary "The atomic checked/unchecked part a host places in context. It carries the binary state and the user's direct toggle, and is consumed by components such as [CheckboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-vwBCoHgXoG), a filter, or a multi-select choices group, which supply its label, validation, and surrounding meaning.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/CheckboxInput/styles.css on .ds.form-checkbox and its\n# ::before glyph. A native <input type=\"checkbox\"> with the design-system\n# selection chrome; it carries no label — the host supplies it.\nnode:\n uri: global.subcomponent.checkbox_input\n styles:\n appearance.native: none\n layout.boxSizing: border-box\n # Positioning context for the masked checkmark/minus glyph.\n layout.position: relative\n # margin-inline reads --form-label-padding-inline, which no stratum declares,\n # falling back to 0: the control aligns to the field edge, not to the input's\n # inner padding.\n spacing.external.inline.start: 0\n spacing.external.inline.end: 0\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: dimension.radius.small\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.checkbox.unselected, color.foreground.checkbox.unselected]\n appearance.background@hover: color.foreground.checkbox.unselected.hover\n # The selected fill and border read --surface-color-foreground-checkbox-selected\n # first, which no stratum declares (the surface family mints channels for the\n # checkmark and the unselected fill only), so the flat token is written.\n appearance.background@selected: color.foreground.checkbox.selected\n appearance.border.color@selected: color.foreground.checkbox.selected\n # A mixed box paints exactly as a selected one; only the glyph differs.\n appearance.background@indeterminate: color.foreground.checkbox.selected\n appearance.border.color@indeterminate: color.foreground.checkbox.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.checkbox.unselected.disabled\n interaction.cursor: pointer\n interaction.cursor@disabled: not-allowed\n motion.property: background-color, border-color\n # Not bound, and why:\n # - the transition duration reads --motion-duration-fast, undeclared;\n # - the focus ring is a box-shadow at color.focusRing, which no roster key\n # takes;\n # - the compound faces the stylesheet paints — a hovered selected box\n # (--hover--color-foreground-checkbox-selected, a computed state variable\n # that is not a symbol) and a disabled selected box\n # (color.foreground.checkbox.selected.disabled) — need a compound state,\n # which this version of the notation reserves.\n edges:\n - node:\n # drawn as ::before\n role: selection glyph\n styles:\n layout.position: absolute\n # `inset: 0` stretches the glyph over the whole box.\n layout.offset.top: 0\n layout.offset.right: 0\n layout.offset.bottom: 0\n layout.offset.left: 0\n # One pseudo-element draws both marks: `:checked` masks\n # checkmark.svg onto this box and `:indeterminate` masks minus.svg\n # onto it, which is why the node is the selection glyph rather than\n # the check mark alone. Both faces take the same paint; only the mask\n # differs, and no roster key takes a mask.\n # The mark is a mask with `background-color` behind it, because a\n # background-image SVG cannot be recoloured and would ignore the\n # theme. No roster key takes a mask. Deliberately, the paint arrives\n # only WITH the mask: an unmasked background-color would fill the whole\n # box in the unselected state.\n appearance.background@selected: [surface.color.foreground.checkbox.checkmark, color.foreground.checkbox.checkmark]\n appearance.background@indeterminate: [surface.color.foreground.checkbox.checkmark, color.foreground.checkbox.checkmark]\n appearance.background@disabled: color.foreground.checkbox.checkmark.disabled\n relation:\n cardinality: \"1\"";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The independent on/off entry part a host places in context for a single, self-contained choice.\n\n\n\n### When to use\n\n- A host needs one or more choices that each toggle independently, where any combination may be selected.\n\n- A choice represents a discrete opt-in or opt-out that carries meaning on its own.\n\n- A group of related choices may all be active at once.\n\n\n\n### When not to use\n\n- Choices are mutually exclusive and exactly one must win — compose [RadioInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-x_sKubP8Qh) .\n\n- A single setting flips an immediate, system-like state — compose [SwitchInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-rCfe2Hk8yE) .\n\n- The host offers many choices better presented as a condensed list — compose [SelectInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-EVwqNhd3WH) .\n\n";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.combobox_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "ComboboxInput";
|
|
7
7
|
ds:summary "The type-to-filter selection part a host field places in context: a query entry paired with a results list the user filters and picks from, optionally showing chosen values as removable tokens. It is consumed by controls such as ComboboxField 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/ComboboxInput/styles.css on .ds.form-combobox and its\n# child selectors, with src/lib/subcomponent/ComboboxInput/common/List/styles.css\n# (.ds.combobox-list) and common/ResetButton/styles.css\n# (.ds.combobox-reset-button). The stylesheet corrects the tree: the query entry\n# is a wrapper carrying the shared input chrome, the clear control sits inside\n# it, and the selected tokens live in their own container above it.\nnode:\n uri: global.subcomponent.combobox_input\n styles:\n layout.type: grid\n layout.grid.columns: 1fr auto\n layout.grid.rows: auto\n edges:\n - node:\n role: selected items\n styles:\n layout.grid.column: \"1 / -1\"\n layout.type: flex\n layout.wrap: wrap\n # The gap and the block-end margin read --space-050, which no stratum\n # declares, and the container is `display: none` while empty — a\n # display value the roster has no key for, since layout.type carries\n # the display the element has when it is shown.\n edges:\n - node:\n role: selected token\n styles:\n layout.type: inline-flex\n layout.align: center\n appearance.background: color.foreground.secondary\n appearance.background@hover: color.foreground.secondary.hover\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: solid\n appearance.border.color: color.border.muted\n appearance.radius: [dimension.radius.full, 9999px]\n typography.color: color.text\n interaction.cursor: pointer\n motion.property: background-color\n # Only the composite's font-size facet is read\n # (--typography-text-secondary-font-size); typography.size admits\n # dimension.* alone, so the composite carries it.\n typography.font: typography.text.secondary\n # The chip's own gap (0.25rem) and padding (0.125rem 0.5rem) are\n # literals the stylesheet writes; the spacing keys admit either,\n # so they are written as the implementation has them.\n spacing.gap: 0.25rem\n spacing.internal.block.start: 0.125rem\n spacing.internal.block.end: 0.125rem\n spacing.internal.inline.start: 0.5rem\n spacing.internal.inline.end: 0.5rem\n edges:\n - node:\n role: remove icon\n styles:\n typography.size: 0.75em\n typography.lineHeight: 1\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"0..1\"\n - node:\n role: query entry\n styles:\n layout.grid.column: \"1 / -1\"\n layout.grid.row: 2\n # A composite wrapper: it overrides the chrome's `display: block` and\n # resets its padding, because the inner <input> is the text-bearing\n # leaf. It also declares `anchor-name: --combobox-input`, which the\n # results list positions against; no roster key takes an anchor name.\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\n # alone, 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,\n # which needs the compound of invalid and focus that this version of\n # the notation reserves. Its bottom border is bound above.\n edges:\n - node:\n role: 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:\n # neither is declared.\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n # The reset control IS the design-system Button: ResetButton.tsx\n # renders <Button> from @canonical/react-ds-global with the\n # `ds combobox-reset-button` class on it, so this is a named child\n # with the contextual overrides that class applies. It is rendered\n # unconditionally by both the single and the multiple combobox.\n uri: global.component.button\n styles:\n layout.flex.shrink: 0\n layout.type: flex\n layout.align: center\n layout.justify: center\n typography.color: color.text.muted\n typography.color@hover: color.text\n typography.size: 1rem\n typography.lineHeight: 1\n interaction.cursor: pointer\n appearance.outline.style@focus: none\n appearance.radius@focus: dimension.radius.small\n # The class opens with `all: unset`, which strips every one of\n # Button's own declarations before these are applied.\n # padding-inline reads --component-padding-inline, which no\n # stratum declares, and the focus ring is a box-shadow at\n # color.focusRing, which no roster key takes.\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: results list\n styles:\n layout.grid.column: \"1 / -1\"\n layout.listStyle: none\n layout.overflow.block: auto\n size.max.height: 15rem\n appearance.background: color.background\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: solid\n appearance.border.color: color.border\n appearance.radius: dimension.radius.small\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 spacing.external.block.start: 2px\n # `margin: 0` zeroes the other three sides before the block-start\n # nudge is applied.\n spacing.external.block.end: 0\n spacing.external.inline.start: 0\n spacing.external.inline.end: 0\n # A native popover positioned with CSS anchor positioning\n # (position-anchor: --combobox-input, position-area, width:\n # anchor-size(inline)) and lifted by a box-shadow: no roster key takes\n # an anchor, a position-area or a shadow.\n edges:\n - node:\n role: option\n styles:\n interaction.cursor: pointer\n motion.property: background-color\n appearance.background@hover: color.foreground.ghost.hover\n typography.weight@selected: bold\n # Two faces, and they are different elements of state: `.selected`\n # is the CHOSEN option (List.tsx sets it from isSelected) and takes\n # the bold weight, while `.highlighted` — the keyboard cursor —\n # takes the same fill as a hovered option, which the hover binding\n # above already carries.\n # padding reads --component-padding-block and\n # --component-padding-inline, neither declared.\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"1\"";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The filterable single-choice entry part a host places in context when the option set is large or searchable.\n\n### When to use\n- A host presents many options and the person narrows them by typing before choosing one.\n- The option set is long enough that scanning alone is slow.\n- A free-text query should surface and match against a known set of choices.\n\n### When not to use\n- The option set is short and scannable without filtering — compose **SelectInput**.\n- Choices are few and benefit from being shown all at once — compose **RadioInput**.\n- The entry is open prose with no fixed option set — compose **TextInput**.";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:global.subcomponent.contextual_menu-item a ds:Subcomponent;
|
|
6
|
+
ds:name "ContextualMenu.Item";
|
|
7
|
+
ds:summary "One entry of a contextual menu: a link when it has a `url`, otherwise an action, or the parent that opens a submenu.";
|
|
8
|
+
ds:anatomyDsl "";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "";
|
|
11
|
+
ds:guidelines "";
|
|
12
|
+
ds:tier ds:global;
|
|
13
|
+
ds:parentComponent ds:global.component.contextual_menu.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:global.subcomponent.contextual_menu-list a ds:Subcomponent;
|
|
6
|
+
ds:name "ContextualMenu.List";
|
|
7
|
+
ds:summary "The open list of a contextual menu: a `role=\"menu\"` of its items, separators and submenus, mounted only while the menu is open.";
|
|
8
|
+
ds:anatomyDsl "";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "";
|
|
11
|
+
ds:guidelines "";
|
|
12
|
+
ds:tier ds:global;
|
|
13
|
+
ds:parentComponent ds:global.component.contextual_menu.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:global.subcomponent.contextual_menu-submenu a ds:Subcomponent;
|
|
6
|
+
ds:name "ContextualMenu.Submenu";
|
|
7
|
+
ds:summary "A nested menu anchored beside its parent item, shown while that item is highlighted or hovered.";
|
|
8
|
+
ds:anatomyDsl "";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "";
|
|
11
|
+
ds:guidelines "";
|
|
12
|
+
ds:tier ds:global;
|
|
13
|
+
ds:parentComponent ds:global.component.contextual_menu.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:global.subcomponent.data_tooltip-chart_legend a ds:Subcomponent;
|
|
6
|
+
ds:name "DataTooltip.ChartLegend";
|
|
7
|
+
ds:summary "A list of chart series shown inside the [DataTooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Y1ha3zI_b_). Each row pairs a series' colour marker and label with its value at the hovered point, under an optional heading.";
|
|
8
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.chart_legend\n styles:\n layout.type: flex\n layout.direction: column\n layout.align: flex-start\n edges:\n # The heading box and its text are one node: the box only exists to pad the text.\n - node:\n role: heading\n styles:\n spacing.internal.inline.start: dimension.175\n spacing.internal.block.start: dimension.space.top.text.baselineNudge.300\n spacing.internal.block.end: dimension.space.bottom.text.baselineNudge.300\n typography.font: typography.text.secondary.bold\n typography.color: color.text\n relation:\n cardinality: \"0..1\"\n slotName: header\n # The items slot is the default slot itself, so it has no wrapper node.\n - node:\n uri: global.subcomponent.chart_legend_item\n relation:\n cardinality: \"1..*\"\n slotName: default";
|
|
9
|
+
ds:usage "";
|
|
10
|
+
ds:guidelines "";
|
|
11
|
+
ds:tier ds:global;
|
|
12
|
+
ds:hasProperty [
|
|
13
|
+
a ds:Property;
|
|
14
|
+
ds:name "Indicator";
|
|
15
|
+
ds:summary "Shows colour marker matching chart encoding";
|
|
16
|
+
ds:propertyType "boolean";
|
|
17
|
+
ds:optional "true";
|
|
18
|
+
ds:defaultValue "Yes"
|
|
19
|
+
];
|
|
20
|
+
ds:parentComponent ds:global.component.data_tooltip;
|
|
21
|
+
ds:hasTokenBinding [
|
|
22
|
+
a ds:TokenBinding;
|
|
23
|
+
ds:viaBlock ds:global.subcomponent.data_tooltip-chart_legend;
|
|
24
|
+
ds:node "$root/heading";
|
|
25
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
26
|
+
anatomy:styleState "default";
|
|
27
|
+
ds:rank 1;
|
|
28
|
+
ds:consumesSymbol dt:dimension.175
|
|
29
|
+
], [
|
|
30
|
+
a ds:TokenBinding;
|
|
31
|
+
ds:viaBlock ds:global.subcomponent.data_tooltip-chart_legend;
|
|
32
|
+
ds:node "$root/heading";
|
|
33
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
34
|
+
anatomy:styleState "default";
|
|
35
|
+
ds:rank 1;
|
|
36
|
+
ds:consumesSymbol dt:dimension.space.top.text.baselineNudge.300
|
|
37
|
+
], [
|
|
38
|
+
a ds:TokenBinding;
|
|
39
|
+
ds:viaBlock ds:global.subcomponent.data_tooltip-chart_legend;
|
|
40
|
+
ds:node "$root/heading";
|
|
41
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
42
|
+
anatomy:styleState "default";
|
|
43
|
+
ds:rank 1;
|
|
44
|
+
ds:consumesSymbol dt:dimension.space.bottom.text.baselineNudge.300
|
|
45
|
+
], [
|
|
46
|
+
a ds:TokenBinding;
|
|
47
|
+
ds:viaBlock ds:global.subcomponent.data_tooltip-chart_legend;
|
|
48
|
+
ds:node "$root/heading";
|
|
49
|
+
anatomy:styleKey "typography.font";
|
|
50
|
+
anatomy:styleState "default";
|
|
51
|
+
ds:rank 1;
|
|
52
|
+
ds:consumesSymbol dt:typography.text.secondary.bold
|
|
53
|
+
], [
|
|
54
|
+
a ds:TokenBinding;
|
|
55
|
+
ds:viaBlock ds:global.subcomponent.data_tooltip-chart_legend;
|
|
56
|
+
ds:node "$root/heading";
|
|
57
|
+
anatomy:styleKey "typography.color";
|
|
58
|
+
anatomy:styleState "default";
|
|
59
|
+
ds:rank 1;
|
|
60
|
+
ds:consumesSymbol dt:color.text
|
|
61
|
+
], [
|
|
62
|
+
a ds:TokenBinding;
|
|
63
|
+
ds:viaBlock ds:global.subcomponent.chart_legend_item;
|
|
64
|
+
ds:node "$root";
|
|
65
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
66
|
+
anatomy:styleState "default";
|
|
67
|
+
ds:rank 1;
|
|
68
|
+
ds:consumesSymbol dt:dimension.100
|
|
69
|
+
], [
|
|
70
|
+
a ds:TokenBinding;
|
|
71
|
+
ds:viaBlock ds:global.subcomponent.chart_legend_item;
|
|
72
|
+
ds:node "$root";
|
|
73
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
74
|
+
anatomy:styleState "default";
|
|
75
|
+
ds:rank 1;
|
|
76
|
+
ds:consumesSymbol dt:dimension.100
|
|
77
|
+
], [
|
|
78
|
+
a ds:TokenBinding;
|
|
79
|
+
ds:viaBlock ds:global.subcomponent.chart_legend_item;
|
|
80
|
+
ds:node "$root";
|
|
81
|
+
anatomy:styleKey "spacing.gap";
|
|
82
|
+
anatomy:styleState "default";
|
|
83
|
+
ds:rank 1;
|
|
84
|
+
ds:consumesSymbol dt:dimension.100
|
|
85
|
+
], [
|
|
86
|
+
a ds:TokenBinding;
|
|
87
|
+
ds:viaBlock ds:global.subcomponent.chart_legend_item;
|
|
88
|
+
ds:node "$root/marker";
|
|
89
|
+
anatomy:styleKey "appearance.background";
|
|
90
|
+
anatomy:styleState "default";
|
|
91
|
+
ds:rank 1;
|
|
92
|
+
ds:consumesSymbol dt:color.text
|
|
93
|
+
], [
|
|
94
|
+
a ds:TokenBinding;
|
|
95
|
+
ds:viaBlock ds:global.subcomponent.chart_legend_item;
|
|
96
|
+
ds:node "$root/label";
|
|
97
|
+
anatomy:styleKey "typography.font";
|
|
98
|
+
anatomy:styleState "default";
|
|
99
|
+
ds:rank 1;
|
|
100
|
+
ds:consumesSymbol dt:typography.text.secondary
|
|
101
|
+
], [
|
|
102
|
+
a ds:TokenBinding;
|
|
103
|
+
ds:viaBlock ds:global.subcomponent.chart_legend_item;
|
|
104
|
+
ds:node "$root/label";
|
|
105
|
+
anatomy:styleKey "typography.color";
|
|
106
|
+
anatomy:styleState "default";
|
|
107
|
+
ds:rank 1;
|
|
108
|
+
ds:consumesSymbol dt:color.text
|
|
109
|
+
], [
|
|
110
|
+
a ds:TokenBinding;
|
|
111
|
+
ds:viaBlock ds:global.subcomponent.chart_legend_item;
|
|
112
|
+
ds:node "$root/value";
|
|
113
|
+
anatomy:styleKey "typography.font";
|
|
114
|
+
anatomy:styleState "default";
|
|
115
|
+
ds:rank 1;
|
|
116
|
+
ds:consumesSymbol dt:typography.text.secondary
|
|
117
|
+
], [
|
|
118
|
+
a ds:TokenBinding;
|
|
119
|
+
ds:viaBlock ds:global.subcomponent.chart_legend_item;
|
|
120
|
+
ds:node "$root/value";
|
|
121
|
+
anatomy:styleKey "typography.color";
|
|
122
|
+
anatomy:styleState "default";
|
|
123
|
+
ds:rank 1;
|
|
124
|
+
ds:consumesSymbol dt:color.text
|
|
125
|
+
], [
|
|
126
|
+
a ds:TokenBinding;
|
|
127
|
+
ds:viaBlock ds:global.subcomponent.chart_legend_item;
|
|
128
|
+
ds:node "$root/divider";
|
|
129
|
+
anatomy:styleKey "appearance.background";
|
|
130
|
+
anatomy:styleState "default";
|
|
131
|
+
ds:rank 1;
|
|
132
|
+
ds:consumesSymbol dt:color.palette.gray.180
|
|
133
|
+
].
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.date_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "DateInput";
|
|
7
7
|
ds:summary "The calendar-date-entry part a host field places in context: it lets the user specify a single calendar date within any allowed bounds, carrying the chosen date as its state. It is consumed by controls such as DateField 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/DateInput/styles.css on .ds.input.date, together with the\n# shared `.ds.input.chrome` rule in src/index.css, which the component's own\n# class list (`ds input date chrome`) puts on this same element. A native\n# <input type=\"date\">: the element itself is the text-bearing leaf.\nnode:\n uri: global.subcomponent.date_input\n styles:\n layout.type: block\n layout.boxSizing: border-box\n size.width: 100%\n # The element carries the inline padding itself (the chrome supplies only the\n # block padding); it reads --form-input-padding-inline then\n # --component-padding-inline, neither of which is declared.\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 # The ::-webkit-inner-spin-button is set to `display: none` to suppress native\n # picker inconsistencies; a vendor pseudo-element is not a node of the tree.\n # Two native-control limits are parked in the stylesheet: the suggested-format\n # text cannot be muted in pure CSS, and no calendar glyph exists in\n # @canonical/ds-assets to mask onto the picker indicator.";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The calendar-date entry a host composes when the value it collects is a single calendar day.\n\n\n\n### When to use\n\n- The host (a field, a filter, a choices group) needs the user to set one calendar date and bounds it by an earliest and latest day.\n\n- The collected value is a calendar day with no time-of-day component.\n\n\n\n### When not to use\n\n- The host needs only a time of day — compose [TimeInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-mzx6TJ4AGG) .\n\n- The host needs a calendar day together with a time of day — compose [DateTimeInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui--azXSh_q2l) .";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.date_time_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "DateTimeInput";
|
|
7
7
|
ds:summary "The combined date-and-time-entry part a host field places in context: it lets the user specify a calendar date together with a time of day within any allowed bounds and set increments, carrying the chosen moment as its state. It is consumed by controls such as DateTimeField 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/DateTimeInput/styles.css on .ds.input.datetime, together\n# with the shared `.ds.input.chrome` rule in src/index.css, which the component's\n# own class list (`ds input datetime chrome`) puts on this same element. A native\n# <input type=\"datetime-local\">: the element itself is the text-bearing leaf.\nnode:\n uri: global.subcomponent.date_time_input\n styles:\n layout.type: block\n layout.boxSizing: border-box\n size.width: 100%\n # The element carries the inline padding itself (the chrome supplies only the\n # block padding); it reads --form-input-padding-inline then\n # --component-padding-inline, neither of which is declared.\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 # The ::-webkit-inner-spin-button is set to `display: none` to suppress native\n # picker inconsistencies; a vendor pseudo-element is not a node of the tree.\n # Two native-control limits are parked in the stylesheet: the suggested-format\n # text cannot be muted in pure CSS, and no calendar/clock glyph exists in\n # @canonical/ds-assets to mask onto the picker indicator.";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The combined date-and-time entry a host composes when the value it collects is a date and time together.\n\n### When to use\n\n- The host (a field, a filter, a choices group) needs the user to set both a calendar day and a time of day as a single moment, and bounds it by an earliest and latest moment, optionally snapped to set increments.\n\n- The collected value is a single point in time carrying both a day and a time.\n\n### When not to use\n\n- The host needs only a calendar day — compose [DateInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fQZpZDU2_9) \n\n- The host needs only a time of day — compose [TimeInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-mzx6TJ4AGG) .";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.subcomponent.field-description a ds:Subcomponent;
|
|
6
6
|
ds:name "Field.Description";
|
|
7
|
-
ds:summary "
|
|
7
|
+
ds:summary "Helper text for a form field, shown between its label and input; reference its `id` from the input’s `aria-describedby`.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/Field/Description/styles.css on .ds.field-description,\n# with the tokens it reads from src/index.css.\nnode:\n uri: global.subcomponent.field-description\n styles:\n # --form-description-color is color.text.muted: the description is\n # subordinate supporting text.\n typography.color: color.text.muted\n # No type binding: the rule sets only `color` and `padding-inline`. Design\n # review put the description on the SECONDARY ramp and index.css declares\n # --form-description-font-size for it, but nothing in the package consumes\n # that variable — the description is a <p> carrying the `.p` class, so its\n # type comes from the baseline typography engine, not from this rule.\n # Aligned to the field edge like the label, not to the input's inner\n # padding: padding-inline reads --form-label-padding-inline, undeclared,\n # falling back to 0.\n spacing.internal.inline.start: 0\n spacing.internal.inline.end: 0\n edges:\n - node:\n role: description text\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The supporting chrome part a field composes to guide, hint, or constrain the value it collects.\n\n\n\n### When to use\n\n- A field needs format guidance, examples, or constraints beyond its name.\n\n- Helper text should sit with the input to reduce errors before entry.\n\n\n\n### When not to use\n\n- The text names the field rather than explaining it — compose **Field.Label**.\n\n- The message reports a validation outcome tied to entry state — use the field's status messaging, not this chrome.";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.subcomponent.field-error a ds:Subcomponent;
|
|
6
6
|
ds:name "Field.Error";
|
|
7
|
-
ds:summary "";
|
|
7
|
+
ds:summary "The validation message of a form field, announced as an alert; reference its `id` from the input’s `aria-describedby`.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-14 from @canonical/react-ds-global-form\n# src/lib/subcomponent/Field/Error/styles.css on .ds.field-error, with the\n# tokens it reads from src/index.css. The Error is the Field's common\n# validation message: one `<p role=\"alert\">` the Wrapper renders below the\n# control, sharing the label's edge alignment.\nnode:\n uri: global.subcomponent.field-error\n styles:\n # --form-error-color is var(--modifier-color-text, var(--color-text-error)):\n # the text channel first, so a caller recolouring the field recolours its\n # error with it, and the error text semantic behind it. Per design review\n # the validation colour is confined to this message and the input's bottom\n # border, so the error carries the signal in its own text.\n typography.color: [modifier.color.text, color.text.error]\n # No type binding: the rule sets only `color` and `padding-inline`.\n # index.css declares --form-error-font-size on the PRIMARY ramp, but\n # nothing in the package consumes that variable — the message is a <p>\n # carrying the `.p` class, so its type comes from the baseline typography\n # engine, not from this rule. Same shape as the description.\n # Aligned to the field edge like the label, not to the input's inner\n # padding: padding-inline reads --form-label-padding-inline, which no\n # stratum declares, falling back to 0.\n spacing.internal.inline.start: 0\n spacing.internal.inline.end: 0\n edges:\n - node:\n role: error text\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;
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.subcomponent.field-label a ds:Subcomponent;
|
|
6
6
|
ds:name "Field.Label";
|
|
7
|
-
ds:summary "The
|
|
7
|
+
ds:summary "The label of a form field: names the input given by `htmlFor` and marks the entry required or optional.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/Field/Label/styles.css on .ds.field-label and its child\n# selectors ([data-required]::after, > .optional), with the tokens it reads from\n# src/index.css. The stylesheet corrects the notation's single \"optionality\n# indicator\": the required marker and the \"(optional)\" hint are two different\n# elements with two different colours.\nnode:\n uri: global.subcomponent.field-label\n styles:\n # Field labels take the regular paragraph weight, not bold, per design\n # review: --form-label-font-weight reads the text-primary composite's\n # font-weight facet, which is typography.weight.regular in the apps, docs\n # and global contexts, and falls back to `normal`. That is a rank the\n # composite resolves to rather than a name the CSS spells: the variable it\n # reads, --typography-text-primary-font-weight, is an S4 variable that\n # declares no symbol of its own.\n typography.weight: [typography.weight.regular, normal]\n typography.color: color.text\n # No side padding by default — the label aligns to the field edge, not to the\n # input's inner padding. padding-inline reads --form-label-padding-inline,\n # which no stratum declares, falling back to 0.\n spacing.internal.inline.start: 0\n spacing.internal.inline.end: 0\n # A choices fieldset renders its label as a <legend>, and a `.danger` field\n # recolours THAT legend (and its required marker) to --form-error-color:\n # a validation variant scoped to the legend, not one of the five states, and\n # its first rank is the modifier text channel with color.text.error behind it.\n edges:\n - node:\n role: label text\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: required marker\n styles:\n # Drawn as [data-required]::after, never as label text, so it stays out\n # of the accessible name — the required state is announced from\n # aria-required on the input. The glyph (--form-required-marker, \"*\")\n # and the gap after it (--form-required-marker-gap, 0.25ch) are\n # themeable content and a margin, and no roster key takes `content`.\n # The colour reads --form-required-marker-color first, which no stratum\n # declares, and falls through to the label colour.\n typography.color: color.text\n spacing.external.inline.end: 0.25ch\n relation:\n cardinality: \"0..1\"\n - node:\n role: optional hint\n styles:\n # The \"(optional)\" suffix is muted: visually subordinate to the label,\n # which now carries the regular weight too.\n typography.color: color.text.muted\n relation:\n cardinality: \"0..1\"";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The naming chrome part a field composes to announce what the input collects.\n\n\n\n### When to use\n\n- A field must state, in a few words, the meaning of the value it gathers.\n\n- Every field that takes input needs a persistent name people can read at a glance.\n\n\n\n### When not to use\n\n- Supplementary guidance, format hints, or constraints accompany the name — compose [Field.Description](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-EtN3NdpDS2) .\n\n- The text is body content unrelated to a field's value — use a standalone text part, not this chrome.";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
ds:global.subcomponent.file_upload_input a ds:Subcomponent;
|
|
6
6
|
ds:name "FileUploadInput";
|
|
7
7
|
ds:summary "The file-attaching control inside [FileUploadField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-V7eYe7_ATI). It has two parts: a drop area where users drag files or choose them with the button, and a list of the selected files. An error message can appear under the drop area. Each file in the list shows its name, optional size, optional thumbnail, upload status, and the remove and retry actions. If a file fails validation, a warning or error message appears under its tile.";
|
|
8
|
-
ds:anatomyDsl "---\n# The file-attaching part of the field: a drop area with the field-level\n# validation message, and the list of chosen files. Each file item is an\n# anonymous part, since no block names it and the component draws it itself.\n#\n# Uploads are non-live by default: a file is only added to the list, so its item\n# carries no file status, no progress and no retry. Those parts exist only when\n# the upload is live, and the optional cardinalities below carry that.\nnode:\n uri: global.subcomponent.file_upload_input\n styles:\n layout.type: flex\n layout.direction: column\n # 16px between the drop area and message group and the file list.\n spacing.gap.block: dimension.200\n edges:\n - node:\n # Groups the drop area with the field-level message so the two hide\n # together when the drag and drop area is turned off.\n role: drop area and message\n styles:\n layout.type: flex\n layout.direction: column\n spacing.gap.block: dimension.100\n edges:\n - node:\n role: drop area\n styles:\n layout.type: flex\n layout.direction: column\n layout.align: center\n layout.justify: center\n layout.boxSizing: border-box\n # The 112px minimum height is not bound: no dimension symbol declares\n # it, and size.min.height admits symbols only.\n spacing.internal.block.start: dimension.200\n spacing.internal.block.end: dimension.200\n spacing.internal.inline.start: dimension.200\n spacing.internal.inline.end: dimension.200\n spacing.gap: dimension.100\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: dashed\n # Success, warning and error reach the border and the fill through\n # the Criticality channels. Their hover, active and disabled values\n # (color.foreground.input.error.hover and the like) have no channel\n # in a state, so only the neutral state symbols are bound.\n appearance.border.color: [modifier.color.border, color.border]\n appearance.border.color@disabled: color.border.disabled\n appearance.background: [modifier.color.foreground.input, color.foreground.input]\n # A file dragged over the area takes this same fill. The DSL has no\n # drag-over state, so that trigger is not expressed.\n appearance.background@hover: color.foreground.input.hover\n # Pressing the Choose file button makes the whole area active.\n appearance.background@active: color.foreground.input.active\n appearance.background@disabled: color.foreground.input.disabled\n edges:\n - node:\n role: helper text\n styles:\n typography.font: typography.text.primary\n typography.color: color.text\n typography.color@disabled: color.text.disabled\n relation:\n cardinality: \"1\"\n # The focus ring is drawn around this button, not around the area.\n - node:\n uri: global.component.button\n props:\n icon: upload\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n uri: global.subcomponent.field-error\n relation:\n cardinality: \"0..1\"\n slotName: error\n relation:\n cardinality: \"0..1\"\n - node:\n # Not drawn when the field is disabled, and hidden when the file tiles\n # are turned off.\n role: file list\n styles:\n layout.type: flex\n layout.direction: column\n spacing.gap.block: dimension.200\n edges:\n - node:\n role: file item\n styles:\n layout.type: flex\n layout.direction: column\n spacing.gap.block: dimension.100\n edges:\n - node:\n role: tile body\n styles:\n layout.type: flex\n layout.direction: row\n edges:\n - node:\n role: thumbnail\n styles:\n # 60x36 gives a 5:3 ratio; the DSL has no aspect-ratio\n # key, so only the two dimensions carry it. The height\n # matches the tile's, so the item does not grow.\n size.width: 60px\n size.height: 36px\n layout.flex.shrink: 0\n layout.overflow: hidden\n layout.objectFit: cover\n relation:\n cardinality: \"0..1\"\n - node:\n role: tile details\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.flex.grow: 1\n spacing.gap: dimension.100\n spacing.internal.block.start: dimension.050\n spacing.internal.block.end: dimension.050\n spacing.internal.inline.start: dimension.150\n spacing.internal.inline.end: dimension.050\n # The Criticality family reaches the tile through this\n # channel: warning and error tint the surface.\n appearance.background: [modifier.color.foreground.input, color.foreground.input]\n edges:\n - node:\n role: file info\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.flex.grow: 1\n size.min.width: 0\n spacing.gap: dimension.100\n edges:\n - node:\n role: file name\n styles:\n typography.font: typography.text.primary\n typography.color: [modifier.color.text.onForegroundSecondary, color.text.onForegroundSecondary]\n # A long name truncates with an ellipsis.\n layout.flex.shrink: 1\n size.min.width: 0\n layout.overflow: hidden\n typography.overflow: ellipsis\n typography.whiteSpace: nowrap\n relation:\n cardinality: \"1\"\n - node:\n role: file size\n styles:\n typography.font: typography.text.secondary\n typography.color: [modifier.color.text, color.text.muted]\n typography.whiteSpace: nowrap\n relation:\n cardinality: \"0..1\"\n relation:\n cardinality: \"1\"\n - node:\n role: status and actions\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n # 6px: no symbol declares this step, so it is\n # written as a literal.\n spacing.gap: 6px\n edges:\n # Live upload only: shows the progress while uploading,\n # then the result icon briefly once the upload ends.\n # A non-live item never renders it.\n - node:\n role: file status\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n spacing.gap: dimension.100\n edges:\n - node:\n role: upload progress\n styles:\n typography.font: typography.text.secondary\n typography.color: color.text.muted\n relation:\n cardinality: \"1\"\n # The success, warning and error glyphs are\n # drawn with raw colours that no symbol\n # declares, so their colours are not bound.\n - switch:\n on: internal\n cases:\n - uri: global.subcomponent.spinner\n - node:\n uri: global.component.icon\n props:\n icon: success-fill\n - node:\n uri: global.component.icon\n props:\n icon: warning-fill\n - node:\n uri: global.component.icon\n props:\n icon: error-fill\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"\n # The buttons read the tile's Criticality family\n # through their own icon channel. The warning and\n # error icon colours placed on a secondary\n # foreground have no channel, so those exact\n # symbols are not bound.\n - node:\n role: file actions\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n edges:\n # Retry appears only after a failed live upload.\n # While uploading, the close button cancels.\n - node:\n uri: global.component.button\n props:\n icon: change-version\n relation:\n cardinality: \"0..1\"\n - node:\n uri: global.component.button\n props:\n icon: close\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: validation message\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: flex-start\n spacing.gap: dimension.050\n edges:\n - switch:\n on: internal\n cases:\n - node:\n uri: global.component.icon\n props:\n icon: warning\n styles:\n typography.color: [modifier.color.icon, color.icon]\n spacing.external.block.start: dimension.025\n spacing.external.block.end: dimension.025\n - node:\n uri: global.component.icon\n props:\n icon: error\n styles:\n typography.color: [modifier.color.icon, color.icon]\n spacing.external.block.start: dimension.025\n spacing.external.block.end: dimension.025\n relation:\n cardinality: \"1\"\n - node:\n role: message text\n styles:\n layout.flex.grow: 1\n typography.font: typography.text.secondary\n typography.color: [modifier.color.text, color.text.destructive]\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"\n relation:\n cardinality: \"1..*\"\n relation:\n cardinality: \"0..1\"";
|
|
9
|
-
ds:anatomyClassic "**Anatomy**\n\
|
|
8
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.file_upload_input\n styles:\n layout.type: flex\n layout.direction: column\n spacing.gap.block: dimension.200\n edges:\n - node:\n role: drop area and message\n styles:\n layout.type: flex\n layout.direction: column\n spacing.gap.block: dimension.100\n edges:\n - node:\n role: drop area\n styles:\n layout.type: flex\n layout.direction: column\n layout.align: center\n layout.justify: center\n layout.boxSizing: border-box\n # 112px min height: not bound (no symbol).\n spacing.internal.block.start: dimension.200\n spacing.internal.block.end: dimension.200\n spacing.internal.inline.start: dimension.200\n spacing.internal.inline.end: dimension.200\n spacing.gap: dimension.100\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: dashed\n appearance.border.color: [modifier.color.border, color.border]\n appearance.border.color@disabled: color.border.disabled\n appearance.background: [modifier.color.foreground.input, color.foreground.input]\n # Drag-over: not expressed (no DSL state).\n appearance.background@hover: color.foreground.input.hover\n appearance.background@active: color.foreground.input.active\n appearance.background@disabled: color.foreground.input.disabled\n edges:\n - node:\n role: helper text\n styles:\n typography.font: typography.text.primary\n typography.color: color.text\n typography.color@disabled: color.text.disabled\n relation: {cardinality: \"1\"}\n - node:\n uri: global.component.button\n props: {icon: upload}\n relation: {cardinality: \"1\"}\n relation: {cardinality: \"0..1\"}\n - node:\n uri: global.subcomponent.field-error\n relation: {cardinality: \"0..1\", slotName: error}\n relation: {cardinality: \"0..1\"}\n - node:\n role: file list\n styles:\n layout.type: flex\n layout.direction: column\n spacing.gap.block: dimension.200\n edges:\n - node:\n role: file item\n styles:\n layout.type: flex\n layout.direction: column\n spacing.gap.block: dimension.100\n edges:\n - node:\n role: tile body\n styles:\n layout.type: flex\n layout.direction: row\n edges:\n - node:\n role: thumbnail\n styles:\n size.width: 60px\n size.height: 36px\n layout.flex.shrink: 0\n layout.overflow: hidden\n layout.objectFit: cover\n relation: {cardinality: \"0..1\"}\n - node:\n role: tile details\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.flex.grow: 1\n spacing.gap: dimension.100\n spacing.internal.block.start: dimension.050\n spacing.internal.block.end: dimension.050\n spacing.internal.inline.start: dimension.150\n spacing.internal.inline.end: dimension.050\n appearance.background: [modifier.color.foreground.input, color.foreground.input]\n edges:\n - node:\n role: file info\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.flex.grow: 1\n size.min.width: 0\n spacing.gap: dimension.100\n edges:\n - node:\n role: file name\n styles:\n typography.font: typography.text.primary\n typography.color: [modifier.color.text.onForegroundSecondary, color.text.onForegroundSecondary]\n layout.flex.shrink: 1\n size.min.width: 0\n layout.overflow: hidden\n typography.overflow: ellipsis\n typography.whiteSpace: nowrap\n relation: {cardinality: \"1\"}\n - node:\n role: file size\n styles:\n typography.font: typography.text.secondary\n typography.color: [modifier.color.text, color.text.muted]\n typography.whiteSpace: nowrap\n relation: {cardinality: \"0..1\"}\n relation: {cardinality: \"1\"}\n - node:\n role: status and actions\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n # 6px: literal, no symbol.\n spacing.gap: 6px\n edges:\n - node:\n role: file status\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n spacing.gap: dimension.100\n edges:\n - node:\n role: upload progress\n styles:\n typography.font: typography.text.secondary\n typography.color: color.text.muted\n relation: {cardinality: \"1\"}\n # Glyph colours: not bound (no symbol).\n - switch:\n on: internal\n cases:\n - uri: global.subcomponent.spinner\n - node:\n uri: global.component.icon\n props: {icon: success-fill}\n - node:\n uri: global.component.icon\n props: {icon: warning-fill}\n - node:\n uri: global.component.icon\n props: {icon: error-fill}\n relation: {cardinality: \"1\"}\n relation: {cardinality: \"0..1\"}\n # Warning/error icon colours on a secondary foreground: not bound (no channel).\n - node:\n role: file actions\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n edges:\n - node:\n uri: global.component.button\n props: {icon: change-version}\n relation: {cardinality: \"0..1\"}\n - node:\n uri: global.component.button\n props: {icon: close}\n relation: {cardinality: \"1\"}\n relation: {cardinality: \"1\"}\n relation: {cardinality: \"1\"}\n relation: {cardinality: \"1\"}\n relation: {cardinality: \"1\"}\n - node:\n role: validation message\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: flex-start\n spacing.gap: dimension.050\n edges:\n - switch:\n on: internal\n cases:\n - node:\n uri: global.component.icon\n props: {icon: warning}\n styles:\n typography.color: [modifier.color.icon, color.icon]\n spacing.external.block.start: dimension.025\n spacing.external.block.end: dimension.025\n - node:\n uri: global.component.icon\n props: {icon: error}\n styles:\n typography.color: [modifier.color.icon, color.icon]\n spacing.external.block.start: dimension.025\n spacing.external.block.end: dimension.025\n relation: {cardinality: \"1\"}\n - node:\n role: message text\n styles:\n layout.flex.grow: 1\n typography.font: typography.text.secondary\n typography.color: [modifier.color.text, color.text.destructive]\n relation: {cardinality: \"1\"}\n relation: {cardinality: \"0..1\"}\n relation: {cardinality: \"1..*\"}\n relation: {cardinality: \"0..1\"}";
|
|
9
|
+
ds:anatomyClassic "**Anatomy**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13360-17688&t=cEAarkbWU6qDCTl8-1**\n\n**Styling / Layout and spacing**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13369-21097&t=cEAarkbWU6qDCTl8-1****Styling / Colors**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13414-7087&t=cEAarkbWU6qDCTl8-1**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13414-9043&t=cEAarkbWU6qDCTl8-1****Styling / Typography**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13455-6608&t=cEAarkbWU6qDCTl8-1****Styling / Overflow**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13455-6828&t=cEAarkbWU6qDCTl8-1https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=13456-7429&t=rjDNeEgctkCAd8UQ-1";
|
|
10
10
|
ds:usage "The file-attaching control used inside FileUploadField: a drop area and a list of the selected files. It is not used on its own, only inside a field such as FileUploadField.\n\n## **When to use**\n\n- A user needs to attach one or more existing documents, images, or other files.\n- The input requires a file rather than content entered as text.\n\n## **When not to use**\n\n- The user needs to enter text directly — use [TextInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-csRvI-VTpO) or [TextareaInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-AhD9dYg2Q9).\n- The user needs to select from a predefined set of options — use [SelectInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-xiMRYATXwr).";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.designin-progress;
|
|
14
13
|
ds:changeLog [
|
|
15
14
|
a ds:ChangeLogEntry;
|
|
16
15
|
ds:timestamp "2026-11-25T00:00:00.000+01:00";
|
|
@@ -24,6 +23,7 @@ ds:global.subcomponent.file_upload_input a ds:Subcomponent;
|
|
|
24
23
|
ds:timestamp "2026-11-22T17:00:00.000+01:00";
|
|
25
24
|
ds:changeType "change"
|
|
26
25
|
];
|
|
26
|
+
ds:documentationStage ds:tag.designin-progress;
|
|
27
27
|
ds:hasTokenBinding [
|
|
28
28
|
a ds:TokenBinding;
|
|
29
29
|
ds:viaBlock ds:global.subcomponent.file_upload_input;
|
|
@@ -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;
|