@canonical/design-system 0.46.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/apps/component/file_tree.ttl +1 -2
- package/data/apps/component/inline_panel.ttl +2 -3
- package/data/apps/component/log.ttl +0 -1
- package/data/apps/component/navigation.ttl +0 -1
- package/data/apps/component/notification.ttl +0 -1
- package/data/apps/component/side_navigation.ttl +678 -5
- package/data/apps/component/skeleton_loading.ttl +0 -1
- package/data/apps/component/status_bar.ttl +0 -1
- package/data/apps/component/toolbar.ttl +0 -1
- package/data/apps/group/notifications.ttl +0 -1
- package/data/apps/layout/application_layout.ttl +1 -2
- package/data/apps/layout/content_layout.ttl +1 -2
- package/data/apps/layout/empty_layout.ttl +0 -1
- package/data/apps/layout/list_page_layout.ttl +0 -1
- package/data/apps/layout/login_layout.ttl +0 -1
- package/data/apps/layout/settings_page_layout.ttl +0 -1
- package/data/apps/layout/side_panel_form_layout.ttl +0 -1
- package/data/apps/layout/view_layout.ttl +0 -1
- package/data/apps/pattern/action_bar.ttl +0 -1
- package/data/apps/pattern/code_diff.ttl +2 -2
- package/data/apps/pattern/data_views.ttl +85 -0
- package/data/apps/pattern/datatable.ttl +8 -78
- package/data/apps/pattern/destructive_modal.ttl +0 -1
- package/data/apps/pattern/drawer.ttl +0 -1
- package/data/apps/pattern/keyboard_shortcuts.ttl +0 -1
- package/data/apps/pattern/notification_center.ttl +4 -5
- package/data/apps/pattern/page_header.ttl +58 -6
- package/data/apps/pattern/side_panel.ttl +221 -45
- package/data/apps/pattern/sidepanel_stacked.ttl +0 -1
- package/data/apps/subcomponent/data_table-action_bar.ttl +3 -3
- package/data/apps/subcomponent/data_table-body_cell.ttl +19 -19
- package/data/apps/subcomponent/data_table-group_header_row.ttl +1 -1
- package/data/apps/subcomponent/data_table-header_cell.ttl +11 -11
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +9 -9
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +2 -2
- package/data/apps/subcomponent/data_table-settings_menu.ttl +3 -3
- package/data/apps/subcomponent/data_views-filters.ttl +12 -0
- package/data/apps/subcomponent/data_views-saved_views.ttl +12 -0
- package/data/apps/subcomponent/data_views-sort_panel.ttl +12 -0
- package/data/apps/subcomponent/drawer-content.ttl +0 -1
- package/data/apps/subcomponent/drawer-footer.ttl +0 -1
- package/data/apps/subcomponent/drawer-header.ttl +0 -1
- package/data/apps/subcomponent/file_tree-node.ttl +0 -1
- package/data/apps/subcomponent/file_tree-search_box.ttl +13 -0
- package/data/apps/subcomponent/file_tree-tree_view.ttl +13 -0
- package/data/apps/subcomponent/git_diff_viewer-code_diff_viewer.ttl +13 -0
- package/data/apps/subcomponent/git_diff_viewer-file_header.ttl +13 -0
- package/data/apps/subcomponent/side_navigation-content.ttl +339 -3
- package/data/apps/subcomponent/side_navigation-context_switcher-field.ttl +18 -0
- package/data/apps/subcomponent/side_navigation-context_switcher-item_content.ttl +18 -0
- package/data/apps/subcomponent/side_navigation-context_switcher.ttl +172 -2
- package/data/apps/subcomponent/side_navigation-footer.ttl +270 -0
- package/data/apps/subcomponent/side_navigation-header.ttl +262 -0
- package/data/apps/subcomponent/side_navigation-item.ttl +115 -2
- package/data/apps/subcomponent/side_navigation-item_group.ttl +224 -2
- package/data/apps/subcomponent/side_panel-footer.ttl +39 -7
- package/data/apps/subcomponent/side_panel-header.ttl +86 -110
- package/data/apps_anbox/pattern/side_menu.ttl +5 -6
- package/data/apps_debcrafters/component/deb_package_card.ttl +0 -1
- package/data/apps_debcrafters/component/example.ttl +0 -1
- package/data/apps_debcrafters/component/my_fancy_component.ttl +0 -1
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +0 -1
- package/data/apps_landscape/component/checkbox_group.ttl +26 -26
- package/data/apps_landscape/component/code_editor.ttl +32 -32
- package/data/apps_landscape/component/cron_schedule.ttl +2 -2
- package/data/apps_landscape/component/expandable_radio_group.ttl +18 -18
- package/data/apps_landscape/component/expandable_truncation.ttl +11 -11
- package/data/apps_landscape/component/form_section.ttl +2 -2
- package/data/apps_landscape/component/gpg_key_field.ttl +21 -21
- package/data/apps_landscape/component/grouped_select.ttl +23 -23
- package/data/apps_landscape/component/loading_state.ttl +6 -6
- package/data/apps_landscape/component/managed_file_input.ttl +13 -13
- package/data/apps_landscape/component/multi_select_field.ttl +44 -44
- package/data/apps_landscape/component/password_constraints.ttl +2 -2
- package/data/apps_landscape/component/progress_bar.ttl +15 -15
- package/data/apps_landscape/component/read_only_field.ttl +10 -10
- package/data/apps_landscape/component/search_help_popup.ttl +10 -10
- package/data/apps_landscape/component/search_query_editor.ttl +29 -29
- package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
- package/data/apps_landscape/pattern/content_blocks.ttl +16 -16
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +26 -26
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +2 -2
- package/data/apps_landscape/pattern/form_field_help.ttl +12 -12
- package/data/apps_landscape/pattern/header_search_controls.ttl +26 -26
- package/data/apps_landscape/pattern/ignorable_notification.ttl +10 -10
- package/data/apps_landscape/pattern/information_grid.ttl +13 -13
- package/data/apps_landscape/pattern/instance_association.ttl +5 -5
- package/data/apps_landscape/pattern/process_flow.ttl +9 -9
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +29 -29
- package/data/apps_landscape/pattern/recurring_schedule.ttl +4 -4
- package/data/apps_landscape/pattern/responsive_action_group.ttl +11 -11
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +9 -9
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +30 -30
- package/data/apps_landscape/pattern/sortable_list.ttl +11 -11
- package/data/apps_landscape/pattern/table_filter.ttl +40 -40
- package/data/apps_landscape/pattern/table_filter_chips.ttl +44 -44
- package/data/apps_landscape/pattern/table_pagination.ttl +48 -48
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +18 -18
- package/data/apps_landscape/subcomponent/bold_substring.ttl +6 -6
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +7 -7
- package/data/apps_landscape/subcomponent/label_with_description.ttl +10 -10
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +9 -9
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +14 -14
- package/data/apps_launchpad/component/accordion.ttl +0 -1
- package/data/apps_launchpad/component/avatar.ttl +2 -2
- package/data/apps_launchpad/component/badge.ttl +2 -2
- package/data/apps_launchpad/component/button.ttl +2 -2
- package/data/apps_launchpad/component/combobox.ttl +2 -2
- package/data/apps_launchpad/component/description_list.ttl +1 -1
- package/data/apps_launchpad/component/drawer.ttl +0 -1
- package/data/apps_launchpad/component/link.ttl +0 -1
- package/data/apps_launchpad/component/markdown_editor.ttl +0 -1
- package/data/apps_launchpad/component/modal.ttl +5 -5
- package/data/apps_launchpad/component/pagination.ttl +0 -1
- package/data/apps_launchpad/component/popover.ttl +0 -1
- package/data/apps_launchpad/component/relative_timestamp.ttl +0 -1
- package/data/apps_launchpad/component/spinner.ttl +0 -1
- package/data/apps_launchpad/component/table.ttl +0 -1
- package/data/apps_launchpad/component/text_input.ttl +1 -1
- package/data/apps_launchpad/component/timestamp.ttl +0 -1
- package/data/apps_launchpad/component/tooltip.ttl +2 -2
- package/data/apps_launchpad/subcomponent/modal-content-body.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-header.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content.ttl +0 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/output_field.ttl +7 -7
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +1 -1
- package/data/apps_lxd/view/network_topology.ttl +6 -6
- package/data/apps_portal/component/badge.ttl +0 -1
- package/data/apps_portal/component/credit_card_input.ttl +0 -1
- package/data/apps_portal/component/key_value_pair.ttl +0 -1
- package/data/apps_portal/pattern/purchase_summary.ttl +0 -1
- package/data/apps_portal/subcomponent/read_only_modal.ttl +0 -1
- package/data/apps_support/component/data_spotlight.ttl +0 -1
- package/data/apps_support/subcomponent/ai_prompt_input.ttl +0 -1
- package/data/{apps_workplaceengineering → apps_workplace}/component/complex_multi_select.ttl +3 -4
- package/data/{apps_workplaceengineering → apps_workplace}/component/label-highlight.ttl +5 -5
- package/data/{apps_workplaceengineering → apps_workplace}/component/org_chart.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/rule.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/skip_link.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/theme_switcher.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/callout_numbers_card.ttl +3 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/confirmation_modal.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/org_event_card.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/subcomponent/multi_select_input.ttl +2 -3
- package/data/{apps_workplaceengineering.ttl → apps_workplace.ttl} +2 -2
- package/data/concept/Accessibility.ttl +9 -0
- package/data/concept/Breakpoints.ttl +9 -0
- package/data/concept/Design-tokens-Overview.ttl +10 -0
- package/data/concept/Filtering-patterns.ttl +0 -1
- package/data/concept/Foundations-Baseline.ttl +0 -1
- package/data/concept/Foundations-Color.ttl +10 -0
- package/data/concept/Foundations-Density--the-form-channel.ttl +0 -1
- package/data/concept/Foundations-Grid--Layout.ttl +1 -2
- package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +0 -1
- package/data/concept/Foundations-Spacing.ttl +0 -1
- package/data/concept/Foundations-Surfaces.ttl +0 -1
- package/data/concept/Foundations-Typography.ttl +1 -2
- package/data/concept/How-to-choose-between-question-mark-and-information-icon.ttl +10 -0
- package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +0 -1
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +0 -1
- package/data/concept/How-to-support-modifiers-in-a-component.ttl +0 -1
- package/data/concept/Intentional-friction.ttl +0 -1
- package/data/concept/Overflow.ttl +0 -1
- package/data/concept/Understanding-the-modifier-contract.ttl +0 -1
- package/data/documentation/layout/content_page_layout.ttl +0 -1
- package/data/documentation/layout/documentation_layout.ttl +0 -1
- package/data/documentation/layout/library_layout.ttl +0 -1
- package/data/documentation/layout/search_page_layout.ttl +0 -1
- package/data/documentation/pattern/library_side_navigation.ttl +2 -2
- package/data/global/component/accordion.ttl +15 -15
- package/data/global/component/announcement.ttl +3 -2
- package/data/global/component/avatar.ttl +1 -2
- package/data/global/component/badge.ttl +10 -10
- package/data/global/component/breadcrumbs.ttl +10 -10
- package/data/global/component/button.ttl +14 -14
- package/data/global/component/button_link.ttl +1 -2
- package/data/global/component/card.ttl +3 -7
- package/data/global/component/checkbox_field.ttl +0 -1
- package/data/global/component/chip.ttl +15 -14
- package/data/global/component/choices_field.ttl +0 -1
- package/data/global/component/code_snippet-content.ttl +0 -1
- package/data/global/component/code_snippet-header.ttl +0 -1
- package/data/global/component/code_snippet.ttl +1 -1
- package/data/global/component/color_field.ttl +0 -1
- package/data/global/component/combobox_field.ttl +0 -1
- package/data/global/component/contextual_menu.ttl +10 -9
- package/data/global/component/data_tooltip.ttl +49 -55
- package/data/global/component/date_field.ttl +0 -1
- package/data/global/component/date_time_field.ttl +0 -1
- package/data/global/component/drag_and_drop_list.ttl +0 -1
- package/data/global/component/dropdown_button.ttl +1 -1
- package/data/global/component/file_upload_field.ttl +509 -60
- package/data/global/component/heading.ttl +1 -1
- package/data/global/component/hidden_field.ttl +0 -1
- package/data/global/component/icon.ttl +4 -4
- package/data/global/component/icon_button.ttl +141 -6
- package/data/global/component/icon_in_container.ttl +2 -3
- package/data/{apps → global}/component/key_value_pair.ttl +2 -3
- package/data/global/component/keyboard_key.ttl +0 -1
- package/data/global/component/link.ttl +0 -1
- package/data/global/component/links.ttl +0 -1
- package/data/global/component/{markdown_field.ttl → markdown_editor_field.ttl} +3 -4
- package/data/global/component/mode_switcher.ttl +1 -2
- package/data/global/component/month_field.ttl +0 -1
- package/data/global/component/notification_inline.ttl +0 -1
- package/data/global/component/notification_toast.ttl +0 -1
- package/data/global/component/number_field.ttl +1 -2
- package/data/global/component/pagination.ttl +0 -1
- package/data/global/component/password_field.ttl +0 -1
- package/data/global/component/phone_field.ttl +0 -1
- package/data/global/component/popover.ttl +0 -1
- package/data/global/component/range_field.ttl +0 -80
- package/data/global/component/rating_field.ttl +0 -1
- package/data/global/component/relative_timestamp.ttl +0 -1
- package/data/global/component/rich_choices_field.ttl +0 -1
- package/data/global/component/rich_text_editor.ttl +0 -1
- package/data/global/component/rich_text_field.ttl +0 -1
- package/data/global/component/search_field.ttl +0 -1
- package/data/global/component/segmented_control.ttl +0 -1
- package/data/global/component/segmented_control_field.ttl +0 -1
- package/data/global/component/select_field.ttl +0 -1
- package/data/global/component/switch_field.ttl +0 -1
- package/data/global/component/table.ttl +2 -2
- package/data/global/component/tag.ttl +2 -2
- package/data/global/component/text_field.ttl +0 -1
- package/data/global/component/textarea_field.ttl +0 -1
- package/data/global/component/tile.ttl +8 -8
- package/data/global/component/time_field.ttl +0 -1
- package/data/global/component/timestamp.ttl +0 -1
- package/data/global/component/tooltip.ttl +76 -208
- package/data/global/component/wrapper_tooltip.ttl +188 -0
- package/data/global/group/buttons.ttl +0 -1
- package/data/global/group/cards.ttl +1 -2
- package/data/global/group/code_snippets.ttl +0 -1
- package/data/{apps → global}/group/key_value_pairs.ttl +2 -3
- package/data/global/group/keyboard_keys.ttl +0 -1
- package/data/global/group/tiles.ttl +0 -1
- package/data/global/layout/error_layout.ttl +0 -1
- package/data/global/layout/identity_page_form.ttl +0 -1
- package/data/global/modifier/achromat.ttl +8 -0
- package/data/global/modifier/constructive.ttl +1 -1
- package/data/global/modifier/dark.ttl +1 -1
- package/data/global/modifier/deprecated.ttl +8 -0
- package/data/global/modifier/{focused.ttl → deutan.ttl} +3 -3
- package/data/global/modifier/elevated.ttl +1 -1
- package/data/global/modifier/end_of_life.ttl +8 -0
- package/data/global/modifier/{muted.ttl → less.ttl} +3 -3
- package/data/global/modifier/light.ttl +1 -1
- package/data/global/modifier/{loading.ttl → lts.ttl} +3 -3
- package/data/global/modifier/modal.ttl +1 -1
- package/data/global/modifier/{editable.ttl → more.ttl} +3 -3
- package/data/global/modifier/protan.ttl +8 -0
- package/data/global/modifier/standard.ttl +8 -0
- package/data/global/modifier/tritan.ttl +8 -0
- package/data/global/modifier/typical.ttl +8 -0
- package/data/global/modifier_family/_emphasis.ttl +1 -2
- package/data/global/modifier_family/_other.ttl +1 -2
- package/data/global/modifier_family/{mode.ttl → color.ttl} +2 -2
- package/data/global/modifier_family/color_vision.ttl +9 -0
- package/data/global/modifier_family/contrast.ttl +9 -0
- package/data/global/modifier_family/elevation.ttl +9 -0
- package/data/global/modifier_family/support.ttl +9 -0
- package/data/global/modifier_family/surface.ttl +1 -1
- package/data/global/pattern/description_list.ttl +1 -2
- package/data/global/pattern/field.ttl +0 -1
- package/data/global/pattern/filter.ttl +0 -1
- package/data/global/pattern/form_login.ttl +0 -1
- package/data/global/pattern/info_table.ttl +0 -1
- package/data/global/pattern/modal.ttl +198 -142
- package/data/global/pattern/stepper.ttl +0 -1
- package/data/global/pattern/table_of_contents.ttl +0 -1
- package/data/global/pattern/timeline.ttl +22 -22
- package/data/global/pattern/{navigation.ttl → top_navigation.ttl} +2 -3
- package/data/global/subcomponent/accordion-item.ttl +1 -2
- package/data/global/subcomponent/breadcrumbs-item.ttl +0 -1
- package/data/global/subcomponent/card-content.ttl +1 -2
- package/data/global/subcomponent/card-footer.ttl +0 -1
- package/data/global/subcomponent/card-header.ttl +1 -2
- package/data/global/subcomponent/card-image.ttl +1 -2
- package/data/global/subcomponent/card-thumbnail.ttl +0 -1
- package/data/global/subcomponent/chart_legend.ttl +0 -1
- package/data/global/subcomponent/chart_legend_item.ttl +0 -1
- package/data/global/subcomponent/checkbox_input.ttl +0 -1
- package/data/global/subcomponent/color_input.ttl +0 -1
- package/data/global/subcomponent/combobox_input.ttl +0 -1
- package/data/global/subcomponent/contextual_menu-item.ttl +13 -0
- package/data/global/subcomponent/contextual_menu-list.ttl +13 -0
- package/data/global/subcomponent/contextual_menu-submenu.ttl +13 -0
- package/data/global/subcomponent/data_tooltip-chart_legend.ttl +133 -0
- package/data/global/subcomponent/date_input.ttl +0 -1
- package/data/global/subcomponent/date_time_input.ttl +0 -1
- package/data/global/subcomponent/field-description.ttl +1 -2
- package/data/global/subcomponent/field-error.ttl +1 -2
- package/data/global/subcomponent/field-label.ttl +1 -2
- package/data/global/subcomponent/file_upload_input.ttl +503 -50
- package/data/global/subcomponent/hidden_input.ttl +0 -1
- package/data/global/subcomponent/kvp_container.ttl +1 -2
- package/data/global/subcomponent/kvpitem_base.ttl +1 -2
- package/data/global/subcomponent/{markdown_input.ttl → markdown_editor_input.ttl} +3 -4
- package/data/global/subcomponent/modal-content.ttl +4 -13
- package/data/global/subcomponent/modal-footer.ttl +21 -29
- package/data/global/subcomponent/modal-header.ttl +53 -141
- package/data/global/subcomponent/month_input.ttl +0 -1
- package/data/global/subcomponent/number_input.ttl +1 -2
- package/data/global/subcomponent/password_input.ttl +0 -1
- package/data/global/subcomponent/phone_input.ttl +0 -1
- package/data/global/subcomponent/radio_input.ttl +0 -1
- package/data/global/subcomponent/range_input.ttl +3 -85
- package/data/global/subcomponent/rating_input.ttl +0 -1
- package/data/global/subcomponent/rich_text_input.ttl +0 -1
- package/data/global/subcomponent/search_input.ttl +8 -8
- package/data/global/subcomponent/segmented_control_input.ttl +0 -1
- package/data/global/subcomponent/select_input.ttl +0 -1
- package/data/global/subcomponent/spin_button.ttl +0 -1
- package/data/global/subcomponent/spinner.ttl +0 -1
- package/data/global/subcomponent/switch_input.ttl +0 -1
- package/data/global/subcomponent/table-cell.ttl +0 -1
- package/data/global/subcomponent/table-row.ttl +0 -1
- package/data/global/subcomponent/text_editor_input.ttl +12 -0
- package/data/global/subcomponent/text_input.ttl +0 -1
- package/data/global/subcomponent/textarea_input.ttl +1 -2
- package/data/global/subcomponent/tile-content.ttl +0 -1
- package/data/global/subcomponent/tile-header.ttl +5 -6
- package/data/global/subcomponent/time_input.ttl +0 -1
- package/data/global/subcomponent/timeline-content.ttl +1 -2
- package/data/global/subcomponent/timeline-event.ttl +1 -1
- package/data/global/variant/tooltip_dense.ttl +111 -5
- package/data/global/view/settings_view.ttl +0 -1
- package/data/global_dataviews/component/filter_button.ttl +486 -0
- package/data/global_dataviews/component/query_bar.ttl +1638 -0
- package/data/global_dataviews/component/query_chip.ttl +605 -0
- package/data/global_dataviews/group/query_chips.ttl +564 -0
- package/data/global_dataviews/modifier/exclusion.ttl +8 -0
- package/data/global_dataviews/modifier/inclusion.ttl +8 -0
- package/data/global_dataviews/modifier/match.ttl +8 -0
- package/data/global_dataviews/modifier/presence.ttl +8 -0
- package/data/global_dataviews/modifier/range.ttl +8 -0
- package/data/global_dataviews/modifier_family/condition.ttl +9 -0
- package/data/global_dataviews/subcomponent/query_chip-entry.ttl +185 -0
- package/data/global_dataviews/subcomponent/query_chip-segment.ttl +240 -0
- package/data/global_dataviews/subcomponent/query_input.ttl +1286 -0
- package/data/global_dataviews.ttl +6 -0
- package/data/sites/component/quote.ttl +0 -1
- package/data/sites/component/rule.ttl +0 -1
- package/data/sites/component/section.ttl +0 -1
- package/data/sites/component/store_card.ttl +7 -7
- package/data/sites/group/blog_cards.ttl +0 -1
- package/data/sites/group/xblog_elements.ttl +0 -1
- package/data/sites/layout/blog_page_layout.ttl +0 -1
- package/data/sites/layout/case_study_layout.ttl +0 -1
- package/data/sites/layout/site_layout.ttl +0 -1
- package/data/sites/pattern/hero-github.ttl +0 -1
- package/data/sites/pattern/hero.ttl +1 -2
- package/data/sites/pattern/info_table.ttl +0 -1
- package/data/sites/pattern/pricing_section.ttl +0 -1
- package/data/sites/pattern/pricing_table.ttl +0 -1
- package/data/sites/pattern/read_more_section.ttl +0 -1
- package/data/sites/pattern/skip_link.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/list.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/tabs.ttl +0 -1
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +0 -1
- package/data/tag/{wpeinital-implementation.ttl → workplaceinitial-implementation.ttl} +2 -2
- package/data/tag/{wpetriageupstream-and-deprecate.ttl → workplacetriageupstream-and-deprecate.ttl} +2 -2
- package/definitions/ontology.ttl +8 -2
- package/package.json +6 -6
- package/skills/adoption-a1-styles/SKILL.md +11 -0
- package/skills/adoption-a2-components/SKILL.md +82 -2
- package/skills/anatomy-author/SKILL.md +278 -95
- package/skills/anatomy-author/clarification-guidelines.md +150 -0
- package/skills/anatomy-author/completeness-checklist.md +224 -0
- package/skills/implement-component/SKILL.md +2 -2
- package/data/apps/subcomponent/side_panel-content.ttl +0 -14
- package/data/concept/Question-mark-vs-information-icon.ttl +0 -11
- package/data/global/component/tooltip_wrapper.ttl +0 -140
- package/data/global/modifier/highlighted.ttl +0 -8
- package/data/global/modifier/wireframe.ttl +0 -8
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
ds:global.pattern.modal a ds:Pattern;
|
|
6
6
|
ds:name "Modal";
|
|
7
7
|
ds:summary "A modal is a focused container that sits on top of the main view, requiring users to interact with it before returning to that view. Its primary purpose is to capture a user’s full attention for a specific, self-contained task while keeping their current workspace visible (though inactive) in the background.";
|
|
8
|
-
ds:anatomyDsl "---\
|
|
9
|
-
ds:anatomyClassic "
|
|
10
|
-
ds:usage "Modals are intended for focused, interruptive interactions. They are suitable for
|
|
11
|
-
ds:guidelines "
|
|
8
|
+
ds:anatomyDsl "---\nnode:\n uri: global.pattern.modal\n styles:\n layout.type: flex\n layout.direction: column\n # Content that continues past the modal's edges is clipped; the content is\n # the only part that scrolls.\n layout.overflow: hidden\n # Keeps the modal inside the viewport, so a tall content scrolls instead of\n # the modal growing past it.\n size.max.height: calc(100vh - 6rem)\n appearance.background: color.background\n appearance.radius: dimension.radius.medium\n edges:\n - node:\n role: overlay\n styles:\n appearance.background: color.backdrop\n relation:\n cardinality: \"1\"\n - node:\n uri: global.subcomponent.modal-header\n styles:\n # Stays fixed while the content scrolls.\n layout.flex.shrink: 0\n size.width: 100%\n relation:\n cardinality: \"1\"\n slotName: header\n - node:\n uri: global.subcomponent.modal-content\n styles:\n size.width: 100%\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: global.subcomponent.modal-footer\n styles:\n # Stays fixed while the content scrolls.\n layout.flex.shrink: 0\n size.width: 100%\n relation:\n cardinality: \"1\"\n slotName: footer";
|
|
9
|
+
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16498-6476&t=3F9PQQB2fYjyLEYQ-1\n\n## Styling\n\n### Layout and spacing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16498-6505&t=3F9PQQB2fYjyLEYQ-1\n\n### Colors\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-2676&t=3F9PQQB2fYjyLEYQ-1\n\n### Overflow\n\n#### Bottom overflow\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-7754&t=3F9PQQB2fYjyLEYQ-1\n\n#### Top overflow\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-7879&t=3F9PQQB2fYjyLEYQ-1\n\n#### Top and bottom overflow\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16903-7986&t=3F9PQQB2fYjyLEYQ-1";
|
|
10
|
+
ds:usage "Modals are intended for focused, interruptive interactions. They are suitable for situations where users must complete an action or understand contextual information before returning to their current flow.\n\n## When to use\n\n- When a confirmation is needed before completing or canceling an action, modals should be used. They are well suited for this because they capture full attention and require an explicit decision from the user. \n- When a form is displayed on a website rather than an app. On apps, forms should generally use side panels or full pages instead. If a form requires a nested step, layer side panels rather than escalating to a modal.\n- When providing extra context or instructions that are supplementary to the main task. For example, explaining search syntax rules or describing how to format a cron job expression.\n- When the system needs to interrupt the user with a warning, such as when unsaved changes are about to be lost or a critical condition requires acknowledgment.\n- When a side panel triggers a secondary step that involves a small, self-contained form that is not a fully independent entity in the software. For example, selecting an image for an LXD container. This is only appropriate when the nested step is minor. If the nested step is a complete form that already exists elsewhere in the UI, use a nested side panel for consistency.\n- When a side panel is displaying an item that has associated entities, and the main listing page cannot be filtered to show only the related ones. For example, when an instance is related to several profiles and there is no way to filter the profiles listing page down to only the associated ones. If the item is displayed on a full page instead of a side panel, open the associated list in a side panel rather than a modal.\n\n## When not to use\n\n- When a modal would need to trigger a side panel as a secondary step. A side panel can trigger a modal, but a modal cannot trigger a side panel.\n - Incorrect: A modal form that opens a side panel when the user needs to complete a prerequisite step.\n - Remediation: Restructure the flow so that the initial container is a side panel, which can then trigger a modal for any smaller interruption if needed.\n- When a form is required to complete an app workflow. Use side panels or full pages instead, which keep the user oriented within the application structure. [This is also the case for forms with only one field.]\n - Incorrect: Opening a modal to fill out a multi-field entity creation form inside an app.\n - Remediation: Use a side panel or a dedicated page. If a nested step is required, layer a second side panel on top of the first.\n- When displaying static information about an entity, such as a read-only detail view. Static content does not require the level of interruption a modal creates.\n - Incorrect: A modal that opens to show the details of an entity with no actions available.\n - Remediation: Use a side panel to display entity details while keeping the background context visible.\n- When the goal is to guide a first-time user through the interface in a tour or onboarding flow.\n - Incorrect: A modal sequence that blocks the UI to walk the user through each feature step by step.\n - Remediation: Use popovers, which allow the user to interact with the UI and exit the flow at any point.\n- When a lighter, non-interruptive overlay could serve the same purpose. Modals block the entire view and force a decision, while popovers allow continued interaction with the page.\n - Incorrect: Using a modal to show a tooltip-style explanation of a field while the user is filling out a form.\n - Remediation: Use a popover, which surfaces the information without interrupting the user's flow.\n- When providing feedback on the outcome of an action, whether successful or not.\n - Incorrect: A modal that appears after completing an action to confirm it was done successfully.\n - Remediation: Use a toast notification, which communicates the result without requiring any interaction from the user.";
|
|
11
|
+
ds:guidelines "It is recommended to use a backdrop for modals where supported by the platform.\n\nConfirmation modals, whether constructive or destructive, should include a description of the consequences. The button used in [Modal.Footer](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-WUE45gL05W) should reflect the modifier context. For instance, a modal that confirms a [Destructive](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-aygAVqOfFj/_rui-VZYLmDJC1O) action should use a [Destructive](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-aygAVqOfFj/_rui-VZYLmDJC1O) [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr).\n\nIf the action is destructive, an [Intentional friction](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-GnfOU3MM-3/_rui-jBkiiurLeQ) should be considered.";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
14
14
|
ds:hasSubcomponent ds:global.subcomponent.modal-content, ds:global.subcomponent.modal-header, ds:global.subcomponent.modal-footer;
|
|
15
15
|
ds:hasTokenBinding [
|
|
16
16
|
a ds:TokenBinding;
|
|
@@ -19,23 +19,7 @@ ds:global.pattern.modal a ds:Pattern;
|
|
|
19
19
|
anatomy:styleKey "appearance.background";
|
|
20
20
|
anatomy:styleState "default";
|
|
21
21
|
ds:rank 1;
|
|
22
|
-
ds:consumesSymbol dt:
|
|
23
|
-
], [
|
|
24
|
-
a ds:TokenBinding;
|
|
25
|
-
ds:viaBlock ds:global.pattern.modal;
|
|
26
|
-
ds:node "$root";
|
|
27
|
-
anatomy:styleKey "typography.color";
|
|
28
|
-
anatomy:styleState "default";
|
|
29
|
-
ds:rank 1;
|
|
30
|
-
ds:consumesSymbol dt:surface.color.text
|
|
31
|
-
], [
|
|
32
|
-
a ds:TokenBinding;
|
|
33
|
-
ds:viaBlock ds:global.pattern.modal;
|
|
34
|
-
ds:node "$root";
|
|
35
|
-
anatomy:styleKey "typography.color";
|
|
36
|
-
anatomy:styleState "default";
|
|
37
|
-
ds:rank 2;
|
|
38
|
-
ds:consumesSymbol dt:color.text
|
|
22
|
+
ds:consumesSymbol dt:color.background
|
|
39
23
|
], [
|
|
40
24
|
a ds:TokenBinding;
|
|
41
25
|
ds:viaBlock ds:global.pattern.modal;
|
|
@@ -47,7 +31,7 @@ ds:global.pattern.modal a ds:Pattern;
|
|
|
47
31
|
], [
|
|
48
32
|
a ds:TokenBinding;
|
|
49
33
|
ds:viaBlock ds:global.pattern.modal;
|
|
50
|
-
ds:node "$root/
|
|
34
|
+
ds:node "$root/overlay";
|
|
51
35
|
anatomy:styleKey "appearance.background";
|
|
52
36
|
anatomy:styleState "default";
|
|
53
37
|
ds:rank 1;
|
|
@@ -92,6 +76,14 @@ ds:global.pattern.modal a ds:Pattern;
|
|
|
92
76
|
anatomy:styleState "default";
|
|
93
77
|
ds:rank 1;
|
|
94
78
|
ds:consumesSymbol dt:dimension.300
|
|
79
|
+
], [
|
|
80
|
+
a ds:TokenBinding;
|
|
81
|
+
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
82
|
+
ds:node "$root";
|
|
83
|
+
anatomy:styleKey "appearance.background";
|
|
84
|
+
anatomy:styleState "default";
|
|
85
|
+
ds:rank 1;
|
|
86
|
+
ds:consumesSymbol dt:color.background
|
|
95
87
|
], [
|
|
96
88
|
a ds:TokenBinding;
|
|
97
89
|
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
@@ -104,25 +96,201 @@ ds:global.pattern.modal a ds:Pattern;
|
|
|
104
96
|
a ds:TokenBinding;
|
|
105
97
|
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
106
98
|
ds:node "$root/title";
|
|
107
|
-
anatomy:styleKey "typography.
|
|
99
|
+
anatomy:styleKey "typography.color";
|
|
100
|
+
anatomy:styleState "default";
|
|
101
|
+
ds:rank 1;
|
|
102
|
+
ds:consumesSymbol dt:color.text
|
|
103
|
+
], [
|
|
104
|
+
a ds:TokenBinding;
|
|
105
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
106
|
+
ds:node "$root";
|
|
107
|
+
anatomy:styleKey "appearance.background";
|
|
108
|
+
anatomy:styleState "default";
|
|
109
|
+
ds:rank 1;
|
|
110
|
+
ds:consumesSymbol dt:surface.color.foreground.ghost
|
|
111
|
+
], [
|
|
112
|
+
a ds:TokenBinding;
|
|
113
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
114
|
+
ds:node "$root";
|
|
115
|
+
anatomy:styleKey "appearance.background";
|
|
116
|
+
anatomy:styleState "default";
|
|
117
|
+
ds:rank 2;
|
|
118
|
+
ds:consumesSymbol dt:modifier.color.foreground.ghost
|
|
119
|
+
], [
|
|
120
|
+
a ds:TokenBinding;
|
|
121
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
122
|
+
ds:node "$root";
|
|
123
|
+
anatomy:styleKey "appearance.background";
|
|
124
|
+
anatomy:styleState "default";
|
|
125
|
+
ds:rank 3;
|
|
126
|
+
ds:consumesSymbol dt:color.foreground.ghost
|
|
127
|
+
], [
|
|
128
|
+
a ds:TokenBinding;
|
|
129
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
130
|
+
ds:node "$root";
|
|
131
|
+
anatomy:styleKey "appearance.background";
|
|
132
|
+
anatomy:styleState "hover";
|
|
133
|
+
ds:rank 1;
|
|
134
|
+
ds:consumesSymbol dt:color.foreground.ghost.hover
|
|
135
|
+
], [
|
|
136
|
+
a ds:TokenBinding;
|
|
137
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
138
|
+
ds:node "$root";
|
|
139
|
+
anatomy:styleKey "appearance.background";
|
|
140
|
+
anatomy:styleState "active";
|
|
141
|
+
ds:rank 1;
|
|
142
|
+
ds:consumesSymbol dt:color.foreground.ghost.active
|
|
143
|
+
], [
|
|
144
|
+
a ds:TokenBinding;
|
|
145
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
146
|
+
ds:node "$root";
|
|
147
|
+
anatomy:styleKey "appearance.background";
|
|
148
|
+
anatomy:styleState "disabled";
|
|
149
|
+
ds:rank 1;
|
|
150
|
+
ds:consumesSymbol dt:color.foreground.ghost.disabled
|
|
151
|
+
], [
|
|
152
|
+
a ds:TokenBinding;
|
|
153
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
154
|
+
ds:node "$root";
|
|
155
|
+
anatomy:styleKey "appearance.outline.color";
|
|
156
|
+
anatomy:styleState "focus";
|
|
157
|
+
ds:rank 1;
|
|
158
|
+
ds:consumesSymbol dt:modifier.color.focusRing
|
|
159
|
+
], [
|
|
160
|
+
a ds:TokenBinding;
|
|
161
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
162
|
+
ds:node "$root";
|
|
163
|
+
anatomy:styleKey "appearance.outline.color";
|
|
164
|
+
anatomy:styleState "focus";
|
|
165
|
+
ds:rank 2;
|
|
166
|
+
ds:consumesSymbol dt:color.focusRing
|
|
167
|
+
], [
|
|
168
|
+
a ds:TokenBinding;
|
|
169
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
170
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
171
|
+
anatomy:styleKey "size.width";
|
|
108
172
|
anatomy:styleState "default";
|
|
109
173
|
ds:rank 1;
|
|
110
|
-
ds:consumesSymbol dt:
|
|
174
|
+
ds:consumesSymbol dt:dimension.200
|
|
175
|
+
], [
|
|
176
|
+
a ds:TokenBinding;
|
|
177
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
178
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
179
|
+
anatomy:styleKey "size.height";
|
|
180
|
+
anatomy:styleState "default";
|
|
181
|
+
ds:rank 1;
|
|
182
|
+
ds:consumesSymbol dt:dimension.200
|
|
183
|
+
], [
|
|
184
|
+
a ds:TokenBinding;
|
|
185
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
186
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
187
|
+
anatomy:styleKey "typography.color";
|
|
188
|
+
anatomy:styleState "default";
|
|
189
|
+
ds:rank 1;
|
|
190
|
+
ds:consumesSymbol dt:modifier.color.icon
|
|
191
|
+
], [
|
|
192
|
+
a ds:TokenBinding;
|
|
193
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
194
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
195
|
+
anatomy:styleKey "typography.color";
|
|
196
|
+
anatomy:styleState "default";
|
|
197
|
+
ds:rank 2;
|
|
198
|
+
ds:consumesSymbol dt:color.icon
|
|
199
|
+
], [
|
|
200
|
+
a ds:TokenBinding;
|
|
201
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
202
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
203
|
+
anatomy:styleKey "typography.color";
|
|
204
|
+
anatomy:styleState "disabled";
|
|
205
|
+
ds:rank 1;
|
|
206
|
+
ds:consumesSymbol dt:color.icon.disabled
|
|
207
|
+
], [
|
|
208
|
+
a ds:TokenBinding;
|
|
209
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
210
|
+
ds:node "$root/icon wrapper/case[global.subcomponent.spinner]";
|
|
211
|
+
anatomy:styleKey "typography.color";
|
|
212
|
+
anatomy:styleState "default";
|
|
213
|
+
ds:rank 1;
|
|
214
|
+
ds:consumesSymbol dt:color.icon
|
|
111
215
|
], [
|
|
112
216
|
a ds:TokenBinding;
|
|
113
217
|
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
114
|
-
ds:node "$root/
|
|
218
|
+
ds:node "$root/overflow divider";
|
|
219
|
+
anatomy:styleKey "appearance.background";
|
|
220
|
+
anatomy:styleState "default";
|
|
221
|
+
ds:rank 1;
|
|
222
|
+
ds:consumesSymbol dt:color.border.muted
|
|
223
|
+
], [
|
|
224
|
+
a ds:TokenBinding;
|
|
225
|
+
ds:viaBlock ds:global.subcomponent.modal-content;
|
|
226
|
+
ds:node "$root";
|
|
227
|
+
anatomy:styleKey "spacing.gap";
|
|
228
|
+
anatomy:styleState "default";
|
|
229
|
+
ds:rank 1;
|
|
230
|
+
ds:consumesSymbol dt:dimension.300
|
|
231
|
+
], [
|
|
232
|
+
a ds:TokenBinding;
|
|
233
|
+
ds:viaBlock ds:global.subcomponent.modal-content;
|
|
234
|
+
ds:node "$root";
|
|
115
235
|
anatomy:styleKey "spacing.internal.inline.start";
|
|
116
236
|
anatomy:styleState "default";
|
|
117
237
|
ds:rank 1;
|
|
118
|
-
ds:consumesSymbol dt:dimension.
|
|
238
|
+
ds:consumesSymbol dt:dimension.300
|
|
119
239
|
], [
|
|
120
240
|
a ds:TokenBinding;
|
|
121
|
-
ds:viaBlock ds:global.subcomponent.modal-
|
|
122
|
-
ds:node "$root
|
|
241
|
+
ds:viaBlock ds:global.subcomponent.modal-content;
|
|
242
|
+
ds:node "$root";
|
|
243
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
244
|
+
anatomy:styleState "default";
|
|
245
|
+
ds:rank 1;
|
|
246
|
+
ds:consumesSymbol dt:dimension.300
|
|
247
|
+
], [
|
|
248
|
+
a ds:TokenBinding;
|
|
249
|
+
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
250
|
+
ds:node "$root";
|
|
251
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
252
|
+
anatomy:styleState "default";
|
|
253
|
+
ds:rank 1;
|
|
254
|
+
ds:consumesSymbol dt:dimension.200
|
|
255
|
+
], [
|
|
256
|
+
a ds:TokenBinding;
|
|
257
|
+
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
258
|
+
ds:node "$root";
|
|
259
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
260
|
+
anatomy:styleState "default";
|
|
261
|
+
ds:rank 1;
|
|
262
|
+
ds:consumesSymbol dt:dimension.200
|
|
263
|
+
], [
|
|
264
|
+
a ds:TokenBinding;
|
|
265
|
+
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
266
|
+
ds:node "$root";
|
|
267
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
268
|
+
anatomy:styleState "default";
|
|
269
|
+
ds:rank 1;
|
|
270
|
+
ds:consumesSymbol dt:dimension.300
|
|
271
|
+
], [
|
|
272
|
+
a ds:TokenBinding;
|
|
273
|
+
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
274
|
+
ds:node "$root";
|
|
123
275
|
anatomy:styleKey "spacing.internal.inline.end";
|
|
124
276
|
anatomy:styleState "default";
|
|
125
277
|
ds:rank 1;
|
|
278
|
+
ds:consumesSymbol dt:dimension.300
|
|
279
|
+
], [
|
|
280
|
+
a ds:TokenBinding;
|
|
281
|
+
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
282
|
+
ds:node "$root";
|
|
283
|
+
anatomy:styleKey "appearance.background";
|
|
284
|
+
anatomy:styleState "default";
|
|
285
|
+
ds:rank 1;
|
|
286
|
+
ds:consumesSymbol dt:color.background
|
|
287
|
+
], [
|
|
288
|
+
a ds:TokenBinding;
|
|
289
|
+
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
290
|
+
ds:node "$root/button group";
|
|
291
|
+
anatomy:styleKey "spacing.gap";
|
|
292
|
+
anatomy:styleState "default";
|
|
293
|
+
ds:rank 1;
|
|
126
294
|
ds:consumesSymbol dt:dimension.100
|
|
127
295
|
], [
|
|
128
296
|
a ds:TokenBinding;
|
|
@@ -300,122 +468,10 @@ ds:global.pattern.modal a ds:Pattern;
|
|
|
300
468
|
anatomy:styleState "disabled";
|
|
301
469
|
ds:rank 1;
|
|
302
470
|
ds:consumesSymbol dt:color.icon.disabled
|
|
303
|
-
], [
|
|
304
|
-
a ds:TokenBinding;
|
|
305
|
-
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
306
|
-
ds:node "$root/divider rule";
|
|
307
|
-
anatomy:styleKey "layout.offset.inline.start";
|
|
308
|
-
anatomy:styleState "default";
|
|
309
|
-
ds:rank 1;
|
|
310
|
-
ds:consumesSymbol dt:dimension.300
|
|
311
|
-
], [
|
|
312
|
-
a ds:TokenBinding;
|
|
313
|
-
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
314
|
-
ds:node "$root/divider rule";
|
|
315
|
-
anatomy:styleKey "size.block";
|
|
316
|
-
anatomy:styleState "default";
|
|
317
|
-
ds:rank 1;
|
|
318
|
-
ds:consumesSymbol dt:dimension.stroke.thickness.medium
|
|
319
|
-
], [
|
|
320
|
-
a ds:TokenBinding;
|
|
321
|
-
ds:viaBlock ds:global.subcomponent.modal-header;
|
|
322
|
-
ds:node "$root/divider rule";
|
|
323
|
-
anatomy:styleKey "appearance.background";
|
|
324
|
-
anatomy:styleState "default";
|
|
325
|
-
ds:rank 1;
|
|
326
|
-
ds:consumesSymbol dt:color.border.muted
|
|
327
|
-
], [
|
|
328
|
-
a ds:TokenBinding;
|
|
329
|
-
ds:viaBlock ds:global.subcomponent.modal-content;
|
|
330
|
-
ds:node "$root";
|
|
331
|
-
anatomy:styleKey "spacing.internal.block.start";
|
|
332
|
-
anatomy:styleState "default";
|
|
333
|
-
ds:rank 1;
|
|
334
|
-
ds:consumesSymbol dt:dimension.300
|
|
335
|
-
], [
|
|
336
|
-
a ds:TokenBinding;
|
|
337
|
-
ds:viaBlock ds:global.subcomponent.modal-content;
|
|
338
|
-
ds:node "$root";
|
|
339
|
-
anatomy:styleKey "spacing.internal.block.end";
|
|
340
|
-
anatomy:styleState "default";
|
|
341
|
-
ds:rank 1;
|
|
342
|
-
ds:consumesSymbol dt:dimension.300
|
|
343
|
-
], [
|
|
344
|
-
a ds:TokenBinding;
|
|
345
|
-
ds:viaBlock ds:global.subcomponent.modal-content;
|
|
346
|
-
ds:node "$root";
|
|
347
|
-
anatomy:styleKey "spacing.internal.inline.start";
|
|
348
|
-
anatomy:styleState "default";
|
|
349
|
-
ds:rank 1;
|
|
350
|
-
ds:consumesSymbol dt:dimension.300
|
|
351
|
-
], [
|
|
352
|
-
a ds:TokenBinding;
|
|
353
|
-
ds:viaBlock ds:global.subcomponent.modal-content;
|
|
354
|
-
ds:node "$root";
|
|
355
|
-
anatomy:styleKey "spacing.internal.inline.end";
|
|
356
|
-
anatomy:styleState "default";
|
|
357
|
-
ds:rank 1;
|
|
358
|
-
ds:consumesSymbol dt:dimension.300
|
|
359
|
-
], [
|
|
360
|
-
a ds:TokenBinding;
|
|
361
|
-
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
362
|
-
ds:node "$root";
|
|
363
|
-
anatomy:styleKey "spacing.gap";
|
|
364
|
-
anatomy:styleState "default";
|
|
365
|
-
ds:rank 1;
|
|
366
|
-
ds:consumesSymbol dt:dimension.100
|
|
367
|
-
], [
|
|
368
|
-
a ds:TokenBinding;
|
|
369
|
-
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
370
|
-
ds:node "$root";
|
|
371
|
-
anatomy:styleKey "spacing.internal.block.start";
|
|
372
|
-
anatomy:styleState "default";
|
|
373
|
-
ds:rank 1;
|
|
374
|
-
ds:consumesSymbol dt:dimension.200
|
|
375
|
-
], [
|
|
376
|
-
a ds:TokenBinding;
|
|
377
|
-
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
378
|
-
ds:node "$root";
|
|
379
|
-
anatomy:styleKey "spacing.internal.block.end";
|
|
380
|
-
anatomy:styleState "default";
|
|
381
|
-
ds:rank 1;
|
|
382
|
-
ds:consumesSymbol dt:dimension.200
|
|
383
|
-
], [
|
|
384
|
-
a ds:TokenBinding;
|
|
385
|
-
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
386
|
-
ds:node "$root";
|
|
387
|
-
anatomy:styleKey "spacing.internal.inline.start";
|
|
388
|
-
anatomy:styleState "default";
|
|
389
|
-
ds:rank 1;
|
|
390
|
-
ds:consumesSymbol dt:dimension.300
|
|
391
|
-
], [
|
|
392
|
-
a ds:TokenBinding;
|
|
393
|
-
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
394
|
-
ds:node "$root";
|
|
395
|
-
anatomy:styleKey "spacing.internal.inline.end";
|
|
396
|
-
anatomy:styleState "default";
|
|
397
|
-
ds:rank 1;
|
|
398
|
-
ds:consumesSymbol dt:dimension.300
|
|
399
|
-
], [
|
|
400
|
-
a ds:TokenBinding;
|
|
401
|
-
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
402
|
-
ds:node "$root/divider rule";
|
|
403
|
-
anatomy:styleKey "layout.offset.inline.start";
|
|
404
|
-
anatomy:styleState "default";
|
|
405
|
-
ds:rank 1;
|
|
406
|
-
ds:consumesSymbol dt:dimension.300
|
|
407
|
-
], [
|
|
408
|
-
a ds:TokenBinding;
|
|
409
|
-
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
410
|
-
ds:node "$root/divider rule";
|
|
411
|
-
anatomy:styleKey "size.block";
|
|
412
|
-
anatomy:styleState "default";
|
|
413
|
-
ds:rank 1;
|
|
414
|
-
ds:consumesSymbol dt:dimension.stroke.thickness.medium
|
|
415
471
|
], [
|
|
416
472
|
a ds:TokenBinding;
|
|
417
473
|
ds:viaBlock ds:global.subcomponent.modal-footer;
|
|
418
|
-
ds:node "$root/divider
|
|
474
|
+
ds:node "$root/overflow divider";
|
|
419
475
|
anatomy:styleKey "appearance.background";
|
|
420
476
|
anatomy:styleState "default";
|
|
421
477
|
ds:rank 1;
|
|
@@ -6,7 +6,6 @@ ds:global.pattern.table_of_contents a ds:Pattern;
|
|
|
6
6
|
ds:name "TableOfContents";
|
|
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. Non-recursive by design: it represents up to three\n# heading levels (h2 -> h3 -> h4), each level explicit, and nesting beyond h4 is\n# not supported.\n#\n# One repair: the heading it referenced,\n# `global.subcomponent.table_of_contents-heading`, names no ds: subject, so the\n# position becomes a role node.\nnode:\n uri: global.pattern.table_of_contents\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: column\n # `spacing/x-small` names no symbol; the tightest declared block gap carries\n # it here and on the nav list.\n spacing.gap: spacing.gap.field.block # was spacing/x-small\n edges:\n - node:\n role: heading\n relation:\n cardinality: \"0..1\"\n - node:\n role: nav list\n styles:\n layout.type: flex\n layout.direction: column\n spacing.gap: spacing.gap.field.block # was spacing/x-small\n edges:\n - node:\n role: level-1 entry # h2\n styles:\n layout.type: flex\n layout.direction: column\n edges:\n - node:\n role: link\n styles:\n # `font/size/small` names no symbol; the secondary text\n # tier is the smaller ramp, and the size key admits\n # dimension.* alone, so typography.font carries the tier.\n typography.font: typography.text.secondary\n typography.color: color.text.link\n interaction.cursor: pointer\n relation:\n cardinality: \"1\"\n - node:\n role: level-2 entry # h3\n styles:\n layout.type: flex\n layout.direction: column\n # `spacing/medium` names no symbol; the indent of a\n # continued level is what spacing.inset.continuation.inline\n # is for.\n spacing.external.left: spacing.inset.continuation.inline # was spacing/medium\n edges:\n - node:\n role: link\n styles:\n typography.font: typography.text.secondary\n typography.color: color.text.link\n interaction.cursor: pointer\n relation:\n cardinality: \"1\"\n - node:\n role: level-3 entry # h4\n styles:\n spacing.external.left: spacing.inset.continuation.inline # was spacing/medium\n edges:\n - node:\n role: link\n styles:\n typography.font: typography.text.secondary\n typography.color: color.text.link\n interaction.cursor: pointer\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"1..*\"\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;
|
|
@@ -10,7 +10,27 @@ ds:global.pattern.timeline a ds:Pattern;
|
|
|
10
10
|
ds:usage "The Timeline component is intended to provide a visual narrative of events over time. It helps users orient themselves within a process by establishing a clear relationship between specific moments and the actions that occurred during them.\n\n### When to use\n\n- When users need a chronological sequence of events to understand order and progression.\n- When users need to see a history of modifications to an object.\n- When users need to track events by different actors or entities over time.\n- When users need to understand key milestones or interactions in a process.\n- When it’s useful to filter, sort, or expand/collapse events to manage long timelines.\n\n### When not to use\n\n- When the relationship between items is based on \"Parent-Child\" logic rather than \"Before-After\" logic.\n - Incorrect: Representing a folder structure or a nested comment thread as a linear timeline.\n - Remediation: Use other patterns with indentation and structuring to better represent nesting and depth.\n- For large datasets where individual events are too numerous to display on a timeline meaningfully.\n - Incorrect: Using a timeline to list all thousands of machines created by a user.\n - Remediation: Use a table to allow for better filtering and sorting.\n- When the sequence of events is not important, a simple list or a table may be clearer.\n - Incorrect: Using a timeline to list a directory of employees just because they joined at different times.\n - Remediation: Use a table to allow for easier data scanning and better sorting.\n- When the events have non-linear relationships – network-like or branching.\n - Incorrect: Using a timeline to represent the full history of a git tree.\n - Remediation: Use a flow diagram to preserve information about diverging and converging points.\n\n### Alternative layout\n\nBy default, the DateTime is in a trailing position, and the property `dateTimePosition` has value `Trailing`. When `dateTimePosition` is set to `Leading`, the Timeline component uses an alternative layout, and DateTime is placed in a leading position.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2814-3631&t=335Uo9XV6GCUXWug-11\n\n### Filters and sorting\n\nBy default, the header is included with both filtering and sorting enabled. The header can be hidden entirely, and each control can also be hidden individually. The default sort order displays the earliest event first, but it can be set to display the latest first. The Sort button label indicates the current sort order.\n\n### Collapsing methods of long Timelines\n\nThere are three options for handling long timelines.\n\n1. Default: Hide events from the bottom of the timeline\n\nThe Timeline displays the top *{x}* events on load, with *{x}* set to 60 by default. The Expansion indicator is included at the bottom of the Timeline.\n\n1. Hide events from the middle\n\nThe Timeline displays the top *{x/2} and bottom {x/2}* events on load, with *{x}* set to 60 by default. The Expansion indicator is included in the middle of the Timeline.\n\n1. Do not hide events\n\nThe Timeline displays all events at all times.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2822-27017&t=335Uo9XV6GCUXWug-11\n\n### DateTime formats\n\nThe Timeline supports a primary and secondary dateTime format. By default, the primary format displays the date and time in the user’s local system format, while the secondary format shows relative time. The primary format is used on load, and clicking the dateTime toggles between the two formats for all dateTime in the Timeline. Hovering over the dateTime displays a tooltip showing the alternate format. Both formats are configurable by the DS consumer.\n\n### Marker style combinations\n\nDifferent combinations of marker styles can serve different use cases. In some cases, alternating marker styles helps avoid repetitive elements, while in other cases, using a consistent marker style in all events if preferred. The component provides 7 predefined marker style combinations, and also allows overriding the marker style on an individual event.\n\n1. All sizes: for any sequence of consecutive events from the same actor, use a large marker for the first event, displaying the actor’s profile picture, initials, or a generic user icon, depending on availability. Within the remaining events, for each sequence of consecutive events of the same type, use a medium marker for the first event to show the event type icon, and use small markers for the rest.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2830-27432&t=335Uo9XV6GCUXWug-11\n\n1. Large and medium: for any number of consecutive events from the same actor, use a large marker for the first event, displaying the actor’s profile picture, initials, or a user icon, depending on availability. For the remaining events, use a medium marker with an icon indicating the event type.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-34843&t=335Uo9XV6GCUXWug-11\n\n1. Large and small: For any number of consecutive events from the same actor, use a large marker for the first event, displaying the actor’s profile picture, initials, or a user icon, depending on availability. For the remaining events, use a small marker.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-35424&t=335Uo9XV6GCUXWug-11\n\n1. Medium and small: For any number of consecutive events from the same actor, use a medium marker for the first event, displaying the actor’s profile picture, initials, or a user icon, depending on availability. For the remaining events, use a small marker.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-36283&t=335Uo9XV6GCUXWug-11\n\n1. Large: Use large markers consistently in all events, with graphic elements defined individually.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-36552&t=335Uo9XV6GCUXWug-11\n\n1. Medium: Use large markers consistently in all events, with graphic elements defined individually.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-106774&t=335Uo9XV6GCUXWug-11\n\n1. Small: Use large markers consistently in all events, with graphic elements defined individually.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-115567&t=335Uo9XV6GCUXWug-11\n\n";
|
|
11
11
|
ds:guidelines "**Time Formatting**\n\nAlways use a consistent time format that complies with the copy guide (e.g., Relative like \"2 hours ago\" vs. Absolute like \"Oct 24, 2023, 10:00 AM\"). For global products, ensure the timezone is clear if the timing is critical.\n\n**Visual Continuity**\n\nThe line connecting the nodes should be solid for completed events and can be dashed or greyed out for future/planned events to indicate status.\n\n";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:
|
|
13
|
+
ds:changeLog [
|
|
14
|
+
a ds:ChangeLogEntry;
|
|
15
|
+
ds:timestamp "2026-01-15T14:00:00.000+01:00";
|
|
16
|
+
ds:changeType "change"
|
|
17
|
+
], [
|
|
18
|
+
a ds:ChangeLogEntry;
|
|
19
|
+
ds:timestamp "2026-01-16T00:00:00.000+01:00";
|
|
20
|
+
ds:changeType "change"
|
|
21
|
+
], [
|
|
22
|
+
a ds:ChangeLogEntry;
|
|
23
|
+
ds:timestamp "2026-03-03T00:00:00.000+01:00";
|
|
24
|
+
ds:changeType "change"
|
|
25
|
+
], [
|
|
26
|
+
a ds:ChangeLogEntry;
|
|
27
|
+
ds:timestamp "2026-03-12T17:30:00.000+01:00";
|
|
28
|
+
ds:changeType "change"
|
|
29
|
+
], [
|
|
30
|
+
a ds:ChangeLogEntry;
|
|
31
|
+
ds:timestamp "2026-03-13T00:00:00.000+01:00";
|
|
32
|
+
ds:changeType "change"
|
|
33
|
+
];
|
|
14
34
|
ds:hasProperty [
|
|
15
35
|
a ds:Property;
|
|
16
36
|
ds:name "Show controls";
|
|
@@ -70,27 +90,7 @@ ds:global.pattern.timeline a ds:Pattern;
|
|
|
70
90
|
ds:optional "false";
|
|
71
91
|
ds:constraints "the user should contain the name, email, role, and profile picture"
|
|
72
92
|
];
|
|
73
|
-
ds:
|
|
74
|
-
a ds:ChangeLogEntry;
|
|
75
|
-
ds:timestamp "2026-01-15T14:00:00.000+01:00";
|
|
76
|
-
ds:changeType "change"
|
|
77
|
-
], [
|
|
78
|
-
a ds:ChangeLogEntry;
|
|
79
|
-
ds:timestamp "2026-01-16T00:00:00.000+01:00";
|
|
80
|
-
ds:changeType "change"
|
|
81
|
-
], [
|
|
82
|
-
a ds:ChangeLogEntry;
|
|
83
|
-
ds:timestamp "2026-03-03T00:00:00.000+01:00";
|
|
84
|
-
ds:changeType "change"
|
|
85
|
-
], [
|
|
86
|
-
a ds:ChangeLogEntry;
|
|
87
|
-
ds:timestamp "2026-03-12T17:30:00.000+01:00";
|
|
88
|
-
ds:changeType "change"
|
|
89
|
-
], [
|
|
90
|
-
a ds:ChangeLogEntry;
|
|
91
|
-
ds:timestamp "2026-03-13T00:00:00.000+01:00";
|
|
92
|
-
ds:changeType "change"
|
|
93
|
-
];
|
|
93
|
+
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
94
94
|
ds:hasSubcomponent ds:global.subcomponent.timeline-event, ds:global.subcomponent.timeline-expansion_indicator, ds:global.subcomponent.timeline-content, ds:global.subcomponent.timeline-header;
|
|
95
95
|
ds:hasTokenBinding [
|
|
96
96
|
a ds:TokenBinding;
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:global.pattern.
|
|
6
|
-
ds:name "
|
|
5
|
+
ds:global.pattern.top_navigation a ds:Pattern;
|
|
6
|
+
ds:name "TopNavigation";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,11 +6,9 @@ ds:global.subcomponent.accordion-item a ds:Subcomponent;
|
|
|
6
6
|
ds:name "Accordion.Item";
|
|
7
7
|
ds:summary "The accordion item is a collapsible content panel that belongs to a parent [Accordion](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-FfEcibePe1) component. It consists of a clickable header and a hidden content body, allowing users to toggle the visibility of information within a restricted space.";
|
|
8
8
|
ds:anatomyDsl "Initial\n\n```yaml\n---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Accordion/common/Item/styles.css on .ds.accordion-item and\n# its child selectors (> .header, > .header > .heading, > .header > .chevron,\n# > .content). The item is a native <details>/<summary>.\nnode:\n uri: global.subcomponent.accordion-item\n styles:\n # The divider that ends each item. The roster has no block-end colour key, so\n # the bottom key carries the border-block-end the implementation writes; its\n # width, dimension.stroke.thickness.medium, has no one-edge key.\n appearance.border.bottom.color: color.border.muted\n appearance.border.style: solid\n # `border-inline` is declared as an extension point whose colour\n # (--accordion-item-border-inline-color) is deliberately left undefined, so no\n # inline border renders and nothing is bound for it; the roster carries no\n # inline-side width or colour key either.\n # layout.type/layout.direction are dropped: the item is a <details> and the\n # stylesheet declares no display for it.\n edges:\n - node:\n role: header tab\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.listStyle: none\n interaction.cursor: pointer\n spacing.gap: dimension.200 # --accordion-item-header-gap, between chevron and heading\n spacing.internal.block.start: dimension.100 # --accordion-item-header-padding-block\n spacing.internal.block.end: dimension.100 # --accordion-item-header-padding-block\n spacing.internal.inline.start: dimension.200 # --accordion-item-header-padding-inline, a surface inset\n spacing.internal.inline.end: dimension.200 # --accordion-item-header-padding-inline, a surface inset\n typography.color: color.text\n # The ghost surface channel is read on the element so it steps with\n # .surface nesting, then the flat ghost token.\n appearance.background: [surface.color.foreground.ghost, color.foreground.ghost]\n # The hover/active reads prefer --surface-color-foreground-ghost-hover\n # and -active, which no stratum declares (the surface family mints only\n # the base ghost channel), so only the flat state tokens are written.\n appearance.background@hover: color.foreground.ghost.hover\n appearance.background@active: color.foreground.ghost.active\n # A STOPGAP in the stylesheet re-points those two per surface depth —\n # color.foreground.ghost.layer2.hover/.active on a layer-2 surface and\n # the layer3 pair on a layer-3 one — until the surfaces modifier ships\n # hover and active channels. Surface depth is a context selector, not a\n # node, so the layered pairs are recorded rather than bound.\n # Whichever element sits directly above the item's block-end divider\n # subtracts the divider thickness from its own block-end padding, so\n # the item's border-box height stays a baseline multiple: collapsed,\n # that is the header; expanded, the content panel. Both are calc()s and\n # neither is bound.\n edges:\n - node:\n role: chevron\n styles:\n layout.flex.shrink: 0\n size.width: dimension.200\n size.height: dimension.200\n motion.property: transform\n # The chevron points right while the item is closed (the down\n # glyph rotated -90deg) and down once it is open. `[open]` is\n # the expanded state, but the difference between the two faces\n # is a transform and no roster key takes one, so the expanded\n # face carries no binding.\n # The rotation transition reads --motion-duration-fast and\n # --motion-easing-standard, which no stratum declares, and the\n # chain has no literal to fall back to, so neither is bound.\n edges:\n - node:\n # drawn as ::before\n role: chevron glyph\n styles:\n layout.type: block\n size.width: 100%\n size.height: 100%\n # Masked, so what the glyph binds is its colour and its\n # size: chevron-down.svg is applied as a mask over the\n # fixed chevron box and the icon token paints through it.\n # No roster key takes a mask.\n appearance.background: color.icon\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: heading\n styles:\n layout.flex.grow: 1\n layout.flex.shrink: 1\n layout.flex.basis: 0%\n size.min.width: 0\n # All five facets of the text-primary composite are read\n # (--typography-text-primary-font-{family,size,weight},\n # -line-height, -letter-spacing), so the composite is bound once.\n typography.font: typography.text.primary\n # Every heading element except <h6> is normalised down to that\n # tier with `font: inherit` and `margin: 0`; an <h6> keeps the\n # heading-6 tier from @canonical/styles-typography. Those are\n # rules on the consumer's own element inside the slot, not on a\n # node of this tree.\n relation:\n cardinality: \"1\"\n slotName: heading\n # The consumer supplies the heading through the `heading` prop, so\n # the slot is named for it; `children` go to the content panel,\n # which is the default slot.\n relation:\n cardinality: \"1\"\n slotName: header\n - node:\n role: content panel\n styles:\n typography.color: color.text\n spacing.internal.block.start: dimension.100 # --accordion-item-content-padding-block\n spacing.internal.block.end: dimension.100 # --accordion-item-content-padding-block\n spacing.internal.inline.end: dimension.200 # --accordion-item-content-padding-inline, a surface inset\n # padding-inline-start is --accordion-item-content-indent, a calc() over\n # the header's inline padding, the chevron size and the header gap, so\n # the panel's text aligns under the heading. A calc is not a symbol and\n # is not bound.\n # Inside a density scope the panel's block padding is re-derived from\n # --density-space-md and the header takes the shared control seat, so\n # both paddings become calc() over --control-seat-* and\n # --density-line-height-effective. A density or context selector is not\n # a node, and none of those names is declared.\n relation:\n cardinality: \"1\"\n slotName: default\n```\n\n\n\nNew\n\n```yaml\n---\nnode:\n uri: global.subcomponent.accordion-item\n styles:\n layout.type: flex\n layout.direction: column\n spacing.gap.block: dimension.100\n appearance.border.bottom.color: color.border.muted\n appearance.border.style: solid\n edges:\n - node:\n role: header\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n spacing.gap: dimension.200\n spacing.internal.inline.start: dimension.200\n spacing.internal.inline.end: dimension.200\n appearance.background: color.foreground.ghost\n edges:\n - node:\n role: chevron\n styles:\n size.width: dimension.200\n size.height: dimension.200\n appearance.background: color.icon\n relation:\n cardinality: \"1\"\n - node:\n role: heading\n styles:\n layout.flex.grow: 1\n typography.font: typography.text.primary\n typography.color: color.text\n relation:\n cardinality: \"1\"\n slotName: heading\n - node:\n uri: global.component.badge\n relation:\n cardinality: \"0..1\"\n slotName: badge\n relation:\n cardinality: \"1\"\n slotName: header\n - node:\n role: content panel\n styles:\n spacing.internal.inline.start: dimension.600\n spacing.external.block.end: dimension.200\n typography.font: typography.text.primary\n typography.color: color.text\n relation:\n cardinality: \"1\"\n slotName: default\n```";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The accordion item is intended to reduce visual noise and page length by keeping details hidden until requested. Use only as part of the Accordion. \n";
|
|
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 "heading";
|
|
@@ -22,4 +20,5 @@ ds:global.subcomponent.accordion-item a ds:Subcomponent;
|
|
|
22
20
|
ds:propertyType "text";
|
|
23
21
|
ds:optional "false"
|
|
24
22
|
];
|
|
23
|
+
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
25
24
|
ds:parentComponent ds:global.component.accordion.
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.breadcrumbs-item a ds:Subcomponent;
|
|
|
6
6
|
ds:name "Breadcrumbs.Item";
|
|
7
7
|
ds:summary "The breadcrumbs item is a subcomponent representing a single level within the navigational trail of [Breadcrumbs](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-BXVe6mKJMd). It serves as a discrete link or label that signifies a specific node in the application's information hierarchy.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Breadcrumbs/common/Item/styles.css on .ds.breadcrumbs-item\n# and its child selectors (> .link, > .separator, and the .current / .disabled\n# item classes).\nnode:\n uri: global.subcomponent.breadcrumbs-item\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.listStyle: none\n edges:\n - node:\n role: link\n styles:\n typography.color: color.text.link\n typography.decoration: none\n typography.decoration@hover: underline\n # A `.disabled` item is not a link: the class, not :disabled, is what\n # the implementation selects on, and it is the disabled state.\n typography.color@disabled: color.text.disabled\n interaction.cursor@disabled: not-allowed\n appearance.outline.width@focus: dimension.stroke.thickness.large\n appearance.outline.style@focus: solid\n appearance.outline.color@focus: color.text.link\n appearance.outline.offset@focus: dimension.025\n # A `.current` item keeps color.text and `cursor: default` — the trail's\n # own position, which is a variant rather than one of the five states,\n # so it is recorded here and not bound.\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: separator\n styles:\n typography.color: color.text\n # The separator is hidden on the first item of the trail.\n spacing.external.inline.start: dimension.100 # --breadcrumbs-item-separator-margin\n spacing.external.inline.end: dimension.100 # --breadcrumbs-item-separator-margin\n relation:\n cardinality: \"0..1\"";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "Breadcrumb items are intended to build a logical \"path\" for the user. They must be arranged sequentially to reflect the hierarchy of information domains which contextualize the current view.";
|
|
11
10
|
ds:guidelines "The Breadcrumbs Items share [the common navigation item property interface](https://docs.google.com/document/d/1HSQyocivbz1nyxF2oZ9DnAvTm4sMG_smGcddS9QBKxY/edit?tab=t.0).";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -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;
|