@canonical/design-system 0.46.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/apps/component/file_tree.ttl +1 -2
- package/data/apps/component/inline_panel.ttl +2 -3
- package/data/apps/component/log.ttl +0 -1
- package/data/apps/component/navigation.ttl +0 -1
- package/data/apps/component/notification.ttl +0 -1
- package/data/apps/component/side_navigation.ttl +678 -5
- package/data/apps/component/skeleton_loading.ttl +0 -1
- package/data/apps/component/status_bar.ttl +0 -1
- package/data/apps/component/toolbar.ttl +0 -1
- package/data/apps/group/notifications.ttl +0 -1
- package/data/apps/layout/application_layout.ttl +1 -2
- package/data/apps/layout/content_layout.ttl +1 -2
- package/data/apps/layout/empty_layout.ttl +0 -1
- package/data/apps/layout/list_page_layout.ttl +0 -1
- package/data/apps/layout/login_layout.ttl +0 -1
- package/data/apps/layout/settings_page_layout.ttl +0 -1
- package/data/apps/layout/side_panel_form_layout.ttl +0 -1
- package/data/apps/layout/view_layout.ttl +0 -1
- package/data/apps/pattern/action_bar.ttl +0 -1
- package/data/apps/pattern/code_diff.ttl +2 -2
- package/data/apps/pattern/data_views.ttl +85 -0
- package/data/apps/pattern/datatable.ttl +8 -78
- package/data/apps/pattern/destructive_modal.ttl +0 -1
- package/data/apps/pattern/drawer.ttl +0 -1
- package/data/apps/pattern/keyboard_shortcuts.ttl +0 -1
- package/data/apps/pattern/notification_center.ttl +4 -5
- package/data/apps/pattern/page_header.ttl +58 -6
- package/data/apps/pattern/side_panel.ttl +221 -45
- package/data/apps/pattern/sidepanel_stacked.ttl +0 -1
- package/data/apps/subcomponent/data_table-action_bar.ttl +3 -3
- package/data/apps/subcomponent/data_table-body_cell.ttl +19 -19
- package/data/apps/subcomponent/data_table-group_header_row.ttl +1 -1
- package/data/apps/subcomponent/data_table-header_cell.ttl +11 -11
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +9 -9
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +2 -2
- package/data/apps/subcomponent/data_table-settings_menu.ttl +3 -3
- package/data/apps/subcomponent/data_views-filters.ttl +12 -0
- package/data/apps/subcomponent/data_views-saved_views.ttl +12 -0
- package/data/apps/subcomponent/data_views-sort_panel.ttl +12 -0
- package/data/apps/subcomponent/drawer-content.ttl +0 -1
- package/data/apps/subcomponent/drawer-footer.ttl +0 -1
- package/data/apps/subcomponent/drawer-header.ttl +0 -1
- package/data/apps/subcomponent/file_tree-node.ttl +0 -1
- package/data/apps/subcomponent/file_tree-search_box.ttl +13 -0
- package/data/apps/subcomponent/file_tree-tree_view.ttl +13 -0
- package/data/apps/subcomponent/git_diff_viewer-code_diff_viewer.ttl +13 -0
- package/data/apps/subcomponent/git_diff_viewer-file_header.ttl +13 -0
- package/data/apps/subcomponent/side_navigation-content.ttl +339 -3
- package/data/apps/subcomponent/side_navigation-context_switcher-field.ttl +18 -0
- package/data/apps/subcomponent/side_navigation-context_switcher-item_content.ttl +18 -0
- package/data/apps/subcomponent/side_navigation-context_switcher.ttl +172 -2
- package/data/apps/subcomponent/side_navigation-footer.ttl +270 -0
- package/data/apps/subcomponent/side_navigation-header.ttl +262 -0
- package/data/apps/subcomponent/side_navigation-item.ttl +115 -2
- package/data/apps/subcomponent/side_navigation-item_group.ttl +224 -2
- package/data/apps/subcomponent/side_panel-footer.ttl +39 -7
- package/data/apps/subcomponent/side_panel-header.ttl +86 -110
- package/data/apps_anbox/pattern/side_menu.ttl +5 -6
- package/data/apps_debcrafters/component/deb_package_card.ttl +0 -1
- package/data/apps_debcrafters/component/example.ttl +0 -1
- package/data/apps_debcrafters/component/my_fancy_component.ttl +0 -1
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +0 -1
- package/data/apps_landscape/component/checkbox_group.ttl +26 -26
- package/data/apps_landscape/component/code_editor.ttl +32 -32
- package/data/apps_landscape/component/cron_schedule.ttl +2 -2
- package/data/apps_landscape/component/expandable_radio_group.ttl +18 -18
- package/data/apps_landscape/component/expandable_truncation.ttl +11 -11
- package/data/apps_landscape/component/form_section.ttl +2 -2
- package/data/apps_landscape/component/gpg_key_field.ttl +21 -21
- package/data/apps_landscape/component/grouped_select.ttl +23 -23
- package/data/apps_landscape/component/loading_state.ttl +6 -6
- package/data/apps_landscape/component/managed_file_input.ttl +13 -13
- package/data/apps_landscape/component/multi_select_field.ttl +44 -44
- package/data/apps_landscape/component/password_constraints.ttl +2 -2
- package/data/apps_landscape/component/progress_bar.ttl +15 -15
- package/data/apps_landscape/component/read_only_field.ttl +10 -10
- package/data/apps_landscape/component/search_help_popup.ttl +10 -10
- package/data/apps_landscape/component/search_query_editor.ttl +29 -29
- package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
- package/data/apps_landscape/pattern/content_blocks.ttl +16 -16
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +26 -26
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +2 -2
- package/data/apps_landscape/pattern/form_field_help.ttl +12 -12
- package/data/apps_landscape/pattern/header_search_controls.ttl +26 -26
- package/data/apps_landscape/pattern/ignorable_notification.ttl +10 -10
- package/data/apps_landscape/pattern/information_grid.ttl +13 -13
- package/data/apps_landscape/pattern/instance_association.ttl +5 -5
- package/data/apps_landscape/pattern/process_flow.ttl +9 -9
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +29 -29
- package/data/apps_landscape/pattern/recurring_schedule.ttl +4 -4
- package/data/apps_landscape/pattern/responsive_action_group.ttl +11 -11
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +9 -9
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +30 -30
- package/data/apps_landscape/pattern/sortable_list.ttl +11 -11
- package/data/apps_landscape/pattern/table_filter.ttl +40 -40
- package/data/apps_landscape/pattern/table_filter_chips.ttl +44 -44
- package/data/apps_landscape/pattern/table_pagination.ttl +48 -48
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +18 -18
- package/data/apps_landscape/subcomponent/bold_substring.ttl +6 -6
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +7 -7
- package/data/apps_landscape/subcomponent/label_with_description.ttl +10 -10
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +9 -9
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +14 -14
- package/data/apps_launchpad/component/accordion.ttl +0 -1
- package/data/apps_launchpad/component/avatar.ttl +2 -2
- package/data/apps_launchpad/component/badge.ttl +2 -2
- package/data/apps_launchpad/component/button.ttl +2 -2
- package/data/apps_launchpad/component/combobox.ttl +2 -2
- package/data/apps_launchpad/component/description_list.ttl +1 -1
- package/data/apps_launchpad/component/drawer.ttl +0 -1
- package/data/apps_launchpad/component/link.ttl +0 -1
- package/data/apps_launchpad/component/markdown_editor.ttl +0 -1
- package/data/apps_launchpad/component/modal.ttl +5 -5
- package/data/apps_launchpad/component/pagination.ttl +0 -1
- package/data/apps_launchpad/component/popover.ttl +0 -1
- package/data/apps_launchpad/component/relative_timestamp.ttl +0 -1
- package/data/apps_launchpad/component/spinner.ttl +0 -1
- package/data/apps_launchpad/component/table.ttl +0 -1
- package/data/apps_launchpad/component/text_input.ttl +1 -1
- package/data/apps_launchpad/component/timestamp.ttl +0 -1
- package/data/apps_launchpad/component/tooltip.ttl +2 -2
- package/data/apps_launchpad/subcomponent/modal-content-body.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-header.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content.ttl +0 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/output_field.ttl +7 -7
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +1 -1
- package/data/apps_lxd/view/network_topology.ttl +6 -6
- package/data/apps_portal/component/badge.ttl +0 -1
- package/data/apps_portal/component/credit_card_input.ttl +0 -1
- package/data/apps_portal/component/key_value_pair.ttl +0 -1
- package/data/apps_portal/pattern/purchase_summary.ttl +0 -1
- package/data/apps_portal/subcomponent/read_only_modal.ttl +0 -1
- package/data/apps_support/component/data_spotlight.ttl +0 -1
- package/data/apps_support/subcomponent/ai_prompt_input.ttl +0 -1
- package/data/{apps_workplaceengineering → apps_workplace}/component/complex_multi_select.ttl +3 -4
- package/data/{apps_workplaceengineering → apps_workplace}/component/label-highlight.ttl +5 -5
- package/data/{apps_workplaceengineering → apps_workplace}/component/org_chart.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/rule.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/skip_link.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/theme_switcher.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/callout_numbers_card.ttl +3 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/confirmation_modal.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/org_event_card.ttl +2 -3
- package/data/{apps_workplaceengineering → apps_workplace}/subcomponent/multi_select_input.ttl +2 -3
- package/data/{apps_workplaceengineering.ttl → apps_workplace.ttl} +2 -2
- package/data/concept/Accessibility.ttl +9 -0
- package/data/concept/Breakpoints.ttl +9 -0
- package/data/concept/Design-tokens-Overview.ttl +10 -0
- package/data/concept/Filtering-patterns.ttl +0 -1
- package/data/concept/Foundations-Baseline.ttl +0 -1
- package/data/concept/Foundations-Color.ttl +10 -0
- package/data/concept/Foundations-Density--the-form-channel.ttl +0 -1
- package/data/concept/Foundations-Grid--Layout.ttl +1 -2
- package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +0 -1
- package/data/concept/Foundations-Spacing.ttl +0 -1
- package/data/concept/Foundations-Surfaces.ttl +0 -1
- package/data/concept/Foundations-Typography.ttl +1 -2
- package/data/concept/How-to-choose-between-question-mark-and-information-icon.ttl +10 -0
- package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +0 -1
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +0 -1
- package/data/concept/How-to-support-modifiers-in-a-component.ttl +0 -1
- package/data/concept/Intentional-friction.ttl +0 -1
- package/data/concept/Overflow.ttl +0 -1
- package/data/concept/Understanding-the-modifier-contract.ttl +0 -1
- package/data/documentation/layout/content_page_layout.ttl +0 -1
- package/data/documentation/layout/documentation_layout.ttl +0 -1
- package/data/documentation/layout/library_layout.ttl +0 -1
- package/data/documentation/layout/search_page_layout.ttl +0 -1
- package/data/documentation/pattern/library_side_navigation.ttl +2 -2
- package/data/global/component/accordion.ttl +15 -15
- package/data/global/component/announcement.ttl +3 -2
- package/data/global/component/avatar.ttl +1 -2
- package/data/global/component/badge.ttl +10 -10
- package/data/global/component/breadcrumbs.ttl +10 -10
- package/data/global/component/button.ttl +14 -14
- package/data/global/component/button_link.ttl +1 -2
- package/data/global/component/card.ttl +3 -7
- package/data/global/component/checkbox_field.ttl +0 -1
- package/data/global/component/chip.ttl +15 -14
- package/data/global/component/choices_field.ttl +0 -1
- package/data/global/component/code_snippet-content.ttl +0 -1
- package/data/global/component/code_snippet-header.ttl +0 -1
- package/data/global/component/code_snippet.ttl +1 -1
- package/data/global/component/color_field.ttl +0 -1
- package/data/global/component/combobox_field.ttl +0 -1
- package/data/global/component/contextual_menu.ttl +10 -9
- package/data/global/component/data_tooltip.ttl +49 -55
- package/data/global/component/date_field.ttl +0 -1
- package/data/global/component/date_time_field.ttl +0 -1
- package/data/global/component/drag_and_drop_list.ttl +0 -1
- package/data/global/component/dropdown_button.ttl +1 -1
- package/data/global/component/file_upload_field.ttl +509 -60
- package/data/global/component/heading.ttl +1 -1
- package/data/global/component/hidden_field.ttl +0 -1
- package/data/global/component/icon.ttl +4 -4
- package/data/global/component/icon_button.ttl +141 -6
- package/data/global/component/icon_in_container.ttl +2 -3
- package/data/{apps → global}/component/key_value_pair.ttl +2 -3
- package/data/global/component/keyboard_key.ttl +0 -1
- package/data/global/component/link.ttl +0 -1
- package/data/global/component/links.ttl +0 -1
- package/data/global/component/{markdown_field.ttl → markdown_editor_field.ttl} +3 -4
- package/data/global/component/mode_switcher.ttl +1 -2
- package/data/global/component/month_field.ttl +0 -1
- package/data/global/component/notification_inline.ttl +0 -1
- package/data/global/component/notification_toast.ttl +0 -1
- package/data/global/component/number_field.ttl +1 -2
- package/data/global/component/pagination.ttl +0 -1
- package/data/global/component/password_field.ttl +0 -1
- package/data/global/component/phone_field.ttl +0 -1
- package/data/global/component/popover.ttl +0 -1
- package/data/global/component/range_field.ttl +0 -80
- package/data/global/component/rating_field.ttl +0 -1
- package/data/global/component/relative_timestamp.ttl +0 -1
- package/data/global/component/rich_choices_field.ttl +0 -1
- package/data/global/component/rich_text_editor.ttl +0 -1
- package/data/global/component/rich_text_field.ttl +0 -1
- package/data/global/component/search_field.ttl +0 -1
- package/data/global/component/segmented_control.ttl +0 -1
- package/data/global/component/segmented_control_field.ttl +0 -1
- package/data/global/component/select_field.ttl +0 -1
- package/data/global/component/switch_field.ttl +0 -1
- package/data/global/component/table.ttl +2 -2
- package/data/global/component/tag.ttl +2 -2
- package/data/global/component/text_field.ttl +0 -1
- package/data/global/component/textarea_field.ttl +0 -1
- package/data/global/component/tile.ttl +8 -8
- package/data/global/component/time_field.ttl +0 -1
- package/data/global/component/timestamp.ttl +0 -1
- package/data/global/component/tooltip.ttl +76 -208
- package/data/global/component/wrapper_tooltip.ttl +188 -0
- package/data/global/group/buttons.ttl +0 -1
- package/data/global/group/cards.ttl +1 -2
- package/data/global/group/code_snippets.ttl +0 -1
- package/data/{apps → global}/group/key_value_pairs.ttl +2 -3
- package/data/global/group/keyboard_keys.ttl +0 -1
- package/data/global/group/tiles.ttl +0 -1
- package/data/global/layout/error_layout.ttl +0 -1
- package/data/global/layout/identity_page_form.ttl +0 -1
- package/data/global/modifier/achromat.ttl +8 -0
- package/data/global/modifier/constructive.ttl +1 -1
- package/data/global/modifier/dark.ttl +1 -1
- package/data/global/modifier/deprecated.ttl +8 -0
- package/data/global/modifier/{focused.ttl → deutan.ttl} +3 -3
- package/data/global/modifier/elevated.ttl +1 -1
- package/data/global/modifier/end_of_life.ttl +8 -0
- package/data/global/modifier/{muted.ttl → less.ttl} +3 -3
- package/data/global/modifier/light.ttl +1 -1
- package/data/global/modifier/{loading.ttl → lts.ttl} +3 -3
- package/data/global/modifier/modal.ttl +1 -1
- package/data/global/modifier/{editable.ttl → more.ttl} +3 -3
- package/data/global/modifier/protan.ttl +8 -0
- package/data/global/modifier/standard.ttl +8 -0
- package/data/global/modifier/tritan.ttl +8 -0
- package/data/global/modifier/typical.ttl +8 -0
- package/data/global/modifier_family/_emphasis.ttl +1 -2
- package/data/global/modifier_family/_other.ttl +1 -2
- package/data/global/modifier_family/{mode.ttl → color.ttl} +2 -2
- package/data/global/modifier_family/color_vision.ttl +9 -0
- package/data/global/modifier_family/contrast.ttl +9 -0
- package/data/global/modifier_family/elevation.ttl +9 -0
- package/data/global/modifier_family/support.ttl +9 -0
- package/data/global/modifier_family/surface.ttl +1 -1
- package/data/global/pattern/description_list.ttl +1 -2
- package/data/global/pattern/field.ttl +0 -1
- package/data/global/pattern/filter.ttl +0 -1
- package/data/global/pattern/form_login.ttl +0 -1
- package/data/global/pattern/info_table.ttl +0 -1
- package/data/global/pattern/modal.ttl +198 -142
- package/data/global/pattern/stepper.ttl +0 -1
- package/data/global/pattern/table_of_contents.ttl +0 -1
- package/data/global/pattern/timeline.ttl +22 -22
- package/data/global/pattern/{navigation.ttl → top_navigation.ttl} +2 -3
- package/data/global/subcomponent/accordion-item.ttl +1 -2
- package/data/global/subcomponent/breadcrumbs-item.ttl +0 -1
- package/data/global/subcomponent/card-content.ttl +1 -2
- package/data/global/subcomponent/card-footer.ttl +0 -1
- package/data/global/subcomponent/card-header.ttl +1 -2
- package/data/global/subcomponent/card-image.ttl +1 -2
- package/data/global/subcomponent/card-thumbnail.ttl +0 -1
- package/data/global/subcomponent/chart_legend.ttl +0 -1
- package/data/global/subcomponent/chart_legend_item.ttl +0 -1
- package/data/global/subcomponent/checkbox_input.ttl +0 -1
- package/data/global/subcomponent/color_input.ttl +0 -1
- package/data/global/subcomponent/combobox_input.ttl +0 -1
- package/data/global/subcomponent/contextual_menu-item.ttl +13 -0
- package/data/global/subcomponent/contextual_menu-list.ttl +13 -0
- package/data/global/subcomponent/contextual_menu-submenu.ttl +13 -0
- package/data/global/subcomponent/data_tooltip-chart_legend.ttl +133 -0
- package/data/global/subcomponent/date_input.ttl +0 -1
- package/data/global/subcomponent/date_time_input.ttl +0 -1
- package/data/global/subcomponent/field-description.ttl +1 -2
- package/data/global/subcomponent/field-error.ttl +1 -2
- package/data/global/subcomponent/field-label.ttl +1 -2
- package/data/global/subcomponent/file_upload_input.ttl +503 -50
- package/data/global/subcomponent/hidden_input.ttl +0 -1
- package/data/global/subcomponent/kvp_container.ttl +1 -2
- package/data/global/subcomponent/kvpitem_base.ttl +1 -2
- package/data/global/subcomponent/{markdown_input.ttl → markdown_editor_input.ttl} +3 -4
- package/data/global/subcomponent/modal-content.ttl +4 -13
- package/data/global/subcomponent/modal-footer.ttl +21 -29
- package/data/global/subcomponent/modal-header.ttl +53 -141
- package/data/global/subcomponent/month_input.ttl +0 -1
- package/data/global/subcomponent/number_input.ttl +1 -2
- package/data/global/subcomponent/password_input.ttl +0 -1
- package/data/global/subcomponent/phone_input.ttl +0 -1
- package/data/global/subcomponent/radio_input.ttl +0 -1
- package/data/global/subcomponent/range_input.ttl +3 -85
- package/data/global/subcomponent/rating_input.ttl +0 -1
- package/data/global/subcomponent/rich_text_input.ttl +0 -1
- package/data/global/subcomponent/search_input.ttl +8 -8
- package/data/global/subcomponent/segmented_control_input.ttl +0 -1
- package/data/global/subcomponent/select_input.ttl +0 -1
- package/data/global/subcomponent/spin_button.ttl +0 -1
- package/data/global/subcomponent/spinner.ttl +0 -1
- package/data/global/subcomponent/switch_input.ttl +0 -1
- package/data/global/subcomponent/table-cell.ttl +0 -1
- package/data/global/subcomponent/table-row.ttl +0 -1
- package/data/global/subcomponent/text_editor_input.ttl +12 -0
- package/data/global/subcomponent/text_input.ttl +0 -1
- package/data/global/subcomponent/textarea_input.ttl +1 -2
- package/data/global/subcomponent/tile-content.ttl +0 -1
- package/data/global/subcomponent/tile-header.ttl +5 -6
- package/data/global/subcomponent/time_input.ttl +0 -1
- package/data/global/subcomponent/timeline-content.ttl +1 -2
- package/data/global/subcomponent/timeline-event.ttl +1 -1
- package/data/global/variant/tooltip_dense.ttl +111 -5
- package/data/global/view/settings_view.ttl +0 -1
- package/data/global_dataviews/component/filter_button.ttl +486 -0
- package/data/global_dataviews/component/query_bar.ttl +1638 -0
- package/data/global_dataviews/component/query_chip.ttl +605 -0
- package/data/global_dataviews/group/query_chips.ttl +564 -0
- package/data/global_dataviews/modifier/exclusion.ttl +8 -0
- package/data/global_dataviews/modifier/inclusion.ttl +8 -0
- package/data/global_dataviews/modifier/match.ttl +8 -0
- package/data/global_dataviews/modifier/presence.ttl +8 -0
- package/data/global_dataviews/modifier/range.ttl +8 -0
- package/data/global_dataviews/modifier_family/condition.ttl +9 -0
- package/data/global_dataviews/subcomponent/query_chip-entry.ttl +185 -0
- package/data/global_dataviews/subcomponent/query_chip-segment.ttl +240 -0
- package/data/global_dataviews/subcomponent/query_input.ttl +1286 -0
- package/data/global_dataviews.ttl +6 -0
- package/data/sites/component/quote.ttl +0 -1
- package/data/sites/component/rule.ttl +0 -1
- package/data/sites/component/section.ttl +0 -1
- package/data/sites/component/store_card.ttl +7 -7
- package/data/sites/group/blog_cards.ttl +0 -1
- package/data/sites/group/xblog_elements.ttl +0 -1
- package/data/sites/layout/blog_page_layout.ttl +0 -1
- package/data/sites/layout/case_study_layout.ttl +0 -1
- package/data/sites/layout/site_layout.ttl +0 -1
- package/data/sites/pattern/hero-github.ttl +0 -1
- package/data/sites/pattern/hero.ttl +1 -2
- package/data/sites/pattern/info_table.ttl +0 -1
- package/data/sites/pattern/pricing_section.ttl +0 -1
- package/data/sites/pattern/pricing_table.ttl +0 -1
- package/data/sites/pattern/read_more_section.ttl +0 -1
- package/data/sites/pattern/skip_link.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/list.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/tabs.ttl +0 -1
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +0 -1
- package/data/tag/{wpeinital-implementation.ttl → workplaceinitial-implementation.ttl} +2 -2
- package/data/tag/{wpetriageupstream-and-deprecate.ttl → workplacetriageupstream-and-deprecate.ttl} +2 -2
- package/definitions/ontology.ttl +8 -2
- package/package.json +6 -6
- package/skills/adoption-a1-styles/SKILL.md +11 -0
- package/skills/adoption-a2-components/SKILL.md +82 -2
- package/skills/anatomy-author/SKILL.md +278 -95
- package/skills/anatomy-author/clarification-guidelines.md +150 -0
- package/skills/anatomy-author/completeness-checklist.md +224 -0
- package/skills/implement-component/SKILL.md +2 -2
- package/data/apps/subcomponent/side_panel-content.ttl +0 -14
- package/data/concept/Question-mark-vs-information-icon.ttl +0 -11
- package/data/global/component/tooltip_wrapper.ttl +0 -140
- package/data/global/modifier/highlighted.ttl +0 -8
- package/data/global/modifier/wireframe.ttl +0 -8
|
@@ -4,102 +4,246 @@
|
|
|
4
4
|
|
|
5
5
|
ds:apps.pattern.side_panel a ds:Pattern;
|
|
6
6
|
ds:name "SidePanel";
|
|
7
|
-
ds:summary "A side panel is a non-modal surface
|
|
8
|
-
ds:anatomyDsl "
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
|
-
ds:usage "
|
|
7
|
+
ds:summary "A side panel is a non-modal surface docked to the edge of the viewport, for work that accompanies the current view rather than interrupting it. The overlay type floats above the main area without changing its size. The inline type sits beside the main area. In both, the main view stays visible, clickable and tabbable. There is no backdrop, no focus trap and no `aria-modal`. Focus moves into the panel on open but is never trapped.";
|
|
8
|
+
ds:anatomyDsl "---\nnode:\n uri: apps.pattern.side_panel\n styles:\n layout.type: flex\n layout.direction: column\n # Content that continues past the panel's edges is clipped.\n layout.overflow: hidden\n size.width: 480px\n appearance.background: color.background\n # The Overlay type is separated from the view behind it by a drop shadow and\n # the Inline type has none. The roster has no shadow key, and no per-corner\n # radius key, so neither is bound.\n edges:\n - node:\n uri: apps.subcomponent.side_panel-header\n styles:\n # Sits over the top of the content, which clears it with its own top\n # padding.\n layout.position: absolute\n layout.offset.top: 0\n layout.offset.left: 0\n size.width: 100%\n relation:\n cardinality: \"1\"\n slotName: header\n - node:\n uri: apps.subcomponent.side_panel-footer\n styles:\n # Follows the content until the content continues below the panel's\n # bottom edge, where it is pinned to that edge instead.\n size.width: 100%\n relation:\n cardinality: \"0..1\"\n slotName: footer\n - node:\n role: content\n styles:\n layout.type: flex\n layout.direction: column\n # Hugs the content until it is taller than the space between the header\n # and the footer, then fills that space and scrolls.\n layout.overflow.block: auto\n spacing.gap: dimension.300\n # Clears the header, which sits over the top of the content.\n spacing.internal.block.start: dimension.800\n spacing.internal.block.end: dimension.300\n spacing.internal.inline.start: dimension.300\n spacing.internal.inline.end: dimension.300\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=15288-4347&t=TFFErubqFoeQwq3Y-1\n\n## Styling\n\n### Layout and spacing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=15288-4359&t=TFFErubqFoeQwq3Y-1\n\n### Colors\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=15288-4369&t=TFFErubqFoeQwq3Y-1\n\n### Overflow\n\n#### Bottom overflow\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=15288-4394&t=TFFErubqFoeQwq3Y-1\n\n#### Top overflow\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16296-1833&t=TFFErubqFoeQwq3Y-1\n\n#### Top and bottom overflow\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16296-1971&t=TFFErubqFoeQwq3Y-1";
|
|
10
|
+
ds:usage "## When to use\n\n- When showing details of a selected entity.\n- When there is work that accompanies the current view — inspecting or editing an item while the list/app behind stays visible and usable. \n- **When the user needs to fill a form in applications (per Modal guidance: websites → modals, apps → side panels or full pages). Use side panels when there are multi-step flows that need layer/nesting.**\n- Viewing an item's associated entities when the main listing page can't be filtered to just those.\n\n## When not to use\n\n- Interruptive moments that need an explicit decision, such as confirmations, destructive actions, warnings or unsaved-changes alerts. Use a [Modal](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-XsokbPLmnc).\n- Anything requiring the page behind to be inert: the panel has no backdrop, no focus trap, no aria-modal; the application stays clickable and tabbable by design.\n- When the action starts from a modal. A side panel can open a modal, but a modal can't open a side panel.\n- When there is Information the user must acknowledge before continuing.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
13
|
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
|
-
ds:hasSubcomponent ds:apps.subcomponent.side_panel-footer, ds:apps.subcomponent.side_panel-header
|
|
14
|
+
ds:hasSubcomponent ds:apps.subcomponent.side_panel-footer, ds:apps.subcomponent.side_panel-header;
|
|
15
15
|
ds:hasTokenBinding [
|
|
16
16
|
a ds:TokenBinding;
|
|
17
17
|
ds:viaBlock ds:apps.pattern.side_panel;
|
|
18
18
|
ds:node "$root";
|
|
19
|
-
anatomy:styleKey "appearance.
|
|
19
|
+
anatomy:styleKey "appearance.background";
|
|
20
20
|
anatomy:styleState "default";
|
|
21
21
|
ds:rank 1;
|
|
22
|
-
ds:consumesSymbol dt:
|
|
22
|
+
ds:consumesSymbol dt:color.background
|
|
23
23
|
], [
|
|
24
24
|
a ds:TokenBinding;
|
|
25
|
-
ds:viaBlock ds:apps.
|
|
25
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
26
26
|
ds:node "$root";
|
|
27
|
-
anatomy:styleKey "
|
|
27
|
+
anatomy:styleKey "spacing.gap";
|
|
28
28
|
anatomy:styleState "default";
|
|
29
29
|
ds:rank 1;
|
|
30
|
-
ds:consumesSymbol dt:
|
|
30
|
+
ds:consumesSymbol dt:dimension.200
|
|
31
31
|
], [
|
|
32
32
|
a ds:TokenBinding;
|
|
33
|
-
ds:viaBlock ds:apps.
|
|
33
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
34
34
|
ds:node "$root";
|
|
35
|
-
anatomy:styleKey "
|
|
35
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
36
36
|
anatomy:styleState "default";
|
|
37
|
-
ds:rank
|
|
38
|
-
ds:consumesSymbol dt:
|
|
37
|
+
ds:rank 1;
|
|
38
|
+
ds:consumesSymbol dt:dimension.200
|
|
39
39
|
], [
|
|
40
40
|
a ds:TokenBinding;
|
|
41
|
-
ds:viaBlock ds:apps.
|
|
41
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
42
42
|
ds:node "$root";
|
|
43
|
-
anatomy:styleKey "
|
|
43
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
44
44
|
anatomy:styleState "default";
|
|
45
45
|
ds:rank 1;
|
|
46
|
-
ds:consumesSymbol dt:
|
|
46
|
+
ds:consumesSymbol dt:dimension.200
|
|
47
47
|
], [
|
|
48
48
|
a ds:TokenBinding;
|
|
49
|
-
ds:viaBlock ds:apps.
|
|
49
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
50
50
|
ds:node "$root";
|
|
51
|
-
anatomy:styleKey "
|
|
51
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
52
52
|
anatomy:styleState "default";
|
|
53
|
-
ds:rank
|
|
54
|
-
ds:consumesSymbol dt:
|
|
53
|
+
ds:rank 1;
|
|
54
|
+
ds:consumesSymbol dt:dimension.300
|
|
55
55
|
], [
|
|
56
56
|
a ds:TokenBinding;
|
|
57
|
-
ds:viaBlock ds:apps.
|
|
57
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
58
58
|
ds:node "$root";
|
|
59
|
-
anatomy:styleKey "
|
|
59
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
60
60
|
anatomy:styleState "default";
|
|
61
61
|
ds:rank 1;
|
|
62
|
-
ds:consumesSymbol dt:
|
|
62
|
+
ds:consumesSymbol dt:dimension.300
|
|
63
63
|
], [
|
|
64
64
|
a ds:TokenBinding;
|
|
65
|
-
ds:viaBlock ds:apps.
|
|
65
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
66
66
|
ds:node "$root";
|
|
67
|
-
anatomy:styleKey "
|
|
67
|
+
anatomy:styleKey "appearance.background";
|
|
68
68
|
anatomy:styleState "default";
|
|
69
69
|
ds:rank 1;
|
|
70
|
-
ds:consumesSymbol dt:
|
|
70
|
+
ds:consumesSymbol dt:color.background
|
|
71
71
|
], [
|
|
72
72
|
a ds:TokenBinding;
|
|
73
73
|
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
74
74
|
ds:node "$root/title";
|
|
75
|
-
anatomy:styleKey "typography.
|
|
75
|
+
anatomy:styleKey "typography.font";
|
|
76
76
|
anatomy:styleState "default";
|
|
77
77
|
ds:rank 1;
|
|
78
|
-
ds:consumesSymbol dt:
|
|
78
|
+
ds:consumesSymbol dt:typography.heading.2
|
|
79
79
|
], [
|
|
80
80
|
a ds:TokenBinding;
|
|
81
81
|
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
82
82
|
ds:node "$root/title";
|
|
83
|
-
anatomy:styleKey "typography.
|
|
83
|
+
anatomy:styleKey "typography.color";
|
|
84
84
|
anatomy:styleState "default";
|
|
85
85
|
ds:rank 1;
|
|
86
|
-
ds:consumesSymbol dt:
|
|
86
|
+
ds:consumesSymbol dt:color.text
|
|
87
87
|
], [
|
|
88
88
|
a ds:TokenBinding;
|
|
89
|
-
ds:viaBlock ds:
|
|
90
|
-
ds:node "$root
|
|
91
|
-
anatomy:styleKey "
|
|
89
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
90
|
+
ds:node "$root";
|
|
91
|
+
anatomy:styleKey "appearance.background";
|
|
92
|
+
anatomy:styleState "default";
|
|
93
|
+
ds:rank 1;
|
|
94
|
+
ds:consumesSymbol dt:surface.color.foreground.ghost
|
|
95
|
+
], [
|
|
96
|
+
a ds:TokenBinding;
|
|
97
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
98
|
+
ds:node "$root";
|
|
99
|
+
anatomy:styleKey "appearance.background";
|
|
100
|
+
anatomy:styleState "default";
|
|
101
|
+
ds:rank 2;
|
|
102
|
+
ds:consumesSymbol dt:modifier.color.foreground.ghost
|
|
103
|
+
], [
|
|
104
|
+
a ds:TokenBinding;
|
|
105
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
106
|
+
ds:node "$root";
|
|
107
|
+
anatomy:styleKey "appearance.background";
|
|
108
|
+
anatomy:styleState "default";
|
|
109
|
+
ds:rank 3;
|
|
110
|
+
ds:consumesSymbol dt:color.foreground.ghost
|
|
111
|
+
], [
|
|
112
|
+
a ds:TokenBinding;
|
|
113
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
114
|
+
ds:node "$root";
|
|
115
|
+
anatomy:styleKey "appearance.background";
|
|
116
|
+
anatomy:styleState "hover";
|
|
117
|
+
ds:rank 1;
|
|
118
|
+
ds:consumesSymbol dt:color.foreground.ghost.hover
|
|
119
|
+
], [
|
|
120
|
+
a ds:TokenBinding;
|
|
121
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
122
|
+
ds:node "$root";
|
|
123
|
+
anatomy:styleKey "appearance.background";
|
|
124
|
+
anatomy:styleState "active";
|
|
125
|
+
ds:rank 1;
|
|
126
|
+
ds:consumesSymbol dt:color.foreground.ghost.active
|
|
127
|
+
], [
|
|
128
|
+
a ds:TokenBinding;
|
|
129
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
130
|
+
ds:node "$root";
|
|
131
|
+
anatomy:styleKey "appearance.background";
|
|
132
|
+
anatomy:styleState "disabled";
|
|
133
|
+
ds:rank 1;
|
|
134
|
+
ds:consumesSymbol dt:color.foreground.ghost.disabled
|
|
135
|
+
], [
|
|
136
|
+
a ds:TokenBinding;
|
|
137
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
138
|
+
ds:node "$root";
|
|
139
|
+
anatomy:styleKey "appearance.outline.color";
|
|
140
|
+
anatomy:styleState "focus";
|
|
141
|
+
ds:rank 1;
|
|
142
|
+
ds:consumesSymbol dt:modifier.color.focusRing
|
|
143
|
+
], [
|
|
144
|
+
a ds:TokenBinding;
|
|
145
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
146
|
+
ds:node "$root";
|
|
147
|
+
anatomy:styleKey "appearance.outline.color";
|
|
148
|
+
anatomy:styleState "focus";
|
|
149
|
+
ds:rank 2;
|
|
150
|
+
ds:consumesSymbol dt:color.focusRing
|
|
151
|
+
], [
|
|
152
|
+
a ds:TokenBinding;
|
|
153
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
154
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
155
|
+
anatomy:styleKey "size.width";
|
|
156
|
+
anatomy:styleState "default";
|
|
157
|
+
ds:rank 1;
|
|
158
|
+
ds:consumesSymbol dt:dimension.200
|
|
159
|
+
], [
|
|
160
|
+
a ds:TokenBinding;
|
|
161
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
162
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
163
|
+
anatomy:styleKey "size.height";
|
|
92
164
|
anatomy:styleState "default";
|
|
93
165
|
ds:rank 1;
|
|
94
|
-
ds:consumesSymbol dt:
|
|
166
|
+
ds:consumesSymbol dt:dimension.200
|
|
167
|
+
], [
|
|
168
|
+
a ds:TokenBinding;
|
|
169
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
170
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
171
|
+
anatomy:styleKey "typography.color";
|
|
172
|
+
anatomy:styleState "default";
|
|
173
|
+
ds:rank 1;
|
|
174
|
+
ds:consumesSymbol dt:modifier.color.icon
|
|
175
|
+
], [
|
|
176
|
+
a ds:TokenBinding;
|
|
177
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
178
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
179
|
+
anatomy:styleKey "typography.color";
|
|
180
|
+
anatomy:styleState "default";
|
|
181
|
+
ds:rank 2;
|
|
182
|
+
ds:consumesSymbol dt:color.icon
|
|
183
|
+
], [
|
|
184
|
+
a ds:TokenBinding;
|
|
185
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
186
|
+
ds:node "$root/icon wrapper/case[global.component.icon]";
|
|
187
|
+
anatomy:styleKey "typography.color";
|
|
188
|
+
anatomy:styleState "disabled";
|
|
189
|
+
ds:rank 1;
|
|
190
|
+
ds:consumesSymbol dt:color.icon.disabled
|
|
191
|
+
], [
|
|
192
|
+
a ds:TokenBinding;
|
|
193
|
+
ds:viaBlock ds:global.component.icon_button;
|
|
194
|
+
ds:node "$root/icon wrapper/case[global.subcomponent.spinner]";
|
|
195
|
+
anatomy:styleKey "typography.color";
|
|
196
|
+
anatomy:styleState "default";
|
|
197
|
+
ds:rank 1;
|
|
198
|
+
ds:consumesSymbol dt:color.icon
|
|
95
199
|
], [
|
|
96
200
|
a ds:TokenBinding;
|
|
97
201
|
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
98
|
-
ds:node "$root/
|
|
99
|
-
anatomy:styleKey "
|
|
202
|
+
ds:node "$root/overflow divider";
|
|
203
|
+
anatomy:styleKey "appearance.background";
|
|
204
|
+
anatomy:styleState "default";
|
|
205
|
+
ds:rank 1;
|
|
206
|
+
ds:consumesSymbol dt:color.border.muted
|
|
207
|
+
], [
|
|
208
|
+
a ds:TokenBinding;
|
|
209
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-footer;
|
|
210
|
+
ds:node "$root";
|
|
211
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
212
|
+
anatomy:styleState "default";
|
|
213
|
+
ds:rank 1;
|
|
214
|
+
ds:consumesSymbol dt:dimension.300
|
|
215
|
+
], [
|
|
216
|
+
a ds:TokenBinding;
|
|
217
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-footer;
|
|
218
|
+
ds:node "$root";
|
|
219
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
220
|
+
anatomy:styleState "default";
|
|
221
|
+
ds:rank 1;
|
|
222
|
+
ds:consumesSymbol dt:dimension.300
|
|
223
|
+
], [
|
|
224
|
+
a ds:TokenBinding;
|
|
225
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-footer;
|
|
226
|
+
ds:node "$root";
|
|
227
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
100
228
|
anatomy:styleState "default";
|
|
101
229
|
ds:rank 1;
|
|
102
|
-
ds:consumesSymbol dt:dimension.
|
|
230
|
+
ds:consumesSymbol dt:dimension.300
|
|
231
|
+
], [
|
|
232
|
+
a ds:TokenBinding;
|
|
233
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-footer;
|
|
234
|
+
ds:node "$root";
|
|
235
|
+
anatomy:styleKey "appearance.background";
|
|
236
|
+
anatomy:styleState "default";
|
|
237
|
+
ds:rank 1;
|
|
238
|
+
ds:consumesSymbol dt:color.background
|
|
239
|
+
], [
|
|
240
|
+
a ds:TokenBinding;
|
|
241
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-footer;
|
|
242
|
+
ds:node "$root/button group";
|
|
243
|
+
anatomy:styleKey "spacing.gap";
|
|
244
|
+
anatomy:styleState "default";
|
|
245
|
+
ds:rank 1;
|
|
246
|
+
ds:consumesSymbol dt:dimension.100
|
|
103
247
|
], [
|
|
104
248
|
a ds:TokenBinding;
|
|
105
249
|
ds:viaBlock ds:global.component.button;
|
|
@@ -279,17 +423,49 @@ ds:apps.pattern.side_panel a ds:Pattern;
|
|
|
279
423
|
], [
|
|
280
424
|
a ds:TokenBinding;
|
|
281
425
|
ds:viaBlock ds:apps.subcomponent.side_panel-footer;
|
|
282
|
-
ds:node "$root";
|
|
283
|
-
anatomy:styleKey "appearance.
|
|
426
|
+
ds:node "$root/overflow divider";
|
|
427
|
+
anatomy:styleKey "appearance.background";
|
|
284
428
|
anatomy:styleState "default";
|
|
285
429
|
ds:rank 1;
|
|
286
|
-
ds:consumesSymbol dt:
|
|
430
|
+
ds:consumesSymbol dt:color.border.muted
|
|
287
431
|
], [
|
|
288
432
|
a ds:TokenBinding;
|
|
289
|
-
ds:viaBlock ds:apps.
|
|
290
|
-
ds:node "$root";
|
|
291
|
-
anatomy:styleKey "
|
|
433
|
+
ds:viaBlock ds:apps.pattern.side_panel;
|
|
434
|
+
ds:node "$root/content";
|
|
435
|
+
anatomy:styleKey "spacing.gap";
|
|
292
436
|
anatomy:styleState "default";
|
|
293
437
|
ds:rank 1;
|
|
294
|
-
ds:consumesSymbol dt:
|
|
438
|
+
ds:consumesSymbol dt:dimension.300
|
|
439
|
+
], [
|
|
440
|
+
a ds:TokenBinding;
|
|
441
|
+
ds:viaBlock ds:apps.pattern.side_panel;
|
|
442
|
+
ds:node "$root/content";
|
|
443
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
444
|
+
anatomy:styleState "default";
|
|
445
|
+
ds:rank 1;
|
|
446
|
+
ds:consumesSymbol dt:dimension.800
|
|
447
|
+
], [
|
|
448
|
+
a ds:TokenBinding;
|
|
449
|
+
ds:viaBlock ds:apps.pattern.side_panel;
|
|
450
|
+
ds:node "$root/content";
|
|
451
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
452
|
+
anatomy:styleState "default";
|
|
453
|
+
ds:rank 1;
|
|
454
|
+
ds:consumesSymbol dt:dimension.300
|
|
455
|
+
], [
|
|
456
|
+
a ds:TokenBinding;
|
|
457
|
+
ds:viaBlock ds:apps.pattern.side_panel;
|
|
458
|
+
ds:node "$root/content";
|
|
459
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
460
|
+
anatomy:styleState "default";
|
|
461
|
+
ds:rank 1;
|
|
462
|
+
ds:consumesSymbol dt:dimension.300
|
|
463
|
+
], [
|
|
464
|
+
a ds:TokenBinding;
|
|
465
|
+
ds:viaBlock ds:apps.pattern.side_panel;
|
|
466
|
+
ds:node "$root/content";
|
|
467
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
468
|
+
anatomy:styleState "default";
|
|
469
|
+
ds:rank 1;
|
|
470
|
+
ds:consumesSymbol dt:dimension.300
|
|
295
471
|
].
|
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
ds:apps.subcomponent.data_table-action_bar a ds:Subcomponent;
|
|
6
6
|
ds:name "DataTable.ActionBar";
|
|
7
|
-
ds:summary "When one or more
|
|
7
|
+
ds:summary "When one or more records are selected, the action bar appears at the bottom of the view, with the bulk actions defined for that view and a deselect button on the far right. With persistent selection, it also shows the number of selected items, such as \"5 Selected\". Use it to delete, export or tag several records at once.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3340-1631&t=8RN2Hpk8UX3gMX3u-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4781-83072&t=2fO23I8WsyT0YVJ1-4";
|
|
10
10
|
ds:usage "The bulk action bar appears when one or more rows are selected, giving users a way to apply an operation to their entire selection at once. It eliminates the need to act on rows one at a time, which is especially valuable in enterprise applications where users regularly manage large datasets. For example, a system administrator might select 30 machines across several pages and archive them in a single step, rather than repeating the action on each row individually.\n\n## When to use\n\n- Users need to perform the same operation on multiple table rows at once.\n- The table is used in workflows where bulk operations such as archiving, exporting, deleting, or reassigning are common.\n\n## When not to use\n\n- The table does not support row selection. Use inline row actions in the action column instead.\n- The available bulk operations are unlikely to be used. A bulk action bar that appears on selection but offers only one rarely used action adds complexity without meaningful benefit.\n\n## Choosing bulk actions\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-12858&t=2PBanDq6QA2yNcI2-4\n\nThe designer defines which bulk actions appear in the bar for each table instance. Start by identifying what users need to do with multiple items at once. Consider what operations are common enough to justify a bulk workflow and whether the product’s backend supports performing them in batch. Not every action available on a single row needs a bulk equivalent. Focus on the actions that save users the most time when applied to many items at once.\n\nThe action bar supports a maximum of 7 bulk actions. The deselect (X) button does not count toward this limit. When more than 7 actions are needed, group related actions into expandable dropdown menus. A grouped button displays a dropdown caret and opens a popover menu above the action bar listing the sub-actions (for example, an “Export” button expanding into “Export as CSV”, “Export as JSON”, and “Export as PDF”). Grouping is also available as a design choice when fewer than 7 actions exist. If there is a logical grouping the designer wants to enforce, expandable menus can be used even when space is not a constraint.\n\n## Destructive actions\n\nDestructive actions such as “Delete” may be visually distinguished with a red text style, making them clearly identifiable in the action bar.";
|
|
11
11
|
ds:guidelines "# Interactions\n\n## Scroll offset\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-27553&t=2PBanDq6QA2yNcI2-4\n\nWhen the action bar is visible, the table must allow the user to scroll far enough that the last row sits above the action bar. Without this extra scroll space, the bottom rows can be hidden beneath the overlay and the user cannot see or interact with them.\n\n## Performing a bulk action\n\nSelecting a bulk action button performs the associated action on the current selection. The selection count displayed in the bar (for example, “5 Selected”) lets users confirm how many items will be affected. If persistent selection is enabled, users can also verify their selection via the persistent selection panel before confirming an action.\n\n## Deselect button\n\nSelecting the deselect (X) button clears the current selection and hides the action bar.\n\n## Grouped action expansion\n\nA grouped button displays a dropdown caret; clicking it opens a popover menu above the action bar listing the sub-actions.";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "selection-mode";
|
|
@@ -26,4 +25,5 @@ ds:apps.subcomponent.data_table-action_bar a ds:Subcomponent;
|
|
|
26
25
|
ds:optional "false";
|
|
27
26
|
ds:constraints "Inherited from the data table. Maximum of 7 top-level actions. The deselect button does not count toward this limit."
|
|
28
27
|
];
|
|
29
|
-
ds:
|
|
28
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
29
|
+
ds:parentComponent ds:apps.pattern.data_views.
|
|
@@ -10,39 +10,38 @@ ds:apps.subcomponent.data_table-body_cell a ds:Subcomponent;
|
|
|
10
10
|
ds:usage "Every piece of data the user sees in a table row is rendered inside a body cell. The cell type determines how content is displayed and what interactions are available. Choosing the right cell type for each column is one of the most important decisions when designing a table, because it affects how users read, scan, and interact with the data.\n\n## Cell type selection\n\n- Use the **text cell** as the default for any column displaying plain data values.\n- Use the **icon + text cell** to indicate the status or category of a value within a cell, such as status indicators.\n- Use the **checkbox cell** when the user needs to select one or more rows. Use a radio variant if the user may only select one item.\n- Use the **action cell** when the table needs row-level inline actions or table settings access.\n\n## Inline actions configuration\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-29792&t=2PBanDq6QA2yNcI2-4\n\n\n\nA maximum of 4 icon-only inline actions can appear per row. If there are more than 4, they overflow into a contextual menu. The designer can also choose to show only the contextual menu and skip icon-only buttons entirely.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-30895&t=2PBanDq6QA2yNcI2-4\n\nIf there is only one action that cannot be represented as an icon, it can appear as a button instead. The button fills the available space in the action column. The text inside the button is centered. Keep the action column narrow to avoid the button looking disproportionate.\n\n\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-31718&t=2PBanDq6QA2yNcI2-4\n\nThe designer can choose whether inline actions are always visible or appear only on row hover. In hover-only mode, action icons appear only on the currently hovered row, which receives a light background tint. All other rows show no action icons.\n\n\n\nInline actions can be semantically colored. The most common example is “Delete”, which uses a red destructive color. Other actions use the default neutral icon color.\n\n## Inline editing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-7270&t=2PBanDq6QA2yNcI2-4\n\nThe designer can set columns as editable, allowing users to change data values directly in the table without navigating to a separate form or detail view. Editing is configured at the column level, so all body cells in an editable column support editing. Inline editing works well when users need to make quick, small corrections to existing data, such as updating a name, changing a status, or fixing a typo. It is less appropriate when editing involves complex validation, multi-field dependencies, or when changes have significant consequences that require more context than a single cell can provide. In those cases, a dedicated edit form or detail panel is a better fit.\n\nNot every column needs to be editable. Focus on columns where users frequently need to make changes and where the data type fits one of the available edit modes.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-7270&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-32440&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-33329&t=2PBanDq6QA2yNcI2-4\n\n### Edit modes\n\n- **Text edit** is for short, single-line values such as a hostname, an IP address, or a username. Use this as the default edit mode.\n- **Textarea edit** is for cells that contain longer text, such as a description or a note. The editing area is larger and overlaps cells below it.\n- **Select edit** is for cells where the value must be one of a predefined set of options, such as a status, a region, or a role. It shows a downward-pointing chevron to differentiate it from a text input. A dropdown menu opens below the cell with the selectable options.\n\n\n\n### Save behavior\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-34261&t=2PBanDq6QA2yNcI2-4\n\nBy default, editable cells use **auto-save**. In critical situations where saving needs to be a deliberate decision, the designer can choose **explicit save**. This mode shows “Cancel” and “Save” buttons beneath the cell. Use explicit save when the consequence of an incorrect value is high, such as changing a price, reassigning ownership, or modifying a configuration that affects other users.";
|
|
11
11
|
ds:guidelines "# Interactions\n\n## Cell editing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-7270&t=2PBanDq6QA2yNcI2-4\n\nBy default, editable cells show an edit icon when the cell is hovered. The cursor changes to indicate the cell is interactive. Only the currently hovered cell shows the edit icon, and only one cell displays it at a time.\n\nThe designer can choose to always show the edit icon for editable cells. This makes it easier for the user to discover that a cell is editable. In this configuration, edit icons are visible in every editable cell across all rows, not only the hovered one.\n\n\n\n### Text edit mode\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-7270&t=2PBanDq6QA2yNcI2-4\n\nThe cell in edit mode has a focus ring and a drop shadow. It stays the same size and position as the cell itself. When the user starts editing, the entire text is selected so they can type to replace it. They can deselect the text by selecting a position within the cell and add to the existing text instead. This places a text cursor within the existing content.\n\n### Textarea edit mode\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-32440&t=2PBanDq6QA2yNcI2-4\n\nThe editing area extends vertically below the cell’s normal boundaries, covering parts of the rows beneath it. The textarea has the same drop shadow and focus ring as the text edit cell.\n\n### Select edit mode\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-33329&t=2PBanDq6QA2yNcI2-4\n\nThe cell in edit mode has the same focus ring and drop shadow as other edit modes. It stays the same size as the cell itself. A downward-pointing chevron differentiates it from a text input. A dropdown menu opens below the cell with selectable options, overlapping the rows beneath it.\n\n\n\n### Saving and canceling with auto-save (default)\n\nIf the user presses \"Enter\" or selects outside the cell after changing its content, the change is saved automatically. This should be an optimistic update: show the updated value in the UI immediately without waiting for server confirmation. If the server rejects the change, roll the value back and notify the user that the edit did not persist. The notification itself is not part of this component. It should be handled through the application's notification system. The user can cancel an edit by pressing \"Escape\" while the cell is in edit mode. This removes focus from the cell without saving.\n\n### Saving and canceling with explicit save\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-34261&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-35176&t=2PBanDq6QA2yNcI2-4\n\nA \"Cancel\" button and a \"Save\" button (green/primary style) appear directly below the editing cell. Pressing \"Escape\" cancels the edit, the same as in auto-save mode. Pressing \"Enter\" does not save the cell, because the user might expect it to create a new line. In explicit save mode, saving must happen through the \"Save\" button. If the user selects somewhere else without saving or canceling, a confirmation modal appears. The modal has the title \"Save changes made to cell?\" and the body text: \"Do you want to save the changes made to this cell? Otherwise any change made to the cell will be discarded.\" Below the body text, a \"Changes:\" section shows the before and after values (for example, \"youthful-yak → Hello world! :)\"). The modal has two buttons: \"Discard changes\" (secondary style) and \"Save changes\" (primary style).\n\n### Unloading with unsaved changes\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-36094&t=2PBanDq6QA2yNcI2-4\n\nIf the user has an unsaved change and is about to leave the page (for example, closing the tab or window), interrupt the navigation and show a confirmation modal. The modal has the title \"Save changes made to cell before exiting?\" and the body text: \"Do you want to save the changes made to this cell before exiting? Otherwise any change made to the cell will be discarded.\" Below the body text, a \"Changes:\" section shows the before and after values (for example, \"youthful-yak → Hello world! :)\"). The modal has two buttons: \"Discard changes and exit\" (secondary style) and \"Save changes and exit\" (primary style).\n\n### Advanced cell type editing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-37008&t=2PBanDq6QA2yNcI2-4\n\nIf the underlying data is compatible with the available edit modes (text, textarea, or select), more advanced custom cell types can also be edited inline. When a custom cell enters edit mode, it looks the same as any other editing cell. The custom rendering (for example, a percentage bar) is replaced with a standard text input showing the raw value, with the same focus ring and drop shadow styling.\n\n### Validation states\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-38135&t=2PBanDq6QA2yNcI2-4\n\nAn editable cell can have validation states. When active, the focus ring and background reflect the validation state (for example, a red focus ring and red-tinted background for an error). The validation message appears inline with an error icon beneath the editing cell.\n\n\n\n## Inline actions\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-39095&t=2PBanDq6QA2yNcI2-4\n\nInline actions are icon-only actions at the end of the row in the action cell type. They share a column with the table settings icon in the header.\n\nEvery icon-only action button must have an appropriate `aria-label` and a tooltip that displays the label on hover. This label should match the one that would appear if the action were shown in a contextual menu.\n\nWhen actions overflow into a contextual menu, it appears as a dropdown anchored to the row. Each menu item displays an icon alongside its label. Destructive actions such as “Delete” are styled in red within the menu.\n\n## Checkbox and radio\n\nA checkbox cell can contain either a checkbox or a radio. A column must use either checkboxes or radios, not a mix.\n\nA header cell checkbox can have the partially selected state, to indicate that some but not all of the page’s rows have been selected. If radios are used, the header cell in that column is empty.";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "cell-type";
|
|
17
16
|
ds:summary "The type of content the cell displays. Determines the available interactions and visual treatment.";
|
|
18
17
|
ds:propertyType "choice";
|
|
19
18
|
ds:optional "false";
|
|
20
|
-
ds:
|
|
21
|
-
ds:
|
|
19
|
+
ds:defaultValue "text";
|
|
20
|
+
ds:constraints "A column must use a single cell type."
|
|
22
21
|
], [
|
|
23
22
|
a ds:Property;
|
|
24
23
|
ds:name "highlighted";
|
|
25
24
|
ds:summary "Whether the cell appears in a highlighted visual state instead of the default state.";
|
|
26
25
|
ds:propertyType "boolean";
|
|
27
26
|
ds:optional "true";
|
|
28
|
-
ds:
|
|
29
|
-
ds:
|
|
27
|
+
ds:defaultValue "false";
|
|
28
|
+
ds:constraints "Applies to text and icon+text cell types."
|
|
30
29
|
], [
|
|
31
30
|
a ds:Property;
|
|
32
31
|
ds:name "editable";
|
|
33
32
|
ds:summary "Whether the cell supports inline editing.";
|
|
34
33
|
ds:propertyType "boolean";
|
|
35
34
|
ds:optional "true";
|
|
36
|
-
ds:
|
|
37
|
-
ds:
|
|
35
|
+
ds:defaultValue "false";
|
|
36
|
+
ds:constraints "Applies to text, icon+text, and compatible custom cell types only. Not available on checkbox or action cell types."
|
|
38
37
|
], [
|
|
39
38
|
a ds:Property;
|
|
40
39
|
ds:name "edit-mode";
|
|
41
40
|
ds:summary "The editing interface used when the cell enters edit mode. Text is for short single-line values. Textarea is for longer multi-line values. Select is for values from a predefined set of options.";
|
|
42
41
|
ds:propertyType "choice";
|
|
43
42
|
ds:optional "true";
|
|
44
|
-
ds:
|
|
45
|
-
ds:
|
|
43
|
+
ds:defaultValue "text";
|
|
44
|
+
ds:constraints "Only applies when editable is true."
|
|
46
45
|
], [
|
|
47
46
|
a ds:Property;
|
|
48
47
|
ds:name "select-options";
|
|
@@ -56,24 +55,24 @@ ds:apps.subcomponent.data_table-body_cell a ds:Subcomponent;
|
|
|
56
55
|
ds:summary "How changes are persisted. Auto-save saves on Enter or blur. Explicit save shows Cancel and Save buttons beneath the cell. Use explicit save when the consequence of an incorrect value is high.";
|
|
57
56
|
ds:propertyType "choice";
|
|
58
57
|
ds:optional "true";
|
|
59
|
-
ds:
|
|
60
|
-
ds:
|
|
58
|
+
ds:defaultValue "auto-save";
|
|
59
|
+
ds:constraints "Only applies when editable is true."
|
|
61
60
|
], [
|
|
62
61
|
a ds:Property;
|
|
63
62
|
ds:name "always-show-edit-icon";
|
|
64
63
|
ds:summary "Whether the edit icon is always visible on editable cells or only shown on hover. When true, edit icons appear in every editable cell across all rows.";
|
|
65
64
|
ds:propertyType "boolean";
|
|
66
65
|
ds:optional "true";
|
|
67
|
-
ds:
|
|
68
|
-
ds:
|
|
66
|
+
ds:defaultValue "false";
|
|
67
|
+
ds:constraints "Only applies when editable is true."
|
|
69
68
|
], [
|
|
70
69
|
a ds:Property;
|
|
71
70
|
ds:name "validation-state";
|
|
72
71
|
ds:summary "The current validation state of the cell. When active, the focus ring and background reflect the state (for example, a red focus ring and red-tinted background for an error).";
|
|
73
72
|
ds:propertyType "choice";
|
|
74
73
|
ds:optional "true";
|
|
75
|
-
ds:
|
|
76
|
-
ds:
|
|
74
|
+
ds:defaultValue "none";
|
|
75
|
+
ds:constraints "Only applies when editable is true."
|
|
77
76
|
], [
|
|
78
77
|
a ds:Property;
|
|
79
78
|
ds:name "validation-message";
|
|
@@ -87,8 +86,8 @@ ds:apps.subcomponent.data_table-body_cell a ds:Subcomponent;
|
|
|
87
86
|
ds:summary "Whether the cell uses a checkbox (multi-select) or radio (single-select) control. When radios are used, the header cell in that column is empty.";
|
|
88
87
|
ds:propertyType "choice";
|
|
89
88
|
ds:optional "true";
|
|
90
|
-
ds:
|
|
91
|
-
ds:
|
|
89
|
+
ds:defaultValue "checkbox";
|
|
90
|
+
ds:constraints "Only applies when cell-type is checkbox. A column must use either checkboxes or radios, not a mix."
|
|
92
91
|
], [
|
|
93
92
|
a ds:Property;
|
|
94
93
|
ds:name "inline-actions";
|
|
@@ -102,7 +101,8 @@ ds:apps.subcomponent.data_table-body_cell a ds:Subcomponent;
|
|
|
102
101
|
ds:summary "Whether inline action icons are always visible or appear only on the currently hovered row.";
|
|
103
102
|
ds:propertyType "choice";
|
|
104
103
|
ds:optional "true";
|
|
105
|
-
ds:
|
|
106
|
-
ds:
|
|
104
|
+
ds:defaultValue "always";
|
|
105
|
+
ds:constraints "Only applies when cell-type is action."
|
|
107
106
|
];
|
|
107
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
108
108
|
ds:parentComponent ds:apps.pattern.datatable.
|
|
@@ -10,7 +10,6 @@ ds:apps.subcomponent.data_table-group_header_row a ds:Subcomponent;
|
|
|
10
10
|
ds:usage "Grouping organizes table rows into collapsible sections based on a shared column value. It makes categorical structure visible directly in the table, so users can scan, focus on, and act on subsets of data without relying on filters or manual scanning. Consider grouping when users already think about the data in categories. For example, a table of support cases is naturally understood by severity, and a table of deployments is naturally understood by environment. Grouping reflects that mental model in the table layout itself.\n\nGrouping works best with medium-to-large datasets where a flat list becomes hard to navigate. It is less useful when the dataset is small or when the user’s primary task is comparing individual rows across categories, since grouping separates rows into sections that make cross-group comparison harder.\n\n## When to use\n\n- Users frequently scan or act on rows by a categorical attribute such as status, priority, or region.\n- The dataset is large enough that a flat list makes it hard to find relevant rows.\n- The data has a natural hierarchy that users already think in.\n\n## When not to use\n\n- The dataset is small enough that users can scan all rows without difficulty.\n- The primary task is comparing individual rows across categories. Sorting is a better fit.\n- The table uses keyset pagination. Grouping is incompatible with keyset pagination. Refer to the pagination with groups section for details.\n- No column has a small, known set of values. Grouping only works with enumerated values.\n\n## What can be grouped\n\nGroups are always based on columns in the table. Rows are grouped by a value in a column.\n\n- Groups can **only** be created for columns with **enumerated values**, where the value can only be one out of a set of known options (for example, “In progress”, “Finished”, “Queued”).\n- Groups **cannot** be created for columns with unique data, because that would produce many groups containing only one row. For such columns, sorting is more appropriate.\n- Tables **can** be grouped by a column that is hidden. The column does not need to be visible for grouping to work.\n\nWhen designing a table, the designer chooses which columns support grouping.\n\n## Order of groups\n\nThe order of groups is **alphabetical by default**. The designer can choose a custom order if there is meaning associated with a specific sequence. For example, a Status column could be ordered from start to finish: “In progress”, “Success”, “Failed”.\n\n## Empty groups\n\nGroups with no items are not shown. If a group has no content, the group header row is hidden entirely.\n\n## One active grouping at a time\n\nA table can only be grouped by one column at a time. If the user activates grouping on a different column, the previous grouping is deactivated and replaced by the new one.";
|
|
11
11
|
ds:guidelines "# Interactions\n\n## Choosing which column to group by\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-39979&t=2PBanDq6QA2yNcI2-4\n\nThe user selects the grouping column through the **table settings panel**.\n\n- Not all columns support grouping. Columns that do display a **“Group by” button** next to them in the settings panel.\n- Selecting the “Group by” button activates grouping for that column. The button enters an **active state**.\n- Since the table needs to be restructured and new data likely fetched, the table enters a **full skeleton loading state** while grouping is applied.\n- After loading completes, the table displays the grouped data.\n- Selecting an active “Group by” button again **deactivates** grouping. The table enters a loading state and then returns to an ungrouped view.\n- If the user selects a different column’s “Group by” button while one is already active, the previous grouping is deactivated and the new one is activated.\n- A table may offer multiple columns that support grouping.\n\n## Expand and collapse\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-50231&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-51205&t=2PBanDq6QA2yNcI2-4\n\nSelecting the group header row toggles the group between expanded and collapsed states. The chevron direction updates accordingly (down for open, right for closed).\n\nCollapsing a group hides its child rows, which means new rows may need to be loaded into the freed space. The loading behavior depends on how the group relates to pagination:\n\n- **Group spans multiple pages:** When a multi-page group is collapsed, skeleton loading placeholders appear beneath the collapsed group header while new data is fetched to fill the page.\n- **Group fits on the current page:** When a single-page group is collapsed, the loading state appears only toward the bottom of the page where new items load in. The other groups and their rows remain visible above.\n\nAfter loading completes, the collapsed group shows only its header row. The remaining space is filled with rows from subsequent groups.\n\n## Sorting within groups\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-49256&t=2PBanDq6QA2yNcI2-4\n\nWhen grouping is enabled, sorting applies **only within each group**. There is no sorting across groups.\n\n- **Without pagination (single-page groups):** Sorting is straightforward with no loading state needed. Rows within each group reorder immediately.\n- **With multi-page groups:** A loading state is required while new sorted rows are fetched. The group header remains visible with skeleton loading placeholders replacing the child rows until the sorted data arrives.\n\n## Pagination with groups\n\n\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-42366&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-42596&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-42826&t=2PBanDq6QA2yNcI2-4\n\nIf a group spans multiple pages, the **group header row is repeated** at the top of each subsequent page that contains rows from that group. For example, if the “In progress” group starts on page 1 and its last 3 items appear on page 2, the “In progress” group header row appears again at the top of page 2 above those 3 remaining rows.\n\nCollapsing a group hides rows, which changes the total page count:\n\n- While the table is in the loading state after a collapse, the **total number of pages also enters a skeleton loading state** because the page count needs to be recalculated.\n- After loading completes, the updated page count is displayed (for example, “of 20 pages” may become “of 19 pages” after collapsing a group).\n\nGrouping is **fundamentally incompatible with keyset pagination**. Keyset pagination filters rows based on the last seen value of the sort column, fetching only the next slice of individually ordered rows. Grouping requires the database to first collect all rows belonging to the same group, aggregate them, and return the collapsed result. These two concepts conflict because keyset pagination relies on a stable, unique cursor value per row, but grouped results are aggregated summaries that no longer correspond to individual rows with unique cursor values. A group may span multiple pages of the underlying data, so there is no reliable way to point a cursor at “the last group seen” using a row-level column value.\n\n\n\n## Selection with groups\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-52279&t=2PBanDq6QA2yNcI2-4\n\nThe checkbox in the group header row selects or deselects **all rows in the group**. All child row checkboxes within that group become checked or unchecked accordingly.\n\nIf only some rows within a group are selected, the group header checkbox displays a **“child selected” (indeterminate) state**, shown as a dash instead of a checkmark. This occurs both when the user deselects individual rows from a fully selected group and when the user selects individual rows without selecting the full group.\n\nGroups can span multiple pages. When the user selects a multi-page group via its header checkbox, **all items in the group are selected, including those not currently visible on the page**. The selection persists when navigating to subsequent pages. Rows belonging to the selected group on other pages also appear checked.\n\nBecause of this requirement, a table that has both selection and grouping **cannot use simple selection**. It must use **persistent selection**.\n\n### Backend dependency for group selection\n\nSelecting an entire group through the header checkbox likely requires backend support. When a group spans multiple pages, the frontend only has access to the rows currently loaded on the page. It cannot know the full set of items in the group without querying the backend. The backend needs to resolve which rows belong to the group and return them so the selection state is accurate across all pages.\n\nIf the backend does not support group-level selection, remove the checkbox from the group header row. Users can still select individual rows within a group, but they cannot select the entire group at once. This avoids a misleading interaction where the user expects all items in the group to be selected but only the currently loaded rows are affected.\n\nGrouping can also be used in tables that have no selection at all. In this case, no checkboxes appear on group headers or data rows. Only action icons (for example, edit or delete) appear on rows.\n\n";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "grouping-columns";
|
|
@@ -57,4 +56,5 @@ ds:apps.subcomponent.data_table-group_header_row a ds:Subcomponent;
|
|
|
57
56
|
ds:constraints "Requires persistent selection when used with grouping. Requires backend support for group-level selection across pages.";
|
|
58
57
|
ds:defaultValue "true when selection is enabled."
|
|
59
58
|
];
|
|
59
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
60
60
|
ds:parentComponent ds:apps.pattern.datatable.
|