@canonical/design-system 0.47.0 → 0.49.0-experimental.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/README.md +3 -3
- 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 +219 -43
- 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_navigation-primary_navigation.ttl +638 -0
- package/data/apps/subcomponent/side_navigation-secondary_navigation.ttl +646 -0
- package/data/apps/subcomponent/side_panel-content.ttl +45 -5
- package/data/apps/subcomponent/side_panel-footer.ttl +40 -8
- package/data/apps/subcomponent/side_panel-header.ttl +87 -111
- package/data/apps.ttl +2 -1
- package/data/apps_anbox/pattern/side_menu.ttl +5 -6
- package/data/apps_anbox.ttl +2 -1
- 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_debcrafters.ttl +2 -1
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +0 -1
- package/data/apps_juju.ttl +2 -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_landscape.ttl +2 -1
- 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_launchpad.ttl +2 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/favorite_star_icon_button.ttl +16 -0
- 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_lxd.ttl +2 -1
- package/data/apps_notary.ttl +2 -1
- 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_portal.ttl +2 -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/apps_workplace.ttl +2 -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/documentation.ttl +2 -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/alpha.ttl +1 -1
- package/data/global/modifier/beta.ttl +1 -1
- package/data/global/modifier/branded.ttl +8 -0
- package/data/global/modifier/caution.ttl +1 -1
- package/data/global/modifier/comfortable.ttl +1 -1
- package/data/global/modifier/completed.ttl +1 -1
- package/data/global/modifier/constructive.ttl +1 -1
- package/data/global/modifier/{elevated.ttl → contrasted.ttl} +2 -2
- package/data/global/modifier/dark.ttl +2 -2
- package/data/global/modifier/dense.ttl +1 -1
- package/data/global/modifier/deprecated.ttl +8 -0
- package/data/global/modifier/destructive.ttl +1 -1
- package/data/global/modifier/{success.ttl → deutan.ttl} +3 -3
- package/data/global/modifier/end_of_life.ttl +8 -0
- package/data/global/modifier/error.ttl +2 -2
- package/data/global/modifier/experimental.ttl +1 -1
- package/data/global/modifier/failed.ttl +1 -1
- package/data/global/modifier/highlighted.ttl +8 -0
- package/data/global/modifier/in_progress.ttl +1 -1
- package/data/global/modifier/information.ttl +2 -2
- package/data/global/modifier/{surface2.ttl → layer1.ttl} +2 -2
- package/data/global/modifier/{surface1.ttl → layer2.ttl} +2 -2
- package/data/global/modifier/{surface3.ttl → layer3.ttl} +2 -2
- package/data/global/modifier/less.ttl +8 -0
- package/data/global/modifier/light.ttl +2 -2
- package/data/global/modifier/lts.ttl +8 -0
- package/data/global/modifier/more.ttl +8 -0
- package/data/global/modifier/muted.ttl +8 -0
- package/data/global/modifier/planned.ttl +1 -1
- package/data/global/modifier/primary.ttl +1 -1
- package/data/global/modifier/protan.ttl +8 -0
- package/data/global/modifier/secondary.ttl +1 -1
- package/data/global/modifier/stable.ttl +1 -1
- package/data/global/modifier/standard.ttl +8 -0
- package/data/global/modifier/tertiary.ttl +1 -1
- package/data/global/modifier/tritan.ttl +8 -0
- package/data/global/modifier/typical.ttl +8 -0
- package/data/global/modifier/warning.ttl +2 -2
- package/data/global/modifier_family/anticipation.ttl +1 -0
- package/data/global/modifier_family/{mode.ttl → color.ttl} +3 -2
- package/data/global/modifier_family/color_vision.ttl +10 -0
- package/data/global/modifier_family/contrast.ttl +10 -0
- package/data/global/modifier_family/density.ttl +1 -0
- package/data/global/modifier_family/emphasis.ttl +10 -0
- package/data/global/modifier_family/importance.ttl +1 -0
- package/data/global/modifier_family/lifecycle.ttl +1 -0
- package/data/global/modifier_family/release.ttl +1 -0
- package/data/global/modifier_family/severity.ttl +10 -0
- package/data/global/modifier_family/support.ttl +10 -0
- package/data/global/modifier_family/surface.ttl +2 -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.ttl +6 -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 +202 -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/{modifier_family/_other.ttl → state/editable.ttl} +2 -2
- package/data/global/{modifier_family/_emphasis.ttl → state/focused.ttl} +2 -2
- package/data/global/{modifier_family/_color_luminosity.ttl → state/invalid.ttl} +2 -2
- package/data/global/{modifier/modal.ttl → state/loading.ttl} +3 -3
- package/data/global/state/valid.ttl +8 -0
- package/data/global/state/wireframe.ttl +8 -0
- 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.ttl +2 -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 +2 -2
- package/data/global_dataviews/group/query_chips.ttl +1 -2
- package/data/global_dataviews/modifier/exclusion.ttl +1 -1
- package/data/global_dataviews/modifier/inclusion.ttl +1 -1
- package/data/global_dataviews/modifier/match.ttl +1 -1
- package/data/global_dataviews/modifier/presence.ttl +1 -1
- package/data/global_dataviews/modifier/range.ttl +1 -1
- package/data/global_dataviews/modifier_family/condition.ttl +1 -0
- 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/global_dataviews.ttl +2 -1
- 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.ttl +2 -1
- package/data/sites_stores.ttl +2 -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 +6 -2
- 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/data/sites_webcomponentsprototype.ttl +2 -1
- package/definitions/ontology.ttl +46 -0
- package/package.json +6 -6
- package/skills/design-auditor/SKILL.md +4 -4
- package/skills/implement-component/SKILL.md +1 -1
- package/skills/specify-component/SKILL.md +1 -1
- package/src/graph/GraphStore.ts +8 -2
- package/data/global/modifier_family/criticality.ttl +0 -9
- 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
|
@@ -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.
|
|
@@ -10,128 +10,128 @@ ds:apps_landscape.component.grouped_select a ds:Component;
|
|
|
10
10
|
ds:usage "### When to use\n\n**Categorized options**\n\nUse when a native platform picker is appropriate and category labels materially improve scanning.\n\n**Separate group and value**\n\nUse when the caller stores both the selected `optGroup` string and option `value` and can update both after every change.\n\n### When not to use\n\n**Searchable long list**\n\nUsers need filtering or autocomplete across many options.\n\n**Incorrect pattern**: Using a native select with many ungrouped or poorly categorized options and no search.\n\n**Remediation strategy**: Use a search-powered select component or autocomplete input that allows users to filter options as they type.\n\n**Group is decorative**\n\nCategories do not help users choose and labels would repeat option text.\n\n**Incorrect pattern**: Adding option groups that do not materially improve scanning or that duplicate information already visible in option labels.\n\n**Remediation strategy**: Use a flat select without groups if categories are not providing genuine cognitive benefit.\n\n**Values containing the compound delimiter**\n\nGroup or option values containing `/` make the compound DOM value ambiguous to tools or form serialization.\n\n**Incorrect pattern**: Storing group or option values that include `/`, then relying on the compound `${group}/${option}` DOM value for serialization or parsing.\n\n**Remediation strategy**: Sanitize group and option values to exclude `/`, or use a different serialization approach that does not concatenate them into a single field value.";
|
|
11
11
|
ds:guidelines "### Accessibility\n\n- Retain native label, select, optgroup, and option semantics.\n- A truthy `error` sets `aria-invalid=\"true\"` and `aria-errormessage=\"pull-pocket-validation-message\"`; without an error, `aria-errormessage` is omitted.\n- The validation id is hard-coded, so do not render multiple errored instances on one page without first fixing the source to generate unique ids.\n- `required` is visual only. Consumers needing native required semantics must not assume this component sets `required` on the `select`.\n- `hidden` applies only to the select, not its label or feedback. Do not use it as a complete field-visibility mechanism.\n\n### Content\n\n- Use concise, distinct group labels and parallel option labels that remain understandable in native pickers.\n- Give an enabled empty option an explicit prompt such as `Select a pocket`; the implementation otherwise renders a blank first option.\n- The component hard-codes the English `Error:` prefix; it has no translation prop.\n\n### Internationalization\n\n- Group, option, label, empty-option, and error content are caller-provided and can be localized.\n- The `Error:` prefix is internal English text. Localizing it requires an API or source change.\n- Compound values include the displayed `optGroup` string, so translating group labels can also change the submitted DOM value.\n\n### Keyboard and device\n\n- Keyboard navigation, focus, and mobile picker presentation are native `select` behavior; the component adds no custom key handlers or focus movement.\n- Long labels receive no local truncation or wrapping treatment and may be constrained by the platform picker.";
|
|
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 "`groupedOptions`";
|
|
17
16
|
ds:summary "Defines the native groups and their options.";
|
|
18
17
|
ds:propertyType "list of objects";
|
|
19
|
-
ds:
|
|
20
|
-
ds:
|
|
18
|
+
ds:defaultValue "—";
|
|
19
|
+
ds:constraints "Exact type: `groupedOption[]`, where `groupedOption` is `{ options: SelectOption[]; optGroup: string }` and `SelectOption` is `{ label: string; value: string; disabled?: boolean }`. Empty arrays are accepted; `disabled` is not forwarded."
|
|
21
20
|
], [
|
|
22
21
|
a ds:Property;
|
|
23
22
|
ds:name "`name`";
|
|
24
23
|
ds:summary "Sets the native field name and supplies the fallback id source.";
|
|
25
24
|
ds:propertyType "text";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
25
|
+
ds:defaultValue "—";
|
|
26
|
+
ds:constraints "The derived id replaces underscores and whitespace with hyphens, splits one camel-case boundary at a time, and lowercases the result."
|
|
28
27
|
], [
|
|
29
28
|
a ds:Property;
|
|
30
29
|
ds:name "`group`";
|
|
31
30
|
ds:summary "Controlled selected group label.";
|
|
32
31
|
ds:propertyType "text";
|
|
33
|
-
ds:
|
|
34
|
-
ds:
|
|
32
|
+
ds:defaultValue "—";
|
|
33
|
+
ds:constraints "Used only when `option` is non-empty to build the DOM value `${group}/${option}`."
|
|
35
34
|
], [
|
|
36
35
|
a ds:Property;
|
|
37
36
|
ds:name "`option`";
|
|
38
37
|
ds:summary "Controlled selected option value.";
|
|
39
38
|
ds:propertyType "text";
|
|
40
|
-
ds:
|
|
41
|
-
ds:
|
|
39
|
+
ds:defaultValue "—";
|
|
40
|
+
ds:constraints "An empty string forces the select value to `\"\"`; callers must provide a matching option for non-empty values."
|
|
42
41
|
], [
|
|
43
42
|
a ds:Property;
|
|
44
43
|
ds:name "`onChange`";
|
|
45
44
|
ds:summary "Reports the selected option value first and group label second.";
|
|
46
45
|
ds:propertyType "callback";
|
|
47
|
-
ds:
|
|
48
|
-
ds:
|
|
46
|
+
ds:defaultValue "—";
|
|
47
|
+
ds:constraints "Exact type: `(newOption: string, newGroup: string) => void`. Values come from the selected option's `data-value` and `data-group`; missing data becomes `\"\"`. The component does not update controlled state."
|
|
49
48
|
], [
|
|
50
49
|
a ds:Property;
|
|
51
50
|
ds:name "`id`";
|
|
52
51
|
ds:summary "Overrides the derived select id and label target.";
|
|
53
52
|
ds:propertyType "text";
|
|
54
|
-
ds:constraints "Use a page-unique id.";
|
|
55
53
|
ds:defaultValue "Derived from `name`";
|
|
54
|
+
ds:constraints "Use a page-unique id.";
|
|
56
55
|
ds:optional "true"
|
|
57
56
|
], [
|
|
58
57
|
a ds:Property;
|
|
59
58
|
ds:name "`label`";
|
|
60
59
|
ds:summary "Renders the native field label.";
|
|
61
60
|
ds:propertyType "text";
|
|
62
|
-
ds:constraints "An empty string omits the label entirely.";
|
|
63
61
|
ds:defaultValue "`\"\"`";
|
|
62
|
+
ds:constraints "An empty string omits the label entirely.";
|
|
64
63
|
ds:optional "true"
|
|
65
64
|
], [
|
|
66
65
|
a ds:Property;
|
|
67
66
|
ds:name "`emptyOption`";
|
|
68
67
|
ds:summary "Optionally inserts an empty first option.";
|
|
69
68
|
ds:propertyType "object";
|
|
70
|
-
ds:constraints "Exact type: `{ enabled: boolean; label?: string }`. `enabled: false` renders nothing; an omitted label renders an empty option label. The empty option is not automatically disabled for required fields.";
|
|
71
69
|
ds:defaultValue "—";
|
|
70
|
+
ds:constraints "Exact type: `{ enabled: boolean; label?: string }`. `enabled: false` renders nothing; an omitted label renders an empty option label. The empty option is not automatically disabled for required fields.";
|
|
72
71
|
ds:optional "true"
|
|
73
72
|
], [
|
|
74
73
|
a ds:Property;
|
|
75
74
|
ds:name "`error`";
|
|
76
75
|
ds:summary "Applies invalid styling, `aria-invalid`, and renders error content after `Error:`.";
|
|
77
76
|
ds:propertyType "node";
|
|
78
|
-
ds:constraints "Exact type: `ReactNode`. Truthiness controls the error state. Every errored instance uses the fixed id `pull-pocket-validation-message`, so multiple instances create duplicate ids.";
|
|
79
77
|
ds:defaultValue "—";
|
|
78
|
+
ds:constraints "Exact type: `ReactNode`. Truthiness controls the error state. Every errored instance uses the fixed id `pull-pocket-validation-message`, so multiple instances create duplicate ids.";
|
|
80
79
|
ds:optional "true"
|
|
81
80
|
], [
|
|
82
81
|
a ds:Property;
|
|
83
82
|
ds:name "`onBlur`";
|
|
84
83
|
ds:summary "Forwards the native select blur event.";
|
|
85
84
|
ds:propertyType "callback";
|
|
86
|
-
ds:constraints "Exact type: `FocusEventHandler<HTMLSelectElement>`. No internal touched state is maintained.";
|
|
87
85
|
ds:defaultValue "—";
|
|
86
|
+
ds:constraints "Exact type: `FocusEventHandler<HTMLSelectElement>`. No internal touched state is maintained.";
|
|
88
87
|
ds:optional "true"
|
|
89
88
|
], [
|
|
90
89
|
a ds:Property;
|
|
91
90
|
ds:name "`disabled`";
|
|
92
91
|
ds:summary "Sets the native select's disabled state.";
|
|
93
92
|
ds:propertyType "boolean";
|
|
94
|
-
ds:constraints "Omission is treated as false and does not alter the controlled value.";
|
|
95
93
|
ds:defaultValue "—";
|
|
94
|
+
ds:constraints "Omission is treated as false and does not alter the controlled value.";
|
|
96
95
|
ds:optional "true"
|
|
97
96
|
], [
|
|
98
97
|
a ds:Property;
|
|
99
98
|
ds:name "`hidden`";
|
|
100
99
|
ds:summary "Sets the native `hidden` attribute on the select only.";
|
|
101
100
|
ds:propertyType "boolean";
|
|
102
|
-
ds:constraints "Omission is treated as false. The outer wrapper, optional label, and error message remain in the DOM and may remain visible.";
|
|
103
101
|
ds:defaultValue "—";
|
|
102
|
+
ds:constraints "Omission is treated as false. The outer wrapper, optional label, and error message remain in the DOM and may remain visible.";
|
|
104
103
|
ds:optional "true"
|
|
105
104
|
], [
|
|
106
105
|
a ds:Property;
|
|
107
106
|
ds:name "`required`";
|
|
108
107
|
ds:summary "Adds `is-required` to the visible label.";
|
|
109
108
|
ds:propertyType "boolean";
|
|
110
|
-
ds:constraints "Omission is treated as false. It does not set the native select's `required` attribute and does not disable or remove the empty option.";
|
|
111
109
|
ds:defaultValue "—";
|
|
110
|
+
ds:constraints "Omission is treated as false. It does not set the native select's `required` attribute and does not disable or remove the empty option.";
|
|
112
111
|
ds:optional "true"
|
|
113
112
|
], [
|
|
114
113
|
a ds:Property;
|
|
115
114
|
ds:name "`className`";
|
|
116
115
|
ds:summary "Adds classes to the native select.";
|
|
117
116
|
ds:propertyType "text";
|
|
118
|
-
ds:constraints "Does not style the wrapper or label.";
|
|
119
117
|
ds:defaultValue "—";
|
|
118
|
+
ds:constraints "Does not style the wrapper or label.";
|
|
120
119
|
ds:optional "true"
|
|
121
120
|
], [
|
|
122
121
|
a ds:Property;
|
|
123
122
|
ds:name "`labelClassName`";
|
|
124
123
|
ds:summary "Adds classes to the label.";
|
|
125
124
|
ds:propertyType "text";
|
|
126
|
-
ds:constraints "Has no effect when `label` is empty.";
|
|
127
125
|
ds:defaultValue "—";
|
|
126
|
+
ds:constraints "Has no effect when `label` is empty.";
|
|
128
127
|
ds:optional "true"
|
|
129
128
|
], [
|
|
130
129
|
a ds:Property;
|
|
131
130
|
ds:name "`wrapperClassName`";
|
|
132
131
|
ds:summary "Adds classes to the root validation wrapper.";
|
|
133
132
|
ds:propertyType "text";
|
|
134
|
-
ds:constraints "—";
|
|
135
133
|
ds:defaultValue "—";
|
|
134
|
+
ds:constraints "—";
|
|
136
135
|
ds:optional "true"
|
|
137
|
-
]
|
|
136
|
+
];
|
|
137
|
+
ds:documentationStage ds:tag.specialadoption-docs.
|
|
@@ -10,21 +10,21 @@ ds:apps_landscape.component.loading_state a ds:Component;
|
|
|
10
10
|
ds:usage "### When to use\n\n**Wait for asynchronous content**\n\nIndicate that a region or page is waiting for indeterminate asynchronous work before stable content can render.\n\n**Signal route redirection**\n\nCompose the separate Redirecting component, which uses `LoadingState inline`, when visible route-transition wording is required.\n\n**Compact pending values**\n\nUse the inline variant where a count, status, or small content fragment is pending and a strip would disrupt its surrounding layout.\n\n### When not to use\n\n**Report determinate progress**\n\nDisplaying a progress percentage or completion count for known-length operations.\n\n**Incorrect pattern**: Using Loading State with a custom message or label to show “50% complete” or similar measured progress.\n\n**Remediation strategy**: Use a dedicated progress component (e.g., Vanilla Framework progress bar) when a percentage, count, or known total is available.\n\n**Load a button action**\n\nIndicating pending work initiated by a button click.\n\n**Incorrect pattern**: Wrapping a button in a Loading State div while its action awaits completion, disconnecting the status from the initiating control.\n\n**Remediation strategy**: Use the Button component’s native loading prop or disabled state so the pending status remains visually associated with the control that triggered it.\n\n**Explain a long operation**\n\nIndicating an extended wait without context about what is happening or why.\n\n**Incorrect pattern**: Rendering only the spinner with a generic “Loading…” message when a multi-minute operation is in progress, without explaining the task or recovery options.\n\n**Remediation strategy**: Add persistent context outside the Loading State component describing the operation; use a more specific status pattern (modal, toast, or status page) for long waits that need explanation or cancellation options.";
|
|
11
11
|
ds:guidelines "### Accessibility\n\n- Keep `role=\"status\"` and the off-screen `Loading...` label intact. The spinner is correctly `aria-hidden`, so state is not conveyed by animation alone.\n- `role=\"status\"` supplies polite live-region semantics. Do not wrap it in another competing status or alert that announces the same loading event.\n- The fixed message does not identify the affected region. Provide nearby context when multiple independent loading states can appear.\n- Do not move focus to the status; preserve focus on the initiating control or stable route destination.\n\n### Content\n\n- Use the separate Redirecting composition only when navigation, rather than data loading, is pending.\n- Pair long waits with useful visible context outside the spinner when users need to understand the operation or recovery path.\n- Do not add adjacent visible text that contradicts the fixed accessible `Loading...` status.\n\n### Responsive behavior\n\n- Use inline inside compact controls or copy and contained layout for a content region.\n- Reserve screen centering for a page-level wait state. Its source uses `height: 100vh` and `padding: 1rem`, with no small-viewport or dynamic-viewport override.\n- The default strip follows Vanilla layout. The component itself defines no width, breakpoint, or overflow rule.\n\n### Keyboard\n\n- Do not move focus to the spinner; preserve focus on the initiating control or next stable destination.\n- Loading State contains no interactive elements and must not be added to the tab order.\n- If pending work temporarily removes an interactive region, restore focus deliberately when stable content returns.\n\n### Internationalization\n\n- The accessible `Loading...` text is hardcoded English and cannot be customized through props. Localization requires a source API change.\n- The component has no visible copy, except when used by a separate composition such as Redirecting.\n- Ellipsis punctuation is part of the fixed source string; do not infer localization readiness from the icon-only visual presentation.\n\n";
|
|
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 "`LoadingState.centerOnScreen`";
|
|
17
16
|
ds:summary "Adds the full-viewport-height centering class to the outer non-inline wrapper.";
|
|
18
17
|
ds:propertyType "boolean";
|
|
19
18
|
ds:optional "true";
|
|
20
|
-
ds:
|
|
21
|
-
ds:
|
|
19
|
+
ds:defaultValue "—";
|
|
20
|
+
ds:constraints "It does not add another element. Ignored when `inline` is truthy because the inline branch returns before wrapper rendering."
|
|
22
21
|
], [
|
|
23
22
|
a ds:Property;
|
|
24
23
|
ds:name "`LoadingState.inline`";
|
|
25
24
|
ds:summary "Renders a bare status span instead of the contained strip structure.";
|
|
26
25
|
ds:propertyType "boolean";
|
|
27
26
|
ds:optional "true";
|
|
28
|
-
ds:
|
|
29
|
-
ds:
|
|
30
|
-
]
|
|
27
|
+
ds:defaultValue "—";
|
|
28
|
+
ds:constraints "Takes precedence over `centerOnScreen`; intended for compact placements."
|
|
29
|
+
];
|
|
30
|
+
ds:documentationStage ds:tag.specialadoption-docs.
|
|
@@ -10,66 +10,66 @@ ds:apps_landscape.component.managed_file_input a ds:Component;
|
|
|
10
10
|
ds:usage "### When to use\n\n**Managed single upload**\n\nUse when selecting a file immediately invokes an asynchronous upload or preparation step.\n\n**Replace-by-removal flow**\n\nUse when the chosen file should be summarized by name and explicitly removed before another is selected.\n\n**Parent-controlled asynchronous processing**\n\nUse when a parent can await upload/removal work, update `value`, and pass resulting error/help state back into the component.\n\n### When not to use\n\n**Multiple files**\n\nUploading more than one file in a single operation.\n\n**Incorrect pattern**: Using Managed File Input when the application needs to accept and display multiple uploaded files simultaneously.\n\n**Remediation strategy**: Use a dedicated multi-file upload component or build a wrapper that manages an array of Managed File Input instances.\n\n**Deferred form upload**\n\nCollecting files locally without uploading until form submission.\n\n**Incorrect pattern**: Selecting a file into Managed File Input expecting it to remain local until the parent form is submitted as a whole.\n\n**Remediation strategy**: If files must remain entirely local, manage the File state in a plain state variable; Managed File Input is designed for immediate upload on selection.\n\n**Progress, cancellation, or replacement in place**\n\nShowing upload progress, retry/cancel options, file preview, or replacing files without explicit removal.\n\n**Incorrect pattern**: Expecting Managed File Input to display progress bars, cancel buttons, thumbnail previews, or allow drag-and-drop file replacement without removing the current file first.\n\n**Remediation strategy**: None of these features are implemented. For advanced file handling, build a custom component or use a specialized file-upload library.\n\n**Native blur semantics**\n\nTreating onBlur as a normal form input blur callback.\n\n**Incorrect pattern**: Assuming `onBlur` fires whenever the file picker loses focus, like standard input controls.\n\n**Remediation strategy**: Understand that `onBlur` is delayed until after a successful file upload and requires a previously stored blur event; the wrapper does not fire blur on picker close alone.";
|
|
11
11
|
ds:guidelines "### Accessibility\n\n- Empty-state label/error/help semantics are inherited from Canonical Input. Provide a visible or programmatic label.\n- Selected-state remove Button has off-screen text “Remove” plus a delete Icon, but the local source does not include the filename in the text label or set explicit ARIA on the Icon. Multiple controls need surrounding context and verification of the installed Canonical Icon behavior, or a more specific upstream label.\n- The Button always receives `aria-errormessage=\"${value.name}-error-message\"`, even when the error paragraph is absent. The id uses the filename without sanitization or uniqueness handling.\n- Selected-state `<label>` has no associated input. Treat it as visual text rather than claiming native label semantics.\n\n### Content and security\n\n- State accepted file types, size limits, and whether selection uploads immediately.\n- Validate content and size on the server; the accept attribute is only user guidance.\n- Show actionable upload or removal failures without exposing sensitive paths.\n- The selected error prefix and remove action text are hardcoded English.\n\n### Internationalization\n\n- Localize caller-supplied label, help, and error content. An upstream-ready version must also externalize “Remove” and “Error:”.\n- Preserve filenames verbatim; do not translate them. Allow bidirectional and non-ASCII names without using the raw value as an unsafe or duplicate DOM id.\n- Long filenames may need visible truncation with an accessible full value; no such behavior is implemented locally.\n\n### Keyboard navigation\n\n- The picker and remove action must remain reachable and operable by keyboard.\n- Native file-picker keyboard/device behavior comes from the browser and Canonical Input. The component adds no drag/drop or custom picker keys.\n- Removing does not locally restore focus to a newly rendered picker; parent state changes determine what appears next.\n\n### Device and layout\n\n- The selected-state filename and dense Button share normal inline flow. The only direct spacing override is the Button’s literal inline `marginLeft: \"0.5rem\"` plus `u-no-padding--left`.\n- No local stylesheet handles long filenames, wrapping, mobile layout, or touch targets; verify these in each containing form.";
|
|
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 "`ManagedFileInput.value`";
|
|
17
16
|
ds:summary "Selects empty or selected render state.";
|
|
18
17
|
ds:propertyType "object";
|
|
19
|
-
ds:
|
|
20
|
-
ds:
|
|
18
|
+
ds:defaultValue "—";
|
|
19
|
+
ds:constraints "TypeScript: `File | null`. Only one file is represented; parent updates control state."
|
|
21
20
|
], [
|
|
22
21
|
a ds:Property;
|
|
23
22
|
ds:name "`ManagedFileInput.onFileUpload`";
|
|
24
23
|
ds:summary "Awaited after a non-empty native `FileList` is copied to an array.";
|
|
25
24
|
ds:propertyType "callback";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
25
|
+
ds:defaultValue "—";
|
|
26
|
+
ds:constraints "TypeScript: `(files: File[]) => Promise<void>`. The picker forces `multiple={false}`, so normal UI selection supplies one item despite the array API. Rejections are not caught."
|
|
28
27
|
], [
|
|
29
28
|
a ds:Property;
|
|
30
29
|
ds:name "`ManagedFileInput.onFileRemove`";
|
|
31
30
|
ds:summary "Passed directly to the remove Button's click handler.";
|
|
32
31
|
ds:propertyType "callback";
|
|
33
|
-
ds:
|
|
34
|
-
ds:
|
|
32
|
+
ds:defaultValue "—";
|
|
33
|
+
ds:constraints "TypeScript: `() => Promise<void>`. Parent must update `value`; no local pending, disabled, or error behavior is added. Rejections are not caught."
|
|
35
34
|
], [
|
|
36
35
|
a ds:Property;
|
|
37
36
|
ds:name "`ManagedFileInput.error`";
|
|
38
37
|
ds:summary "Empty state passes it to Canonical Input; selected state adds `is-error` and renders custom error markup.";
|
|
39
38
|
ds:propertyType "text";
|
|
40
|
-
ds:constraints "TypeScript: `string | undefined`. The selected error id is derived verbatim from `value.name`; Button has `aria-errormessage` even when no error exists.";
|
|
41
39
|
ds:defaultValue "—";
|
|
40
|
+
ds:constraints "TypeScript: `string | undefined`. The selected error id is derived verbatim from `value.name`; Button has `aria-errormessage` even when no error exists.";
|
|
42
41
|
ds:optional "true"
|
|
43
42
|
], [
|
|
44
43
|
a ds:Property;
|
|
45
44
|
ds:name "ManagedFileInput.help";
|
|
46
45
|
ds:summary "Empty state passes it to Input; selected state renders it before the filename.";
|
|
47
46
|
ds:propertyType "node";
|
|
48
|
-
ds:constraints "TypeScript: `string | ReactNode`. React content is supported according to `InputProps`.";
|
|
49
47
|
ds:defaultValue "—";
|
|
48
|
+
ds:constraints "TypeScript: `string | ReactNode`. React content is supported according to `InputProps`.";
|
|
50
49
|
ds:optional "true"
|
|
51
50
|
], [
|
|
52
51
|
a ds:Property;
|
|
53
52
|
ds:name "`ManagedFileInput.label`";
|
|
54
53
|
ds:summary "Labels the empty-state Input; selected state renders label-styled text.";
|
|
55
54
|
ds:propertyType "node";
|
|
56
|
-
ds:constraints "TypeScript: `string | ReactNode`. The selected-state `<label>` is not associated with a form control.";
|
|
57
55
|
ds:defaultValue "—";
|
|
56
|
+
ds:constraints "TypeScript: `string | ReactNode`. The selected-state `<label>` is not associated with a form control.";
|
|
58
57
|
ds:optional "true"
|
|
59
58
|
], [
|
|
60
59
|
a ds:Property;
|
|
61
60
|
ds:name "`ManagedFileInput.onBlur`";
|
|
62
61
|
ds:summary "Not forwarded normally. The picker stores its blur event, then calls this callback only after a later awaited upload if such an event exists.";
|
|
63
62
|
ds:propertyType "callback";
|
|
64
|
-
ds:constraints "TypeScript: `(event: FocusEvent<HTMLInputElement>) => void`. There is no callback on blur alone, after a rejected upload, or without a stored event.";
|
|
65
63
|
ds:defaultValue "—";
|
|
64
|
+
ds:constraints "TypeScript: `(event: FocusEvent<HTMLInputElement>) => void`. There is no callback on blur alone, after a rejected upload, or without a stored event.";
|
|
66
65
|
ds:optional "true"
|
|
67
66
|
], [
|
|
68
67
|
a ds:Property;
|
|
69
68
|
ds:name "`ManagedFileInput` remaining Input props";
|
|
70
69
|
ds:summary "Forwarded to the empty-state Canonical Input, including contracts such as `accept`, `name`, `required`, `disabled`, classes, and data/ARIA props where supported.";
|
|
71
70
|
ds:propertyType "object";
|
|
72
|
-
ds:constraints "TypeScript: `Omit<InputProps, \"multiple\" | \"onChange\" | \"type\" | \"value\">`. Consumers may supply any supported subset. They are not forwarded to selected-state markup. Local feedback, label, multiple, blur, and change props cannot be overridden.";
|
|
73
71
|
ds:defaultValue "Canonical Input defaults";
|
|
72
|
+
ds:constraints "TypeScript: `Omit<InputProps, \"multiple\" | \"onChange\" | \"type\" | \"value\">`. Consumers may supply any supported subset. They are not forwarded to selected-state markup. Local feedback, label, multiple, blur, and change props cannot be overridden.";
|
|
74
73
|
ds:optional "true"
|
|
75
|
-
]
|
|
74
|
+
];
|
|
75
|
+
ds:documentationStage ds:tag.specialadoption-docs.
|