@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,22 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
ds:apps_launchpad.component.badge a ds:Component;
|
|
4
4
|
ds:name "Badge";
|
|
5
|
-
ds:summary "The Badge component is a small, non-interactive element that is used to display a short piece of information, such as a number or a status.\
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.badge\n styles:\n layout.display: inline-block\n spacing.internal: spacing/inline/extra-extra-small\n appearance.background: color/background/neutral/default\n appearance.radius: radius/full\n typography.size: typography/paragraph/extra-small/strong\n typography.color: color/text/reversed\n edges:\n - node:\n role: value text\n relation:\n cardinality: \"1\"\n slotName: value
|
|
5
|
+
ds:summary "The **Badge** component is a small, non-interactive element that is used to display a short piece of information, such as a number or a status.\n\n**Main Use Cases:**\n\n- **Notifications:** Display the number of new notifications.\n- **Status:** Indicate the status of an item, such as “New” or “Updated”.\n- **Counts:** Show the number of items in a list.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.badge\n styles:\n layout.display: inline-block\n spacing.internal: spacing/inline/extra-extra-small\n appearance.background: color/background/neutral/default\n appearance.radius: radius/full\n typography.size: typography/paragraph/extra-small/strong\n typography.color: color/text/reversed\n edges:\n - node:\n role: value text\n relation:\n cardinality: \"1\"\n slotName: value";
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/Y0cqKbTG4rejU9xm2oh5pR/%F0%9F%92%A0-Vanilla---Core-component-library?node-id=2066-5&m=dev";
|
|
8
|
+
ds:usage "### 1. General Description\n\nThe Badge is used to draw attention to a small piece of information. It is a versatile component that can be used in a variety of situations.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Short information:** Use when you need to display a short piece of information.\n- **Non-interactive:** Use for non-interactive elements.\n\n2.2 When Not to Use\n\n- **Long information:** Do not use for long pieces of information.\n- **Interactive elements:** Do not use for interactive elements. Use a Chip instead.";
|
|
9
|
+
ds:guidelines "### Content Specification\n\n- **Concise:** Keep the content of the badge concise.\n- **Numeric:** Use numeric values whenever possible.";
|
|
7
10
|
ds:tier ds:apps_launchpad;
|
|
8
11
|
ds:hasProperty [
|
|
9
12
|
a ds:Property;
|
|
10
13
|
ds:name "value";
|
|
11
|
-
ds:summary "The
|
|
12
|
-
ds:propertyType "
|
|
13
|
-
ds:optional "
|
|
14
|
-
ds:defaultValue "“”"
|
|
14
|
+
ds:summary "The value to be displayed in the badge.";
|
|
15
|
+
ds:propertyType "number";
|
|
16
|
+
ds:optional "false"
|
|
15
17
|
], [
|
|
16
18
|
a ds:Property;
|
|
17
19
|
ds:name "variant";
|
|
18
|
-
ds:summary "The variant of the
|
|
20
|
+
ds:summary "The variant of the badge.";
|
|
19
21
|
ds:propertyType "choice";
|
|
20
22
|
ds:optional "true";
|
|
21
|
-
ds:
|
|
22
|
-
ds:
|
|
23
|
+
ds:constraints "neutral, info, success, warning, danger";
|
|
24
|
+
ds:defaultValue "neutral"
|
|
23
25
|
].
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
ds:apps_launchpad.component.breadcrumbs a ds:Component;
|
|
4
4
|
ds:name "Breadcrumbs";
|
|
5
|
-
ds:summary "The Breadcrumbs component is a navigation aid that helps users to keep track of their location within a website or application.\
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.breadcrumbs\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n spacing.internal: spacing/inline/small\n edges:\n - node:\n role: collapsed items container\n styles:\n appearance.background: color/background/neutral/default\n appearance.border: border/style/solid\n edges:\n - node:\n role: menu trigger\n styles:\n typography.content: \"...\"\n - node:\n role: collapsed menu list\n edges:\n - node:\n role: breadcrumb link\n relation:\n cardinality: \"1..*\"\n slotName: default\n relation:\n cardinality: \"0..1\"\n slotName: collapsedItems\n - node:\n role: expanded items container\n edges:\n - node:\n role: breadcrumb link\n relation:\n cardinality: \"1..*\"\n slotName: default\n - node:\n role: separator\n styles:\n typography.content: \"/\"\n relation:\n cardinality: \"0..*\"\n slotName: separator\n relation:\n cardinality: \"1\"\n slotName: expandedItems
|
|
5
|
+
ds:summary "The **Breadcrumbs** component is a navigation aid that helps users to keep track of their location within a website or application.\n\n**Main Use Cases:**\n\n- **Navigation:** Provide a clear path back to the homepage.\n- **Hierarchy:** Show the user their current location in the hierarchy of the website.\n\n";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.breadcrumbs\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n spacing.internal: spacing/inline/small\n edges:\n - node:\n role: collapsed items container\n styles:\n appearance.background: color/background/neutral/default\n appearance.border: border/style/solid\n edges:\n - node:\n role: menu trigger\n styles:\n typography.content: \"...\"\n - node:\n role: collapsed menu list\n edges:\n - node:\n role: breadcrumb link\n relation:\n cardinality: \"1..*\"\n slotName: default\n relation:\n cardinality: \"0..1\"\n slotName: collapsedItems\n - node:\n role: expanded items container\n edges:\n - node:\n role: breadcrumb link\n relation:\n cardinality: \"1..*\"\n slotName: default\n - node:\n role: separator\n styles:\n typography.content: \"/\"\n relation:\n cardinality: \"0..*\"\n slotName: separator\n relation:\n cardinality: \"1\"\n slotName: expandedItems";
|
|
7
|
+
ds:anatomyClassic "The Breadcrumbs is composed of a main container, a list of links, and optional separators.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the breadcrumbs.\n2. **Breadcrumb Link:** A single link in the breadcrumb trail.\n3. **Separator:** A visual separator between the breadcrumb links.\n4. **Collapsed Items Container:** A container for collapsed items, used when there are too many breadcrumbs to display.\n\n";
|
|
8
|
+
ds:usage "### 1. General Description\n\nThe Breadcrumbs is used to provide a secondary navigation system that helps users to understand the structure of the website.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Hierarchical navigation:** Use when your website has a clear hierarchical navigation structure.\n- **Deeply nested pages:** Use on pages that are deeply nested within the website.\n\n2.2 When Not to Use\n\n- **Flat navigation:** Do not use on websites with a flat navigation structure.";
|
|
9
|
+
ds:guidelines "### Accessibility\n\n- **ARIA attributes:** Use the `aria-label=\"breadcrumb\"` attribute to identify the breadcrumb navigation.\n- **Current page:** Use the `aria-current=\"page\"` attribute to identify the current page.";
|
|
7
10
|
ds:tier ds:apps_launchpad;
|
|
8
11
|
ds:hasProperty [
|
|
9
12
|
a ds:Property;
|
|
@@ -2,30 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
ds:apps_launchpad.component.button a ds:Component;
|
|
4
4
|
ds:name "Button";
|
|
5
|
-
ds:summary "The Button component is an interactive element that allows users to trigger an action.\
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.button\n styles:\n layout.type: stack\n layout.direction: horizontal\n layout.align: center\n spacing.internal: spacing/inline/small\n appearance.background: color/background/neutral/default\n appearance.border: border/style/solid\n appearance.radius: radius/medium\n typography.size: typography/paragraph/default\n edges:\n - node: \n role: content container\n styles:\n layout.type: grid\n layout.direction: horizontal\n spacing.gap: spacing/inline/icon\n edges:\n - node:\n role: icon container\n relation:\n cardinality: \"0..1\"\n slotName: iconLeft\n - node:\n role: label text\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: icon container\n relation:\n cardinality: \"0..1\"\n slotName: iconRight\n relation:\n cardinality: \"1\"\n - node:\n role: loader container\n edges:\n - uri: app-launchpad.component.spinner\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"\n slotName: loader
|
|
5
|
+
ds:summary "The **Button** component is an interactive element that allows users to trigger an action.\n\n**Main Use Cases:**\n\n- **Actions:** Trigger an action, such as submitting a form or opening a dialog.\n- **Navigation:** Navigate to a different page or view.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.button\n styles:\n layout.type: stack\n layout.direction: horizontal\n layout.align: center\n spacing.internal: spacing/inline/small\n appearance.background: color/background/neutral/default\n appearance.border: border/style/solid\n appearance.radius: radius/medium\n typography.size: typography/paragraph/default\n edges:\n - node: \n role: content container\n styles:\n layout.type: grid\n layout.direction: horizontal\n spacing.gap: spacing/inline/icon\n edges:\n - node:\n role: icon container\n relation:\n cardinality: \"0..1\"\n slotName: iconLeft\n - node:\n role: label text\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: icon container\n relation:\n cardinality: \"0..1\"\n slotName: iconRight\n relation:\n cardinality: \"1\"\n - node:\n role: loader container\n edges:\n - uri: app-launchpad.component.spinner\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"\n slotName: loader";
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/Y0cqKbTG4rejU9xm2oh5pR/%F0%9F%92%A0-Vanilla---Core-component-library?node-id=2066-8&m=dev";
|
|
8
|
+
ds:usage "### 1. General Description\n\nThe Button is a versatile component that can be used for a wide variety of actions. It is important to use the correct variant of the button to communicate the importance of the action.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Actions:** Use for any action that the user can take.\n- **Navigation:** Use for navigation to a different page or view.\n\n2.2 When Not to Use\n\n- **Non-interactive elements:** Do not use for non-interactive elements. Use a Chip or a Badge instead.";
|
|
9
|
+
ds:guidelines "### Accessibility\n\n- **Label:** Always provide a clear and descriptive label for the button.\n- **Focus state:** Provide a clear focus state for the button.\n\n### Content Specification\n\n- **Verb-first:** Use a verb-first approach for the button label.\n- **Concise:** Keep the button label concise.";
|
|
7
10
|
ds:tier ds:apps_launchpad;
|
|
8
11
|
ds:hasProperty [
|
|
9
12
|
a ds:Property;
|
|
10
13
|
ds:name "label";
|
|
11
|
-
ds:summary "
|
|
14
|
+
ds:summary "The label for the button.";
|
|
12
15
|
ds:propertyType "text";
|
|
13
|
-
ds:optional "
|
|
14
|
-
ds:defaultValue "“”"
|
|
16
|
+
ds:optional "false"
|
|
15
17
|
], [
|
|
16
18
|
a ds:Property;
|
|
17
19
|
ds:name "variant";
|
|
18
20
|
ds:summary "The variant of the button.";
|
|
19
21
|
ds:propertyType "choice";
|
|
20
22
|
ds:optional "true";
|
|
21
|
-
ds:
|
|
22
|
-
ds:
|
|
23
|
+
ds:constraints "primary, secondary, tertiary, danger";
|
|
24
|
+
ds:defaultValue "secondary"
|
|
23
25
|
], [
|
|
24
26
|
a ds:Property;
|
|
25
27
|
ds:name "disabled";
|
|
26
|
-
ds:summary "Whether
|
|
28
|
+
ds:summary "Whether the button is disabled or not.";
|
|
27
29
|
ds:propertyType "boolean";
|
|
28
|
-
ds:optional "
|
|
30
|
+
ds:optional "true"
|
|
29
31
|
], [
|
|
30
32
|
a ds:Property;
|
|
31
33
|
ds:name "loading";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:apps_launchpad.component.checkbox_input a ds:Component;
|
|
4
|
+
ds:name "CheckboxInput";
|
|
5
|
+
ds:summary "The **Checkbox** component is a form element that allows users to select one or more options from a list.\n\n**Main Use Cases:**\n\n- **Forms:** Used in forms to allow users to select multiple options from a list of choices.\n- **Settings:** Used in settings pages to allow users to configure their preferences.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.checkbox\n styles:\n layout.display: inline-block\n size.width: size/extra-small\n size.height: size/extra-small\n appearance.border: border/style/default\n appearance.background: color/background/default\n appearance.radius: radius/small\n edges:\n - node:\n role: marker\n styles:\n appearance.background: color/background/default\n relation:\n cardinality: \"0..1\"\n slotName: marker";
|
|
7
|
+
ds:anatomyClassic "The Checkbox is composed of a main container and an optional marker.\n\n1. **Container:** The outermost wrapper that defines the shape and size of the checkbox.\n2. **Marker:** A visual indicator that the checkbox is selected.\n\nhttps://www.figma.com/design/Y0cqKbTG4rejU9xm2oh5pR/%F0%9F%92%A0-Vanilla---Core-component-library?node-id=2006-123&m=dev";
|
|
8
|
+
ds:usage "### 1. General Description\n\nThe Checkbox is used when you need to allow users to select one or more options from a set of options. It is a good choice when you have a small number of options that are not mutually exclusive.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Multiple choices:** Use when you need to allow users to make multiple choices from a list of options.\n- **Small number of options:** Use when you have a small number of options.\n\n2.2 When Not to Use\n\n- **Single choice:** Do not use for a single choice. Use Radio buttons or a Select instead.";
|
|
9
|
+
ds:guidelines "### Accessibility\n\n- **Label:** Always provide a label for the checkbox to improve accessibility.\n- **Fieldset and Legend:** Group related checkboxes in a fieldset with a legend.";
|
|
10
|
+
ds:tier ds:apps_launchpad;
|
|
11
|
+
ds:hasProperty [
|
|
12
|
+
a ds:Property;
|
|
13
|
+
ds:name "checked";
|
|
14
|
+
ds:summary "Whether the checkbox is checked or not.";
|
|
15
|
+
ds:propertyType "boolean";
|
|
16
|
+
ds:optional "true";
|
|
17
|
+
ds:defaultValue "false"
|
|
18
|
+
], [
|
|
19
|
+
a ds:Property;
|
|
20
|
+
ds:name "disabled";
|
|
21
|
+
ds:summary "Whether the checkbox is disabled or not.";
|
|
22
|
+
ds:propertyType "boolean";
|
|
23
|
+
ds:optional "true";
|
|
24
|
+
ds:defaultValue "false"
|
|
25
|
+
], [
|
|
26
|
+
a ds:Property;
|
|
27
|
+
ds:name "value";
|
|
28
|
+
ds:summary "The value of the checkbox.";
|
|
29
|
+
ds:propertyType "text";
|
|
30
|
+
ds:optional "false"
|
|
31
|
+
].
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
ds:apps_launchpad.component.chip a ds:Component;
|
|
4
4
|
ds:name "Chip";
|
|
5
|
-
ds:summary "The Chip component is a small, interactive element that is used to display a piece of information, such as a filter or a selection.\
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.chip\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n edges:\n - node:\n role: icon container\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: lead text\n relation:\n cardinality: \"0..1\"\n slotName: lead\n - node:\n role: value text\n relation:\n cardinality: \"1\"\n slotName: value\n - uri: app-launchpad.component.badge\n relation:\n cardinality: \"0..1\"\n slotName: badge\n - switch:\n on: props\n cases
|
|
5
|
+
ds:summary "The **Chip** component is a small, interactive element that is used to display a piece of information, such as a filter or a selection.\n\n**Main Use Cases:**\n\n- **Filters:** Represent a filter that has been applied.\n- **Selections:** Represent an item that has been selected.\n- **Tags:** Represent a tag that has been assigned to an item.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.chip\n styles:\n layout.type: flow\n layout.direction: horizontal\n layout.align: center\n edges:\n - node:\n role: icon container\n relation:\n cardinality: \"0..1\"\n slotName: icon\n - node:\n role: lead text\n relation:\n cardinality: \"0..1\"\n slotName: lead\n - node:\n role: value text\n relation:\n cardinality: \"1\"\n slotName: value\n - uri: app-launchpad.component.badge\n relation:\n cardinality: \"0..1\"\n slotName: badge\n - switch:\n on: props\n *cases:*\n *- node:*\n *role: interactive chip*\n *edges:*\n *- node:*\n *role: dismiss button*\n *edges:*\n *- node:*\n *role: dismiss icon*\n *relation:*\n *cardinality: \"1\"*\n *relation:*\n *cardinality: \"0..1\"*\n *slotName: dismiss*\n *- node:*\n *role: readonly chip*\n *relation:*\n cardinality: \"1\"";
|
|
7
|
+
ds:anatomyClassic "The Chip is composed of a main container, a value, and optional icons, lead text, a badge, and a dismiss button.\n\n1. **Container:** The outermost wrapper that defines the shape and size of the chip.\n2. **Icon Container:** An optional container for an icon.\n3. **Lead Text:** Optional text that is displayed before the value.\n4. **Value Text:** The main text of the chip.\n5. **Badge:** An optional badge to display a count or a status.\n6. **Dismiss Button:** An optional button to remove the chip.\n\nhttps://www.figma.com/design/Y0cqKbTG4rejU9xm2oh5pR/%F0%9F%92%A0-Vanilla---Core-component-library?node-id=2066-19&m=dev";
|
|
8
|
+
ds:usage "### 1. General Description\n\nThe Chip is used to represent a small piece of information in a compact and interactive way. It is a versatile component that can be used in a variety of situations.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Filters:** Use to represent a filter that has been applied.\n- **Selections:** Use to represent an item that has been selected.\n- **Tags:** Use to represent a tag that has been assigned to an item.\n\n2.2 When Not to Use\n\n- **Actions:** Do not use for actions. Use a Button instead.\n- **Long information:** Do not use for long pieces of information.\n\n";
|
|
9
|
+
ds:guidelines "### Accessibility\n\n- **Label:** Provide a clear and descriptive label for the chip.\n- **Focus state:** Provide a clear focus state for the chip.\n- **Dismiss button:** If the chip is dismissible, provide a clear and descriptive label for the dismiss button.";
|
|
7
10
|
ds:tier ds:apps_launchpad;
|
|
8
11
|
ds:hasProperty [
|
|
9
12
|
a ds:Property;
|
|
10
13
|
ds:name "value";
|
|
11
|
-
ds:summary "The
|
|
14
|
+
ds:summary "The value to be displayed in the chip.";
|
|
12
15
|
ds:propertyType "text";
|
|
13
|
-
ds:optional "
|
|
14
|
-
ds:defaultValue "“”"
|
|
16
|
+
ds:optional "false"
|
|
15
17
|
], [
|
|
16
18
|
a ds:Property;
|
|
17
19
|
ds:name "lead";
|
|
@@ -22,9 +24,10 @@ ds:apps_launchpad.component.chip a ds:Component;
|
|
|
22
24
|
], [
|
|
23
25
|
a ds:Property;
|
|
24
26
|
ds:name "icon";
|
|
25
|
-
ds:summary "
|
|
26
|
-
ds:propertyType "
|
|
27
|
-
ds:optional "
|
|
27
|
+
ds:summary "Optional icon to be displayed in the chip.";
|
|
28
|
+
ds:propertyType "node";
|
|
29
|
+
ds:optional "true";
|
|
30
|
+
ds:defaultValue "null"
|
|
28
31
|
], [
|
|
29
32
|
a ds:Property;
|
|
30
33
|
ds:name "badge";
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
ds:apps_launchpad.component.combobox a ds:Component;
|
|
4
4
|
ds:name "Combobox";
|
|
5
|
-
ds:summary "The Combobox component is a combination of a text input and a dropdown list. It allows users to filter a list of options by typing a search query.\
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.combobox\n styles:\n layout.display: flex\n layout.direction: vertical\n spacing.gap: spacing/block/small\n appearance.background: color/background/default\n appearance.border: border/style/container\n appearance.radius: radius/medium\n appearance.shadow: shadow/overlay/default\n edges:\n - node:\n uri: app-launchpad.subcomponent.combobox.search\n relation:\n cardinality: \"1\"\n slotName: search\n - node:\n role: option list\n styles:\n layout.display: flex\n layout.direction: vertical\n size.max-height: 350px\n layout.overflow-y: auto\n edges:\n - switch:\n cases:\n - node:\n uri: app-launchpad.subcomponent.combobox.loading\n - node:\n uri: app-launchpad.subcomponent.combobox.no-results\n - node:\n uri: app-launchpad.subcomponent.combobox.group\n edges:\n - switch:\n cases:\n - node:\n uri: app-launchpad.subcomponent.combobox.checkbox-option\n - node:\n uri: app-launchpad.subcomponent.combobox.radio-option\n relation:\n cardinality: \"1..*\"\n slotName: default\n relation:\n cardinality: \"0..*\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: app-launchpad.subcomponent.combobox.helper\n relation:\n cardinality: \"0..1\"\n slotName: helper\n - node:\n uri: app-launchpad.subcomponent.combobox.footer\n relation:\n cardinality: \"0..1\"\n slotName: footer
|
|
5
|
+
ds:summary "The **Combobox** component is a combination of a text input and a dropdown list. It allows users to filter a list of options by typing a search query.\n\n**Main Use Cases:**\n\n- **Filtering:** Filter a long list of options.\n- **Search:** Provide a quick way to find a specific option.\n- **Autocomplete:** Provide suggestions as the user types.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.combobox\n styles:\n layout.display: flex\n layout.direction: vertical\n spacing.gap: spacing/block/small\n appearance.background: color/background/default\n appearance.border: border/style/container\n appearance.radius: radius/medium\n appearance.shadow: shadow/overlay/default\n edges:\n - node:\n uri: app-launchpad.subcomponent.combobox.search\n relation:\n cardinality: \"1\"\n slotName: search\n - node:\n role: option list\n styles:\n layout.display: flex\n layout.direction: vertical\n size.max-height: 350px\n layout.overflow-y: auto\n edges:\n - switch:\n cases:\n - node:\n uri: app-launchpad.subcomponent.combobox.loading\n - node:\n uri: app-launchpad.subcomponent.combobox.no-results\n - node:\n uri: app-launchpad.subcomponent.combobox.group\n edges:\n - switch:\n cases:\n - node:\n uri: app-launchpad.subcomponent.combobox.checkbox-option\n - node:\n uri: app-launchpad.subcomponent.combobox.radio-option\n relation:\n cardinality: \"1..*\"\n slotName: default\n relation:\n cardinality: \"0..*\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: app-launchpad.subcomponent.combobox.helper\n relation:\n cardinality: \"0..1\"\n slotName: helper\n - node:\n uri: app-launchpad.subcomponent.combobox.footer\n relation:\n cardinality: \"0..1\"\n slotName: footer";
|
|
7
|
+
ds:anatomyClassic "The Combobox is composed of a main container, a search input, a list of options, and optional helper text and a footer.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the combobox.\n2. **Search:** The search input field.\n3. **Option List:** The list of options.\n4. **Helper:** Optional helper text.\n5. **Footer:** Optional footer with actions.\n\nhttps://www.figma.com/design/zLPPWH90vDkSUaTnYC0em0/Launchpad-components--new-?node-id=6127-34506&m=dev";
|
|
8
|
+
ds:usage "### 1. General Description\n\nThe Combobox is used when you need to provide a search and filtering functionality for a list of options. It is a powerful component that can be used in a variety of situations.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Long lists:** Use when you have a long list of options that is difficult to navigate.\n- **Filtering:** Use to provide a powerful filtering mechanism.\n- **Autocomplete:** Use to provide suggestions as the user types.\n\n2.2 When Not to Use\n\n- **Short lists:** Do not use for short lists of options that can be easily scanned.\n\n";
|
|
9
|
+
ds:guidelines "### Accessibility\n\n- **ARIA attributes:** Use the appropriate ARIA attributes to make the combobox accessible.\n- **Keyboard navigation:** Ensure that the combobox can be fully operated with the keyboard.";
|
|
7
10
|
ds:tier ds:apps_launchpad;
|
|
8
11
|
ds:hasProperty [
|
|
9
12
|
a ds:Property;
|
|
10
13
|
ds:name "children";
|
|
11
|
-
ds:
|
|
12
|
-
ds:
|
|
14
|
+
ds:summary "The content of the combobox, typically a list of options.";
|
|
15
|
+
ds:propertyType "list of nodes";
|
|
16
|
+
ds:optional "true"
|
|
13
17
|
], [
|
|
14
18
|
a ds:Property;
|
|
15
19
|
ds:name "search";
|
|
@@ -19,21 +23,21 @@ ds:apps_launchpad.component.combobox a ds:Component;
|
|
|
19
23
|
], [
|
|
20
24
|
a ds:Property;
|
|
21
25
|
ds:name "inputsName";
|
|
22
|
-
ds:summary "The `name` attribute of the input elements within the combobox. This is provided on the root element instead of individual options to ensure all inputs share the same name
|
|
26
|
+
ds:summary "```The `name` attribute of the input elements within the combobox. This is provided on the root element instead of individual options to ensure all inputs share the same name.```";
|
|
23
27
|
ds:propertyType "text";
|
|
24
28
|
ds:optional "false"
|
|
25
29
|
], [
|
|
26
30
|
a ds:Property;
|
|
27
|
-
ds:name "
|
|
28
|
-
ds:summary "
|
|
31
|
+
ds:name "type";
|
|
32
|
+
ds:summary "Combobox type.";
|
|
29
33
|
ds:propertyType "choice";
|
|
30
34
|
ds:optional "false";
|
|
31
|
-
ds:
|
|
32
|
-
ds:
|
|
35
|
+
ds:constraints "multi-select, single-select";
|
|
36
|
+
ds:defaultValue "multi-select"
|
|
33
37
|
], [
|
|
34
38
|
a ds:Property;
|
|
35
39
|
ds:name "aria-busy";
|
|
36
|
-
ds:summary "Overrides `aria-busy` on the combobox options container to indicate that the combobox is loading data, such as fetching options from an API
|
|
40
|
+
ds:summary "```Overrides `aria-busy` on the combobox options container to indicate that the combobox is loading data, such as fetching options from an API.```";
|
|
37
41
|
ds:propertyType "boolean";
|
|
38
42
|
ds:optional "true";
|
|
39
43
|
ds:defaultValue "als"
|
|
@@ -49,4 +53,5 @@ ds:apps_launchpad.component.combobox a ds:Component;
|
|
|
49
53
|
ds:summary "Footer content, often used for actions related to the panel's content.";
|
|
50
54
|
ds:propertyType "node";
|
|
51
55
|
ds:optional "true"
|
|
52
|
-
]
|
|
56
|
+
];
|
|
57
|
+
ds:hasSubcomponent ds:apps_launchpad.subcomponent.combobox-footer, ds:apps_launchpad.subcomponent.combobox-group, ds:apps_launchpad.subcomponent.combobox-helper, ds:apps_launchpad.subcomponent.combobox-no_results, ds:apps_launchpad.subcomponent.combobox-search, ds:apps_launchpad.subcomponent.combobox-checkbox_option, ds:apps_launchpad.subcomponent.combobox-radio_option, ds:apps_launchpad.subcomponent.combobox-loading.
|
|
@@ -2,12 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
ds:apps_launchpad.component.description_list a ds:Component;
|
|
4
4
|
ds:name "DescriptionList";
|
|
5
|
-
ds:summary "The DescriptionList component is used to display a list of key-value pairs.\
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.description-list\n styles:\n layout.display: grid\n spacing.row-gap: spacing/block/extra-small\n spacing.column-gap: spacing/inline/extra-small\n edges:\n - node:\n uri: app-launchpad.subcomponent.description-list.item\n relation:\n cardinality: \"0..*\"\n slotName: default
|
|
5
|
+
ds:summary "The **DescriptionList** component is used to display a list of key-value pairs.\n\n**Main Use Cases:**\n\n- **Metadata:** Display metadata about an object.\n- **Definitions:** Provide definitions for a list of terms.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.description-list\n styles:\n layout.display: grid\n spacing.row-gap: spacing/block/extra-small\n spacing.column-gap: spacing/inline/extra-small\n edges:\n - node:\n uri: app-launchpad.subcomponent.description-list.item\n relation:\n cardinality: \"0..*\"\n slotName: default";
|
|
7
|
+
ds:anatomyClassic "The DescriptionList is composed of a main container that holds a list of DescriptionList Items.\n\n1. **Container:** The outermost wrapper that defines the layout and styling of the list.\n2. **DescriptionList Item:** A single key-value pair in the list.\n\nhttps://www.figma.com/design/zLPPWH90vDkSUaTnYC0em0/Launchpad-components--new-?node-id=7685-2577&m=dev";
|
|
8
|
+
ds:usage "### 1. General Description\n\nThe DescriptionList is used to display a list of items and their descriptions. It is a flexible component that can be used in a variety of situations.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Key-value pairs:** Use when you need to display a list of key-value pairs.\n- **Metadata:** Use to display metadata about an object.\n\n2.2 When Not to Use\n\n- **Simple lists:** Do not use for a simple list of items. Use a regular list instead.";
|
|
9
|
+
ds:guidelines "### Accessibility\n\n- **Semantic HTML:** Use the `<dl>`, `<dt>`, and `<dd>` elements to create a semantic description list.";
|
|
7
10
|
ds:tier ds:apps_launchpad;
|
|
8
11
|
ds:hasProperty [
|
|
9
12
|
a ds:Property;
|
|
10
13
|
ds:name "children";
|
|
14
|
+
ds:summary "The list of DescriptionList Items.";
|
|
11
15
|
ds:propertyType "node";
|
|
12
16
|
ds:optional "false"
|
|
13
|
-
]
|
|
17
|
+
];
|
|
18
|
+
ds:hasSubcomponent ds:apps_launchpad.subcomponent.description_list-item.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:apps_launchpad.component.drawer a ds:Component;
|
|
4
|
+
ds:name "Drawer";
|
|
5
|
+
ds:summary "SidePanel is a dialog UI block that slides in from the right edge of the viewport. It keeps the underlying page visible and allows users to inspect or edit information in context without navigating away.\n\nMain use cases:\n\n- Showing details of a selected list item alongside the list.\n- Editing or configuring an item without losing place in a workflow.\n- Temporarily displaying extended information that should not fully replace the current page.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: app-launchpad.component.side-panel\n styles:\n layout.position: fixed\n layout.side: inline-end\n size.height: 100vh\n appearance.shadow: \"0 0 32px 0 rgba(0,0,0,0.2)\"\n appearance.backdrop.color: transparent\n appearance.border: none\n interaction.transition.property:\n - display\n - transform\n - overlay\n interaction.transition.transform.closed: translateX(100%)\n interaction.transition.transform.open: translateX(0)\n edges:\n - node:\n role: trigger snippet\n relation:\n cardinality: \"0..1\"\n slotName: trigger\n - switch:\n on: override\n cases:\n - uri: app-launchpad.subcomponent.side-panel-content\n - uri: $custom\n relation:\n cardinality: \"0..1\"\n slotName: children";
|
|
7
|
+
ds:anatomyClassic "";
|
|
8
|
+
ds:usage "Modal provides a native dialog-based overlay with two composition paths: declarative trigger/command wiring and imperative instance control. In practice, teams can build either structured confirmation dialogs or fully custom content while preserving consistent open, close, and dismissal behavior.\n\n## When to use\n\nUse SidePanel for adjacent workflows where users benefit from keeping the main page in view.\n\n## When not to use\n\n### **Lightweight contextual actions**\n\n**Incorrect pattern**: using a blocking dialog for quick contextual choices that should not interrupt page interaction. \n**Remediation strategy**: use a non-modal surface for quick, in-context choices.\n\n### **Fully replacing page navigation**\n\n**Incorrect pattern**: using a side panel as a secondary page destination with independent navigation context. \n**Remediation strategy**: route to a dedicated page instead.";
|
|
9
|
+
ds:guidelines "## **Trigger and dialog relationship**\n\nEnsure trigger props are applied to an interactive control so assistive technologies can identify side panel intent and ownership.\n\n## **Explicit close controls**\n\nProvide at least one visible close action inside the side panel content, especially when light dismissal is disabled.";
|
|
10
|
+
ds:tier ds:apps_launchpad;
|
|
11
|
+
ds:hasProperty [
|
|
12
|
+
a ds:Property;
|
|
13
|
+
ds:name "trigger";
|
|
14
|
+
ds:summary "Snippet that renders the trigger element used to open the side panel.";
|
|
15
|
+
ds:propertyType "Snippet";
|
|
16
|
+
ds:optional "true";
|
|
17
|
+
ds:constraints "Receives commandfor, command show-modal, aria-haspopup dialog, and optional onclick fallback when invoker commands are unsupported."
|
|
18
|
+
], [
|
|
19
|
+
a ds:Property;
|
|
20
|
+
ds:name "children";
|
|
21
|
+
ds:summary "Snippet that renders side panel content.";
|
|
22
|
+
ds:propertyType "Snippet";
|
|
23
|
+
ds:optional "true";
|
|
24
|
+
ds:constraints "Receives commandfor and close callback. Can use SidePanel.Content or custom markup."
|
|
25
|
+
], [
|
|
26
|
+
a ds:Property;
|
|
27
|
+
ds:name "closeOnOutsideClick";
|
|
28
|
+
ds:summary "Whether a light dismissal is enabled.";
|
|
29
|
+
ds:propertyType "boolean";
|
|
30
|
+
ds:optional "true";
|
|
31
|
+
ds:defaultValue "true"
|
|
32
|
+
], [
|
|
33
|
+
a ds:Property;
|
|
34
|
+
ds:name "Dialog passthrough attributes";
|
|
35
|
+
ds:summary "Forwarded HTML dialog attributes.";
|
|
36
|
+
ds:optional "true"
|
|
37
|
+
];
|
|
38
|
+
ds:hasSubcomponent ds:apps_launchpad.subcomponent.side_panel-content.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:apps_launchpad.component.log a ds:Component;
|
|
4
|
+
ds:name "Log";
|
|
5
|
+
ds:summary "Log is a structured, scrollable table for displaying sequential log entries with line numbers, timestamps, and message content. Use it to surface build output, deployment pipelines, system events, or any append-style stream of timestamped text. The component handles timestamp formatting (UTC, local, or explicit timezone), optional line-level linking via URL fragment targeting, line wrapping control.";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: app-launchpad.component.log\n styles:\n layout.display: block\n layout.overflow: auto\n appearance.background.color: \"color/background/alt\"\n spacing.padding.inline.end: \"dimension/spacing/inline/m\"\n spacing.padding.block.end: \"dimension/spacing/block/xxxl\"\n edges:\n - node:\n uri: app-launchpad.subcomponent.log-line\n relation:\n cardinality: \"0..n\"\n slotName: children";
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/GhfdIhG3Pgkx9ipapvBQho/26.04-Build-farm---Launchpad?node-id=4158-31481&m=dev";
|
|
8
|
+
ds:usage "### When to use\n\nUse Log when rendering a sequential, ordered stream of events where line number, timestamp, and message content must be scannable together.";
|
|
9
|
+
ds:guidelines "## Table semantics\n\nLog renders as a `<table>` with a visually hidden `<thead>` containing column headers (Line, Timestamp, Content). This ensures assistive technologies can announce column context for each cell. Provide a `caption` prop when multiple logs appear on the same page or when the surrounding context does not already label the log.\n\n## Timestamp formatting\n\nThe default formatter outputs `YYYY-MM-DD HH:mm:ss.SSS` and is driven by `Intl.DateTimeFormat`. Pass `timeZone=\"local\"` to display times in the user’s browser timezone, or an explicit IANA timezone string for deterministic SSR output. For non-standard formats (e.g. Unix epoch, relative time), supply a `timestampFormatter` object instead; `timeZone` is ignored when a custom formatter is present.\n\n## Content\n\nLog line content is rendered with `white-space: pre` by default to preserve indentation and spacing in program output. Be intentional about `wrapLines` wrapping, as it can break the visual alignment of the program output, decreasing the readability.\n\nAvoid truncating or summarizing log content. The log is designed for verbatim output; users rely on exact text to diagnose issues.\n\n";
|
|
10
|
+
ds:tier ds:apps_launchpad;
|
|
11
|
+
ds:hasProperty [
|
|
12
|
+
a ds:Property;
|
|
13
|
+
ds:name "children";
|
|
14
|
+
ds:summary "One or more `Log.Line` entries to render inside the log table.";
|
|
15
|
+
ds:propertyType "Snippet";
|
|
16
|
+
ds:optional "true"
|
|
17
|
+
], [
|
|
18
|
+
a ds:Property;
|
|
19
|
+
ds:name "hideTimestamps";
|
|
20
|
+
ds:summary "When true, the timestamp column is removed from all lines.";
|
|
21
|
+
ds:propertyType "boolean";
|
|
22
|
+
ds:optional "true";
|
|
23
|
+
ds:defaultValue "false"
|
|
24
|
+
], [
|
|
25
|
+
a ds:Property;
|
|
26
|
+
ds:name "wrapLines";
|
|
27
|
+
ds:summary "When true, long lines wrap onto multiple visual rows instead of scrolling horizontally.";
|
|
28
|
+
ds:propertyType "boolean";
|
|
29
|
+
ds:optional "true";
|
|
30
|
+
ds:defaultValue "false"
|
|
31
|
+
], [
|
|
32
|
+
a ds:Property;
|
|
33
|
+
ds:name "timeZone";
|
|
34
|
+
ds:summary "Timezone used by the default timestamp formatter.";
|
|
35
|
+
ds:propertyType "text";
|
|
36
|
+
ds:optional "true";
|
|
37
|
+
ds:defaultValue "`\"UTC\"`";
|
|
38
|
+
ds:constraints "Accepts `\"UTC\"`, `\"local\"`, or any IANA timezone string (e.g. `\"Europe/Warsaw\"`). Invalid values fall back to UTC. Ignored when `timestampFormatter` is set. In SSR, `\"local\"` resolves to the server runtime timezone and may differ from the browser during hydration."
|
|
39
|
+
], [
|
|
40
|
+
a ds:Property;
|
|
41
|
+
ds:name "timestampFormatter";
|
|
42
|
+
ds:summary "Custom formatter used instead of the built-in timestamp formatting.";
|
|
43
|
+
ds:propertyType "object";
|
|
44
|
+
ds:optional "true";
|
|
45
|
+
ds:constraints "`{ format: (date: Date) => string }`\n\nWhen provided, `timeZone` must not be set. The formatter is responsible for all timezone handling."
|
|
46
|
+
], [
|
|
47
|
+
a ds:Property;
|
|
48
|
+
ds:name "caption";
|
|
49
|
+
ds:summary "Accessible caption for the log table. Not visually displayed.";
|
|
50
|
+
ds:propertyType "text";
|
|
51
|
+
ds:optional "true"
|
|
52
|
+
], [
|
|
53
|
+
a ds:Property;
|
|
54
|
+
ds:name "HTML table attributes";
|
|
55
|
+
ds:summary "Forwarded HTML <table> attributes.";
|
|
56
|
+
ds:optional "true"
|
|
57
|
+
];
|
|
58
|
+
ds:hasSubcomponent ds:apps_launchpad.subcomponent.log-line.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:apps_launchpad.component.modal a ds:Component;
|
|
4
|
+
ds:name "Modal";
|
|
5
|
+
ds:summary "Modal is a blocking overlay UI block for focused tasks that should temporarily interrupt interaction with the underlying page. It supports declarative trigger wiring, custom content composition, and imperative open/close methods.\n\n";
|
|
6
|
+
ds:anatomyDsl "node:\n uri: app-launchpad.component.modal\n styles:\n layout.position: fixed\n appearance.border.width: \"border/width/default\"\n appearance.border.color: \"color/border/high-contrast\"\n appearance.backdrop.color: \"color/background/overlay\"\n interaction.transition.property:\n - display\n - opacity\n - overlay\n interaction.transition.duration: \"transition/duration/fast\"\n edges:\n - node:\n role: trigger\n relation:\n cardinality: \"0..1\"\n slotName: trigger\n\n - switch:\n on: override\n cases:\n - uri: app-launchpad.subcomponent.modal-content\n - uri: $custom\n relation:\n cardinality: \"0..1\"\n slotName: children";
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/RAXanbc6H7Ti9C4CG2sBQx/25.10-Merge-Proposal-page--new----Launchpad?node-id=5041-478772&m=dev";
|
|
8
|
+
ds:usage "Modal provides a native dialog-based overlay with two composition paths: declarative trigger/command wiring and imperative instance control. In practice, teams can build either structured confirmation dialogs or fully custom content while preserving consistent open, close, and dismissal behavior.\n\n## When to use\n\nUse Modal when the interaction should take focus and block background interaction until the user makes a decision or completes a task.\n\n## When not to use\n\n### **Lightweight contextual actions**\n\n**Incorrect pattern**: using a blocking dialog for quick contextual choices that should not interrupt page interaction. \n**Remediation strategy**: use a non-modal surface for quick, in-context choices.\n\n### **Persistent side-docked workflows**\n\n**Incorrect pattern**: using Modal when the expected behavior is a side-attached, panel-style layout. \n**Remediation strategy**: use a dedicated side panel component that composes modal mechanics but preserves panel ergonomics.";
|
|
9
|
+
ds:guidelines "## **Trigger and dialog relationship**\n\nEnsure trigger props are applied to an interactive control so assistive technologies can identify dialog intent and ownership.\n\n## **Explicit close controls**\n\nProvide at least one visible close action inside the modal content, especially when light dismissal is disabled.";
|
|
10
|
+
ds:tier ds:apps_launchpad;
|
|
11
|
+
ds:hasProperty [
|
|
12
|
+
a ds:Property;
|
|
13
|
+
ds:name "trigger";
|
|
14
|
+
ds:summary "Snippet that renders the trigger element used to open the dialog.";
|
|
15
|
+
ds:propertyType "Snippet";
|
|
16
|
+
ds:optional "true";
|
|
17
|
+
ds:constraints "Receives commandfor, command show-modal, aria-haspopup dialog, and optional onclick fallback when invoker commands are unsupported."
|
|
18
|
+
], [
|
|
19
|
+
a ds:Property;
|
|
20
|
+
ds:name "children";
|
|
21
|
+
ds:summary "Snippet that renders modal content.";
|
|
22
|
+
ds:propertyType "Snippet";
|
|
23
|
+
ds:optional "true";
|
|
24
|
+
ds:constraints "Receives commandfor and close callback. Can use Modal.Content or custom markup."
|
|
25
|
+
], [
|
|
26
|
+
a ds:Property;
|
|
27
|
+
ds:name "closeOnOutsideClick";
|
|
28
|
+
ds:summary "Whether a light dismissal is enabled.";
|
|
29
|
+
ds:propertyType "boolean";
|
|
30
|
+
ds:optional "true";
|
|
31
|
+
ds:defaultValue "true"
|
|
32
|
+
], [
|
|
33
|
+
a ds:Property;
|
|
34
|
+
ds:name "Dialog passthrough attributes";
|
|
35
|
+
ds:summary "Forwarded HTML dialog attributes.";
|
|
36
|
+
ds:optional "true"
|
|
37
|
+
];
|
|
38
|
+
ds:hasSubcomponent ds:apps_launchpad.subcomponent.modal-content;
|
|
39
|
+
ds:changeLog [
|
|
40
|
+
a ds:ChangeLogEntry;
|
|
41
|
+
ds:timestamp "2026-06-19T00:00:00.000+02:00";
|
|
42
|
+
ds:change "Modal.Content.Body renamed to Modal.Content\nModal renamed to ModalProvider to separate consumption pattern from markup/component\nAfter thoses changes are made the component should be checked for token parity with the global tier and can be upstreamed.";
|
|
43
|
+
ds:changeType "change"
|
|
44
|
+
].
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:apps_launchpad.component.radio_input a ds:Component;
|
|
4
|
+
ds:name "RadioInput";
|
|
5
|
+
ds:summary "The **Radio** component is a form element that allows users to select one option from a list of mutually exclusive options.\n\n**Main Use Cases:**\n\n- **Forms:** Used in forms to allow users to select a single option from a list of choices.\n- **Settings:** Used in settings pages to allow users to configure their preferences.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.radio\n styles:\n layout.display: inline-block\n size.width: size/extra-small\n size.height: size/extra-small\n appearance.border: border/style/default\n appearance.background: color/background/default\n appearance.radius: radius/full\n edges:\n - node:\n role: marker\n styles:\n appearance.background: color/background/default\n relation:\n cardinality: \"1\"\n slotName: marker";
|
|
7
|
+
ds:anatomyClassic "The Radio is composed of a main container and an optional marker.\n\n1. **Container:** The outermost wrapper that defines the shape and size of the radio button.\n2. **Marker:** A visual indicator that the radio button is selected.\n\nhttps://www.figma.com/design/Y0cqKbTG4rejU9xm2oh5pR/%F0%9F%92%A0-Vanilla---Core-component-library?node-id=2066-38&m=dev";
|
|
8
|
+
ds:usage "### 1. General Description\n\nThe Radio is used when you need to allow users to select one option from a set of options. It is a good choice when you have a small number of options that are mutually exclusive.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Single choice:** Use when you need to allow users to make a single choice from a list of options.\n- **Small number of options:** Use when you have a small number of options (2-5).\n\n2.2 When Not to Use\n\n- **Multiple choices:** Do not use for multiple choices. Use Checkboxes instead.\n- **Large number of options:** Do not use for a large number of options. Use a Select instead.";
|
|
9
|
+
ds:guidelines "### Accessibility\n\n- **Label:** Always provide a label for the radio button to improve accessibility.\n- **Fieldset and Legend:** Group related radio buttons in a fieldset with a legend.";
|
|
10
|
+
ds:tier ds:apps_launchpad;
|
|
11
|
+
ds:hasProperty [
|
|
12
|
+
a ds:Property;
|
|
13
|
+
ds:name "checked";
|
|
14
|
+
ds:summary "Whether the radio button is checked or not.";
|
|
15
|
+
ds:propertyType "boolean";
|
|
16
|
+
ds:optional "true";
|
|
17
|
+
ds:defaultValue "false"
|
|
18
|
+
], [
|
|
19
|
+
a ds:Property;
|
|
20
|
+
ds:name "disabled";
|
|
21
|
+
ds:summary "Whether the radio button is disabled or not.";
|
|
22
|
+
ds:propertyType "boolean";
|
|
23
|
+
ds:optional "true";
|
|
24
|
+
ds:defaultValue "false"
|
|
25
|
+
], [
|
|
26
|
+
a ds:Property;
|
|
27
|
+
ds:name "value";
|
|
28
|
+
ds:summary "The value of the radio button.";
|
|
29
|
+
ds:propertyType "text";
|
|
30
|
+
ds:optional "false"
|
|
31
|
+
], [
|
|
32
|
+
a ds:Property;
|
|
33
|
+
ds:name "name";
|
|
34
|
+
ds:summary "The name of the radio group. ";
|
|
35
|
+
ds:propertyType "text";
|
|
36
|
+
ds:optional "false"
|
|
37
|
+
].
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
|
|
3
|
+
ds:apps_launchpad.component.select_input a ds:Component;
|
|
4
|
+
ds:name "SelectInput";
|
|
5
|
+
ds:summary "## Description\n\nThe **Select** component is a form element that allows users to choose one option from a predefined list. It is a compact way to present a list of options, as only the selected option is visible by default.\n\n**Main Use Cases:**\n\n- **Forms:** Used in forms to allow users to select a single option from a list of choices.\n- **Settings:** Used in settings pages to allow users to configure their preferences.\n- **Filtering:** Used to filter a list of items based on a selected category.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.select\n styles:\n layout.display: inline-grid\n typography.size: typography/paragraph/default\n typography.color: color/text/default\n edges:\n - node:\n role: native select\n styles:\n appearance.background: color/background/input\n appearance.border: border/style/underline\n appearance.radius: radius/small\n spacing.padding: spacing/inline/extra-small\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: indicator icon\n styles:\n size.width: size/extra-small\n size.height: size/extra-small\n relation:\n cardinality: \"0..1\"";
|
|
7
|
+
ds:anatomyClassic "The Select component is composed of a main container, a native select element, and an optional indicator icon.\n\n1. **Container:** The outermost wrapper that holds the select element and the indicator icon.\n2. **Native Select:** The native HTML select element that provides the core functionality.\n3. **Indicator Icon:** A visual indicator, usually a chevron, to indicate that the element is a dropdown.\n\nhttps://www.figma.com/design/Y0cqKbTG4rejU9xm2oh5pR/%F0%9F%92%A0-Vanilla---Core-component-library?node-id=2066-43&m=dev";
|
|
8
|
+
ds:usage "### 1. General Description\n\nSelect components are used when you have a list of options and you want to allow the user to select one of them. They are a good choice when you have limited space and you don’t want to overwhelm the user with a large number of options.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **List of options:** Use when you have a list of 5 or more options.\n- **Limited space:** Use when you have limited screen real estate.\n\n2.2 When Not to Use\n\n- **Few options:** Do not use if you have less than 5 options. Use Radio buttons instead.\n- **Binary choice:** Do not use for a binary choice. Use a Switch or a Checkbox instead.";
|
|
9
|
+
ds:guidelines "### Accessibility\n\n- **Label:** Always provide a label for the select element to improve accessibility.\n- **Keyboard Navigation:** The select element should be focusable and operable with the keyboard.\n\n### Keyboard Navigation\n\n- **Tab:** Moves focus to the select element.\n- **Enter / Space:** Opens the dropdown list of options.\n- **Up / Down Arrow:** Navigates through the options.\n- **Enter:** Selects the currently focused option.";
|
|
10
|
+
ds:tier ds:apps_launchpad;
|
|
11
|
+
ds:hasProperty [
|
|
12
|
+
a ds:Property;
|
|
13
|
+
ds:name "options";
|
|
14
|
+
ds:summary "The list of options to be rendered.";
|
|
15
|
+
ds:propertyType "list of text";
|
|
16
|
+
ds:optional "false"
|
|
17
|
+
], [
|
|
18
|
+
a ds:Property;
|
|
19
|
+
ds:name "value";
|
|
20
|
+
ds:summary "The currently selected value.";
|
|
21
|
+
ds:propertyType "text";
|
|
22
|
+
ds:optional "true";
|
|
23
|
+
ds:defaultValue "first element"
|
|
24
|
+
], [
|
|
25
|
+
a ds:Property;
|
|
26
|
+
ds:name "disabled";
|
|
27
|
+
ds:summary "Whether the select is disabled or not.";
|
|
28
|
+
ds:propertyType "boolean";
|
|
29
|
+
ds:optional "true";
|
|
30
|
+
ds:defaultValue "false"
|
|
31
|
+
], [
|
|
32
|
+
a ds:Property;
|
|
33
|
+
ds:name "label";
|
|
34
|
+
ds:summary "A label for the select element. ";
|
|
35
|
+
ds:propertyType "text";
|
|
36
|
+
ds:optional "true";
|
|
37
|
+
ds:defaultValue "“”"
|
|
38
|
+
].
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
ds:apps_launchpad.component.switch a ds:Component;
|
|
4
4
|
ds:name "Switch";
|
|
5
|
-
ds:summary "The Switch component is a form element that allows users to toggle between two states, such as on and off.\
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.switch\n styles:\n layout.display: inline-block\n size.width: size/large\n size.height: size/extra-small\n appearance.background: color/border/high-contrast\n appearance.radius: radius/full\n edges:\n - node:\n role: knob\n styles:\n size.width: size/extra-small\n size.height: size/extra-small\n appearance.background: color/background/default\n appearance.radius: radius/full\n relation:\n cardinality: \"1\"\n slotName: knob
|
|
5
|
+
ds:summary "The **Switch** component is a form element that allows users to toggle between two states, such as on and off.\n\n**Main Use Cases:**\n\n- **Settings:** Used in settings pages to allow users to enable or disable a feature.\n- **Forms:** Used in forms to allow users to make a binary choice.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.switch\n styles:\n layout.display: inline-block\n size.width: size/large\n size.height: size/extra-small\n appearance.background: color/border/high-contrast\n appearance.radius: radius/full\n edges:\n - node:\n role: knob\n styles:\n size.width: size/extra-small\n size.height: size/extra-small\n appearance.background: color/background/default\n appearance.radius: radius/full\n relation:\n cardinality: \"1\"\n slotName: knob";
|
|
7
|
+
ds:anatomyClassic "The Switch is composed of a main container and a knob.\n\n1. **Container:** The outermost wrapper that defines the shape and size of the switch.\n2. **Knob:** The movable part of the switch that indicates the current state.\n\nhttps://www.figma.com/design/Y0cqKbTG4rejU9xm2oh5pR/%F0%9F%92%A0-Vanilla---Core-component-library?node-id=2066-48&m=dev";
|
|
8
|
+
ds:usage "### dges: \n - node: \n role: prefix \n relation: \n cardinality: \"0..1\" \n slotName: prefix \n - node: \n role: value \n relation: \n cardinality: \"1\" \n slotName: default \n - node: \n role: suffix \n relation: \n cardinality: \"0..1\" \n slotName: suffix1. General Description\n\nThe Switch is used when you need to allow users to make a binary choice. It is a visually appealing alternative to a checkbox.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Binary choice:** Use when you need to allow users to make a binary choice.\n- **On/Off:** Use for on/off switches.\n\n2.2 When Not to Use\n\n- **Multiple options:** Do not use for multiple options. Use Radio buttons or a Select instead.";
|
|
9
|
+
ds:guidelines "### Accessibility\n\n- **Label:** Always provide a label for the switch to improve accessibility.\n- **ARIA attributes:** Use the appropriate ARIA attributes to make the switch accessible.";
|
|
7
10
|
ds:tier ds:apps_launchpad;
|
|
8
11
|
ds:hasProperty [
|
|
9
12
|
a ds:Property;
|
|
@@ -15,7 +18,8 @@ ds:apps_launchpad.component.switch a ds:Component;
|
|
|
15
18
|
], [
|
|
16
19
|
a ds:Property;
|
|
17
20
|
ds:name "disabled";
|
|
18
|
-
ds:summary "Whether
|
|
21
|
+
ds:summary "Whether the switch is disabled or not. ";
|
|
19
22
|
ds:propertyType "boolean";
|
|
20
|
-
ds:optional "
|
|
23
|
+
ds:optional "true";
|
|
24
|
+
ds:defaultValue "false"
|
|
21
25
|
].
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
ds:apps_launchpad.component.text_input a ds:Component;
|
|
4
4
|
ds:name "TextInput";
|
|
5
|
-
ds:summary "The TextInput component is a form element that allows users to enter a single line of text.\
|
|
6
|
-
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.text-input\n styles:\n layout.display: inline-block\n size.height: size/form-field\n spacing.internal: spacing/inline/medium\n appearance.background: color/background/input\n appearance.border: border/style/underline\n typography.size: typography/paragraph/default
|
|
5
|
+
ds:summary "The **TextInput** component is a form element that allows users to enter a single line of text.\n\n**Main Use Cases:**\n\n- **Forms:** Used in forms to allow users to enter a short text, such as a name or an email address.\n- **Search:** Used as the base for a search input.";
|
|
6
|
+
ds:anatomyDsl "---\nnode:\n uri: app-launchpad.component.text-input\n styles:\n layout.display: inline-block\n size.height: size/form-field\n spacing.internal: spacing/inline/medium\n appearance.background: color/background/input\n appearance.border: border/style/underline\n typography.size: typography/paragraph/default";
|
|
7
|
+
ds:anatomyClassic "https://www.figma.com/design/Y0cqKbTG4rejU9xm2oh5pR/%F0%9F%92%A0-Vanilla---Core-component-library?node-id=2066-28&m=dev\n\nThe TextInput is a single component with no subcomponents.\n\n\n\n1. **TextInput:** The main text input area.";
|
|
8
|
+
ds:usage "### 1. General Description\n\nThe TextInput is used when you need to allow users to enter a single line of text. It is a versatile component that can be used in a variety of situations.\n\n### 2. Implementation Guidelines\n\n2.1 When to Use\n\n- **Single-line input:** Use when you need to allow users to enter single-line text.\n- **Short text:** Use when the expected input is a single line.\n\n2.2 When Not to Use\n\n- **Multi-line input:** Do not use for multi-line input. Use a Textarea instead.";
|
|
9
|
+
ds:guidelines "### Accessibility\n\n- **Label:** Always provide a label for the text input to improve accessibility.\n- **Input type:** Use the appropriate input type to provide the best user experience.";
|
|
7
10
|
ds:tier ds:apps_launchpad;
|
|
8
11
|
ds:hasProperty [
|
|
9
12
|
a ds:Property;
|
|
@@ -22,15 +25,16 @@ ds:apps_launchpad.component.text_input a ds:Component;
|
|
|
22
25
|
], [
|
|
23
26
|
a ds:Property;
|
|
24
27
|
ds:name "disabled";
|
|
25
|
-
ds:summary "Whether
|
|
28
|
+
ds:summary "Whether the text input is disabled or not.";
|
|
26
29
|
ds:propertyType "boolean";
|
|
27
|
-
ds:optional "
|
|
30
|
+
ds:optional "true";
|
|
31
|
+
ds:defaultValue "false"
|
|
28
32
|
], [
|
|
29
33
|
a ds:Property;
|
|
30
|
-
ds:name "
|
|
31
|
-
ds:summary "
|
|
34
|
+
ds:name "type";
|
|
35
|
+
ds:summary "The type of the text input.";
|
|
32
36
|
ds:propertyType "choice";
|
|
33
|
-
ds:optional "
|
|
34
|
-
ds:defaultValue "
|
|
35
|
-
ds:constraints "
|
|
37
|
+
ds:optional "true";
|
|
38
|
+
ds:defaultValue "text";
|
|
39
|
+
ds:constraints "text, password, email, number, search, tel, url"
|
|
36
40
|
].
|