@canonical/design-system 0.2.5 → 0.43.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/LICENSE +166 -0
- package/README.md +255 -14
- package/data/apps/component/file_tree.ttl +2 -0
- package/data/apps/component/key_value_pair.ttl +2 -0
- package/data/apps/component/navigation.ttl +2 -0
- package/data/apps/component/notification.ttl +2 -0
- package/data/apps/component/side_navigation.ttl +2 -0
- package/data/apps/component/skeleton_loading.ttl +2 -0
- package/data/apps/component/status_bar.ttl +2 -0
- package/data/apps/component/toolbar.ttl +2 -0
- package/data/apps/group/key_value_pairs.ttl +2 -0
- package/data/apps/group/notifications.ttl +2 -0
- package/data/apps/layout/application_layout.ttl +2 -0
- package/data/apps/layout/content_layout.ttl +2 -0
- package/data/apps/layout/empty_layout.ttl +2 -0
- package/data/apps/layout/empty_state.ttl +13 -0
- package/data/apps/layout/list_page_layout.ttl +2 -0
- package/data/apps/layout/settings_page_layout.ttl +2 -0
- package/data/apps/layout/view_layout.ttl +2 -0
- package/data/apps/pattern/action_bar.ttl +4 -2
- package/data/apps/pattern/code_diff.ttl +2 -0
- package/data/apps/pattern/{data_table.ttl → datatable.ttl} +27 -25
- package/data/apps/pattern/destructive_modal.ttl +2 -0
- package/data/apps/pattern/drawer.ttl +2 -0
- package/data/apps/pattern/keyboard_shortcuts.ttl +2 -0
- package/data/apps/pattern/notification_center.ttl +4 -2
- package/data/apps/pattern/side_panel.ttl +39 -4
- package/data/apps/pattern/sidepanel_stacked.ttl +2 -0
- package/data/apps/subcomponent/data_table-action_bar.ttl +7 -5
- package/data/apps/subcomponent/data_table-body_cell.ttl +27 -25
- package/data/apps/subcomponent/data_table-group_header_row.ttl +10 -8
- package/data/apps/subcomponent/data_table-header_cell.ttl +13 -11
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +11 -9
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +12 -10
- package/data/apps/subcomponent/data_table-settings_menu.ttl +17 -15
- package/data/apps/subcomponent/drawer-content.ttl +2 -0
- package/data/apps/subcomponent/drawer-footer.ttl +2 -0
- package/data/apps/subcomponent/drawer-header.ttl +2 -0
- package/data/apps/subcomponent/file_tree-node.ttl +2 -0
- package/data/apps/subcomponent/log.ttl +2 -0
- package/data/apps/subcomponent/side_panel-content.ttl +3 -1
- package/data/apps/subcomponent/side_panel-footer.ttl +3 -1
- package/data/apps/subcomponent/side_panel-header.ttl +3 -1
- package/data/apps.ttl +2 -0
- package/data/apps_anbox/component/theme_switcher.ttl +2 -0
- package/data/apps_anbox/pattern/side_menu.ttl +2 -0
- package/data/apps_anbox.ttl +2 -0
- package/data/apps_debcrafters/component/deb_package_card.ttl +12 -0
- package/data/apps_debcrafters/component/example.ttl +2 -0
- package/data/apps_debcrafters/component/my_fancy_component.ttl +2 -0
- package/data/apps_debcrafters.ttl +2 -0
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +2 -0
- package/data/apps_juju.ttl +2 -0
- package/data/apps_landscape/component/checkbox_group.ttl +110 -0
- package/data/apps_landscape/component/code_editor.ttl +134 -0
- package/data/apps_landscape/component/cron_schedule.ttl +40 -0
- package/data/apps_landscape/component/expandable_radio_group.ttl +106 -0
- package/data/apps_landscape/component/expandable_truncation.ttl +50 -0
- package/data/apps_landscape/component/form_section.ttl +33 -0
- package/data/apps_landscape/component/gpg_key_field.ttl +86 -0
- package/data/apps_landscape/component/grouped_select.ttl +137 -0
- package/data/apps_landscape/component/loading_state.ttl +30 -0
- package/data/apps_landscape/component/managed_file_input.ttl +75 -0
- package/data/apps_landscape/component/multi_select_field.ttl +323 -0
- package/data/apps_landscape/component/pass_rate_filter.ttl +13 -0
- package/data/apps_landscape/component/password_constraints.ttl +3 -0
- package/data/apps_landscape/component/progress_bar.ttl +100 -0
- package/data/apps_landscape/component/read_only_field.ttl +46 -0
- package/data/apps_landscape/component/search_help_popup.ttl +51 -0
- package/data/apps_landscape/component/search_query_editor.ttl +149 -0
- package/data/apps_landscape/component/tag_multi_select.ttl +52 -0
- package/data/apps_landscape/pattern/content_blocks.ttl +70 -0
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +110 -0
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +24 -0
- package/data/apps_landscape/pattern/form_field_help.ttl +67 -0
- package/data/apps_landscape/pattern/header_search_controls.ttl +106 -0
- package/data/apps_landscape/pattern/ignorable_notification.ttl +60 -0
- package/data/apps_landscape/pattern/information_grid.ttl +93 -0
- package/data/apps_landscape/pattern/instance_association.ttl +29 -0
- package/data/apps_landscape/pattern/process_flow.ttl +52 -0
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +158 -0
- package/data/apps_landscape/pattern/recurring_schedule.ttl +21 -0
- package/data/apps_landscape/pattern/responsive_action_group.ttl +77 -0
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +83 -0
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +61 -0
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +126 -0
- package/data/apps_landscape/pattern/sortable_list.ttl +50 -0
- package/data/apps_landscape/pattern/table_filter.ttl +201 -0
- package/data/apps_landscape/pattern/table_filter_chips.ttl +174 -0
- package/data/apps_landscape/pattern/table_pagination.ttl +220 -0
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +88 -0
- package/data/apps_landscape/subcomponent/bold_substring.ttl +30 -0
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +36 -0
- package/data/apps_landscape/subcomponent/label_with_description.ttl +46 -0
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +61 -0
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +36 -0
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +56 -0
- package/data/apps_landscape.ttl +2 -0
- package/data/apps_launchpad/component/accordion.ttl +12 -0
- package/data/apps_launchpad/component/avatar.ttl +4 -2
- package/data/apps_launchpad/component/badge.ttl +4 -2
- package/data/apps_launchpad/component/breadcrumbs.ttl +2 -0
- package/data/apps_launchpad/component/button.ttl +4 -2
- package/data/apps_launchpad/component/checkbox_input.ttl +6 -4
- package/data/apps_launchpad/component/chip.ttl +2 -0
- package/data/apps_launchpad/component/combobox.ttl +4 -2
- package/data/apps_launchpad/component/description_list.ttl +2 -0
- package/data/apps_launchpad/component/drawer.ttl +6 -4
- package/data/apps_launchpad/component/link.ttl +12 -0
- package/data/apps_launchpad/component/log.ttl +2 -0
- package/data/apps_launchpad/component/markdown_editor.ttl +12 -0
- package/data/apps_launchpad/component/modal.ttl +7 -5
- package/data/apps_launchpad/component/pagination.ttl +12 -0
- package/data/apps_launchpad/component/popover.ttl +12 -0
- package/data/apps_launchpad/component/radio_input.ttl +6 -4
- package/data/apps_launchpad/component/relative_timestamp.ttl +12 -0
- package/data/apps_launchpad/component/select_input.ttl +2 -0
- package/data/apps_launchpad/component/spinner.ttl +12 -0
- package/data/apps_launchpad/component/switch.ttl +6 -4
- package/data/apps_launchpad/component/table.ttl +12 -0
- package/data/apps_launchpad/component/text_input.ttl +9 -7
- package/data/apps_launchpad/component/textarea_input.ttl +10 -8
- package/data/apps_launchpad/component/timestamp.ttl +12 -0
- package/data/apps_launchpad/component/tooltip.ttl +4 -2
- package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-footer.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-group.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-helper.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +4 -2
- package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +6 -4
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +2 -0
- package/data/apps_launchpad/subcomponent/log-line.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-body.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-header.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content.ttl +4 -2
- package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content.ttl +2 -0
- package/data/apps_launchpad.ttl +2 -0
- package/data/apps_lxd/component/back_link.ttl +2 -0
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +2 -0
- package/data/apps_lxd/component/confirmation_checkbox.ttl +2 -0
- package/data/apps_lxd/component/doc_link.ttl +4 -2
- package/data/apps_lxd/component/meter.ttl +6 -4
- package/data/apps_lxd/component/output_field.ttl +2 -0
- package/data/apps_lxd/component/rename_header.ttl +17 -15
- package/data/apps_lxd/component/tab_links.ttl +6 -4
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +2 -0
- package/data/apps_lxd/view/network_topology.ttl +2 -0
- package/data/apps_lxd.ttl +2 -0
- package/data/apps_notary.ttl +2 -0
- package/data/apps_portal/component/badge.ttl +2 -0
- package/data/apps_portal/component/credit_card_input.ttl +2 -0
- package/data/apps_portal/component/key_value_pair.ttl +2 -0
- package/data/apps_portal/layout/details_view.ttl +18 -0
- package/data/apps_portal/pattern/purchase_summary.ttl +2 -0
- package/data/apps_portal/subcomponent/read_only_modal.ttl +2 -0
- package/data/apps_portal.ttl +2 -0
- package/data/apps_support/component/data_spotlight.ttl +12 -0
- package/data/apps_support/subcomponent/ai_prompt_input.ttl +12 -0
- package/data/apps_support.ttl +6 -0
- package/data/apps_workplaceengineering/component/complex_multi_select.ttl +13 -0
- package/data/apps_workplaceengineering/component/label-highlight.ttl +3 -1
- package/data/apps_workplaceengineering/component/rule.ttl +2 -0
- package/data/apps_workplaceengineering/component/skip_link.ttl +2 -0
- package/data/apps_workplaceengineering/component/theme_switcher.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/confirmation_modal.ttl +12 -0
- package/data/apps_workplaceengineering/pattern/event_timeline.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/group_card.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +2 -0
- package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +12 -0
- package/data/apps_workplaceengineering.ttl +2 -0
- package/data/concept/Foundations-Baseline.ttl +11 -0
- package/data/concept/Foundations-Density--the-form-channel.ttl +11 -0
- package/data/concept/Foundations-Grid--Layout.ttl +11 -0
- package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +11 -0
- package/data/concept/Foundations-Spacing.ttl +11 -0
- package/data/concept/Foundations-Surfaces.ttl +11 -0
- package/data/concept/Foundations-Typography.ttl +11 -0
- package/data/concept/{How-to-differentiate-components-variantsinheritance.ttl → How-to-differentiate-types-of-UI-blocks-.ttl} +5 -3
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +11 -0
- package/data/concept/How-to-support-modifiers-in-a-component.ttl +11 -0
- package/data/concept/Intentional-friction.ttl +11 -0
- package/data/concept/Question-mark-vs-information-icon.ttl +3 -1
- package/data/concept/Understanding-the-modifier-contract.ttl +11 -0
- package/data/concepttype/Explanation.ttl +2 -0
- package/data/concepttype/How-to-guide.ttl +2 -0
- package/data/concepttype/Reference.ttl +2 -0
- package/data/concepttype/Tutorial.ttl +2 -0
- package/data/documentation/layout/documentation_layout.ttl +2 -0
- package/data/documentation/pattern/library_side_navigation.ttl +3 -1
- package/data/documentation.ttl +2 -0
- package/data/global/component/accordion.ttl +180 -1
- package/data/global/component/announcement.ttl +13 -2
- package/data/global/component/avatar.ttl +2 -0
- package/data/global/component/badge.ttl +4 -2
- package/data/global/component/breadcrumbs.ttl +77 -2
- package/data/global/component/button.ttl +197 -2
- package/data/global/component/button_link.ttl +2 -0
- package/data/global/component/card.ttl +150 -3
- package/data/global/component/checkbox_field.ttl +269 -2
- package/data/global/component/chip.ttl +3 -1
- package/data/global/component/choices_field.ttl +373 -2
- package/data/global/component/code_snippet-content.ttl +3 -1
- package/data/global/component/code_snippet-header.ttl +21 -2
- package/data/global/component/code_snippet.ttl +28 -1
- package/data/global/component/color_field.ttl +2 -0
- package/data/global/component/combobox_field.ttl +470 -3
- package/data/global/component/contextual_menu.ttl +2 -0
- package/data/global/component/data_tooltip.ttl +149 -2
- package/data/global/component/date_field.ttl +158 -3
- package/data/global/component/date_time_field.ttl +157 -2
- package/data/global/component/drag_and_drop_list.ttl +13 -0
- package/data/global/component/dropdown_button.ttl +2 -0
- package/data/global/component/file_upload_field.ttl +230 -3
- package/data/global/component/heading.ttl +62 -3
- package/data/global/component/hidden_field.ttl +3 -1
- package/data/global/component/icon.ttl +3 -1
- package/data/global/component/icon_in_container.ttl +2 -0
- package/data/global/component/inline_code.ttl +2 -0
- package/data/global/component/keyboard_key.ttl +77 -2
- package/data/global/component/markdown_field.ttl +2 -0
- package/data/global/component/mode_switcher.ttl +2 -0
- package/data/global/component/month_field.ttl +2 -0
- package/data/global/component/notification_inline.ttl +2 -0
- package/data/global/component/notification_toast.ttl +2 -0
- package/data/global/component/number_field.ttl +2 -0
- package/data/global/component/pagination.ttl +2 -0
- package/data/global/component/password_field.ttl +189 -2
- package/data/global/component/phone_field.ttl +173 -2
- package/data/global/component/popover.ttl +2 -0
- package/data/global/component/range_field.ttl +165 -2
- package/data/global/component/rating_field.ttl +2 -0
- package/data/global/component/relative_timestamp.ttl +2 -0
- package/data/global/component/rich_choices_field.ttl +205 -2
- package/data/global/component/rich_text_field.ttl +2 -0
- package/data/global/component/search_field.ttl +2 -0
- package/data/global/component/segmented_control_field.ttl +2 -0
- package/data/global/component/select_field.ttl +158 -3
- package/data/global/component/switch_field.ttl +190 -3
- package/data/global/component/table.ttl +4 -2
- package/data/global/component/tabs.ttl +13 -2
- package/data/global/component/tag.ttl +13 -2
- package/data/global/component/text_field.ttl +173 -2
- package/data/global/component/textarea_field.ttl +157 -2
- package/data/global/component/tile.ttl +108 -1
- package/data/global/component/time_field.ttl +157 -2
- package/data/global/component/timestamp.ttl +2 -0
- package/data/global/component/tooltip.ttl +166 -43
- package/data/global/component/tooltip_wrapper.ttl +61 -2
- package/data/global/group/buttons.ttl +2 -0
- package/data/global/group/cards.ttl +2 -0
- package/data/global/group/code_snippets.ttl +2 -0
- package/data/global/group/keyboard_keys.ttl +101 -2
- package/data/global/group/tiles.ttl +2 -0
- package/data/global/layout/error_layout.ttl +2 -0
- package/data/global/layout/form_layout.ttl +2 -0
- package/data/global/layout/identity_page_form.ttl +2 -0
- package/data/global/modifier/alpha.ttl +2 -0
- package/data/global/modifier/beta.ttl +2 -0
- package/data/global/modifier/caution.ttl +2 -0
- package/data/global/modifier/comfortable.ttl +2 -0
- package/data/global/modifier/completed.ttl +2 -0
- package/data/global/modifier/constructive.ttl +2 -0
- package/data/global/modifier/dark.ttl +2 -0
- package/data/global/modifier/dense.ttl +2 -0
- package/data/global/modifier/destructive.ttl +2 -0
- package/data/global/modifier/editable.ttl +2 -0
- package/data/global/modifier/elevated.ttl +2 -0
- package/data/global/modifier/error.ttl +2 -0
- package/data/global/modifier/experimental.ttl +2 -0
- package/data/global/modifier/failed.ttl +2 -0
- package/data/global/modifier/focused.ttl +2 -0
- package/data/global/modifier/highlighted.ttl +2 -0
- package/data/global/modifier/in_progress.ttl +2 -0
- package/data/global/modifier/information.ttl +2 -0
- package/data/global/modifier/light.ttl +2 -0
- package/data/global/modifier/loading.ttl +2 -0
- package/data/global/modifier/modal.ttl +2 -0
- package/data/global/modifier/muted.ttl +2 -0
- package/data/global/modifier/planned.ttl +2 -0
- package/data/global/modifier/primary.ttl +2 -0
- package/data/global/modifier/secondary.ttl +2 -0
- package/data/global/modifier/stable.ttl +2 -0
- package/data/global/modifier/success.ttl +2 -0
- package/data/global/modifier/surface1.ttl +2 -0
- package/data/global/modifier/surface2.ttl +2 -0
- package/data/global/modifier/surface3.ttl +2 -0
- package/data/global/modifier/tertiary.ttl +2 -0
- package/data/global/modifier/warning.ttl +2 -0
- package/data/global/modifier/wireframe.ttl +2 -0
- package/data/global/modifier_family/_color_luminosity.ttl +2 -0
- package/data/global/modifier_family/_emphasis.ttl +2 -0
- package/data/global/modifier_family/_other.ttl +2 -0
- package/data/global/modifier_family/anticipation.ttl +2 -0
- package/data/global/modifier_family/criticality.ttl +2 -0
- package/data/global/modifier_family/density.ttl +2 -0
- package/data/global/modifier_family/importance.ttl +2 -0
- package/data/global/modifier_family/lifecycle.ttl +2 -0
- package/data/global/modifier_family/mode.ttl +2 -0
- package/data/global/modifier_family/release.ttl +2 -0
- package/data/global/modifier_family/surface.ttl +2 -0
- package/data/global/pattern/description_list.ttl +2 -0
- package/data/global/pattern/field.ttl +2 -0
- package/data/global/pattern/form.ttl +2 -0
- package/data/global/pattern/form_login.ttl +2 -0
- package/data/global/pattern/info_table.ttl +2 -0
- package/data/global/pattern/modal.ttl +431 -4
- package/data/global/pattern/navigation.ttl +2 -0
- package/data/global/pattern/stepper.ttl +2 -0
- package/data/global/pattern/table_of_contents.ttl +85 -2
- package/data/global/pattern/timeline.ttl +48 -13
- package/data/global/subcomponent/accordion-item.ttl +157 -2
- package/data/global/subcomponent/breadcrumbs-item.ttl +69 -2
- package/data/global/subcomponent/card-content.ttl +53 -2
- package/data/global/subcomponent/card-footer.ttl +2 -0
- package/data/global/subcomponent/card-header.ttl +45 -2
- package/data/global/subcomponent/card-image.ttl +13 -2
- package/data/global/subcomponent/card-thumbnail.ttl +37 -2
- package/data/global/subcomponent/chart_legend.ttl +93 -2
- package/data/global/subcomponent/chart_legend_item.ttl +77 -2
- package/data/global/subcomponent/checkbox_input.ttl +165 -2
- package/data/global/subcomponent/color_input.ttl +2 -0
- package/data/global/subcomponent/combobox_input.ttl +398 -3
- package/data/global/subcomponent/date_input.ttl +85 -2
- package/data/global/subcomponent/date_time_input.ttl +85 -2
- package/data/global/subcomponent/field-description.ttl +13 -2
- package/data/global/subcomponent/field-error.ttl +29 -0
- package/data/global/subcomponent/field-label.ttl +37 -2
- package/data/global/subcomponent/file_upload_input.ttl +158 -3
- package/data/global/subcomponent/hidden_input.ttl +3 -1
- package/data/global/subcomponent/kvp_container.ttl +77 -2
- package/data/global/subcomponent/kvpitem_base.ttl +69 -2
- package/data/global/subcomponent/markdown_input.ttl +2 -0
- package/data/global/subcomponent/modal-content.ttl +38 -2
- package/data/global/subcomponent/modal-footer.ttl +262 -2
- package/data/global/subcomponent/modal-header.ttl +294 -2
- package/data/global/subcomponent/month_input.ttl +2 -0
- package/data/global/subcomponent/number_input.ttl +2 -0
- package/data/global/subcomponent/password_input.ttl +117 -2
- package/data/global/subcomponent/phone_input.ttl +101 -2
- package/data/global/subcomponent/radio_input.ttl +94 -3
- package/data/global/subcomponent/range_input.ttl +85 -2
- package/data/global/subcomponent/rating_input.ttl +2 -0
- package/data/global/subcomponent/rich_text_input.ttl +2 -0
- package/data/global/subcomponent/search_input.ttl +5 -3
- package/data/global/subcomponent/segmented_control_input.ttl +2 -0
- package/data/global/subcomponent/select_input.ttl +86 -3
- package/data/global/subcomponent/spin_button.ttl +2 -0
- package/data/global/subcomponent/spinner.ttl +3 -1
- package/data/global/subcomponent/switch_input.ttl +86 -3
- package/data/global/subcomponent/table-cell.ttl +2 -0
- package/data/global/subcomponent/table-row.ttl +2 -0
- package/data/global/subcomponent/text_input.ttl +101 -2
- package/data/global/subcomponent/textarea_input.ttl +85 -2
- package/data/global/subcomponent/tile-content.ttl +45 -2
- package/data/global/subcomponent/tile-header.ttl +45 -2
- package/data/global/subcomponent/time_input.ttl +85 -2
- package/data/global/subcomponent/timeline-content.ttl +37 -2
- package/data/global/subcomponent/timeline-event.ttl +42 -7
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +3 -1
- package/data/global/subcomponent/timeline-header.ttl +3 -1
- package/data/global/variant/tooltip_dense.ttl +2 -0
- package/data/global/view/settings_view.ttl +2 -0
- package/data/global.ttl +2 -0
- package/data/sites/component/blog_card.ttl +2 -0
- package/data/sites/component/quote.ttl +2 -0
- package/data/sites/component/rule.ttl +2 -0
- package/data/sites/component/section.ttl +2 -0
- package/data/sites/group/blog_cards.ttl +2 -0
- package/data/sites/group/xblog_elements.ttl +2 -0
- package/data/sites/layout/blog_page_layout.ttl +2 -0
- package/data/sites/layout/case_study_layout.ttl +2 -0
- package/data/sites/layout/site_layout.ttl +2 -0
- package/data/sites/pattern/hero-github.ttl +2 -0
- package/data/sites/pattern/hero.ttl +2 -0
- package/data/sites/pattern/info_table.ttl +2 -0
- package/data/sites/pattern/pricing_section.ttl +2 -0
- package/data/sites/pattern/pricing_table.ttl +2 -0
- package/data/sites/pattern/read_more_section.ttl +2 -0
- package/data/sites/pattern/skip_link.ttl +2 -0
- package/data/sites.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/list.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/tabs.ttl +2 -0
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +2 -0
- package/data/sites_webcomponentsprototype.ttl +2 -0
- package/data/stores.ttl +2 -0
- package/data/tag/allgood.ttl +2 -0
- package/data/tag/beta.ttl +2 -0
- package/data/tag/candidate.ttl +2 -0
- package/data/tag/devbatch1.ttl +2 -0
- package/data/tag/devbatch2.ttl +2 -0
- package/data/tag/devbatch3.ttl +9 -0
- package/data/tag/devexternal.ttl +2 -0
- package/data/tag/devreactapproved.ttl +2 -0
- package/data/tag/devreactbase.ttl +2 -0
- package/data/tag/devreactpreapproved.ttl +2 -0
- package/data/tag/devspecial.ttl +2 -0
- package/data/tag/devsveltedone.ttl +2 -0
- package/data/tag/devsveltein-progress.ttl +2 -0
- package/data/tag/divergent.ttl +2 -0
- package/data/tag/docscomplete.ttl +2 -0
- package/data/tag/draft.ttl +2 -0
- package/data/tag/edge.ttl +2 -0
- package/data/tag/global-docs-missing.ttl +2 -0
- package/data/tag/has-no-global-entry.ttl +2 -0
- package/data/tag/lpto-be-upstreamed.ttl +2 -0
- package/data/tag/lptriageblocked-reqs-design.ttl +2 -0
- package/data/tag/lptriageno-upstream.ttl +2 -0
- package/data/tag/lptriagereimplement-and-deprecate.ttl +2 -0
- package/data/tag/lptriagereimplement-and-keep.ttl +2 -0
- package/data/tag/lptriageupstream-and-deprecate.ttl +2 -0
- package/data/tag/minimal.ttl +2 -0
- package/data/tag/needsdefinition.ttl +2 -0
- package/data/tag/needsdiscussion.ttl +2 -0
- package/data/tag/needsdocumentation.ttl +2 -0
- package/data/tag/needsreview.ttl +2 -0
- package/data/tag/needstriage.ttl +2 -0
- package/data/tag/needsupdate.ttl +2 -0
- package/data/tag/notstarted.ttl +2 -0
- package/data/tag/specialadoption-docs.ttl +2 -0
- package/data/tag/stable.ttl +2 -0
- package/data/tag/stylesready.ttl +2 -0
- package/data/tag/triagedbacklog.ttl +2 -0
- package/data/tag/triagedrejected.ttl +2 -0
- package/data/tag/upstream-candidate.ttl +2 -0
- package/data/tag/upstream-compliant.ttl +2 -0
- package/data/tag/upstreamcandidate.ttl +2 -0
- package/data/tag/waiting-for-delta-review.ttl +2 -0
- package/data/tag/wpeinital-implementation.ttl +2 -0
- package/data/tag/wpetriageupstream-and-deprecate.ttl +2 -0
- package/data/tagcategory/channel.ttl +2 -0
- package/data/tagcategory/concept-status.ttl +2 -0
- package/data/tagcategory/concept-type.ttl +2 -0
- package/data/tagcategory/documentation-stage.ttl +2 -0
- package/data/tagcategory/implementation-status.ttl +2 -0
- package/data/tagcategory/lpupstream.ttl +2 -0
- package/data/tagcategory/review-status.ttl +2 -0
- package/data/tagcategory/tmp.ttl +2 -0
- package/definitions/ontology.ttl +70 -1
- package/package.json +34 -8
- package/skills/adoption-a1-styles/SKILL.md +24 -0
- package/skills/adoption-a2-components/SKILL.md +22 -6
- package/skills/anatomy-author/ANATOMY_DSL_SPEC.md +1397 -327
- package/skills/anatomy-author/SKILL.md +840 -137
- package/skills/design-auditor/SKILL.md +133 -9
- package/skills/implement-component/SKILL.md +192 -23
- package/skills/specify-component/SKILL.md +124 -12
- package/skills/specify-pattern/SKILL.md +47 -8
- package/src/collect-implementations.ts +0 -0
- package/src/serializers/TTLSerializer.tests.ts +101 -0
- package/src/serializers/TTLSerializer.ts +17 -2
- package/.github/ISSUE_TEMPLATE/propose-changes-to-existing-ui-block.md +0 -14
- package/.github/ISSUE_TEMPLATE/propose-new-ui-block.md +0 -26
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -22
- package/.github/workflows/ci.yml +0 -49
- package/.github/workflows/sync-coda-manual.yml +0 -25
- package/.github/workflows/sync-coda-scheduled.yml +0 -22
- package/.github/workflows/sync-coda.yml +0 -102
- package/.mcp.json +0 -12
- package/GEMINI.md +0 -2
- package/biome.json +0 -6
- package/bun.lock +0 -392
- package/data/apps_landscape/component/truncated_cell.ttl +0 -38
- package/data/concept/Foundations-Grid.ttl +0 -9
- package/data/concept/Indicating-required-fields-in-forms.ttl +0 -9
- package/data/concepttype/Decision-guide.ttl +0 -5
- package/data/concepttype/Mental-model.ttl +0 -5
- package/examples/form-roster.target.json +0 -550
- package/source.json +0 -205
- package/specs/README.md +0 -17
- package/src/cli.ts +0 -58
- package/src/commands/extract.tests.ts +0 -40
- package/src/commands/extract.ts +0 -50
- package/src/commands/index.ts +0 -4
- package/src/commands/list.tests.ts +0 -25
- package/src/commands/list.ts +0 -26
- package/src/commands/sync.tests.ts +0 -430
- package/src/commands/sync.ts +0 -418
- package/src/commands/transform.tests.ts +0 -213
- package/src/commands/transform.ts +0 -257
- package/src/config/index.ts +0 -2
- package/src/config/source.schema.json +0 -146
- package/src/config/types.ts +0 -129
- package/src/config/validateConfig.tests.ts +0 -46
- package/src/config/validateConfig.ts +0 -21
- package/src/constants.ts +0 -19
- package/src/providers/CodaProvider.tests.ts +0 -335
- package/src/providers/CodaProvider.ts +0 -384
- package/src/providers/CodaProvider.types.generated.ts +0 -12597
- package/src/providers/detectSmartChips.tests.ts +0 -42
- package/src/providers/detectSmartChips.ts +0 -60
- package/src/providers/index.ts +0 -18
- package/src/scripts/checkDataDeletion.ts +0 -68
- package/src/scripts/evaluateDataDeletion.tests.ts +0 -100
- package/src/scripts/evaluateDataDeletion.ts +0 -100
- package/src/sync/constants.ts +0 -52
- package/src/sync/diffRoster.tests.ts +0 -455
- package/src/sync/diffRoster.ts +0 -241
- package/src/sync/loadTargetSpec.tests.ts +0 -208
- package/src/sync/loadTargetSpec.ts +0 -139
- package/src/sync/renderPlan.tests.ts +0 -144
- package/src/sync/renderPlan.ts +0 -88
- package/src/sync/snapshotTable.tests.ts +0 -31
- package/src/sync/snapshotTable.ts +0 -20
- package/src/sync/toLiveEntries.tests.ts +0 -76
- package/src/sync/toLiveEntries.ts +0 -55
- package/src/sync/types.ts +0 -101
- package/src/transform/collectDataMetrics.tests.ts +0 -108
- package/src/transform/collectDataMetrics.ts +0 -114
- package/src/transform/deltaGuards.tests.ts +0 -136
- package/src/transform/deltaGuards.ts +0 -118
- package/src/transform/expectedTables.tests.ts +0 -99
- package/src/transform/expectedTables.ts +0 -34
- package/src/transform/isValidReferenceUri.tests.ts +0 -45
- package/src/transform/isValidReferenceUri.ts +0 -55
- package/src/transform/materializeInverses.tests.ts +0 -81
- package/src/transform/materializeInverses.ts +0 -78
- package/src/transform/resolveReferences.tests.ts +0 -67
- package/src/transform/resolveReferences.ts +0 -36
- package/src/transform/resolveValue.tests.ts +0 -82
- package/src/transform/resolveValue.ts +0 -87
- package/src/transform/rowFilter.tests.ts +0 -100
- package/src/transform/rowFilter.ts +0 -55
- package/src/transform/transform.tests.ts +0 -132
- package/src/transform/transform.ts +0 -145
- package/src/transform/transformRow.malformedRefs.tests.ts +0 -127
- package/src/transform/transformRow.tests.ts +0 -466
- package/src/transform/transformRow.ts +0 -358
- package/src/transform/types.ts +0 -37
- package/tsconfig.json +0 -9
- package/vite.config.ts +0 -11
- package/vitest.config.ts +0 -50
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
2
4
|
|
|
3
5
|
ds:global.pattern.timeline a ds:Pattern;
|
|
4
|
-
ds:name "Timeline";
|
|
6
|
+
ds:name "Timeline ";
|
|
5
7
|
ds:summary "The timeline component establish a clear order of operations**.** It is a structural UI block used to represent a chronological list of events, actions, or milestones in a vertical sequence. It serves as a visual narrative, allowing users to track progress, audit history, or understand the relationship between time and specific activities at a glance. Each event can include a dateTime, actor, description, and other custom content. It also includes an optional header for users to filter or sort the events.\n\n";
|
|
6
|
-
ds:anatomyDsl "
|
|
8
|
+
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/pattern/Timeline/styles.css on .ds.timeline.\nnode:\n uri: global.pattern.timeline\n styles:\n layout.type: flex\n layout.direction: column\n edges:\n - node:\n uri: global.subcomponent.timeline-header\n relation:\n cardinality: \"0..1\"\n slotName: header\n # Timeline's own types.ts documents three edges — header [0], content [1]\n # and footer [2] — and marks the header and the footer NOT IMPLEMENTED. The\n # header keeps its edge because the block exists; no edge is written for the\n # footer, because `global.subcomponent.timeline-footer` names no ds: subject.\n # The content is referenced by uri alone: the event switch and the expansion\n # indicator live in its own anatomy, not inlined here. The notation's second,\n # exploratory tree — a props switch between\n # `timeline-content-dateTimeLeading` and `timeline-content-dateTimeTrailing`,\n # with a `props/variant` discriminator and `with:` maps — is dropped: neither\n # uri names a ds: subject, and both the qualified discriminator and `with:`\n # are retired notation.\n - node:\n uri: global.subcomponent.timeline-content\n relation:\n cardinality: \"1\"\n # The content arrives as `children`, so the slot is the default one; the\n # notation called it `content`.\n slotName: default";
|
|
7
9
|
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2336-9710&t=6a9B5L28GbEGD8q7-11";
|
|
8
10
|
ds:usage "The Timeline component is intended to provide a visual narrative of events over time. It helps users orient themselves within a process by establishing a clear relationship between specific moments and the actions that occurred during them.\n\n### When to use\n\n- When users need a chronological sequence of events to understand order and progression.\n- When users need to see a history of modifications to an object.\n- When users need to track events by different actors or entities over time.\n- When users need to understand key milestones or interactions in a process.\n- When it’s useful to filter, sort, or expand/collapse events to manage long timelines.\n\n### When not to use\n\n- When the relationship between items is based on \"Parent-Child\" logic rather than \"Before-After\" logic.\n - Incorrect: Representing a folder structure or a nested comment thread as a linear timeline.\n - Remediation: Use other patterns with indentation and structuring to better represent nesting and depth.\n- For large datasets where individual events are too numerous to display on a timeline meaningfully.\n - Incorrect: Using a timeline to list all thousands of machines created by a user.\n - Remediation: Use a table to allow for better filtering and sorting.\n- When the sequence of events is not important, a simple list or a table may be clearer.\n - Incorrect: Using a timeline to list a directory of employees just because they joined at different times.\n - Remediation: Use a table to allow for easier data scanning and better sorting.\n- When the events have non-linear relationships – network-like or branching.\n - Incorrect: Using a timeline to represent the full history of a git tree.\n - Remediation: Use a flow diagram to preserve information about diverging and converging points.\n\n### Alternative layout\n\nBy default, the DateTime is in a trailing position, and the property `dateTimePosition` has value `Trailing`. When `dateTimePosition` is set to `Leading`, the Timeline component uses an alternative layout, and DateTime is placed in a leading position.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2814-3631&t=335Uo9XV6GCUXWug-11\n\n### Filters and sorting\n\nBy default, the header is included with both filtering and sorting enabled. The header can be hidden entirely, and each control can also be hidden individually. The default sort order displays the earliest event first, but it can be set to display the latest first. The Sort button label indicates the current sort order.\n\n### Collapsing methods of long Timelines\n\nThere are three options for handling long timelines.\n\n1. Default: Hide events from the bottom of the timeline\n\nThe Timeline displays the top *{x}* events on load, with *{x}* set to 60 by default. The Expansion indicator is included at the bottom of the Timeline.\n\n1. Hide events from the middle\n\nThe Timeline displays the top *{x/2} and bottom {x/2}* events on load, with *{x}* set to 60 by default. The Expansion indicator is included in the middle of the Timeline.\n\n1. Do not hide events\n\nThe Timeline displays all events at all times.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2822-27017&t=335Uo9XV6GCUXWug-11\n\n### DateTime formats\n\nThe Timeline supports a primary and secondary dateTime format. By default, the primary format displays the date and time in the user’s local system format, while the secondary format shows relative time. The primary format is used on load, and clicking the dateTime toggles between the two formats for all dateTime in the Timeline. Hovering over the dateTime displays a tooltip showing the alternate format. Both formats are configurable by the DS consumer.\n\n### Marker style combinations\n\nDifferent combinations of marker styles can serve different use cases. In some cases, alternating marker styles helps avoid repetitive elements, while in other cases, using a consistent marker style in all events if preferred. The component provides 7 predefined marker style combinations, and also allows overriding the marker style on an individual event.\n\n1. All sizes: for any sequence of consecutive events from the same actor, use a large marker for the first event, displaying the actor’s profile picture, initials, or a generic user icon, depending on availability. Within the remaining events, for each sequence of consecutive events of the same type, use a medium marker for the first event to show the event type icon, and use small markers for the rest.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2830-27432&t=335Uo9XV6GCUXWug-11\n\n1. Large and medium: for any number of consecutive events from the same actor, use a large marker for the first event, displaying the actor’s profile picture, initials, or a user icon, depending on availability. For the remaining events, use a medium marker with an icon indicating the event type.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-34843&t=335Uo9XV6GCUXWug-11\n\n1. Large and small: For any number of consecutive events from the same actor, use a large marker for the first event, displaying the actor’s profile picture, initials, or a user icon, depending on availability. For the remaining events, use a small marker.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-35424&t=335Uo9XV6GCUXWug-11\n\n1. Medium and small: For any number of consecutive events from the same actor, use a medium marker for the first event, displaying the actor’s profile picture, initials, or a user icon, depending on availability. For the remaining events, use a small marker.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-36283&t=335Uo9XV6GCUXWug-11\n\n1. Large: Use large markers consistently in all events, with graphic elements defined individually.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-36552&t=335Uo9XV6GCUXWug-11\n\n1. Medium: Use large markers consistently in all events, with graphic elements defined individually.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-106774&t=335Uo9XV6GCUXWug-11\n\n1. Small: Use large markers consistently in all events, with graphic elements defined individually.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-115567&t=335Uo9XV6GCUXWug-11\n\n";
|
|
9
11
|
ds:guidelines "**Time Formatting**\n\nAlways use a consistent time format that complies with the copy guide (e.g., Relative like \"2 hours ago\" vs. Absolute like \"Oct 24, 2023, 10:00 AM\"). For global products, ensure the timezone is clear if the timing is critical.\n\n**Visual Continuity**\n\nThe line connecting the nodes should be solid for completed events and can be dashed or greyed out for future/planned events to indicate status.\n\n";
|
|
@@ -14,52 +16,52 @@ ds:global.pattern.timeline a ds:Pattern;
|
|
|
14
16
|
ds:name "Show controls";
|
|
15
17
|
ds:summary "Defines whether the control bar is displayed.";
|
|
16
18
|
ds:propertyType "boolean";
|
|
17
|
-
ds:
|
|
18
|
-
ds:
|
|
19
|
+
ds:defaultValue "False";
|
|
20
|
+
ds:optional "false"
|
|
19
21
|
], [
|
|
20
22
|
a ds:Property;
|
|
21
23
|
ds:name "Show actor filter";
|
|
22
24
|
ds:summary "Defines whether the Actor filter is displayed.";
|
|
23
25
|
ds:propertyType "boolean";
|
|
24
|
-
ds:
|
|
25
|
-
ds:
|
|
26
|
+
ds:defaultValue "False";
|
|
27
|
+
ds:optional "false"
|
|
26
28
|
], [
|
|
27
29
|
a ds:Property;
|
|
28
30
|
ds:name "Show event filter";
|
|
29
31
|
ds:summary "Defines whether the Event filter is displayed.";
|
|
30
32
|
ds:propertyType "boolean";
|
|
31
|
-
ds:
|
|
32
|
-
ds:
|
|
33
|
+
ds:defaultValue "False";
|
|
34
|
+
ds:optional "false"
|
|
33
35
|
], [
|
|
34
36
|
a ds:Property;
|
|
35
37
|
ds:name "Show sorting";
|
|
36
38
|
ds:summary "Defines whether the Sort button is displayed to allow changing sorting order.";
|
|
37
39
|
ds:propertyType "boolean";
|
|
38
|
-
ds:
|
|
39
|
-
ds:
|
|
40
|
+
ds:defaultValue "False";
|
|
41
|
+
ds:optional "false"
|
|
40
42
|
], [
|
|
41
43
|
a ds:Property;
|
|
42
44
|
ds:name "DateTime position";
|
|
43
45
|
ds:summary "Defines the Timeline layout – where the dateTime is placed.";
|
|
44
46
|
ds:propertyType "choice";
|
|
45
|
-
ds:optional "false";
|
|
46
47
|
ds:defaultValue "Leading";
|
|
48
|
+
ds:optional "false";
|
|
47
49
|
ds:constraints "Leading, Trailing"
|
|
48
50
|
], [
|
|
49
51
|
a ds:Property;
|
|
50
52
|
ds:name "Marker combination";
|
|
51
53
|
ds:summary "Single-choice: Defines which how Marker styles are used by the events.";
|
|
52
54
|
ds:propertyType "choice";
|
|
53
|
-
ds:optional "false";
|
|
54
55
|
ds:defaultValue "Small";
|
|
56
|
+
ds:optional "false";
|
|
55
57
|
ds:constraints "All sizes, Large and medium, Large and small, Medium and small, Large, Medium, Small"
|
|
56
58
|
], [
|
|
57
59
|
a ds:Property;
|
|
58
60
|
ds:name "Collapsing method";
|
|
59
61
|
ds:summary "Single-choice: Defines whether the Timeline collapses when it exceeds a certain number of events, and specifies how it is collapsed.";
|
|
60
62
|
ds:propertyType "choice";
|
|
61
|
-
ds:optional "false";
|
|
62
63
|
ds:defaultValue "Bottom";
|
|
64
|
+
ds:optional "false";
|
|
63
65
|
ds:constraints "None, Middle, Bottom"
|
|
64
66
|
], [
|
|
65
67
|
a ds:Property;
|
|
@@ -94,4 +96,37 @@ ds:global.pattern.timeline a ds:Pattern;
|
|
|
94
96
|
ds:timestamp "2026-03-13T00:00:00.000+01:00";
|
|
95
97
|
ds:change "updated anatomy_dsl";
|
|
96
98
|
ds:changeType "change"
|
|
99
|
+
];
|
|
100
|
+
ds:hasTokenBinding [
|
|
101
|
+
a ds:TokenBinding;
|
|
102
|
+
ds:viaBlock ds:global.subcomponent.timeline-event;
|
|
103
|
+
ds:node "$root/marker";
|
|
104
|
+
anatomy:styleKey "appearance.background";
|
|
105
|
+
anatomy:styleState "default";
|
|
106
|
+
ds:rank 1;
|
|
107
|
+
ds:consumesSymbol dt:modifier.color.foreground.primary
|
|
108
|
+
], [
|
|
109
|
+
a ds:TokenBinding;
|
|
110
|
+
ds:viaBlock ds:global.subcomponent.timeline-event;
|
|
111
|
+
ds:node "$root/marker";
|
|
112
|
+
anatomy:styleKey "appearance.background";
|
|
113
|
+
anatomy:styleState "default";
|
|
114
|
+
ds:rank 2;
|
|
115
|
+
ds:consumesSymbol dt:color.border
|
|
116
|
+
], [
|
|
117
|
+
a ds:TokenBinding;
|
|
118
|
+
ds:viaBlock ds:global.subcomponent.timeline-event;
|
|
119
|
+
ds:node "$root/marker";
|
|
120
|
+
anatomy:styleKey "appearance.border.color";
|
|
121
|
+
anatomy:styleState "default";
|
|
122
|
+
ds:rank 1;
|
|
123
|
+
ds:consumesSymbol dt:modifier.color.border
|
|
124
|
+
], [
|
|
125
|
+
a ds:TokenBinding;
|
|
126
|
+
ds:viaBlock ds:global.subcomponent.timeline-event;
|
|
127
|
+
ds:node "$root/connecting line";
|
|
128
|
+
anatomy:styleKey "appearance.background";
|
|
129
|
+
anatomy:styleState "default";
|
|
130
|
+
ds:rank 1;
|
|
131
|
+
ds:consumesSymbol dt:color.border
|
|
97
132
|
].
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
2
4
|
|
|
3
5
|
ds:global.subcomponent.accordion-item a ds:Subcomponent;
|
|
4
6
|
ds:name "Accordion.Item";
|
|
5
7
|
ds:summary "The accordion item is a collapsible content panel that belongs to a parent [Accordion](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-FfEcibePe1) component. It consists of a clickable header and a hidden content body, allowing users to toggle the visibility of information within a restricted space.";
|
|
6
|
-
ds:anatomyDsl "
|
|
8
|
+
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Accordion/common/Item/styles.css on .ds.accordion-item and\n# its child selectors (> .header, > .header > .heading, > .header > .chevron,\n# > .content). The item is a native <details>/<summary>.\nnode:\n uri: global.subcomponent.accordion-item\n styles:\n # The divider that ends each item. The roster has no block-end colour key, so\n # the bottom key carries the border-block-end the implementation writes; its\n # width, dimension.stroke.thickness.medium, has no one-edge key.\n appearance.border.bottom.color: color.border.muted\n appearance.border.style: solid\n # `border-inline` is declared as an extension point whose colour\n # (--accordion-item-border-inline-color) is deliberately left undefined, so no\n # inline border renders and nothing is bound for it; the roster carries no\n # inline-side width or colour key either.\n # layout.type/layout.direction are dropped: the item is a <details> and the\n # stylesheet declares no display for it.\n edges:\n - node:\n role: header tab\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.listStyle: none\n interaction.cursor: pointer\n spacing.gap: dimension.200 # --accordion-item-header-gap, between chevron and heading\n spacing.internal.block.start: dimension.100 # --accordion-item-header-padding-block\n spacing.internal.block.end: dimension.100 # --accordion-item-header-padding-block\n spacing.internal.inline.start: dimension.200 # --accordion-item-header-padding-inline, a surface inset\n spacing.internal.inline.end: dimension.200 # --accordion-item-header-padding-inline, a surface inset\n typography.color: color.text\n # The ghost surface channel is read on the element so it steps with\n # .surface nesting, then the flat ghost token.\n appearance.background: [surface.color.foreground.ghost, color.foreground.ghost]\n # The hover/active reads prefer --surface-color-foreground-ghost-hover\n # and -active, which no stratum declares (the surface family mints only\n # the base ghost channel), so only the flat state tokens are written.\n appearance.background@hover: color.foreground.ghost.hover\n appearance.background@active: color.foreground.ghost.active\n # A STOPGAP in the stylesheet re-points those two per surface depth —\n # color.foreground.ghost.layer2.hover/.active on a layer-2 surface and\n # the layer3 pair on a layer-3 one — until the surfaces modifier ships\n # hover and active channels. Surface depth is a context selector, not a\n # node, so the layered pairs are recorded rather than bound.\n # Whichever element sits directly above the item's block-end divider\n # subtracts the divider thickness from its own block-end padding, so\n # the item's border-box height stays a baseline multiple: collapsed,\n # that is the header; expanded, the content panel. Both are calc()s and\n # neither is bound.\n edges:\n - node:\n role: chevron\n styles:\n layout.flex.shrink: 0\n size.width: dimension.200\n size.height: dimension.200\n motion.property: transform\n # The chevron points right while the item is closed (the down\n # glyph rotated -90deg) and down once it is open. `[open]` is\n # the expanded state, but the difference between the two faces\n # is a transform and no roster key takes one, so the expanded\n # face carries no binding.\n # The rotation transition reads --motion-duration-fast and\n # --motion-easing-standard, which no stratum declares, and the\n # chain has no literal to fall back to, so neither is bound.\n edges:\n - node:\n # drawn as ::before\n role: chevron glyph\n styles:\n layout.type: block\n size.width: 100%\n size.height: 100%\n # Masked, so what the glyph binds is its colour and its\n # size: chevron-down.svg is applied as a mask over the\n # fixed chevron box and the icon token paints through it.\n # No roster key takes a mask.\n appearance.background: color.icon\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: heading\n styles:\n layout.flex.grow: 1\n layout.flex.shrink: 1\n layout.flex.basis: 0%\n size.min.width: 0\n # All five facets of the text-primary composite are read\n # (--typography-text-primary-font-{family,size,weight},\n # -line-height, -letter-spacing), so the composite is bound once.\n typography.font: typography.text.primary\n # Every heading element except <h6> is normalised down to that\n # tier with `font: inherit` and `margin: 0`; an <h6> keeps the\n # heading-6 tier from @canonical/styles-typography. Those are\n # rules on the consumer's own element inside the slot, not on a\n # node of this tree.\n relation:\n cardinality: \"1\"\n slotName: heading\n # The consumer supplies the heading through the `heading` prop, so\n # the slot is named for it; `children` go to the content panel,\n # which is the default slot.\n relation:\n cardinality: \"1\"\n slotName: header\n - node:\n role: content panel\n styles:\n typography.color: color.text\n spacing.internal.block.start: dimension.100 # --accordion-item-content-padding-block\n spacing.internal.block.end: dimension.100 # --accordion-item-content-padding-block\n spacing.internal.inline.end: dimension.200 # --accordion-item-content-padding-inline, a surface inset\n # padding-inline-start is --accordion-item-content-indent, a calc() over\n # the header's inline padding, the chevron size and the header gap, so\n # the panel's text aligns under the heading. A calc is not a symbol and\n # is not bound.\n # Inside a density scope the panel's block padding is re-derived from\n # --density-space-md and the header takes the shared control seat, so\n # both paddings become calc() over --control-seat-* and\n # --density-line-height-effective. A density or context selector is not\n # a node, and none of those names is declared.\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
7
9
|
ds:anatomyClassic "";
|
|
8
10
|
ds:usage "The accordion item is intended to reduce visual noise and page length by keeping details hidden until requested. Use only as part of the Accordion. \n";
|
|
9
11
|
ds:guidelines "";
|
|
@@ -20,4 +22,157 @@ ds:global.subcomponent.accordion-item a ds:Subcomponent;
|
|
|
20
22
|
ds:propertyType "text";
|
|
21
23
|
ds:optional "false"
|
|
22
24
|
];
|
|
23
|
-
ds:parentComponent ds:global.component.accordion
|
|
25
|
+
ds:parentComponent ds:global.component.accordion;
|
|
26
|
+
ds:hasTokenBinding [
|
|
27
|
+
a ds:TokenBinding;
|
|
28
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
29
|
+
ds:node "$root";
|
|
30
|
+
anatomy:styleKey "appearance.border.bottom.color";
|
|
31
|
+
anatomy:styleState "default";
|
|
32
|
+
ds:rank 1;
|
|
33
|
+
ds:consumesSymbol dt:color.border.muted
|
|
34
|
+
], [
|
|
35
|
+
a ds:TokenBinding;
|
|
36
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
37
|
+
ds:node "$root/header tab";
|
|
38
|
+
anatomy:styleKey "spacing.gap";
|
|
39
|
+
anatomy:styleState "default";
|
|
40
|
+
ds:rank 1;
|
|
41
|
+
ds:consumesSymbol dt:dimension.200
|
|
42
|
+
], [
|
|
43
|
+
a ds:TokenBinding;
|
|
44
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
45
|
+
ds:node "$root/header tab";
|
|
46
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
47
|
+
anatomy:styleState "default";
|
|
48
|
+
ds:rank 1;
|
|
49
|
+
ds:consumesSymbol dt:dimension.100
|
|
50
|
+
], [
|
|
51
|
+
a ds:TokenBinding;
|
|
52
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
53
|
+
ds:node "$root/header tab";
|
|
54
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
55
|
+
anatomy:styleState "default";
|
|
56
|
+
ds:rank 1;
|
|
57
|
+
ds:consumesSymbol dt:dimension.100
|
|
58
|
+
], [
|
|
59
|
+
a ds:TokenBinding;
|
|
60
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
61
|
+
ds:node "$root/header tab";
|
|
62
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
63
|
+
anatomy:styleState "default";
|
|
64
|
+
ds:rank 1;
|
|
65
|
+
ds:consumesSymbol dt:dimension.200
|
|
66
|
+
], [
|
|
67
|
+
a ds:TokenBinding;
|
|
68
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
69
|
+
ds:node "$root/header tab";
|
|
70
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
71
|
+
anatomy:styleState "default";
|
|
72
|
+
ds:rank 1;
|
|
73
|
+
ds:consumesSymbol dt:dimension.200
|
|
74
|
+
], [
|
|
75
|
+
a ds:TokenBinding;
|
|
76
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
77
|
+
ds:node "$root/header tab";
|
|
78
|
+
anatomy:styleKey "typography.color";
|
|
79
|
+
anatomy:styleState "default";
|
|
80
|
+
ds:rank 1;
|
|
81
|
+
ds:consumesSymbol dt:color.text
|
|
82
|
+
], [
|
|
83
|
+
a ds:TokenBinding;
|
|
84
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
85
|
+
ds:node "$root/header tab";
|
|
86
|
+
anatomy:styleKey "appearance.background";
|
|
87
|
+
anatomy:styleState "default";
|
|
88
|
+
ds:rank 1;
|
|
89
|
+
ds:consumesSymbol dt:surface.color.foreground.ghost
|
|
90
|
+
], [
|
|
91
|
+
a ds:TokenBinding;
|
|
92
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
93
|
+
ds:node "$root/header tab";
|
|
94
|
+
anatomy:styleKey "appearance.background";
|
|
95
|
+
anatomy:styleState "default";
|
|
96
|
+
ds:rank 2;
|
|
97
|
+
ds:consumesSymbol dt:color.foreground.ghost
|
|
98
|
+
], [
|
|
99
|
+
a ds:TokenBinding;
|
|
100
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
101
|
+
ds:node "$root/header tab";
|
|
102
|
+
anatomy:styleKey "appearance.background";
|
|
103
|
+
anatomy:styleState "hover";
|
|
104
|
+
ds:rank 1;
|
|
105
|
+
ds:consumesSymbol dt:color.foreground.ghost.hover
|
|
106
|
+
], [
|
|
107
|
+
a ds:TokenBinding;
|
|
108
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
109
|
+
ds:node "$root/header tab";
|
|
110
|
+
anatomy:styleKey "appearance.background";
|
|
111
|
+
anatomy:styleState "active";
|
|
112
|
+
ds:rank 1;
|
|
113
|
+
ds:consumesSymbol dt:color.foreground.ghost.active
|
|
114
|
+
], [
|
|
115
|
+
a ds:TokenBinding;
|
|
116
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
117
|
+
ds:node "$root/header tab/chevron";
|
|
118
|
+
anatomy:styleKey "size.width";
|
|
119
|
+
anatomy:styleState "default";
|
|
120
|
+
ds:rank 1;
|
|
121
|
+
ds:consumesSymbol dt:dimension.200
|
|
122
|
+
], [
|
|
123
|
+
a ds:TokenBinding;
|
|
124
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
125
|
+
ds:node "$root/header tab/chevron";
|
|
126
|
+
anatomy:styleKey "size.height";
|
|
127
|
+
anatomy:styleState "default";
|
|
128
|
+
ds:rank 1;
|
|
129
|
+
ds:consumesSymbol dt:dimension.200
|
|
130
|
+
], [
|
|
131
|
+
a ds:TokenBinding;
|
|
132
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
133
|
+
ds:node "$root/header tab/chevron/chevron glyph";
|
|
134
|
+
anatomy:styleKey "appearance.background";
|
|
135
|
+
anatomy:styleState "default";
|
|
136
|
+
ds:rank 1;
|
|
137
|
+
ds:consumesSymbol dt:color.icon
|
|
138
|
+
], [
|
|
139
|
+
a ds:TokenBinding;
|
|
140
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
141
|
+
ds:node "$root/header tab/heading";
|
|
142
|
+
anatomy:styleKey "typography.font";
|
|
143
|
+
anatomy:styleState "default";
|
|
144
|
+
ds:rank 1;
|
|
145
|
+
ds:consumesSymbol dt:typography.text.primary
|
|
146
|
+
], [
|
|
147
|
+
a ds:TokenBinding;
|
|
148
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
149
|
+
ds:node "$root/content panel";
|
|
150
|
+
anatomy:styleKey "typography.color";
|
|
151
|
+
anatomy:styleState "default";
|
|
152
|
+
ds:rank 1;
|
|
153
|
+
ds:consumesSymbol dt:color.text
|
|
154
|
+
], [
|
|
155
|
+
a ds:TokenBinding;
|
|
156
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
157
|
+
ds:node "$root/content panel";
|
|
158
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
159
|
+
anatomy:styleState "default";
|
|
160
|
+
ds:rank 1;
|
|
161
|
+
ds:consumesSymbol dt:dimension.100
|
|
162
|
+
], [
|
|
163
|
+
a ds:TokenBinding;
|
|
164
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
165
|
+
ds:node "$root/content panel";
|
|
166
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
167
|
+
anatomy:styleState "default";
|
|
168
|
+
ds:rank 1;
|
|
169
|
+
ds:consumesSymbol dt:dimension.100
|
|
170
|
+
], [
|
|
171
|
+
a ds:TokenBinding;
|
|
172
|
+
ds:viaBlock ds:global.subcomponent.accordion-item;
|
|
173
|
+
ds:node "$root/content panel";
|
|
174
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
175
|
+
anatomy:styleState "default";
|
|
176
|
+
ds:rank 1;
|
|
177
|
+
ds:consumesSymbol dt:dimension.200
|
|
178
|
+
].
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
2
4
|
|
|
3
5
|
ds:global.subcomponent.breadcrumbs-item a ds:Subcomponent;
|
|
4
6
|
ds:name "Breadcrumbs.Item";
|
|
5
7
|
ds:summary "The breadcrumbs item is a subcomponent representing a single level within the navigational trail of [Breadcrumbs](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-BXVe6mKJMd). It serves as a discrete link or label that signifies a specific node in the application's information hierarchy.";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.breadcrumbs-item\n styles:\n layout.type:
|
|
8
|
+
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Breadcrumbs/common/Item/styles.css on .ds.breadcrumbs-item\n# and its child selectors (> .link, > .separator, and the .current / .disabled\n# item classes).\nnode:\n uri: global.subcomponent.breadcrumbs-item\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.listStyle: none\n edges:\n - node:\n role: link\n styles:\n typography.color: color.text.link\n typography.decoration: none\n typography.decoration@hover: underline\n # A `.disabled` item is not a link: the class, not :disabled, is what\n # the implementation selects on, and it is the disabled state.\n typography.color@disabled: color.text.disabled\n interaction.cursor@disabled: not-allowed\n appearance.outline.width@focus: dimension.stroke.thickness.large\n appearance.outline.style@focus: solid\n appearance.outline.color@focus: color.text.link\n appearance.outline.offset@focus: dimension.025\n # A `.current` item keeps color.text and `cursor: default` — the trail's\n # own position, which is a variant rather than one of the five states,\n # so it is recorded here and not bound.\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: separator\n styles:\n typography.color: color.text\n # The separator is hidden on the first item of the trail.\n spacing.external.inline.start: dimension.100 # --breadcrumbs-item-separator-margin\n spacing.external.inline.end: dimension.100 # --breadcrumbs-item-separator-margin\n relation:\n cardinality: \"0..1\"";
|
|
7
9
|
ds:anatomyClassic "";
|
|
8
10
|
ds:usage "Breadcrumb items are intended to build a logical \"path\" for the user. They must be arranged sequentially to reflect the hierarchy of information domains which contextualize the current view.";
|
|
9
11
|
ds:guidelines "The Breadcrumbs Items share [the common navigation item property interface](https://docs.google.com/document/d/1HSQyocivbz1nyxF2oZ9DnAvTm4sMG_smGcddS9QBKxY/edit?tab=t.0).";
|
|
@@ -19,4 +21,69 @@ ds:global.subcomponent.breadcrumbs-item a ds:Subcomponent;
|
|
|
19
21
|
ds:optional "false";
|
|
20
22
|
ds:propertyType "boolean"
|
|
21
23
|
];
|
|
22
|
-
ds:parentComponent ds:global.component.breadcrumbs
|
|
24
|
+
ds:parentComponent ds:global.component.breadcrumbs;
|
|
25
|
+
ds:hasTokenBinding [
|
|
26
|
+
a ds:TokenBinding;
|
|
27
|
+
ds:viaBlock ds:global.subcomponent.breadcrumbs-item;
|
|
28
|
+
ds:node "$root/link";
|
|
29
|
+
anatomy:styleKey "typography.color";
|
|
30
|
+
anatomy:styleState "default";
|
|
31
|
+
ds:rank 1;
|
|
32
|
+
ds:consumesSymbol dt:color.text.link
|
|
33
|
+
], [
|
|
34
|
+
a ds:TokenBinding;
|
|
35
|
+
ds:viaBlock ds:global.subcomponent.breadcrumbs-item;
|
|
36
|
+
ds:node "$root/link";
|
|
37
|
+
anatomy:styleKey "typography.color";
|
|
38
|
+
anatomy:styleState "disabled";
|
|
39
|
+
ds:rank 1;
|
|
40
|
+
ds:consumesSymbol dt:color.text.disabled
|
|
41
|
+
], [
|
|
42
|
+
a ds:TokenBinding;
|
|
43
|
+
ds:viaBlock ds:global.subcomponent.breadcrumbs-item;
|
|
44
|
+
ds:node "$root/link";
|
|
45
|
+
anatomy:styleKey "appearance.outline.width";
|
|
46
|
+
anatomy:styleState "focus";
|
|
47
|
+
ds:rank 1;
|
|
48
|
+
ds:consumesSymbol dt:dimension.stroke.thickness.large
|
|
49
|
+
], [
|
|
50
|
+
a ds:TokenBinding;
|
|
51
|
+
ds:viaBlock ds:global.subcomponent.breadcrumbs-item;
|
|
52
|
+
ds:node "$root/link";
|
|
53
|
+
anatomy:styleKey "appearance.outline.color";
|
|
54
|
+
anatomy:styleState "focus";
|
|
55
|
+
ds:rank 1;
|
|
56
|
+
ds:consumesSymbol dt:color.text.link
|
|
57
|
+
], [
|
|
58
|
+
a ds:TokenBinding;
|
|
59
|
+
ds:viaBlock ds:global.subcomponent.breadcrumbs-item;
|
|
60
|
+
ds:node "$root/link";
|
|
61
|
+
anatomy:styleKey "appearance.outline.offset";
|
|
62
|
+
anatomy:styleState "focus";
|
|
63
|
+
ds:rank 1;
|
|
64
|
+
ds:consumesSymbol dt:dimension.025
|
|
65
|
+
], [
|
|
66
|
+
a ds:TokenBinding;
|
|
67
|
+
ds:viaBlock ds:global.subcomponent.breadcrumbs-item;
|
|
68
|
+
ds:node "$root/separator";
|
|
69
|
+
anatomy:styleKey "typography.color";
|
|
70
|
+
anatomy:styleState "default";
|
|
71
|
+
ds:rank 1;
|
|
72
|
+
ds:consumesSymbol dt:color.text
|
|
73
|
+
], [
|
|
74
|
+
a ds:TokenBinding;
|
|
75
|
+
ds:viaBlock ds:global.subcomponent.breadcrumbs-item;
|
|
76
|
+
ds:node "$root/separator";
|
|
77
|
+
anatomy:styleKey "spacing.external.inline.start";
|
|
78
|
+
anatomy:styleState "default";
|
|
79
|
+
ds:rank 1;
|
|
80
|
+
ds:consumesSymbol dt:dimension.100
|
|
81
|
+
], [
|
|
82
|
+
a ds:TokenBinding;
|
|
83
|
+
ds:viaBlock ds:global.subcomponent.breadcrumbs-item;
|
|
84
|
+
ds:node "$root/separator";
|
|
85
|
+
anatomy:styleKey "spacing.external.inline.end";
|
|
86
|
+
anatomy:styleState "default";
|
|
87
|
+
ds:rank 1;
|
|
88
|
+
ds:consumesSymbol dt:dimension.100
|
|
89
|
+
].
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
2
4
|
|
|
3
5
|
ds:global.subcomponent.card-content a ds:Subcomponent;
|
|
4
6
|
ds:name "Card.Content";
|
|
5
7
|
ds:summary "The card content is the primary body area of the component used to house the main information of the [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD). It can include body text, data points, or interactive elements like buttons and links. Its purpose is to serve as the flexible space where the detailed story or task of the card is communicated to the user. Because cards are used for comparison, this section is structured to show the same types of information across all instances in a set.";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-content\n styles:\n layout.type:
|
|
8
|
+
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Card/common/Content/styles.css on .ds.card-content, with the\n# parent's own child rules in src/lib/component/Card/styles.css\n# (.ds.card > .card-content, and the divider on a non-last section).\nnode:\n uri: global.subcomponent.card-content\n styles:\n layout.type: flex\n layout.direction: column\n layout.grid.row: 3\n layout.grid.column: \"1 / -1\"\n # --card-content-* are declared in :root. The block padding is deliberately\n # asymmetric (one baseline above, two below), which no single spacing role\n # can say.\n spacing.gap: dimension.100 # --card-content-gap, the block gap between fields\n spacing.internal.block.start: dimension.100 # --card-content-padding-block-start\n spacing.internal.block.end: dimension.200 # --card-content-padding-block-end\n spacing.internal.inline.start: dimension.200 # --card-content-padding-inline, a surface inset\n spacing.internal.inline.end: dimension.200 # --card-content-padding-inline, a surface inset\n # A content section that is not the card's last draws the divider to the\n # section below. The roster has no block-end colour key, so the bottom key\n # carries it; the matching width, dimension.stroke.thickness.medium via\n # --card-border-width, has no one-edge key at all.\n appearance.border.bottom.color: color.border.muted\n appearance.border.style: solid";
|
|
7
9
|
ds:anatomyClassic "";
|
|
8
10
|
ds:usage "";
|
|
9
11
|
ds:guidelines "";
|
|
@@ -15,4 +17,53 @@ ds:global.subcomponent.card-content a ds:Subcomponent;
|
|
|
15
17
|
ds:propertyType "node";
|
|
16
18
|
ds:optional "false"
|
|
17
19
|
];
|
|
18
|
-
ds:parentComponent ds:global.component.card
|
|
20
|
+
ds:parentComponent ds:global.component.card;
|
|
21
|
+
ds:hasTokenBinding [
|
|
22
|
+
a ds:TokenBinding;
|
|
23
|
+
ds:viaBlock ds:global.subcomponent.card-content;
|
|
24
|
+
ds:node "$root";
|
|
25
|
+
anatomy:styleKey "spacing.gap";
|
|
26
|
+
anatomy:styleState "default";
|
|
27
|
+
ds:rank 1;
|
|
28
|
+
ds:consumesSymbol dt:dimension.100
|
|
29
|
+
], [
|
|
30
|
+
a ds:TokenBinding;
|
|
31
|
+
ds:viaBlock ds:global.subcomponent.card-content;
|
|
32
|
+
ds:node "$root";
|
|
33
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
34
|
+
anatomy:styleState "default";
|
|
35
|
+
ds:rank 1;
|
|
36
|
+
ds:consumesSymbol dt:dimension.100
|
|
37
|
+
], [
|
|
38
|
+
a ds:TokenBinding;
|
|
39
|
+
ds:viaBlock ds:global.subcomponent.card-content;
|
|
40
|
+
ds:node "$root";
|
|
41
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
42
|
+
anatomy:styleState "default";
|
|
43
|
+
ds:rank 1;
|
|
44
|
+
ds:consumesSymbol dt:dimension.200
|
|
45
|
+
], [
|
|
46
|
+
a ds:TokenBinding;
|
|
47
|
+
ds:viaBlock ds:global.subcomponent.card-content;
|
|
48
|
+
ds:node "$root";
|
|
49
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
50
|
+
anatomy:styleState "default";
|
|
51
|
+
ds:rank 1;
|
|
52
|
+
ds:consumesSymbol dt:dimension.200
|
|
53
|
+
], [
|
|
54
|
+
a ds:TokenBinding;
|
|
55
|
+
ds:viaBlock ds:global.subcomponent.card-content;
|
|
56
|
+
ds:node "$root";
|
|
57
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
58
|
+
anatomy:styleState "default";
|
|
59
|
+
ds:rank 1;
|
|
60
|
+
ds:consumesSymbol dt:dimension.200
|
|
61
|
+
], [
|
|
62
|
+
a ds:TokenBinding;
|
|
63
|
+
ds:viaBlock ds:global.subcomponent.card-content;
|
|
64
|
+
ds:node "$root";
|
|
65
|
+
anatomy:styleKey "appearance.border.bottom.color";
|
|
66
|
+
anatomy:styleState "default";
|
|
67
|
+
ds:rank 1;
|
|
68
|
+
ds:consumesSymbol dt:color.border.muted
|
|
69
|
+
].
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
2
4
|
|
|
3
5
|
ds:global.subcomponent.card-header a ds:Subcomponent;
|
|
4
6
|
ds:name "Card.Header";
|
|
5
7
|
ds:summary "The card header is a structural sub-component used to provide the primary context for the [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD). It contains the title and optional subtitles or icons to identify the object being described. Its sole functionality is to offer a consistent anchoring point for identification at the top of the container.";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-header\n styles:\n layout.type:
|
|
8
|
+
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Card/common/Header/styles.css on .ds.card-header, with the\n# parent's own child rules in src/lib/component/Card/styles.css\n# (.ds.card > .card-header).\nnode:\n uri: global.subcomponent.card-header\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n layout.justify: space-between\n # The card places each section on a fixed row track and spans its single\n # column; the header is track 2.\n layout.grid.row: 2\n layout.grid.column: \"1 / -1\"\n # --card-header-gap and --card-header-padding-{block,inline} are declared in\n # :root off --dimension-200.\n spacing.gap: dimension.200 # --card-header-gap, between title and actions\n spacing.internal.block.start: dimension.200 # --card-header-padding-block, a surface inset\n spacing.internal.block.end: dimension.200 # --card-header-padding-block, a surface inset\n spacing.internal.inline.start: dimension.200 # --card-header-padding-inline, a surface inset\n spacing.internal.inline.end: dimension.200 # --card-header-padding-inline, a surface inset\n # The card collapses the header/content seam: with a content section\n # directly after it, the header's block-end padding drops to a raw 0, which\n # the parent writes as unthemable by design.\n edges:\n # The implementation renders one container with `children`; the two positions\n # are what `justify-content: space-between` is for, and they carry no styles\n # of their own there. The title's `font/weight/semibold` binding is dropped:\n # neither the header nor its children set a font-weight.\n - node:\n role: title\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: actions\n relation:\n cardinality: \"0..1\"\n slotName: actions";
|
|
7
9
|
ds:anatomyClassic "";
|
|
8
10
|
ds:usage "";
|
|
9
11
|
ds:guidelines "";
|
|
@@ -15,4 +17,45 @@ ds:global.subcomponent.card-header a ds:Subcomponent;
|
|
|
15
17
|
ds:propertyType "node";
|
|
16
18
|
ds:optional "false"
|
|
17
19
|
];
|
|
18
|
-
ds:parentComponent ds:global.component.card
|
|
20
|
+
ds:parentComponent ds:global.component.card;
|
|
21
|
+
ds:hasTokenBinding [
|
|
22
|
+
a ds:TokenBinding;
|
|
23
|
+
ds:viaBlock ds:global.subcomponent.card-header;
|
|
24
|
+
ds:node "$root";
|
|
25
|
+
anatomy:styleKey "spacing.gap";
|
|
26
|
+
anatomy:styleState "default";
|
|
27
|
+
ds:rank 1;
|
|
28
|
+
ds:consumesSymbol dt:dimension.200
|
|
29
|
+
], [
|
|
30
|
+
a ds:TokenBinding;
|
|
31
|
+
ds:viaBlock ds:global.subcomponent.card-header;
|
|
32
|
+
ds:node "$root";
|
|
33
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
34
|
+
anatomy:styleState "default";
|
|
35
|
+
ds:rank 1;
|
|
36
|
+
ds:consumesSymbol dt:dimension.200
|
|
37
|
+
], [
|
|
38
|
+
a ds:TokenBinding;
|
|
39
|
+
ds:viaBlock ds:global.subcomponent.card-header;
|
|
40
|
+
ds:node "$root";
|
|
41
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
42
|
+
anatomy:styleState "default";
|
|
43
|
+
ds:rank 1;
|
|
44
|
+
ds:consumesSymbol dt:dimension.200
|
|
45
|
+
], [
|
|
46
|
+
a ds:TokenBinding;
|
|
47
|
+
ds:viaBlock ds:global.subcomponent.card-header;
|
|
48
|
+
ds:node "$root";
|
|
49
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
50
|
+
anatomy:styleState "default";
|
|
51
|
+
ds:rank 1;
|
|
52
|
+
ds:consumesSymbol dt:dimension.200
|
|
53
|
+
], [
|
|
54
|
+
a ds:TokenBinding;
|
|
55
|
+
ds:viaBlock ds:global.subcomponent.card-header;
|
|
56
|
+
ds:node "$root";
|
|
57
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
58
|
+
anatomy:styleState "default";
|
|
59
|
+
ds:rank 1;
|
|
60
|
+
ds:consumesSymbol dt:dimension.200
|
|
61
|
+
].
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
2
4
|
|
|
3
5
|
ds:global.subcomponent.card-image a ds:Subcomponent;
|
|
4
6
|
ds:name "Card.Image";
|
|
5
7
|
ds:summary "The card image is a full-width visual element that spans the horizontal extent of the [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD) container. It is used to provide high-impact visual context or to represent the primary subject of sequentially to reflect the true architecturesequentially to reflect the true architecturesequentially to reflect the true architecturethe card, such as a product photo or a hero graphic. Its sole functionality is to reinforce the narrative of the card through large-scale media.\n\n";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-image\n styles:\n layout.type: block\n size.width:
|
|
8
|
+
ds:anatomyDsl "---\n# Authored 2026-09-13 from @canonical/react-ds-global\n# src/lib/component/Card/common/Image/styles.css on .ds.card-image, with the\n# parent's own child rules in src/lib/component/Card/styles.css\n# (.ds.card > .card-image, and the divider on a non-last section).\nnode:\n uri: global.subcomponent.card-image\n styles:\n layout.type: block\n layout.grid.row: 1\n layout.grid.column: \"1 / -1\"\n size.width: 100%\n size.height: auto\n # Media stays full bleed: the image section pads nothing.\n # An image that is not the card's last section draws the divider below it.\n # The roster has no block-end colour key, so the bottom key carries it.\n appearance.border.bottom.color: color.border.muted\n appearance.border.style: solid\n # `object.fit: cover` is dropped: the implementation sets no object-fit, and\n # the roster's key is layout.objectFit.";
|
|
7
9
|
ds:anatomyClassic "";
|
|
8
10
|
ds:usage "";
|
|
9
11
|
ds:guidelines "";
|
|
@@ -21,4 +23,13 @@ ds:global.subcomponent.card-image a ds:Subcomponent;
|
|
|
21
23
|
ds:propertyType "text";
|
|
22
24
|
ds:optional "false"
|
|
23
25
|
];
|
|
24
|
-
ds:parentComponent ds:global.component.card
|
|
26
|
+
ds:parentComponent ds:global.component.card;
|
|
27
|
+
ds:hasTokenBinding [
|
|
28
|
+
a ds:TokenBinding;
|
|
29
|
+
ds:viaBlock ds:global.subcomponent.card-image;
|
|
30
|
+
ds:node "$root";
|
|
31
|
+
anatomy:styleKey "appearance.border.bottom.color";
|
|
32
|
+
anatomy:styleState "default";
|
|
33
|
+
ds:rank 1;
|
|
34
|
+
ds:consumesSymbol dt:color.border.muted
|
|
35
|
+
].
|
|
@@ -1,12 +1,47 @@
|
|
|
1
1
|
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
2
4
|
|
|
3
5
|
ds:global.subcomponent.card-thumbnail a ds:Subcomponent;
|
|
4
6
|
ds:name "Card.Thumbnail";
|
|
5
7
|
ds:summary "Displays a small thumbnail image within a card, typically used alongside content for logo/icon representation.";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-thumbnail\n styles:\n layout.type:
|
|
8
|
+
ds:anatomyDsl "---\n# TODO implementation: no reference in @canonical/react-ds-global or react-ds-global-form\n# Notation-only migration: the structure and the bindings are kept, the values\n# are migrated off the retired slash notation.\nnode:\n uri: global.subcomponent.card-thumbnail\n # Every spacing binding below is a ROLE match, not a value match: the retired\n # value each line names is not a symbol in any namespace a spacing key admits,\n # so the symbol says what the space IS for and the old value stays on the line.\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: flex-start\n # `spacing.internal: spacing/medium` is not a roster key and spacing/medium\n # names no symbol; the four sides take the surface inset, which is what a\n # padded card section reads elsewhere in the component.\n spacing.internal.block.start: spacing.inset.surface.block\n spacing.internal.block.end: spacing.inset.surface.block\n spacing.internal.inline.start: spacing.inset.surface.inline\n spacing.internal.inline.end: spacing.inset.surface.inline\n edges:\n - node:\n role: image\n styles:\n size.width: 4rem\n size.height: 4rem\n layout.flex.shrink: 0\n layout.objectFit: contain\n relation:\n cardinality: \"1\"\n - node:\n role: content\n relation:\n cardinality: \"0..1\"\n slotName: default";
|
|
7
9
|
ds:anatomyClassic "";
|
|
8
10
|
ds:usage "";
|
|
9
11
|
ds:guidelines "";
|
|
10
12
|
ds:tier ds:global;
|
|
11
13
|
ds:documentationStage ds:tag.needsdocumentation;
|
|
12
|
-
ds:parentComponent ds:global.component.card
|
|
14
|
+
ds:parentComponent ds:global.component.card;
|
|
15
|
+
ds:hasTokenBinding [
|
|
16
|
+
a ds:TokenBinding;
|
|
17
|
+
ds:viaBlock ds:global.subcomponent.card-thumbnail;
|
|
18
|
+
ds:node "$root";
|
|
19
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
20
|
+
anatomy:styleState "default";
|
|
21
|
+
ds:rank 1;
|
|
22
|
+
ds:consumesSymbol dt:spacing.inset.surface.block
|
|
23
|
+
], [
|
|
24
|
+
a ds:TokenBinding;
|
|
25
|
+
ds:viaBlock ds:global.subcomponent.card-thumbnail;
|
|
26
|
+
ds:node "$root";
|
|
27
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
28
|
+
anatomy:styleState "default";
|
|
29
|
+
ds:rank 1;
|
|
30
|
+
ds:consumesSymbol dt:spacing.inset.surface.block
|
|
31
|
+
], [
|
|
32
|
+
a ds:TokenBinding;
|
|
33
|
+
ds:viaBlock ds:global.subcomponent.card-thumbnail;
|
|
34
|
+
ds:node "$root";
|
|
35
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
36
|
+
anatomy:styleState "default";
|
|
37
|
+
ds:rank 1;
|
|
38
|
+
ds:consumesSymbol dt:spacing.inset.surface.inline
|
|
39
|
+
], [
|
|
40
|
+
a ds:TokenBinding;
|
|
41
|
+
ds:viaBlock ds:global.subcomponent.card-thumbnail;
|
|
42
|
+
ds:node "$root";
|
|
43
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
44
|
+
anatomy:styleState "default";
|
|
45
|
+
ds:rank 1;
|
|
46
|
+
ds:consumesSymbol dt:spacing.inset.surface.inline
|
|
47
|
+
].
|