@canonical/design-system 0.1.2 → 0.2.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/.github/PULL_REQUEST_TEMPLATE.md +15 -6
- package/.github/workflows/ci.yml +14 -4
- package/.github/workflows/sync-coda-manual.yml +13 -0
- package/.github/workflows/sync-coda-scheduled.yml +9 -0
- package/.github/workflows/sync-coda.yml +65 -1
- package/README.md +132 -79
- package/bun.lock +51 -12
- package/data/apps/component/file_tree.ttl +6 -1
- package/data/apps/component/key_value_pair.ttl +5 -1
- package/data/apps/component/navigation.ttl +5 -1
- package/data/apps/component/notification.ttl +5 -1
- package/data/apps/component/side_navigation.ttl +11 -0
- package/data/apps/component/skeleton_loading.ttl +5 -1
- package/data/apps/component/status_bar.ttl +5 -1
- package/data/apps/component/toolbar.ttl +5 -1
- package/data/apps/group/key_value_pairs.ttl +11 -0
- package/data/apps/group/notifications.ttl +5 -1
- package/data/apps/layout/application_layout.ttl +4 -0
- package/data/apps/layout/content_layout.ttl +11 -1
- package/data/apps/layout/empty_layout.ttl +5 -1
- package/data/apps/layout/list_page_layout.ttl +5 -1
- package/data/apps/layout/settings_page_layout.ttl +5 -1
- package/data/apps/layout/view_layout.ttl +4 -0
- package/data/apps/pattern/action_bar.ttl +11 -0
- package/data/apps/pattern/code_diff.ttl +5 -1
- package/data/apps/pattern/data_table.ttl +205 -2
- package/data/apps/pattern/destructive_modal.ttl +5 -1
- package/data/apps/pattern/drawer.ttl +12 -0
- package/data/apps/pattern/keyboard_shortcuts.ttl +5 -1
- package/data/apps/pattern/notification_center.ttl +19 -1
- package/data/apps/pattern/side_panel.ttl +6 -1
- package/data/apps/pattern/sidepanel_stacked.ttl +5 -1
- package/data/apps/subcomponent/data_table-action_bar.ttl +27 -0
- package/data/apps/subcomponent/data_table-body_cell.ttl +106 -0
- package/data/apps/subcomponent/data_table-group_header_row.ttl +58 -0
- package/data/apps/subcomponent/data_table-header_cell.ttl +73 -0
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +44 -0
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +50 -0
- package/data/apps/subcomponent/data_table-settings_menu.ttl +63 -0
- package/data/apps/subcomponent/drawer-content.ttl +12 -0
- package/data/apps/subcomponent/drawer-footer.ttl +12 -0
- package/data/apps/subcomponent/drawer-header.ttl +12 -0
- package/data/apps/subcomponent/file_tree-node.ttl +5 -1
- package/data/apps/subcomponent/log.ttl +11 -0
- package/data/apps/subcomponent/side_panel-content.ttl +12 -0
- package/data/apps/subcomponent/side_panel-footer.ttl +12 -0
- package/data/apps/subcomponent/side_panel-header.ttl +12 -0
- package/data/apps_anbox/component/theme_switcher.ttl +10 -0
- package/data/apps_anbox/pattern/side_menu.ttl +11 -1
- package/data/apps_debcrafters/component/example.ttl +10 -0
- package/data/apps_debcrafters/component/my_fancy_component.ttl +11 -0
- package/data/apps_debcrafters.ttl +4 -0
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +4 -1
- package/data/apps_landscape/component/password_constraints.ttl +4 -1
- package/data/apps_landscape/component/truncated_cell.ttl +38 -0
- package/data/apps_launchpad/component/avatar.ttl +31 -0
- package/data/apps_launchpad/component/badge.ttl +11 -9
- package/data/apps_launchpad/component/breadcrumbs.ttl +5 -2
- package/data/apps_launchpad/component/button.ttl +11 -9
- package/data/apps_launchpad/component/checkbox_input.ttl +31 -0
- package/data/apps_launchpad/component/chip.ttl +11 -8
- package/data/apps_launchpad/component/combobox.ttl +16 -11
- package/data/apps_launchpad/component/description_list.ttl +8 -3
- package/data/apps_launchpad/component/drawer.ttl +38 -0
- package/data/apps_launchpad/component/log.ttl +58 -0
- package/data/apps_launchpad/component/modal.ttl +44 -0
- package/data/apps_launchpad/component/radio_input.ttl +37 -0
- package/data/apps_launchpad/component/select_input.ttl +38 -0
- package/data/apps_launchpad/component/switch.ttl +8 -4
- package/data/apps_launchpad/component/text_input.ttl +13 -9
- package/data/apps_launchpad/component/textarea_input.ttl +39 -0
- package/data/apps_launchpad/component/tooltip.ttl +12 -8
- package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +11 -9
- package/data/apps_launchpad/subcomponent/combobox-footer.ttl +8 -3
- package/data/apps_launchpad/subcomponent/combobox-group.ttl +10 -6
- package/data/apps_launchpad/subcomponent/combobox-helper.ttl +11 -6
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +9 -3
- package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +8 -3
- package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +12 -10
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +10 -6
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +8 -3
- package/data/apps_launchpad/subcomponent/log-line.ttl +38 -0
- package/data/apps_launchpad/subcomponent/modal-content-body.ttl +18 -0
- package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +18 -0
- package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +11 -0
- package/data/apps_launchpad/subcomponent/modal-content-header.ttl +19 -0
- package/data/apps_launchpad/subcomponent/modal-content.ttl +20 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +11 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +11 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +11 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +12 -0
- package/data/apps_launchpad/subcomponent/side_panel-content.ttl +12 -0
- package/data/apps_lxd/component/back_link.ttl +29 -0
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +54 -0
- package/data/apps_lxd/component/confirmation_checkbox.ttl +19 -3
- package/data/apps_lxd/component/doc_link.ttl +45 -0
- package/data/apps_lxd/component/meter.ttl +37 -0
- package/data/apps_lxd/component/output_field.ttl +48 -0
- package/data/apps_lxd/component/rename_header.ttl +74 -0
- package/data/apps_lxd/component/tab_links.ttl +35 -0
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +39 -0
- package/data/apps_lxd/view/network_topology.ttl +16 -2
- package/data/apps_notary.ttl +4 -0
- package/data/apps_portal/component/badge.ttl +3 -0
- package/data/apps_portal/component/credit_card_input.ttl +10 -0
- package/data/apps_portal/component/key_value_pair.ttl +10 -0
- package/data/apps_portal/pattern/purchase_summary.ttl +10 -0
- package/data/apps_portal/subcomponent/read_only_modal.ttl +10 -0
- package/data/apps_workplaceengineering/component/label-highlight.ttl +18 -0
- package/data/apps_workplaceengineering/component/rule.ttl +11 -0
- package/data/apps_workplaceengineering/component/skip_link.ttl +10 -0
- package/data/apps_workplaceengineering/component/theme_switcher.ttl +11 -0
- package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +11 -0
- package/data/apps_workplaceengineering/pattern/event_timeline.ttl +11 -0
- package/data/apps_workplaceengineering/pattern/group_card.ttl +11 -0
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +12 -0
- package/data/apps_workplaceengineering.ttl +4 -0
- package/data/documentation/layout/documentation_layout.ttl +5 -1
- package/data/documentation/pattern/library_side_navigation.ttl +6 -2
- package/data/global/component/accordion.ttl +61 -2
- package/data/global/component/announcement.ttl +12 -2
- package/data/global/component/avatar.ttl +11 -0
- package/data/global/component/badge.ttl +42 -1
- package/data/global/component/breadcrumbs.ttl +18 -2
- package/data/global/component/button.ttl +36 -8
- package/data/global/component/button_link.ttl +5 -1
- package/data/global/component/card.ttl +33 -2
- package/data/global/component/checkbox_field.ttl +11 -0
- package/data/global/component/chip.ttl +74 -2
- package/data/global/component/choices_field.ttl +11 -0
- package/data/global/component/code_snippet-content.ttl +6 -2
- package/data/global/component/code_snippet-header.ttl +6 -2
- package/data/global/component/code_snippet.ttl +13 -2
- package/data/global/component/color_field.ttl +11 -0
- package/data/global/component/combobox_field.ttl +11 -0
- package/data/global/component/contextual_menu.ttl +22 -2
- package/data/global/component/data_tooltip.ttl +84 -0
- package/data/global/component/date_field.ttl +11 -0
- package/data/global/component/date_time_field.ttl +11 -0
- package/data/global/component/dropdown_button.ttl +18 -0
- package/data/global/component/file_upload_field.ttl +11 -0
- package/data/global/component/heading.ttl +5 -1
- package/data/global/component/hidden_field.ttl +11 -0
- package/data/global/component/icon.ttl +6 -2
- package/data/global/component/icon_in_container.ttl +5 -1
- package/data/global/component/inline_code.ttl +11 -0
- package/data/global/component/keyboard_key.ttl +7 -3
- package/data/global/component/markdown_field.ttl +11 -0
- package/data/global/component/mode_switcher.ttl +11 -0
- package/data/global/component/month_field.ttl +11 -0
- package/data/global/component/notification_inline.ttl +5 -1
- package/data/global/component/notification_toast.ttl +5 -1
- package/data/global/component/number_field.ttl +11 -0
- package/data/global/component/pagination.ttl +6 -2
- package/data/global/component/password_field.ttl +11 -0
- package/data/global/component/phone_field.ttl +11 -0
- package/data/global/component/popover.ttl +5 -1
- package/data/global/component/range_field.ttl +11 -0
- package/data/global/component/rating_field.ttl +11 -0
- package/data/global/component/relative_timestamp.ttl +10 -0
- package/data/global/component/rich_choices_field.ttl +11 -0
- package/data/global/component/rich_text_field.ttl +11 -0
- package/data/global/component/search_field.ttl +11 -0
- package/data/global/component/segmented_control_field.ttl +11 -0
- package/data/global/component/select_field.ttl +11 -0
- package/data/global/component/switch_field.ttl +11 -0
- package/data/global/component/table.ttl +7 -2
- package/data/global/component/tabs.ttl +7 -3
- package/data/global/component/tag.ttl +18 -0
- package/data/global/component/text_field.ttl +11 -0
- package/data/global/component/textarea_field.ttl +11 -0
- package/data/global/component/tile.ttl +24 -3
- package/data/global/component/time_field.ttl +11 -0
- package/data/global/component/timestamp.ttl +10 -0
- package/data/global/component/tooltip.ttl +75 -56
- package/data/global/component/tooltip_wrapper.ttl +81 -0
- package/data/global/group/buttons.ttl +12 -1
- package/data/global/group/cards.ttl +9 -1
- package/data/global/group/code_snippets.ttl +5 -1
- package/data/global/group/keyboard_keys.ttl +7 -3
- package/data/global/group/tiles.ttl +5 -1
- package/data/global/layout/error_layout.ttl +5 -1
- package/data/global/layout/form_layout.ttl +5 -1
- package/data/global/layout/identity_page_form.ttl +5 -1
- package/data/global/modifier/dark.ttl +1 -1
- package/data/global/modifier/information.ttl +1 -1
- package/data/global/modifier/light.ttl +1 -1
- package/data/global/modifier/modal.ttl +6 -0
- package/data/global/modifier/surface1.ttl +6 -0
- package/data/global/modifier/surface2.ttl +6 -0
- package/data/global/modifier/surface3.ttl +6 -0
- package/data/global/modifier_family/_emphasis.ttl +2 -1
- package/data/global/modifier_family/_other.ttl +2 -1
- package/data/global/modifier_family/anticipation.ttl +2 -1
- package/data/global/modifier_family/criticality.ttl +2 -1
- package/data/global/modifier_family/density.ttl +2 -1
- package/data/global/modifier_family/importance.ttl +2 -1
- package/data/global/modifier_family/lifecycle.ttl +2 -1
- package/data/global/modifier_family/mode.ttl +7 -0
- package/data/global/modifier_family/release.ttl +2 -1
- package/data/global/modifier_family/surface.ttl +7 -0
- package/data/global/pattern/description_list.ttl +11 -0
- package/data/global/pattern/field.ttl +11 -0
- package/data/global/pattern/form.ttl +10 -0
- package/data/global/pattern/form_login.ttl +10 -0
- package/data/global/pattern/info_table.ttl +5 -1
- package/data/global/pattern/modal.ttl +7 -2
- package/data/global/pattern/navigation.ttl +5 -1
- package/data/global/pattern/stepper.ttl +5 -1
- package/data/global/pattern/table_of_contents.ttl +5 -1
- package/data/global/pattern/timeline.ttl +33 -2
- package/data/global/subcomponent/accordion-item.ttl +10 -5
- package/data/global/subcomponent/breadcrumbs-item.ttl +7 -3
- package/data/global/subcomponent/card-content.ttl +8 -3
- package/data/global/subcomponent/card-footer.ttl +12 -0
- package/data/global/subcomponent/card-header.ttl +8 -3
- package/data/global/subcomponent/card-image.ttl +8 -3
- package/data/global/subcomponent/card-thumbnail.ttl +6 -1
- package/data/global/subcomponent/chart_legend.ttl +11 -0
- package/data/global/subcomponent/chart_legend_item.ttl +11 -0
- package/data/global/subcomponent/checkbox_input.ttl +11 -0
- package/data/global/subcomponent/color_input.ttl +11 -0
- package/data/global/subcomponent/combobox_input.ttl +11 -0
- package/data/global/subcomponent/date_input.ttl +11 -0
- package/data/global/subcomponent/date_time_input.ttl +11 -0
- package/data/global/subcomponent/field-description.ttl +11 -0
- package/data/global/subcomponent/field-label.ttl +11 -0
- package/data/global/subcomponent/file_upload_input.ttl +11 -0
- package/data/global/subcomponent/hidden_input.ttl +11 -0
- package/data/global/subcomponent/kvp_container.ttl +11 -0
- package/data/global/subcomponent/kvpitem_base.ttl +11 -0
- package/data/global/subcomponent/markdown_input.ttl +11 -0
- package/data/global/subcomponent/modal-content.ttl +5 -1
- package/data/global/subcomponent/modal-footer.ttl +5 -1
- package/data/global/subcomponent/modal-header.ttl +5 -1
- package/data/global/subcomponent/month_input.ttl +11 -0
- package/data/global/subcomponent/number_input.ttl +11 -0
- package/data/global/subcomponent/password_input.ttl +11 -0
- package/data/global/subcomponent/phone_input.ttl +11 -0
- package/data/global/subcomponent/radio_input.ttl +11 -0
- package/data/global/subcomponent/range_input.ttl +11 -0
- package/data/global/subcomponent/rating_input.ttl +11 -0
- package/data/global/subcomponent/rich_text_input.ttl +11 -0
- package/data/global/subcomponent/search_input.ttl +26 -0
- package/data/global/subcomponent/segmented_control_input.ttl +11 -0
- package/data/global/subcomponent/select_input.ttl +11 -0
- package/data/global/subcomponent/spin_button.ttl +11 -0
- package/data/global/subcomponent/spinner.ttl +7 -3
- package/data/global/subcomponent/switch_input.ttl +11 -0
- package/data/global/subcomponent/table-cell.ttl +5 -1
- package/data/global/subcomponent/table-row.ttl +5 -1
- package/data/global/subcomponent/text_input.ttl +11 -0
- package/data/global/subcomponent/textarea_input.ttl +33 -0
- package/data/global/subcomponent/tile-content.ttl +7 -3
- package/data/global/subcomponent/tile-header.ttl +13 -4
- package/data/global/subcomponent/time_input.ttl +11 -0
- package/data/global/subcomponent/timeline-content.ttl +7 -2
- package/data/global/subcomponent/timeline-event.ttl +8 -3
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +6 -1
- package/data/global/subcomponent/timeline-header.ttl +6 -1
- package/data/global/variant/tooltip_dense.ttl +14 -0
- package/data/global/view/settings_view.ttl +5 -1
- package/data/sites/component/blog_card.ttl +11 -0
- package/data/sites/component/quote.ttl +11 -0
- package/data/sites/component/rule.ttl +11 -0
- package/data/sites/component/section.ttl +11 -0
- package/data/sites/group/blog_cards.ttl +11 -0
- package/data/sites/group/xblog_elements.ttl +10 -0
- package/data/sites/layout/blog_page_layout.ttl +11 -0
- package/data/{site → sites}/layout/case_study_layout.ttl +6 -2
- package/data/sites/layout/site_layout.ttl +11 -0
- package/data/sites/pattern/hero-github.ttl +11 -0
- package/data/sites/pattern/hero.ttl +11 -0
- package/data/sites/pattern/info_table.ttl +11 -0
- package/data/sites/pattern/pricing_section.ttl +11 -0
- package/data/sites/pattern/pricing_table.ttl +11 -0
- package/data/sites/pattern/read_more_section.ttl +11 -0
- package/data/sites/pattern/skip_link.ttl +11 -0
- package/data/{site.ttl → sites.ttl} +2 -2
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +4 -1
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +4 -1
- package/data/sites_webcomponentsprototype/component/list.ttl +5 -2
- package/data/sites_webcomponentsprototype/component/tabs.ttl +5 -2
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +3 -0
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +4 -1
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +4 -1
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +5 -2
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +5 -2
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +5 -2
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +5 -2
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +5 -2
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +5 -2
- package/data/tag/allgood.ttl +7 -0
- package/data/tag/beta.ttl +7 -0
- package/data/tag/candidate.ttl +7 -0
- package/data/tag/devbatch1.ttl +7 -0
- package/data/tag/devbatch2.ttl +7 -0
- package/data/tag/devexternal.ttl +7 -0
- package/data/tag/devreactapproved.ttl +7 -0
- package/data/tag/devreactbase.ttl +7 -0
- package/data/tag/devreactpreapproved.ttl +7 -0
- package/data/tag/devspecial.ttl +7 -0
- package/data/tag/devsveltedone.ttl +7 -0
- package/data/tag/devsveltein-progress.ttl +7 -0
- package/data/tag/divergent.ttl +7 -0
- package/data/tag/docscomplete.ttl +7 -0
- package/data/tag/draft.ttl +7 -0
- package/data/tag/edge.ttl +7 -0
- package/data/tag/global-docs-missing.ttl +7 -0
- package/data/tag/has-no-global-entry.ttl +7 -0
- package/data/tag/lpto-be-upstreamed.ttl +7 -0
- package/data/tag/lptriageblocked-reqs-design.ttl +7 -0
- package/data/tag/lptriageno-upstream.ttl +7 -0
- package/data/tag/lptriagereimplement-and-deprecate.ttl +7 -0
- package/data/tag/lptriagereimplement-and-keep.ttl +7 -0
- package/data/tag/lptriageupstream-and-deprecate.ttl +7 -0
- package/data/tag/minimal.ttl +7 -0
- package/data/tag/needsdefinition.ttl +7 -0
- package/data/tag/needsdiscussion.ttl +7 -0
- package/data/tag/needsdocumentation.ttl +7 -0
- package/data/tag/needsreview.ttl +7 -0
- package/data/tag/needstriage.ttl +7 -0
- package/data/tag/needsupdate.ttl +7 -0
- package/data/tag/notstarted.ttl +7 -0
- package/data/tag/specialadoption-docs.ttl +7 -0
- package/data/tag/stable.ttl +7 -0
- package/data/tag/stylesready.ttl +7 -0
- package/data/tag/triagedbacklog.ttl +7 -0
- package/data/tag/triagedrejected.ttl +7 -0
- package/data/tag/upstream-candidate.ttl +7 -0
- package/data/tag/upstream-compliant.ttl +7 -0
- package/data/tag/upstreamcandidate.ttl +7 -0
- package/data/tag/waiting-for-delta-review.ttl +7 -0
- package/data/tag/wpeinital-implementation.ttl +7 -0
- package/data/tag/wpetriageupstream-and-deprecate.ttl +6 -0
- package/data/tagcategory/channel.ttl +4 -0
- package/data/tagcategory/concept-status.ttl +4 -0
- package/data/tagcategory/concept-type.ttl +4 -0
- package/data/tagcategory/documentation-stage.ttl +4 -0
- package/data/tagcategory/implementation-status.ttl +4 -0
- package/data/tagcategory/lpupstream.ttl +4 -0
- package/data/tagcategory/review-status.ttl +4 -0
- package/data/tagcategory/tmp.ttl +4 -0
- package/definitions/ontology.ttl +133 -14
- package/examples/form-roster.target.json +550 -0
- package/package.json +5 -2
- package/skills/adoption-a1-styles/SKILL.md +115 -0
- package/skills/adoption-a2-components/SKILL.md +170 -0
- package/skills/adoption-a3-forms/SKILL.md +134 -0
- package/skills/anatomy-author/ANATOMY_DSL_SPEC.md +89 -106
- package/skills/anatomy-author/SKILL.md +318 -141
- package/skills/implement-component/SKILL.md +223 -0
- package/skills/specify-component/SKILL.md +195 -0
- package/skills/specify-pattern/SKILL.md +157 -0
- package/source.json +64 -2
- package/specs/README.md +17 -0
- package/src/cli.ts +23 -10
- package/src/commands/index.ts +1 -0
- package/src/commands/sync.tests.ts +430 -0
- package/src/commands/sync.ts +418 -0
- package/src/commands/transform.tests.ts +190 -5
- package/src/commands/transform.ts +163 -67
- package/src/constants.ts +1 -0
- package/src/providers/CodaProvider.tests.ts +94 -0
- package/src/providers/CodaProvider.ts +211 -1
- package/src/providers/detectSmartChips.tests.ts +42 -0
- package/src/providers/detectSmartChips.ts +60 -0
- package/src/scripts/checkDataDeletion.ts +68 -0
- package/src/scripts/evaluateDataDeletion.tests.ts +100 -0
- package/src/scripts/evaluateDataDeletion.ts +100 -0
- package/src/sync/constants.ts +52 -0
- package/src/sync/diffRoster.tests.ts +455 -0
- package/src/sync/diffRoster.ts +241 -0
- package/src/sync/loadTargetSpec.tests.ts +208 -0
- package/src/sync/loadTargetSpec.ts +139 -0
- package/src/sync/renderPlan.tests.ts +144 -0
- package/src/sync/renderPlan.ts +88 -0
- package/src/sync/snapshotTable.tests.ts +31 -0
- package/src/sync/snapshotTable.ts +20 -0
- package/src/sync/toLiveEntries.tests.ts +76 -0
- package/src/sync/toLiveEntries.ts +55 -0
- package/src/sync/types.ts +101 -0
- package/src/transform/collectDataMetrics.tests.ts +108 -0
- package/src/transform/collectDataMetrics.ts +114 -0
- package/src/transform/deltaGuards.tests.ts +136 -0
- package/src/transform/deltaGuards.ts +118 -0
- package/src/transform/expectedTables.tests.ts +99 -0
- package/src/transform/expectedTables.ts +34 -0
- package/src/transform/isValidReferenceUri.tests.ts +45 -0
- package/src/transform/isValidReferenceUri.ts +55 -0
- package/src/transform/materializeInverses.tests.ts +81 -0
- package/src/transform/materializeInverses.ts +78 -0
- package/src/transform/transform.tests.ts +22 -0
- package/src/transform/transform.ts +31 -3
- package/src/transform/transformRow.malformedRefs.tests.ts +127 -0
- package/src/transform/transformRow.tests.ts +82 -0
- package/src/transform/transformRow.ts +90 -7
- package/src/transform/types.ts +11 -0
- package/vitest.config.ts +29 -0
- package/data/apps/pattern/key_value_summary.ttl +0 -7
- package/data/apps_anbox/component/copy_to_clipboard.ttl +0 -7
- package/data/apps_launchpad/component/checkbox.ttl +0 -28
- package/data/apps_launchpad/component/radio.ttl +0 -34
- package/data/apps_launchpad/component/select.ttl +0 -34
- package/data/apps_launchpad/component/textarea.ttl +0 -35
- package/data/apps_launchpad/component/user_avatar.ttl +0 -25
- package/data/apps_lxd/component/copy_to_clipboard.ttl +0 -7
- package/data/apps_workplace/component/label-highlight.ttl +0 -7
- package/data/apps_workplace.ttl +0 -4
- package/data/apps_wpe.ttl +0 -4
- package/data/global/component/code.ttl +0 -7
- package/data/global/component/label.ttl +0 -14
- package/data/global/component/rich_text_editor.ttl +0 -7
- package/data/global/component/search_bar.ttl +0 -7
- package/data/global/component/theme_switcher.ttl +0 -7
- package/data/global/modifier/paper.ttl +0 -6
- package/data/global/pattern/dropdown_button.ttl +0 -7
- package/data/global/subcomponent/divider.ttl +0 -7
- package/data/global_form/component/checkbox_input.ttl +0 -7
- package/data/global_form/component/choices_input.ttl +0 -7
- package/data/global_form/component/combobox_input.ttl +0 -7
- package/data/global_form/component/custom_choices_input.ttl +0 -7
- package/data/global_form/component/datepicker_input.ttl +0 -7
- package/data/global_form/component/rating_input.ttl +0 -7
- package/data/global_form/component/rich_text_input.ttl +0 -7
- package/data/global_form/component/segmented_control_input.ttl +0 -7
- package/data/global_form/component/slider_input.ttl +0 -7
- package/data/global_form/component/switch_input.ttl +0 -7
- package/data/global_form/component/text_input.ttl +0 -7
- package/data/global_form/component/textarea_input.ttl +0 -7
- package/data/global_form/component/wysiwginput.ttl +0 -7
- package/data/global_form/pattern/field.ttl +0 -7
- package/data/global_form/pattern/form.ttl +0 -7
- package/data/global_form/subcomponent/field-description.ttl +0 -7
- package/data/global_form/subcomponent/field-label.ttl +0 -7
- package/data/global_form.ttl +0 -4
- package/data/site/component/blog_card.ttl +0 -7
- package/data/site/component/quote.ttl +0 -7
- package/data/site/component/rule.ttl +0 -7
- package/data/site/component/section.ttl +0 -7
- package/data/site/group/blog_cards.ttl +0 -7
- package/data/site/layout/blog_page_layout.ttl +0 -7
- package/data/site/layout/site_layout.ttl +0 -7
- package/data/site/pattern/hero-github.ttl +0 -7
- package/data/site/pattern/hero.ttl +0 -7
- package/data/site/pattern/info_table.ttl +0 -7
- package/data/site/pattern/pricing_section.ttl +0 -7
- package/data/site/pattern/pricing_table.ttl +0 -7
- package/data/site/pattern/read_more_section.ttl +0 -7
- package/data/site/pattern/skip_link.ttl +0 -7
- package/skills/component-specifier/SKILL.md +0 -412
|
@@ -2,31 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.component.button a ds:Component;
|
|
4
4
|
ds:name "Button";
|
|
5
|
-
ds:summary "Buttons trigger actions within an interface, typically involving data transformation or manipulation. They provide clear visual indicators of the primary actions users can perform on a page or section.\n";
|
|
5
|
+
ds:summary "Buttons trigger actions within an interface, typically involving data transformation or manipulation. They provide clear visual indicators of the primary actions users can perform on a page or section.\n\n";
|
|
6
6
|
ds:anatomyDsl "---\nnode:\n uri: global.component.button\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n layout.justify: center\n interaction.cursor: pointer\n appearance.radius: dimension/radius/sth \n background.color: [modifier/color/foreground, color/foreground/sth]\n edges:\n - node:\n role: icon\n styles:\n size.width: size/icon/small\n size.height: size/icon/small\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: label\n styles:\n typography.weight: font/weight/medium\n relation:\n cardinality: \"0..1\"\n slotName: default\n";
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2093-5214&t=hZuG5NMGmwurwbXa-1\n\nStyling \nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2378-8459&t=hZuG5NMGmwurwbXa-1";
|
|
8
|
+
ds:usage "Use buttons for meaningful interactions that transform, submit, or manipulate data, such as: \n\n- Submitting forms\n- Deleting items\n- Processing payments\n- Updating settings\n\nActions represent state changes in the application rather than simple navigation.\n\nButtons help establish clear visual hierarchy by signaling the most important actions available to users at any given moment. This hierarchy is critical to effective interface design. Users should immediately understand what action they're expected to take. \n\nWhile buttons should primarily trigger actions, they can occasionally be used for navigation when the context demands it. This is most appropriate for high-priority conversion points, such as call-to-action buttons in hero sections that direct users to, for example, sign-up flows or landing pages. In these cases, the button represents a key user journey rather than standard navigation. \n\n### When to use\n\n- For actions that transform, submit, or manipulate data\n- To draw attention to the most important action on a page or section\n- For high-priority conversion points or key user journeys\n- When the interaction represents a meaningful state change in the application\n\n### When not to use\n\n- For simple navigation between pages (use links instead)\n- When you already have a primary button visible in the current viewport (consider using secondary or tertiary button styles instead)\n- For multiple competing actions of equal importance (reconsider your information architecture and prioritize one clear primary action)\n\n### Call to actions\n\nAlmost always, there is an action that the user needs to perform on a page. Guide users toward the main action within the user flow that you have designed. **This means being opinionated about what action the user should be performing and using that as the primary call to action.** Rather than presenting users with an overwhelming array of choices, you should clearly signal the intended path forward. As a result, the main action on any given page should, in most cases, be represented by a primary button.\n\nBe deliberate about the number of calls-to-action you present. Each additional CTA dilutes the user's focus and makes it harder for them to decide what to do. Ideally, limit pages to as few CTAs as possible so users clearly understand their intended path forward. **As a rule of thumb, there should almost never be more than one primary button visible in the user's viewport at a time.** \n\nWhen multiple primary buttons compete for attention simultaneously, the hierarchy collapses and users face decision paralysis. If you find yourself needing multiple primary actions in view, reconsider whether they're all truly primary and whether some could be deprioritized or removed entirely.";
|
|
9
|
+
ds:guidelines "# Button hierarchy\n\nEach button variant signals a different level of emphasis. Choose the variant that matches the role of the action on the page.\n\n\n\n**Primary**\n\nUse the primary variant for primary calls to action. Typical examples include the main action on an app’s table page, the hero call to action on a website. It also confirms non-destructive actions, such as submitting a form or proceeding to the next step.\n\n**Secondary**\n\nUse the secondary variant for secondary actions paired with a primary button. Apply it when no single action on the page should dominate. Use it when all actions share the same level of importance, or when the user may or may not choose to act.\n\n**Tertiary**\n\nUse the tertiary variant for tertiary actions paired with a more prominent button, such as “Back” or “Cancel”. It holds the lowest level of emphasis, so only use it when the element is clearly a button. In practice, this means pairing it with other buttons. Icon-only buttons are often base buttons.\n\n \n**Brand**\n\nUse the brand variant for actions and call to actions that live in an editorial setting, like sites or documentation tiers. All button levels are available as a brand version.\n\n**Anticipation modifier family**\n\n**Constructive**\n\nUse the constructive modifier for buttons whose actions create something new, such as a new instance, a new machine, or a new row, if you need to emphasize the constructive/additive nature of it. \n \n**Destructive**\n\nUse the the destructive modifier to warn the user that a destructive, irreversible action will be triggered.\n\n\n\n**Combinations**\n\nShow at most one primary button, whether default or using modifiers, in a given view. Supplement it with secondary or tertiary buttons as needed, and make sure the primary button reflects the main action you want the user to take. If all actions share the same level of importance and you do not want to direct the user to a specific one, use secondary buttons. Always pair tertiary buttons with other buttons. \n\n\n# Button order and alignment\n\nRight-align buttons when:\n\n- The action moves the user forward in a flow, such as forms, wizards, or checkout\n- The button appears in a modal dialog or confirmation window\n- The button appears in a settings or configuration panel\n- The button completes or submits something\n- The position follows the natural end of task after scanning content left to right\n\nLeft-align buttons when:\n\n- The button continues left-aligned content, such as a hero, card, or marketing block\n- The action is a “Back” or “Cancel” that returns users to a previous state\n- The button appears in an article page or a content-heavy context where buttons are secondary to the text\n\n# Icon buttons\n\nWhen space is limited and the actions have recognizable icons, buttons may use an icon without text. Reserve icon-only buttons for very common actions such as delete, edit, or close. Always pair an icon-only button with a [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW) that states the action clearly. Add a delay to the [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW) so it does not interrupt the user.\n\n# When to disable buttons\n\nYou should keep buttons enabled by default so users always know how to proceed. Disable a button only when the action is clearly unavailable.\n\nYou may disable a button, but you must ensure users understand why it is disabled and how to move forward. Pair the disabled button with a Tooltip that explains why the action is unavailable.\n\nThis matters most for form submissions. Users may miss a required field in longer or more complex forms, so a disabled submit button can leave them stuck without a clear reason. If you disable the button, make the cause visible; otherwise, keep it enabled and let validation feedback guide users to the mistake.\n\nThe same applies to external constraints like permissions, plan limits, or missing prerequisites. Where you can, offer an alternative that unblocks the user. For example, if an empty state depends on a prerequisite, show the action that completes the prerequisite instead of a disabled button.\n\n# Dual buttons\n\nOpposing actions can sometimes be combined into a single button, such as play and pause in a video player. The icon or label should reflect the action that will occur when the user presses the button. If the media is playing, show the pause icon. If it is paused, show the play icon. This aligns with user intent, because users select an action, not a status.\n\n# Text in buttons\n\nWrite button labels as a verb plus noun in sentence case, with no punctuation. Use clear, action-oriented language that names the outcome, such as \"Get Ubuntu Pro\" rather than a generic \"Submit\". When a button relates to a nearby heading, match the language so the action reads as a direct answer. For example, on a card with the heading \"Would you like to save your changes?\", label the button \"Save changes\".\n\n# Accessibility\n\n## Reduced motion\n\n- Disable animations when prefers-reduced-motion: reduce is set\n\n## Keyboard support and focus order\n\n- As the button is interactable it should be focused.\n- After the button is activated ensure the focus is set correctly based on the type of action the button performs. See [W3C WAI-ARIA Authoring Practices Button Design Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/) for a list of examples.\n- Once focussed, the associated action should be executed if the `Enter` or `Space` key is pressed.\n\n## Aria labels\n\n- In some contexts, it may be necessary to indicate to the user that a button is in a pressed state, such as when a button opens a contextual menu. This can be done by adding `aria-pressed=\"true\"` to the button with JavaScript when the button is clicked, and removed when necessary.\n\n";
|
|
7
10
|
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdocumentation;
|
|
8
12
|
ds:hasProperty [
|
|
9
13
|
a ds:Property;
|
|
10
14
|
ds:name "content";
|
|
15
|
+
ds:summary "Determines the text that is being displayed in the button. Either text or an icon needs to be provided. If no text is provided but an icon is, it is an icon only button";
|
|
11
16
|
ds:propertyType "text";
|
|
12
|
-
ds:optional "
|
|
17
|
+
ds:optional "true"
|
|
18
|
+
], [
|
|
19
|
+
a ds:Property;
|
|
20
|
+
ds:name "icon";
|
|
21
|
+
ds:summary "Determines the icon that is being displayed in the button. Either text or an icon needs to be provided. If no text is provided but an icon is, it is an icon only button";
|
|
22
|
+
ds:propertyType "choice";
|
|
23
|
+
ds:optional "true";
|
|
24
|
+
ds:defaultValue "no icon"
|
|
13
25
|
], [
|
|
14
26
|
a ds:Property;
|
|
15
27
|
ds:name "size";
|
|
28
|
+
ds:summary "Controls the size of the button. The smaller size can be used in places where space is at a premium.";
|
|
16
29
|
ds:propertyType "choice";
|
|
17
|
-
ds:optional "false"
|
|
30
|
+
ds:optional "false";
|
|
31
|
+
ds:defaultValue "default"
|
|
18
32
|
], [
|
|
19
33
|
a ds:Property;
|
|
20
34
|
ds:name "anticipation";
|
|
35
|
+
ds:summary "Buttons can consume the Anticipation modifier family";
|
|
21
36
|
ds:propertyType "choice";
|
|
22
|
-
ds:optional "
|
|
23
|
-
ds:constraints "Should affect background color
|
|
37
|
+
ds:optional "true";
|
|
38
|
+
ds:constraints "Should affect background color and border"
|
|
24
39
|
], [
|
|
25
40
|
a ds:Property;
|
|
26
41
|
ds:name "variantSpecial";
|
|
42
|
+
ds:summary "?";
|
|
27
43
|
ds:propertyType "choice";
|
|
28
44
|
ds:optional "false";
|
|
29
|
-
ds:
|
|
30
|
-
ds:
|
|
45
|
+
ds:defaultValue "default";
|
|
46
|
+
ds:constraints "[default, special, exceptional]"
|
|
47
|
+
];
|
|
48
|
+
ds:changeLog [
|
|
49
|
+
a ds:ChangeLogEntry;
|
|
50
|
+
ds:timestamp "2026-02-20T00:00:00.000+01:00";
|
|
51
|
+
ds:change "Decided to split the button into multiple components: the select and the dropdown became their own components. This means there is no need to have a right side icon for the button";
|
|
52
|
+
ds:changeType "decision"
|
|
53
|
+
], [
|
|
54
|
+
a ds:ChangeLogEntry;
|
|
55
|
+
ds:timestamp "2026-03-06T11:00:00.000+01:00";
|
|
56
|
+
ds:change "In order to disambiguate the button and the button link components there was a decision made in the contribution process meeting to keep the components together, until the discussion of affordances (and potentially use cases) have been finalized. In the documentation review meeting we came to the same decision.";
|
|
57
|
+
ds:changeType "decision"
|
|
31
58
|
];
|
|
32
|
-
ds:hasModifierFamily ds:global.modifier_family.anticipation, ds:global.modifier_family.importance
|
|
59
|
+
ds:hasModifierFamily ds:global.modifier_family.anticipation, ds:global.modifier_family.importance;
|
|
60
|
+
ds:specializedBy ds:global.component.dropdown_button.
|
|
@@ -2,6 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.component.card a ds:Component;
|
|
4
4
|
ds:name "Card";
|
|
5
|
-
ds:summary "The card
|
|
5
|
+
ds:summary "The card is a container that is designed to represent data objects that share the same structure. Unlike the more flexible [Tile](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-eThhoLZg3Y), a card is designed to have multiple units displayed beside one another. Because of this, the card has a predictable structure that allows the user to compare attributes across data objects.\n\n";
|
|
6
6
|
ds:anatomyDsl "---\nnode:\n uri: global.component.card\n styles:\n layout.type: stack\n layout.direction: vertical\n appearance.background: color/surface/card\n appearance.radius: radius/card\n edges:\n - node:\n uri: global.subcomponent.card-header\n relation:\n cardinality: \"0..1\"\n slotName: header\n - node:\n uri: global.subcomponent.card-image\n relation:\n cardinality: \"0..1\"\n slotName: media\n - node:\n uri: global.subcomponent.card-content\n relation:\n cardinality: \"1\"\n slotName: default\n";
|
|
7
|
-
ds:
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3104-11741&t=ZeOhPBVqjN81UglM-1\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2124-397&t=2fO23I8WsyT0YVJ1-4";
|
|
8
|
+
ds:usage "Cards are intended for use in \"collection-based\" views. They are suitable for grids and galleries where multiple data objects of the same type are displayed next to each other. \n\n### When to use\n\n- When you have a repeating data structure with a uniform set of attributes that requires high legibility across many instances.\n- When the container itself acts as a toggle or a checkbox for selecting an item from a group. (radio card) // should be linking to forms\n- When the user behavior is focused on exploration of options, rather than searching for an already identified item of the group. Cards facilitate consuming the information of an individual data object, in contrast with a table where the emphasis is on comparison and ability to scan. \n- When building a responsive table, on small viewports, the designer can choose between horizontal scroll, or converting table rows into cards. \n\n### When not to use\n\n- When a single piece of information is being highlighted on a page without any \"peers\".\n - Incorrect: A single card floating in the middle of a dashboard to show \"Total users\".\n - Remediation: Use a [Tile](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-eThhoLZg3Y) component designed for individual metric display.\n- When the user needs to perform deep data analysis or multi-column sorting on regular size pages.\n - Incorrect: Forcing 50 columns of data into a small card format.\n - Remediation: Use a [Table](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Olq5LYSopF) to allow for better horizontal scanning and sorting of specific values.";
|
|
9
|
+
ds:guidelines "Styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2124-397&t=ch8BFFPUe9gCvMdg-1";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdocumentation;
|
|
12
|
+
ds:hasProperty [
|
|
13
|
+
a ds:Property;
|
|
14
|
+
ds:optional "false"
|
|
15
|
+
];
|
|
16
|
+
ds:hasSubcomponent ds:global.subcomponent.card-footer, ds:global.subcomponent.card-thumbnail, ds:global.subcomponent.card-content, ds:global.subcomponent.card-image, ds:global.subcomponent.card-header;
|
|
17
|
+
ds:changeLog [
|
|
18
|
+
a ds:ChangeLogEntry;
|
|
19
|
+
ds:timestamp "2025-12-05T00:00:00.000+01:00";
|
|
20
|
+
ds:change "testing the structure";
|
|
21
|
+
ds:changeType "change"
|
|
22
|
+
], [
|
|
23
|
+
a ds:ChangeLogEntry;
|
|
24
|
+
ds:timestamp "2025-12-08T00:00:00.000+01:00";
|
|
25
|
+
ds:change "Another test";
|
|
26
|
+
ds:changeType "change"
|
|
27
|
+
], [
|
|
28
|
+
a ds:ChangeLogEntry;
|
|
29
|
+
ds:timestamp "2026-04-06T00:00:00.000+02:00";
|
|
30
|
+
ds:change "→ I would recommend adding to the decision log as defered; Diana: This was the design decision - it should be an opt-in responsive behaviour. we can link to “table” and “data table” for more info";
|
|
31
|
+
ds:changeType "decision"
|
|
32
|
+
], [
|
|
33
|
+
a ds:ChangeLogEntry;
|
|
34
|
+
ds:timestamp "2026-04-06T00:00:00.000+02:00";
|
|
35
|
+
ds:change "This usage guideline stays in the general card, until radio cards get separated into their own components: When the container itself acts as a toggle or a checkbox for selecting an item from a group. (radio card) // should be linking to form ";
|
|
36
|
+
ds:changeType "change"
|
|
37
|
+
];
|
|
38
|
+
ds:specializedBy ds:apps_workplaceengineering.pattern.travel_provider_card.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.component.checkbox_field a ds:Component;
|
|
4
|
+
ds:name "CheckboxField";
|
|
5
|
+
ds:summary "A form control for a single yes/no decision, pairing a binary choice with its label, optional guidance, and validation. Use it when a user must accept, enable, or opt in to one independent thing as part of a form.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.component.checkbox-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.checkbox-input\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "A labelled binary choice within a form.\n\n\n\n### When to use\n\n- A single opt-in or acceptance (e.g. agree to terms).\n\n- Toggling one independent option whose value is committed with the form.\n\n\n\n### When not to use\n\n- Several related, mutually-exclusive options — use [RichChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-OE7Ygmz_vT) or [ChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-IFk-NNRL3C) .\n\n- A setting that takes effect immediately on toggle — use [SwitchField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-vZovGhu5_P) .";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -2,6 +2,78 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.component.chip a ds:Component;
|
|
4
4
|
ds:name "Chip";
|
|
5
|
-
ds:summary "A
|
|
5
|
+
ds:summary "A chip is a compact, interactive component used to represent an attribute, entity, while facilitating secondary actions. Chips elevate specific information in the visual hierarchy, such as categories or selected tags, allowing users to trigger contextual behaviors like filtering, triggering a [Popover](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-i-62pvfoOF), selection, or dismissal. Unlike the [Tag](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-osLY8UcQUp), chips are always actionable. Chips should complement, rather than replace, the primary page actions.\n\n";
|
|
6
6
|
ds:anatomyDsl "";
|
|
7
|
-
ds:
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2877-8032&t=ch8BFFPUe9gCvMdg-1\n\nStyling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2093-9647&t=ch8BFFPUe9gCvMdg-1\n\n";
|
|
8
|
+
ds:usage "### When to use\n\n- When displaying applied filters in a list, allowing users to see and dismiss active parameters. For example, the [ComboboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-kfEQ25cX4a) displays selected items inside the input as a dismissible Chip.\n- When displaying a tag, category, or other attributes that a user can interact with. For example, use as a shortcut to filtering.\n- When displaying an entity (an object with its own parameters) that needs to trigger a popover for more information. For example, a computer name that would be rendered as a chip and display more details inside a popover when interacted with. \n- When users need to interact with tags, categories, or objects that can be added or removed from a collection.\n\n### When not to use\n\n- If the information is purely read-only (e.g., a \"Status\" indicator), use the [Tag](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-osLY8UcQUp) component instead.\n- Do not use chips for actions on a page, such as \"Submit,\" \"Save,\" or \"Delete All\"; use a [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr) for these tasks.\n- Chips should not be used as navigation. They should not replace links, the primary navigation menu nor replace [Breadcrumbs](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-BXVe6mKJMd) for structural navigation.\n- If the user needs to input detailed text or data, use a [Field](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-y2LECO9EbF) or [SelectInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-xiMRYATXwr) component rather than a series of chips.\n- Avoid using too many chips in a single view if they compete for attention with the primary content of the page.";
|
|
9
|
+
ds:guidelines "Accessibility\n\n## **Color accessibility**\n\n- Chips border colors need to satisfy 3:1 contrast against the lightest/darkest background color state.\n- Use a modifier if it makes sense semantically for your use case.\n- Avoid using semantic color modifiers on top of colored backgrounds.\n- Ensure you don’t use colour as the only visual means of conveying information or an action.\n\n## Alternative text\n\n- There should be an alternative text specified when the value (text) doesn't provide enough contextual information E.g. \"status important\" instead of the default \"important\" as the value of the chip\n\n## Keyboard interactions and focus\n\n- When pressing `Enter` a default chip should perform the filtering action based on its value, the dismissible chip should revert the filtering behavior.\n- When tabulating through chips, the focus area should be the whole chip for the default chip, the dismissible area for the dismissible chip. ";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition;
|
|
12
|
+
ds:hasProperty [
|
|
13
|
+
a ds:Property;
|
|
14
|
+
ds:name "value";
|
|
15
|
+
ds:summary "Controls what the value of the chips is.";
|
|
16
|
+
ds:propertyType "text";
|
|
17
|
+
ds:optional "false"
|
|
18
|
+
], [
|
|
19
|
+
a ds:Property;
|
|
20
|
+
ds:name "lead";
|
|
21
|
+
ds:summary "Controls what the lead of the chip is.";
|
|
22
|
+
ds:propertyType "text";
|
|
23
|
+
ds:optional "true"
|
|
24
|
+
], [
|
|
25
|
+
a ds:Property;
|
|
26
|
+
ds:name "icon";
|
|
27
|
+
ds:summary "Controls the icon that is shown in the chip.";
|
|
28
|
+
ds:optional "true";
|
|
29
|
+
ds:defaultValue "none"
|
|
30
|
+
], [
|
|
31
|
+
a ds:Property;
|
|
32
|
+
ds:name "state";
|
|
33
|
+
ds:summary "The state the button is currently in. ";
|
|
34
|
+
ds:propertyType "choice";
|
|
35
|
+
ds:optional "false";
|
|
36
|
+
ds:defaultValue "default"
|
|
37
|
+
], [
|
|
38
|
+
a ds:Property;
|
|
39
|
+
ds:name "color";
|
|
40
|
+
ds:summary "The color the chip should have. Be aware that some of the colors might be interpreted in a semantic way by users. The color token for chips allows input of a hue, and auto generates the correct lightness and chroma. ";
|
|
41
|
+
ds:propertyType "choice";
|
|
42
|
+
ds:optional "false";
|
|
43
|
+
ds:defaultValue "color-foreground-secondary-root"
|
|
44
|
+
], [
|
|
45
|
+
a ds:Property;
|
|
46
|
+
ds:name "size";
|
|
47
|
+
ds:summary "Determines the vertical spacing of the chip. Dense can be used in situations where space is limited";
|
|
48
|
+
ds:propertyType "choice";
|
|
49
|
+
ds:optional "false";
|
|
50
|
+
ds:defaultValue "default"
|
|
51
|
+
], [
|
|
52
|
+
a ds:Property;
|
|
53
|
+
ds:name "dismissible";
|
|
54
|
+
ds:summary "Determines wether the chip can be dismissed or not. The read-only variant can not be dismissible.";
|
|
55
|
+
ds:propertyType "boolean";
|
|
56
|
+
ds:optional "true";
|
|
57
|
+
ds:defaultValue "false"
|
|
58
|
+
], [
|
|
59
|
+
a ds:Property;
|
|
60
|
+
ds:name "badge";
|
|
61
|
+
ds:summary "Can be used to attach a badge to the chip.";
|
|
62
|
+
ds:propertyType "object";
|
|
63
|
+
ds:optional "true";
|
|
64
|
+
ds:defaultValue "none"
|
|
65
|
+
];
|
|
66
|
+
ds:changeLog [
|
|
67
|
+
a ds:ChangeLogEntry;
|
|
68
|
+
ds:timestamp "2026-02-20T09:00:00.000+01:00";
|
|
69
|
+
ds:change "added initial documentation";
|
|
70
|
+
ds:changeType "change"
|
|
71
|
+
], [
|
|
72
|
+
a ds:ChangeLogEntry;
|
|
73
|
+
ds:timestamp "2026-05-01T00:00:00.000+02:00";
|
|
74
|
+
ds:change "we decided to not use chips as filters - in the sense as they are the only option to filtering, however, we want the chips to act as a shortcut to a filter: so when clicking on a chip triggers a filter selection ";
|
|
75
|
+
ds:changeType "decision"
|
|
76
|
+
], [
|
|
77
|
+
a ds:ChangeLogEntry;
|
|
78
|
+
ds:timestamp "2026-05-01T00:00:00.000+02:00"
|
|
79
|
+
].
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.component.choices_field a ds:Component;
|
|
4
|
+
ds:name "ChoicesField";
|
|
5
|
+
ds:summary "A form control for selecting one or several options from a set of text-labelled choices, with control over whether the options sit inline or stacked. It frames the set with a label, optional guidance, and validation.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.component.simple-choices-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n role: option\n styles: {}\n edges:\n - switch:\n on: props\n cases:\n - uri: global.subcomponent.radio-input\n default: true\n - uri: global.subcomponent.checkbox-input\n relation:\n cardinality: \"1\"\n - node:\n role: label\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"2..*\"";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "Presents a small, fully visible set of options as text-only labels, where the arrangement (inline or stacked) carries meaning.\n\n\n\n### When to use\n\n- The full set of options is short enough to show at once without scrolling or filtering.\n\n- Each option is described well by a plain text label, with no supporting imagery or secondary detail.\n\n- The way options are laid out — side by side or stacked — is part of how the choice reads.\n\n\n\n### When not to use\n\n- Options need rich labels with supporting detail or imagery — use [RichChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-OE7Ygmz_vT) .\n\n- The list is long enough that filtering would help find an option — use [ComboboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-kfEQ25cX4a) \n\n- The choice is a single yes/no decision — use [CheckboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-vwBCoHgXoG) .";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -3,5 +3,9 @@
|
|
|
3
3
|
ds:global.component.code_snippet-content a ds:Component;
|
|
4
4
|
ds:name "CodeSnippet.Content";
|
|
5
5
|
ds:summary "";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.code_snippet-content\n styles:\n layout.type: stack\n layout.direction: vertical\n layout.overflow: hidden\n edges:\n - node:\n role: scroll area\n styles:\n layout.overflow: scroll\n layout.display: block\n edges:\n - node:\n role: code block\n styles:\n typography.size: font/size/code\n typography.color: color/text/code\n spacing.internal: spacing/medium\n layout.display: block\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.copy_to_clipboard\n relation:\n cardinality: \"1\"\n
|
|
7
|
-
ds:
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.code_snippet-content\n styles:\n layout.type: stack\n layout.direction: vertical\n layout.overflow: hidden\n edges:\n - node:\n role: scroll area\n styles:\n layout.overflow: scroll\n layout.display: block\n edges:\n - node:\n role: code block\n styles:\n typography.size: font/size/code\n typography.color: color/text/code\n spacing.internal: spacing/medium\n layout.display: block\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.copy_to_clipboard\n relation:\n cardinality: \"1\"\n";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:parentComponent ds:global.component.code_snippet.
|
|
@@ -3,5 +3,9 @@
|
|
|
3
3
|
ds:global.component.code_snippet-header a ds:Component;
|
|
4
4
|
ds:name "CodeSnippet.Header";
|
|
5
5
|
ds:summary "";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.code_snippet-header\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n spacing.internal: spacing/small\n appearance.border.bottom: border/style/divider\n appearance.background: color/surface/code-header\n edges:\n - node:\n role: filename\n styles:\n typography.size: font/size/small\n typography.color: color/text/muted\n layout.flex: 1\n relation:\n cardinality: \"1\"\n slotName: default\n
|
|
7
|
-
ds:
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.code_snippet-header\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n spacing.internal: spacing/small\n appearance.border.bottom: border/style/divider\n appearance.background: color/surface/code-header\n edges:\n - node:\n role: filename\n styles:\n typography.size: font/size/small\n typography.color: color/text/muted\n layout.flex: 1\n relation:\n cardinality: \"1\"\n slotName: default\n";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:parentComponent ds:global.component.code_snippet.
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.component.code_snippet a ds:Component;
|
|
4
4
|
ds:name "CodeSnippet";
|
|
5
|
-
ds:summary "The code snippet component displays multi-line or complex code, commands, and technical content that requires distinct visual treatment from surrounding content. This covers full code files, terminal commands, and their output. It supports showing code in multiple languages and different versions of a product or library. For single-line code, use the
|
|
5
|
+
ds:summary "The code snippet component displays multi-line or complex code, commands, and technical content that requires distinct visual treatment from surrounding content. This covers full code files, terminal commands, and their output. It supports showing code in multiple languages and different versions of a product or library. For single-line code, use the [InlineCode](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-SbanhxEvMc) component's inline variant instead.";
|
|
6
6
|
ds:anatomyDsl "---\nnode:\n uri: global.component.code_snippet\n styles:\n layout.type: stack\n layout.direction: vertical\n appearance.background: color/surface/code\n appearance.radius: radius/code\n appearance.border: border/style/code\n edges:\n - node:\n uri: global.subcomponent.code_snippet-header\n relation:\n cardinality: \"0..1\"\n slotName: header\n - node:\n uri: global.subcomponent.code_snippet-content\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
7
|
-
ds:
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3150-3250&t=xywvHwUKZ8RRCYSo-1";
|
|
8
|
+
ds:usage "Use code snippet to display complex or lengthy code, commands, and technical content that benefits from features such as syntax highlighting, line numbers, and language or version selection. Always provide surrounding context that explains how the displayed code is relevant to the reader or the page content.\n\nKeep titles short and descriptive of the type of code the reader can expect in the content area.\n\n### **When to use**\n\n- The code is multi-line and benefits from syntax highlighting or correct indentation.\n- The content needs to be presented in multiple languages.\n- The content needs to be presented across different versions of a product or library, such as a command with different syntax between versions.\n- Line numbers would help the reader navigate or reference the code.\n- You need to display a full code file.\n\n### **When not to use**\n\n- For inline code references within running text. \n - Incorrect: Inserting a multi-line code snippet block in the middle of a paragraph to highlight a single variable like `const user`.\n - Remediation: Use the [InlineCode](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-SbanhxEvMc) component’s inline variant instead.\n- For log output or simple pre-formatted text. \n - Incorrect: Wrapping a server access log in a code snippet component.\n - Remediation: Use the [InlineCode](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-SbanhxEvMc) component’s code block variant instead.\n- As a code editor. Code snippet is read-only and should not be made editable. As of now the design system does not provide a code editor.\n\n";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition;
|
|
12
|
+
ds:hasSubcomponent ds:global.component.code_snippet-content, ds:global.component.code_snippet-header;
|
|
13
|
+
ds:changeLog [
|
|
14
|
+
a ds:ChangeLogEntry;
|
|
15
|
+
ds:timestamp "2026-03-21T00:00:00.000+01:00";
|
|
16
|
+
ds:change "added minimal documentation based on previous work session with design team";
|
|
17
|
+
ds:changeType "change"
|
|
18
|
+
].
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.component.color_field a ds:Component;
|
|
4
|
+
ds:name "ColorField";
|
|
5
|
+
ds:summary "";
|
|
6
|
+
ds:anatomyDsl "";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.component.combobox_field a ds:Component;
|
|
4
|
+
ds:name "ComboboxField";
|
|
5
|
+
ds:summary "A form control for choosing one or several values from a large set by typing to filter, then selecting from the narrowed list. It frames the entry with a label, optional guidance, and validation, and suits sets too long to scan comfortably.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.component.combobox-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.combobox-input\n relation:\n cardinality: \"1\"\n slotName: default\n\\`\\`\\`";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "\n### When to use\n- The set of options is large enough that scanning all of them at once is impractical.\n- Filtering as the user types meaningfully speeds up finding the intended value.\n- Either a single selection or multiple selections from the same long set is needed.\n\n### When not to use\n- The set is short and can be shown in full — use **Choices**, **SimpleChoices**, or **Select**.\n- The value is open-ended and not drawn from a predefined set — use **Text**.";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.component.contextual_menu a ds:Component;
|
|
4
4
|
ds:name "ContextualMenu";
|
|
5
|
-
ds:summary "";
|
|
5
|
+
ds:summary "A contextual menu provides secondary actions and options that can be attached to various interface controls, including Buttons, command Links, and right-click interactions. It displays relevant actions based on the context of the element or area it's associated with, helping to keep the interface clean while making additional functionality easily accessible when needed. ";
|
|
6
6
|
ds:anatomyDsl "";
|
|
7
|
-
ds:
|
|
7
|
+
ds:anatomyClassic "Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=5746-5679&t=B51H6nnIINbJS0am-4\n\nStyling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4456-89917&t=mrOkyDfhQY9JZwMz-1\n\n";
|
|
8
|
+
ds:usage "A contextual menu provides secondary actions and options that can be attached to various interface controls, including Buttons, command Links, and right-click interactions. It displays relevant actions based on the context of the element or area it's associated with, helping to keep the interface clean while making additional functionality easily accessible when needed. \n\nContextual menus are designed to initiate and perform actions, not to collect input from users. They work best for presenting action-oriented options that transform, manipulate or delete based on the user's selection. \n\n## When to use\n\n- Providing secondary actions for specific elements or content items\n- Offering context-specific operations that relate to a selected item or area\n- Keeping the primary interface clean by hiding less frequently used actions\n- Right-click functionality where desktop conventions apply\n\n## When not to use\n\n\n\n- As an input method for forms or filters. \n - Incorrect: Using a contextual menu to allow users to pick a date or select a category within a data-entry form.\n - Remediation: Use a [SelectInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-xiMRYATXwr) instead to ensure the input is properly associated with the form field.\n- For collecting user preferences or settings that require input selection. \n - Incorrect: Nesting checkboxes or radio buttons inside a contextual menu to let users toggle notification settings. \n - Remediation: Use a dedicated page or a [Modal](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-XsokbPLmnc) containing standard form controls like switches and checkboxes.\n- When the actions are primary and should be immediately visible. \n - Incorrect: Hiding the only \"Delete\" or \"Edit\" button inside a contextual menu, forcing users to discover the menu before they can perform a critical task. \n - Remediation: Surface high-priority actions directly in the UI using [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr)s or icon buttons to ensure they are discoverable at a glance.\n- For navigation that serves as the main way to move through your application. \n - Incorrect: Placing the main links to \"Dashboard,\" \"Profile,\" and \"Settings\" inside a right-click or overflow contextual menu. \n - Remediation: Use [Navigation](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-nkDiZdUMkV) or [Tabs](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-1SwWDDUyIt) to provide a persistent and accessible map of the application's architecture.\n\n\n\n## Grouping actions\n\nWhen a contextual menu contains many actions, consider organizing them into logical action groups to improve scannability and reduce cognitive load. Group related actions together based on their function or purpose.\n\nCommon grouping categories include:\n\n- **Edit actions**: Copy, cut, paste, duplicate\n- **Organization actions**: Move to folder, rename, sort\n- **Sharing and permissions**: Share, change permissions, export\n- **Destructive actions**: Delete, archive, remove (typically separated at the bottom)\n- **View options**: Open in new tab, preview, download\n\n## Managing menu length\n\nAvoid letting contextual menus grow too long, as this creates cognitive overload and makes scanning difficult. If you have many actions available:\n\n- First, group related actions using the categories mentioned above to improve organization\n- For longer lists, consider nesting actions into submenus to reduce the initial visual complexity\n- Evaluate whether all actions are truly necessary in the contextual menu, or if some could be moved to a dedicated settings area or toolbar";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition;
|
|
12
|
+
ds:hasProperty [
|
|
13
|
+
a ds:Property;
|
|
14
|
+
ds:name "Actions";
|
|
15
|
+
ds:summary "The actions that this contextual menu should have. Optionally also sets wether specific actions should be grouped in action groups.";
|
|
16
|
+
ds:propertyType "object";
|
|
17
|
+
ds:optional "false"
|
|
18
|
+
];
|
|
19
|
+
ds:changeLog [
|
|
20
|
+
a ds:ChangeLogEntry;
|
|
21
|
+
ds:timestamp "2026-05-04T00:00:00.000+02:00";
|
|
22
|
+
ds:change "Initial commit"
|
|
23
|
+
], [
|
|
24
|
+
a ds:ChangeLogEntry;
|
|
25
|
+
ds:timestamp "2026-05-11T00:00:00.000+02:00";
|
|
26
|
+
ds:change "formatting to our template"
|
|
27
|
+
].
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.component.data_tooltip a ds:Component;
|
|
4
|
+
ds:name "DataTooltip";
|
|
5
|
+
ds:summary "The data tooltip is a tooltip designed specifically for data visualisation. \n\nIts primary purpose is to reveal values when users interact with charts, graphs, maps, or other data-driven elements. \n\nIt is used for displaying metrics on hover, clarifying data points that cannot be fully shown in the visual itself. \n\nThis variant helps users interpret information accurately without cluttering the interface with labels that are always visible.\n\nRelated to [Tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-ONb9LwkGvW) and [TooltipWrapper](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-69TNyYt7M9) ";
|
|
6
|
+
ds:anatomyDsl "Data\n\n```yaml\nnode:\n uri: ds:global.component:Tooltip.Data\n edges:\n - node:\n role: surface\n styles:\n appearance.background: color/surface/tooltip\n size.max.width: size/tooltip/data/max\n layout.type: stack\n layout.direction: vertical\n layout.align: start\n spacing.internal.vertical: dimension/100\n spacing.internal.horizontal: dimension/100\n edges:\n - node:\n uri: ds:global.subcomponent:TooltipHeading\n styles:\n typography.color: color/text/onTooltip\n typography.size: text/secondary/strong\n relation:\n cardinality: \"0..1\"\n slotName: heading\n\n - node:\n uri: ds:global.subcomponent:ChartLegend\n relation:\n cardinality: \"1\"\n slotName: default\n\n - node:\n uri: ds:global.subcomponent:TooltipArrow\n styles:\n appearance.background: color/surface/tooltip\n relation:\n cardinality: \"0..1\"\n slotName: arrow \n```";
|
|
7
|
+
ds:anatomyClassic "**Data**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4226-3427&t=w0be1UjrfjZ1CrvI-1**\n\n1. Container\n\nAs above.\n\n1. Text\n\nDisplays the data label and value (e.g. Ubuntu Server - 40%)\n\n1. Cursor-follow behaviour \n\nTooltip tracks pointer position with pre-defined offsets.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4520-95247&t=2fO23I8WsyT0YVJ1-4";
|
|
8
|
+
ds:usage "When to use\n\n- When inspecting individual data points in charts or visualisations\n- When users move quickly between adjacent data points\n- When content is structured as short label–value pairs (e.g. “OS: Ubuntu 24.04”, “CPU usage: 72%”), optionally with colour indicators to match visual elements such as charts\n\n\n\nWhen not to use\n\n- When used outside of data visualisation contexts\n - Incorrect: A data tooltip is used to explain a form field\n - Remediation: Use a [Standard tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-Y9PpN4FiwA)\n\nWhen explaining UI controls or icons\n\n - Incorrect: A data tooltip is attached to a settings icon\n - Remediation: Use a [Standard tooltip](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20chnVyhaz/_rui-Y9PpN4FiwA) \n\nWhen information must persist beyond hover\n\n - Incorrect: A data tooltip contains important information users must reference continuously\n - Remediation: Use a persistent component such as [Popover](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-i-62pvfoOF) or inline content";
|
|
9
|
+
ds:guidelines "### Animation\n\n- Show with a 400 ms delay after hover or focus\n- Hide with a 400 ms delay after the pointer leaves\n- Cancel display if the pointer exits before the show delay completes\n- If the pointer moves directly from one tooltip trigger to another, show the new tooltip immediately and skip the previous tooltip’s exit animation\n\n### **Transition**\n\n- **Type**: spring\n- **Duration**: 0.4 s\n- **Bounce**: 0.2\n- **Delay**: 0 s\n\n\n\nSpecific for data tooltip:\n\n- Cursor-follow behaviour; follows the cursor while open.\n- Cursor-follow placement direction: **Right**\n- Horizontal offset from cursor: **16 px**\n- Vertical offset from cursor: **8 px**\n\n### Motion feel\n\n- Preset: **Snappy**\n- Bounce profile: **No-bounce**";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdocumentation;
|
|
12
|
+
ds:inheritsFrom ds:global.component.tooltip;
|
|
13
|
+
ds:hasProperty [
|
|
14
|
+
a ds:Property;
|
|
15
|
+
ds:name "***Data tooltip***";
|
|
16
|
+
ds:optional "false"
|
|
17
|
+
], [
|
|
18
|
+
a ds:Property;
|
|
19
|
+
ds:name "Show header";
|
|
20
|
+
ds:summary "Shows legend header";
|
|
21
|
+
ds:optional "true";
|
|
22
|
+
ds:propertyType "boolean"
|
|
23
|
+
], [
|
|
24
|
+
a ds:Property;
|
|
25
|
+
ds:name "Indicator";
|
|
26
|
+
ds:summary "Shows colour marker matching chart encoding";
|
|
27
|
+
ds:optional "true";
|
|
28
|
+
ds:propertyType "boolean"
|
|
29
|
+
], [
|
|
30
|
+
a ds:Property;
|
|
31
|
+
ds:name "Show cursor";
|
|
32
|
+
ds:summary "Tooltip follows cursor instead of anchoring to trigger";
|
|
33
|
+
ds:optional "false";
|
|
34
|
+
ds:propertyType "boolean"
|
|
35
|
+
], [
|
|
36
|
+
a ds:Property;
|
|
37
|
+
ds:name "*Cursor animation* *(framer)*";
|
|
38
|
+
ds:optional "false"
|
|
39
|
+
], [
|
|
40
|
+
a ds:Property;
|
|
41
|
+
ds:name "cursorFollow.position";
|
|
42
|
+
ds:summary "Cursor-follow placement direction";
|
|
43
|
+
ds:optional "false";
|
|
44
|
+
ds:propertyType "choice"
|
|
45
|
+
], [
|
|
46
|
+
a ds:Property;
|
|
47
|
+
ds:name "cursorFollow.offsetX";
|
|
48
|
+
ds:summary "Horizontal offset from cursor";
|
|
49
|
+
ds:optional "false";
|
|
50
|
+
ds:propertyType "number"
|
|
51
|
+
], [
|
|
52
|
+
a ds:Property;
|
|
53
|
+
ds:name "cursorFollow.offsetY";
|
|
54
|
+
ds:summary "Vertical offset from cursor";
|
|
55
|
+
ds:optional "false";
|
|
56
|
+
ds:propertyType "number"
|
|
57
|
+
], [
|
|
58
|
+
a ds:Property;
|
|
59
|
+
ds:name "Motion feel";
|
|
60
|
+
ds:summary "High-level motion tuning preset";
|
|
61
|
+
ds:optional "true";
|
|
62
|
+
ds:propertyType "choice"
|
|
63
|
+
], [
|
|
64
|
+
a ds:Property;
|
|
65
|
+
ds:name "***All variants***";
|
|
66
|
+
ds:optional "false"
|
|
67
|
+
], [
|
|
68
|
+
a ds:Property;
|
|
69
|
+
ds:name "Type";
|
|
70
|
+
ds:summary "Selects the tooltip variant";
|
|
71
|
+
ds:optional "false";
|
|
72
|
+
ds:propertyType "choice"
|
|
73
|
+
], [
|
|
74
|
+
a ds:Property;
|
|
75
|
+
ds:name "Surrounding UI theme";
|
|
76
|
+
ds:summary "Sets tooltip theme based on surrounding UI context";
|
|
77
|
+
ds:optional "false";
|
|
78
|
+
ds:propertyType "choice"
|
|
79
|
+
];
|
|
80
|
+
ds:hasSubcomponent ds:global.subcomponent.chart_legend, ds:global.subcomponent.chart_legend_item;
|
|
81
|
+
ds:changeLog [
|
|
82
|
+
a ds:ChangeLogEntry;
|
|
83
|
+
ds:timestamp "2026-04-22T00:00:00.000+02:00"
|
|
84
|
+
].
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.component.date_field a ds:Component;
|
|
4
|
+
ds:name "DateField";
|
|
5
|
+
ds:summary "A form control for collecting a single calendar date from the user, such as a start day, deadline, or date of birth. It frames the entry with a label, optional guidance, and validation, lets the user pick a day from a calendar metaphor, and can confine the selection to an allowed range of dates.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.component.date-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.date-input\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "\n### When to use\n- Collecting one specific calendar day (start date, deadline, date of birth, appointment day).\n- The date is an absolute point that benefits from a calendar metaphor rather than free typing.\n- The allowable dates form a continuous range that can be bounded by an earliest and latest day.\n\n### When not to use\n- A time of day with no calendar day attached — use **Time**.\n- A calendar day together with a time of day — use **DateTime**.\n- A day drawn from a small, named set rather than the open calendar — use **Select** or **Choices**.\n- A span between two days rather than a single point — use a date-range field.";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.component.date_time_field a ds:Component;
|
|
4
|
+
ds:name "DateTimeField";
|
|
5
|
+
ds:summary "A form control for collecting a combined date and time from the user, such as a scheduled event, deadline with a cut-off hour, or timestamp. It frames the entry with a label, optional guidance, and validation, lets the user pick a calendar day and a time of day together, and can confine the selection to an allowed range and to set increments.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.component.datetime-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.datetime-input\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "A labelled combined date-and-time entry within a form.\n\n\n\n### When to use\n\n- Collecting a single moment that needs both a calendar day and a time of day (scheduled event, deadline with a cut-off hour, timestamp).\n\n- The value is an absolute point in time that benefits from a combined calendar-and-clock metaphor.\n\n- The allowable moments form a continuous range that can be bounded by an earliest and latest moment, optionally snapped to set increments.\n\n### When not to use\n\n- A calendar day with no time attached — use [DateField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Btd18SrL7F) \n\n- A time of day with no calendar day attached — use [TimeField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-BoM_2nGCi9) .\n\n- A moment drawn from a small, named set rather than the open range — use [SelectField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-u5dH7O-tHI) or [RichChoicesField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-OE7Ygmz_vT) .\n\n- A span between two moments rather than a single point — use a date-range field.";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.component.dropdown_button a ds:Component;
|
|
4
|
+
ds:name "DropdownButton";
|
|
5
|
+
ds:summary "A Dropdown Button is a specialized button that includes a persistent chevron icon to indicate nested functionality. Unlike standard [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr)s that execute a single, immediate action, the Dropdown Button reveals a [ContextualMenu](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-riXODq1wpR) of options or controls. This visual cue ensures users understand that an interaction will expand the interface to provide further choices rather than triggering an instantaneous system change. \n";
|
|
6
|
+
ds:anatomyDsl "";
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3155-10498&t=xywvHwUKZ8RRCYSo-1\n\nStyling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4457-109017&t=2fO23I8WsyT0YVJ1-4";
|
|
8
|
+
ds:usage "### When to use\n\n- When action-oriented menus are required to group related commands that do not fit within the primary page layout.\n- When visual cues for expansion are necessary to immediately signal that interacting with the element will reveal a list of options rather than executing a singular action.\n- When performing a filtering action and a button is needed to reveal a list of criteria or view options that update a page's content.\n\n### When not to use\n\n- When the button is intended to perform one specific, immediate task without further user input.\n - Incorrect: Using a dropdown button for a “Save” or “Delete” action that does not contain sub-options.\n - Remediation: Use a standard [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr) component to avoid misleading the user into expecting a menu.\n- When the primary goal is to move the user to different high-level pages within the application.\n - Incorrect: Housing the main site navigation inside a single Dropdown Button.\n - Remediation: Use a [Navigation](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-nkDiZdUMkV) pattern or [Breadcrumbs](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-BXVe6mKJMd) to provide a clear and persistent sense of location and movement.";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition;
|
|
12
|
+
ds:inheritsFrom ds:global.component.button;
|
|
13
|
+
ds:changeLog [
|
|
14
|
+
a ds:ChangeLogEntry;
|
|
15
|
+
ds:timestamp "2026-05-01T00:00:00.000+02:00";
|
|
16
|
+
ds:change "A new componenent dedicated to triggering filters will be developed, and then we will replace the filtering capacity of this component. The filter-specific one should include an active state, and other filter-related features";
|
|
17
|
+
ds:changeType "decision"
|
|
18
|
+
].
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.component.file_upload_field a ds:Component;
|
|
4
|
+
ds:name "FileUploadField";
|
|
5
|
+
ds:summary "A form control for attaching one or more files, by selecting them or dragging them onto a drop area, framed with a label and optional guidance. Selected files are listed with their details and can be removed before submission.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.component.file-upload-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.field-label\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n uri: global.subcomponent.field-description\n relation:\n cardinality: \"0..1\"\n slotName: description\n - node:\n uri: global.subcomponent.file-upload-input\n relation:\n cardinality: \"1\"\n slotName: default\n\\`\\`\\`";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "\n### When to use\n- One or more files need to be attached as part of a submission, whether by selecting them or dragging them onto a drop area.\n- Chosen files benefit from being listed with their details and removable before the form is committed.\n\n### When not to use\n- A short, free-form value is wanted rather than a file — use **Text**.\n- A reference or location pointing to an external resource is collected rather than the resource itself — use **Text**.";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.component.heading a ds:Component;
|
|
4
4
|
ds:name "Heading";
|
|
5
|
-
ds:summary "The heading component is used to signify the hierarchical structure of a page serving as titles for different segments of the page such as entire page, section or blocks (when applicable). It breaks up content into
|
|
5
|
+
ds:summary "The heading component is used to signify the hierarchical structure of a page serving as titles for different segments of the page such as entire page, section or blocks (when applicable). It breaks up content into easily consumable parts, helping users scan the interface and understand the relationship between different blocks of information, relying on hierarchy. \n\n";
|
|
6
6
|
ds:anatomyDsl "---\nnode:\n uri: global.component.heading\n styles:\n typography.weight: font/weight/bold\n typography.color: color/text/heading\n edges:\n - switch:\n on: props\n cases:\n - node:\n role: h1\n styles:\n typography.size: font/size/heading/1\n spacing.margin.bottom: spacing/heading/1\n - node:\n role: h2\n styles:\n typography.size: font/size/heading/2\n spacing.margin.bottom: spacing/heading/2\n - node:\n role: h3\n styles:\n typography.size: font/size/heading/3\n spacing.margin.bottom: spacing/heading/3\n - node:\n role: h4\n styles:\n typography.size: font/size/heading/4\n spacing.margin.bottom: spacing/heading/4\n - node:\n role: h5\n styles:\n typography.size: font/size/heading/5\n spacing.margin.bottom: spacing/heading/5\n - node:\n role: h6\n styles:\n typography.size: font/size/heading/6\n spacing.margin.bottom: spacing/heading/6\n relation:\n cardinality: \"1\"";
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2431-9178&t=sOMJn3GdvE3iTgAI-1";
|
|
8
|
+
ds:usage "Headings are intended to create an \"outline\" of the page. They should lead the user from the most general information to the most specific.\n\n### When to use\n\n- To facilitate scanning and to provide a logical flow to the user's experience.\n- When a page contains multiple topics, to differentiate between a \"Parent\" topic and a \"Child\" sub-topic.\n- When a UI block, such as a Card, contains a significant amount of data or a specific task.\n- When presenting documentation or long articles. Headings act as anchors, allowing the user to jump to the section most relevant to them. \n\n### When not to use\n\n- When you want a piece of text to be \"big and bold\" but it doesn't actually introduce a new section.\n - Incorrect: Using an `H2` for a callout or a quote in the middle of a paragraph just to make it stand out. \n - Remediation: Use the component that describes the best the semantic function you are representing. \n- When the text is descriptive or instructional rather than a concise title.\n - Incorrect: An `H2` that says: \"Please make sure to fill out all the fields below before you click the submit button at the bottom.\"\n - Remediation: Use a paragraph for descriptions, and keep the heading brief (e.g., \"Form Instructions\").\n- When the text belongs to a quote.\n - Incorrect: Using `H2` to style a testimonial just to achieve a specific font size or weight.\n - Remediation: Use a [Quote](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-HaEe2D1XRN) with its intended tokens.\n\n";
|
|
9
|
+
ds:guidelines "";
|
|
7
10
|
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdocumentation;
|
|
8
12
|
ds:hasProperty [
|
|
9
13
|
a ds:Property;
|
|
10
14
|
ds:name "importance";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.component.hidden_field a ds:Component;
|
|
4
|
+
ds:name "HiddenField";
|
|
5
|
+
ds:summary "A form control that carries a value with the form without presenting it to the user — used for contextual or system values that must travel with a submission but are not user-editable. It renders no label, guidance, or visible entry.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.component.hidden-field\n styles: {}\n edges:\n - node:\n uri: global.subcomponent.hidden-input\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "Carries a fixed or derived value along with the form without presenting any visible part to the user.\n\n\n\n### When to use\n\n- A value must travel with the form but is set programmatically or derived rather than entered.\n\n- The value should remain constant and is not meant to be reviewed or changed during completion.\n\n\n\n### When not to use\n\n- The user should be able to see, confirm, or change the value — use [TextField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-QAuX4qtecx) (or another visible field).";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.component.icon a ds:Component;
|
|
4
4
|
ds:name "Icon";
|
|
5
|
-
ds:summary "Icons function as visual anchors. They are designed to be metaphorically clear and aesthetically consistent, ensuring that when paired with text or some cases standalone users can identify key interactions and system states at a glance. Only Icons which are near universally understood (like delete or edit) can stand on their own, but even those need accompanying tooltips to explain them. \n";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.component.icon\n styles:\n layout.display: inline-block\n size.width: size/icon/default\n size.height: size/icon/default
|
|
5
|
+
ds:summary "Icons function as visual anchors. They are designed to be metaphorically clear and aesthetically consistent, ensuring that when paired with text or some cases standalone users can identify key interactions and system states at a glance. Only Icons which are near universally understood (like delete or edit) can stand on their own, but even those need accompanying tooltips to explain them. \n\n";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: global.component.icon\n styles:\n layout.display: inline-block\n size.width: size/icon/default\n size.height: size/icon/default";
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2431-9000&t=sOMJn3GdvE3iTgAI-1";
|
|
8
|
+
ds:usage "## Usage\n\nIcons are intended to supplement information and streamline the user journey. They should never create ambiguity or force a user to guess what an element does. Where meaning is universal, these icons can function as standalone [Button](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8SdtbQUhTr)s that guide users without the need for additional text.\n\n### When to use\n\n- To guide users toward primary actions where space is limited.\n- When a label alone is insufficient to convey meaning.\n- When the user needs to know the condition of a system or process without reading a full sentence.\n- When recognition is a primary objective towards the user through visual patterns rather than reading text.\n\n### When not to use\n\n- When the icon represents a complex or unique action that does not have a universally recognized metaphor\n - Incorrect: Using a custom \"Star-burst\" icon to represent \"Advanced AI Settings\" without a text label nearby.\n - Remediation: Always pair non-universal icons with a text label. If available space does not allow for a label, then a tooltip must be used.if available space does not allow for a label, then a tooltip must be used.\n- When icons are added to every single line of text or menu item, creating \"visual noise.\"\n - Incorrect: A long list of 50 settings where every single line has a generic \"Gear\" icon next to it.\n - Remediation: Remove the icons and use typography (bolding or headers) to create hierarchy, reserving icons only for high-priority actions.";
|
|
9
|
+
ds:guidelines "### Accessibility and Size \n\n- **Touch Targets:** Even if the icon is small (e.g., 16px), the interactive hit area should be at least 44x44px to accommodate touch and mouse accuracy.\n- **Color Contrast:** Ensure icons used for information (status) meet a minimum contrast ratio of 3:1 against the background.\n\n\n\n### Concepts\n\n[Question mark vs information icon](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-GnfOU3MM-3/_rui-KPw8GwEbJ-)";
|
|
7
10
|
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdocumentation;
|
|
8
12
|
ds:hasProperty [
|
|
9
13
|
a ds:Property;
|
|
10
14
|
ds:name "icon";
|