@canonical/design-system 0.44.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/apps/component/file_tree.ttl +1 -1
- package/data/apps/component/inline_panel.ttl +17 -0
- package/data/apps/component/key_value_pair.ttl +1 -1
- package/data/apps/{subcomponent → component}/log.ttl +1 -1
- package/data/apps/component/navigation.ttl +1 -1
- package/data/apps/component/notification.ttl +1 -1
- package/data/apps/component/side_navigation.ttl +50 -6
- package/data/apps/group/key_value_pairs.ttl +1 -1
- package/data/apps/group/notifications.ttl +1 -1
- package/data/apps/layout/application_layout.ttl +1 -1
- package/data/apps/layout/content_layout.ttl +2 -3
- package/data/apps/layout/empty_layout.ttl +1 -1
- package/data/apps/layout/empty_state.ttl +1 -1
- package/data/{apps_workplaceengineering/pattern/group_card.ttl → apps/layout/login_layout.ttl} +4 -5
- package/data/apps/layout/side_panel_form_layout.ttl +13 -0
- package/data/apps/pattern/action_bar.ttl +2 -2
- package/data/apps/pattern/code_diff.ttl +1 -1
- package/data/apps/pattern/datatable.ttl +30 -31
- package/data/apps/pattern/destructive_modal.ttl +1 -1
- package/data/apps/pattern/drawer.ttl +1 -1
- package/data/apps/pattern/notification_center.ttl +2 -2
- package/data/apps/pattern/page_header.ttl +13 -0
- package/data/apps/pattern/side_panel.ttl +258 -10
- package/data/apps/subcomponent/data_table-action_bar.ttl +6 -6
- package/data/apps/subcomponent/data_table-body_cell.ttl +26 -26
- package/data/apps/subcomponent/data_table-group_header_row.ttl +8 -8
- package/data/apps/subcomponent/data_table-header_cell.ttl +13 -13
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +9 -9
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +10 -10
- package/data/apps/subcomponent/data_table-settings_menu.ttl +15 -15
- package/data/apps/subcomponent/drawer-content.ttl +1 -1
- package/data/apps/subcomponent/drawer-footer.ttl +1 -1
- package/data/apps/subcomponent/drawer-header.ttl +1 -1
- package/data/apps/subcomponent/side_navigation-content.ttl +13 -0
- package/data/apps/subcomponent/side_navigation-context_switcher.ttl +53 -0
- package/data/apps/subcomponent/side_navigation-item.ttl +80 -0
- package/data/apps/subcomponent/side_navigation-item_group.ttl +13 -0
- package/data/apps/subcomponent/side_panel-content.ttl +2 -2
- package/data/apps/subcomponent/side_panel-footer.ttl +196 -3
- package/data/apps/subcomponent/side_panel-header.ttl +212 -3
- package/data/apps_anbox/component/theme_switcher.ttl +1 -1
- package/data/apps_anbox/pattern/side_menu.ttl +0 -1
- package/data/{tagcategory/lpupstream.ttl → apps_identity.ttl} +2 -2
- package/data/apps_landscape/component/checkbox_group.ttl +24 -24
- package/data/apps_landscape/component/code_editor.ttl +35 -35
- package/data/apps_landscape/component/cron_schedule.ttl +4 -4
- package/data/apps_landscape/component/expandable_radio_group.ttl +47 -47
- package/data/apps_landscape/component/expandable_truncation.ttl +20 -20
- package/data/apps_landscape/component/form_section.ttl +4 -4
- package/data/apps_landscape/component/gpg_key_field.ttl +27 -27
- package/data/apps_landscape/component/grouped_select.ttl +25 -25
- package/data/apps_landscape/component/loading_state.ttl +8 -8
- package/data/apps_landscape/component/managed_file_input.ttl +18 -18
- package/data/apps_landscape/component/multi_select_field.ttl +50 -50
- package/data/apps_landscape/component/password_constraints.ttl +1 -1
- package/data/apps_landscape/component/progress_bar.ttl +20 -20
- package/data/apps_landscape/component/read_only_field.ttl +15 -15
- package/data/apps_landscape/component/search_help_popup.ttl +10 -10
- package/data/apps_landscape/component/search_query_editor.ttl +33 -33
- package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
- package/data/apps_landscape/pattern/content_blocks.ttl +20 -20
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +37 -37
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +6 -6
- package/data/apps_landscape/pattern/form_field_help.ttl +28 -28
- package/data/apps_landscape/pattern/header_search_controls.ttl +41 -41
- package/data/apps_landscape/pattern/ignorable_notification.ttl +16 -16
- package/data/apps_landscape/pattern/information_grid.ttl +14 -14
- package/data/apps_landscape/pattern/instance_association.ttl +5 -5
- package/data/apps_landscape/pattern/process_flow.ttl +11 -11
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +32 -32
- package/data/apps_landscape/pattern/recurring_schedule.ttl +3 -3
- package/data/apps_landscape/pattern/responsive_action_group.ttl +12 -12
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +11 -11
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +40 -40
- package/data/apps_landscape/pattern/sortable_list.ttl +14 -14
- package/data/apps_landscape/pattern/table_filter.ttl +57 -57
- package/data/apps_landscape/pattern/table_filter_chips.ttl +67 -67
- package/data/apps_landscape/pattern/table_pagination.ttl +63 -63
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +22 -22
- package/data/apps_landscape/subcomponent/bold_substring.ttl +4 -4
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +8 -8
- package/data/apps_landscape/subcomponent/label_with_description.ttl +14 -14
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +8 -8
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +12 -12
- package/data/apps_launchpad/component/avatar.ttl +2 -2
- package/data/apps_launchpad/component/badge.ttl +2 -2
- package/data/apps_launchpad/component/breadcrumbs.ttl +1 -1
- package/data/apps_launchpad/component/button.ttl +2 -2
- package/data/apps_launchpad/component/checkbox_input.ttl +4 -4
- package/data/apps_launchpad/component/combobox.ttl +2 -2
- package/data/apps_launchpad/component/drawer.ttl +4 -4
- package/data/apps_launchpad/component/modal.ttl +6 -14
- package/data/apps_launchpad/component/radio_input.ttl +5 -5
- package/data/apps_launchpad/component/select_input.ttl +1 -1
- package/data/apps_launchpad/component/switch.ttl +5 -5
- package/data/apps_launchpad/component/text_input.ttl +8 -8
- package/data/apps_launchpad/component/textarea_input.ttl +10 -10
- package/data/apps_launchpad/component/tooltip.ttl +3 -3
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +2 -2
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +4 -4
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +1 -1
- package/data/apps_launchpad/subcomponent/modal-content.ttl +2 -2
- package/data/apps_lxd/component/back_link.ttl +1 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/doc_link.ttl +2 -2
- package/data/apps_lxd/component/meter.ttl +5 -5
- package/data/apps_lxd/component/output_field.ttl +2 -3
- package/data/apps_lxd/component/rename_header.ttl +15 -15
- package/data/apps_lxd/component/tab_links.ttl +4 -4
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +2 -2
- package/data/apps_lxd/view/network_topology.ttl +3 -4
- package/data/apps_portal/layout/details_view.ttl +0 -1
- package/data/apps_workplaceengineering/component/label-highlight.ttl +2 -3
- package/data/apps_workplaceengineering/component/org_chart.ttl +12 -0
- package/data/apps_workplaceengineering/component/theme_switcher.ttl +1 -1
- package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +2 -2
- package/data/apps_workplaceengineering/pattern/{event_timeline.ttl → org_event_card.ttl} +3 -4
- package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +1 -1
- package/data/concept/Filtering-patterns.ttl +11 -0
- package/data/concept/Foundations-Grid--Layout.ttl +2 -2
- package/data/concept/Foundations-Surfaces.ttl +1 -1
- package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +3 -3
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +1 -1
- package/data/concept/Overflow.ttl +11 -0
- package/data/concept/Question-mark-vs-information-icon.ttl +1 -1
- package/data/documentation/layout/content_page_layout.ttl +13 -0
- package/data/documentation/layout/documentation_layout.ttl +2 -1
- package/data/documentation/layout/library_layout.ttl +13 -0
- package/data/documentation/layout/search_page_layout.ttl +13 -0
- package/data/documentation/pattern/library_side_navigation.ttl +3 -3
- package/data/global/component/accordion.ttl +6 -185
- package/data/global/component/announcement.ttl +2 -3
- package/data/global/component/avatar.ttl +1 -1
- package/data/global/component/badge.ttl +5 -7
- package/data/global/component/breadcrumbs.ttl +7 -6
- package/data/global/component/button.ttl +5 -23
- package/data/global/component/card.ttl +3 -8
- package/data/global/component/checkbox_field.ttl +1 -1
- package/data/global/component/chip.ttl +4 -6
- package/data/global/component/choices_field.ttl +11 -3
- package/data/global/component/code_snippet.ttl +2 -3
- package/data/global/component/color_field.ttl +1 -1
- package/data/global/component/combobox_field.ttl +2 -18
- package/data/global/component/contextual_menu.ttl +4 -6
- package/data/global/component/data_tooltip.ttl +4 -4
- package/data/global/component/date_field.ttl +1 -1
- package/data/global/component/date_time_field.ttl +1 -1
- package/data/global/component/drag_and_drop_list.ttl +2 -2
- package/data/global/component/dropdown_button.ttl +4 -5
- package/data/global/component/file_upload_field.ttl +1 -1
- package/data/global/component/heading.ttl +4 -4
- package/data/global/component/hidden_field.ttl +1 -1
- package/data/global/component/icon.ttl +2 -2
- package/data/global/component/icon_button.ttl +13 -0
- package/data/global/component/icon_in_container.ttl +7 -2
- package/data/global/component/inline_code.ttl +1 -1
- package/data/global/component/keyboard_key.ttl +1 -1
- package/data/global/{layout/form_layout.ttl → component/link.ttl} +3 -3
- package/data/global/component/links.ttl +12 -0
- package/data/global/component/mode_switcher.ttl +1 -1
- package/data/global/component/notification_toast.ttl +1 -1
- package/data/global/component/pagination.ttl +2 -2
- package/data/global/component/password_field.ttl +1 -1
- package/data/global/component/phone_field.ttl +1 -1
- package/data/global/component/popover.ttl +1 -1
- package/data/global/component/query_builder.ttl +12 -0
- package/data/global/component/range_field.ttl +1 -1
- package/data/global/component/rating_field.ttl +1 -1
- package/data/global/component/relative_timestamp.ttl +2 -1
- package/data/global/component/rich_choices_field.ttl +1 -1
- package/data/global/component/rich_text_editor.ttl +12 -0
- package/data/global/component/rich_text_field.ttl +1 -1
- package/data/global/component/search_field.ttl +1 -1
- package/data/global/component/segmented_control.ttl +13 -0
- package/data/global/component/segmented_control_field.ttl +1 -1
- package/data/global/component/select_field.ttl +1 -1
- package/data/global/component/switch_field.ttl +1 -1
- package/data/global/component/table.ttl +2 -2
- package/data/global/component/tabs.ttl +1 -1
- package/data/global/component/tag.ttl +2 -2
- package/data/global/component/text_field.ttl +1 -1
- package/data/global/component/textarea_field.ttl +1 -1
- package/data/global/component/tile.ttl +3 -6
- package/data/global/component/time_field.ttl +1 -1
- package/data/global/component/timestamp.ttl +2 -1
- package/data/global/component/tooltip.ttl +43 -45
- package/data/global/component/tooltip_wrapper.ttl +2 -2
- package/data/global/group/buttons.ttl +1 -8
- package/data/global/group/cards.ttl +1 -5
- package/data/global/group/code_snippets.ttl +1 -1
- package/data/global/group/keyboard_keys.ttl +1 -1
- package/data/global/group/tiles.ttl +1 -1
- package/data/global/modifier/information.ttl +1 -1
- package/data/global/pattern/field.ttl +1 -1
- package/data/global/pattern/filter.ttl +13 -0
- package/data/global/pattern/form_login.ttl +1 -1
- package/data/global/pattern/modal.ttl +5 -21
- package/data/global/pattern/navigation.ttl +1 -1
- package/data/global/pattern/stepper.ttl +1 -1
- package/data/global/pattern/table_of_contents.ttl +1 -1
- package/data/global/pattern/timeline.ttl +15 -20
- package/data/global/subcomponent/accordion-item.ttl +3 -156
- package/data/global/subcomponent/card-content.ttl +1 -1
- package/data/global/subcomponent/card-footer.ttl +1 -1
- package/data/global/subcomponent/card-header.ttl +1 -1
- package/data/global/subcomponent/card-image.ttl +2 -2
- package/data/global/subcomponent/card-thumbnail.ttl +1 -1
- package/data/global/subcomponent/checkbox_input.ttl +1 -1
- package/data/global/subcomponent/color_input.ttl +1 -1
- package/data/global/subcomponent/combobox_input.ttl +2 -18
- package/data/global/subcomponent/date_input.ttl +1 -1
- package/data/global/subcomponent/date_time_input.ttl +1 -1
- package/data/global/subcomponent/field-description.ttl +1 -1
- package/data/global/subcomponent/field-label.ttl +1 -1
- package/data/global/subcomponent/file_upload_input.ttl +1 -1
- package/data/global/subcomponent/hidden_input.ttl +1 -1
- package/data/global/subcomponent/modal-content.ttl +1 -1
- package/data/global/subcomponent/modal-footer.ttl +2 -18
- package/data/global/subcomponent/modal-header.ttl +5 -21
- package/data/global/subcomponent/password_input.ttl +1 -1
- package/data/global/subcomponent/phone_input.ttl +1 -1
- package/data/global/subcomponent/radio_input.ttl +1 -1
- package/data/global/subcomponent/range_input.ttl +1 -1
- package/data/global/subcomponent/rating_input.ttl +1 -1
- package/data/global/subcomponent/rich_text_input.ttl +1 -1
- package/data/global/subcomponent/search_input.ttl +3 -4
- package/data/global/subcomponent/segmented_control_input.ttl +1 -1
- package/data/global/subcomponent/select_input.ttl +1 -1
- package/data/global/subcomponent/spinner.ttl +2 -2
- package/data/global/subcomponent/switch_input.ttl +1 -1
- package/data/global/subcomponent/text_input.ttl +1 -1
- package/data/global/subcomponent/textarea_input.ttl +1 -1
- package/data/global/subcomponent/tile-content.ttl +1 -1
- package/data/global/subcomponent/time_input.ttl +1 -1
- package/data/global/subcomponent/timeline-content.ttl +2 -2
- package/data/global/subcomponent/timeline-event.ttl +5 -5
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +1 -1
- package/data/global/subcomponent/timeline-header.ttl +1 -1
- package/data/global/variant/tooltip_dense.ttl +1 -1
- package/data/sites/component/store_card.ttl +92 -0
- package/data/sites/pattern/hero.ttl +295 -4
- package/data/{stores.ttl → sites_stores.ttl} +2 -2
- package/data/tag/designin-progress.ttl +9 -0
- package/data/tag/devbatch1.ttl +1 -1
- package/data/tag/devbatch2.ttl +1 -1
- package/data/tag/devbatch3.ttl +1 -1
- package/data/tag/devdone.ttl +9 -0
- package/data/tag/devin-progress.ttl +9 -0
- package/data/tag/devin-review.ttl +9 -0
- package/data/tag/devpre-approved.ttl +9 -0
- package/data/tag/{stylesready.ttl → devreactdone.ttl} +3 -3
- package/data/tag/devreactpreapproved.ttl +1 -1
- package/data/tag/{devreactapproved.ttl → devsveltepreapproved.ttl} +3 -3
- package/data/tag/divergent.ttl +1 -1
- package/data/tag/docscomplete.ttl +1 -1
- package/data/tag/global-docs-missing.ttl +1 -1
- package/data/tag/has-no-global-entry.ttl +1 -1
- package/data/tag/implementationcomplete.ttl +9 -0
- package/data/tag/lpto-be-upstreamed.ttl +1 -1
- package/data/tag/lptriageblocked-reqs-design.ttl +1 -1
- package/data/tag/lptriageno-upstream.ttl +1 -1
- package/data/tag/lptriagereimplement-and-deprecate.ttl +1 -1
- package/data/tag/lptriagereimplement-and-keep.ttl +1 -1
- package/data/tag/lptriageupstream-and-deprecate.ttl +1 -1
- package/data/tag/{needsdefinition.ttl → needscoredocumentation.ttl} +3 -3
- package/data/tag/needsdesign.ttl +9 -0
- package/data/tag/{needsdocumentation.ttl → needsfulldocumentation.ttl} +3 -3
- package/data/tag/needsimplementation.ttl +9 -0
- package/data/tag/needstriage.ttl +1 -1
- package/data/tag/specialadoption-docs.ttl +1 -1
- package/data/tag/triagedbacklog.ttl +2 -2
- package/data/tag/triagedrejected.ttl +2 -2
- package/data/tag/upstream-candidate.ttl +1 -1
- package/data/tag/upstream-compliant.ttl +1 -1
- package/data/tag/waiting-for-delta-review.ttl +1 -1
- package/data/tag/wpeinital-implementation.ttl +1 -1
- package/data/tag/wpetriageupstream-and-deprecate.ttl +1 -0
- package/data/tagcategory/design--documentation-status.ttl +6 -0
- package/data/tagcategory/{documentation-stage.ttl → implementationnotes.ttl} +2 -2
- package/data/tagcategory/implementationstatus.ttl +6 -0
- package/data/tagcategory/implementationworkflow.ttl +6 -0
- package/package.json +6 -6
- package/skills/adoption-a1-styles/SKILL.md +37 -7
- package/skills/adoption-a2-components/SKILL.md +43 -3
- package/skills/anatomy-author/SKILL.md +25 -1
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +0 -14
package/data/tag/devbatch3.ttl
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:tag.devdone a ds:Tag;
|
|
6
|
+
ds:name "dev:done";
|
|
7
|
+
ds:category ds:tagcategory.implementationstatus;
|
|
8
|
+
ds:whenToApply "";
|
|
9
|
+
ds:whenToRemove "".
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:tag.devin-progress a ds:Tag;
|
|
6
|
+
ds:name "dev:in-progress";
|
|
7
|
+
ds:category ds:tagcategory.implementationstatus;
|
|
8
|
+
ds:whenToApply "";
|
|
9
|
+
ds:whenToRemove "".
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:tag.devin-review a ds:Tag;
|
|
6
|
+
ds:name "dev:in-review";
|
|
7
|
+
ds:category ds:tagcategory.implementationstatus;
|
|
8
|
+
ds:whenToApply "";
|
|
9
|
+
ds:whenToRemove "".
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:tag.devpre-approved a ds:Tag;
|
|
6
|
+
ds:name "dev:pre-approved";
|
|
7
|
+
ds:category ds:tagcategory.implementationstatus;
|
|
8
|
+
ds:whenToApply "";
|
|
9
|
+
ds:whenToRemove "".
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:tag.
|
|
6
|
-
ds:name "
|
|
5
|
+
ds:tag.devreactdone a ds:Tag;
|
|
6
|
+
ds:name "dev:react:done";
|
|
7
7
|
ds:category ds:tagcategory.implementation-status;
|
|
8
|
-
ds:whenToApply "";
|
|
8
|
+
ds:whenToApply "Implementation: stable. Design: approved";
|
|
9
9
|
ds:whenToRemove "".
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
ds:tag.devreactpreapproved a ds:Tag;
|
|
6
6
|
ds:name "dev:react:pre_approved";
|
|
7
7
|
ds:category ds:tagcategory.implementation-status;
|
|
8
|
-
ds:whenToApply "Design : approved
|
|
8
|
+
ds:whenToApply "Design : approved for careful use, requires follow-up";
|
|
9
9
|
ds:whenToRemove "".
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:tag.
|
|
6
|
-
ds:name "dev:
|
|
5
|
+
ds:tag.devsveltepreapproved a ds:Tag;
|
|
6
|
+
ds:name "dev:svelte:pre_approved";
|
|
7
7
|
ds:category ds:tagcategory.implementation-status;
|
|
8
|
-
ds:whenToApply "Design : approved";
|
|
8
|
+
ds:whenToApply "Design : approved for careful use, requires follow-up";
|
|
9
9
|
ds:whenToRemove "".
|
package/data/tag/divergent.ttl
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:tag.implementationcomplete a ds:Tag;
|
|
6
|
+
ds:name "implementation:complete";
|
|
7
|
+
ds:category ds:tagcategory.implementationworkflow;
|
|
8
|
+
ds:whenToApply "A UI Block has implementation complete in all supported frameworks";
|
|
9
|
+
ds:whenToRemove "".
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:tag.
|
|
6
|
-
ds:name "needs:
|
|
7
|
-
ds:category ds:tagcategory.documentation-
|
|
5
|
+
ds:tag.needscoredocumentation a ds:Tag;
|
|
6
|
+
ds:name "needs:core_documentation";
|
|
7
|
+
ds:category ds:tagcategory.design--documentation-status;
|
|
8
8
|
ds:whenToApply "UIBlock needs summary, usage, anatomy_dsl and anatomy_classic fields filled";
|
|
9
9
|
ds:whenToRemove "".
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:tag.needsdesign a ds:Tag;
|
|
6
|
+
ds:name "needs:design";
|
|
7
|
+
ds:category ds:tagcategory.design--documentation-status;
|
|
8
|
+
ds:whenToApply "UI block, has been triaged, validated, and needs design";
|
|
9
|
+
ds:whenToRemove "".
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:tag.
|
|
6
|
-
ds:name "needs:
|
|
7
|
-
ds:category ds:tagcategory.documentation-
|
|
5
|
+
ds:tag.needsfulldocumentation a ds:Tag;
|
|
6
|
+
ds:name "needs:full_documentation";
|
|
7
|
+
ds:category ds:tagcategory.design--documentation-status;
|
|
8
8
|
ds:whenToApply "Base definition is complete but other fields are missing (i.e. needs variant guidelines, properties definitions) and pending review";
|
|
9
9
|
ds:whenToRemove "".
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:tag.needsimplementation a ds:Tag;
|
|
6
|
+
ds:name "needs:implementation";
|
|
7
|
+
ds:category ds:tagcategory.implementationworkflow;
|
|
8
|
+
ds:whenToApply "A UI block has summary, anatomy and styling ready and added to coda and has all other necessary documents ready for implementation";
|
|
9
|
+
ds:whenToRemove "".
|
package/data/tag/needstriage.ttl
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
ds:tag.triagedbacklog a ds:Tag;
|
|
6
6
|
ds:name "triaged:backlog";
|
|
7
|
-
ds:category ds:tagcategory.documentation-
|
|
8
|
-
ds:whenToApply "UIBlock inclusion to the DS is postponed";
|
|
7
|
+
ds:category ds:tagcategory.design--documentation-status;
|
|
8
|
+
ds:whenToApply "UIBlock inclusion to the DS has been accepted, but the design of it is postponed";
|
|
9
9
|
ds:whenToRemove "".
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
ds:tag.triagedrejected a ds:Tag;
|
|
6
6
|
ds:name "triaged:rejected";
|
|
7
|
-
ds:category ds:tagcategory.documentation-
|
|
8
|
-
ds:whenToApply "UIBlock proposal was rejected because it was assessed not to be a valuable addition to the design system.
|
|
7
|
+
ds:category ds:tagcategory.design--documentation-status;
|
|
8
|
+
ds:whenToApply "UIBlock proposal was rejected because it was assessed not to be a valuable addition to the design system.";
|
|
9
9
|
ds:whenToRemove "".
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
ds:tag.upstream-compliant a ds:Tag;
|
|
6
6
|
ds:name "upstream-compliant";
|
|
7
|
-
ds:category ds:tagcategory.
|
|
7
|
+
ds:category ds:tagcategory.implementationnotes;
|
|
8
8
|
ds:whenToApply "Tag to be used by Launchpad in cycle 26.10 to mark components that should be upstreamed";
|
|
9
9
|
ds:whenToRemove "".
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:tagcategory.
|
|
6
|
-
ds:name "
|
|
5
|
+
ds:tagcategory.implementationnotes a ds:TagCategory;
|
|
6
|
+
ds:name "implementation:notes".
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"types": "src/index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "LGPL-3.0",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.46.0",
|
|
8
8
|
"bin": {
|
|
9
9
|
"collect-implementations": "./src/collect-implementations.ts"
|
|
10
10
|
},
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@biomejs/biome": "^2.3.14",
|
|
32
|
-
"@canonical/biome-config": "^0.
|
|
33
|
-
"@canonical/typescript-config": "^0.
|
|
32
|
+
"@canonical/biome-config": "^0.46.0",
|
|
33
|
+
"@canonical/typescript-config": "^0.46.0",
|
|
34
34
|
"@types/bun": "latest",
|
|
35
35
|
"@types/jsonld": "^1.5.15",
|
|
36
36
|
"@types/n3": "^1.26.1",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"vitest": "^5.0.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@canonical/anatomy-dsl": "^0.
|
|
47
|
-
"@canonical/token-ontology": "^0.
|
|
46
|
+
"@canonical/anatomy-dsl": "^0.46.0",
|
|
47
|
+
"@canonical/token-ontology": "^0.46.0",
|
|
48
48
|
"ajv": "^8.17.1",
|
|
49
49
|
"jsonld": "^9.0.0",
|
|
50
50
|
"n3": "^2.0.1",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"url": "https://github.com/canonical/pragma-core/issues"
|
|
69
69
|
},
|
|
70
70
|
"homepage": "https://github.com/canonical/pragma-core#readme",
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "7a4c4cee18e814e78e71fe62e4679a3e07db4735"
|
|
72
72
|
}
|
|
@@ -114,9 +114,19 @@ bun add @canonical/styles @canonical/ds-assets
|
|
|
114
114
|
One import of `@canonical/styles` aggregates the normalize/reset, typography, and design
|
|
115
115
|
tokens. Two things come with it:
|
|
116
116
|
|
|
117
|
-
- Cascade layers
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
- Cascade layers — the order is fixed in `@canonical/styles`' `layers.css`, and the
|
|
118
|
+
current statement is
|
|
119
|
+
|
|
120
|
+
```css
|
|
121
|
+
@layer normalize, ds.tokens, ds.reset, ds.typography, ds.modifiers, ds.surfaces,
|
|
122
|
+
ds.states, ds.components, ds.components.global, ds.components.sites,
|
|
123
|
+
ds.components.documentation, ds.components.stores, ds.components.apps, lib, app;
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Component styles beat modifiers beat reset regardless of import order, so
|
|
127
|
+
adopting apps do not fight specificity. `app` is the reserved top layer, for the
|
|
128
|
+
application's own CSS: write your styles in `@layer app { … }` —
|
|
129
|
+
`@canonical/styles` already declares the layer, so there is nothing to add.
|
|
120
130
|
- `color-scheme: light dark` on `:root` — the foundation is theme-aware out of the box.
|
|
121
131
|
|
|
122
132
|
## Which variable to write
|
|
@@ -137,8 +147,8 @@ exist). Filter to what an app may read with `--visibility public`: a variable ma
|
|
|
137
147
|
`variable lookup` takes the name WITHOUT its leading dashes and answers with the
|
|
138
148
|
`- Symbol:` behind it and a `### Declarations` list — one row per declaration, each
|
|
139
149
|
naming the `selector`, the `inAtRule` cascade layer, what it `emits` and the
|
|
140
|
-
`file:line`. The layer in that row is
|
|
141
|
-
|
|
150
|
+
`file:line`. The layer in that row is a name in the install's `@layer` order above,
|
|
151
|
+
so a variable that is not doing what you expect is usually a layer question
|
|
142
152
|
with a visible answer. A name the graph does not know comes back `ENTITY_NOT_FOUND`,
|
|
143
153
|
which is what an app-local property looks like. (MCP: `variable_list`,
|
|
144
154
|
`variable_lookup`.)
|
|
@@ -163,6 +173,25 @@ propose a change to the standard itself. The standards apply even when the app h
|
|
|
163
173
|
pragma dependency, and they are open to contribution: a missing or wrong standard is
|
|
164
174
|
something to propose a change for, not to silently work around.
|
|
165
175
|
|
|
176
|
+
## Read the foundations before writing app CSS
|
|
177
|
+
|
|
178
|
+
The type scale, spacing and grid are documented concepts, and app CSS should be
|
|
179
|
+
written against them rather than rediscovered from the tokens. Read them before the
|
|
180
|
+
first stylesheet edit:
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
pragma concept list --search Foundations # the live set of foundation concepts
|
|
184
|
+
pragma concept lookup "Foundations: Typography" # per-tier heading hierarchies
|
|
185
|
+
pragma concept lookup "Foundations: Spacing" # inter- and intra-component spacing
|
|
186
|
+
pragma concept lookup "Foundations: Grid & Layout"
|
|
187
|
+
pragma concept lookup "Foundations: Density & the form channel"
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
`concept list` is the live source of concept names — take them from its output, never
|
|
191
|
+
from memory or this list. `concept lookup` answers with the concept's content, which
|
|
192
|
+
carries the per-tier guidance (heading hierarchies, spacing models, grid columns) the
|
|
193
|
+
app's own tier falls under. (MCP: `concept_list`, `concept_lookup { name: [...] }`.)
|
|
194
|
+
|
|
166
195
|
## Fonts before styles
|
|
167
196
|
|
|
168
197
|
Fonts are opt-in and must be imported FIRST. The canonical form, in the root stylesheet:
|
|
@@ -271,8 +300,9 @@ imported preview.
|
|
|
271
300
|
value on a class-less root passes visual inspection and still fails this check
|
|
272
301
|
on non-app surfaces.
|
|
273
302
|
- [ ] `/icons/<name>.svg` returns 200 with SVG content, and an icon visibly renders.
|
|
274
|
-
- [ ] The `@layer
|
|
275
|
-
|
|
303
|
+
- [ ] The served CSS's `@layer` statement starts with `normalize` and ends with
|
|
304
|
+
`lib, app` — check it against `@canonical/styles`' `layers.css`, not a fixed
|
|
305
|
+
short list.
|
|
276
306
|
- [ ] Typography baseline behaves. Note: the baseline grid is computed with the CSS
|
|
277
307
|
`mod()` function and cannot be downleveled — check the support table in the
|
|
278
308
|
`@canonical/styles-typography` README against the browsers you target.
|
|
@@ -108,6 +108,28 @@ So, asked what this skill is:
|
|
|
108
108
|
|
|
109
109
|
Then, and only then, the breakdown.
|
|
110
110
|
|
|
111
|
+
## What "migrate" means
|
|
112
|
+
|
|
113
|
+
In a one-shot migration — the person asks for the whole app in one change —
|
|
114
|
+
"migrate" means re-platforming the app onto pragma's structure and conventions, not
|
|
115
|
+
rendering the old app's look with pragma parts. The app keeps its FUNCTIONAL
|
|
116
|
+
behaviour: its pages, routes, data and interactions. Its layout and visual
|
|
117
|
+
decisions are replaced by pragma's.
|
|
118
|
+
|
|
119
|
+
For an application, the structure starts with the shell from
|
|
120
|
+
`@canonical/react-ds-app`: `ApplicationLayout` with `SideNavigation`, and
|
|
121
|
+
`ViewLayout` for each page (the package also exports `ContentLayout` and
|
|
122
|
+
`SidePanel`). Its router peers (`@canonical/router-core`, `@canonical/router-react`)
|
|
123
|
+
are optional, and `SideNavigation` takes a `LinkComponent` prop, so the app's own
|
|
124
|
+
router link plugs in. A custom top navigation bar, a username and logout in the
|
|
125
|
+
top-right corner, or a product name styled as a heading are the old app's
|
|
126
|
+
decisions, not features to keep: the navigation moves into `SideNavigation`, the
|
|
127
|
+
user and logout into its footer, and the product name into its header.
|
|
128
|
+
|
|
129
|
+
If that reading cannot be assumed, ask exactly one scope question before starting:
|
|
130
|
+
|
|
131
|
+
> Same look, or pragma conventions?
|
|
132
|
+
|
|
111
133
|
## Install
|
|
112
134
|
|
|
113
135
|
```bash
|
|
@@ -255,9 +277,8 @@ Do NOT assume a 1:1 mapping from Vanilla names and `p-*` classes. Boundaries mov
|
|
|
255
277
|
what was one blob may now be a component plus subcomponents (e.g. `Accordion` with
|
|
256
278
|
`Accordion.Item`), and icon semantics changed to `currentColor`. The block's `ds:usage`
|
|
257
279
|
When-to-use / When-not-to-use guidance decides what replaces what — read it with
|
|
258
|
-
`pragma
|
|
259
|
-
|
|
260
|
-
DIFFERENT component than the old name suggests.
|
|
280
|
+
`pragma block lookup <Name or ds: IRI>` (MCP: `block_lookup`) — often the honest swap
|
|
281
|
+
is a DIFFERENT component than the old name suggests.
|
|
261
282
|
|
|
262
283
|
## Accessibility warnings are contract
|
|
263
284
|
|
|
@@ -283,10 +304,29 @@ prop's values are the family's values lowercased with spaces as underscores
|
|
|
283
304
|
the lowercase form. A family listed on the block may have no prop on the component
|
|
284
305
|
yet — check the component's types before writing it.
|
|
285
306
|
|
|
307
|
+
## Inputs come with their form
|
|
308
|
+
|
|
309
|
+
Standalone inputs (`TextInput`, `SelectInput`, …) carry input chrome but no spacing
|
|
310
|
+
of their own: the gaps between fields are owned by `Field`/`Form`, the
|
|
311
|
+
react-hook-form model of `adoption-a3-forms`. The standalone inputs exist for
|
|
312
|
+
controls that live outside a form — a filter bar, a theme picker. Placing them by
|
|
313
|
+
hand to build a form — stacking bare inputs in a modal or a settings panel — is the
|
|
314
|
+
failure mode: the fields render with no gaps, because the spacing lives in the form
|
|
315
|
+
system that a component swap never reaches.
|
|
316
|
+
|
|
317
|
+
So a form is not a type to swap piecemeal. In a one-shot migration forms are in
|
|
318
|
+
scope: run the A3 steps for each form as part of the change, and the `Field`/`Form`
|
|
319
|
+
frame brings the label, description, error wiring and field spacing with it. A
|
|
320
|
+
presentational, non-react-hook-form layout is not shipped yet — report that as a
|
|
321
|
+
finding rather than hand-stacking the inputs.
|
|
322
|
+
|
|
286
323
|
## Verify per PR
|
|
287
324
|
|
|
288
325
|
- [ ] Root context and density classes present (track A1) — swapped components size
|
|
289
326
|
from the `--density-*` channel, not from luck.
|
|
327
|
+
- [ ] Heading sizes and weights follow the tier's scale in "Foundations: Typography",
|
|
328
|
+
with no app CSS overriding them; the outline is real: one `h1` per page, in
|
|
329
|
+
the page header, and the product name is not a heading.
|
|
290
330
|
- [ ] Zero dev-console warnings from the swapped components.
|
|
291
331
|
- [ ] Keyboard pass on each swapped instance (focus, activation, escape where relevant).
|
|
292
332
|
- [ ] Visual pass against the component's Storybook stories.
|
|
@@ -386,6 +386,30 @@ There is no derivation step, no `references.yaml` and no register category for a
|
|
|
386
386
|
stylesheet fact: reading an implementation and choosing the node, the key and the
|
|
387
387
|
symbol is judgement, which is why it happens in a file under review.
|
|
388
388
|
|
|
389
|
+
## Commenting Guidelines
|
|
390
|
+
|
|
391
|
+
### General rules
|
|
392
|
+
|
|
393
|
+
- **Purpose:** Explain **why** decisions were made rather than repeat **what** the Anatomy DSL already describes.
|
|
394
|
+
- **Brevity:** Keep comments concise and factual.
|
|
395
|
+
- **Maintenance:** Review and update comments whenever the anatomy changes.
|
|
396
|
+
- **Placement:** Place comments immediately above the relevant property or node, not inline.
|
|
397
|
+
|
|
398
|
+
### Required comments
|
|
399
|
+
|
|
400
|
+
Include the following comments when applicable:
|
|
401
|
+
|
|
402
|
+
- **Non-obvious decisions:** Explain structural choices, exceptions, agreed assumptions, or limitations when the reason is not clear from the DSL. This includes CSS pseudo-elements and anonymous nodes used for components that do not yet exist.
|
|
403
|
+
- **Differences:** Explain any known differences between the documented anatomy and the design or implementation specifications, identifying what differs and why.
|
|
404
|
+
|
|
405
|
+
### Excluded comments
|
|
406
|
+
|
|
407
|
+
- **Redundant information:** Avoid repeating node names, roles, properties, tokens, or relationships already expressed in the DSL.
|
|
408
|
+
- **Outdated information:** Remove previous-version details, old decisions, and resolved limitations. Keep historical information in version history or changelogs instead.
|
|
409
|
+
- **Irrelevant implementation details:** Exclude implementation details that do not help explain the anatomy.
|
|
410
|
+
- **Unverified information:** Do not present unsupported assumptions or guesses as facts, including speculation about future implementations. Flag open decisions for review instead.
|
|
411
|
+
- **Source references:** Do not include references to design files, component URLs, implementation files, CSS selectors, repositories, documentation, or any other source materials.
|
|
412
|
+
|
|
389
413
|
## DSL Reference
|
|
390
414
|
|
|
391
415
|
### YAML Format
|
|
@@ -1596,7 +1620,7 @@ When creating an anatomy, respond with:
|
|
|
1596
1620
|
2. **Use discovery**: Query existing components for patterns and consistency
|
|
1597
1621
|
3. **Name thoughtfully**: URIs are identifiers - choose clear, consistent names
|
|
1598
1622
|
(see the URI Encoding Convention table above)
|
|
1599
|
-
4. **Annotate decisions**:
|
|
1623
|
+
4. **Annotate decisions**: Follow the [Commenting Guidelines](#commenting-guidelines)
|
|
1600
1624
|
5. **Validate cardinality**: Think through edge cases (empty states, maximums)
|
|
1601
1625
|
6. **Separate concerns**: Structural styles vs themeable styles
|
|
1602
1626
|
7. **Anonymous nodes are OK**: Don't force DS identity on pure wrappers
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
-
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
-
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
-
|
|
5
|
-
ds:apps_workplaceengineering.pattern.travel_provider_card a ds:Pattern;
|
|
6
|
-
ds:name "TravelProviderCard";
|
|
7
|
-
ds:summary "Wraps Card\n\n\n\n\n\n";
|
|
8
|
-
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "";
|
|
10
|
-
ds:usage "";
|
|
11
|
-
ds:guidelines "";
|
|
12
|
-
ds:tier ds:apps_workplaceengineering;
|
|
13
|
-
ds:documentationStage ds:tag.needsdefinition;
|
|
14
|
-
ds:inheritsFrom ds:global.component.card.
|