@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,7 +6,6 @@ ds:global.subcomponent.spinner a ds:Subcomponent;
|
|
|
6
6
|
ds:name "Spinner";
|
|
7
7
|
ds:summary "A looping activity indicator built from the spinner icon (the Canonical “circle of friends”), rotating continuously to signal that work is in progress.\n\nThe Spinner is a single element: the spinner icon rotated continuously by a motion animation. It has no text of its own — labeling is the responsibility of the consumer (e.g. Button, Combobox.Loading).";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/subcomponent/Spinner/styles.css on .ds.spinner.\nnode:\n uri: global.subcomponent.spinner\n styles:\n layout.type: inline-block\n layout.verticalAlign: middle\n # The size cascade is --spinner-size (a per-instance override) then\n # --icon-size (the shared icon convention) then 1em, so the spinner tracks\n # the container font-size. Neither variable is declared, so the literal the\n # chain falls back to is written.\n size.width: 1em\n size.height: 1em\n # The rotation is a keyframe animation at --spinner-duration (1s fallback,\n # linear, infinite); no roster key takes an animation, and no ratified motion\n # token is that long.\n # The icon edge the notation carried is dropped: the implementation renders the\n # `spinner` glyph itself, as an <svg> with a <use> reference to\n # spinner.svg#spinner, rather than composing global.component.icon.";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "### When to use\n\n- **Indeterminate waits:** an action is in progress and its duration is unknown (button submitting, options loading).\n\n### When not to use\n\n- **Determinate progress:** use a progress bar when completion \ncan be measured.";
|
|
11
10
|
ds:guidelines "- **Motion:** rotates via a motion token; honours `prefers-reduced-motion`.\n- **Accessibility:** decorative by default; the \nsurrounding control owns the accessible status text.\n\n";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.switch_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "SwitchInput";
|
|
7
7
|
ds:summary "The atomic on/off toggle part a host places in context, carrying the binary state and the user's flip interaction; consumed by components such as SwitchField. Not used on its own.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/SwitchInput/styles.css on .ds.form-switch and its ::before\n# knob. A checkbox with role=\"switch\" styled as a sliding pill: the track is the\n# <input> box, the knob is a pseudo-element that slides from one end to the\n# other.\nnode:\n uri: global.subcomponent.switch_input\n styles:\n appearance.native: none\n layout.boxSizing: border-box\n layout.position: relative\n # margin-inline reads --form-label-padding-inline, undeclared, falling back\n # to 0: the control aligns to the field edge like the label.\n spacing.external.inline.start: 0\n spacing.external.inline.end: 0\n # A 32x16 track: fixed element sizes, deliberately NOT baseline multiples.\n # The track carries no border, so width and height are the exact track box\n # and the absolutely-positioned knob is measured against the same box.\n size.width: dimension.400\n size.height: dimension.200\n appearance.radius: dimension.radius.full\n # The unselected track prefers --surface-color-foreground-switch-unselected,\n # which no stratum declares (the surface family mints the switch knob channel\n # alone), so only the flat token is written.\n appearance.background: color.foreground.switch.unselected\n # Selected, the track reads --surface-color-foreground-switch-selected first,\n # which no stratum declares (the surface family mints the knob channel only).\n appearance.background@selected: color.foreground.switch.selected\n appearance.background@disabled: color.foreground.switch.unselected.disabled\n appearance.outline.style@focus: none\n interaction.cursor: pointer\n interaction.cursor@disabled: not-allowed\n motion.property: background-color\n # Not bound, and why:\n # - the transition duration reads --motion-duration-fast, undeclared;\n # - the focus ring is a box-shadow at color.focusRing, which no roster key\n # takes;\n # - hover shifts only the track, from --hover--color-foreground-switch-\n # unselected / -selected: computed state variables that are not symbols,\n # and nothing in either chain resolves;\n # - a disabled selected track takes color.foreground.switch.selected.disabled,\n # which needs a compound state.\n edges:\n - node:\n # drawn as ::before\n role: knob\n styles:\n layout.position: absolute\n # Inset 1px from the track edges (--switch-knob-inset, a literal the\n # component writes). The knob's own size is a calc() over the track\n # height and that inset, so it is not bound.\n # The start inset is written logically (inset-inline-start); the roster's\n # logical offset key takes a token only, so the literal goes on the\n # physical key.\n layout.offset.top: 1px\n layout.offset.bottom: 1px\n layout.offset.left: 1px\n appearance.radius: dimension.radius.full\n appearance.background: [surface.color.foreground.switch.knob, color.foreground.switch.knob]\n appearance.background@disabled: color.foreground.switch.knob.disabled\n # Selected, the knob translates to the far edge by the space left over\n # after the knob and both insets — a calc(), and `translate` has no\n # value key of its own.\n motion.property: translate\n relation:\n cardinality: \"1\"";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The instant on/off entry part a host places in context for a single setting that takes effect immediately.\n\n### When to use\n- A host toggles one binary setting whose change applies at once, like enabling a mode.\n- The choice reads as turning something on or off rather than ticking a list.\n\n### When not to use\n- The choice is one of several that may each be selected — compose **CheckboxInput**.\n- Exactly one option must win from a set — compose **RadioInput**.";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.text_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "TextInput";
|
|
7
7
|
ds:summary "The single-line text-entry part a host field places in context. It accepts the user's typed text and can present a leading or trailing affix (such as a unit or symbol) beside the value; it is consumed by controls such as [TextField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-QAuX4qtecx) 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/TextInput/styles.css on .ds.input.text and its child\n# selectors (> input, > .prefix, > .suffix), together with the shared\n# `.ds.input.chrome` rule in src/index.css, which the component's own class list\n# (`ds input text chrome`) puts on this same element.\nnode:\n uri: global.subcomponent.text_input\n styles:\n # The composite wrapper overrides the chrome's `display: block` and resets its\n # padding: the inner <input> is the text-bearing leaf and carries the inline\n # padding, so the wrapper must not inset the text twice.\n layout.type: flex\n layout.align: stretch\n layout.position: relative\n layout.boxSizing: border-box\n typography.direction: inherit\n size.width: 100%\n spacing.internal.block.start: 0\n spacing.internal.block.end: 0\n spacing.internal.inline.start: 0\n spacing.internal.inline.end: 0\n # ── the shared input chrome (src/index.css, `.ds.input.chrome`) ──────────\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.border.style: solid\n # The base theme is bottom-border-only: `border-color` is set from\n # --form-input-border-color, and then the top, right and left colours are\n # overridden to `transparent` (--form-input-border-color-{top,right,left}),\n # so only the bottom edge paints. The four-side key therefore takes the\n # literal the three overridden sides end at, and the bottom key the token\n # the fourth falls through to.\n appearance.border.color: transparent\n appearance.border.bottom.color: color.border\n # A `.danger` field — a failed validation — repaints the bottom border alone,\n # through --form-input-border-color-bottom.\n appearance.border.bottom.color@invalid: color.border.error\n appearance.radius: dimension.radius.small\n appearance.background: color.foreground.input\n typography.color: color.text\n # The font-family, font-size and line-height facets of the text-primary\n # composite are read (--typography-text-primary-font-family, and its\n # font-size and line-height through --form-input-font-size and\n # --form-input-line-height), so the composite is bound once: typography.size\n # admits dimension.* alone.\n typography.font: typography.text.primary\n motion.property: border-color, box-shadow\n # The hover fill reads --hover--color-foreground-input first, a computed state\n # variable that no stratum declares as a symbol.\n appearance.background@hover: color.foreground.input.hover\n # Focus lights all four edges and drops the user-agent outline for a ring of\n # its own.\n appearance.border.color@focus: color.focusRing\n appearance.outline.style@focus: none\n # A disabled control keeps its border BOX so its height still matches an\n # enabled one, and drops only the paint.\n appearance.background@disabled: color.foreground.input.disabled\n appearance.border.color@disabled: transparent\n interaction.cursor@disabled: not-allowed\n # Not bound, and why:\n # - height reads --form-input-height, a calc() over --space-baseline, which\n # no stratum declares;\n # - padding-block reads --form-input-padding-block, then\n # --component-padding-block, neither of which is declared. A density scope\n # re-derives the INLINE padding (--form-input-padding-inline, from\n # --density-padding-inline then --space-200) and never padding-block;\n # - the focus ring and the disabled text colour are a box-shadow at\n # --form-focus-ring-color and a read of --disabled--color-text: no roster\n # key takes a box-shadow, and the computed state variable is not a symbol;\n # - the transition duration reads --motion-duration-fast, undeclared;\n # - a `.danger` field lights the focus ring at color.focusRing.error, which\n # needs the compound of invalid and focus that this version of the\n # notation reserves. Its bottom border is bound above.\n edges:\n - node:\n role: prefix\n styles:\n layout.type: flex\n layout.align: center\n typography.color: color.text.muted\n typography.whiteSpace: nowrap\n interaction.select: none\n # padding-inline reads --form-field-inline-gap, then\n # --container-gap-default: neither is declared.\n relation:\n cardinality: \"0..1\"\n slotName: prefix\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 typography.color: inherit\n typography.fontFamily: inherit\n appearance.outline.style: none\n # The text-bearing leaf carries the inline padding, which reads\n # --form-input-padding-inline then --component-padding-inline: neither\n # is declared. Font-size, line-height and the baseline nudges come from\n # the `.p` class, not from this rule.\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: suffix\n styles:\n layout.type: flex\n layout.align: center\n typography.color: color.text.muted\n typography.whiteSpace: nowrap\n interaction.select: none\n relation:\n cardinality: \"0..1\"\n slotName: suffix";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The single-line free-text entry part a host places in context for short, open-ended written values.\n\n\n\n### When to use\n\n- A host collects a brief line of text such as a name or label.\n\n- The value is open prose with no fixed option set and fits on one line.\n\n\n\n### When not to use\n\n- The value runs to several lines — compose [TextareaInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-AhD9dYg2Q9) .\n\n- The value is a sensitive secret — compose [PasswordInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-56yPjE3O1S) , or a phone number — [PhoneInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-TOwhvjdQ8a) .\n\n- The value is a choice from a known set — compose [SelectInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-EVwqNhd3WH) .";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,11 +6,9 @@ ds:global.subcomponent.textarea_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "TextareaInput";
|
|
7
7
|
ds:summary "The multi-line text-entry part a host field places in context; it accepts extended text the user can write and revise over several lines, and is consumed by controls such as [TextareaField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-1BX4RBEZu6) .";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global-form\n# src/lib/subcomponent/TextareaInput/styles.css on .ds.input.textarea, together\n# with the shared `.ds.input.chrome` rule in src/index.css, which the component's\n# own class list (`ds input textarea chrome`) puts on this same element. A native\n# <textarea>: the element itself is the text-bearing leaf, so the notation's\n# `value` child is dropped — the stylesheet has no child selector and the value\n# is the element's own text content.\nnode:\n uri: global.subcomponent.textarea_input\n styles:\n layout.type: block\n layout.boxSizing: border-box\n size.width: 100%\n interaction.resize: vertical\n # The element carries the inline padding itself (the chrome supplies only the\n # block padding); both read --form-input-padding-inline /\n # --form-input-padding-block, then --component-padding-inline /\n # --component-padding-block, none of which is declared. `min-height` is a\n # calc() over 5lh and that block padding, and size.min.height takes a token\n # only. The baseline seating of the first line comes from density.css.\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.";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The multi-line free-text entry part a host places in context for longer written passages.\n\n### When to use\n- A host collects open prose that spans multiple lines, such as comments or descriptions.\n- The person needs room to compose and review extended text.\n\n### When not to use\n- The value is a single short line — compose **TextInput**.\n- The value is a choice from a fixed set — compose **SelectInput**.";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
12
|
ds:hasProperty [
|
|
15
13
|
a ds:Property;
|
|
16
14
|
ds:name "value";
|
|
@@ -33,6 +31,7 @@ ds:global.subcomponent.textarea_input a ds:Subcomponent;
|
|
|
33
31
|
ds:summary "(Cc [Goulin Khoge](mailto:goulin.khoge@canonical.com) ‘s suggestion)";
|
|
34
32
|
ds:optional "false"
|
|
35
33
|
];
|
|
34
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
36
35
|
ds:hasTokenBinding [
|
|
37
36
|
a ds:TokenBinding;
|
|
38
37
|
ds:viaBlock ds:global.subcomponent.textarea_input;
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.tile-content a ds:Subcomponent;
|
|
|
6
6
|
ds:name "Tile.Content";
|
|
7
7
|
ds:summary "Tile content is the primary area within the tile used to surface singular, cohesive data points that provide a high-level snapshot of an object. They ensure that information remains easily digestible within a view.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Tile/common/Content/styles.css on .ds.tile-content.\nnode:\n uri: global.subcomponent.tile-content\n styles:\n layout.type: flex\n layout.direction: column\n # The block padding is deliberately asymmetric so a header above and this\n # section read as one region, which no single spacing role can say; each key\n # binds the dimension its variable reads.\n spacing.gap: dimension.100 # --tile-content-gap, the block gap between fields\n spacing.internal.block.start: dimension.100 # --tile-content-padding-top\n spacing.internal.block.end: dimension.200 # --tile-content-padding-bottom\n spacing.internal.inline.start: dimension.200 # --tile-content-padding-inline, a surface inset\n spacing.internal.inline.end: dimension.200 # --tile-content-padding-inline, a surface inset";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
@@ -6,21 +6,20 @@ ds:global.subcomponent.tile-header a ds:Subcomponent;
|
|
|
6
6
|
ds:name "Tile.Header";
|
|
7
7
|
ds:summary "The tile header is a fixed structural element at the top of the [Tile](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-eThhoLZg3Y) used to house essential identification metadata. It typically contains a single line of text or a small icon to establish the name of the data object. Its sole functionality is to provide a consistent visual starting point for the user to identify specific items within a repeating grid.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Tile/common/Header/styles.css on .ds.tile-header.\nnode:\n uri: global.subcomponent.tile-header\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n spacing.gap: dimension.100 # --tile-header-gap, the inline gap between marks\n spacing.internal.block.start: dimension.100 # --tile-header-padding-block\n spacing.internal.block.end: dimension.100 # --tile-header-padding-block\n spacing.internal.inline.start: dimension.200 # --tile-header-padding-inline, a surface inset\n spacing.internal.inline.end: dimension.200 # --tile-header-padding-inline, a surface inset\n # The header reads --typography-weight-semibold, which no stratum declares —\n # the declared spelling is --typography-weight-semiBold\n # (typography.weight.semiBold) — so only the literal the chain falls back to\n # is written.\n typography.weight: 600";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "";
|
|
11
10
|
ds:guidelines "";
|
|
12
11
|
ds:tier ds:global;
|
|
12
|
+
ds:changeLog [
|
|
13
|
+
a ds:ChangeLogEntry;
|
|
14
|
+
ds:timestamp "2026-01-15T00:00:00.000+01:00";
|
|
15
|
+
ds:changeType "change"
|
|
16
|
+
];
|
|
13
17
|
ds:hasProperty [
|
|
14
18
|
a ds:Property;
|
|
15
19
|
ds:name "children";
|
|
16
20
|
ds:propertyType "element";
|
|
17
21
|
ds:optional "false"
|
|
18
22
|
];
|
|
19
|
-
ds:changeLog [
|
|
20
|
-
a ds:ChangeLogEntry;
|
|
21
|
-
ds:timestamp "2026-01-15T00:00:00.000+01:00";
|
|
22
|
-
ds:changeType "change"
|
|
23
|
-
];
|
|
24
23
|
ds:parentComponent ds:global.component.tile;
|
|
25
24
|
ds:hasTokenBinding [
|
|
26
25
|
a ds:TokenBinding;
|
|
@@ -6,7 +6,6 @@ ds:global.subcomponent.time_input a ds:Subcomponent;
|
|
|
6
6
|
ds:name "TimeInput";
|
|
7
7
|
ds:summary "The time-of-day-entry part a host field places in context: it lets the user specify a time of day within any allowed bounds and set increments, carrying the chosen time as its state. It is consumed by controls such as TimeField 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/TimeInput/styles.css on .ds.input.time, together with the\n# shared `.ds.input.chrome` rule in src/index.css, which the component's own\n# class list (`ds input time chrome`) puts on this same element. A native\n# <input type=\"time\">: the element itself is the text-bearing leaf.\nnode:\n uri: global.subcomponent.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 # The clock indicator is parked in the stylesheet: no clock glyph exists in\n # @canonical/ds-assets to mask onto the picker indicator.";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "The time-of-day entry a host composes when the value it collects is a time of 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 time of day and bounds it by an earliest and latest time, optionally snapped to set increments.\n\n- The collected value is a time of day with no calendar day attached.\n\n\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 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,17 +6,16 @@ ds:global.subcomponent.timeline-content a ds:Subcomponent;
|
|
|
6
6
|
ds:name "Timeline.Content";
|
|
7
7
|
ds:summary "The timeline the timeline content is the main canvas that contains the used to display the detailed information of the occurrence. This is to differentiate it from the header (filter bar) and footer (potential comment section). It typically includes the timestamp, the actor responsible, and a description of the action. Its sole functionality is to communicate the substance of the event to the user in a readable format.";
|
|
8
8
|
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/pattern/Timeline/common/Content/styles.css on .ds.timeline-content.\n# TODO implementation: the expansion-indicator edge below has no reference in\n# @canonical/react-ds-global; it is kept from the notation, which the stylesheet\n# does not contradict.\n# The notation's \"TODO: Timeline axis/line connecting events needs DSL\n# representation\" is resolved rather than carried: the line IS implemented, as\n# the ::before of .ds.timeline-event, and it is a node of that subcomponent's\n# anatomy.\nnode:\n uri: global.subcomponent.timeline-content\n styles:\n layout.type: flex\n layout.direction: column\n edges:\n - switch:\n on: override\n cases:\n - uri: global.subcomponent.timeline-event\n - uri: $custom\n relation:\n cardinality: \"0..*\"\n # The events arrive as `children`; the notation's \"populated via items\n # prop\" is dropped — Content's props carry no `items`.\n slotName: default\n - node:\n uri: global.subcomponent.timeline-expansion_indicator\n relation:\n cardinality: \"0..1\"\n slotName: expansion-indicator";
|
|
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.pattern.timeline;
|
|
21
20
|
ds:hasTokenBinding [
|
|
22
21
|
a ds:TokenBinding;
|
|
@@ -10,7 +10,6 @@ ds:global.subcomponent.timeline-event a ds:Subcomponent;
|
|
|
10
10
|
ds:usage "### Event content\n\nAn Event item can include default content, custom content, or both. The default content contains the actor name, the description and the dateTime. Each can be hidden individually. Custom content can also span the full width of the component, in which case the marker and the default content is hidden.\n\n### Actor profile link\n\nAn Event can include an actor profile link. When doing so, all Markers representing the actor and the Actor name become clickable and link to the provided profile.\n\n### DateTime\n\nThe dateTime defaults to displaying the date and time in the user’s local format. It can be configured by the DS consumer to exclude the time or to use a specific format for all users. Additionally, dateTime can be displayed as relative time.\n\n### Marker styles\n\nThe component provides flexible marker styles to accommodate different use cases. A marker can be one of three sizes and can include one of three graphical elements. What marker style an event uses is determined by the Timeline component's marker combination property.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
-
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "Is fully custom";
|
|
@@ -50,6 +49,7 @@ ds:global.subcomponent.timeline-event a ds:Subcomponent;
|
|
|
50
49
|
ds:propertyType "datetime";
|
|
51
50
|
ds:optional "false"
|
|
52
51
|
];
|
|
52
|
+
ds:documentationStage ds:tag.needsfulldocumentation;
|
|
53
53
|
ds:parentComponent ds:global.pattern.timeline;
|
|
54
54
|
ds:hasTokenBinding [
|
|
55
55
|
a ds:TokenBinding;
|
|
@@ -4,12 +4,37 @@
|
|
|
4
4
|
|
|
5
5
|
ds:global.variant.tooltip_dense a ds:Variant;
|
|
6
6
|
ds:name "Tooltip+Dense";
|
|
7
|
-
ds:summary "The dense tooltip is a compact tooltip variant intended for interfaces where space is limited or information needs to be delivered efficiently. Its primary purpose is to provide brief, essential guidance while maintaining a smaller footprint than the standard tooltip
|
|
7
|
+
ds:summary "The dense tooltip is a compact tooltip variant intended for interfaces where space is limited or information needs to be delivered efficiently. Its primary purpose is to provide brief, essential guidance while maintaining a smaller footprint than the standard tooltip.";
|
|
8
8
|
ds:anatomyDsl "---\n# The compact tooltip: text only, with no icon and no arrow. Its variable mode\n# is set to dark, so it is dark on a light page by default and its colours are\n# bound directly, not through surface channels.\nnode:\n uri: global.variant.tooltip_dense\n styles:\n layout.type: flex\n layout.direction: row\n # Clips its content so the text never draws outside the border.\n layout.overflow: hidden\n appearance.background: color.background.container\n typography.color: color.text\n appearance.border.color: color.border.muted\n appearance.border.style: solid\n appearance.border.width: dimension.stroke.thickness.medium\n appearance.radius: dimension.radius.small\n typography.font: typography.text.tertiary\n size.max.width: 284px\n spacing.internal.inline.start: dimension.100\n spacing.internal.inline.end: dimension.100\n spacing.internal.block.start: dimension.050\n spacing.internal.block.end: dimension.050\n edges:\n - node:\n role: text\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
-
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=
|
|
10
|
-
ds:usage "
|
|
9
|
+
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=15464-9049&t=mASfRpGDNDTUJCz7-1\n\n1. **Container**\n\nCompact, inverted surface that holds the text. No arrow.\n\n1. **Text**\n\nShort supplementary copy that explains or clarifies the trigger.\n\n## Styling\n\n**Layout and spacing**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=15560-11995&t=mASfRpGDNDTUJCz7-1\n\n**Colors**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=15560-12031&t=mASfRpGDNDTUJCz7-1\n\n**Typography**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=15560-12054&t=mASfRpGDNDTUJCz7-1\n\n**Oveflow**\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=15560-12065&t=mASfRpGDNDTUJCz7-1";
|
|
10
|
+
ds:usage "## When to use\n\n- When space is limited, such as in tables, toolbars, or dashboards\n- When clarifying truncated labels, abbreviations, acronyms, or status indicators. \n- When tooltips appear frequently and should not visually dominate the interface\n\n## When not to use\n\n- When content requires multiple lines or comfortable reading space\n - Incorrect: A dense tooltip is used for a multi-line explanatory message\n - Remediation: Use a standard [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW) for improved readability\n- When content is descriptive or longer than a short phrase\n - Incorrect: A dense tooltip contains multiple lines of explanatory text\n - Remediation: Use a standard [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW) \n- When content is complex or structured\n - Incorrect: A dense tooltip includes multiple elements such as icons and key-value pairs\n - Remediation: Use [WrapperTooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-69TNyYt7M9)\n- When used on touch interfaces, where small hover targets reduce usability\n- When the element is already clearly labelled or self-explanatory.\n\n### In essence:\n\nWhen in doubt, start with standard [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW). Move to its [Tooltip+Dense](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-PFE_wK_bWT) variant for space constraints; [WrapperTooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-69TNyYt7M9) for structured content and complex hierarchies; [DataTooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Y1ha3zI_b_) for data visualization.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:global;
|
|
13
|
+
ds:hasProperty [
|
|
14
|
+
a ds:Property;
|
|
15
|
+
ds:name "Position";
|
|
16
|
+
ds:summary "Preferred placement relative to trigger";
|
|
17
|
+
ds:propertyType "choice";
|
|
18
|
+
ds:optional "false";
|
|
19
|
+
ds:defaultValue "Auto";
|
|
20
|
+
ds:constraints "Right\nUp\nDown"
|
|
21
|
+
], [
|
|
22
|
+
a ds:Property;
|
|
23
|
+
ds:name "Max width";
|
|
24
|
+
ds:summary "Maximum width of tooltip container";
|
|
25
|
+
ds:propertyType "number";
|
|
26
|
+
ds:optional "true";
|
|
27
|
+
ds:defaultValue "284";
|
|
28
|
+
ds:constraints "px"
|
|
29
|
+
], [
|
|
30
|
+
a ds:Property;
|
|
31
|
+
ds:name "Surrounding UI theme";
|
|
32
|
+
ds:summary "Sets tooltip theme to the inverse of the surrounding UI context";
|
|
33
|
+
ds:propertyType "choice";
|
|
34
|
+
ds:optional "false";
|
|
35
|
+
ds:defaultValue "Light";
|
|
36
|
+
ds:constraints "Dark"
|
|
37
|
+
];
|
|
13
38
|
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
39
|
ds:hasSubcomponent ds:global.variant.tooltip_dense;
|
|
15
40
|
ds:variantOf ds:global.component.tooltip;
|
package/data/global.ttl
CHANGED
|
@@ -6,11 +6,9 @@ ds:global_dataviews.component.filter_button a ds:Component;
|
|
|
6
6
|
ds:name "FilterButton";
|
|
7
7
|
ds:summary "A filter button opens the controls of one filter and shows whether that filter applies, and how many values it holds. Unlike **DropdownButton**, its purpose is filtering, and it carries an applied state. Unlike **Chip**, it opens a filter’s controls rather than standing for an applied value. It serves the few filters people use most beside a search or a query bar, such as status, tags or pool.";
|
|
8
8
|
ds:anatomyDsl "---\n# TODO implementation: no reference in @canonical/react-ds-global or react-ds-global-form\n# TODO anatomy: DropdownButton has none yet in the graph. It is to hold the trigger, the\n# chevron, the popover and its surface; this one fills its `label` and `default` slots, the\n# names its specification gives.\n# Applied state: no element state. The Badge's count is the visible cue, and the trigger's\n# accessible name carries the count (\"Status, 2 applied\"). No symbol declares an applied\n# fill yet. The applied clause's Condition mark comes before the count. The panel is\n# DropdownButton's non-modal dialog, named by the trigger, which takes\n# aria-haspopup=\"dialog\"; it stays open while its controls change. It sits on the Surface\n# layer one above its host's (Surface2 on a page at Surface1), so its surface channels\n# resolve to that layer.\nnode:\n uri: global_dataviews.component.filter_button\n edges:\n - node:\n uri: global.component.dropdown_button\n # The trigger is Button's tertiary, neutral face, fixed: FilterButton sets Button's\n # Importance to Tertiary and offers neither importance nor anticipation of its own.\n # No graph property exists to pin.\n edges:\n - node:\n role: filter name\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n # The Condition value's mark, such as \"≠\" for exclusion, while the filter\n # applies and `condition` is set. Its glyph is the Condition value's; no channel\n # carries a glyph yet, and FilterButton reads no Condition tone, so nothing is\n # bound: the mark takes the trigger's text colour.\n # aria-hidden, because the host's appliedLabel says it in words.\n role: condition mark\n relation:\n cardinality: \"0..1\"\n slotName: label\n - node:\n # The host's appliedLabel (\"2 applied\", \"none of 2\"), visually hidden, so the\n # name reads \"Status, 2 applied\" and the visible label stays its prefix.\n role: applied words\n relation:\n cardinality: \"0..1\"\n slotName: label\n - node:\n # aria-hidden: the applied words carry the count to assistive technology.\n uri: global.component.badge\n relation:\n # Present while the filter applies.\n cardinality: \"0..1\"\n slotName: label\n - switch:\n # The panel is the host's children. FilterButton renders no form of its own;\n # the first case is the typical shape a host passes.\n on: override\n cases:\n - node:\n role: option list\n styles:\n appearance.background: [surface.color.background, color.background]\n layout.type: flex\n layout.direction: column\n layout.overflow.block: auto\n spacing.internal.block.start: dimension.050\n spacing.internal.block.end: dimension.050\n edges:\n - node:\n uri: global.subcomponent.search_input\n relation:\n # Past ten options.\n cardinality: \"0..1\"\n - node:\n # A <label> around the checkbox, so its text and its count\n # together name the checkbox, a visually hidden \", \" before the\n # count: \"deployed, 12\".\n role: option\n styles:\n spacing.internal.block.start: dimension.100\n spacing.internal.block.end: dimension.100\n spacing.internal.inline.start: dimension.150\n spacing.internal.inline.end: dimension.150\n # The layer2 ghost hover is bound until a surface-routed hover\n # channel exists.\n appearance.background@hover: color.foreground.ghost.layer2.hover\n edges:\n - node:\n uri: global.subcomponent.checkbox_input\n relation:\n cardinality: \"1\"\n - node:\n role: option label\n relation:\n cardinality: \"1\"\n - node:\n # A facet count, where the source gives one.\n role: option count\n styles:\n typography.font: typography.text.tertiary\n typography.color: color.text.muted\n relation:\n cardinality: \"0..1\"\n relation:\n cardinality: \"0..*\"\n - node:\n # When the host can spell addresses, its children are a GET form\n # and this is its Apply submit, hidden once scripts run, when each\n # choice commits as it is ticked.\n uri: global.component.button\n relation:\n cardinality: \"0..1\"\n - uri: $custom\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"1\"";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "### When to use\n\n- Beside a search or a query bar, for the few filters people use most.\n- When a filter’s values fit a short list, or a small custom control.\n\n### When not to use\n\n- For commands or navigation: use **DropdownButton** with a menu.\n- For many fields at once: use the **QueryBar**, or a form.";
|
|
11
10
|
ds:guidelines "### Accessibility\n\n- The trigger is a native button that opens a non-modal panel, a native popover. Both work \nbefore scripts run.\n- The panel follows DropdownButton’s: a non-modal dialog, `role=\"dialog\"`, named by the trigger \nthrough `aria-labelledby`, and the trigger takes `aria-haspopup=\"dialog\"`.\n- The trigger opens a panel, so it takes no `aria-pressed`. Its accessible name carries the \napplied count instead: `label` followed by `appliedLabel`, as in “Status, 2 applied”, or \n“Status, none of 2” with an Exclusion clause. FilterButton writes no words of its own: the \nhost takes `appliedLabel` from its messages. It renders as visually hidden text after the \nlabel, preceded by a comma and a space that FilterButton adds, and the Badge is \n`aria-hidden`, so the name reads “Status, 2 applied” and the visible label stays its prefix.\n- A Badge shows the count, so the applied state does not rest on colour.\n- While the filter applies, the trigger shows its clause’s Condition mark before the count, \nsuch as `≠` for an Exclusion clause, so the condition does not rest on the name alone. The \nmark is hidden from assistive technology, because `appliedLabel` already says so.\n- The panel stays open while its controls change.\n- In a checkbox list, an option’s count is part of its checkbox’s accessible name, because the \noption is a `<label>` around the checkbox, its text and its count, with a visually hidden \ncomma and space before the count: “deployed, 12”.\n\n### Without scripts\n\nThe trigger and its native popover open the panel before scripts run in every case. \nFilterButton renders no form: the panel’s content is the host’s `children`. A host that can \nspell addresses may pass a GET form with a visible Apply submit, hidden once scripts run; a \nhost that cannot, as under an in-memory query state, renders its controls inert, and they work \nonce scripts run.\n\n### States & interactionStateEntered byShown asdefaultnothing appliesButton’s tertiary face, fixed: FilterButton takes no `importance`hoverthe pointerthe tertiary hover stepopenactivationthe hover step, with the chevron turnedapplied`applied` above 0the Badge with the count; the applied fill has no symbol yetwith a condition`applied` above 0 and `condition` setthe applied state, with the Condition value’s mark before the countdisabled`disabled`Button’s disabled face\n\n- With scripts, each choice commits when it is ticked: one transition per choice. Closing the \npanel commits nothing.\n- Without scripts, where the host’s children are a GET form, its Apply submit commits.\n- Escape and an outside click close the panel; focus leaving it does not. Escape returns focus \nto the trigger, as the trigger does when it closes the panel. An outside click leaves focus \nwhere the person moved it.\n\n### Composition\n\n- FilterButton is a component around DropdownButton’s `withDropdownButton` applied to Button \nonce, at module scope. FilterButton provides its own props through a context above the \ntrigger, and the render function reads them, so its count and its panel stay dynamic.\n- Its rest props are Button’s and reach the trigger unchanged. An `onClick` composes with the \ntoggle: the consumer’s handler runs first, and `preventDefault()` cancels the toggle.\n- There is no `open` property: the open state lives in the popover. A consumer hears it change \nthrough `onToggle`, which fires for Escape, light dismiss, the trigger and `hide()` alike, and \ndrives the panel through `panelRef`.\n- There are no `triggerProps` or `panelProps` objects: the trigger takes Button’s rest props, \nand the panel takes its `id`, its `ref` (exposed as `panelRef`), `aria-labelledby` naming the \ntrigger, and `onToggle`.";
|
|
12
11
|
ds:tier ds:global_dataviews;
|
|
13
|
-
ds:documentationStage ds:tag.needstriage;
|
|
14
12
|
ds:hasProperty [
|
|
15
13
|
a ds:Property;
|
|
16
14
|
ds:name "label";
|
|
@@ -23,8 +21,8 @@ ds:global_dataviews.component.filter_button a ds:Component;
|
|
|
23
21
|
ds:summary "How many values the filter applies; 0 means none.";
|
|
24
22
|
ds:propertyType "number";
|
|
25
23
|
ds:optional "true";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
24
|
+
ds:defaultValue "0";
|
|
25
|
+
ds:constraints "an integer, 0 or more"
|
|
28
26
|
], [
|
|
29
27
|
a ds:Property;
|
|
30
28
|
ds:name "applied_label";
|
|
@@ -58,6 +56,7 @@ ds:global_dataviews.component.filter_button a ds:Component;
|
|
|
58
56
|
ds:optional "true";
|
|
59
57
|
ds:constraints "````{ show, hide, toggle }````"
|
|
60
58
|
];
|
|
59
|
+
ds:documentationStage ds:tag.needstriage;
|
|
61
60
|
ds:hasModifierFamily ds:global.modifier_family.density, ds:global.modifier_family.surface;
|
|
62
61
|
ds:inheritsFrom ds:global.component.button;
|
|
63
62
|
ds:hasTokenBinding [
|
|
@@ -6,11 +6,9 @@ ds:global_dataviews.component.query_bar a ds:Component;
|
|
|
6
6
|
ds:name "QueryBar";
|
|
7
7
|
ds:summary "A query bar narrows a collection with typed clauses and free text in one field. Each clause is a query chip: a field, an operator and a value. It places them in a **QueryInput**, whose suggestions it fills with fields, operators and values as the person types. It commits each clause to the store’s query state, and it reads the chips, the counts and the `current` marks from that state. Unlike **SearchInput**, which takes one piece of text, a query bar builds structured clauses. Unlike Landscape’s **Search Query Editor**, it needs no grammar: every clause is built from suggestions.";
|
|
8
8
|
ds:anatomyDsl "---\n# Comments removed to fit this cell. The annotated file is packages/semantics/design-system/anatomies/authored/global_dataviews/global_dataviews.component.query_bar.yaml\nnode:\n uri: global_dataviews.component.query_bar\n styles:\n layout.type: flex\n layout.wrap: wrap\n layout.align: center\n layout.container: inline-size\n spacing.gap: dimension.200\n edges:\n - node:\n uri: global_dataviews.subcomponent.query_input\n relation:\n cardinality: \"1\"\n - node:\n role: filters disclosure\n relation:\n cardinality: \"0..1\"\n - node:\n uri: global.component.button\n edges:\n - node:\n role: summary label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n role: applied words\n relation:\n cardinality: \"0..1\"\n slotName: label\n - node:\n uri: global.component.badge\n relation:\n cardinality: \"0..1\"\n slotName: label\n relation:\n cardinality: \"0..1\"\n - node:\n role: sheet\n styles:\n layout.type: flex\n layout.direction: column\n size.width: 100%\n size.height: 100%\n size.max.width: 100%\n size.max.height: 100%\n spacing.external.block.start: 0\n spacing.external.block.end: 0\n spacing.external.inline.start: 0\n spacing.external.inline.end: 0\n appearance.border.style: none\n appearance.background: [surface.color.background, color.background]\n typography.color: [surface.color.text, color.text]\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 edges:\n - node:\n role: form\n styles:\n layout.type: flex\n layout.direction: column\n layout.flex.grow: 1\n size.min.height: 0\n edges:\n - node:\n role: header\n styles:\n layout.type: flex\n layout.align: center\n layout.justify: space-between\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 appearance.border.style: solid\n appearance.border.width: 0\n appearance.border.bottom.width: dimension.stroke.thickness.medium\n appearance.border.bottom.color: color.border.muted\n edges:\n - node:\n role: title\n styles:\n typography.font: typography.text.primary\n typography.weight: typography.weight.medium\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.button\n props:\n icon: close\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: body\n styles:\n layout.type: flex\n layout.direction: column\n layout.flex.grow: 1\n layout.overflow.block: auto\n spacing.gap: dimension.200\n spacing.internal.block.start: dimension.200\n spacing.internal.block.end: dimension.200\n spacing.internal.inline.start: dimension.200\n spacing.internal.inline.end: dimension.200\n edges:\n - node:\n uri: global_dataviews.group.query_chips\n relation:\n cardinality: \"0..1\"\n - node:\n uri: global.component.button\n relation:\n cardinality: \"0..1\"\n - node:\n role: filters fields\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: footer\n styles:\n layout.type: flex\n layout.justify: end\n spacing.gap: dimension.100\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 appearance.border.style: solid\n appearance.border.width: 0\n appearance.border.top.width: dimension.stroke.thickness.medium\n appearance.border.top.color: color.border.muted\n edges:\n - node:\n uri: global.component.button\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.button\n relation:\n cardinality: \"1\"\n - node:\n role: status region\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"\n - node:\n uri: global_dataviews.component.filter_button\n relation:\n cardinality: \"0..*\"\n - node:\n uri: global.subcomponent.field-error\n styles:\n layout.flex.basis: 100%\n relation:\n cardinality: \"0..1\"\n - node:\n role: status region\n relation:\n cardinality: \"1\"";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "### When to use\n\n- An application list has several filterable fields, and people combine them with free text: \nmachines, instances, volumes, events.\n- The fields’ values are known, or the source can suggest them.\n\n### When not to use\n\n- Free text only: use **SearchInput**.\n- Two or three fields with few values: quick filters alone (**FilterButton**) are enough.\n- A form whose values are saved: use a **Form** with fields.";
|
|
11
10
|
ds:guidelines "### Accessibility\n\n- The QueryInput carries the combobox, the toolbar and the focus ring. The bar gives it its \n`label`, and its `description` states the keys the bar handles: “Left and Right to move \nbetween filters, Enter to edit, Backspace or Delete to remove”. The toolbar’s composite role \ntells screen readers in browse mode to pass the arrow keys through. The chips’ list is named \n“Applied filters”.\n- The bar moves the toolbar’s one tab stop across the chips and the entry by \ncontrolling QueryInput’s `activeItem` with `onActiveItemChange`; the roving context passes it \ndown to them. Every chip it renders in the toolbar has an `id`; the sheet’s read-only chips \nneed none.\n- Building and editing are one mechanism. Once a field is chosen from the QueryInput’s entry, \nthe bar renders a draft chip: a Segment for the field, followed by a QueryChip.Entry, which \ntakes focus. The Entry moves right as the operator and then the value are chosen. Editing a \npart swaps its Segment for an Entry, which takes focus.\n- Left and Right move between the entry and the chips; focus lands on a chip’s first Segment, \nso Enter edits the chip from there. Tab and Shift+Tab move the Entry across the parts while \nediting; Tab from the last part, or Shift+Tab from the first, commits the chip and moves \nfocus out of it in that direction. Backspace on an empty entry selects the last chip; on a \nselected chip, Enter and Space activate its focused Segment, and any other printable \ncharacter returns to the entry and starts a new chip. Backspace and Delete remove a selected \nchip; Escape leaves editing.\n- After a chip is removed, by a key, its remove control or a click, focus and the tab stop move \nto the next chip’s roving item, or to the previous chip’s when none follows, or to the entry \nwhen no chip remains.\n- When an Entry unmounts, focus and `activeItem` move to a part that remains:\n - a draft chip committed, by Enter, by Space after an enumerable value picked from the \nsuggestions, or by blur: the free-text entry, so the next clause can start; on blur, only \nthe tab stop moves;\n - a draft chip abandoned with Escape, or removed while it is being built: the free-text \nentry, and the draft chip is gone;\n - an edit committed by Enter, or left with Escape: focus moves to the Segment that takes the \nEntry’s place, and `activeItem` to the chip’s `<id>`, so the tab stop rests on its first \nSegment; Escape restores the part’s previous value;\n - an edit committed by Tab, by Shift+Tab or by blur: only the tab stop moves, to the chip’s \n`<id>`, and focus goes where the key or the pointer sent it.\n- QueryInput falls back to `entry` whenever `activeItem` names an item that no longer exists, \nor a disabled chip, which is not a roving item; the bar skips disabled chips on Left and \nRight and after a removal.\n- While the suggestions are open, the first Escape only closes them; a second Escape leaves the \ndraft or the edit.\n- The QueryInput’s clear button clears the filters and the search. After it, focus and \n`activeItem` move to the free-text entry, and the clear button is shown only while a clause \nor search text applies. The summary button’s name carries the count its Badge shows: \n“Filters, 2 applied”. The count’s words, from the bar’s messages, render as visually hidden \ntext after the label, preceded by a comma and a space, and the Badge is `aria-hidden`, so the \nvisible label stays a prefix of the name.\n- The bar fills every word the blocks it composes show from its messages: each Segment’s \n`label` and `description`, each chip’s `label` and `removeLabel`, each Entry’s `label`, \n`formatDescription` and `description`, the QueryChips `label`, the QueryInput’s `label`, \n`description`, `placeholder`, `clearLabel`, `loadingLabel`, `emptyText`, `hiddenLabel` and \n`footer`, and each quick filter’s `label` and `appliedLabel`.\n- The bar sets each operator Segment’s `condition`, and each quick filter’s `condition`, from \nits clause’s operator, following Condition’s operator-to-value table. On a clause the source \nrefused, it sets the chip’s `criticality` to `error` with no `condition` on its Segments, and \nputs the reason in the first Segment’s `description`.\n- The bar fills the QueryInput’s options for the part being typed, with facet counts and \noperator symbols as their hints: “deployed, 12 machines”. A field that a chip already holds \nis the `current` option.\n- Space commits only an enumerable value picked from the suggestions. In a typed value, for \nMatch, Range, a date or a number, a space is text, and only Enter or Tab commits.\n- A value’s format, such as a date’s, is the Entry’s `template`; a number’s display unit is \nits `suffix`. A value that does not parse is invalid; it is not refused keystroke by \nkeystroke.\n- Every outcome is announced politely: a clause added, changed or removed, with the new result \ncount; a selection; a warning. Announcements describe what is shown. They go to the bar’s \nstatus region, or, while the sheet is open and the page behind it is inert, to the status \nregion inside the sheet. Warnings are announced only there: the bar’s error row does not take \nField.Error’s `role=\"alert\"`, so no outcome is announced twice or assertively.\n- Errors and warnings stay visible while the field has focus. While the focused field wraps and \noverlays what follows it, the bar moves its field-error row below the expanded field, so the \noverlay stops before the row and never covers it.\n- A field’s presets are offered first among its value options, each with its `label`. \nChoosing one calls its `resolve` at commit, and the clause it returns becomes the chip.\n\n### Without scripts\n\nThe query belongs to the store’s query state, held in memory by default. A navigation adapter, \nsuch as one for the window location, React Router or the consumer’s own router, is opt-in; \nwhen present, it projects that state into the URL. The baseline below renders only \nwhen the configured adapter can spell addresses, by providing `href`. Under the in-memory \ndefault the server renders the controls inert, and they work once scripts run.\n\n- The search is a native search form around the QueryInput, a plain text input then, with \nhidden inputs carrying the applied filters, so a search keeps them.\n- Each applied clause is text with a Remove link to the address of the query without it. The \nQueryInput’s clear button is one Clear link, to the address of the query without its filters \nand search.\n- On wide containers, the full filters GET form sits in an inline `<details>` disclosure, \nwhose submit is Apply. It carries the search text `q` as a hidden input, so Apply keeps the \nsearch, as the sheet’s form does.\n- On narrow containers, the summary button, “Filters, 2 applied”, opens the sheet’s \n`<dialog>` through invoker commands, and the dialog holds the same form. The sheet has no \n`<details>` fallback.\n- Each quick filter’s panel is a GET form whose submit is Apply. It carries the search text `q` \nand every other applied clause as hidden inputs, so Apply changes only its own field.\n- Native buttons whose behaviour is declarative work at first paint under either default, so \nthey render from the start: the summary button, the sheet’s close button and the quick \nfilters’ popover triggers.\n- What needs scripts does not render before them: no combobox role, no toolbar role, no \nsuggestions, no chip Entry, and no Segment as a button. Each Remove link stays the same \nelement once scripts run, with its click intercepted.\n\n### States & interaction\n\nThe bar has several interacting modes, so its states are specified here.ModeEntered byLeaves toidleload; Escape; blurfield, on focus or typingfieldfocus or typingoperator, on choosing a field; search text, on Enter with free textoperatora field chosenvalue, on choosing an operator; idle, on Escape, with the draft abandoned and focus on the entryvaluean operator chosenidle with a committed chip and focus on the entry, on Enter, Space after an enumerable value picked from the suggestions, or blur; idle, on Escape, with the draft abandoned and focus on the entrychip selectedLeft from the entry’s start, or Backspace on an empty entryediting, on Enter; removal, on Delete or Backspace, with focus moving to the next chip, else the previous, else the entry; the entry, on Escape or on typing a printable character other than Space; Enter and Space activate the focused Segmenteditinga click on a Segment, or Enter on a selected chip, which swaps that Segment for an Entrychip selected, with the chip committed, focus on the restored Segment and the tab stop on the chip, on Enter; idle, with the chip committed and the tab stop on the chip, on blur out of the field, or on Tab past the last part or Shift+Tab before the first; chip selected, on Escape, with the part’s previous value, focus on its Segment and the tab stop on the chip\n\n- A choice of several values takes two Enters: the first adds the highlighted value, the second \ncommits the chip.\n- An edit that makes a chip invalid keeps the clause that applied before and says so.\n- A clause whose value is still being typed is not an error until it is committed.\n- Two clauses that cannot both hold produce a warning with a Merge action; the query still \napplies.\n- Below a narrow container width, the bar hides the chips and shows the QueryInput’s search \nentry and clear button beside a summary button that opens the sheet. The entry is then \nsearch-only: it offers no field suggestions, and clauses are added through the sheet’s “Add \nfilter”.\n- When the chips are hidden, the bar sets `activeItem` to `entry`, and moves focus to the entry \nif focus was within a chip, so the tab stop never rests on a hidden item. The container query \ncannot do this, so the bar observes the container’s size. While the chips are hidden, the bar \npasses QueryInput no `description` and no options, and the entry carries \n`aria-expanded=\"false\"` with no `aria-controls`.\n\n### The narrow form\n\nBelow a narrow container width, the bar’s summary button opens a sheet: the full-screen form \nof the query bar. It lists the applied clauses, each removable, offers “Add filter” once \nscripts run, and holds the full filters form. It keeps no state of its own: with scripts, each \nchange commits to the query state as it is made, and the results behind it update. It is part \nof the bar, not a block of its own, because no consumer composes it.\n\n#### Accessibility\n\n- The sheet is a native `<dialog>` filling the viewport, labelled by its title with \n`aria-labelledby`.\n- The summary button opens it with invoker commands, `commandfor` naming the dialog and \n`command=\"show-modal\"`, and the close button, named “Close filters”, closes it with \n`command=\"close\"`. The platform makes the rest of the page inert, moves focus into the \ndialog, and returns focus to the summary button on close. The invoker commands need no \nscripts, so the dialog opens before they run.\n- With scripts, each control commits to the query state as it changes. The footer’s primary \nbutton reads “Show N results”, where N is the live result count derived from that state; it \nis named by its visible text and only closes the dialog, with `command=\"close\"`. While no \ncount is known it reads “Show results”; N carries the count’s exactness, as in “Show 1,000+ \nresults”.\n- Clear all clears the filters only; the search stays. After it, focus moves to the first \nfilters control.\n- The applied chips are read-only: they take `onRemove` or `removeHref`, and their Segments \ntake no `onActivate`, so the Segments are plain text and each chip’s one tab stop is its \nremove control. A refused chip’s remove control is also described by the reason, so the \nrefusal is heard as well as seen. After a chip is removed, focus moves to the next chip’s \nremove control, or to the previous chip’s when none follows, or to the first filters control \nwhen no chip remains.\n- Once scripts run, “Add filter” follows the chips. It walks field, operator and value as \nfull-width lists inside the sheet, not as a popover, and commits its chip when the chip is \ncomplete. It is absent before scripts run.\n- The field and operator steps of “Add filter”, and the value step for an enumerable value, are \neach a `role=\"listbox\"` of `option`s inside the modal dialog, named by its step, such as \n“Choose a field”, with QueryInput’s option semantics: disabled and `current` options carry \n`aria-disabled`, and an option’s hint is part of its name. Up and Down move focus between \noptions without choosing; Enter or Space, or a click, chooses the focused option and advances \nto the next step; `aria-selected` marks only a chosen option. Focus moves to the first option \nof each new step, and the sheet’s status region announces each step change politely. When the \nchip commits, focus moves to the new chip’s remove control, and the region announces the \nadded clause and the new count.\n- A value step for several values takes `aria-multiselectable=\"true\"`: Space toggles an option, \nand an Add button commits the chip. A typed value, for Match, Range, a date or a number, is a \nlabelled text input with the Entry’s `formatDescription`, `aria-invalid` on a parse error, \nand an Add button; Enter commits too. Focus starts on the first option or on the input, and \nmoves to the new chip’s remove control when the chip commits.\n- Each step of “Add filter” has a Back button, which returns to the previous step, or, on the \nfirst step, leaves the walk. While the walk is open, Escape leaves it rather than closing the \nsheet: the walk handles Escape on `keydown` and prevents its default, which suppresses the \nclose request, and cancels the dialog’s `cancel` event as a backup. Leaving the walk discards \nthe incomplete chip and returns focus to “Add filter”.\n- Outside the “Add filter” walk, the sheet closes natively on Escape and the back gesture, \nwhich reach the modal dialog as its close request, and through the close button and the “Show \nN results” button. It adds no history entry, so closing it never loads an earlier query. \nNothing applied is discarded, because nothing is staged; closing during the walk discards \nonly its incomplete chip.\n- Once scripts run, the result count after each commit is announced politely, coalesced, \nthrough a visually hidden, atomic `role=\"status\"` region inside the dialog, which stays in \nthe accessibility tree while the page behind it is inert. The changing button label is not \nrelied on for it. Focus stays on the control that changed and is never moved to the button or \nthe count.\n- Every target is at least 24 by 24 px.\n\n#### Without scripts\n\nOnly when the bar’s navigation adapter can spell addresses, by providing `href`, does the \nsheet render a baseline that works before scripts run. Then one GET form wraps its header, body \nand footer, so its primary button is that form’s Apply submit, and Clear all is a link to the \naddress of the query without its filters. The form carries the search text `q` as a hidden \ninput, so Apply keeps the search. Otherwise the same element is a plain container: \nunder the default in-memory query state there is no address to spell, so the controls render \ninert and work once scripts run; the dialog itself still opens.\n\n#### States & interaction\n\nThe sheet is closed or open. It holds no state: every change commits as it is made, and \nclosing changes nothing.";
|
|
12
11
|
ds:tier ds:global_dataviews;
|
|
13
|
-
ds:documentationStage ds:tag.needstriage;
|
|
14
12
|
ds:hasProperty [
|
|
15
13
|
a ds:Property;
|
|
16
14
|
ds:name "label";
|
|
@@ -35,6 +33,7 @@ ds:global_dataviews.component.query_bar a ds:Component;
|
|
|
35
33
|
ds:defaultValue "none";
|
|
36
34
|
ds:constraints "per field name, a list of `{ label, resolve }`; `resolve` takes no argument and returns the clause’s operator and operand"
|
|
37
35
|
];
|
|
36
|
+
ds:documentationStage ds:tag.needstriage;
|
|
38
37
|
ds:hasModifierFamily ds:global.modifier_family.density, ds:global.modifier_family.surface;
|
|
39
38
|
ds:hasTokenBinding [
|
|
40
39
|
a ds:TokenBinding;
|
|
@@ -10,7 +10,6 @@ ds:global_dataviews.component.query_chip a ds:Component;
|
|
|
10
10
|
ds:usage "### When to use\n\n- One clause has parts that a person changes independently: `status · is any of · deployed, ready`.\n- The parts need different emphasis, such as an operator in its own tone.\n\n### When not to use\n\n- A single value: use **Chip**.\n- A read-only label: use **Tag**.\n- A free choice among options: use **ComboboxInput** or **SelectInput**.";
|
|
11
11
|
ds:guidelines "### Accessibility\n\n- The chip is a row of two parts: its body, which holds its children, and, beside it, an \noptional remove control. Neither the chip nor its body is a button, so no interactive content \nis ever nested inside one.\n- Once scripts run, and while the chip holds a Segment with `onActivate` or an Entry, the body \ncarries `role=\"group\"`, named by `label`: the whole clause, with each symbol spoken, such as \n“status is any of deployed, ready”, which the host takes from its messages. Such a chip \nlives only inside a roving context, such as QueryInput’s toolbar. A chip whose Segments have \nno `onActivate` and which holds no Entry is read-only: its parts are plain text, and its one \ntab stop is its remove control. Before scripts run, every part is plain text.\n- The body shows one focus ring around the clause while focus is within it, including when its \nEntry has focus. The chip is selected while focus is within its body and it holds no Entry; \nit has no `selected` property, so the selected fill never shows without focus, and the fill \nis an additional cue to the ring. Parts draw no ring of their own.\n- The ring is 3 px of `color.focusRing`, 2 px outside the body, so it is drawn against the \nsurface beneath the chip rather than the selected fill. It meets 3:1 in both modes: 4.93:1 \n(light) and 5.00:1 (dark) on `color.background`, and 4.64:1 in light mode and 5.52:1 in dark \nmode on `color.foreground.input`. An inset ring on `color.foreground.secondary.active` would \ngive 3.33:1 and 2.97:1, below 3:1 in dark mode. The body sits 8 px from the remove control, \nand a host keeps neighbouring chips and its entry 8 px apart too, so no ring draws over a \nneighbour.\n- The chip is at least 24 px tall. The remove control is a native button, or a link when \n`removeHref` is given, of at least 24 by 24 px, named by `removeLabel`, such as “Remove \nstatus is deployed”, which the host takes from its messages. It sits outside the body’s \nclipping, so its own focus ring shows whole. On a refused read-only chip it also takes \n`aria-describedby` pointing at the first Segment’s `description`, because no part there \ntakes focus.\n- Inside a roving composite, such as QueryInput’s toolbar, the chip reads the composite’s \nroving context: the id of the item that holds the tab stop, and a setter. The chip is one \ntoolbar item: its first Segment, registered as `<id>`, or its Entry while it holds one, \nregistered as `<id>:entry`, so the chip’s `id` is required there. That item takes \n`tabindex=\"0\"` while it holds the stop and is focused when the context moves the stop onto \nit. The chip’s other Segment buttons always take `tabindex=\"-1\"`: their keyboard path is \nEnter on the chip, which swaps its first Segment, the field, for an Entry, then Tab, and they \nstay reachable by pointer. The remove control takes `tabindex=\"-1\"` there: it stays reachable \nby pointer, and Delete or Backspace on the selected chip is its keyboard path. A read-only \nchip has no interactive parts, so its remove control is its roving item, as `<id>:remove`, \nand takes `tabindex=\"0\"` while it holds the stop. Outside a roving context the chip is \nread-only, and its remove control is in the tab order. A disabled chip is not a roving item: \nthe host skips it on Left and Right and after a removal, and QueryInput falls back to `entry` \nwhen `activeItem` names a disabled item. Inside a roving context, a chip is interactive or \nhas `onRemove` or `removeHref`; otherwise it has no roving item, and the host skips it as it \nskips a disabled chip.\n- An invalid part carries its state in its accessible description: its `description`, such as \n“Invalid: ”, through `aria-describedby`. While a part is invalid, the chip’s first \nSegment is also described by that `description`, because focus lands there first while the \nchip holds no Entry. A refused chip’s reason is the `description` of its first Segment, which \nshows the glyph and takes focus when focus moves onto the chip.\n- The chip sets the selected fill through a data attribute, never `aria-selected`, which \nneither a button nor a group supports. Selection reaches assistive technology through focus.\n\n### Without scripts\n\nBefore scripts run, every part is plain text, and an Entry is not rendered. The remove control \nis a link to `removeHref` only when the host can spell addresses and passes one; otherwise, as \nunder an in-memory query state, the server renders the control inert, and it works once \nscripts run.\n\n### States & interaction\n\nThe chip has several interacting modes, so its states are specified here.StateEntered byShown asdefaultSegment fills from `color.foreground.secondary`hoverthe pointer over a Segment buttonthat Segment’s hover step; a plain-text Segment shows noneselectedfocus within the body while it holds no Entryevery Segment takes the active step, with the focus ringinvalida part with `invalid`a Segment takes the error fill and text, and the error glyph, which is Criticality Error’s own; an Entry shows the error underlinerefused`criticality` is `error`every Segment takes the error tone through the modifier channels, the first Segment shows Error’s glyph, and its `description` gives the reasondisabled`disabled`disabled fills and text; it takes no focus\n\n- The initial state is default. An Entry draws its own look, so the chip has no editing state.\n- The table describes the default `unity`, `separated`. When it is `joined`, hover and invalid \nshow on every part at once, because the chip is one target; selected shows on every part \nunder both values.\n- Every transition is the host’s. A Segment calls its `onActivate` when its button is \nactivated, by a click, Enter or Space, and the remove control calls `onRemove`.\n- The host owns the arrow keys, Tab and Delete, and moves the roving tab stop across chips and \nthe entry through its roving context. Moving onto a chip lands on its roving item: its first \nSegment, its Entry while it holds one, or a read-only chip’s remove control.\n- When a chip is removed, the host moves focus and the tab stop to the next chip’s roving item, \nor to the previous chip’s when none follows, or to its entry when no chip remains.\n- Invalid and refused differ. Invalid is a part at fault, bound to that part’s `@invalid` \nstate, which wins over any tone the channels give. Refused is a clause the source refused as \na whole: the host sets the chip’s `criticality` to `error` and sets no `condition` on its \nSegments, so the channels give every Segment the error tone. Hover and selected bind the \nplain steps, which replace a channel’s tone, so a hovered or selected Segment of a refused \nchip loses its error fill; the glyph remains the refused cue.\n- Every Criticality value tints the chip through the modifier channels, as the family requires \nof a consumer; only `error` carries behaviour: it marks the clause refused, puts Error’s glyph \non the first Segment, and links the reason from that Segment’s `description`.\n\n### Composition\n\nBuilding a clause and editing one are the same mechanism, which the host composes.\n\n- Once a field is chosen, the host renders a draft chip: a Segment for the field, followed by \nan Entry. The Entry moves right as the operator and then the value are chosen, each settled \npart becoming a Segment.\n- Editing a part swaps its Segment for an Entry, and committing swaps it back.\n- A chip holds at most one Entry. QueryInput gives that Entry its suggestions through its \ncontext.\n\n### Unity\n\n`unity` says how the parts hold together, and its values are named for what each is for, not \nfor how it looks.\n\n- `separated`, the default, is for a clause whose parts people change one at a time, as in a \nquery being built. Each Segment carries its own fill and is its own hover and error target; \nselection is the chip’s. The body sets a 2 px gap, `dimension.025`, and paints nothing, so \nthe surface beneath the chip shows through between parts.\n- `joined` is for a clause people mostly read as a whole, as in the applied criteria of a saved \nview shown in summary. The chip is one hover and error target: it sets an invalid data \nattribute while any of its Segments or its Entry has `invalid`, which drives the body’s and \nevery Segment’s `@invalid`. The body’s fill is the line colour, and it sets a 1 px gap, \n`dimension.stroke.thickness.medium`, so a line shows between parts; each Segment’s padding \ngives 6 px on each side of the line.\n\n`unity` changes neither the elements nor the keyboard model: under both, a Segment is a button \nonly once scripts run and it has `onActivate`.\n\n- A flat form, with square corners and plain text, is not a value: it differs from `separated` \nonly in how it looks, so it is `separated` with its component tokens remapped by a theme or \nan application.\n- `unity` is a property, not a modifier family, so it does not cascade. The modifier families a \nquery chip reads carry the clause’s meaning only.Slot`separatedjoined`Body background`transparent`the line colour; no symbol declares it, #c5c5c5 in the reference designBody gap`dimension.025dimension.stroke.thickness.medium`Body bordernone`dimension.stroke.thickness.medium`, in the line colourBody radius`dimension.radius.full`, clipping the part ends`dimension.radius.full`, clipping the part endsBody minimum height`dimension.300`26 px, which no symbol declaresSegment background`color.foreground.secondary`, with its hover, active, disabled and error stepsthe same; hover, selected and invalid show on every part at onceSegment text`color.text.onForegroundSecondarycolor.text.onForegroundSecondary`Segment inline padding6 px, which no symbol declares6 pxOperator tone, from **Condition**the Segment’s fill and textthe same";
|
|
12
12
|
ds:tier ds:global_dataviews;
|
|
13
|
-
ds:documentationStage ds:tag.needstriage;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "children";
|
|
@@ -72,8 +71,9 @@ ds:global_dataviews.component.query_chip a ds:Component;
|
|
|
72
71
|
ds:optional "true";
|
|
73
72
|
ds:constraints "required with `on_remove` or `remove_href`"
|
|
74
73
|
];
|
|
74
|
+
ds:documentationStage ds:tag.needstriage;
|
|
75
75
|
ds:hasSubcomponent ds:global_dataviews.subcomponent.query_chip-segment, ds:global_dataviews.subcomponent.query_chip-entry;
|
|
76
|
-
ds:hasModifierFamily ds:global.modifier_family.
|
|
76
|
+
ds:hasModifierFamily ds:global.modifier_family.severity;
|
|
77
77
|
ds:hasTokenBinding [
|
|
78
78
|
a ds:TokenBinding;
|
|
79
79
|
ds:viaBlock ds:global_dataviews.component.query_chip;
|
|
@@ -6,11 +6,9 @@ ds:global_dataviews.group.query_chips a ds:Group;
|
|
|
6
6
|
ds:name "QueryChips";
|
|
7
7
|
ds:summary "QueryChips is the set of clauses that narrow a collection, each shown as one query chip. It lays the chips out in a wrapping row and gives the set one accessible name. It serves the filters and search of a query bar, the conditions of a saved view and the matchers of a rule. It holds query chips and nothing else.";
|
|
8
8
|
ds:anatomyDsl "---\n# TODO implementation: no reference in @canonical/react-ds-global or react-ds-global-form\n# A Group is a set of sibling blocks whose collection carries its own identity. This one\n# holds query chips and nothing else: a query bar's entry and its other controls are\n# siblings of the group, not members.\nnode:\n uri: global_dataviews.group.query_chips\n styles:\n layout.type: flex\n layout.wrap: wrap\n layout.align: center\n # A <ul role=\"list\">: the explicit role keeps the list's semantics where a list\n # without bullets would lose them.\n layout.listStyle: none\n # 8 px between chips, so a focused chip's ring, which reaches 5 px past it, never draws\n # over its neighbour.\n spacing.gap: dimension.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 spacing.external.block.start: 0\n spacing.external.block.end: 0\n edges:\n - node:\n uri: global_dataviews.component.query_chip\n relation:\n cardinality: \"1..*\"\n slotName: default";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "### When to use\n\n- Several clauses apply together, and each must stay readable and editable on its own.\n\n### When not to use\n\n- One clause only, read-only: use **Tag**.\n- Dismissible values picked from one set, such as the values of a multi-select: use \n**ComboboxInput**’s selected values or **Chip**.\n- Applied filters that are only summarised and removed, never edited: **Chip** with a dismiss \ncontrol is enough.";
|
|
11
10
|
ds:guidelines "### Accessibility\n\n- The group is a list: a `<ul role=\"list\">` with one `<li>` per chip. The explicit role keeps \nthe list’s semantics in browsers that drop them from a list without bullets.\n- Exactly one of `label` and `aria-labelledby` names the list.\n- The container that hosts the group decides the keyboard model and carries its composite role. \nA QueryInput makes its chips and its entry one roving tab stop inside a toolbar. The group \nitself handles no keys.\n- The gap between chips is not a target; nothing is inserted between chips.\n\n### Layout\n\n- Chips wrap. A host that must hold one line clips and fades the overflow, and says how many \nchips are hidden.";
|
|
12
11
|
ds:tier ds:global_dataviews;
|
|
13
|
-
ds:documentationStage ds:tag.needstriage;
|
|
14
12
|
ds:hasProperty [
|
|
15
13
|
a ds:Property;
|
|
16
14
|
ds:name "label";
|
|
@@ -26,6 +24,7 @@ ds:global_dataviews.group.query_chips a ds:Group;
|
|
|
26
24
|
ds:optional "false";
|
|
27
25
|
ds:constraints "one or more query chips"
|
|
28
26
|
];
|
|
27
|
+
ds:documentationStage ds:tag.needstriage;
|
|
29
28
|
ds:hasTokenBinding [
|
|
30
29
|
a ds:TokenBinding;
|
|
31
30
|
ds:viaBlock ds:global_dataviews.group.query_chips;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:global_dataviews.modifier.exclusion a ds:
|
|
5
|
+
ds:global_dataviews.modifier.exclusion a ds:SemanticModifier;
|
|
6
6
|
ds:name "Exclusion";
|
|
7
7
|
ds:summary "The test is negated: the record's value is none of the given values, differs from the given value, does not hold the given text, or is absent.";
|
|
8
8
|
ds:modifierFamily ds:global_dataviews.modifier_family.condition.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:global_dataviews.modifier.inclusion a ds:
|
|
5
|
+
ds:global_dataviews.modifier.inclusion a ds:SemanticModifier;
|
|
6
6
|
ds:name "Inclusion";
|
|
7
7
|
ds:summary "The record's value is one of the given values.";
|
|
8
8
|
ds:modifierFamily ds:global_dataviews.modifier_family.condition.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:global_dataviews.modifier.match a ds:
|
|
5
|
+
ds:global_dataviews.modifier.match a ds:SemanticModifier;
|
|
6
6
|
ds:name "Match";
|
|
7
7
|
ds:summary "The record's value holds the given text.";
|
|
8
8
|
ds:modifierFamily ds:global_dataviews.modifier_family.condition.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:global_dataviews.modifier.presence a ds:
|
|
5
|
+
ds:global_dataviews.modifier.presence a ds:SemanticModifier;
|
|
6
6
|
ds:name "Presence";
|
|
7
7
|
ds:summary "The record holds a value for the field.";
|
|
8
8
|
ds:modifierFamily ds:global_dataviews.modifier_family.condition.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:global_dataviews.modifier.range a ds:
|
|
5
|
+
ds:global_dataviews.modifier.range a ds:SemanticModifier;
|
|
6
6
|
ds:name "Range";
|
|
7
7
|
ds:summary "The record's value lies at or beyond one bound, or between two.";
|
|
8
8
|
ds:modifierFamily ds:global_dataviews.modifier_family.condition.
|
|
@@ -6,4 +6,5 @@ ds:global_dataviews.modifier_family.condition a ds:ModifierFamily;
|
|
|
6
6
|
ds:name "Condition";
|
|
7
7
|
ds:summary "Condition names what a clause's operator asserts about a record: that the record's value is one of the given values, is not, holds the given text, lies within a range, or is present. A component that shows or summarises a clause takes the value its clause asserts, and the tokens give each value its treatment, so the treatment can change without changing what the clause means.";
|
|
8
8
|
ds:tier ds:global_dataviews;
|
|
9
|
+
ds:modifierType ds:SemanticModifier;
|
|
9
10
|
ds:hasModifier ds:global_dataviews.modifier.inclusion, ds:global_dataviews.modifier.exclusion, ds:global_dataviews.modifier.match, ds:global_dataviews.modifier.range, ds:global_dataviews.modifier.presence.
|
|
@@ -6,11 +6,9 @@ ds:global_dataviews.subcomponent.query_chip-entry a ds:Subcomponent;
|
|
|
6
6
|
ds:name "QueryChip.Entry";
|
|
7
7
|
ds:summary "The part of a query chip being typed or edited: a text input inside the chip, where its field, operator or value is chosen. A chip holds at most one. When a part is settled, the host replaces the Entry with a Segment, or moves it to the next part.";
|
|
8
8
|
ds:anatomyDsl "---\n# TODO implementation: no reference in @canonical/react-ds-global or react-ds-global-form\n# The part being typed: a native <input>, never a <textarea>, which admits no combobox\n# role. It renders only once scripts run, takes role=\"combobox\", and reads QueryInput's\n# suggestions through QueryInput's context. It has its own look, an input fill with an\n# underline, so the chip needs no editing state. The chip's body draws the focus ring\n# around the clause.\nnode:\n uri: global_dataviews.subcomponent.query_chip-entry\n styles:\n layout.type: inline-flex\n layout.align: center\n layout.position: relative\n size.min.width: 4ch\n size.min.height: dimension.300\n spacing.internal.inline.start: 0.375rem\n spacing.internal.inline.end: 0.375rem\n appearance.background: [surface.color.foreground.input, color.foreground.input]\n # @disabled is drawn from the chip's data attribute while the chip is disabled.\n appearance.background@disabled: color.foreground.input.disabled\n appearance.border.style: solid\n appearance.border.width: 0\n appearance.border.bottom.width: dimension.stroke.thickness.medium\n appearance.border.bottom.color: color.border.highlighted\n appearance.border.bottom.color@invalid: color.border.error\n typography.font: typography.text.secondary\n typography.color: color.text\n typography.color@disabled: color.text.disabled\n edges:\n - node:\n # The remaining props reach it.\n role: entry input\n styles:\n layout.flex.grow: 1\n size.min.width: 1ch\n appearance.native: none\n appearance.border.style: none\n appearance.background: transparent\n appearance.outline.style: none\n typography.font: typography.text.secondary\n typography.color: inherit\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 edges:\n - node:\n # Drawn as ::placeholder.\n role: placeholder\n styles:\n typography.color: color.text.muted\n relation:\n cardinality: \"0..1\"\n relation:\n cardinality: \"1\"\n - node:\n # An aria-hidden template behind the typed text: YYYY-MM-DD, or a range. The muted\n # text symbol keeps the untyped part above 4.5:1.\n role: format template\n styles:\n layout.position: absolute\n interaction.pointerEvents: none\n typography.whiteSpace: pre\n typography.color: color.text.muted\n relation:\n cardinality: \"0..1\"\n - node:\n # Text after the typed text, such as a unit (\"GiB\"), from `suffix`.\n role: suffix\n styles:\n typography.color: color.text.muted\n relation:\n cardinality: \"0..1\"\n - node:\n # The `formatDescription`, as a `hidden` element with an id, which the input's\n # aria-describedby points at first and still resolves.\n role: format description\n relation:\n cardinality: \"0..1\"\n - node:\n # The `description` while invalid, as a `hidden` element with an id, which the input's\n # aria-describedby points at after the format description.\n role: description\n relation:\n cardinality: \"0..1\"";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
9
|
ds:usage "### When to use\n\n- Inside a QueryChip, for the one part being typed: the next part of a draft chip, or the part \nbeing edited.\n\n### When not to use\n\n- For a settled part: use **QueryChip.Segment**.\n- For free text, or the field of a new clause: that is **QueryInput**’s own entry.\n- On its own: use **TextInput** or **ComboboxInput**.";
|
|
11
10
|
ds:guidelines "### Accessibility\n\n- The Entry is a native `<input>`, never a `<textarea>`, which admits no combobox role. A long \nvalue scrolls inside the input rather than wrapping.\n- It renders only once scripts run. It takes `role=\"combobox\"` and is named by `label`, such as \n“Value for status”. It reads QueryInput’s suggestions through QueryInput’s context, and while \nit has focus it carries `aria-controls`, `aria-expanded` and `aria-activedescendant` for \nQueryInput’s listbox. It keeps focus while an option is highlighted.\n- Inside a roving composite, the Entry is its chip’s toolbar item while it is present, as \n`<id>:entry`, and takes `tabindex=\"0\"` only while it holds the tab stop.\n- Its accessible description is always its `formatDescription`, when given, followed while \ninvalid by its `description`, and, while QueryInput’s suggestions are open and carry a \n`footer`, by that footer, which QueryInput supplies through its context. While invalid it \nalso carries `aria-invalid`.\n- A format template is hidden from assistive technology; `formatDescription` says the format \nin words.\n- Typing is never blocked by key filtering, so paste, dictation and input methods work. The \nhost parses what was typed.\n\n### States & interaction\n\nThe Entry is default, focused, invalid, or disabled when its chip is disabled. It has its own \nlook, an input fill with an underline, so the chip shows no editing state. While invalid it \nshows the error underline; it takes no error fill and no glyph. Keys the combobox does not \nhandle reach the host, which owns moving between parts and chips. Blur ends an edit only when \nfocus leaves QueryInput’s root, a `focusout` whose `relatedTarget` is outside it.";
|
|
12
11
|
ds:tier ds:global_dataviews;
|
|
13
|
-
ds:documentationStage ds:tag.needstriage;
|
|
14
12
|
ds:hasProperty [
|
|
15
13
|
a ds:Property;
|
|
16
14
|
ds:name "value";
|
|
@@ -70,6 +68,7 @@ ds:global_dataviews.subcomponent.query_chip-entry a ds:Subcomponent;
|
|
|
70
68
|
ds:optional "true";
|
|
71
69
|
ds:constraints "```required with `is_invalid````"
|
|
72
70
|
];
|
|
71
|
+
ds:documentationStage ds:tag.needstriage;
|
|
73
72
|
ds:parentComponent ds:global_dataviews.component.query_chip;
|
|
74
73
|
ds:hasTokenBinding [
|
|
75
74
|
a ds:TokenBinding;
|