@canonical/design-system 0.47.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/apps/component/file_tree.ttl +1 -2
- package/data/apps/component/inline_panel.ttl +2 -3
- package/data/apps/component/log.ttl +0 -1
- package/data/apps/component/navigation.ttl +0 -1
- package/data/apps/component/notification.ttl +0 -1
- package/data/apps/component/side_navigation.ttl +678 -5
- package/data/apps/component/skeleton_loading.ttl +0 -1
- package/data/apps/component/status_bar.ttl +0 -1
- package/data/apps/component/toolbar.ttl +0 -1
- package/data/apps/group/notifications.ttl +0 -1
- package/data/apps/layout/application_layout.ttl +1 -2
- package/data/apps/layout/content_layout.ttl +1 -2
- package/data/apps/layout/empty_layout.ttl +0 -1
- package/data/apps/layout/list_page_layout.ttl +0 -1
- package/data/apps/layout/login_layout.ttl +0 -1
- package/data/apps/layout/settings_page_layout.ttl +0 -1
- package/data/apps/layout/side_panel_form_layout.ttl +0 -1
- package/data/apps/layout/view_layout.ttl +0 -1
- package/data/apps/pattern/action_bar.ttl +0 -1
- package/data/apps/pattern/code_diff.ttl +2 -2
- package/data/apps/pattern/data_views.ttl +7 -7
- package/data/apps/pattern/datatable.ttl +7 -7
- package/data/apps/pattern/destructive_modal.ttl +0 -1
- package/data/apps/pattern/drawer.ttl +0 -1
- package/data/apps/pattern/keyboard_shortcuts.ttl +0 -1
- package/data/apps/pattern/notification_center.ttl +4 -5
- package/data/apps/pattern/page_header.ttl +17 -10
- package/data/apps/pattern/side_panel.ttl +221 -45
- package/data/apps/pattern/sidepanel_stacked.ttl +0 -1
- package/data/apps/subcomponent/data_table-action_bar.ttl +1 -1
- package/data/apps/subcomponent/data_table-body_cell.ttl +19 -19
- package/data/apps/subcomponent/data_table-group_header_row.ttl +1 -1
- package/data/apps/subcomponent/data_table-header_cell.ttl +11 -11
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +7 -7
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +2 -2
- package/data/apps/subcomponent/data_table-settings_menu.ttl +3 -3
- package/data/apps/subcomponent/data_views-filters.ttl +0 -1
- package/data/apps/subcomponent/data_views-saved_views.ttl +0 -1
- package/data/apps/subcomponent/data_views-sort_panel.ttl +0 -1
- package/data/apps/subcomponent/drawer-content.ttl +0 -1
- package/data/apps/subcomponent/drawer-footer.ttl +0 -1
- package/data/apps/subcomponent/drawer-header.ttl +0 -1
- package/data/apps/subcomponent/file_tree-node.ttl +0 -1
- package/data/apps/subcomponent/file_tree-search_box.ttl +13 -0
- package/data/apps/subcomponent/file_tree-tree_view.ttl +13 -0
- package/data/apps/subcomponent/git_diff_viewer-code_diff_viewer.ttl +13 -0
- package/data/apps/subcomponent/git_diff_viewer-file_header.ttl +13 -0
- package/data/apps/subcomponent/side_navigation-content.ttl +339 -3
- package/data/apps/subcomponent/side_navigation-context_switcher-field.ttl +18 -0
- package/data/apps/subcomponent/side_navigation-context_switcher-item_content.ttl +18 -0
- package/data/apps/subcomponent/side_navigation-context_switcher.ttl +172 -2
- package/data/apps/subcomponent/side_navigation-footer.ttl +270 -0
- package/data/apps/subcomponent/side_navigation-header.ttl +262 -0
- package/data/apps/subcomponent/side_navigation-item.ttl +115 -2
- package/data/apps/subcomponent/side_navigation-item_group.ttl +224 -2
- package/data/apps/subcomponent/side_panel-footer.ttl +39 -7
- package/data/apps/subcomponent/side_panel-header.ttl +86 -110
- package/data/apps_anbox/pattern/side_menu.ttl +5 -6
- package/data/apps_debcrafters/component/deb_package_card.ttl +0 -1
- package/data/apps_debcrafters/component/example.ttl +0 -1
- package/data/apps_debcrafters/component/my_fancy_component.ttl +0 -1
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +0 -1
- package/data/apps_landscape/component/checkbox_group.ttl +26 -26
- package/data/apps_landscape/component/code_editor.ttl +32 -32
- package/data/apps_landscape/component/cron_schedule.ttl +2 -2
- package/data/apps_landscape/component/expandable_radio_group.ttl +18 -18
- package/data/apps_landscape/component/expandable_truncation.ttl +11 -11
- package/data/apps_landscape/component/form_section.ttl +2 -2
- package/data/apps_landscape/component/gpg_key_field.ttl +21 -21
- package/data/apps_landscape/component/grouped_select.ttl +23 -23
- package/data/apps_landscape/component/loading_state.ttl +6 -6
- package/data/apps_landscape/component/managed_file_input.ttl +13 -13
- package/data/apps_landscape/component/multi_select_field.ttl +44 -44
- package/data/apps_landscape/component/password_constraints.ttl +2 -2
- package/data/apps_landscape/component/progress_bar.ttl +15 -15
- package/data/apps_landscape/component/read_only_field.ttl +10 -10
- package/data/apps_landscape/component/search_help_popup.ttl +10 -10
- package/data/apps_landscape/component/search_query_editor.ttl +29 -29
- package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
- package/data/apps_landscape/pattern/content_blocks.ttl +16 -16
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +26 -26
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +2 -2
- package/data/apps_landscape/pattern/form_field_help.ttl +12 -12
- package/data/apps_landscape/pattern/header_search_controls.ttl +26 -26
- package/data/apps_landscape/pattern/ignorable_notification.ttl +10 -10
- package/data/apps_landscape/pattern/information_grid.ttl +13 -13
- package/data/apps_landscape/pattern/instance_association.ttl +5 -5
- package/data/apps_landscape/pattern/process_flow.ttl +9 -9
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +29 -29
- package/data/apps_landscape/pattern/recurring_schedule.ttl +4 -4
- package/data/apps_landscape/pattern/responsive_action_group.ttl +11 -11
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +9 -9
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +30 -30
- package/data/apps_landscape/pattern/sortable_list.ttl +11 -11
- package/data/apps_landscape/pattern/table_filter.ttl +40 -40
- package/data/apps_landscape/pattern/table_filter_chips.ttl +44 -44
- package/data/apps_landscape/pattern/table_pagination.ttl +48 -48
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +18 -18
- package/data/apps_landscape/subcomponent/bold_substring.ttl +6 -6
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +7 -7
- package/data/apps_landscape/subcomponent/label_with_description.ttl +10 -10
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +9 -9
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +14 -14
- package/data/apps_launchpad/component/accordion.ttl +0 -1
- package/data/apps_launchpad/component/avatar.ttl +2 -2
- package/data/apps_launchpad/component/badge.ttl +2 -2
- package/data/apps_launchpad/component/button.ttl +2 -2
- package/data/apps_launchpad/component/combobox.ttl +2 -2
- package/data/apps_launchpad/component/description_list.ttl +1 -1
- package/data/apps_launchpad/component/drawer.ttl +0 -1
- package/data/apps_launchpad/component/link.ttl +0 -1
- package/data/apps_launchpad/component/markdown_editor.ttl +0 -1
- package/data/apps_launchpad/component/modal.ttl +6 -6
- package/data/apps_launchpad/component/pagination.ttl +0 -1
- package/data/apps_launchpad/component/popover.ttl +0 -1
- package/data/apps_launchpad/component/relative_timestamp.ttl +0 -1
- package/data/apps_launchpad/component/spinner.ttl +0 -1
- package/data/apps_launchpad/component/table.ttl +0 -1
- package/data/apps_launchpad/component/text_input.ttl +1 -1
- package/data/apps_launchpad/component/timestamp.ttl +0 -1
- package/data/apps_launchpad/component/tooltip.ttl +2 -2
- package/data/apps_launchpad/subcomponent/modal-content-body.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content-header.ttl +0 -1
- package/data/apps_launchpad/subcomponent/modal-content.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +0 -1
- package/data/apps_launchpad/subcomponent/side_panel-content.ttl +0 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/output_field.ttl +7 -7
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +1 -1
- package/data/apps_lxd/view/network_topology.ttl +6 -6
- package/data/apps_portal/component/badge.ttl +0 -1
- package/data/apps_portal/component/credit_card_input.ttl +0 -1
- package/data/apps_portal/component/key_value_pair.ttl +0 -1
- package/data/apps_portal/pattern/purchase_summary.ttl +0 -1
- package/data/apps_portal/subcomponent/read_only_modal.ttl +0 -1
- package/data/apps_support/component/data_spotlight.ttl +0 -1
- package/data/apps_support/subcomponent/ai_prompt_input.ttl +0 -1
- package/data/apps_workplace/component/complex_multi_select.ttl +0 -1
- package/data/apps_workplace/component/label-highlight.ttl +2 -2
- package/data/apps_workplace/component/org_chart.ttl +0 -1
- package/data/apps_workplace/component/rule.ttl +0 -1
- package/data/apps_workplace/component/skip_link.ttl +0 -1
- package/data/apps_workplace/component/theme_switcher.ttl +0 -1
- package/data/apps_workplace/pattern/callout_numbers_card.ttl +1 -1
- package/data/apps_workplace/pattern/confirmation_modal.ttl +0 -1
- package/data/apps_workplace/pattern/org_event_card.ttl +0 -1
- package/data/apps_workplace/subcomponent/multi_select_input.ttl +0 -1
- package/data/documentation/layout/content_page_layout.ttl +0 -1
- package/data/documentation/layout/documentation_layout.ttl +0 -1
- package/data/documentation/layout/library_layout.ttl +0 -1
- package/data/documentation/layout/search_page_layout.ttl +0 -1
- package/data/documentation/pattern/library_side_navigation.ttl +1 -1
- package/data/global/component/accordion.ttl +16 -16
- package/data/global/component/announcement.ttl +2 -2
- package/data/global/component/avatar.ttl +0 -1
- package/data/global/component/badge.ttl +11 -11
- package/data/global/component/breadcrumbs.ttl +9 -9
- package/data/global/component/button.ttl +11 -11
- package/data/global/component/button_link.ttl +0 -1
- package/data/global/component/card.ttl +2 -2
- package/data/global/component/checkbox_field.ttl +0 -1
- package/data/global/component/chip.ttl +15 -15
- package/data/global/component/choices_field.ttl +0 -1
- package/data/global/component/code_snippet-content.ttl +0 -1
- package/data/global/component/code_snippet-header.ttl +0 -1
- package/data/global/component/code_snippet.ttl +2 -2
- package/data/global/component/color_field.ttl +0 -1
- package/data/global/component/combobox_field.ttl +0 -1
- package/data/global/component/contextual_menu.ttl +10 -9
- package/data/global/component/{tooltip_data.ttl → data_tooltip.ttl} +41 -55
- package/data/global/component/date_field.ttl +0 -1
- package/data/global/component/date_time_field.ttl +0 -1
- package/data/global/component/drag_and_drop_list.ttl +0 -1
- package/data/global/component/dropdown_button.ttl +3 -3
- package/data/global/component/file_upload_field.ttl +2 -2
- package/data/global/component/heading.ttl +1 -1
- package/data/global/component/hidden_field.ttl +0 -1
- package/data/global/component/icon.ttl +3 -3
- package/data/global/component/icon_button.ttl +119 -6
- package/data/global/component/icon_in_container.ttl +2 -3
- package/data/global/component/key_value_pair.ttl +0 -1
- package/data/global/component/keyboard_key.ttl +0 -1
- package/data/global/component/link.ttl +0 -1
- package/data/global/component/links.ttl +0 -1
- package/data/global/component/markdown_editor_field.ttl +0 -1
- package/data/global/component/mode_switcher.ttl +0 -1
- package/data/global/component/month_field.ttl +0 -1
- package/data/global/component/notification_inline.ttl +0 -1
- package/data/global/component/notification_toast.ttl +0 -1
- package/data/global/component/number_field.ttl +0 -1
- package/data/global/component/pagination.ttl +0 -1
- package/data/global/component/password_field.ttl +0 -1
- package/data/global/component/phone_field.ttl +0 -1
- package/data/global/component/popover.ttl +0 -1
- package/data/global/component/rating_field.ttl +0 -1
- package/data/global/component/relative_timestamp.ttl +0 -1
- package/data/global/component/rich_choices_field.ttl +0 -1
- package/data/global/component/rich_text_editor.ttl +0 -1
- package/data/global/component/rich_text_field.ttl +0 -1
- package/data/global/component/search_field.ttl +0 -1
- package/data/global/component/segmented_control.ttl +0 -1
- package/data/global/component/segmented_control_field.ttl +0 -1
- package/data/global/component/select_field.ttl +0 -1
- package/data/global/component/switch_field.ttl +0 -1
- package/data/global/component/tag.ttl +2 -2
- package/data/global/component/text_field.ttl +0 -1
- package/data/global/component/textarea_field.ttl +0 -1
- package/data/global/component/tile.ttl +9 -9
- package/data/global/component/time_field.ttl +0 -1
- package/data/global/component/timestamp.ttl +0 -1
- package/data/global/component/tooltip.ttl +31 -123
- package/data/global/component/{tooltip_wrapper.ttl → wrapper_tooltip.ttl} +45 -53
- package/data/global/group/buttons.ttl +0 -1
- package/data/global/group/cards.ttl +0 -1
- package/data/global/group/code_snippets.ttl +0 -1
- package/data/global/group/key_value_pairs.ttl +0 -1
- package/data/global/group/keyboard_keys.ttl +0 -1
- package/data/global/group/tiles.ttl +0 -1
- package/data/global/layout/error_layout.ttl +0 -1
- package/data/global/layout/identity_page_form.ttl +0 -1
- package/data/global/modifier/achromat.ttl +8 -0
- package/data/global/modifier/dark.ttl +1 -1
- package/data/global/modifier/deprecated.ttl +8 -0
- package/data/global/modifier/deutan.ttl +8 -0
- package/data/global/modifier/elevated.ttl +1 -1
- package/data/global/modifier/end_of_life.ttl +8 -0
- package/data/global/modifier/less.ttl +8 -0
- package/data/global/modifier/light.ttl +1 -1
- package/data/global/modifier/lts.ttl +8 -0
- package/data/global/modifier/modal.ttl +1 -1
- package/data/global/modifier/more.ttl +8 -0
- package/data/global/modifier/protan.ttl +8 -0
- package/data/global/modifier/standard.ttl +8 -0
- package/data/global/modifier/tritan.ttl +8 -0
- package/data/global/modifier/typical.ttl +8 -0
- package/data/global/modifier_family/{mode.ttl → color.ttl} +2 -2
- package/data/global/modifier_family/color_vision.ttl +9 -0
- package/data/global/modifier_family/contrast.ttl +9 -0
- package/data/global/modifier_family/elevation.ttl +9 -0
- package/data/global/modifier_family/support.ttl +9 -0
- package/data/global/modifier_family/surface.ttl +1 -1
- package/data/global/pattern/description_list.ttl +0 -1
- package/data/global/pattern/field.ttl +0 -1
- package/data/global/pattern/filter.ttl +0 -1
- package/data/global/pattern/form_login.ttl +0 -1
- package/data/global/pattern/info_table.ttl +0 -1
- package/data/global/pattern/modal.ttl +197 -141
- package/data/global/pattern/stepper.ttl +0 -1
- package/data/global/pattern/table_of_contents.ttl +0 -1
- package/data/global/pattern/timeline.ttl +22 -22
- package/data/global/pattern/top_navigation.ttl +0 -1
- package/data/global/subcomponent/accordion-item.ttl +1 -2
- package/data/global/subcomponent/breadcrumbs-item.ttl +0 -1
- package/data/global/subcomponent/card-content.ttl +1 -2
- package/data/global/subcomponent/card-footer.ttl +0 -1
- package/data/global/subcomponent/card-header.ttl +1 -2
- package/data/global/subcomponent/card-image.ttl +1 -2
- package/data/global/subcomponent/card-thumbnail.ttl +0 -1
- package/data/global/subcomponent/chart_legend.ttl +1 -2
- package/data/global/subcomponent/chart_legend_item.ttl +1 -2
- package/data/global/subcomponent/checkbox_input.ttl +0 -1
- package/data/global/subcomponent/color_input.ttl +0 -1
- package/data/global/subcomponent/combobox_input.ttl +0 -1
- package/data/global/subcomponent/contextual_menu-item.ttl +13 -0
- package/data/global/subcomponent/contextual_menu-list.ttl +13 -0
- package/data/global/subcomponent/contextual_menu-submenu.ttl +13 -0
- package/data/global/subcomponent/data_tooltip-chart_legend.ttl +133 -0
- package/data/global/subcomponent/date_input.ttl +0 -1
- package/data/global/subcomponent/date_time_input.ttl +0 -1
- package/data/global/subcomponent/field-description.ttl +1 -2
- package/data/global/subcomponent/field-error.ttl +1 -2
- package/data/global/subcomponent/field-label.ttl +1 -2
- package/data/global/subcomponent/file_upload_input.ttl +3 -3
- package/data/global/subcomponent/hidden_input.ttl +0 -1
- package/data/global/subcomponent/kvp_container.ttl +1 -2
- package/data/global/subcomponent/kvpitem_base.ttl +1 -2
- package/data/global/subcomponent/markdown_editor_input.ttl +0 -1
- package/data/global/subcomponent/modal-content.ttl +4 -13
- package/data/global/subcomponent/modal-footer.ttl +21 -29
- package/data/global/subcomponent/modal-header.ttl +53 -141
- package/data/global/subcomponent/month_input.ttl +0 -1
- package/data/global/subcomponent/number_input.ttl +0 -1
- package/data/global/subcomponent/password_input.ttl +0 -1
- package/data/global/subcomponent/phone_input.ttl +0 -1
- package/data/global/subcomponent/radio_input.ttl +0 -1
- package/data/global/subcomponent/range_input.ttl +0 -1
- package/data/global/subcomponent/rating_input.ttl +0 -1
- package/data/global/subcomponent/rich_text_input.ttl +0 -1
- package/data/global/subcomponent/search_input.ttl +8 -8
- package/data/global/subcomponent/segmented_control_input.ttl +0 -1
- package/data/global/subcomponent/select_input.ttl +0 -1
- package/data/global/subcomponent/spin_button.ttl +0 -1
- package/data/global/subcomponent/spinner.ttl +0 -1
- package/data/global/subcomponent/switch_input.ttl +0 -1
- package/data/global/subcomponent/table-cell.ttl +0 -1
- package/data/global/subcomponent/table-row.ttl +0 -1
- package/data/global/subcomponent/text_editor_input.ttl +0 -1
- package/data/global/subcomponent/text_input.ttl +0 -1
- package/data/global/subcomponent/textarea_input.ttl +1 -2
- package/data/global/subcomponent/tile-content.ttl +0 -1
- package/data/global/subcomponent/tile-header.ttl +5 -6
- package/data/global/subcomponent/time_input.ttl +0 -1
- package/data/global/subcomponent/timeline-content.ttl +1 -2
- package/data/global/subcomponent/timeline-event.ttl +1 -1
- package/data/global/variant/tooltip_dense.ttl +28 -3
- package/data/global/view/settings_view.ttl +0 -1
- package/data/global_dataviews/component/filter_button.ttl +3 -4
- package/data/global_dataviews/component/query_bar.ttl +1 -2
- package/data/global_dataviews/component/query_chip.ttl +1 -1
- package/data/global_dataviews/group/query_chips.ttl +1 -2
- package/data/global_dataviews/subcomponent/query_chip-entry.ttl +1 -2
- package/data/global_dataviews/subcomponent/query_chip-segment.ttl +1 -2
- package/data/global_dataviews/subcomponent/query_input.ttl +1 -2
- package/data/sites/component/quote.ttl +0 -1
- package/data/sites/component/rule.ttl +0 -1
- package/data/sites/component/section.ttl +0 -1
- package/data/sites/component/store_card.ttl +7 -7
- package/data/sites/group/blog_cards.ttl +0 -1
- package/data/sites/group/xblog_elements.ttl +0 -1
- package/data/sites/layout/blog_page_layout.ttl +0 -1
- package/data/sites/layout/case_study_layout.ttl +0 -1
- package/data/sites/layout/site_layout.ttl +0 -1
- package/data/sites/pattern/hero-github.ttl +0 -1
- package/data/sites/pattern/hero.ttl +1 -2
- package/data/sites/pattern/info_table.ttl +0 -1
- package/data/sites/pattern/pricing_section.ttl +0 -1
- package/data/sites/pattern/pricing_table.ttl +0 -1
- package/data/sites/pattern/read_more_section.ttl +0 -1
- package/data/sites/pattern/skip_link.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/list.ttl +0 -1
- package/data/sites_webcomponentsprototype/component/tabs.ttl +0 -1
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +0 -1
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +0 -1
- package/package.json +6 -6
- package/data/apps/subcomponent/side_panel-content.ttl +0 -14
- package/skills/map-journeys/SKILL.md +0 -395
- package/skills/map-journeys/journey-graph.example.html +0 -298
- package/skills/model-domains/SKILL.md +0 -502
|
@@ -10,125 +10,125 @@ ds:apps_landscape.component.code_editor a ds:Component;
|
|
|
10
10
|
ds:usage "### When to use\n\n**Structured code entry**\n\nUse when users edit scripts, autoinstall configuration, search expressions, or other structured text that benefits from Monaco’s code-editing behavior.\n\n**Language-aware workflows**\n\nUse when the workflow needs a Monaco language identifier, consumer options, language registration before mount, or access to the mounted editor.\n\n**Form validation**\n\nUse when code entry belongs to a larger form and needs a required marker, negative or caution styling, and group-level blur notification.\n\n### When not to use\n\n**Short plain text**\n\nThe user is entering a simple one-line value or unstructured short note.\n\n**Incorrect pattern**: Loading Monaco and its infrastructure for a single-line input that requires no syntax awareness or language features.\n\n**Remediation strategy**: Use `Input` for short values or `textarea` for short multiline notes. Reserve Code Editor for structured code, configuration, or language-aware workflows.\n\n**Rendered preview**\n\nThe content must be displayed formatted but not edited.\n\n**Incorrect pattern**: Using Code Editor as a read-only, syntax-highlighted code display component.\n\n**Remediation strategy**: Use a code block component with copy support and configurable language highlighting, without the editor’s editing surface and keyboard complexity.\n\n**Touch-primary editing**\n\nThe primary input method is touch (mobile, tablet) and keyboard shortcuts are unavailable or unfamiliar to users.\n\n**Incorrect pattern**: Defaulting to Code Editor on touch devices when a simple textarea meets the functional requirement and provides better touch ergonomics.\n\n**Remediation strategy**: Use `textarea` for touch-primary workflows; Monaco’s keyboard-centric shortcuts and focus behavior are better suited to desktop editing.";
|
|
11
11
|
ds:guidelines "### Accessibility\n\n- Treat the current fixed label target (`code`) and fixed feedback ids (`code-error-message`, `code-warning-message`) as implementation limitations. The source does not assign a matching unique id or `aria-describedby` to Monaco; consumers must not assume those relationships are complete.\n- Preserve Monaco’s accessible editing mode and built-in keyboard support. Do not intercept editor shortcuts without an equivalent path.\n- Ensure dynamic validation feedback is announced by the form integration; the current paragraphs have no live-region semantics.\n- Do not use syntax color as the only way to communicate errors or warnings.\n- Keep a visible label. `labelClassName` must not remove the only accessible naming cue.\n\n### Content\n\n- Name the expected language or format and provide examples outside the editor when syntax is unfamiliar.\n- Keep error and warning messages specific to a line, token, or corrective action where possible.\n- Do not include the `Error:` or `Warning:` prefix in prop content; the component supplies it.\n- Keep header content secondary to the editing task. It is suitable for concise actions or status, not long instructions.\n\n### Keyboard\n\n- Users must be able to tab into the Monaco surface and continue to the next form control. Document any application shortcut that conflicts with Monaco.\n- `onBlur` represents leaving the editor control group, not every Monaco blur. Focus moving to a control in `headerContent` counts as leaving that group.\n- Do not add tab stops to decorative header content or loading indicators.\n\n### Responsive behavior\n\n- The source sets a 16rem minimum editor height and a flex-column container but defines no breakpoint-specific behavior. Consumers must provide enough width and prevent the editor from causing page-level horizontal overflow.\n- The header is a non-wrapping horizontal flex row in the current SCSS. Keep `headerContent` compact and verify long translated labels at narrow widths.\n- Use a simpler textarea when the available viewport or input method cannot support practical code editing.\n\n### Content and internationalization\n\n- Externalize labels and validation messages. The component adds English `Error:` and `Warning:` prefixes in source, so full localization requires changing that implementation rather than passing translated message bodies alone.\n- Monaco language identifiers are implementation values and must not be presented as localized language names without a separate display label.\n- Expect translated labels and feedback to wrap; do not encode meaning through line position or syntax color.";
|
|
12
12
|
ds:tier ds:apps_landscape;
|
|
13
|
-
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "label";
|
|
17
16
|
ds:summary "Visible text rendered in the label element.";
|
|
18
17
|
ds:propertyType "text";
|
|
19
18
|
ds:optional "false";
|
|
20
|
-
ds:
|
|
21
|
-
ds:
|
|
19
|
+
ds:defaultValue "None";
|
|
20
|
+
ds:constraints "The current label uses the fixed `htmlFor=\"code\"`; repeated instances do not receive unique associations from this API."
|
|
22
21
|
], [
|
|
23
22
|
a ds:Property;
|
|
24
23
|
ds:name "valule";
|
|
25
24
|
ds:summary "Controlled Monaco value.";
|
|
26
25
|
ds:propertyType "text | undefined";
|
|
27
26
|
ds:optional "false";
|
|
28
|
-
ds:
|
|
29
|
-
ds:
|
|
27
|
+
ds:defaultValue "None";
|
|
28
|
+
ds:constraints "Pass changes back through onChange; avoid switching ownership modes during one mount."
|
|
30
29
|
], [
|
|
31
30
|
a ds:Property;
|
|
32
31
|
ds:name "className";
|
|
33
32
|
ds:summary "Additional class on the Monaco editor wrapper.";
|
|
34
33
|
ds:propertyType "text";
|
|
35
34
|
ds:optional "true";
|
|
36
|
-
ds:
|
|
37
|
-
ds:
|
|
35
|
+
ds:defaultValue "undefined";
|
|
36
|
+
ds:constraints "Does not apply to the outer form group."
|
|
38
37
|
], [
|
|
39
38
|
a ds:Property;
|
|
40
39
|
ds:name "error";
|
|
41
40
|
ds:summary "Adds error styling and an Error: message.";
|
|
42
41
|
ds:propertyType "text | undefined";
|
|
43
42
|
ds:optional "true";
|
|
44
|
-
ds:
|
|
45
|
-
ds:
|
|
43
|
+
ds:defaultValue "undefined";
|
|
44
|
+
ds:constraints "An empty string or undefined renders no error. Error and warning can both render."
|
|
46
45
|
], [
|
|
47
46
|
a ds:Property;
|
|
48
47
|
ds:name "warning";
|
|
49
48
|
ds:summary "Adds caution styling and a Warning: message.";
|
|
50
49
|
ds:propertyType "text | undefined";
|
|
51
50
|
ds:optional "true";
|
|
52
|
-
ds:
|
|
53
|
-
ds:
|
|
51
|
+
ds:defaultValue "undefined";
|
|
52
|
+
ds:constraints "An empty string or undefined renders no warning. When both states are truthy, both form classes and messages are emitted; avoid ambiguous simultaneous feedback."
|
|
54
53
|
], [
|
|
55
54
|
a ds:Property;
|
|
56
55
|
ds:name "labelClassName";
|
|
57
56
|
ds:summary "Additional class on the visible label.";
|
|
58
57
|
ds:propertyType "text";
|
|
59
58
|
ds:optional "true";
|
|
60
|
-
ds:
|
|
61
|
-
ds:
|
|
59
|
+
ds:defaultValue "undefined";
|
|
60
|
+
ds:constraints "Use for established label presentation only; do not hide the sole visible label."
|
|
62
61
|
], [
|
|
63
62
|
a ds:Property;
|
|
64
63
|
ds:name "onChange";
|
|
65
64
|
ds:summary "Receives Monaco value changes.";
|
|
66
65
|
ds:propertyType "function";
|
|
67
66
|
ds:optional "true";
|
|
68
|
-
ds:
|
|
69
|
-
ds:
|
|
67
|
+
ds:defaultValue "undefined";
|
|
68
|
+
ds:constraints "Monaco can report undefined; consumers must handle it."
|
|
70
69
|
], [
|
|
71
70
|
a ds:Property;
|
|
72
71
|
ds:name "onBlur";
|
|
73
72
|
ds:summary "Runs when focus leaves the editor control group.";
|
|
74
73
|
ds:propertyType "function";
|
|
75
74
|
ds:optional "true";
|
|
76
|
-
ds:
|
|
77
|
-
ds:
|
|
75
|
+
ds:defaultValue "undefined";
|
|
76
|
+
ds:constraints "Moving focus within the control group does not call it. Moving to `headerContent` does, because the header is outside that group."
|
|
78
77
|
], [
|
|
79
78
|
a ds:Property;
|
|
80
79
|
ds:name "required";
|
|
81
80
|
ds:summary "Applies the Vanilla required-label class.";
|
|
82
81
|
ds:propertyType "boolean";
|
|
83
82
|
ds:optional "true";
|
|
84
|
-
ds:
|
|
85
|
-
ds:
|
|
83
|
+
ds:defaultValue "false";
|
|
84
|
+
ds:constraints "This is a visual label treatment; validation remains consumer-owned."
|
|
86
85
|
], [
|
|
87
86
|
a ds:Property;
|
|
88
87
|
ds:name "language";
|
|
89
88
|
ds:summary "Monaco language identifier.";
|
|
90
89
|
ds:propertyType "text";
|
|
91
90
|
ds:optional "true";
|
|
92
|
-
ds:
|
|
93
|
-
ds:
|
|
91
|
+
ds:defaultValue "“shell”";
|
|
92
|
+
ds:constraints "Register custom languages through the shared Monaco setup or `monacoBeforeMount`."
|
|
94
93
|
], [
|
|
95
94
|
a ds:Property;
|
|
96
95
|
ds:name "defaultValue";
|
|
97
96
|
ds:summary "Initial value forwarded to Monaco.";
|
|
98
97
|
ds:propertyType "text";
|
|
99
98
|
ds:optional "true";
|
|
100
|
-
ds:
|
|
101
|
-
ds:
|
|
99
|
+
ds:defaultValue "undefined";
|
|
100
|
+
ds:constraints "Intended for Monaco's initial/uncontrolled value contract; do not use it as a second source of truth beside a changing `value`."
|
|
102
101
|
], [
|
|
103
102
|
a ds:Property;
|
|
104
103
|
ds:name "headerContent";
|
|
105
104
|
ds:summary "Supporting content rendered opposite the label.";
|
|
106
105
|
ds:propertyType "ReactNode";
|
|
107
106
|
ds:optional "true";
|
|
108
|
-
ds:
|
|
109
|
-
ds:
|
|
107
|
+
ds:defaultValue "undefined";
|
|
108
|
+
ds:constraints "Keep controls compact, labelled, and in a logical focus order."
|
|
110
109
|
], [
|
|
111
110
|
a ds:Property;
|
|
112
111
|
ds:name "options";
|
|
113
112
|
ds:summary "Monaco editor options merged over Landscape defaults.";
|
|
114
113
|
ds:propertyType "object";
|
|
115
114
|
ds:optional "true";
|
|
116
|
-
ds:
|
|
117
|
-
ds:
|
|
115
|
+
ds:defaultValue "Landscape Monaco defaults";
|
|
116
|
+
ds:constraints "Consumer values override the default disabled minimap, hidden line highlight, and 8px top/bottom editor padding. For Monaco options type, see Monaco Editor documentation."
|
|
118
117
|
], [
|
|
119
118
|
a ds:Property;
|
|
120
119
|
ds:name "monacoBeforeMount";
|
|
121
120
|
ds:summary "Runs before Monaco mounts.";
|
|
122
121
|
ds:propertyType "function";
|
|
123
122
|
ds:optional "true";
|
|
124
|
-
ds:
|
|
125
|
-
ds:
|
|
123
|
+
ds:defaultValue "undefined";
|
|
124
|
+
ds:constraints "Use for language or editor registration that must exist before rendering. Monaco parameter is the Monaco Editor API instance."
|
|
126
125
|
], [
|
|
127
126
|
a ds:Property;
|
|
128
127
|
ds:name "onMount";
|
|
129
128
|
ds:summary "Receives the mounted editor and Monaco instance.";
|
|
130
129
|
ds:propertyType "function";
|
|
131
130
|
ds:optional "true";
|
|
132
|
-
ds:
|
|
133
|
-
ds:
|
|
134
|
-
]
|
|
131
|
+
ds:defaultValue "undefined";
|
|
132
|
+
ds:constraints "Consumers own any setup and cleanup introduced through the callback. Parameters are the mounted Editor instance and Monaco API."
|
|
133
|
+
];
|
|
134
|
+
ds:documentationStage ds:tag.specialadoption-docs.
|
|
@@ -10,7 +10,6 @@ ds:apps_landscape.component.cron_schedule a ds:Component;
|
|
|
10
10
|
ds:usage "### When to use\n\n**Five-field cron authoring**\n\nUse when a workflow stores the same minute, hour, day-of-month, month, and day-of-week grammar represented by the helper and reference modal.\n\n**Teach-while-typing** \nUse the computed phrase as immediate interpretation of a syntactically accepted value. Do not treat it as proof that the execution engine will run with identical semantics.\n\n**In-context reference** \nUse the built-in help trigger when you cannot rely on users leaving the app to read crontab documentation.\n\n### When not to use\n\n**Constrained schedules**\n\nThe product supports only a fixed set of named schedule presets like “Hourly”, “Daily”, or “Weekly”.\n\n**Incorrect pattern**: Exposing full five-field cron syntax when the business logic allows only a few predefined options.\n\n**Remediation strategy**: Use radio buttons or a select dropdown with preset labels; map the selected preset to a cron value at the API boundary if needed, but do not expose raw cron to users.\n\n**Non-cron schedulers**\n\nThe backend uses calendar RRule, systemd OnCalendar grammar, business-hours pickers, or another scheduling format.\n\n**Incorrect pattern**: Using Cron Schedule for calendar RFC RRule fields or minute-less UIs when the backend does not execute cron semantics.\n\n**Remediation strategy**: Use or build a scheduler component tailored to the target format; do not translate between formats at the UI level unless the API explicitly requires it.\n\n**Execution validation**\n\nThe `toCronPhrase` output must be treated as validation that the job will execute as expected.\n\n**Incorrect pattern**: Relying solely on `toCronPhrase` returning a phrase as proof that the cron interval is correct and will run on the target system.\n\n**Remediation strategy**: Validate on the server side; use `toCronPhrase` only as UX interpretation. Additional fields are ignored, non-positive steps are not rejected, and execution engine behavior remains the server’s responsibility.\n\n**Locale-critical legal or compliance copy**\n\nSchedule prose must be provided in the user’s language and cannot be hardcoded in English.\n\n**Incorrect pattern**: Using `toCronPhrase` as-is in a compliance-sensitive workflow that requires translated schedule prose.\n\n**Remediation strategy**: Either extend the component to support i18n translations of month/day names, ordinals, and connectors, or use a different scheduler component until localization is implemented.";
|
|
11
11
|
ds:guidelines "### Accessibility\n\n- The help trigger has an explicit accessible name and `type=\"button\"`; the icon has no local `aria-hidden` prop, so its final accessibility behavior depends on Canonical `Icon`.\n- Dialog semantics, focus trap, Escape behavior, and focus restoration are delegated to Canonical `Modal` and are not asserted by local tests.\n- Error/help association is delegated to Canonical `Input`; local tests verify visible text, not computed ARIA relationships or announcements.\n- Example parts in the modal are visual teaching aids; the prose sentence under the example must carry the meaning, not the large numbers alone.\n\n### Content\n\n- Help phrase should read like a confirmation sentence, not a debug dump.\n- Error messages are short and actionable (“Enter a complete interval.”, “Value out of range.”, “Invalid character.”).\n- Modal copy should stay reference-like: operators table + accepted ranges + one worked example.\n\n### Internationalization / globalization\n\n- Default label, modal title, section headings, table content, example prose, and trigger accessible name are hardcoded English with no props for replacement.\n- `toCronPhrase` hardcodes English month/day names, ordinals, and connectors such as “at”, “past”, “on”, “and on”, “in”, and “every”.\n- Ordinal suffixes (`st`, `nd`, `rd`, `th`) are English-specific.\n\n### Animation\n\n- Source adds no local animation. Any modal animation belongs to Canonical `Modal`.\n- Parsing occurs synchronously on every render. Valid help and touched errors replace one another immediately.\n\n### Keyboard navigation\n\n- Field: standard text input tab stop and editing.\n- The native button should activate with Enter/Space. Local tests cover pointer clicks only.\n- Modal keyboard behavior is dependency-owned and is not proven by this dossier’s tests.\n\n### Device / layout\n\n- Cron Help sets the example row to `display: flex` with a `2rem` gap and no wrapping rule.\n- Both tables have a fixed `38rem` width. There is no component breakpoint, max-width, horizontal-scroll wrapper, or narrow-screen adaptation in local styles.\n- The input’s responsive behavior comes from Canonical `Input` and its containing layout.\n\n### Security / correctness\n\n- Treat phrase generation as UX interpretation, not a substitute for server-side and execution-engine validation.\n- The helper joins non-wildcard day-of-month and day-of-week phrases with “and on”; it does not establish whether a target cron engine executes those fields with AND or OR semantics.\n- A non-`Error` thrown during parsing causes `CronSchedule` to return `undefined` and render nothing. Helper code currently throws `Error`, but the fallback is not tested.";
|
|
12
12
|
ds:tier ds:apps_landscape;
|
|
13
|
-
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "**CronSchedule**";
|
|
@@ -37,4 +36,5 @@ ds:apps_landscape.component.cron_schedule a ds:Component;
|
|
|
37
36
|
ds:propertyType "object";
|
|
38
37
|
ds:constraints "`label` and `type` override local defaults because they are spread later. `help`, `value`, and `error` are then overwritten by computed props. This is Canonical Input's `ComponentProps<typeof Input>`.";
|
|
39
38
|
ds:defaultValue "Canonical Input defaults, except local label/type defaults"
|
|
40
|
-
]
|
|
39
|
+
];
|
|
40
|
+
ds:documentationStage ds:tag.specialadoption-docs.
|
|
@@ -10,97 +10,97 @@ ds:apps_landscape.component.expandable_radio_group a ds:Component;
|
|
|
10
10
|
ds:usage "### When to use\n\n**Mutually exclusive modes**\n\nUse when exactly one choice applies and some choices require additional configuration.\n\n**Choice-specific explanation**\n\nUse when options need short help text or an asynchronous side effect after selection.\n\n**Choice-specific controls**\n\nUse when a selected mode reveals a small amount of subordinate content that belongs directly beneath that option.\n\n### When not to use\n\n**Independent selections**\n\nMultiple options that may be selected simultaneously.\n\n**Incorrect pattern**: Using this component when users need to select checkboxes or multiple independent items.\n\n**Remediation strategy**: Use a checkbox group instead for independent multi-select scenarios.\n\n**Large option set**\n\nMany choices or complex nested forms that require navigation or filtering.\n\n**Incorrect pattern**: Rendering dozens of radio options vertically or attempting complex nested form structures.\n\n**Remediation strategy**: Use a select dropdown or separate workflow/modal for extensive option lists.\n\n**Accessible group semantics without a wrapper**\n\nA radio set that needs a programmatic group label but cannot be wrapped.\n\n**Incorrect pattern**: Rendering the radio group bare without providing proper fieldset, legend, or ARIA group semantics.\n\n**Remediation strategy**: Either wrap the component with proper ARIA grouping, or choose a different abstraction that includes complete group semantics.\n\n**Independent or unbound state**\n\nChoices that are not owned by a Formik context or that need independent state management.\n\n**Incorrect pattern**: Using this component for non-Formik state or for checkbox-like independent selections.\n\n**Remediation strategy**: Either integrate with a Formik form context, or use a simpler controlled component pattern for independent state.";
|
|
11
11
|
ds:guidelines "### Accessibility\n\n- The current source lacks a native fieldset/legend and an ARIA radiogroup/name. The styled paragraph is not a programmatic group label; upstream work should correct this rather than documenting it as complete.\n- Option help is visually indented but is not associated with its radio through `aria-describedby`.\n- Revealed content follows its option in DOM order, but indentation alone must not be the only ownership cue.\n- Do not use indentation alone to communicate which option owns conditional content.\n\n### Content\n\n- Write parallel option labels and use help text for consequences rather than repeating the label.\n- Keep expansions narrowly scoped to information required by their selected mode.\n- The component supplies no default user-facing strings. Localize `label`, each inherited RadioInput label, help, and expansion content at the call site.\n\n### Internationalization\n\n- Allow group and option copy to wrap. The local styles set spacing and muted colour but no truncation.\n- Keep typed option values stable and locale-independent.\n\n### Keyboard navigation\n\n- The wrapper defines no keyboard handlers. Radio keyboard behavior comes from Canonical RadioInput/native inputs.\n- The selected expansion follows the option in Tab order. Selection does not move focus into it, and rejected `setFieldValue`/`onSelect` promises have no local recovery behavior.\n\n### Device and layout\n\n- Options and expansions use block DOM order. Help receives a fixed `$sp-x-large` left margin, and expansion indentation comes from the separate Indent component.\n- The source has no component-specific media/container query. Check fixed indentation with long translations and narrow side panels.";
|
|
12
12
|
ds:tier ds:apps_landscape;
|
|
13
|
-
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "field";
|
|
17
16
|
ds:summary "Formik field name read and updated by every option.";
|
|
18
17
|
ds:propertyType "text";
|
|
19
|
-
ds:
|
|
20
|
-
ds:
|
|
18
|
+
ds:defaultValue "—";
|
|
19
|
+
ds:constraints "Must be a valid key in the Formik context's values object."
|
|
21
20
|
], [
|
|
22
21
|
a ds:Property;
|
|
23
22
|
ds:name "formik";
|
|
24
23
|
ds:summary "Supplies current values, getFieldProps, and setFieldValue.";
|
|
25
24
|
ds:propertyType "object";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
25
|
+
ds:defaultValue "—";
|
|
26
|
+
ds:constraints "Exact TypeScript type: FormikContextType<TFormik>, where TFormik extends Record<TField, TValue> and contains the named field with compatible values."
|
|
28
27
|
], [
|
|
29
28
|
a ds:Property;
|
|
30
29
|
ds:name "inputs";
|
|
31
30
|
ds:summary "Ordered option descriptors.";
|
|
32
31
|
ds:propertyType "node";
|
|
33
|
-
ds:constraints "Exact TypeScript type: (Omit<ComponentProps<typeof RadioInput>, \"checked\" | \"key\" | \"onChange\" | keyof ReturnType<FormikContextType<TFormik>[\"getFieldProps\"]>> & { value: TValue; key: Key; expansion?: ReactNode; help?: ReactNode; onSelect?: () => Promise<void> | void; })[]. Empty or omitted input renders no radios.";
|
|
34
32
|
ds:defaultValue "[]";
|
|
33
|
+
ds:constraints "Exact TypeScript type: (Omit<ComponentProps<typeof RadioInput>, \"checked\" | \"key\" | \"onChange\" | keyof ReturnType<FormikContextType<TFormik>[\"getFieldProps\"]>> & { value: TValue; key: Key; expansion?: ReactNode; help?: ReactNode; onSelect?: () => Promise<void> | void; })[]. Empty or omitted input renders no radios.";
|
|
35
34
|
ds:optional "true"
|
|
36
35
|
], [
|
|
37
36
|
a ds:Property;
|
|
38
37
|
ds:name "label";
|
|
39
38
|
ds:summary "Content rendered in the visual label paragraph.";
|
|
40
39
|
ds:propertyType "node";
|
|
41
|
-
ds:constraints "Does not programmatically label the radios. The paragraph still renders when omitted.";
|
|
42
40
|
ds:defaultValue "—";
|
|
41
|
+
ds:constraints "Does not programmatically label the radios. The paragraph still renders when omitted.";
|
|
43
42
|
ds:optional "true"
|
|
44
43
|
], [
|
|
45
44
|
a ds:Property;
|
|
46
45
|
ds:name "labelHeading";
|
|
47
46
|
ds:summary "Declared group flag.";
|
|
48
47
|
ds:propertyType "boolean";
|
|
49
|
-
ds:constraints "Currently unused; changes neither markup nor classes.";
|
|
50
48
|
ds:defaultValue "—";
|
|
49
|
+
ds:constraints "Currently unused; changes neither markup nor classes.";
|
|
51
50
|
ds:optional "true"
|
|
52
51
|
], [
|
|
53
52
|
a ds:Property;
|
|
54
53
|
ds:name "sideByside";
|
|
55
54
|
ds:summary "Declared group flag with this exact spelling.";
|
|
56
55
|
ds:propertyType "boolean";
|
|
57
|
-
ds:constraints "Currently unused; options always use the same vertical DOM structure.";
|
|
58
56
|
ds:defaultValue "—";
|
|
57
|
+
ds:constraints "Currently unused; options always use the same vertical DOM structure.";
|
|
59
58
|
ds:optional "true"
|
|
60
59
|
], [
|
|
61
60
|
a ds:Property;
|
|
62
61
|
ds:name "inputs[].key";
|
|
63
62
|
ds:summary "React identity for the option block.";
|
|
64
63
|
ds:propertyType "text";
|
|
65
|
-
ds:
|
|
66
|
-
ds:
|
|
64
|
+
ds:defaultValue "—";
|
|
65
|
+
ds:constraints "Exact TypeScript type: Key. Must be unique and stable; not forwarded to RadioInput."
|
|
67
66
|
], [
|
|
68
67
|
a ds:Property;
|
|
69
68
|
ds:name "inputs[].value";
|
|
70
69
|
ds:summary "Value compared with the current field and written on selection.";
|
|
71
70
|
ds:propertyType "text";
|
|
72
|
-
ds:
|
|
73
|
-
ds:
|
|
71
|
+
ds:defaultValue "—";
|
|
72
|
+
ds:constraints "Exact TypeScript type: TValue. Checked state uses loose ==, so coercible values can collide."
|
|
74
73
|
], [
|
|
75
74
|
a ds:Property;
|
|
76
75
|
ds:name "inputs[].RadioInput props";
|
|
77
76
|
ds:summary "Supplies the visible label and other supported Canonical radio configuration.";
|
|
78
77
|
ds:propertyType "object";
|
|
79
|
-
ds:constraints "Exact TypeScript type: Omit<ComponentProps<typeof RadioInput>, \"checked\" | \"key\" | \"onChange\" | keyof ReturnType<FormikContextType<TFormik>[\"getFieldProps\"]>>. Consumers may supply any supported subset. Local Formik bindings and local checked and onChange cannot be overridden.";
|
|
80
78
|
ds:defaultValue "Canonical RadioInput defaults";
|
|
79
|
+
ds:constraints "Exact TypeScript type: Omit<ComponentProps<typeof RadioInput>, \"checked\" | \"key\" | \"onChange\" | keyof ReturnType<FormikContextType<TFormik>[\"getFieldProps\"]>>. Consumers may supply any supported subset. Local Formik bindings and local checked and onChange cannot be overridden.";
|
|
81
80
|
ds:optional "true"
|
|
82
81
|
], [
|
|
83
82
|
a ds:Property;
|
|
84
83
|
ds:name "inputs[].help";
|
|
85
84
|
ds:summary "Renders persistent small muted text below the radio.";
|
|
86
85
|
ds:propertyType "node";
|
|
87
|
-
ds:constraints "No generated id or aria-describedby is added. Falsy values render nothing.";
|
|
88
86
|
ds:defaultValue "—";
|
|
87
|
+
ds:constraints "No generated id or aria-describedby is added. Falsy values render nothing.";
|
|
89
88
|
ds:optional "true"
|
|
90
89
|
], [
|
|
91
90
|
a ds:Property;
|
|
92
91
|
ds:name "inputs[].expansion";
|
|
93
92
|
ds:summary "Composition slot rendered inside Indent for the selected option.";
|
|
94
93
|
ds:propertyType "node";
|
|
95
|
-
ds:constraints "Mounted only while selected; local state inside it is lost when another option is selected.";
|
|
96
94
|
ds:defaultValue "—";
|
|
95
|
+
ds:constraints "Mounted only while selected; local state inside it is lost when another option is selected.";
|
|
97
96
|
ds:optional "true"
|
|
98
97
|
], [
|
|
99
98
|
a ds:Property;
|
|
100
99
|
ds:name "inputs[].onSelect";
|
|
101
100
|
ds:summary "Runs after setFieldValue resolves.";
|
|
102
101
|
ds:propertyType "callback";
|
|
103
|
-
ds:constraints "Exact TypeScript type: () => Promise<void> | void. The async change handler awaits it; errors are not caught locally.";
|
|
104
102
|
ds:defaultValue "—";
|
|
103
|
+
ds:constraints "Exact TypeScript type: () => Promise<void> | void. The async change handler awaits it; errors are not caught locally.";
|
|
105
104
|
ds:optional "true"
|
|
106
|
-
]
|
|
105
|
+
];
|
|
106
|
+
ds:documentationStage ds:tag.specialadoption-docs.
|
|
@@ -10,41 +10,41 @@ ds:apps_landscape.component.expandable_truncation a ds:Component;
|
|
|
10
10
|
ds:usage "### When to use\n\n- Use for secondary table or metadata values that must stay on one line until requested.\n- Pass content as direct, stable child nodes when `showCount` needs to represent hidden items; wrapping every item in one fragment or text node changes the count semantics.\n- Keep `isExpanded` and `onExpand` in the owning component. Add an explicit collapse path when users need to return to the compact state.\n- Use `TruncatedCell` only where an absolutely positioned expanded panel can safely overlay the table cell and adjacent content.\n\n### When not to use\n\n**Errors, instructions, or primary content**\n\nInformation required to decide whether to expand or that must always be visible.\n\n**Incorrect pattern**: Hiding error messages, instructions, or primary identifiers inside truncation.\n\n**Remediation strategy**: Keep essential information visible and use truncation only for secondary or supplementary values.\n\n**Headings, controls, or substantial content**\n\nComplex, interactive, or block-level content requiring full expand/collapse semantics.\n\n**Incorrect pattern**: Using this component for substantial blocks, form controls, or content that needs persistent interaction.\n\n**Remediation strategy**: Use a disclosure or accordion component that provides complete open/close semantics and focus management.\n\n**Character or word counts**\n\nScenarios where `showCount` must represent text length rather than item counts.\n\n**Incorrect pattern**: Using `showCount={true}` to display character or word counts; one text node produces only one overflow count.\n\n**Remediation strategy**: For text-based counts, render a separate numeric label or omit `showCount` entirely.\n\n**Positioned expansion in clipping context**\n\nSituations where the expanded layer must avoid clipping or stacking context limitations.\n\n**Incorrect pattern**: Rendering the absolute-positioned expanded content inside a clipped ancestor or low stacking context without testing.\n\n**Remediation strategy**: Use a portal-based disclosure or verify safe stacking and clipping behavior in all contexts before adoption.";
|
|
11
11
|
ds:guidelines "### Accessibility\n\n- Keep the native button and make the surrounding value identify what will expand. The fixed “Show more” label is not unique when several instances appear together.\n- The control exposes no `aria-expanded` or `aria-controls`, and the expanded content has no generated id. Consumers needing a programmatic disclosure relationship require an implementation change, not only different prose.\n- The clipped content remains in the DOM and accessibility tree; this is visual truncation rather than semantic hiding.\n- Do not rely on `+N` alone when the number does not clearly describe recognizable items in context.\n\n### Content and internationalization\n\n- Put identifying content first because collapsed rendering is one line with ellipsis.\n- “Show more” is hardcoded English. The component has no label, formatter, plural-rules, or translation prop.\n- `+N` uses an unformatted JavaScript number and has no localized explanatory text.\n- Avoid assuming text direction from right-edge measurement. RTL, mixed-direction content, and vertical writing modes are not covered by source or tests.\n\n### Keyboard and focus\n\n- The disclosure is a native button and receives standard keyboard activation.\n- Expansion removes that button from the DOM. The component does not move focus into the expanded value or provide a collapse target, so consumers must verify the resulting focus behavior.\n- There are no Escape, arrow-key, or focus-restoration handlers.\n\n### Device and layout\n\n- `ResizeObserver` watches the immediate parent, not the content span or viewport. Content-only changes that do not resize the parent are not guaranteed to trigger a new measurement.\n- Collapsed layout uses flex and a nonwrapping value/control. Expanded content scrolls vertically after `8rem`.\n- The expanded layer uses `position: absolute; left: 0; right: 0; top: 0` inside a relative root, with no z-index or portal. Check clipping, overlap, and stacking in every host.\n- Touch users can activate the button, but no touch-specific behavior is implemented.";
|
|
12
12
|
ds:tier ds:apps_landscape;
|
|
13
|
-
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "Truncated.content";
|
|
17
16
|
ds:summary "Content rendered in both states and inspected by direct child node.";
|
|
18
17
|
ds:propertyType "node";
|
|
19
|
-
ds:
|
|
20
|
-
ds:
|
|
18
|
+
ds:defaultValue "—";
|
|
19
|
+
ds:constraints "Exact type: ReactNode. Measurement uses DOM ranges and each child's right edge; semantic item counts require one direct node per item."
|
|
21
20
|
], [
|
|
22
21
|
a ds:Property;
|
|
23
22
|
ds:name "Truncated.expandedClassName";
|
|
24
23
|
ds:summary "Layout/visual class added to the expanded content-layout element.";
|
|
25
24
|
ds:propertyType "text";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
25
|
+
ds:defaultValue "—";
|
|
26
|
+
ds:constraints "Must provide any required background, border, stacking, and placement treatment; it is not applied while collapsed."
|
|
28
27
|
], [
|
|
29
28
|
a ds:Property;
|
|
30
29
|
ds:name "Truncated.isExpanded";
|
|
31
30
|
ds:summary "Controlled visual state.";
|
|
32
31
|
ds:propertyType "boolean";
|
|
33
|
-
ds:
|
|
34
|
-
ds:
|
|
32
|
+
ds:defaultValue "—";
|
|
33
|
+
ds:constraints "When true, the disclosure disappears and no built-in control can set the value false."
|
|
35
34
|
], [
|
|
36
35
|
a ds:Property;
|
|
37
36
|
ds:name "Truncated.onExpand";
|
|
38
37
|
ds:summary "Handles activation of the conditional disclosure.";
|
|
39
38
|
ds:propertyType "callback";
|
|
40
|
-
ds:
|
|
41
|
-
ds:
|
|
39
|
+
ds:defaultValue "—";
|
|
40
|
+
ds:constraints "Exact type: (event: ReactMouseEvent<HTMLButtonElement, MouseEvent>) => void. The caller must update controlled state; the component does not await, disable, or debounce the callback."
|
|
42
41
|
], [
|
|
43
42
|
a ds:Property;
|
|
44
43
|
ds:name "Truncated.showCount";
|
|
45
44
|
ds:summary "Replaces \"Show more\" with +N.";
|
|
46
45
|
ds:propertyType "boolean";
|
|
47
|
-
ds:constraints "Omission is treated as false. N is overflowing direct child nodes, not total children and not hidden characters or words.";
|
|
48
46
|
ds:defaultValue "—";
|
|
47
|
+
ds:constraints "Omission is treated as false. N is overflowing direct child nodes, not total children and not hidden characters or words.";
|
|
49
48
|
ds:optional "true"
|
|
50
|
-
]
|
|
49
|
+
];
|
|
50
|
+
ds:documentationStage ds:tag.specialadoption-docs.
|
|
@@ -10,7 +10,6 @@ ds:apps_landscape.component.form_section a ds:Component;
|
|
|
10
10
|
ds:usage "### When to use\n\n**Settings grouping**\n\nUse to divide a settings surface into labelled groups of related controls.\n\n**Responsive heading layout**\n\nUse when the heading should sit beside content when space allows and stack above it in constrained containers.\n\n**Discoverable page regions**\n\nUse when the section should appear as a named region in the accessibility tree and the surrounding heading hierarchy expects a level-two heading.\n\n### When not to use\n\n**Checkbox or radio semantics**\n\nA group of mutually exclusive choices that need fieldset and legend.\n\n**Incorrect pattern**: Using Form Section instead of fieldset/legend for choice groups.\n\n**Remediation strategy**: Use a native fieldset with legend for radio and checkbox groups, or use Expandable Radio Group.\n\n**Unlabelled spacing**\n\nUsing the component merely to add visual spacing or dividers.\n\n**Incorrect pattern**: Rendering a Form Section without a meaningful title just to add a divider or grid.\n\n**Remediation strategy**: Use Vanilla utility classes or a dedicated divider/spacing component; every section requires a purposeful title.\n\n**Arbitrary heading levels**\n\nA heading hierarchy where `h2` would create skipped or flattened levels.\n\n**Incorrect pattern**: Using Form Section in a context where the heading hierarchy would be broken (e.g., after an h3).\n\n**Remediation strategy**: Use a different component or restructure the page heading hierarchy; the current API does not expose heading-level control.\n\n**General card or field group**\n\nDecorative card layout or a generic field wrapper without semantic region meaning.\n\n**Incorrect pattern**: Using Form Section as a replacement for arbitrary cards or field containers.\n\n**Remediation strategy**: Use a plain styled div with Vanilla classes, or use a semantic section only when it represents a named page region.";
|
|
11
11
|
ds:guidelines "### Accessibility\n\n- Preserve the section, h2, and aria-labelledby relationship generated by the component.\n- The named `<section>` is exposed as a region; use enough sections to aid navigation, not so many that landmark/region navigation becomes noisy.\n- Keep heading levels logical in the surrounding page. The fixed `h2` cannot be changed through props.\n- The component adds no focus target or keyboard behavior; focus remains on interactive children.\n\n### Content\n\n- Use a short noun phrase that describes the settings in the section.\n- Keep unrelated controls in separate sections and avoid sections containing only one trivial field.\n- Localize `title` and child content at the call site; there are no source-owned visible strings.\n\n### Internationalization\n\n- Allow longer translated headings to wrap. The heading column has a 19rem minimum in wide mode and stacks when the full grid no longer fits.\n- Do not encode meaning only through the small-caps visual treatment; the semantic heading text must remain clear in every locale.\n\n### Keyboard navigation\n\n- The section itself adds no tab stop; child controls retain normal document order.\n- Grid presentation does not change DOM order: the heading precedes `children` in both layouts.\n\n### Device and layout\n\n- The breakpoint follows the section’s own inline size, not viewport width, so navigation or side panels can trigger stacking.\n- Wide mode requires the 19rem label minimum, horizontal gap, and 28rem content minimum. At or below their combined threshold the grid becomes one `minmax(0, 1fr)` column.\n- Content receives `min-width: 0` so descendants can shrink, but consumers remain responsible for responsive child controls and overflow.";
|
|
12
12
|
ds:tier ds:apps_landscape;
|
|
13
|
-
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "title";
|
|
@@ -30,4 +29,5 @@ ds:apps_landscape.component.form_section a ds:Component;
|
|
|
30
29
|
ds:propertyType "text";
|
|
31
30
|
ds:constraints "Consumer CSS can affect layout or semantics; preserve the container and label relationship.";
|
|
32
31
|
ds:optional "true"
|
|
33
|
-
]
|
|
32
|
+
];
|
|
33
|
+
ds:documentationStage ds:tag.specialadoption-docs.
|
|
@@ -6,81 +6,81 @@ ds:apps_landscape.component.gpg_key_field a ds:Component;
|
|
|
6
6
|
ds:name "GPG Key Field";
|
|
7
7
|
ds:summary "GPG Key Field is a controlled edit-form composition for GPG key text. Without an `existingKey`, it renders a Canonical Textarea for a new value. With an `existingKey`, it first renders a “keep current” CheckboxInput and mounts the replacement Textarea only when `keepCurrentKey` is false.\n\nThe component does not display, parse, validate, upload, or otherwise inspect the existing or replacement key. The `existingKey` object is used only as a truthy presence signal; value, error, touched state, and persistence remain the parent form’s responsibility.";
|
|
8
8
|
ds:anatomyDsl "node:\n uri: ds:apps_landscape.component.gpg_key_field\n edges:\n - node:\n uri: global.component.checkbox\n role: keep current key\n relation:\n cardinality: \"0..1\"\n condition: existing key is present\n - node:\n uri: global.component.textarea\n role: GPG key input\n relation:\n cardinality: \"0..1\"\n condition: no existing key or keep current is false";
|
|
9
|
-
ds:anatomyClassic "
|
|
9
|
+
ds:anatomyClassic "\n\nhttps://www.figma.com/design/I4WpvwMuQI6v1qhgUl63Sx/Landscape-Pragma-components?node-id=25-55&t=iG2ObZ6Q1XG2A2MB-4\n\nTable 29\n\n";
|
|
10
10
|
ds:usage "### When to use\n\n**Create with a key**\n\nUse when a form accepts a pasted GPG public key for a new resource.\n\n**Optional key replacement**\n\nUse when editing a resource should retain its existing key unless the user explicitly replaces it.\n\n**Parent-controlled validation**\n\nUse when the parent form already owns key parsing/validation and can pass a string error to the textarea.\n\n### When not to use\n\n**Key generation or upload**\n\nUsers need to generate keys, inspect keyrings, or upload a key file.\n\n**Incorrect pattern**: Rendering the field to allow users to create or import external key material.\n\n**Remediation strategy**: Use a dedicated key management form or upload component that handles generation and keyrings.\n\n**Secret key material**\n\nUsers must not accidentally enter private keys or passphrases in this public-key field.\n\n**Incorrect pattern**: Labeling the field generically without clarifying that only public keys are accepted.\n\n**Remediation strategy**: Always label the field as “GPG public key” or “verification key” and document that private key material is not accepted.\n\n**Existing-key inspection**\n\nUsers need to see a fingerprint, owner, expiry, algorithm, or the current armored text.\n\n**Incorrect pattern**: Expecting the component to read or display properties from the `existingKey` object.\n\n**Remediation strategy**: Add a separate read-only display component that renders fingerprint, owner, and other key metadata before or after the edit control.\n\n**Automatic validation or persistence**\n\nBuilt-in GPG validation, file handling, API calls, or confirmation is required.\n\n**Incorrect pattern**: Relying on the component to validate armor, upload to an API, or handle persistence automatically.\n\n**Remediation strategy**: Implement validation, persistence, and API handling in the parent form or a custom validation layer outside the component.";
|
|
11
11
|
ds:guidelines "### Accessibility\n\n- Keep explicit labels on both controls and associate parse errors with the textarea.\n- The source preserves explicit Canonical control labels and places the replacement input immediately after the checkbox in reading and tab order.\n- Reveal/hide is driven by the native checkbox change. The component does not move focus or announce that a Textarea was inserted/removed.\n- Error association and announcement are inherited from Canonical Textarea; there is no local id or ARIA wiring.\n\n### Content and security\n\n- Say GPG public key where ambiguity with private key material is possible.\n- Never echo secret key material in errors, logs, or notifications.\n- Validate armor, fingerprint, expiry, and permitted key type in the parent/client and on a trusted backend; this component performs no checks.\n- The default source label says only “GPG key”. Consumers that accept only public or verification keys should override it, as the mirror edit form does with “Verification GPG key”.\n\n### Internationalization\n\n- The two default labels are hardcoded English but injectable. Pass translated `keepCurrentLabel` and `textareaLabel` in localized surfaces.\n- Error strings originate in the parent and must be localized there.\n- Armored key text itself must not be translated or typographically transformed.\n\n### Keyboard navigation\n\n- Support Space on the retain checkbox and normal keyboard editing in the textarea.\n- The component adds no custom keyboard handling. Tabbing follows checkbox then conditional Textarea when it is present.\n\n### Device and layout\n\n- Layout, textarea size, wrapping, and overflow are entirely inherited from Canonical components and the surrounding form; there is no local stylesheet.\n- Verify long armored lines at narrow widths and avoid exposing content through unintended horizontal page overflow.";
|
|
12
12
|
ds:tier ds:apps_landscape;
|
|
13
|
-
ds:documentationStage ds:tag.specialadoption-docs;
|
|
14
13
|
ds:hasProperty [
|
|
15
14
|
a ds:Property;
|
|
16
15
|
ds:name "existingKey";
|
|
17
16
|
ds:summary "Truthy presence selects existing-key mode.";
|
|
18
17
|
ds:propertyType "object";
|
|
19
18
|
ds:optional "Yes";
|
|
20
|
-
ds:
|
|
21
|
-
ds:
|
|
19
|
+
ds:defaultValue "—";
|
|
20
|
+
ds:constraints "Exact type: `GpgKey`. No properties are read and the current key is not displayed."
|
|
22
21
|
], [
|
|
23
22
|
a ds:Property;
|
|
24
23
|
ds:name "keepCurrentKey";
|
|
25
24
|
ds:summary "Controls the CheckboxInput and whether replacement Textarea is mounted in existing-key mode.";
|
|
26
25
|
ds:propertyType "boolean";
|
|
27
26
|
ds:optional "No";
|
|
28
|
-
ds:
|
|
29
|
-
ds:
|
|
27
|
+
ds:defaultValue "—";
|
|
28
|
+
ds:constraints "Ignored for rendering when `existingKey` is absent."
|
|
30
29
|
], [
|
|
31
30
|
a ds:Property;
|
|
32
31
|
ds:name "gpgKeyValue";
|
|
33
32
|
ds:summary "Controlled textarea value.";
|
|
34
33
|
ds:propertyType "text";
|
|
35
34
|
ds:optional "Yes";
|
|
36
|
-
ds:
|
|
37
|
-
ds:
|
|
35
|
+
ds:defaultValue "—";
|
|
36
|
+
ds:constraints "`undefined` is normalized to `\"\"`; the component keeps no local draft."
|
|
38
37
|
], [
|
|
39
38
|
a ds:Property;
|
|
40
39
|
ds:name "gpgKeyError";
|
|
41
40
|
ds:summary "Passed to Textarea's `error` prop.";
|
|
42
41
|
ds:propertyType "text";
|
|
43
42
|
ds:optional "Yes";
|
|
44
|
-
ds:
|
|
45
|
-
ds:
|
|
43
|
+
ds:defaultValue "—";
|
|
44
|
+
ds:constraints "Not rendered while the textarea is unmounted."
|
|
46
45
|
], [
|
|
47
46
|
a ds:Property;
|
|
48
47
|
ds:name "keepCurrentLabel";
|
|
49
48
|
ds:summary "Visible checkbox label.";
|
|
50
49
|
ds:propertyType "text";
|
|
51
50
|
ds:optional "Yes";
|
|
52
|
-
ds:
|
|
53
|
-
ds:
|
|
51
|
+
ds:defaultValue "`\"Keep current GPG key\"`";
|
|
52
|
+
ds:constraints "Used only in existing-key mode."
|
|
54
53
|
], [
|
|
55
54
|
a ds:Property;
|
|
56
55
|
ds:name "textareaLabel";
|
|
57
56
|
ds:summary "Visible Textarea label in new and replacement modes.";
|
|
58
57
|
ds:propertyType "text";
|
|
59
58
|
ds:optional "Yes";
|
|
60
|
-
ds:
|
|
61
|
-
ds:
|
|
59
|
+
ds:defaultValue "`\"GPG key\"`";
|
|
60
|
+
ds:constraints "Keep terminology explicit about public or verification keys where needed."
|
|
62
61
|
], [
|
|
63
62
|
a ds:Property;
|
|
64
63
|
ds:name "onKeepCurrentChange";
|
|
65
64
|
ds:summary "Called with the checkbox's next checked value.";
|
|
66
65
|
ds:propertyType "callback";
|
|
67
66
|
ds:optional "No";
|
|
68
|
-
ds:
|
|
69
|
-
ds:
|
|
67
|
+
ds:defaultValue "—";
|
|
68
|
+
ds:constraints "Exact type: `(checked: boolean) => void`. The parent must update `keepCurrentKey`; no event object is exposed."
|
|
70
69
|
], [
|
|
71
70
|
a ds:Property;
|
|
72
71
|
ds:name "onGpgKeyChange";
|
|
73
72
|
ds:summary "Called with the Textarea's next string value.";
|
|
74
73
|
ds:propertyType "callback";
|
|
75
74
|
ds:optional "No";
|
|
76
|
-
ds:
|
|
77
|
-
ds:
|
|
75
|
+
ds:defaultValue "—";
|
|
76
|
+
ds:constraints "Exact type: `(value: string) => void`. The parent must update `gpgKeyValue`; no event object is exposed."
|
|
78
77
|
], [
|
|
79
78
|
a ds:Property;
|
|
80
79
|
ds:name "onGpgKeyBlur";
|
|
81
80
|
ds:summary "Passed as the Textarea blur callback.";
|
|
82
81
|
ds:propertyType "callback";
|
|
83
82
|
ds:optional "Yes";
|
|
84
|
-
ds:
|
|
85
|
-
ds:
|
|
86
|
-
]
|
|
83
|
+
ds:defaultValue "—";
|
|
84
|
+
ds:constraints "Exact type: `() => void`. No event object is exposed. Common consumer use is marking the parent Formik field touched."
|
|
85
|
+
];
|
|
86
|
+
ds:documentationStage ds:tag.specialadoption-docs.
|