@canonical/design-system 0.2.4 → 0.43.0-experimental.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +166 -0
- package/README.md +255 -14
- package/data/apps/component/file_tree.ttl +2 -0
- package/data/apps/component/key_value_pair.ttl +2 -0
- package/data/apps/component/navigation.ttl +2 -0
- package/data/apps/component/notification.ttl +2 -0
- package/data/apps/component/side_navigation.ttl +2 -0
- package/data/apps/component/skeleton_loading.ttl +2 -0
- package/data/apps/component/status_bar.ttl +2 -0
- package/data/apps/component/toolbar.ttl +2 -0
- package/data/apps/group/key_value_pairs.ttl +2 -0
- package/data/apps/group/notifications.ttl +2 -0
- package/data/apps/layout/application_layout.ttl +2 -0
- package/data/apps/layout/content_layout.ttl +2 -0
- package/data/apps/layout/empty_layout.ttl +2 -0
- package/data/apps/layout/empty_state.ttl +13 -0
- package/data/apps/layout/list_page_layout.ttl +2 -0
- package/data/apps/layout/settings_page_layout.ttl +2 -0
- package/data/apps/layout/view_layout.ttl +2 -0
- package/data/apps/pattern/action_bar.ttl +4 -2
- package/data/apps/pattern/code_diff.ttl +2 -0
- package/data/apps/pattern/{data_table.ttl → datatable.ttl} +27 -25
- package/data/apps/pattern/destructive_modal.ttl +2 -0
- package/data/apps/pattern/drawer.ttl +2 -0
- package/data/apps/pattern/keyboard_shortcuts.ttl +2 -0
- package/data/apps/pattern/notification_center.ttl +4 -2
- package/data/apps/pattern/side_panel.ttl +39 -4
- package/data/apps/pattern/sidepanel_stacked.ttl +2 -0
- package/data/apps/subcomponent/data_table-action_bar.ttl +7 -5
- package/data/apps/subcomponent/data_table-body_cell.ttl +27 -25
- package/data/apps/subcomponent/data_table-group_header_row.ttl +10 -8
- package/data/apps/subcomponent/data_table-header_cell.ttl +13 -11
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +11 -9
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +12 -10
- package/data/apps/subcomponent/data_table-settings_menu.ttl +17 -15
- package/data/apps/subcomponent/drawer-content.ttl +2 -0
- package/data/apps/subcomponent/drawer-footer.ttl +2 -0
- package/data/apps/subcomponent/drawer-header.ttl +2 -0
- package/data/apps/subcomponent/file_tree-node.ttl +2 -0
- package/data/apps/subcomponent/log.ttl +2 -0
- package/data/apps/subcomponent/side_panel-content.ttl +3 -1
- package/data/apps/subcomponent/side_panel-footer.ttl +3 -1
- package/data/apps/subcomponent/side_panel-header.ttl +3 -1
- package/data/apps.ttl +2 -0
- package/data/apps_anbox/component/theme_switcher.ttl +2 -0
- package/data/apps_anbox/pattern/side_menu.ttl +2 -0
- package/data/apps_anbox.ttl +2 -0
- package/data/apps_debcrafters/component/deb_package_card.ttl +12 -0
- package/data/apps_debcrafters/component/example.ttl +2 -0
- package/data/apps_debcrafters/component/my_fancy_component.ttl +2 -0
- package/data/apps_debcrafters.ttl +2 -0
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +2 -0
- package/data/apps_juju.ttl +2 -0
- package/data/apps_landscape/component/checkbox_group.ttl +110 -0
- package/data/apps_landscape/component/code_editor.ttl +134 -0
- package/data/apps_landscape/component/cron_schedule.ttl +40 -0
- package/data/apps_landscape/component/expandable_radio_group.ttl +106 -0
- package/data/apps_landscape/component/expandable_truncation.ttl +50 -0
- package/data/apps_landscape/component/form_section.ttl +33 -0
- package/data/apps_landscape/component/gpg_key_field.ttl +86 -0
- package/data/apps_landscape/component/grouped_select.ttl +137 -0
- package/data/apps_landscape/component/loading_state.ttl +30 -0
- package/data/apps_landscape/component/managed_file_input.ttl +75 -0
- package/data/apps_landscape/component/multi_select_field.ttl +323 -0
- package/data/apps_landscape/component/pass_rate_filter.ttl +13 -0
- package/data/apps_landscape/component/password_constraints.ttl +3 -0
- package/data/apps_landscape/component/progress_bar.ttl +100 -0
- package/data/apps_landscape/component/read_only_field.ttl +46 -0
- package/data/apps_landscape/component/search_help_popup.ttl +51 -0
- package/data/apps_landscape/component/search_query_editor.ttl +149 -0
- package/data/apps_landscape/component/tag_multi_select.ttl +52 -0
- package/data/apps_landscape/pattern/content_blocks.ttl +70 -0
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +110 -0
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +24 -0
- package/data/apps_landscape/pattern/form_field_help.ttl +67 -0
- package/data/apps_landscape/pattern/header_search_controls.ttl +106 -0
- package/data/apps_landscape/pattern/ignorable_notification.ttl +60 -0
- package/data/apps_landscape/pattern/information_grid.ttl +93 -0
- package/data/apps_landscape/pattern/instance_association.ttl +29 -0
- package/data/apps_landscape/pattern/process_flow.ttl +52 -0
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +158 -0
- package/data/apps_landscape/pattern/recurring_schedule.ttl +21 -0
- package/data/apps_landscape/pattern/responsive_action_group.ttl +77 -0
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +83 -0
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +61 -0
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +126 -0
- package/data/apps_landscape/pattern/sortable_list.ttl +50 -0
- package/data/apps_landscape/pattern/table_filter.ttl +201 -0
- package/data/apps_landscape/pattern/table_filter_chips.ttl +174 -0
- package/data/apps_landscape/pattern/table_pagination.ttl +220 -0
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +88 -0
- package/data/apps_landscape/subcomponent/bold_substring.ttl +30 -0
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +36 -0
- package/data/apps_landscape/subcomponent/label_with_description.ttl +46 -0
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +61 -0
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +36 -0
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +56 -0
- package/data/apps_landscape.ttl +2 -0
- package/data/apps_launchpad/component/accordion.ttl +12 -0
- package/data/apps_launchpad/component/avatar.ttl +4 -2
- package/data/apps_launchpad/component/badge.ttl +4 -2
- package/data/apps_launchpad/component/breadcrumbs.ttl +2 -0
- package/data/apps_launchpad/component/button.ttl +4 -2
- package/data/apps_launchpad/component/checkbox_input.ttl +6 -4
- package/data/apps_launchpad/component/chip.ttl +2 -0
- package/data/apps_launchpad/component/combobox.ttl +4 -2
- package/data/apps_launchpad/component/description_list.ttl +2 -0
- package/data/apps_launchpad/component/drawer.ttl +6 -4
- package/data/apps_launchpad/component/link.ttl +12 -0
- package/data/apps_launchpad/component/log.ttl +2 -0
- package/data/apps_launchpad/component/markdown_editor.ttl +12 -0
- package/data/apps_launchpad/component/modal.ttl +7 -5
- package/data/apps_launchpad/component/pagination.ttl +12 -0
- package/data/apps_launchpad/component/popover.ttl +12 -0
- package/data/apps_launchpad/component/radio_input.ttl +6 -4
- package/data/apps_launchpad/component/relative_timestamp.ttl +12 -0
- package/data/apps_launchpad/component/select_input.ttl +2 -0
- package/data/apps_launchpad/component/spinner.ttl +12 -0
- package/data/apps_launchpad/component/switch.ttl +6 -4
- package/data/apps_launchpad/component/table.ttl +12 -0
- package/data/apps_launchpad/component/text_input.ttl +9 -7
- package/data/apps_launchpad/component/textarea_input.ttl +10 -8
- package/data/apps_launchpad/component/timestamp.ttl +12 -0
- package/data/apps_launchpad/component/tooltip.ttl +4 -2
- package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-footer.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-group.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-helper.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +4 -2
- package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +6 -4
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +2 -0
- package/data/apps_launchpad/subcomponent/log-line.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-body.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-header.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content.ttl +4 -2
- package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content.ttl +2 -0
- package/data/apps_launchpad.ttl +2 -0
- package/data/apps_lxd/component/back_link.ttl +2 -0
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +2 -0
- package/data/apps_lxd/component/confirmation_checkbox.ttl +2 -0
- package/data/apps_lxd/component/doc_link.ttl +4 -2
- package/data/apps_lxd/component/meter.ttl +6 -4
- package/data/apps_lxd/component/output_field.ttl +2 -0
- package/data/apps_lxd/component/rename_header.ttl +17 -15
- package/data/apps_lxd/component/tab_links.ttl +6 -4
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +2 -0
- package/data/apps_lxd/view/network_topology.ttl +2 -0
- package/data/apps_lxd.ttl +2 -0
- package/data/apps_notary.ttl +2 -0
- package/data/apps_portal/component/badge.ttl +2 -0
- package/data/apps_portal/component/credit_card_input.ttl +2 -0
- package/data/apps_portal/component/key_value_pair.ttl +2 -0
- package/data/apps_portal/layout/details_view.ttl +18 -0
- package/data/apps_portal/pattern/purchase_summary.ttl +2 -0
- package/data/apps_portal/subcomponent/read_only_modal.ttl +2 -0
- package/data/apps_portal.ttl +2 -0
- package/data/apps_support/component/data_spotlight.ttl +12 -0
- package/data/apps_support/subcomponent/ai_prompt_input.ttl +12 -0
- package/data/apps_support.ttl +6 -0
- package/data/apps_workplaceengineering/component/complex_multi_select.ttl +13 -0
- package/data/apps_workplaceengineering/component/label-highlight.ttl +3 -1
- package/data/apps_workplaceengineering/component/rule.ttl +2 -0
- package/data/apps_workplaceengineering/component/skip_link.ttl +2 -0
- package/data/apps_workplaceengineering/component/theme_switcher.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/confirmation_modal.ttl +12 -0
- package/data/apps_workplaceengineering/pattern/event_timeline.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/group_card.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +2 -0
- package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +12 -0
- package/data/apps_workplaceengineering.ttl +2 -0
- package/data/concept/Foundations-Baseline.ttl +11 -0
- package/data/concept/Foundations-Density--the-form-channel.ttl +11 -0
- package/data/concept/Foundations-Grid--Layout.ttl +11 -0
- package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +11 -0
- package/data/concept/Foundations-Spacing.ttl +11 -0
- package/data/concept/Foundations-Surfaces.ttl +11 -0
- package/data/concept/Foundations-Typography.ttl +11 -0
- package/data/concept/{How-to-differentiate-components-variantsinheritance.ttl → How-to-differentiate-types-of-UI-blocks-.ttl} +5 -3
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +11 -0
- package/data/concept/How-to-support-modifiers-in-a-component.ttl +11 -0
- package/data/concept/Intentional-friction.ttl +11 -0
- package/data/concept/Question-mark-vs-information-icon.ttl +3 -1
- package/data/concept/Understanding-the-modifier-contract.ttl +11 -0
- package/data/concepttype/Explanation.ttl +2 -0
- package/data/concepttype/How-to-guide.ttl +2 -0
- package/data/concepttype/Reference.ttl +2 -0
- package/data/concepttype/Tutorial.ttl +2 -0
- package/data/documentation/layout/documentation_layout.ttl +2 -0
- package/data/documentation/pattern/library_side_navigation.ttl +3 -1
- package/data/documentation.ttl +2 -0
- package/data/global/component/accordion.ttl +180 -1
- package/data/global/component/announcement.ttl +13 -2
- package/data/global/component/avatar.ttl +2 -0
- package/data/global/component/badge.ttl +4 -2
- package/data/global/component/breadcrumbs.ttl +77 -2
- package/data/global/component/button.ttl +197 -2
- package/data/global/component/button_link.ttl +2 -0
- package/data/global/component/card.ttl +150 -3
- package/data/global/component/checkbox_field.ttl +269 -2
- package/data/global/component/chip.ttl +3 -1
- package/data/global/component/choices_field.ttl +373 -2
- package/data/global/component/code_snippet-content.ttl +3 -1
- package/data/global/component/code_snippet-header.ttl +21 -2
- package/data/global/component/code_snippet.ttl +28 -1
- package/data/global/component/color_field.ttl +2 -0
- package/data/global/component/combobox_field.ttl +470 -3
- package/data/global/component/contextual_menu.ttl +2 -0
- package/data/global/component/data_tooltip.ttl +149 -2
- package/data/global/component/date_field.ttl +158 -3
- package/data/global/component/date_time_field.ttl +157 -2
- package/data/global/component/drag_and_drop_list.ttl +13 -0
- package/data/global/component/dropdown_button.ttl +2 -0
- package/data/global/component/file_upload_field.ttl +230 -3
- package/data/global/component/heading.ttl +62 -3
- package/data/global/component/hidden_field.ttl +3 -1
- package/data/global/component/icon.ttl +3 -1
- package/data/global/component/icon_in_container.ttl +2 -0
- package/data/global/component/inline_code.ttl +2 -0
- package/data/global/component/keyboard_key.ttl +77 -2
- package/data/global/component/markdown_field.ttl +2 -0
- package/data/global/component/mode_switcher.ttl +2 -0
- package/data/global/component/month_field.ttl +2 -0
- package/data/global/component/notification_inline.ttl +2 -0
- package/data/global/component/notification_toast.ttl +2 -0
- package/data/global/component/number_field.ttl +2 -0
- package/data/global/component/pagination.ttl +2 -0
- package/data/global/component/password_field.ttl +189 -2
- package/data/global/component/phone_field.ttl +173 -2
- package/data/global/component/popover.ttl +2 -0
- package/data/global/component/range_field.ttl +165 -2
- package/data/global/component/rating_field.ttl +2 -0
- package/data/global/component/relative_timestamp.ttl +2 -0
- package/data/global/component/rich_choices_field.ttl +205 -2
- package/data/global/component/rich_text_field.ttl +2 -0
- package/data/global/component/search_field.ttl +2 -0
- package/data/global/component/segmented_control_field.ttl +2 -0
- package/data/global/component/select_field.ttl +158 -3
- package/data/global/component/switch_field.ttl +190 -3
- package/data/global/component/table.ttl +4 -2
- package/data/global/component/tabs.ttl +13 -2
- package/data/global/component/tag.ttl +13 -2
- package/data/global/component/text_field.ttl +173 -2
- package/data/global/component/textarea_field.ttl +157 -2
- package/data/global/component/tile.ttl +108 -1
- package/data/global/component/time_field.ttl +157 -2
- package/data/global/component/timestamp.ttl +2 -0
- package/data/global/component/tooltip.ttl +166 -43
- package/data/global/component/tooltip_wrapper.ttl +61 -2
- package/data/global/group/buttons.ttl +2 -0
- package/data/global/group/cards.ttl +2 -0
- package/data/global/group/code_snippets.ttl +2 -0
- package/data/global/group/keyboard_keys.ttl +101 -2
- package/data/global/group/tiles.ttl +2 -0
- package/data/global/layout/error_layout.ttl +2 -0
- package/data/global/layout/form_layout.ttl +2 -0
- package/data/global/layout/identity_page_form.ttl +2 -0
- package/data/global/modifier/alpha.ttl +2 -0
- package/data/global/modifier/beta.ttl +2 -0
- package/data/global/modifier/caution.ttl +2 -0
- package/data/global/modifier/comfortable.ttl +2 -0
- package/data/global/modifier/completed.ttl +2 -0
- package/data/global/modifier/constructive.ttl +2 -0
- package/data/global/modifier/dark.ttl +2 -0
- package/data/global/modifier/dense.ttl +2 -0
- package/data/global/modifier/destructive.ttl +2 -0
- package/data/global/modifier/editable.ttl +2 -0
- package/data/global/modifier/elevated.ttl +2 -0
- package/data/global/modifier/error.ttl +2 -0
- package/data/global/modifier/experimental.ttl +2 -0
- package/data/global/modifier/failed.ttl +2 -0
- package/data/global/modifier/focused.ttl +2 -0
- package/data/global/modifier/highlighted.ttl +2 -0
- package/data/global/modifier/in_progress.ttl +2 -0
- package/data/global/modifier/information.ttl +2 -0
- package/data/global/modifier/light.ttl +2 -0
- package/data/global/modifier/loading.ttl +2 -0
- package/data/global/modifier/modal.ttl +2 -0
- package/data/global/modifier/muted.ttl +2 -0
- package/data/global/modifier/planned.ttl +2 -0
- package/data/global/modifier/primary.ttl +2 -0
- package/data/global/modifier/secondary.ttl +2 -0
- package/data/global/modifier/stable.ttl +2 -0
- package/data/global/modifier/success.ttl +2 -0
- package/data/global/modifier/surface1.ttl +2 -0
- package/data/global/modifier/surface2.ttl +2 -0
- package/data/global/modifier/surface3.ttl +2 -0
- package/data/global/modifier/tertiary.ttl +2 -0
- package/data/global/modifier/warning.ttl +2 -0
- package/data/global/modifier/wireframe.ttl +2 -0
- package/data/global/modifier_family/_color_luminosity.ttl +2 -0
- package/data/global/modifier_family/_emphasis.ttl +2 -0
- package/data/global/modifier_family/_other.ttl +2 -0
- package/data/global/modifier_family/anticipation.ttl +2 -0
- package/data/global/modifier_family/criticality.ttl +2 -0
- package/data/global/modifier_family/density.ttl +2 -0
- package/data/global/modifier_family/importance.ttl +2 -0
- package/data/global/modifier_family/lifecycle.ttl +2 -0
- package/data/global/modifier_family/mode.ttl +2 -0
- package/data/global/modifier_family/release.ttl +2 -0
- package/data/global/modifier_family/surface.ttl +2 -0
- package/data/global/pattern/description_list.ttl +2 -0
- package/data/global/pattern/field.ttl +2 -0
- package/data/global/pattern/form.ttl +2 -0
- package/data/global/pattern/form_login.ttl +2 -0
- package/data/global/pattern/info_table.ttl +2 -0
- package/data/global/pattern/modal.ttl +431 -4
- package/data/global/pattern/navigation.ttl +2 -0
- package/data/global/pattern/stepper.ttl +2 -0
- package/data/global/pattern/table_of_contents.ttl +85 -2
- package/data/global/pattern/timeline.ttl +48 -13
- package/data/global/subcomponent/accordion-item.ttl +157 -2
- package/data/global/subcomponent/breadcrumbs-item.ttl +69 -2
- package/data/global/subcomponent/card-content.ttl +53 -2
- package/data/global/subcomponent/card-footer.ttl +2 -0
- package/data/global/subcomponent/card-header.ttl +45 -2
- package/data/global/subcomponent/card-image.ttl +13 -2
- package/data/global/subcomponent/card-thumbnail.ttl +37 -2
- package/data/global/subcomponent/chart_legend.ttl +93 -2
- package/data/global/subcomponent/chart_legend_item.ttl +77 -2
- package/data/global/subcomponent/checkbox_input.ttl +165 -2
- package/data/global/subcomponent/color_input.ttl +2 -0
- package/data/global/subcomponent/combobox_input.ttl +398 -3
- package/data/global/subcomponent/date_input.ttl +85 -2
- package/data/global/subcomponent/date_time_input.ttl +85 -2
- package/data/global/subcomponent/field-description.ttl +13 -2
- package/data/global/subcomponent/field-error.ttl +29 -0
- package/data/global/subcomponent/field-label.ttl +37 -2
- package/data/global/subcomponent/file_upload_input.ttl +158 -3
- package/data/global/subcomponent/hidden_input.ttl +3 -1
- package/data/global/subcomponent/kvp_container.ttl +77 -2
- package/data/global/subcomponent/kvpitem_base.ttl +69 -2
- package/data/global/subcomponent/markdown_input.ttl +2 -0
- package/data/global/subcomponent/modal-content.ttl +38 -2
- package/data/global/subcomponent/modal-footer.ttl +262 -2
- package/data/global/subcomponent/modal-header.ttl +294 -2
- package/data/global/subcomponent/month_input.ttl +2 -0
- package/data/global/subcomponent/number_input.ttl +2 -0
- package/data/global/subcomponent/password_input.ttl +117 -2
- package/data/global/subcomponent/phone_input.ttl +101 -2
- package/data/global/subcomponent/radio_input.ttl +94 -3
- package/data/global/subcomponent/range_input.ttl +85 -2
- package/data/global/subcomponent/rating_input.ttl +2 -0
- package/data/global/subcomponent/rich_text_input.ttl +2 -0
- package/data/global/subcomponent/search_input.ttl +5 -3
- package/data/global/subcomponent/segmented_control_input.ttl +2 -0
- package/data/global/subcomponent/select_input.ttl +86 -3
- package/data/global/subcomponent/spin_button.ttl +2 -0
- package/data/global/subcomponent/spinner.ttl +3 -1
- package/data/global/subcomponent/switch_input.ttl +86 -3
- package/data/global/subcomponent/table-cell.ttl +2 -0
- package/data/global/subcomponent/table-row.ttl +2 -0
- package/data/global/subcomponent/text_input.ttl +101 -2
- package/data/global/subcomponent/textarea_input.ttl +85 -2
- package/data/global/subcomponent/tile-content.ttl +45 -2
- package/data/global/subcomponent/tile-header.ttl +45 -2
- package/data/global/subcomponent/time_input.ttl +85 -2
- package/data/global/subcomponent/timeline-content.ttl +37 -2
- package/data/global/subcomponent/timeline-event.ttl +42 -7
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +3 -1
- package/data/global/subcomponent/timeline-header.ttl +3 -1
- package/data/global/variant/tooltip_dense.ttl +2 -0
- package/data/global/view/settings_view.ttl +2 -0
- package/data/global.ttl +2 -0
- package/data/sites/component/blog_card.ttl +2 -0
- package/data/sites/component/quote.ttl +2 -0
- package/data/sites/component/rule.ttl +2 -0
- package/data/sites/component/section.ttl +2 -0
- package/data/sites/group/blog_cards.ttl +2 -0
- package/data/sites/group/xblog_elements.ttl +2 -0
- package/data/sites/layout/blog_page_layout.ttl +2 -0
- package/data/sites/layout/case_study_layout.ttl +2 -0
- package/data/sites/layout/site_layout.ttl +2 -0
- package/data/sites/pattern/hero-github.ttl +2 -0
- package/data/sites/pattern/hero.ttl +2 -0
- package/data/sites/pattern/info_table.ttl +2 -0
- package/data/sites/pattern/pricing_section.ttl +2 -0
- package/data/sites/pattern/pricing_table.ttl +2 -0
- package/data/sites/pattern/read_more_section.ttl +2 -0
- package/data/sites/pattern/skip_link.ttl +2 -0
- package/data/sites.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/list.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/tabs.ttl +2 -0
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +2 -0
- package/data/sites_webcomponentsprototype.ttl +2 -0
- package/data/stores.ttl +2 -0
- package/data/tag/allgood.ttl +2 -0
- package/data/tag/beta.ttl +2 -0
- package/data/tag/candidate.ttl +2 -0
- package/data/tag/devbatch1.ttl +2 -0
- package/data/tag/devbatch2.ttl +2 -0
- package/data/tag/devbatch3.ttl +9 -0
- package/data/tag/devexternal.ttl +2 -0
- package/data/tag/devreactapproved.ttl +2 -0
- package/data/tag/devreactbase.ttl +2 -0
- package/data/tag/devreactpreapproved.ttl +2 -0
- package/data/tag/devspecial.ttl +2 -0
- package/data/tag/devsveltedone.ttl +2 -0
- package/data/tag/devsveltein-progress.ttl +2 -0
- package/data/tag/divergent.ttl +2 -0
- package/data/tag/docscomplete.ttl +2 -0
- package/data/tag/draft.ttl +2 -0
- package/data/tag/edge.ttl +2 -0
- package/data/tag/global-docs-missing.ttl +2 -0
- package/data/tag/has-no-global-entry.ttl +2 -0
- package/data/tag/lpto-be-upstreamed.ttl +2 -0
- package/data/tag/lptriageblocked-reqs-design.ttl +2 -0
- package/data/tag/lptriageno-upstream.ttl +2 -0
- package/data/tag/lptriagereimplement-and-deprecate.ttl +2 -0
- package/data/tag/lptriagereimplement-and-keep.ttl +2 -0
- package/data/tag/lptriageupstream-and-deprecate.ttl +2 -0
- package/data/tag/minimal.ttl +2 -0
- package/data/tag/needsdefinition.ttl +2 -0
- package/data/tag/needsdiscussion.ttl +2 -0
- package/data/tag/needsdocumentation.ttl +2 -0
- package/data/tag/needsreview.ttl +2 -0
- package/data/tag/needstriage.ttl +2 -0
- package/data/tag/needsupdate.ttl +2 -0
- package/data/tag/notstarted.ttl +2 -0
- package/data/tag/specialadoption-docs.ttl +2 -0
- package/data/tag/stable.ttl +2 -0
- package/data/tag/stylesready.ttl +2 -0
- package/data/tag/triagedbacklog.ttl +2 -0
- package/data/tag/triagedrejected.ttl +2 -0
- package/data/tag/upstream-candidate.ttl +2 -0
- package/data/tag/upstream-compliant.ttl +2 -0
- package/data/tag/upstreamcandidate.ttl +2 -0
- package/data/tag/waiting-for-delta-review.ttl +2 -0
- package/data/tag/wpeinital-implementation.ttl +2 -0
- package/data/tag/wpetriageupstream-and-deprecate.ttl +2 -0
- package/data/tagcategory/channel.ttl +2 -0
- package/data/tagcategory/concept-status.ttl +2 -0
- package/data/tagcategory/concept-type.ttl +2 -0
- package/data/tagcategory/documentation-stage.ttl +2 -0
- package/data/tagcategory/implementation-status.ttl +2 -0
- package/data/tagcategory/lpupstream.ttl +2 -0
- package/data/tagcategory/review-status.ttl +2 -0
- package/data/tagcategory/tmp.ttl +2 -0
- package/definitions/ontology.ttl +78 -1
- package/package.json +34 -8
- package/skills/adoption-a1-styles/SKILL.md +24 -0
- package/skills/adoption-a2-components/SKILL.md +22 -6
- package/skills/anatomy-author/ANATOMY_DSL_SPEC.md +1397 -327
- package/skills/anatomy-author/SKILL.md +840 -137
- package/skills/design-auditor/SKILL.md +133 -9
- package/skills/implement-component/SKILL.md +192 -23
- package/skills/specify-component/SKILL.md +124 -12
- package/skills/specify-pattern/SKILL.md +47 -8
- package/src/collect/generateTurtle.tests.ts +94 -1
- package/src/collect/generateTurtle.ts +65 -3
- package/src/collect/resolvePublicExports.tests.ts +159 -0
- package/src/collect/resolvePublicExports.ts +244 -0
- package/src/collect/types.ts +11 -0
- package/src/collect-implementations.ts +0 -0
- package/src/serializers/TTLSerializer.tests.ts +101 -0
- package/src/serializers/TTLSerializer.ts +17 -2
- package/.github/ISSUE_TEMPLATE/propose-changes-to-existing-ui-block.md +0 -14
- package/.github/ISSUE_TEMPLATE/propose-new-ui-block.md +0 -26
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -22
- package/.github/workflows/ci.yml +0 -49
- package/.github/workflows/sync-coda-manual.yml +0 -25
- package/.github/workflows/sync-coda-scheduled.yml +0 -22
- package/.github/workflows/sync-coda.yml +0 -102
- package/.mcp.json +0 -12
- package/GEMINI.md +0 -2
- package/biome.json +0 -6
- package/bun.lock +0 -392
- package/data/apps_landscape/component/truncated_cell.ttl +0 -38
- package/data/concept/Foundations-Grid.ttl +0 -9
- package/data/concept/Indicating-required-fields-in-forms.ttl +0 -9
- package/data/concepttype/Decision-guide.ttl +0 -5
- package/data/concepttype/Mental-model.ttl +0 -5
- package/examples/form-roster.target.json +0 -550
- package/source.json +0 -205
- package/specs/README.md +0 -17
- package/src/cli.ts +0 -58
- package/src/commands/extract.tests.ts +0 -40
- package/src/commands/extract.ts +0 -50
- package/src/commands/index.ts +0 -4
- package/src/commands/list.tests.ts +0 -25
- package/src/commands/list.ts +0 -26
- package/src/commands/sync.tests.ts +0 -430
- package/src/commands/sync.ts +0 -418
- package/src/commands/transform.tests.ts +0 -213
- package/src/commands/transform.ts +0 -257
- package/src/config/index.ts +0 -2
- package/src/config/source.schema.json +0 -146
- package/src/config/types.ts +0 -129
- package/src/config/validateConfig.tests.ts +0 -46
- package/src/config/validateConfig.ts +0 -21
- package/src/constants.ts +0 -19
- package/src/providers/CodaProvider.tests.ts +0 -335
- package/src/providers/CodaProvider.ts +0 -384
- package/src/providers/CodaProvider.types.generated.ts +0 -12597
- package/src/providers/detectSmartChips.tests.ts +0 -42
- package/src/providers/detectSmartChips.ts +0 -60
- package/src/providers/index.ts +0 -18
- package/src/scripts/checkDataDeletion.ts +0 -68
- package/src/scripts/evaluateDataDeletion.tests.ts +0 -100
- package/src/scripts/evaluateDataDeletion.ts +0 -100
- package/src/sync/constants.ts +0 -52
- package/src/sync/diffRoster.tests.ts +0 -455
- package/src/sync/diffRoster.ts +0 -241
- package/src/sync/loadTargetSpec.tests.ts +0 -208
- package/src/sync/loadTargetSpec.ts +0 -139
- package/src/sync/renderPlan.tests.ts +0 -144
- package/src/sync/renderPlan.ts +0 -88
- package/src/sync/snapshotTable.tests.ts +0 -31
- package/src/sync/snapshotTable.ts +0 -20
- package/src/sync/toLiveEntries.tests.ts +0 -76
- package/src/sync/toLiveEntries.ts +0 -55
- package/src/sync/types.ts +0 -101
- package/src/transform/collectDataMetrics.tests.ts +0 -108
- package/src/transform/collectDataMetrics.ts +0 -114
- package/src/transform/deltaGuards.tests.ts +0 -136
- package/src/transform/deltaGuards.ts +0 -118
- package/src/transform/expectedTables.tests.ts +0 -99
- package/src/transform/expectedTables.ts +0 -34
- package/src/transform/isValidReferenceUri.tests.ts +0 -45
- package/src/transform/isValidReferenceUri.ts +0 -55
- package/src/transform/materializeInverses.tests.ts +0 -81
- package/src/transform/materializeInverses.ts +0 -78
- package/src/transform/resolveReferences.tests.ts +0 -67
- package/src/transform/resolveReferences.ts +0 -36
- package/src/transform/resolveValue.tests.ts +0 -82
- package/src/transform/resolveValue.ts +0 -87
- package/src/transform/rowFilter.tests.ts +0 -100
- package/src/transform/rowFilter.ts +0 -55
- package/src/transform/transform.tests.ts +0 -132
- package/src/transform/transform.ts +0 -145
- package/src/transform/transformRow.malformedRefs.tests.ts +0 -127
- package/src/transform/transformRow.tests.ts +0 -466
- package/src/transform/transformRow.ts +0 -358
- package/src/transform/types.ts +0 -37
- package/tsconfig.json +0 -9
- package/vite.config.ts +0 -11
- package/vitest.config.ts +0 -50
|
@@ -0,0 +1,106 @@
|
|
|
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_landscape.pattern.header_search_controls a ds:Pattern;
|
|
6
|
+
ds:name "Header Search Controls";
|
|
7
|
+
ds:summary "Defines two related search-header compositions around Canonical `SearchBox`: a Formik-backed header that either owns URL search synchronization or delegates trimmed queries to `onSearch`, and a fully controlled search box with an adjacent Help button. Both submit on the form or Search action and opt into refocusing the search input after reset.";
|
|
8
|
+
ds:anatomyDsl "node:\n uri: ds:apps_landscape.pattern.header_search_controls\n edges:\n - node:\n role: Formik-backed search header\n edges:\n - node:\n semantic: form\n role: search form\n edges:\n - node:\n uri: global.component.search_box\n role: controlled query input\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: adjacent actions\n relation:\n cardinality: \"0..1\"\n slotName: actions\n condition: actions is a valid React element\n relation:\n cardinality: \"0..1\"\n condition: HeaderWithSearch variant is used\n - node:\n role: search with description button\n edges:\n - node:\n semantic: form\n role: search form\n edges:\n - node:\n uri: global.component.search_box\n role: controlled query input\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.button\n role: help action\n edges:\n - node:\n uri: global.component.icon\n role: help icon\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"\n condition: SearchBoxWithDescriptionButton variant is used";
|
|
9
|
+
ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-57&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 31\n\n";
|
|
10
|
+
ds:usage "### When to use\n\n**Searchable list header**\n\nUse `HeaderWithSearch` where a header search should initialize from page parameters and write trimmed submissions back through `setPageParams`, or where a caller owns an equivalent controlled query.\n\n**Search with related action**\n\nUse the `actions` slot for one valid React element that composes related controls, or use `SearchBoxWithDescriptionButton` when the only adjacent control is query help.\n\n### When not to use\n\n**Advanced filtering**\n\nMany filters must be displayed alongside search.\n\n**Incorrect pattern**: Adding multiple filter controls directly to the header component or overloading it with filtering options.\n\n**Remediation strategy**: Use the established filter pattern component or place advanced filters in a separate collapsible panel below the header.\n\n**Instant local filtering**\n\nResults should update on every keystroke without an explicit search action.\n\n**Incorrect pattern**: Using this component and expecting results to update automatically as the user types, without an explicit search button click or Enter key.\n\n**Remediation strategy**: Use a different search composition that submits on every change, or implement real-time filtering at the parent level with a debounced handler.\n\n**Arbitrary help labeling**\n\nThe accessible help name must vary by context.\n\n**Incorrect pattern**: Using the description-button variant and expecting the Help button to have a dynamic accessible name based on context.\n\n**Remediation strategy**: Use the `actions` slot with a custom labeled button component, or implement a separate context-specific help trigger outside the search header.";
|
|
11
|
+
ds:guidelines "### Accessibility\n\n- Both variants rely on Canonical `SearchBox` for the searchbox and Search/Clear button semantics; neither wrapper adds a search landmark or visible label.\n- Supply an accessible SearchBox name through supported SearchBox props or surrounding context; placeholder text alone is not a durable label.\n- The description button is a native `type=\"button\"` with fixed `aria-label=\"Help\"` and a help icon. A more specific accessible name requires changing the component API.\n- Both variants set `shouldRefocusAfterReset`, so clearing through the SearchBox is expected to return focus to the input.\n\n### Content\n\n- `HeaderWithSearch` trims leading and trailing whitespace before either callback or URL update; `SearchBoxWithDescriptionButton` does not trim because its callback receives no value.\n- Use concise localized placeholder and accessible-label content through SearchBox props.\n- The only internal visible/accessibility copy is the description button’s English accessible name `Help`.\n\n### Internationalization\n\n- Query values, placeholders, and adjacent action content are caller-owned and may be localized.\n- The description button’s accessible name is hard-coded in English and cannot be translated through props.\n\n### Keyboard and device\n\n- Enter submits each enclosing form; the Search and Clear controls retain Canonical SearchBox keyboard behavior. No custom key handlers are added.\n- Both compositions wire their callback to the enclosing form submission and the SearchBox search action. Verify Canonical’s event behavior in the installed version and make callbacks idempotent because one Search activation may reach both handlers.\n- `HeaderWithSearch` places the search before `actions` in DOM and tab order. The row has no local wrapping rule: search starts with a `30rem` basis and may shrink, while the action wrapper grows and cannot shrink.\n- `SearchBoxWithDescriptionButton` is a flex row with a `30rem` basis and `15rem` minimum width; its search container may shrink to zero and the Help button remains adjacent. Neither source defines a media query.";
|
|
12
|
+
ds:tier ds:apps_landscape;
|
|
13
|
+
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
|
+
ds:hasProperty [
|
|
15
|
+
a ds:Property;
|
|
16
|
+
ds:name "`HeaderWithSearch.onSearch`";
|
|
17
|
+
ds:summary "Selects caller-owned mode and receives trimmed submitted text or `\"\"` on clear. ";
|
|
18
|
+
ds:propertyType "callback";
|
|
19
|
+
ds:defaultValue "—";
|
|
20
|
+
ds:constraints "Exact type in caller-owned union member: `(searchText: string) => void`; otherwise `never`. Omission selects URL-backed mode. Requires `searchText` and excludes `afterSearch`. The caller must update controlled state. One Search action may invoke it twice. ";
|
|
21
|
+
ds:optional "true"
|
|
22
|
+
], [
|
|
23
|
+
a ds:Property;
|
|
24
|
+
ds:name "`HeaderWithSearch.searchText`";
|
|
25
|
+
ds:summary "Controlled query for caller-owned mode.";
|
|
26
|
+
ds:propertyType "text";
|
|
27
|
+
ds:defaultValue "—";
|
|
28
|
+
ds:constraints "Exact type in caller-owned union member: `string`; otherwise `never`. Required with `onSearch`; forbidden in URL-backed variants, where the current page-param `search` initializes Formik. Formik reinitializes when it changes. ";
|
|
29
|
+
ds:optional "true"
|
|
30
|
+
], [
|
|
31
|
+
a ds:Property;
|
|
32
|
+
ds:name "`HeaderWithSearch.afterSearch`";
|
|
33
|
+
ds:summary "Runs after a URL-backed non-clear submission updates page params. ";
|
|
34
|
+
ds:propertyType "callback";
|
|
35
|
+
ds:defaultValue "—";
|
|
36
|
+
ds:constraints "Exact type in the post-submit union member: `() => void`; otherwise `never`. Excludes `onSearch` and `searchText`; not called on clear or in caller-owned mode. ";
|
|
37
|
+
ds:optional "true"
|
|
38
|
+
], [
|
|
39
|
+
a ds:Property;
|
|
40
|
+
ds:name "`HeaderWithSearch.actions`";
|
|
41
|
+
ds:summary "Supplies adjacent header content.";
|
|
42
|
+
ds:propertyType "node";
|
|
43
|
+
ds:defaultValue "—";
|
|
44
|
+
ds:constraints "Exact type: `ReactNode`. The wrapper grows and does not shrink. ";
|
|
45
|
+
ds:optional "true"
|
|
46
|
+
], [
|
|
47
|
+
a ds:Property;
|
|
48
|
+
ds:name "`HeaderWithSearch.autocomplete`";
|
|
49
|
+
ds:summary "Sets the search input autocomplete mode.";
|
|
50
|
+
ds:propertyType "choice";
|
|
51
|
+
ds:defaultValue "`\"off\"`";
|
|
52
|
+
ds:constraints "Exact type: `\"on\" | \"off\" | undefined`. This spelling is passed explicitly to Canonical SearchBox. ";
|
|
53
|
+
ds:optional "true"
|
|
54
|
+
], [
|
|
55
|
+
a ds:Property;
|
|
56
|
+
ds:name "`HeaderWithSearch.remaining SearchBoxProps` ";
|
|
57
|
+
ds:summary "Forwards Canonical SearchBox props except wrapper-owned controlled value, search/change/clear handlers, reset-refocus flag, and ref. ";
|
|
58
|
+
ds:propertyType "object";
|
|
59
|
+
ds:defaultValue "—";
|
|
60
|
+
ds:constraints "Exact contract: `Omit<SearchBoxProps, \"onSearch\" | \"externallyControlled\" | \"shouldRefocusAfterReset\" | \"value\" | \"onClear\" | \"onChange\" | \"ref\">`. Inherited props use their Canonical defaults; explicitly destructured wrapper props are removed before forwarding. ";
|
|
61
|
+
ds:optional "true"
|
|
62
|
+
], [
|
|
63
|
+
a ds:Property;
|
|
64
|
+
ds:name "`HeaderWithSearch.className`";
|
|
65
|
+
ds:summary "Adds a class to the header row.";
|
|
66
|
+
ds:propertyType "text";
|
|
67
|
+
ds:defaultValue "—";
|
|
68
|
+
ds:constraints "Inherited from the remaining `SearchBoxProps` contract and destructured for the root; the local container class is always retained. ";
|
|
69
|
+
ds:optional "true"
|
|
70
|
+
], [
|
|
71
|
+
a ds:Property;
|
|
72
|
+
ds:name "`SearchBoxWithDescriptionButton.inputValue` ";
|
|
73
|
+
ds:summary "Sets the displayed search value.";
|
|
74
|
+
ds:propertyType "text";
|
|
75
|
+
ds:defaultValue "—";
|
|
76
|
+
ds:constraints "The component stores no input state."
|
|
77
|
+
], [
|
|
78
|
+
a ds:Property;
|
|
79
|
+
ds:name "`SearchBoxWithDescriptionButton.onInputChange` ";
|
|
80
|
+
ds:summary "Receives each SearchBox value change.";
|
|
81
|
+
ds:propertyType "callback";
|
|
82
|
+
ds:defaultValue "—";
|
|
83
|
+
ds:constraints "Exact type: `(inputValue: string) => void`. The caller must update `inputValue`. "
|
|
84
|
+
], [
|
|
85
|
+
a ds:Property;
|
|
86
|
+
ds:name "`SearchBoxWithDescriptionButton.onSearchClick` ";
|
|
87
|
+
ds:summary "Runs on form submission and the SearchBox search action. ";
|
|
88
|
+
ds:propertyType "callback";
|
|
89
|
+
ds:defaultValue "—";
|
|
90
|
+
ds:constraints "Exact type: `() => void`. Receives no query argument; the caller reads its own state. Input is not trimmed here. Because both event paths call it, one Search action may invoke it twice. "
|
|
91
|
+
], [
|
|
92
|
+
a ds:Property;
|
|
93
|
+
ds:name "`SearchBoxWithDescriptionButton.onDescriptionClick` ";
|
|
94
|
+
ds:summary "Runs when the adjacent Help button is activated.";
|
|
95
|
+
ds:propertyType "callback";
|
|
96
|
+
ds:defaultValue "—";
|
|
97
|
+
ds:constraints "Exact type: `() => void`. The component does not open or own a popup. "
|
|
98
|
+
], [
|
|
99
|
+
a ds:Property;
|
|
100
|
+
ds:name "`SearchBoxWithDescriptionButton.onClear`";
|
|
101
|
+
ds:summary "Is forwarded to SearchBox clear handling.";
|
|
102
|
+
ds:propertyType "callback";
|
|
103
|
+
ds:defaultValue "—";
|
|
104
|
+
ds:constraints "Exact type: `() => void`. When omitted, this component provides no state-clearing fallback; the caller still owns `inputValue`. ";
|
|
105
|
+
ds:optional "true"
|
|
106
|
+
].
|
|
@@ -0,0 +1,60 @@
|
|
|
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_landscape.pattern.ignorable_notification a ds:Pattern;
|
|
6
|
+
ds:name "Ignorable Notification";
|
|
7
|
+
ds:summary "Ignorable Notification is a confirmation pattern around Canonical `Notification`. Dismissing the visible notification opens a `ConfirmationModal` instead of hiding it immediately. The modal repeats the message, provides a consumer-labelled checkbox for persistent suppression, and delegates confirmed hiding to the parent through `hide`.\n\nPersistence is local to the current browser storage: confirming with the checkbox selected writes the exact string `\"true\"` under `storageKey`. On later renders, that value suppresses the notification. Closing or cancelling the modal leaves the notification visible and resets the modal's local checkbox state.";
|
|
8
|
+
ds:anatomyDsl "node:\n uri: ds:apps_landscape.pattern.ignorable_notification\n edges:\n - node:\n uri: global.component.notification\n role: dismissible initial message\n edges:\n - node:\n role: notification content\n relation:\n cardinality: \"0..1\"\n slotName: children\n - node:\n role: confirmation trigger\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"\n - node:\n uri: global.component.confirmation_modal\n role: dismissal confirmation\n name: Ignorable Notification Modal\n edges:\n - node:\n semantic: paragraph\n role: repeated notification message\n edges:\n - node:\n role: repeated notification content\n relation:\n cardinality: \"0..1\"\n slotName: children\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.checkbox\n role: persistent suppression choice\n relation:\n cardinality: \"1\"\n - node:\n role: cancel action\n relation:\n cardinality: \"1\"\n - node:\n role: confirm dismissal action\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..1\"";
|
|
9
|
+
ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-58&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 32\n\n";
|
|
10
|
+
ds:usage "### When to use\n\n**Dismiss recurring guidance**\n\nLet users hide noncritical, recurring guidance and optionally prevent it from appearing again in the same browser storage.\n\n**Confirm persistent dismissal**\n\nRequire an explicit confirmation before a notification is hidden or permanently ignored.\n\n**Parent-owned visibility**\n\nUse when the parent already owns the transient notification state and can provide a `hide` callback after confirmation.\n\n### When not to use\n\n**Critical or mandatory warnings**\n\nInformation is required to prevent harm or data loss.\n\n**Incorrect pattern**: Offering permanent suppression through this component for critical warnings or required safety information.\n\n**Remediation strategy**: Use a standard non-dismissible notification, or require server-side acknowledgement that cannot be locally suppressed.\n\n**Account-wide preferences**\n\nThe choice must follow the user across browsers or devices.\n\n**Incorrect pattern**: Storing the suppression choice only in browser local storage when it must be synchronized across the user’s account.\n\n**Remediation strategy**: Use a server-backed user preference setting so the choice persists and syncs across browsers and devices.\n\n**Immediate dismissal**\n\nClosing should take effect immediately without confirmation or a persistence choice.\n\n**Incorrect pattern**: Using this component when a simple dismissible notification with no follow-up confirmation would be more appropriate.\n\n**Remediation strategy**: Use Canonical Notification directly for transient messages that do not require confirmation or persistent suppression.\n\n**Sensitive preferences**\n\nSecurity-sensitive consent, policy acknowledgement, or auditable account settings are involved.\n\n**Incorrect pattern**: Storing security-sensitive choices or audit-required acknowledgements only in browser local storage.\n\n**Remediation strategy**: Implement server-backed consent tracking or use authenticated, auditable account-preference endpoints for sensitive choices.";
|
|
11
|
+
ds:guidelines "### Accessibility\n\n- Give the modal a purpose-specific title, the confirm and cancel controls explicit outcome labels, and the persistence checkbox a complete label.\n- The Notification’s close control is supplied by Canonical Notification because this wrapper always provides `onDismiss`.\n- Confirmation Modal owns dialog focus behavior. Supply `focusRef` when the default initial focus is not appropriate, and ensure focus returns to a logical element after confirmed removal.\n- Do not rely on the repeated message alone as the modal’s accessible name; provide `modalProps.title`.\n- Checkbox help and validation content must remain associated through the inherited Checkbox Input API.\n\n### Content\n\n- Explain what is being dismissed and whether checking the option prevents future display.\n- Use confirm and cancel labels that state the outcome rather than generic “Yes” and “No”.\n- The same children appear in the notification and modal. Write concise inline content that makes sense in both contexts.\n- State that suppression applies to this browser when users might expect an account-wide preference.\n\n### Responsive behavior\n\n- This wrapper adds no CSS or breakpoint behavior; Notification and Confirmation Modal own their responsive presentation.\n- Keep repeated copy, checkbox labels, and action labels short enough to wrap within the Canonical modal without horizontal scrolling.\n- Portal rendering and outside-click behavior are inherited modal choices, not notification variants.\n\n### Keyboard\n\n- The dismiss control, checkbox, cancel, and confirm actions must all be keyboard operable.\n- Closing without confirmation must reset the checkbox and leave the notification visible.\n- Confirming closes the modal before calling `hide`; checked confirmation then writes persistence. Do not attach competing keyboard handlers to those actions.\n\n### Internationalization\n\n- Externalize notification content, title, actions, modal title, button labels, checkbox label, help, and validation messages.\n- Do not rely on the source defaults for confirm or checkbox labels; both defaults are undefined.\n- Allow translated labels to wrap. The fixed stored value `\"true\"` and `storageKey` are implementation data and must not be localized.";
|
|
12
|
+
ds:tier ds:apps_landscape;
|
|
13
|
+
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
|
+
ds:hasProperty [
|
|
15
|
+
a ds:Property;
|
|
16
|
+
ds:name "`IgnorableNotification.hide`";
|
|
17
|
+
ds:summary "Parent callback invoked after the user confirms dismissal. ";
|
|
18
|
+
ds:propertyType "callback";
|
|
19
|
+
ds:defaultValue "—";
|
|
20
|
+
ds:constraints "TypeScript: `(event: MouseEvent<HTMLElement>) => void`. It runs for every confirmation, whether or not persistence is checked. The wrapper does not itself remove transient parent state. "
|
|
21
|
+
], [
|
|
22
|
+
a ds:Property;
|
|
23
|
+
ds:name "`IgnorableNotification.storageKey`";
|
|
24
|
+
ds:summary "Browser local-storage key controlling persistent suppression. ";
|
|
25
|
+
ds:propertyType "text";
|
|
26
|
+
ds:defaultValue "—";
|
|
27
|
+
ds:constraints "Must be stable and unique to one notification purpose. Only the exact stored string `\"true\"` suppresses rendering. "
|
|
28
|
+
], [
|
|
29
|
+
a ds:Property;
|
|
30
|
+
ds:name "`IgnorableNotification.children`";
|
|
31
|
+
ds:summary "Optional notification message, repeated inside the modal's structurally required paragraph. ";
|
|
32
|
+
ds:propertyType "node";
|
|
33
|
+
ds:defaultValue "—";
|
|
34
|
+
ds:constraints "TypeScript: `ReactNode`. Keep it valid both as Notification content and as a descendant of `<p>`; block-level children can create invalid modal markup. Omitting it leaves an empty paragraph whenever the modal is open. ";
|
|
35
|
+
ds:optional "true"
|
|
36
|
+
], [
|
|
37
|
+
a ds:Property;
|
|
38
|
+
ds:name "`IgnorableNotification.modalProps`";
|
|
39
|
+
ds:summary "Configures the grouped confirmation modal and persistence checkbox. ";
|
|
40
|
+
ds:propertyType "object";
|
|
41
|
+
ds:defaultValue "`{ confirmButtonLabel: undefined }`";
|
|
42
|
+
ds:constraints "TypeScript: `Omit<ComponentProps<typeof IgnorableModal>, \"children\" | \"hideModal\" | \"hideNotification\" | \"ignore\">`. The wrapper reserves modal content, close, and confirm behavior. Includes nested `checkboxProps`. ";
|
|
43
|
+
ds:optional "true"
|
|
44
|
+
], [
|
|
45
|
+
a ds:Property;
|
|
46
|
+
ds:name "`IgnorableNotification.modalProps.checkboxProps` ";
|
|
47
|
+
ds:summary "Forwards label, id, help, validation, class, inline, and native checkbox presentation props. ";
|
|
48
|
+
ds:propertyType "object";
|
|
49
|
+
ds:defaultValue "`{ label: undefined }`";
|
|
50
|
+
ds:constraints "TypeScript: `Omit<ComponentProps<typeof CheckboxInput>, \"checked\" | \"onChange\">`. The grouped modal owns checked state and changes. Supply a clear `label`; the source default is undefined. ";
|
|
51
|
+
ds:optional "true"
|
|
52
|
+
], [
|
|
53
|
+
a ds:Property;
|
|
54
|
+
ds:name "`IgnorableNotification` inherited Notification props ";
|
|
55
|
+
ds:summary "Forwards `actions`, `borderless`, `className`, `inline`, `messageElement`, `severity`, `timeout`, `timestamp`, `title`, `titleElement`, and supported `<div>` props. ";
|
|
56
|
+
ds:propertyType "object";
|
|
57
|
+
ds:defaultValue "Canonical Notification defaults";
|
|
58
|
+
ds:constraints "TypeScript: `Omit<ComponentProps<typeof Notification>, \"onDismiss\">`. Deprecated `close`, `status`, and `type` remain unavailable. ";
|
|
59
|
+
ds:optional "true"
|
|
60
|
+
].
|
|
@@ -0,0 +1,93 @@
|
|
|
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_landscape.pattern.information_grid a ds:Pattern;
|
|
6
|
+
ds:name "Information Grid";
|
|
7
|
+
ds:summary "Information Grid presents read-only labelled values in a CSS container-responsive grid that adapts from four to two columns based on available width. It supports regular, password-masked, and expandable-truncated value variants for compact metadata display.\n\nMain use cases:\n\n- Display read-only attributes of a single entity, profile, or record. \n- Show numeric zero and distinguish it from empty or missing values through the shared `NoData` state. \n- Render values that may exceed available space using expandable truncation with outside-click collapse. \n- Present security-sensitive data with a fixed mask (not a security boundary, but a visual courtesy).";
|
|
8
|
+
ds:anatomyDsl "```yaml\nnode:\n uri: ds:apps_landscape.pattern.information_grid\n role: responsive boundary\n edges:\n - node:\n role: value collection\n edges:\n - node:\n role: grid item\n edges:\n - node:\n role: value identifier\n relation:\n cardinality: \"1\"\n slotName: label\n - node:\n role: read-only content\n description: Renders regular content, a fixed mask, expandable truncation, or the no-data state.\n relation:\n cardinality: \"1\"\n slotName: value\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"1\"\n```\n\nThe truncated value’s disclosure structure belongs to Expandable Truncation rather than being repeated as a sibling of every item.";
|
|
9
|
+
ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-59&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 33\n\n";
|
|
10
|
+
ds:usage "### When to use\n\n- Use for read-only attributes of one system, package, profile, repository, or similar record.\n- Compose `InfoGrid.Item` children so labels, values, empty states, and optional spans remain consistent.\n- Use `large` for a value that should occupy two tracks, such as a long identifier or summary.\n- Use `type=\"truncated\"` only when the value can safely open into an overlay and outside-click collapse is sufficient.\n\n### When not to use\n\n**Editable data**\n\nForm controls and validation are needed for user input.\n\n**Incorrect pattern**: Using Info Grid items to display data that the user needs to edit or update.\n\n**Remediation strategy**: Use Formik-controlled form inputs with validation, not Info Grid items.\n\n**Row-wise comparison**\n\nData must be compared across rows, sorted, or displayed as tabular relationships.\n\n**Incorrect pattern**: Rendering multiple Info Grid instances expecting them to form a sortable or comparable tabular display.\n\n**Remediation strategy**: Use a proper table component (`table`, `thead`, `tbody`) or a data grid that supports sorting and comparison.\n\n**Semantic description list**\n\nA programmatic label/value relationship without a visual wrapper is required.\n\n**Incorrect pattern**: Using Info Grid’s sibling `div` structure when the markup needs to be a semantic `<dl>` for accessibility or API contracts.\n\n**Remediation strategy**: Change the implementation to use `<dl>`, `<dt>`, and `<dd>` elements, or provide a separate semantic layout component.\n\n**Password variant as a security boundary**\n\nThe mask is expected to provide authorization or data handling controls.\n\n**Incorrect pattern**: Relying on the fixed mask to prevent unauthorized viewing of secret values.\n\n**Remediation strategy**: Implement proper access controls and data authorization on the server; use the mask only as a visual courtesy for UI consistency.";
|
|
11
|
+
ds:guidelines "### Accessibility\n\n- Write labels that remain understandable directly before their values in reading order.\n- The current markup is not a `<dl>` and creates no programmatic label/value association. Use surrounding headings and concise labels; change the implementation if stronger semantics are required.\n- `NoData` must remain distinguishable from an intentionally empty string; current regular behavior treats an empty string as missing.\n- The truncated disclosure inherits current gaps from Expandable Truncation: no `aria-expanded`, `aria-controls`, generated relationship, or built-in keyboard collapse.\n\n### Content and internationalization\n\n- Use short noun phrases for labels and consistent formats for dates, counts, units, and identifiers.\n- Labels are visually uppercased through CSS; source strings should use normal casing for reading and translation.\n- The fixed password mask is language-neutral but not configurable. Empty-state and “Show more” copy come from dependencies and are not localized by InfoGrid.\n- The grid itself performs no number, date, unit, or locale formatting.\n\n### Keyboard and interaction\n\n- Regular and password items add no focus targets or keyboard handlers.\n- Truncated items expose the disclosure button only when measured overflow exists. Expansion removes that button; collapse occurs on outside interaction rather than a dedicated keyboard command.\n- Links or controls supplied inside regular values retain their own semantics, but the component adds no grouping or focus management.\n\n### Device and layout\n\n- Responsiveness is based on the outer wrapper’s inline size, not viewport width.\n- Source defines four equal tracks and one container query that switches to two. There is no one-column rule, so narrow hosts can produce cramped two-column content.\n- Every direct grid child receives `min-width: 0`; `large` spans two tracks. Dense mode changes only the gap.\n- Expanded truncated values use absolute positioning and a `1.5rem` host height, with no portal or z-index. Verify clipping and overlap in panels and nested containers.";
|
|
12
|
+
ds:tier ds:apps_landscape;
|
|
13
|
+
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
|
+
ds:hasProperty [
|
|
15
|
+
a ds:Property;
|
|
16
|
+
ds:name "`InfoGrid.children`";
|
|
17
|
+
ds:summary "Content rendered by the inner grid.";
|
|
18
|
+
ds:propertyType "node";
|
|
19
|
+
ds:defaultValue "—";
|
|
20
|
+
ds:constraints "TypeScript: `ReactNode`. `InfoGrid.Item` is the supported composition for consistent item anatomy. "
|
|
21
|
+
], [
|
|
22
|
+
a ds:Property;
|
|
23
|
+
ds:name "`InfoGrid.spaced`";
|
|
24
|
+
ds:summary "Adds source-defined vertical margins to the outer wrapper. ";
|
|
25
|
+
ds:propertyType "boolean";
|
|
26
|
+
ds:defaultValue "—";
|
|
27
|
+
ds:constraints "It does not change grid tracks or child spacing.";
|
|
28
|
+
ds:optional "true"
|
|
29
|
+
], [
|
|
30
|
+
a ds:Property;
|
|
31
|
+
ds:name "`InfoGrid.dense`";
|
|
32
|
+
ds:summary "Replaces the default grid gap with the smaller dense gap. ";
|
|
33
|
+
ds:propertyType "boolean";
|
|
34
|
+
ds:defaultValue "—";
|
|
35
|
+
ds:constraints "It does not reduce typography or interactive target sizes. ";
|
|
36
|
+
ds:optional "true"
|
|
37
|
+
], [
|
|
38
|
+
a ds:Property;
|
|
39
|
+
ds:name "`InfoGrid.className`";
|
|
40
|
+
ds:summary "Additional class on the outer query wrapper.";
|
|
41
|
+
ds:propertyType "text";
|
|
42
|
+
ds:defaultValue "—";
|
|
43
|
+
ds:constraints "Unlike other inherited attributes, it is not applied to the inner grid. ";
|
|
44
|
+
ds:optional "true"
|
|
45
|
+
], [
|
|
46
|
+
a ds:Property;
|
|
47
|
+
ds:name "`InfoGrid` other HTML attributes";
|
|
48
|
+
ds:summary "Attributes spread onto the inner grid.";
|
|
49
|
+
ds:propertyType "object";
|
|
50
|
+
ds:defaultValue "HTML defaults";
|
|
51
|
+
ds:constraints "TypeScript: `HTMLAttributes<HTMLDivElement>`. Event handlers, ids, ARIA, and data attributes target the inner `div`; `children` is included in this spread. ";
|
|
52
|
+
ds:optional "true"
|
|
53
|
+
], [
|
|
54
|
+
a ds:Property;
|
|
55
|
+
ds:name "`InfoGrid.Item.label`";
|
|
56
|
+
ds:summary "Visible label above the value.";
|
|
57
|
+
ds:propertyType "node";
|
|
58
|
+
ds:defaultValue "—";
|
|
59
|
+
ds:constraints "TypeScript: `ReactNode`. No `id`, `<label>`, or description-list relationship is generated. ";
|
|
60
|
+
ds:optional "true"
|
|
61
|
+
], [
|
|
62
|
+
a ds:Property;
|
|
63
|
+
ds:name "`InfoGrid.Item.value`";
|
|
64
|
+
ds:summary "Value content.";
|
|
65
|
+
ds:propertyType "node";
|
|
66
|
+
ds:defaultValue "—";
|
|
67
|
+
ds:constraints "TypeScript: `ReactNode`. Required for regular and truncated variants and unavailable for password. Regular values treat only `0` and truthy nodes as present; truncated values additionally require truthiness before mounting the disclosure. ";
|
|
68
|
+
ds:optional "true"
|
|
69
|
+
], [
|
|
70
|
+
a ds:Property;
|
|
71
|
+
ds:name "`InfoGrid.Item.type`";
|
|
72
|
+
ds:summary "Selects the value implementation.";
|
|
73
|
+
ds:propertyType "choice";
|
|
74
|
+
ds:defaultValue "`regular`";
|
|
75
|
+
ds:constraints "TypeScript: `\"regular\" | \"password\" | \"truncated\"`. It may be omitted for regular behavior and is required to select password or truncated. The password variant omits `value`; the truncated variant uses internal expansion state. ";
|
|
76
|
+
ds:optional "true"
|
|
77
|
+
], [
|
|
78
|
+
a ds:Property;
|
|
79
|
+
ds:name "`InfoGrid.Item.large`";
|
|
80
|
+
ds:summary "Makes the item span two grid columns.";
|
|
81
|
+
ds:propertyType "boolean";
|
|
82
|
+
ds:defaultValue "—";
|
|
83
|
+
ds:constraints "In the two-column layout it occupies the full row; no one-column fallback exists. ";
|
|
84
|
+
ds:optional "true"
|
|
85
|
+
], [
|
|
86
|
+
a ds:Property;
|
|
87
|
+
ds:name "`InfoGrid.Item` other HTML attributes";
|
|
88
|
+
ds:summary "Props applied to the regular item's root `div`. ";
|
|
89
|
+
ds:propertyType "object";
|
|
90
|
+
ds:defaultValue "HTML defaults";
|
|
91
|
+
ds:constraints "TypeScript: `HTMLAttributes<HTMLDivElement>`. A caller `className` is spread after the generated `large` class and can replace it rather than merging. ";
|
|
92
|
+
ds:optional "true"
|
|
93
|
+
].
|
|
@@ -0,0 +1,29 @@
|
|
|
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_landscape.pattern.instance_association a ds:Pattern;
|
|
6
|
+
ds:name "Instance Association";
|
|
7
|
+
ds:summary "Instance Association is a Landscape profile-targeting pattern bound to Formik fields `all_computers` and `tags`. It always renders an “Associate to all instances” CheckboxInput; when that value is false, it fetches available tags through `useGetTags`, reveals a searchable MultiSelectField, maps selected options back to `string[]`, and renders every current Formik tag as a dismissible Chip.\n\nThe component owns data access and fixed Landscape terminology rather than exposing a generic composition API. Toggling all instances hides tag controls but does not clear the stored tag array.";
|
|
8
|
+
ds:anatomyDsl "node:\n uri: ds:apps_landscape.pattern.instance_association\n edges:\n - node:\n semantic: p\n role: section label\n content: Association\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.checkbox\n role: all instances control\n relation:\n cardinality: \"1\"\n - node:\n uri: ds:apps_landscape.component.multi_select_field\n role: tag selector\n relation:\n cardinality: \"0..1\"\n condition: all instances is false\n - node:\n role: selected tags container\n styles:\n layout.display: flex\n layout.wrap: wrap\n spacing.gap: $spv--x-small\n edges:\n - node:\n uri: global.component.chip\n role: selected tag\n relation:\n cardinality: \"0..*\"\n relation:\n cardinality: \"0..1\"\n condition: all instances is false";
|
|
9
|
+
ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-61&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 35\n\n";
|
|
10
|
+
ds:usage "### When to use\n\n**Profile targeting**\n\nUse when a profile can target every managed instance or instances matching selected tags.\n\n**Visible targeting state**\n\nUse when selected tags must remain reviewable and removable before submission.\n\n**Shared Landscape tag catalogue**\n\nUse when available choices should come from the feature-owned `useGetTags` query rather than a caller-supplied option list.\n\n### When not to use\n\n**Direct instance selection**\n\nSelecting individual instances instead of tag-based groups.\n\n**Incorrect pattern**: Using the MultiSelectField to allow users to pick individual `Instance` objects or instance IDs rather than selecting from predefined tags.\n\n**Remediation strategy**: Use a plain MultiSelectField with instance-level items if direct instance selection is required, not Instance Association.\n\n**Generic taxonomy editing**\n\nCreating or modifying tag definitions rather than selecting existing ones.\n\n**Incorrect pattern**: Rendering the tag selector as if users could add new tags or edit the tag catalogue within the profile form.\n\n**Remediation strategy**: Use a dedicated tag management feature; Instance Association only selects from a read-only tag list via `useGetTags()`.\n\n**Caller-supplied labels or options**\n\nCustomizing terminology, control labels, or dropdown options at the component level.\n\n**Incorrect pattern**: Passing custom label strings, field names, or placeholder text to the component expecting them to override the fixed English copy.\n\n**Remediation strategy**: The component intentionally fixes all visible strings (`Association`, `Associate to all instances`, etc.); only `titleClass` is configurable. If customization is required, build a separate custom component.\n\n**Group semantics supplied by the component**\n\nRelying on the visual “Association” paragraph to programmatically group controls for assistive technology.\n\n**Incorrect pattern**: Assuming the paragraph text acts as a semantic label for the checkbox and selector as a fieldset/legend group.\n\n**Remediation strategy**: Wrap Instance Association in an upstream `<fieldset>/<legend>` or use equivalent ARIA grouping (`role=\"group\"` + `aria-labelledby`); the component does not provide programmatic grouping.";
|
|
11
|
+
ds:guidelines "### Accessibility\n\n- Keep the Tags label available to assistive technology even when it is visually hidden.\n- Canonical Chip supplies the dismiss button behavior; current tests find it by the generic accessible name “Dismiss”. Verify upstream whether the chip value is included in its accessible name before claiming tag-specific announcement.\n- “Association” is a plain paragraph and does not label the checkbox/selector as one group. Use `fieldset`/`legend` or equivalent semantics in an upstream design.\n- Selector, chip, and checkbox keyboard/ARIA behavior is inherited from Canonical components and MultiSelectField; Association Block adds no custom focus management.\n\n### Content\n\n- Use the product terms instances and tags consistently with the surrounding workflow.\n- Explain elsewhere whether selecting all instances also includes instances added later.\n- The visible strings are hardcoded English and are not exposed as props.\n\n### Internationalization\n\n- An upstream API must externalize “Association”, “Associate to all instances”, “Tags”, and “Search and add tags”.\n- Tag values are displayed verbatim as both labels and chips; do not translate identifiers unless the backend’s tag model supports localized display names.\n- Allow chips and long translated selector text to wrap without obscuring controls.\n\n### Keyboard navigation\n\n- Users must be able to toggle all instances, operate the tag selector, and dismiss chips by keyboard.\n- Toggling all instances unmounts potentially focused tag controls. The source does not explicitly relocate or announce focus.\n\n### Device and layout\n\n- The chips container directly uses `display: flex`, `flex-wrap: wrap`, `$spv--x-small` gap, `$spv--x-large` bottom margin, and negative `$spv--small` top margin.\n- The component defines no other responsive styles; MultiSelectField and surrounding forms own selector width and dropdown behavior.";
|
|
12
|
+
ds:tier ds:apps_landscape;
|
|
13
|
+
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
|
+
ds:hasProperty [
|
|
15
|
+
a ds:Property;
|
|
16
|
+
ds:name "`InstanceAssociation.formik`";
|
|
17
|
+
ds:summary "Supplies field bindings, current values, and async-compatible `setFieldValue`. ";
|
|
18
|
+
ds:propertyType "object";
|
|
19
|
+
ds:defaultValue "—";
|
|
20
|
+
ds:constraints "TypeScript: `FormikContextType<T>` where `T extends AssociationBlockFormProps` and includes `all_computers: boolean` and `tags: string[]`. The component does not expose loading or error parameters for tag fetching. "
|
|
21
|
+
], [
|
|
22
|
+
a ds:Property;
|
|
23
|
+
ds:name "`InstanceAssociation.titleClass`";
|
|
24
|
+
ds:summary "Merged onto the \"Association\" paragraph with `u-no-margin--bottom`. ";
|
|
25
|
+
ds:propertyType "text";
|
|
26
|
+
ds:defaultValue "—";
|
|
27
|
+
ds:constraints "Does not affect a root wrapper because none exists.";
|
|
28
|
+
ds:optional "true"
|
|
29
|
+
].
|
|
@@ -0,0 +1,52 @@
|
|
|
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_landscape.pattern.process_flow a ds:Pattern;
|
|
6
|
+
ds:name "Process Flow";
|
|
7
|
+
ds:summary "Process Flow is a read-only explanatory pattern for a linear sequence. It always renders hardcoded Start and End markers, an initial vertical connector, and one Canonical Card plus trailing connector for each entry in the ordered `cards` array. Each card contains an icon, optional heading content, optional description content, and an optional child-content region.\n\nThe pattern communicates intended order, such as the operations that a confirmation will trigger. It does not model current, completed, failed, selectable, or branching steps and does not expose interaction callbacks.";
|
|
8
|
+
ds:anatomyDsl "node:\n uri: ds:apps_landscape.pattern.process_flow\n edges:\n - node:\n role: start boundary marker\n relation:\n cardinality: \"1\"\n - node:\n role: initial sequence connector\n relation:\n cardinality: \"1\"\n - node:\n role: process card group\n edges:\n - node:\n uri: global.component.card\n role: process step\n edges:\n - node:\n role: step header\n styles:\n layout.display: flex\n layout.align: center\n edges:\n - node:\n uri: global.component.icon\n role: step icon\n relation:\n cardinality: \"1\"\n - node:\n semantic: paragraph\n role: step heading\n relation:\n cardinality: \"1\"\n slotName: header\n relation:\n cardinality: \"1\"\n - node:\n role: step body\n edges:\n - node:\n semantic: paragraph\n role: step description\n relation:\n cardinality: \"1\"\n slotName: description\n - node:\n role: supporting step content\n relation:\n cardinality: \"0..1\"\n slotName: children\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: trailing sequence connector\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"0..*\"\n - node:\n role: end boundary marker\n relation:\n cardinality: \"1\"";
|
|
9
|
+
ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-80&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 43\n\n";
|
|
10
|
+
ds:usage "### When to use\n\n**Explain a fixed workflow**\n\nShow the ordered stages an operation will perform from start to end when those stages do not have live status.\n\n**Preview configured processing**\n\nSummarize a small set of configured steps and compact supporting values before confirmation or submission.\n\n### When not to use\n\n**Track live progress**\n\nA workflow where steps have current status, completion state, or failure information that must be displayed.\n\n**Incorrect pattern**: Using Process Flow to show the status of currently running operations or past events that succeeded, failed, or remain pending.\n\n**Remediation strategy**: Use a progress stepper component with step state, a timeline for historical events, or a status tracker that distinguishes completed, active, and failed steps.\n\n**Represent branching logic**\n\nA process that includes conditional paths, multiple possible routes, or decisions that branch the sequence.\n\n**Incorrect pattern**: Flattening a branching workflow into Process Flow’s linear card sequence to avoid building a diagram component.\n\n**Remediation strategy**: Use a process diagram or flowchart component designed for conditional branches. Process Flow supports only a single linear sequence.\n\n**Build a wizard or stepper**\n\nA multi-step form or navigation flow where users move between steps, make choices, or need to return to earlier stages.\n\n**Incorrect pattern**: Rendering Process Flow cards as if they were interactive steps and adding buttons or links to navigate between them.\n\n**Remediation strategy**: Use a form wizard or stepper component that provides active-step semantics, navigation callbacks, and state. Cards in Process Flow are not selectable.\n\n**Show an unbounded sequence**\n\nA workflow with an unknown, very long, or dynamically growing number of steps—such as operation logs or event streams.\n\n**Incorrect pattern**: Passing a large or indefinitely expanding `cards` array to Process Flow and expecting scrolling or virtualization.\n\n**Remediation strategy**: Use a scrollable list, data table, or activity log component designed for many items. Process Flow is sized for short, scannable explanations.";
|
|
11
|
+
ds:guidelines "### Accessibility\n\n- Repeat every icon’s meaning in the step heading or description. The source does not mark icons decorative or provide a separate accessible label.\n- Present cards in the same DOM order as the process sequence; array order is the only ordering contract.\n- The source uses visual `<div>` markers and Cards rather than an ordered list, and Start/End connectors have no semantic relationship. Do not assume assistive technology receives explicit sequence or step-count semantics.\n- Provide meaningful `header` content for every card even though the prop is optional; an icon-only step is not a sufficient accessible identity.\n- Connectors and bordered markers must not be the only way the prose communicates order.\n\n### Content\n\n- Begin step headings with consistent nouns or verbs.\n- Keep descriptions short enough to compare across the sequence.\n- Use child content for compact values that qualify the step, not for a second full section.\n- Do not state current status in a component that has no status model.\n- Start and End are fixed source strings; card copy should read naturally between those boundaries.\n\n### Responsive behavior\n\n- The source is always a single vertical flow and defines no media query or alternate wide-screen arrangement.\n- Card headers use a horizontal flex row with centered alignment; body content is indented by the source spacing setting. Long headings and child content must wrap within the containing Card.\n- The connector has fixed 1.5rem height; no density or compact mode is available.\n- Verify rich child content at narrow side-panel widths because Process Flow itself provides no overflow handling.\n\n### Keyboard\n\n- If child content is interactive, its focus order must follow the visual top-to-bottom sequence.\n- Start, End, connectors, icons, and Cards are not interactive and must not gain tab stops.\n- Prefer noninteractive child content. If controls are necessary, label them independently and do not imply that the whole card is actionable.\n\n### Internationalization\n\n- Externalize card headers, descriptions, and child content at the owning feature.\n- `Start` and `End` are hardcoded English and cannot be localized through the public API.\n- Allow translated headings and descriptions to wrap. Do not rely on equal card heights or English text length.";
|
|
12
|
+
ds:tier ds:apps_landscape;
|
|
13
|
+
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
|
+
ds:hasProperty [
|
|
15
|
+
a ds:Property;
|
|
16
|
+
ds:name "`cards`";
|
|
17
|
+
ds:summary "Supplies the ordered process entries rendered between Start and End. ";
|
|
18
|
+
ds:propertyType "list of objects";
|
|
19
|
+
ds:defaultValue "—";
|
|
20
|
+
ds:constraints "TypeScript: `FlowCardProps[]`. Array order defines DOM and visual order; an empty array renders Start, one connector, and End. "
|
|
21
|
+
], [
|
|
22
|
+
a ds:Property;
|
|
23
|
+
ds:name "`cards[].iconName`";
|
|
24
|
+
ds:summary "Supplies the name forwarded to Canonical `Icon`. ";
|
|
25
|
+
ds:propertyType "text";
|
|
26
|
+
ds:defaultValue "—";
|
|
27
|
+
ds:constraints "TypeScript: `string`. Use a valid installed icon name whose meaning is repeated in text. "
|
|
28
|
+
], [
|
|
29
|
+
a ds:Property;
|
|
30
|
+
ds:name "`cards[].description`";
|
|
31
|
+
ds:summary "Supplies muted description content inside an always-rendered paragraph. ";
|
|
32
|
+
ds:propertyType "node";
|
|
33
|
+
ds:defaultValue "—";
|
|
34
|
+
ds:constraints "TypeScript: `ReactNode`. Absent content leaves an empty paragraph structure. ";
|
|
35
|
+
ds:optional "true"
|
|
36
|
+
], [
|
|
37
|
+
a ds:Property;
|
|
38
|
+
ds:name "`cards[].header`";
|
|
39
|
+
ds:summary "Supplies strong heading content inside the header paragraph. ";
|
|
40
|
+
ds:propertyType "node";
|
|
41
|
+
ds:defaultValue "—";
|
|
42
|
+
ds:constraints "TypeScript: `ReactNode`. Absent content leaves the icon without a visible heading. ";
|
|
43
|
+
ds:optional "true"
|
|
44
|
+
], [
|
|
45
|
+
a ds:Property;
|
|
46
|
+
ds:name "`cards[].children`";
|
|
47
|
+
ds:summary "Supplies supporting content below the description.";
|
|
48
|
+
ds:propertyType "node";
|
|
49
|
+
ds:defaultValue "—";
|
|
50
|
+
ds:constraints "TypeScript: `ReactNode`. The region renders only for truthy content; keep it compact and avoid implying card selection. ";
|
|
51
|
+
ds:optional "true"
|
|
52
|
+
].
|
|
@@ -0,0 +1,158 @@
|
|
|
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_landscape.pattern.progressively_expandable_table a ds:Pattern;
|
|
6
|
+
ds:name "Progressively Expandable Table";
|
|
7
|
+
ds:summary "Progressively Expandable Table composes a Canonical `ModularTable` with an optional title and a footer that reports the loaded count. When the caller has loaded fewer rows than the effective total, the footer offers one action to load up to five more rows. The separately exported footer can instead label that action “View all” and can place a caller-supplied secondary action before the count.\n\nUse this pattern for a bounded preview where rows are appended in place or where a compact table links into a complete collection. The component does not fetch data, increase a limit, navigate, announce newly loaded rows, or provide loading and error states; the parent owns those behaviors through `onLimitChange` and updated props.";
|
|
8
|
+
ds:anatomyDsl "node:\n uri: ds:apps_landscape.pattern.expandable_table\n role: progressively expandable table\n description: Composes a loaded table subset with count and disclosure controls.\n edges:\n - node:\n role: table introduction\n name: Title\n description: Renders a string as a styled paragraph or renders a supplied React element unchanged.\n relation:\n cardinality: \"0..1\"\n slotName: title\n condition: Rendered when title is a string or a valid React element.\n - node:\n uri: global.component.modular-table\n role: tabular data region\n name: Modular Table\n description: Renders the supplied columns and currently loaded rows.\n relation:\n cardinality: \"1\"\n - node:\n role: count and disclosure assembly\n name: Expandable Table Footer\n description: Presents an optional secondary action, result count, and one disclosure action.\n edges:\n - node:\n role: secondary command\n name: Additional action\n description: Renders caller-supplied footer content before the count and disclosure group.\n relation:\n cardinality: \"0..1\"\n slotName: additionalCta\n condition: Rendered when additionalCta is provided.\n - node:\n role: static collection summary\n name: Result count\n description: Reports the displayed count against the effective total.\n relation:\n cardinality: \"0..1\"\n condition: Rendered when the effective total is greater than zero.\n - node:\n uri: global.component.button\n role: more-results command\n name: Disclosure action\n description: Requests more rows or a transition to all rows.\n relation:\n cardinality: \"0..1\"\n condition: Rendered when itemCount is less than the effective total.\n relation:\n cardinality: \"1\"";
|
|
9
|
+
ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=17-24&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 44\n\n";
|
|
10
|
+
ds:usage "### When to use\n\n**Incrementally reveal rows**\n\nShow an initial table subset and let users append a small batch in place. Keep the caller’s limit increment consistent with the label, which never promises more than five rows.\n\n**Offer a full-list transition**\n\nCompose `ExpandableTableFooter` directly with `viewAll` when a compact table or adjacent content transitions to the complete collection. `ExpandableTable` itself does not expose `viewAll`.\n\n### When not to use\n\n**Navigate stable pages**\n\nNumbered pages or prev/next navigation through a result set.\n\n**Incorrect pattern**: Using progressive expansion when users need traditional page navigation.\n\n**Remediation strategy**: Use Table Pagination instead for multi-page result sets.\n\n**Load an unbounded feed**\n\nAn unknown-length feed where repeated expansion is the primary browsing mode.\n\n**Incorrect pattern**: Using the footer to incrementally load an unknown total count.\n\n**Remediation strategy**: Use a purpose-built infinite scroll or virtual list component when totals are unknown.\n\n**Represent asynchronous state**\n\nLoading and error states that the component should display.\n\n**Incorrect pattern**: Relying on the footer to signal loading or error conditions.\n\n**Remediation strategy**: Pair the table with separate loading and error notifications, and prevent duplicate requests by managing pending state in the caller.";
|
|
11
|
+
ds:guidelines "### Accessibility\n\n- Use descriptive column headers and preserve table semantics.\n- Pass a heading element through `title` when the table needs to appear in the page outline. A string title is a styled `<p>`, not a semantic heading or table caption.\n- Treat the count as static text. It is not a live region, so announce appended results elsewhere when immediate assistive-technology feedback is required.\n- Give `additionalCta` an accessible name and avoid duplicating the disclosure action’s purpose.\n\n### Content\n\n- Use concrete singular and plural nouns so the count reads naturally.\n- Keep any additional CTA distinct from “Show N more” or “View all”.\n- Current visible templates are hard-coded English. Localize “Showing”, “of”, “Show N more”, and “View all” before using this implementation in a translated surface.\n\n### Internationalization / globalization\n\n- `itemNames` supports only one singular and one plural form and `pluralize(..., \"exact\")`; it is not a complete plural-rules API.\n- The component does not format numbers with `Intl.NumberFormat`. Format requirements and translated sentence order need an upstream API rather than preformatted numeric props.\n- Keep the maximum batch label of five synchronized with localized copy and actual caller behavior.\n\n### Device\n\n- Provide responsive cell content or a scroll treatment when columns cannot fit narrow screens.\n- The footer uses a flex row with the expansion block pushed to the end and no component-owned wrap rule. Verify long translations and `additionalCta` content at narrow widths.\n\n### Keyboard\n\n- Keep disclosure and additional actions as native controls in a predictable tab order.\n- After loading more, retain focus on the disclosure control unless navigation occurs.\n- Prevent repeated activation while a request is pending; the component has no loading or disabled prop of its own.\n- `onLimitChange` is called synchronously with no event or requested limit. The component does not catch callback errors or reconcile the label with the caller’s actual increment.";
|
|
12
|
+
ds:tier ds:apps_landscape;
|
|
13
|
+
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
|
+
ds:hasProperty [
|
|
15
|
+
a ds:Property;
|
|
16
|
+
ds:name "`ExpandableTable.columns`";
|
|
17
|
+
ds:summary "React Table column definitions passed to `ModularTable`. ";
|
|
18
|
+
ds:propertyType "list of objects";
|
|
19
|
+
ds:defaultValue "—";
|
|
20
|
+
ds:constraints "Exact type: `Column<T>[]`, where `T extends Record<string, unknown>`. Each column must define headers and cells that remain meaningful at the available width. "
|
|
21
|
+
], [
|
|
22
|
+
a ds:Property;
|
|
23
|
+
ds:name "ExpandableTable.data";
|
|
24
|
+
ds:summary "Currently loaded row records passed to `ModularTable`. ";
|
|
25
|
+
ds:propertyType "list of objects";
|
|
26
|
+
ds:defaultValue "—";
|
|
27
|
+
ds:constraints "Exact type: `T[]`, where `T extends Record<string, unknown>`. This is the rendered subset, not necessarily the complete result set. "
|
|
28
|
+
], [
|
|
29
|
+
a ds:Property;
|
|
30
|
+
ds:name "`ExpandableTable.itemNames`";
|
|
31
|
+
ds:summary "Nouns used by the footer's count text.";
|
|
32
|
+
ds:propertyType "object";
|
|
33
|
+
ds:defaultValue "—";
|
|
34
|
+
ds:constraints "Exact type: `{ plural: string; singular: string }`. Supply forms that read correctly after an exact number; no locale or grammar service is invoked. "
|
|
35
|
+
], [
|
|
36
|
+
a ds:Property;
|
|
37
|
+
ds:name "`ExpandableTable.onLimitChange`";
|
|
38
|
+
ds:summary "Handles activation of the disclosure button.";
|
|
39
|
+
ds:propertyType "callback";
|
|
40
|
+
ds:defaultValue "—";
|
|
41
|
+
ds:constraints "Exact type: `() => void`. The component does not pass the next limit, await a result, disable itself, or distinguish loading from navigation. "
|
|
42
|
+
], [
|
|
43
|
+
a ds:Property;
|
|
44
|
+
ds:name "`ExpandableTable.totalCount`";
|
|
45
|
+
ds:summary "Reported total before `hasNoMoreItems` adjustment. ";
|
|
46
|
+
ds:propertyType "number";
|
|
47
|
+
ds:defaultValue "—";
|
|
48
|
+
ds:constraints "Keep nonnegative and aligned with the same result scope as `data`. "
|
|
49
|
+
], [
|
|
50
|
+
a ds:Property;
|
|
51
|
+
ds:name "`ExpandableTable.additionalCta`";
|
|
52
|
+
ds:summary "Content composed at the start of the footer.";
|
|
53
|
+
ds:propertyType "node";
|
|
54
|
+
ds:defaultValue "—";
|
|
55
|
+
ds:constraints "Exact type: `ReactNode`. It is rendered without validation or decoration; supply an accessible control or noninteractive content appropriate to this position. ";
|
|
56
|
+
ds:optional "true"
|
|
57
|
+
], [
|
|
58
|
+
a ds:Property;
|
|
59
|
+
ds:name "`ExpandableTable.getCellProps`";
|
|
60
|
+
ds:summary "Adds props to each rendered table cell.";
|
|
61
|
+
ds:propertyType "callback";
|
|
62
|
+
ds:defaultValue "—";
|
|
63
|
+
ds:constraints "Exact type: `(cell: Cell<T>) => Partial<TableCellProps & HTMLProps<HTMLTableCellElement>>`. Preserve table semantics and header relationships. ";
|
|
64
|
+
ds:optional "true"
|
|
65
|
+
], [
|
|
66
|
+
a ds:Property;
|
|
67
|
+
ds:name "`ExpandableTable.getRowProps`";
|
|
68
|
+
ds:summary "Adds props to each rendered table row.";
|
|
69
|
+
ds:propertyType "callback";
|
|
70
|
+
ds:defaultValue "—";
|
|
71
|
+
ds:constraints "Exact type: `(row: Row<T>) => Partial<TableRowProps & HTMLProps<HTMLTableRowElement>>`. Adding row activation requires equivalent keyboard behavior and an accessible name. ";
|
|
72
|
+
ds:optional "true"
|
|
73
|
+
], [
|
|
74
|
+
a ds:Property;
|
|
75
|
+
ds:name "`ExpandableTable.hasNoMoreItems`";
|
|
76
|
+
ds:summary "Replaces the effective total with `itemCount`. ";
|
|
77
|
+
ds:propertyType "boolean";
|
|
78
|
+
ds:defaultValue "—";
|
|
79
|
+
ds:constraints "Omission is treated as false. Use only when the data source establishes that no further rows exist; this can override a larger stale `totalCount`. ";
|
|
80
|
+
ds:optional "true"
|
|
81
|
+
], [
|
|
82
|
+
a ds:Property;
|
|
83
|
+
ds:name "`ExpandableTable.itemCount`";
|
|
84
|
+
ds:summary "Count used by footer calculations when it differs from `data.length`. ";
|
|
85
|
+
ds:propertyType "number";
|
|
86
|
+
ds:defaultValue "`data.length`";
|
|
87
|
+
ds:constraints "Keep synchronized with the rows represented to users. Values above the effective total are clamped in count copy but suppress the disclosure action. ";
|
|
88
|
+
ds:optional "true"
|
|
89
|
+
], [
|
|
90
|
+
a ds:Property;
|
|
91
|
+
ds:name "`ExpandableTable.title`";
|
|
92
|
+
ds:summary "Optional table introduction.";
|
|
93
|
+
ds:propertyType "node";
|
|
94
|
+
ds:defaultValue "—";
|
|
95
|
+
ds:constraints "Exact type: `ReactNode`. Numbers and other non-element nodes accepted by the type are ignored; pass a semantic heading when needed. ";
|
|
96
|
+
ds:optional "true"
|
|
97
|
+
], [
|
|
98
|
+
a ds:Property;
|
|
99
|
+
ds:name "`ExpandableTableFooter.itemCount`";
|
|
100
|
+
ds:summary "Loaded or represented item count.";
|
|
101
|
+
ds:propertyType "number";
|
|
102
|
+
ds:defaultValue "—";
|
|
103
|
+
ds:constraints "Keep nonnegative and synchronized with visible content. "
|
|
104
|
+
], [
|
|
105
|
+
a ds:Property;
|
|
106
|
+
ds:name "`ExpandableTableFooter.itemNames`";
|
|
107
|
+
ds:summary "Nouns used in count copy.";
|
|
108
|
+
ds:propertyType "object";
|
|
109
|
+
ds:defaultValue "—";
|
|
110
|
+
ds:constraints "Exact type: `{ plural: string; singular: string }`. Supply grammatically correct exact-count forms. "
|
|
111
|
+
], [
|
|
112
|
+
a ds:Property;
|
|
113
|
+
ds:name "`ExpandableTableFooter.onLimitChange`";
|
|
114
|
+
ds:summary "Handles the disclosure action.";
|
|
115
|
+
ds:propertyType "callback";
|
|
116
|
+
ds:defaultValue "—";
|
|
117
|
+
ds:constraints "Exact type: `() => void`. Own loading prevention and state changes in the caller. ";
|
|
118
|
+
ds:optional "false"
|
|
119
|
+
], [
|
|
120
|
+
a ds:Property;
|
|
121
|
+
ds:name "`ExpandableTableFooter.totalCount`";
|
|
122
|
+
ds:summary "Reported complete count.";
|
|
123
|
+
ds:propertyType "number";
|
|
124
|
+
ds:defaultValue "—";
|
|
125
|
+
ds:constraints "Represents the same result scope as `itemCount`. "
|
|
126
|
+
], [
|
|
127
|
+
a ds:Property;
|
|
128
|
+
ds:name "`ExpandableTableFooter.additionalCta`";
|
|
129
|
+
ds:summary "Content before the footer's count group.";
|
|
130
|
+
ds:propertyType "node";
|
|
131
|
+
ds:defaultValue "—";
|
|
132
|
+
ds:constraints "Exact type: `ReactNode`. Keep subordinate to the disclosure action and provide its own semantics. ";
|
|
133
|
+
ds:optional "true"
|
|
134
|
+
], [
|
|
135
|
+
a ds:Property;
|
|
136
|
+
ds:name "`ExpandableTableFooter.className`";
|
|
137
|
+
ds:summary "Additional class on the footer root.";
|
|
138
|
+
ds:propertyType "text";
|
|
139
|
+
ds:defaultValue "—";
|
|
140
|
+
ds:constraints "Do not remove the flex relationship required by the count group. ";
|
|
141
|
+
ds:optional "true"
|
|
142
|
+
], [
|
|
143
|
+
a ds:Property;
|
|
144
|
+
ds:name "`ExpandableTableFooter.hasNoMoreItems`";
|
|
145
|
+
ds:summary "Uses `itemCount` as the effective total.";
|
|
146
|
+
ds:propertyType "boolean";
|
|
147
|
+
ds:defaultValue "—";
|
|
148
|
+
ds:constraints "Omission is treated as false. Set only after confirming the end of the result set. ";
|
|
149
|
+
ds:optional "true"
|
|
150
|
+
], [
|
|
151
|
+
a ds:Property;
|
|
152
|
+
ds:name "`ExpandableTableFooter.viewAll`";
|
|
153
|
+
ds:summary "Replaces “Show N more” with “View all”.";
|
|
154
|
+
ds:propertyType "boolean";
|
|
155
|
+
ds:defaultValue "—";
|
|
156
|
+
ds:constraints "Omission is treated as false. This changes copy only; the callback must perform the full-load or navigation behavior. ";
|
|
157
|
+
ds:optional "true"
|
|
158
|
+
].
|
|
@@ -0,0 +1,21 @@
|
|
|
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_landscape.pattern.recurring_schedule a ds:Pattern;
|
|
6
|
+
ds:name "Recurring Schedule";
|
|
7
|
+
ds:summary "Recurring Schedule documents the `ScheduleBlock` composition for scheduling tasks with daily, weekly, monthly, or yearly recurrence. It binds to a supplied Formik context and renders a mode select (one-time or recurring), then condition-dependent controls for start date, interval, \"on\" selector, and end behavior.\n\nMain use cases:\n\n- Guiding users through calendar-based recurrence choices with constrained controls instead of freeform cron or RRULE syntax. \n- Supporting daily, weekly, monthly, and yearly patterns with unit-specific selectors (weekday multi-select, date-derived monthly choice, month multi-select). \n- Displaying one-time scheduling with a single required date input. \n- Separating validation, timezone semantics, and RRULE serialization to the owning Formik consumer (not included in the component).";
|
|
8
|
+
ds:anatomyDsl "node:\n uri: ds:apps_landscape.pattern.recurring_schedule\n role: Formik-bound schedule controls\n edges:\n - node:\n uri: global.component.select\n role: schedule type\n options:\n - on a date\n - recurring\n attributes:\n required: true\n relation:\n cardinality: \"1\"\n - node:\n role: indented schedule branch\n styles:\n borderLeft: \"1px solid $colors--theme--border-default\"\n paddingLeft: \"$sph--large\"\n edges:\n - node:\n uri: global.component.input\n role: one-time date\n attributes:\n type: datetime-local\n min: current local date-time formatted for the input\n required: true\n relation:\n cardinality: \"0..1\"\n condition: start_type is on-a-date\n - node:\n role: recurring controls\n edges:\n - node:\n uri: global.component.input\n role: recurring start date\n attributes:\n type: datetime-local\n min: current local date-time formatted for the input\n required: true\n relation:\n cardinality: \"1\"\n - node:\n role: repeat interval row\n edges:\n - node:\n uri: global.component.input\n role: repeat count\n attributes:\n type: number\n min: 7 when unit_of_time is DAILY; otherwise 1\n required: true\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.select\n role: repeat unit\n attributes:\n required: true\n relation:\n cardinality: \"1\"\n relation:\n cardinality: \"1\"\n - node:\n role: daily recurrence branch\n attributes:\n onSelector: none\n relation:\n cardinality: \"0..1\"\n condition: unit_of_time is DAILY\n - node:\n uri: ds:apps_landscape.component.multi_select_field\n role: weekly weekday selector\n attributes:\n required: true\n relation:\n cardinality: \"0..1\"\n condition: unit_of_time is WEEKLY\n - node:\n uri: global.component.select\n role: monthly date-derived selector\n attributes:\n required: true\n relation:\n cardinality: \"0..1\"\n condition: unit_of_time is MONTHLY and start_date is truthy\n - node:\n uri: ds:apps_landscape.component.multi_select_field\n role: yearly month selector\n attributes:\n required: true\n relation:\n cardinality: \"0..1\"\n condition: unit_of_time is YEARLY\n - node:\n uri: global.component.select\n role: end type\n attributes:\n required: true\n relation:\n cardinality: \"1\"\n - node:\n uri: global.component.input\n role: end date\n attributes:\n type: datetime-local\n min: start_date\n required: true\n relation:\n cardinality: \"0..1\"\n condition: end_type is on-a-date\n relation:\n cardinality: \"0..1\"\n condition: start_type is recurring\n relation:\n cardinality: \"1\"";
|
|
9
|
+
ds:anatomyClassic "https://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-82&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 46\n\n";
|
|
10
|
+
ds:usage "### When to use\n\n**Calendar-based recurrence**\n\nUse when the owning Formik model already matches `ScheduleBlockFormProps` and the backend contract supports one-time execution or daily/weekly/monthly/yearly recurrence.\n\n**Guided schedule creation**\n\nUse when users benefit from constrained controls rather than authoring cron or RRULE syntax directly.\n\n### When not to use\n\n**Cron-level expressiveness**\n\nA backend API or user workflow that requires cron or RRULE syntax, allowing lists, ranges, or step values across multiple fields.\n\n**Incorrect pattern**: Trying to use Recurring Schedule to express “every 3rd weekday” or “the 1st and 15th of each month” when the component’s domain model is simpler.\n\n**Remediation strategy**: Use a dedicated cron or RRULE editor component. Cron Schedule or a raw syntax editor may be more appropriate. The shared component supports only simple daily/weekly/monthly/yearly cadences.\n\n**Simple preset cadence**\n\nA workflow where only two or three fixed choices—such as “Daily”, “Weekly”, or “Once”—satisfy user needs.\n\n**Incorrect pattern**: Rendering the full Recurring Schedule form when the real requirement is to choose from a small set of predefined frequencies.\n\n**Remediation strategy**: Use a simpler radio-button or preset-menu control that offers only the supported cadences. Avoid full-featured form complexity when the choice set is fixed and small.\n\n**Standalone date validation**\n\nA use case where the input validation and timezone semantics are critical but must come from a different system (e.g., the API layer).\n\n**Incorrect pattern**: Relying on the rendered `min` attributes and Formik error display as the complete validation story for date ordering and timezone conversion.\n\n**Remediation strategy**: Implement comprehensive validation in the owning Formik schema and on the server. The shared component displays errors but does not enforce complex backend semantics or timezone logic.\n\n**Timezone-explicit scheduling**\n\nA workflow where the timezone context—whether local, UTC, or explicitly selected—and daylight-saving behavior must be explicit and configurable.\n\n**Incorrect pattern**: Using Recurring Schedule without a clear product decision about timezone handling, then discovering at runtime that `datetime-local` does not capture or convert timezones.\n\n**Remediation strategy**: Document the timezone semantics in the owning workflow. Add an explicit timezone selector if needed. The shared component does not state or convert timezones; it uses browser-native `datetime-local` input only.";
|
|
11
|
+
ds:guidelines "### Accessibility\n\n- Source labels every rendered control, but both interval controls use the same visible text “Repeat every”; verify their accessible names are distinguishable in the target Canonical component version.\n- Conditional controls are inserted in DOM order without focus movement or announcements. Mode/unit changes leave focus on the triggering select.\n- Error association is delegated to Canonical `Input`, `MultiSelectField`, and `getFormikError`; local tests verify visible fields and updates, not computed ARIA relationships.\n- The hidden placeholder option is not a substitute for a validation error when `start_type` is empty at runtime.\n\n### Content and correctness\n\n- State the timezone and daylight-saving semantics in the owning workflow. `datetime-local` contains no timezone.\n- Unit copy uses a simple `every == 1` singular check; all other values receive plural labels. There is no cadence summary.\n- English weekday/month labels, ordinal suffixes, “First” through “Last”, and `en-US` weekday formatting are hardcoded with no localization props.\n- Validate required fields, positive/integer intervals, minimum daily interval, selections, date ordering, and backend recurrence semantics in the consumer and server.\n\n### State and async behavior\n\n- The component owns no React state, effects, query, mutation, loading state, submit handler, or reset behavior.\n- All values are controlled by the supplied Formik context. Hidden branch values remain in Formik unless the consumer clears them.\n- Weekly/yearly multi-select updates call `setFieldValue` from an async callback; errors from that promise are not handled locally.\n- `currentDate` is computed on each render, not advanced by a timer while the component remains idle.\n\n### Keyboard and device\n\n- Native Select/Input keyboard behavior and date entry are dependency/browser-owned. Weekly/yearly keyboard behavior is delegated to `MultiSelectField`.\n- Repeat controls always use a Canonical Row with two size-6 columns. There is no local breakpoint, stacking branch, or responsive style in this component.\n- The indented branch always retains its border and `$sph--large` left padding; verify available width in narrow side panels.\n- Local tests cover rendering and pointer-based multi-select updates, not keyboard traversal, focus retention, mobile date pickers, or small viewports.";
|
|
12
|
+
ds:tier ds:apps_landscape;
|
|
13
|
+
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
|
+
ds:hasProperty [
|
|
15
|
+
a ds:Property;
|
|
16
|
+
ds:name "`formik`";
|
|
17
|
+
ds:summary "Supplies values, field bindings, touched/errors state, and `setFieldValue`. ";
|
|
18
|
+
ds:propertyType "object";
|
|
19
|
+
ds:defaultValue "—";
|
|
20
|
+
ds:constraints "TypeScript: `FormikContextType<T>` where `T extends ScheduleBlockFormProps`. Multi-select updates call async `setFieldValue`; the component does not handle errors from that promise. "
|
|
21
|
+
].
|