@canonical/design-system 0.1.2 → 0.2.1
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 +159 -0
- package/skills/adoption-a2-components/SKILL.md +186 -0
- package/skills/adoption-a3-forms/SKILL.md +155 -0
- package/skills/anatomy-author/ANATOMY_DSL_SPEC.md +89 -106
- package/skills/anatomy-author/SKILL.md +350 -141
- package/skills/design-auditor/SKILL.md +197 -274
- package/skills/implement-component/SKILL.md +244 -0
- package/skills/specify-component/SKILL.md +232 -0
- package/skills/specify-pattern/SKILL.md +192 -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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.pattern.description_list a ds:Pattern;
|
|
4
|
+
ds:name "DescriptionList";
|
|
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.needstriage.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.pattern.field a ds:Pattern;
|
|
4
|
+
ds:name "Field";
|
|
5
|
+
ds:summary "A form field is the unit that pairs a single input with the surrounding meaning a user needs to act on it: a label naming what is being asked, optional descriptive guidance, the input itself, and validation feedback when an entry is rejected. It is the common frame every concrete form control adopts so that labelling, help text, optionality and error reporting behave the same across a form.";
|
|
6
|
+
ds:anatomyDsl "";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "The shared frame for a single form control.\n\n\n\n### When to use\n\n- Whenever a form collects one value from the user and needs to label it, optionally describe it, and report validation outcomes consistently.\n\n\n\n### When not to use\n\n- For purely presentational, non-collecting controls (no value, no validation).\n\n- To group several fields — that is the job of a form section/group, not a single Field.";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.pattern.form_login a ds:Pattern;
|
|
4
|
+
ds:name "FormLogin";
|
|
5
|
+
ds:summary "To document the login form as a DS pattern. \nThe work done so far: [https://www.figma.com/design/bAe7ONHLn3WJBiPLiTudui/25.10-User-Registration---Identity?node-id=212-15282&t=8FZE7TjZd1UbgIaB-1](https://www.figma.com/design/bAe7ONHLn3WJBiPLiTudui/25.10-User-Registration---Identity?node-id=212-15282&t=8FZE7TjZd1UbgIaB-1)\n\nTo move the content in here, and the visuals in [https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4270-704&t=pOWv0N54d7lgIhg3-1](https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4270-704&t=pOWv0N54d7lgIhg3-1) \n\n\n\n";
|
|
6
|
+
ds:anatomyDsl "";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global.
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.pattern.modal a ds:Pattern;
|
|
4
4
|
ds:name "Modal";
|
|
5
|
-
ds:summary "";
|
|
5
|
+
ds:summary "A modal is a focused container that sits on top of the main view, requiring users to interact with it before returning to that view. Its primary purpose is to capture a user’s full attention for a specific, self-contained task while keeping their current workspace visible (though inactive) in the background.\n\n";
|
|
6
6
|
ds:anatomyDsl "---\nnode:\n uri: global.pattern.modal\n styles:\n layout.type: stack\n layout.display: block\n # Full-screen overlay layer — rendered in a portal, fixed to viewport\n edges:\n - node:\n role: backdrop\n styles:\n layout.display: block\n size.width: 100%\n size.height: 100%\n appearance.background: color/overlay/dark\n relation:\n cardinality: \"1\"\n - node:\n role: dialog container\n styles:\n layout.type: stack\n layout.direction: vertical\n size.max.width: size/modal/max\n size.max.height: size/modal/max.height\n layout.overflow: hidden\n appearance.background: color/surface/overlay\n appearance.radius: radius/modal\n appearance.shadow: shadow/overlay\n edges:\n - node:\n uri: global.subcomponent.modal-header\n relation:\n cardinality: \"0..1\"\n slotName: header\n - node:\n uri: global.subcomponent.modal-content\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: global.subcomponent.modal-footer\n relation:\n cardinality: \"0..1\"\n slotName: footer\n relation:\n cardinality: \"1\"\n";
|
|
7
|
-
ds:
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=5559-717&t=P91QYCdXnFopyMm0-1";
|
|
8
|
+
ds:usage "Modals are intended for focused, interruptive interactions. They are suitable for moments where the user must complete an action or understand contextual information before returning to their current flow.\n\n**When to use**\n\n- When a confirmation is needed before completing or canceling an action. Modals are well suited for this because they capture full attention and require an explicit decision from the user.\n- When a form is displayed on a website rather than an app. On apps, forms should generally use side panels or full pages instead. If a form requires a nested step, layer side panels rather than escalating to a modal.\n- When providing extra context or instructions that are supplementary to the main task. For example, explaining search syntax rules or describing how to format a cron job expression.\n- When the system needs to interrupt the user with a warning, such as when unsaved changes are about to be lost or a critical condition requires acknowledgment.\n- When a side panel triggers a secondary step that involves a small, self-contained form that is not a fully independent entity in the software. For example, selecting an image for an LXD container. This is only appropriate when the nested step is minor. If the nested step is a complete form that already exists elsewhere in the UI, use a nested side panel for consistency.\n- When a side panel is displaying an item that has associated entities, and the main listing page cannot be filtered to show only the related ones. For example, when an instance is related to several profiles and there is no way to filter the profiles listing page down to only the associated ones. If the item is displayed on a full page instead of a side panel, open the associated list in a side panel rather than a modal.\n\n\n\n**When not to use**\n\n- When a modal would need to trigger a side panel as a secondary step. A side panel can trigger a modal, but a modal cannot trigger a side panel.\n - Incorrect: A modal form that opens a side panel when the user needs to complete a prerequisite step.\n - Remediation: Restructure the flow so that the initial container is a side panel, which can then trigger a modal for any smaller interruption if needed.\n- When the form is part of an app workflow. Use side panels or full pages instead, which keep the user oriented within the application structure.\n - Incorrect: Opening a modal to fill out a multi-field entity creation form inside an app.\n - Remediation: Use a side panel or a dedicated page. If a nested step is required, layer a second side panel on top of the first.\n- When displaying static information about an entity, such as a read-only detail view. Static content does not require the level of interruption a modal creates.\n - Incorrect: A modal that opens to show the details of an entity with no actions available.\n - Remediation: Use a side panel to display entity details while keeping the background context visible.\n- When the goal is to guide a first-time user through the interface in a tour or onboarding flow.\n - Incorrect: A modal sequence that blocks the UI to walk the user through each feature step by step.\n - Remediation: Use popovers, which allow the user to interact with the UI and exit the flow at any point.\n- When a lighter, non-interruptive overlay could serve the same purpose. Modals block the entire view and force a decision, while popovers allow continued interaction with the page.\n - Incorrect: Using a modal to show a tooltip-style explanation of a field while the user is filling out a form.\n - Remediation: Use a popover, which surfaces the information without interrupting the user's flow.\n- When providing feedback on the outcome of an action, whether successful or not.\n - Incorrect: A modal that appears after completing an action to confirm it was done successfully.\n - Remediation: Use a toast notification, which communicates the result without requiring any interaction from the user.";
|
|
9
|
+
ds:guidelines "Web : It is recommended to use a backdrop for the modal if the browser allows for it";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition;
|
|
12
|
+
ds:hasSubcomponent ds:global.subcomponent.modal-content, ds:global.subcomponent.modal-header, ds:global.subcomponent.modal-footer.
|
|
@@ -4,4 +4,8 @@ ds:global.pattern.table_of_contents a ds:Pattern;
|
|
|
4
4
|
ds:name "TableOfContents";
|
|
5
5
|
ds:summary "";
|
|
6
6
|
ds:anatomyDsl "---\n# Non-recursive. Represents up to three heading levels (h2 → h3 → h4).\n# Each level is explicit; nesting beyond h4 is not supported.\nnode:\n uri: global.pattern.table_of_contents\n styles:\n layout.type: stack\n layout.direction: vertical\n spacing.gap: spacing/x-small\n edges:\n - node:\n uri: global.subcomponent.table_of_contents-heading\n relation:\n cardinality: \"0..1\"\n - node:\n role: nav list\n styles:\n layout.type: stack\n layout.direction: vertical\n spacing.gap: spacing/x-small\n edges:\n - node:\n role: level-1 entry # h2\n styles:\n layout.type: stack\n layout.direction: vertical\n edges:\n - node:\n role: link\n styles:\n typography.size: font/size/small\n typography.color: color/text/link\n interaction.cursor: pointer\n relation:\n cardinality: \"1\"\n - node:\n role: level-2 entry # h3\n styles:\n layout.type: stack\n layout.direction: vertical\n spacing.external.left: spacing/medium\n edges:\n - node:\n role: link\n styles:\n typography.size: font/size/small\n typography.color: color/text/link\n interaction.cursor: pointer\n relation:\n cardinality: \"1\"\n - node:\n role: level-3 entry # h4\n styles:\n spacing.external.left: spacing/medium\n edges:\n - node:\n role: link\n styles:\n typography.size: font/size/small\n typography.color: color/text/link\n interaction.cursor: pointer\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"1..*\"\n relation:\n cardinality: \"1\"\n slotName: default\n";
|
|
7
|
-
ds:
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.pattern.timeline a ds:Pattern;
|
|
4
4
|
ds:name "Timeline";
|
|
5
|
-
ds:summary "The timeline component establish a clear order of operations
|
|
6
|
-
ds:anatomyDsl "node:\n uri: global.pattern.timeline\n styles:\n layout.type: stack\n layout.direction: vertical\n edges:\n - node:\n uri: global.subcomponent.timeline-header\n relation:\n cardinality: \"0..1\"\n slotName: header\n\n - node:\n uri: global.subcomponent.timeline-content\n styles:\n layout.type: stack\n layout.direction: vertical\n edges:\n - switch:\n on: override\n cases:\n - uri: global.subcomponent.timeline-event\n - uri: $custom\n relation:\n cardinality: \"0..*\"\n slotName: event\n - node:\n uri: global.subcomponent.timeline-expansion-indicator\n relation:\n cardinality: \"0..1\"\n slotName: expansion-indicator\n \n relation:\n cardinality: \"1\"\n slotName: content\nChange layout on the content level? \nnode:\n uri: global.pattern.timeline\n styles:\n layout.type: stack\n layout.direction: vertical\n edges:\n - node:\n uri: global.subcomponent.timeline-header\n relation:\n cardinality: \"0..1\"\n slotName: header\n\n - switch:\n on: props\n cases: \n - uri: global.subcomponent.timeline-content-dateTimeLeading\n - node:\n uri: global.subcomponent.timeline-content-dateTimeTrailing\n edges:\n - switch:\n on: props/variant\n cases:\n - uri: global.subcomponent.timeline-event \n with: \n dateTimePosition: trailing\n - uri: global.subcomponent.timeline-event \n with: \n dateTimePosition: leading\n relation:\n cardinality: \"0..*\"\n slotName: event\n - node:\n uri: global.subcomponent.timeline-expansion-indicator\n relation:\n cardinality: \"0..1\"\n slotName: expansion-indicator\n \n relation:\n cardinality: \"1\"\n slotName: content";
|
|
5
|
+
ds:summary "The timeline component establish a clear order of operations**.** It is a structural UI block used to represent a chronological list of events, actions, or milestones in a vertical sequence. It serves as a visual narrative, allowing users to track progress, audit history, or understand the relationship between time and specific activities at a glance. Each event can include a dateTime, actor, description, and other custom content. It also includes an optional header for users to filter or sort the events.\n\n";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.pattern.timeline\n styles:\n layout.type: stack\n layout.direction: vertical\n edges:\n - node:\n uri: global.subcomponent.timeline-header\n relation:\n cardinality: \"0..1\"\n slotName: header\n\n - node:\n uri: global.subcomponent.timeline-content\n styles:\n layout.type: stack\n layout.direction: vertical\n edges:\n - switch:\n on: override\n cases:\n - uri: global.subcomponent.timeline-event\n - uri: $custom\n relation:\n cardinality: \"0..*\"\n slotName: event\n - node:\n uri: global.subcomponent.timeline-expansion-indicator\n relation:\n cardinality: \"0..1\"\n slotName: expansion-indicator\n \n relation:\n cardinality: \"1\"\n slotName: content\n```\n\nChange layout on the content level? \n\n```yaml\nnode:\n uri: global.pattern.timeline\n styles:\n layout.type: stack\n layout.direction: vertical\n edges:\n - node:\n uri: global.subcomponent.timeline-header\n relation:\n cardinality: \"0..1\"\n slotName: header\n\n - switch:\n on: props\n cases: \n - uri: global.subcomponent.timeline-content-dateTimeLeading\n - node:\n uri: global.subcomponent.timeline-content-dateTimeTrailing\n edges:\n - switch:\n on: props/variant\n cases:\n - uri: global.subcomponent.timeline-event \n with: \n dateTimePosition: trailing\n - uri: global.subcomponent.timeline-event \n with: \n dateTimePosition: leading\n relation:\n cardinality: \"0..*\"\n slotName: event\n - node:\n uri: global.subcomponent.timeline-expansion-indicator\n relation:\n cardinality: \"0..1\"\n slotName: expansion-indicator\n \n relation:\n cardinality: \"1\"\n slotName: content";
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2336-9710&t=6a9B5L28GbEGD8q7-11";
|
|
8
|
+
ds:usage "The Timeline component is intended to provide a visual narrative of events over time. It helps users orient themselves within a process by establishing a clear relationship between specific moments and the actions that occurred during them.\n\n### When to use\n\n- When users need a chronological sequence of events to understand order and progression.\n- When users need to see a history of modifications to an object.\n- When users need to track events by different actors or entities over time.\n- When users need to understand key milestones or interactions in a process.\n- When it’s useful to filter, sort, or expand/collapse events to manage long timelines.\n\n### When not to use\n\n- When the relationship between items is based on \"Parent-Child\" logic rather than \"Before-After\" logic.\n - Incorrect: Representing a folder structure or a nested comment thread as a linear timeline.\n - Remediation: Use other patterns with indentation and structuring to better represent nesting and depth.\n- For large datasets where individual events are too numerous to display on a timeline meaningfully.\n - Incorrect: Using a timeline to list all thousands of machines created by a user.\n - Remediation: Use a table to allow for better filtering and sorting.\n- When the sequence of events is not important, a simple list or a table may be clearer.\n - Incorrect: Using a timeline to list a directory of employees just because they joined at different times.\n - Remediation: Use a table to allow for easier data scanning and better sorting.\n- When the events have non-linear relationships – network-like or branching.\n - Incorrect: Using a timeline to represent the full history of a git tree.\n - Remediation: Use a flow diagram to preserve information about diverging and converging points.\n\n### Alternative layout\n\nBy default, the DateTime is in a trailing position, and the property `dateTimePosition` has value `Trailing`. When `dateTimePosition` is set to `Leading`, the Timeline component uses an alternative layout, and DateTime is placed in a leading position.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2814-3631&t=335Uo9XV6GCUXWug-11\n\n### Filters and sorting\n\nBy default, the header is included with both filtering and sorting enabled. The header can be hidden entirely, and each control can also be hidden individually. The default sort order displays the earliest event first, but it can be set to display the latest first. The Sort button label indicates the current sort order.\n\n### Collapsing methods of long Timelines\n\nThere are three options for handling long timelines.\n\n1. Default: Hide events from the bottom of the timeline\n\nThe Timeline displays the top *{x}* events on load, with *{x}* set to 60 by default. The Expansion indicator is included at the bottom of the Timeline.\n\n1. Hide events from the middle\n\nThe Timeline displays the top *{x/2} and bottom {x/2}* events on load, with *{x}* set to 60 by default. The Expansion indicator is included in the middle of the Timeline.\n\n1. Do not hide events\n\nThe Timeline displays all events at all times.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2822-27017&t=335Uo9XV6GCUXWug-11\n\n### DateTime formats\n\nThe Timeline supports a primary and secondary dateTime format. By default, the primary format displays the date and time in the user’s local system format, while the secondary format shows relative time. The primary format is used on load, and clicking the dateTime toggles between the two formats for all dateTime in the Timeline. Hovering over the dateTime displays a tooltip showing the alternate format. Both formats are configurable by the DS consumer.\n\n### Marker style combinations\n\nDifferent combinations of marker styles can serve different use cases. In some cases, alternating marker styles helps avoid repetitive elements, while in other cases, using a consistent marker style in all events if preferred. The component provides 7 predefined marker style combinations, and also allows overriding the marker style on an individual event.\n\n1. All sizes: for any sequence of consecutive events from the same actor, use a large marker for the first event, displaying the actor’s profile picture, initials, or a generic user icon, depending on availability. Within the remaining events, for each sequence of consecutive events of the same type, use a medium marker for the first event to show the event type icon, and use small markers for the rest.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2830-27432&t=335Uo9XV6GCUXWug-11\n\n1. Large and medium: for any number of consecutive events from the same actor, use a large marker for the first event, displaying the actor’s profile picture, initials, or a user icon, depending on availability. For the remaining events, use a medium marker with an icon indicating the event type.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-34843&t=335Uo9XV6GCUXWug-11\n\n1. Large and small: For any number of consecutive events from the same actor, use a large marker for the first event, displaying the actor’s profile picture, initials, or a user icon, depending on availability. For the remaining events, use a small marker.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-35424&t=335Uo9XV6GCUXWug-11\n\n1. Medium and small: For any number of consecutive events from the same actor, use a medium marker for the first event, displaying the actor’s profile picture, initials, or a user icon, depending on availability. For the remaining events, use a small marker.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-36283&t=335Uo9XV6GCUXWug-11\n\n1. Large: Use large markers consistently in all events, with graphic elements defined individually.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-36552&t=335Uo9XV6GCUXWug-11\n\n1. Medium: Use large markers consistently in all events, with graphic elements defined individually.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-106774&t=335Uo9XV6GCUXWug-11\n\n1. Small: Use large markers consistently in all events, with graphic elements defined individually.\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=2835-115567&t=335Uo9XV6GCUXWug-11\n\n";
|
|
9
|
+
ds:guidelines "**Time Formatting**\n\nAlways use a consistent time format that complies with the copy guide (e.g., Relative like \"2 hours ago\" vs. Absolute like \"Oct 24, 2023, 10:00 AM\"). For global products, ensure the timezone is clear if the timing is critical.\n\n**Visual Continuity**\n\nThe line connecting the nodes should be solid for completed events and can be dashed or greyed out for future/planned events to indicate status.\n\n";
|
|
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 "Show controls";
|
|
@@ -63,4 +67,31 @@ ds:global.pattern.timeline a ds:Pattern;
|
|
|
63
67
|
ds:propertyType "object";
|
|
64
68
|
ds:optional "false";
|
|
65
69
|
ds:constraints "the user should contain the name, email, role, and profile picture"
|
|
70
|
+
];
|
|
71
|
+
ds:hasSubcomponent ds:global.subcomponent.timeline-event, ds:global.subcomponent.timeline-expansion_indicator, ds:global.subcomponent.timeline-content, ds:global.subcomponent.timeline-header;
|
|
72
|
+
ds:changeLog [
|
|
73
|
+
a ds:ChangeLogEntry;
|
|
74
|
+
ds:timestamp "2026-01-15T14:00:00.000+01:00";
|
|
75
|
+
ds:change "added innitial description for the timeline UI blocl";
|
|
76
|
+
ds:changeType "change"
|
|
77
|
+
], [
|
|
78
|
+
a ds:ChangeLogEntry;
|
|
79
|
+
ds:timestamp "2026-01-16T00:00:00.000+01:00";
|
|
80
|
+
ds:change "updated description, usage";
|
|
81
|
+
ds:changeType "change"
|
|
82
|
+
], [
|
|
83
|
+
a ds:ChangeLogEntry;
|
|
84
|
+
ds:timestamp "2026-03-03T00:00:00.000+01:00";
|
|
85
|
+
ds:change "updated usage and properties";
|
|
86
|
+
ds:changeType "change"
|
|
87
|
+
], [
|
|
88
|
+
a ds:ChangeLogEntry;
|
|
89
|
+
ds:timestamp "2026-03-12T17:30:00.000+01:00";
|
|
90
|
+
ds:change "updated usage";
|
|
91
|
+
ds:changeType "change"
|
|
92
|
+
], [
|
|
93
|
+
a ds:ChangeLogEntry;
|
|
94
|
+
ds:timestamp "2026-03-13T00:00:00.000+01:00";
|
|
95
|
+
ds:change "updated anatomy_dsl";
|
|
96
|
+
ds:changeType "change"
|
|
66
97
|
].
|
|
@@ -2,17 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.subcomponent.accordion-item a ds:Subcomponent;
|
|
4
4
|
ds:name "Accordion.Item";
|
|
5
|
-
ds:summary "The accordion item is a collapsible content panel that belongs to a parent Accordion
|
|
6
|
-
ds:anatomyDsl "
|
|
5
|
+
ds:summary "The accordion item is a collapsible content panel that belongs to a parent [Accordion](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-FfEcibePe1) component. It consists of a clickable header and a hidden content body, allowing users to toggle the visibility of information within a restricted space.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.subcomponent.accordion-item\n styles:\n layout.type: stack\n layout.direction: vertical\n edges:\n - node:\n role: header tab\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n interaction.cursor: pointer\n edges:\n - node:\n role: control\n styles:\n size.width: size/icon/small\n size.height: size/icon/small\n relation:\n cardinality: \"1\"\n - node:\n role: heading\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: header\n - node:\n role: content panel\n styles:\n layout.overflow: hidden\n relation:\n cardinality: \"1\"\n slotName: default\n";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "The accordion item is intended to reduce visual noise and page length by keeping details hidden until requested. Use only as part of the Accordion. \n";
|
|
9
|
+
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 "heading";
|
|
11
|
-
ds:propertyType "
|
|
15
|
+
ds:propertyType "text";
|
|
12
16
|
ds:optional "false"
|
|
13
17
|
], [
|
|
14
18
|
a ds:Property;
|
|
15
19
|
ds:name "children";
|
|
16
|
-
ds:propertyType "
|
|
20
|
+
ds:propertyType "text";
|
|
17
21
|
ds:optional "false"
|
|
18
|
-
]
|
|
22
|
+
];
|
|
23
|
+
ds:parentComponent ds:global.component.accordion.
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.subcomponent.breadcrumbs-item a ds:Subcomponent;
|
|
4
4
|
ds:name "Breadcrumbs.Item";
|
|
5
|
-
ds:summary "The breadcrumbs item is a subcomponent representing a single level within the navigational trail of Breadcrumbs. It serves as a discrete link or label that signifies a specific node in the application's information hierarchy.";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.breadcrumbs-item\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n edges:\n - node:\n role: link\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: separator\n relation:\n cardinality: \"0..1\"
|
|
5
|
+
ds:summary "The breadcrumbs item is a subcomponent representing a single level within the navigational trail of [Breadcrumbs](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-BXVe6mKJMd). It serves as a discrete link or label that signifies a specific node in the application's information hierarchy.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.breadcrumbs-item\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n edges:\n - node:\n role: link\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: separator\n relation:\n cardinality: \"0..1\"";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "Breadcrumb items are intended to build a logical \"path\" for the user. They must be arranged sequentially to reflect the hierarchy of information domains which contextualize the current view.";
|
|
9
|
+
ds:guidelines "The Breadcrumbs Items share [the common navigation item property interface](https://docs.google.com/document/d/1HSQyocivbz1nyxF2oZ9DnAvTm4sMG_smGcddS9QBKxY/edit?tab=t.0).";
|
|
7
10
|
ds:tier ds:global;
|
|
8
11
|
ds:hasProperty [
|
|
9
12
|
a ds:Property;
|
|
@@ -15,4 +18,5 @@ ds:global.subcomponent.breadcrumbs-item a ds:Subcomponent;
|
|
|
15
18
|
ds:summary "Whether navigable";
|
|
16
19
|
ds:optional "false";
|
|
17
20
|
ds:propertyType "boolean"
|
|
18
|
-
]
|
|
21
|
+
];
|
|
22
|
+
ds:parentComponent ds:global.component.breadcrumbs.
|
|
@@ -2,12 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.subcomponent.card-content a ds:Subcomponent;
|
|
4
4
|
ds:name "Card.Content";
|
|
5
|
-
ds:summary "The card content is the primary body area of the component used to house the main information of the Card. It can include body text, data points, or interactive elements like buttons and links. Its
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-content\n styles:\n layout.type: stack\n layout.direction: vertical\n spacing.internal: spacing/medium
|
|
5
|
+
ds:summary "The card content is the primary body area of the component used to house the main information of the [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD). It can include body text, data points, or interactive elements like buttons and links. Its purpose is to serve as the flexible space where the detailed story or task of the card is communicated to the user. Because cards are used for comparison, this section is structured to show the same types of information across all instances in a set.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-content\n styles:\n layout.type: stack\n layout.direction: vertical\n spacing.internal: spacing/medium";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
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 "children";
|
|
11
15
|
ds:propertyType "node";
|
|
12
16
|
ds:optional "false"
|
|
13
|
-
]
|
|
17
|
+
];
|
|
18
|
+
ds:parentComponent ds:global.component.card.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.subcomponent.card-footer a ds:Subcomponent;
|
|
4
|
+
ds:name "Card.Footer";
|
|
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.needstriage;
|
|
12
|
+
ds:parentComponent ds:global.component.card.
|
|
@@ -2,12 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.subcomponent.card-header a ds:Subcomponent;
|
|
4
4
|
ds:name "Card.Header";
|
|
5
|
-
ds:summary "The card header is a structural sub-component used to provide the primary context for the Card. It contains the title and optional subtitles or icons to identify the object being described. Its sole functionality is to offer a consistent anchoring point for identification at the top of the container.";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-header\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.justify: space-between\n layout.align: center\n spacing.internal: spacing/medium\n edges:\n - node:\n role: title\n styles:\n typography.weight: font/weight/semibold\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: actions\n relation:\n cardinality: \"0..1\"\n slotName: actions
|
|
5
|
+
ds:summary "The card header is a structural sub-component used to provide the primary context for the [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD). It contains the title and optional subtitles or icons to identify the object being described. Its sole functionality is to offer a consistent anchoring point for identification at the top of the container.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-header\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.justify: space-between\n layout.align: center\n spacing.internal: spacing/medium\n edges:\n - node:\n role: title\n styles:\n typography.weight: font/weight/semibold\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: actions\n relation:\n cardinality: \"0..1\"\n slotName: actions";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
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 "children";
|
|
11
15
|
ds:propertyType "node";
|
|
12
16
|
ds:optional "false"
|
|
13
|
-
]
|
|
17
|
+
];
|
|
18
|
+
ds:parentComponent ds:global.component.card.
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
ds:global.subcomponent.card-image a ds:Subcomponent;
|
|
4
4
|
ds:name "Card.Image";
|
|
5
|
-
ds:summary "The card image is a full-width visual element that spans the horizontal extent of the Card container. It is used to provide high-impact visual context or to represent the primary subject of sequentially to reflect the true architecturesequentially to reflect the true architecturesequentially to reflect the true architecturethe card, such as a product photo or a hero graphic. Its sole functionality is to reinforce the narrative of the card through large-scale media.\n";
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-image\n styles:\n layout.type: block\n size.width: fill\n object.fit: cover
|
|
5
|
+
ds:summary "The card image is a full-width visual element that spans the horizontal extent of the [Card](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Gm_-gu8fGD) container. It is used to provide high-impact visual context or to represent the primary subject of sequentially to reflect the true architecturesequentially to reflect the true architecturesequentially to reflect the true architecturethe card, such as a product photo or a hero graphic. Its sole functionality is to reinforce the narrative of the card through large-scale media.\n\n";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-image\n styles:\n layout.type: block\n size.width: fill\n object.fit: cover";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
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 "url";
|
|
@@ -16,4 +20,5 @@ ds:global.subcomponent.card-image a ds:Subcomponent;
|
|
|
16
20
|
ds:summary "Alt text for the image";
|
|
17
21
|
ds:propertyType "text";
|
|
18
22
|
ds:optional "false"
|
|
19
|
-
]
|
|
23
|
+
];
|
|
24
|
+
ds:parentComponent ds:global.component.card.
|
|
@@ -4,4 +4,9 @@ ds:global.subcomponent.card-thumbnail a ds:Subcomponent;
|
|
|
4
4
|
ds:name "Card.Thumbnail";
|
|
5
5
|
ds:summary "Displays a small thumbnail image within a card, typically used alongside content for logo/icon representation.";
|
|
6
6
|
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.card-thumbnail\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: start\n spacing.internal: spacing/medium\n edges:\n - node:\n role: image\n styles:\n dimensions.width: \"4rem\"\n dimensions.height: \"4rem\"\n sizing.flex-shrink: \"0\"\n object-fit: contain\n relation:\n cardinality: \"1\"\n - node:\n role: content\n relation:\n cardinality: \"0..1\"\n slotName: default\n";
|
|
7
|
-
ds:
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:documentationStage ds:tag.needsdocumentation;
|
|
12
|
+
ds:parentComponent ds:global.component.card.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.subcomponent.chart_legend a ds:Subcomponent;
|
|
4
|
+
ds:name "ChartLegend";
|
|
5
|
+
ds:summary "";
|
|
6
|
+
ds:anatomyDsl "ChartLegend\n\n```yaml\nnode:\n uri: ds:global.component:ChartLegend\n styles:\n layout.type: stack\n layout.direction: vertical\n layout.align: start\n edges:\n - node:\n uri: ds:global.subcomponent:ChartLegendHeading\n styles:\n typography.size: text/secondary/bold\n typography.color: color/text/root\n relation:\n cardinality: \"0..1\"\n slotName: header\n\n - node:\n uri: ds:global.subcomponent:ChartLegendItem\n relation:\n cardinality: \"1..*\"\n slotName: default\n```\n\n";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "**Accessibility**\n\n**Hover and focus triggers** \nTooltips must be accessible via both pointer (hover) and keyboard (focus). Any element that triggers a tooltip must be focusable and expose the same information on focus as on hover. The tooltip itself has no focus state.\n\n**Screen reader support** \nTooltip content should be programmatically associated with its trigger using appropriate ARIA attributes. Content must be announced without requiring additional interaction.\n\n**Content clarity and brevity** \nAs mentioned earlier, tooltip content should be concise and written in plain language. Avoid relying on tooltips to communicate critical or required information, as they may not be consistently discovered.\n\n**Non-hover environments** \nOn touch devices where hover is not available, tooltips should either appear on tap, or be replaced by an alternative pattern. Again, no essential info should be hidden behind a hover-only interaction. \n\n\n\n**Device and input considerations**\n\n**Pointer vs touch behavior** \nOn pointer devices, tooltips appear on hover and dismiss on pointer exit. On touch devices, tooltips should be triggered by tap and dismissible via a second tap (on itself), outside tap, or timeout.\n\n**Target size and spacing** \nInteractive elements that trigger tooltips must meet the minimum touch target size (24 px by 24 px on desktops). Avoid attaching tooltips to very small or densely packed targets without sufficient padding.\n\n**Responsive positioning** \nTooltip placement should adapt to viewport constraints. When insufficient space is available, the tooltip should flip or reposition to remain fully visible.\n\n\n\n**Content**\n\n**Purpose of tooltips** \nAgain, as mentioned earlier, use tooltips to provide supplementary, non-critical information that is used as clarification.\n\n**Appropriate use cases**\n\n- Explaining unfamiliar icons, abbreviations, or controls\n- Providing short contextual hints without adding visual clutter\n- Supporting data interpretation in charts and dashboards\n\n**Avoid misuse**\n\n- Do not include essential instructions or required actions\n- Do not include complex, multi-step, or interactive content\n- Do not duplicate clearly visible labels or text\n\n**Length and structure** \nKeep content short (ideally one line, maximum two lines for standard). Avoid paragraphs.\n\n\n\n**Animation**\n\n**Entrance and exit timing** \nTooltips should appear after a short delay on hover or focus (~400 ms) and dismiss after a similar delay when the pointer leaves.\n\n**Motion behaviour** \nThis element uses subtle, non-distracting motion. Cursor-follow behaviour (for data vis) should feel responsive and stable.\n\n**Interruptions and re-triggering** \nIf the pointer moves between adjacent triggers, skip exit/entry animations and display the new tooltip immediately to maintain continuity.\n\n\n\n**Keyboard navigation**\n\n**Focus order** \nTooltip triggers must be reachable via standard tab navigation. The tooltip itself should not receive focus unless it contains interactive content (which I realise can happen if we’re using links – could you help out here please [Elaine Liman](mailto:elaine.liman@canonical.com)?).\n\n**Dismissal** \nTooltips should dismiss when the focus moves away from the trigger\n\n\n\n**Interaction behavior**\n\n**Trigger types** \nTooltips may be triggered by icons, text, or UI controls. For data vis, tooltips may follow the cursor.\n\n**Positioning** \nDefault placement should be centred relative to the trigger with a consistent offset. Placement should adjust dynamically to avoid viewport overflow.\n\n**Collision handling** \nIn-built, but there is consistent collision padding to ensure tooltips do not touch screen edges (or overlap critical UI elements). \n\n\n\n**Layout and spacing**\n\n**Standard and dense variants**\n\n- Standard tooltips prioritise readability with balanced padding\n- Dense tooltips reduce spacing for compact environments\n\n\n\n**Wrapper variant** \nWrapper tooltips support more complex content structures and flexible layouts. Spacing should follow token-based guidance but remain adaptable to context (at the designer’s discretion)\n\n\n\n**Color and theming**\n\n**Contrast and readability** \nThe tooltip ensures sufficient contrast between its background and the text it houses, in all themes. \n\n**Contextual theming** \nFor data vis, tooltip styling may match the visualisation theme (light or dark) for consistency.\n\n\n\n**Overflow and constraints**\n\n**Viewport boundaries** \nTooltips must remain fully visible within the viewport. If necessary, reposition or constrain width.\n\n**Content overflow** \nAvoid scrolling within tooltips. If content exceeds reasonable limits, use a more appropriate pattern (e.g.modal – do we have this?)";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:parentComponent ds:global.component.data_tooltip.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.subcomponent.chart_legend_item a ds:Subcomponent;
|
|
4
|
+
ds:name "ChartLegendItem";
|
|
5
|
+
ds:summary "";
|
|
6
|
+
ds:anatomyDsl "ChartLegendItem\n\n```yaml\nnode:\n uri: ds:global.subcomponent:ChartLegendItem\n styles:\n layout.type: stack\n layout.direction: horizontal\n layout.align: center\n spacing.internal.vertical: dimension/100\n spacing.gap: dimension/100\n edges:\n - node:\n role: marker\n styles:\n appearance.background: color/text/root\n relation:\n cardinality: \"1\"\n slotName: icon\n\n - node:\n role: label\n styles:\n typography.size: text/secondary/root\n typography.color: color/text/root\n relation:\n cardinality: \"1\"\n slotName: default\n\n - node:\n role: value\n styles:\n typography.size: text/secondary/root\n typography.color: color/text/root\n relation:\n cardinality: \"0..1\"\n slotName: value\n\n - node:\n role: divider\n styles:\n appearance.background: color/palette/gray/180\n relation:\n cardinality: \"0..1\"\n slotName: separator\n```";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:parentComponent ds:global.component.data_tooltip.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.subcomponent.checkbox_input a ds:Subcomponent;
|
|
4
|
+
ds:name "CheckboxInput";
|
|
5
|
+
ds:summary "The atomic checked/unchecked part a host places in context. It carries the binary state and the user's direct toggle, and is consumed by components such as [CheckboxField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-vwBCoHgXoG), a filter, or a multi-select choices group, which supply its label, validation, and surrounding meaning.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.subcomponent.checkbox-input\n styles: {}";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "The independent on/off entry part a host places in context for a single, self-contained choice.\n\n\n\n### When to use\n\n- A host needs one or more choices that each toggle independently, where any combination may be selected.\n\n- A choice represents a discrete opt-in or opt-out that carries meaning on its own.\n\n- A group of related choices may all be active at once.\n\n\n\n### When not to use\n\n- Choices are mutually exclusive and exactly one must win — compose [RadioInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-x_sKubP8Qh) .\n\n- A single setting flips an immediate, system-like state — compose [SwitchInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-rCfe2Hk8yE) .\n\n- The host offers many choices better presented as a condensed list — compose [SelectInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-EVwqNhd3WH) .\n\n";
|
|
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.subcomponent.color_input a ds:Subcomponent;
|
|
4
|
+
ds:name "ColorInput";
|
|
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.subcomponent.combobox_input a ds:Subcomponent;
|
|
4
|
+
ds:name "ComboboxInput";
|
|
5
|
+
ds:summary "The type-to-filter selection part a host field places in context: a query entry paired with a results list the user filters and picks from, optionally showing chosen values as removable tokens. It is consumed by controls such as ComboboxField and is not used on its own.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.subcomponent.combobox-input\n styles: {}\n edges:\n - node:\n role: query entry\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: clear\n relation:\n cardinality: \"0..1\"\n - node:\n role: results list\n relation:\n cardinality: \"1\"\n - node:\n role: selected token\n relation:\n cardinality: \"0..*\"\n\\`\\`\\`";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "\n### When to use\n- A host presents many options and the person narrows them by typing before choosing one.\n- The option set is long enough that scanning alone is slow.\n- A free-text query should surface and match against a known set of choices.\n\n### When not to use\n- The option set is short and scannable without filtering — compose **SelectInput**.\n- Choices are few and benefit from being shown all at once — compose **RadioInput**.\n- The entry is open prose with no fixed option set — compose **TextInput**.";
|
|
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.subcomponent.date_input a ds:Subcomponent;
|
|
4
|
+
ds:name "DateInput";
|
|
5
|
+
ds:summary "The calendar-date-entry part a host field places in context: it lets the user specify a single calendar date within any allowed bounds, carrying the chosen date as its state. It is consumed by controls such as DateField and is not used on its own.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.subcomponent.date-input\n styles: {}\n";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "The calendar-date entry a host composes when the value it collects is a single calendar day.\n\n\n\n### When to use\n\n- The host (a field, a filter, a choices group) needs the user to set one calendar date and bounds it by an earliest and latest day.\n\n- The collected value is a calendar day with no time-of-day component.\n\n\n\n### When not to use\n\n- The host needs only a time of day — compose [TimeInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-mzx6TJ4AGG) .\n\n- The host needs a calendar day together with a time of day — compose [DateTimeInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui--azXSh_q2l) .";
|
|
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.subcomponent.date_time_input a ds:Subcomponent;
|
|
4
|
+
ds:name "DateTimeInput";
|
|
5
|
+
ds:summary "The combined date-and-time-entry part a host field places in context: it lets the user specify a calendar date together with a time of day within any allowed bounds and set increments, carrying the chosen moment as its state. It is consumed by controls such as DateTimeField and is not used on its own.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.subcomponent.datetime-input\n styles: {}";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "The combined date-and-time entry a host composes when the value it collects is a date and time together.\n\n### When to use\n\n- The host (a field, a filter, a choices group) needs the user to set both a calendar day and a time of day as a single moment, and bounds it by an earliest and latest moment, optionally snapped to set increments.\n\n- The collected value is a single point in time carrying both a day and a time.\n\n### When not to use\n\n- The host needs only a calendar day — compose [DateInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fQZpZDU2_9) \n\n- The host needs only a time of day — compose [TimeInput](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-mzx6TJ4AGG) .";
|
|
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.subcomponent.field-description a ds:Subcomponent;
|
|
4
|
+
ds:name "Field.Description";
|
|
5
|
+
ds:summary "The supporting-guidance part of a form field, consumed by Field: short helper text shown between the label and the input to clarify what is expected. Not used independently.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.subcomponent.field-description\n styles: {}\n edges:\n - node:\n role: description text\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "The supporting chrome part a field composes to guide, hint, or constrain the value it collects.\n\n\n\n### When to use\n\n- A field needs format guidance, examples, or constraints beyond its name.\n\n- Helper text should sit with the input to reduce errors before entry.\n\n\n\n### When not to use\n\n- The text names the field rather than explaining it — compose **Field.Label**.\n\n- The message reports a validation outcome tied to entry state — use the field's status messaging, not this chrome.";
|
|
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.subcomponent.field-label a ds:Subcomponent;
|
|
4
|
+
ds:name "Field.Label";
|
|
5
|
+
ds:summary "The naming part of a form field, consumed by Field: it states what the field is asking for and signals whether the entry is optional. It is never used alone — it derives its association from the field that hosts it.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.subcomponent.field-label\n styles: {}\n edges:\n - node:\n role: label text\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: optionality indicator\n relation:\n cardinality: \"0..1\"";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "The naming chrome part a field composes to announce what the input collects.\n\n\n\n### When to use\n\n- A field must state, in a few words, the meaning of the value it gathers.\n\n- Every field that takes input needs a persistent name people can read at a glance.\n\n\n\n### When not to use\n\n- Supplementary guidance, format hints, or constraints accompany the name — compose [Field.Description](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-EtN3NdpDS2) .\n\n- The text is body content unrelated to a field's value — use a standalone text part, not this chrome.";
|
|
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.subcomponent.file_upload_input a ds:Subcomponent;
|
|
4
|
+
ds:name "FileUploadInput";
|
|
5
|
+
ds:summary "The file-attaching part a host field places in context: a drop area the user clicks or drags files onto, paired with a list of the chosen files. Consumed by controls such as FileUploadField.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.subcomponent.file-upload-input\n styles: {}\n edges:\n - node:\n role: drop area\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: file item\n relation:\n cardinality: \"0..*\"\n\\`\\`\\`";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "\n### When to use\n- A host needs a person to attach one or more existing documents, images, or assets.\n- The value is a binary artefact that cannot be expressed as typed text.\n\n### When not to use\n- The value is prose the person writes directly — compose **TextInput** or **TextareaInput**.\n- The value is a choice from a fixed set — compose **SelectInput**.";
|
|
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.subcomponent.hidden_input a ds:Subcomponent;
|
|
4
|
+
ds:name "HiddenInput";
|
|
5
|
+
ds:summary "The non-visible value-carrying part a host field places in context; it holds a value submitted with the form but shown to no one. Consumed by [HiddenField](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-erOCIafN7p) .";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: global.subcomponent.hidden-input\n styles: {}";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "The non-visible carrier part a host places in context to hold a value that travels with a submission but is never edited.\n\n\n\n### When to use\n\n- A host must retain a fixed or system-derived value alongside visible entries.\n\n- A value needs to accompany the field's data without inviting interaction.\n\n\n\n### When not to use\n\n- The person should see or change the value — compose **TextInput**.\n\n- The value is purely presentational and not part of the field's data — it belongs in the host's content, not an input part.";
|
|
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.subcomponent.kvp_container a ds:Subcomponent;
|
|
4
|
+
ds:name "KVP (container)";
|
|
5
|
+
ds:summary "";
|
|
6
|
+
ds:anatomyDsl "KVP (container)\n\n```yaml\nnode:\n uri: ds:global.component:KeyValuePair\n styles:\n layout.type: stack\n layout.direction: vertical\n layout.align: start\n spacing.gap: dimension/100\n edges:\n - node:\n uri: ds:global.subcomponent:KVPItem\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.tooltip_wrapper.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.subcomponent.kvpitem_base a ds:Subcomponent;
|
|
4
|
+
ds:name "KVPItem (base)";
|
|
5
|
+
ds:summary "";
|
|
6
|
+
ds:anatomyDsl "KVPItem (base)\n\n```yaml\nnode:\n uri: ds:global.subcomponent:KVPItem\n styles:\n layout.type: stack\n layout.direction: horizontal\n layout.align: start\n edges:\n - node:\n role: key\n styles:\n typography.size: text/secondary/root\n typography.color: color/text/muted/root\n relation:\n cardinality: \"1\"\n slotName: key\n\n - node:\n role: value\n styles:\n typography.size: text/secondary/root\n typography.color: color/text/root\n relation:\n cardinality: \"1\"\n slotName: value\n\n//inline variant//\nnode:\n uri: ds:global.subcomponent:KVPItem.Inline\n styles:\n layout.type: stack\n layout.direction: horizontal\n layout.align: center\n\n//stacked variant//\nnode:\n uri: ds:global.subcomponent:KVPItem.Stacked\n styles:\n layout.type: stack\n layout.direction: vertical\n layout.align: start\n\n//with optional heading and value//\nnode:\n uri: ds:global.subcomponent:KVPItem.Meta\n edges:\n - node:\n role: heading\n styles:\n typography.size: text/secondary/bold\n typography.color: color/text/root\n relation:\n cardinality: \"0..1\"\n slotName: header\n\n - node:\n role: meta-value\n styles:\n typography.size: text/secondary/root\n typography.color: color/text/root\n relation:\n cardinality: \"0..1\"\n slotName: headerValue\n\n - node:\n uri: ds:global.subcomponent:KVPItem\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.tooltip_wrapper.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:global.subcomponent.markdown_input a ds:Subcomponent;
|
|
4
|
+
ds:name "MarkdownInput";
|
|
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.needstriage.
|
|
@@ -4,4 +4,8 @@ ds:global.subcomponent.modal-content a ds:Subcomponent;
|
|
|
4
4
|
ds:name "Modal.Content";
|
|
5
5
|
ds:summary "";
|
|
6
6
|
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.modal-content\n styles:\n layout.overflow: scroll\n layout.flex: 1\n spacing.internal: spacing/large\n edges:\n - node:\n role: content\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
7
|
-
ds:
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:parentComponent ds:global.pattern.modal.
|
|
@@ -4,4 +4,8 @@ ds:global.subcomponent.modal-footer a ds:Subcomponent;
|
|
|
4
4
|
ds:name "Modal.Footer";
|
|
5
5
|
ds:summary "";
|
|
6
6
|
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.modal-footer\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.justify: end\n spacing.gap: spacing/small\n spacing.internal: spacing/medium\n appearance.border.top: border/style/divider\n edges:\n - node:\n uri: global.component.button\n relation:\n cardinality: \"0..*\"\n slotName: default\n";
|
|
7
|
-
ds:
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:parentComponent ds:global.pattern.modal.
|
|
@@ -4,4 +4,8 @@ ds:global.subcomponent.modal-header a ds:Subcomponent;
|
|
|
4
4
|
ds:name "Modal.Header";
|
|
5
5
|
ds:summary "";
|
|
6
6
|
ds:anatomyDsl "---\nnode:\n uri: global.subcomponent.modal-header\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n layout.justify: space-between\n spacing.internal: spacing/medium\n appearance.border.bottom: border/style/divider\n edges:\n - node:\n role: title\n styles:\n typography.weight: font/weight/semibold\n typography.size: font/size/body\n layout.flex: 1\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: close button\n styles:\n interaction.cursor: pointer\n layout.flex: 0\n relation:\n cardinality: \"0..1\"\n";
|
|
7
|
-
ds:
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "";
|
|
9
|
+
ds:guidelines "";
|
|
10
|
+
ds:tier ds:global;
|
|
11
|
+
ds:parentComponent ds:global.pattern.modal.
|