@canonical/design-system 0.43.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/apps/component/file_tree.ttl +1 -1
- package/data/apps/component/inline_panel.ttl +17 -0
- package/data/apps/component/key_value_pair.ttl +1 -1
- package/data/apps/{subcomponent → component}/log.ttl +1 -1
- package/data/apps/component/navigation.ttl +1 -1
- package/data/apps/component/notification.ttl +1 -1
- package/data/apps/component/side_navigation.ttl +50 -6
- package/data/apps/group/key_value_pairs.ttl +1 -1
- package/data/apps/group/notifications.ttl +1 -1
- package/data/apps/layout/application_layout.ttl +1 -1
- package/data/apps/layout/content_layout.ttl +2 -3
- package/data/apps/layout/empty_layout.ttl +1 -1
- package/data/apps/layout/empty_state.ttl +1 -1
- package/data/{apps_workplaceengineering/pattern/group_card.ttl → apps/layout/login_layout.ttl} +4 -5
- package/data/apps/layout/side_panel_form_layout.ttl +13 -0
- package/data/apps/pattern/action_bar.ttl +2 -2
- package/data/apps/pattern/code_diff.ttl +1 -1
- package/data/apps/pattern/datatable.ttl +30 -31
- package/data/apps/pattern/destructive_modal.ttl +1 -1
- package/data/apps/pattern/drawer.ttl +1 -1
- package/data/apps/pattern/notification_center.ttl +2 -2
- package/data/apps/pattern/page_header.ttl +13 -0
- package/data/apps/pattern/side_panel.ttl +258 -10
- package/data/apps/subcomponent/data_table-action_bar.ttl +6 -6
- package/data/apps/subcomponent/data_table-body_cell.ttl +26 -26
- package/data/apps/subcomponent/data_table-group_header_row.ttl +8 -8
- package/data/apps/subcomponent/data_table-header_cell.ttl +13 -13
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +9 -9
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +10 -10
- package/data/apps/subcomponent/data_table-settings_menu.ttl +15 -15
- package/data/apps/subcomponent/drawer-content.ttl +1 -1
- package/data/apps/subcomponent/drawer-footer.ttl +1 -1
- package/data/apps/subcomponent/drawer-header.ttl +1 -1
- package/data/apps/subcomponent/side_navigation-content.ttl +13 -0
- package/data/apps/subcomponent/side_navigation-context_switcher.ttl +53 -0
- package/data/apps/subcomponent/side_navigation-item.ttl +80 -0
- package/data/apps/subcomponent/side_navigation-item_group.ttl +13 -0
- package/data/apps/subcomponent/side_panel-content.ttl +2 -2
- package/data/apps/subcomponent/side_panel-footer.ttl +196 -3
- package/data/apps/subcomponent/side_panel-header.ttl +212 -3
- package/data/apps_anbox/component/theme_switcher.ttl +1 -1
- package/data/apps_anbox/pattern/side_menu.ttl +0 -1
- package/data/{tagcategory/lpupstream.ttl → apps_identity.ttl} +2 -2
- package/data/apps_landscape/component/checkbox_group.ttl +24 -24
- package/data/apps_landscape/component/code_editor.ttl +35 -35
- package/data/apps_landscape/component/cron_schedule.ttl +4 -4
- package/data/apps_landscape/component/expandable_radio_group.ttl +47 -47
- package/data/apps_landscape/component/expandable_truncation.ttl +20 -20
- package/data/apps_landscape/component/form_section.ttl +4 -4
- package/data/apps_landscape/component/gpg_key_field.ttl +27 -27
- package/data/apps_landscape/component/grouped_select.ttl +25 -25
- package/data/apps_landscape/component/loading_state.ttl +8 -8
- package/data/apps_landscape/component/managed_file_input.ttl +18 -18
- package/data/apps_landscape/component/multi_select_field.ttl +50 -50
- package/data/apps_landscape/component/password_constraints.ttl +1 -1
- package/data/apps_landscape/component/progress_bar.ttl +20 -20
- package/data/apps_landscape/component/read_only_field.ttl +15 -15
- package/data/apps_landscape/component/search_help_popup.ttl +10 -10
- package/data/apps_landscape/component/search_query_editor.ttl +33 -33
- package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
- package/data/apps_landscape/pattern/content_blocks.ttl +20 -20
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +37 -37
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +6 -6
- package/data/apps_landscape/pattern/form_field_help.ttl +28 -28
- package/data/apps_landscape/pattern/header_search_controls.ttl +41 -41
- package/data/apps_landscape/pattern/ignorable_notification.ttl +16 -16
- package/data/apps_landscape/pattern/information_grid.ttl +14 -14
- package/data/apps_landscape/pattern/instance_association.ttl +5 -5
- package/data/apps_landscape/pattern/process_flow.ttl +11 -11
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +32 -32
- package/data/apps_landscape/pattern/recurring_schedule.ttl +3 -3
- package/data/apps_landscape/pattern/responsive_action_group.ttl +12 -12
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +11 -11
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +40 -40
- package/data/apps_landscape/pattern/sortable_list.ttl +14 -14
- package/data/apps_landscape/pattern/table_filter.ttl +57 -57
- package/data/apps_landscape/pattern/table_filter_chips.ttl +67 -67
- package/data/apps_landscape/pattern/table_pagination.ttl +63 -63
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +22 -22
- package/data/apps_landscape/subcomponent/bold_substring.ttl +4 -4
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +8 -8
- package/data/apps_landscape/subcomponent/label_with_description.ttl +14 -14
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +8 -8
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +12 -12
- package/data/apps_launchpad/component/avatar.ttl +2 -2
- package/data/apps_launchpad/component/badge.ttl +2 -2
- package/data/apps_launchpad/component/breadcrumbs.ttl +1 -1
- package/data/apps_launchpad/component/button.ttl +2 -2
- package/data/apps_launchpad/component/checkbox_input.ttl +4 -4
- package/data/apps_launchpad/component/combobox.ttl +2 -2
- package/data/apps_launchpad/component/drawer.ttl +4 -4
- package/data/apps_launchpad/component/modal.ttl +6 -14
- package/data/apps_launchpad/component/radio_input.ttl +5 -5
- package/data/apps_launchpad/component/select_input.ttl +1 -1
- package/data/apps_launchpad/component/switch.ttl +5 -5
- package/data/apps_launchpad/component/text_input.ttl +8 -8
- package/data/apps_launchpad/component/textarea_input.ttl +10 -10
- package/data/apps_launchpad/component/tooltip.ttl +3 -3
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +2 -2
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +4 -4
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +1 -1
- package/data/apps_launchpad/subcomponent/modal-content.ttl +2 -2
- package/data/apps_lxd/component/back_link.ttl +1 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/doc_link.ttl +2 -2
- package/data/apps_lxd/component/meter.ttl +5 -5
- package/data/apps_lxd/component/output_field.ttl +2 -3
- package/data/apps_lxd/component/rename_header.ttl +15 -15
- package/data/apps_lxd/component/tab_links.ttl +4 -4
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +2 -2
- package/data/apps_lxd/view/network_topology.ttl +3 -4
- package/data/apps_portal/layout/details_view.ttl +0 -1
- package/data/apps_workplaceengineering/component/label-highlight.ttl +2 -3
- package/data/apps_workplaceengineering/component/org_chart.ttl +12 -0
- package/data/apps_workplaceengineering/component/theme_switcher.ttl +1 -1
- package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +2 -2
- package/data/apps_workplaceengineering/pattern/{event_timeline.ttl → org_event_card.ttl} +3 -4
- package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +1 -1
- package/data/concept/Filtering-patterns.ttl +11 -0
- package/data/concept/Foundations-Grid--Layout.ttl +2 -2
- package/data/concept/Foundations-Surfaces.ttl +1 -1
- package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +3 -3
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +1 -1
- package/data/concept/Overflow.ttl +11 -0
- package/data/concept/Question-mark-vs-information-icon.ttl +1 -1
- package/data/documentation/layout/content_page_layout.ttl +13 -0
- package/data/documentation/layout/documentation_layout.ttl +2 -1
- package/data/documentation/layout/library_layout.ttl +13 -0
- package/data/documentation/layout/search_page_layout.ttl +13 -0
- package/data/documentation/pattern/library_side_navigation.ttl +3 -3
- package/data/global/component/accordion.ttl +6 -185
- package/data/global/component/announcement.ttl +2 -3
- package/data/global/component/avatar.ttl +1 -1
- package/data/global/component/badge.ttl +5 -7
- package/data/global/component/breadcrumbs.ttl +7 -6
- package/data/global/component/button.ttl +5 -23
- package/data/global/component/card.ttl +3 -8
- package/data/global/component/checkbox_field.ttl +1 -1
- package/data/global/component/chip.ttl +4 -6
- package/data/global/component/choices_field.ttl +11 -3
- package/data/global/component/code_snippet.ttl +2 -3
- package/data/global/component/color_field.ttl +1 -1
- package/data/global/component/combobox_field.ttl +2 -18
- package/data/global/component/contextual_menu.ttl +4 -6
- package/data/global/component/data_tooltip.ttl +4 -4
- package/data/global/component/date_field.ttl +1 -1
- package/data/global/component/date_time_field.ttl +1 -1
- package/data/global/component/drag_and_drop_list.ttl +2 -2
- package/data/global/component/dropdown_button.ttl +4 -5
- package/data/global/component/file_upload_field.ttl +1 -1
- package/data/global/component/heading.ttl +4 -4
- package/data/global/component/hidden_field.ttl +1 -1
- package/data/global/component/icon.ttl +2 -2
- package/data/global/component/icon_button.ttl +13 -0
- package/data/global/component/icon_in_container.ttl +7 -2
- package/data/global/component/inline_code.ttl +1 -1
- package/data/global/component/keyboard_key.ttl +1 -1
- package/data/global/{layout/form_layout.ttl → component/link.ttl} +3 -3
- package/data/global/component/links.ttl +12 -0
- package/data/global/component/mode_switcher.ttl +1 -1
- package/data/global/component/notification_toast.ttl +1 -1
- package/data/global/component/pagination.ttl +2 -2
- package/data/global/component/password_field.ttl +1 -1
- package/data/global/component/phone_field.ttl +1 -1
- package/data/global/component/popover.ttl +1 -1
- package/data/global/component/query_builder.ttl +12 -0
- package/data/global/component/range_field.ttl +1 -1
- package/data/global/component/rating_field.ttl +1 -1
- package/data/global/component/relative_timestamp.ttl +2 -1
- package/data/global/component/rich_choices_field.ttl +1 -1
- package/data/global/component/rich_text_editor.ttl +12 -0
- package/data/global/component/rich_text_field.ttl +1 -1
- package/data/global/component/search_field.ttl +1 -1
- package/data/global/component/segmented_control.ttl +13 -0
- package/data/global/component/segmented_control_field.ttl +1 -1
- package/data/global/component/select_field.ttl +1 -1
- package/data/global/component/switch_field.ttl +1 -1
- package/data/global/component/table.ttl +2 -2
- package/data/global/component/tabs.ttl +1 -1
- package/data/global/component/tag.ttl +2 -2
- package/data/global/component/text_field.ttl +1 -1
- package/data/global/component/textarea_field.ttl +1 -1
- package/data/global/component/tile.ttl +3 -6
- package/data/global/component/time_field.ttl +1 -1
- package/data/global/component/timestamp.ttl +2 -1
- package/data/global/component/tooltip.ttl +43 -45
- package/data/global/component/tooltip_wrapper.ttl +2 -2
- package/data/global/group/buttons.ttl +1 -8
- package/data/global/group/cards.ttl +1 -5
- package/data/global/group/code_snippets.ttl +1 -1
- package/data/global/group/keyboard_keys.ttl +1 -1
- package/data/global/group/tiles.ttl +1 -1
- package/data/global/modifier/information.ttl +1 -1
- package/data/global/pattern/field.ttl +1 -1
- package/data/global/pattern/filter.ttl +13 -0
- package/data/global/pattern/form_login.ttl +1 -1
- package/data/global/pattern/modal.ttl +5 -21
- package/data/global/pattern/navigation.ttl +1 -1
- package/data/global/pattern/stepper.ttl +1 -1
- package/data/global/pattern/table_of_contents.ttl +1 -1
- package/data/global/pattern/timeline.ttl +15 -20
- package/data/global/subcomponent/accordion-item.ttl +3 -156
- package/data/global/subcomponent/card-content.ttl +1 -1
- package/data/global/subcomponent/card-footer.ttl +1 -1
- package/data/global/subcomponent/card-header.ttl +1 -1
- package/data/global/subcomponent/card-image.ttl +2 -2
- package/data/global/subcomponent/card-thumbnail.ttl +1 -1
- package/data/global/subcomponent/checkbox_input.ttl +1 -1
- package/data/global/subcomponent/color_input.ttl +1 -1
- package/data/global/subcomponent/combobox_input.ttl +2 -18
- package/data/global/subcomponent/date_input.ttl +1 -1
- package/data/global/subcomponent/date_time_input.ttl +1 -1
- package/data/global/subcomponent/field-description.ttl +1 -1
- package/data/global/subcomponent/field-label.ttl +1 -1
- package/data/global/subcomponent/file_upload_input.ttl +1 -1
- package/data/global/subcomponent/hidden_input.ttl +1 -1
- package/data/global/subcomponent/modal-content.ttl +1 -1
- package/data/global/subcomponent/modal-footer.ttl +2 -18
- package/data/global/subcomponent/modal-header.ttl +5 -21
- package/data/global/subcomponent/password_input.ttl +1 -1
- package/data/global/subcomponent/phone_input.ttl +1 -1
- package/data/global/subcomponent/radio_input.ttl +1 -1
- package/data/global/subcomponent/range_input.ttl +1 -1
- package/data/global/subcomponent/rating_input.ttl +1 -1
- package/data/global/subcomponent/rich_text_input.ttl +1 -1
- package/data/global/subcomponent/search_input.ttl +3 -4
- package/data/global/subcomponent/segmented_control_input.ttl +1 -1
- package/data/global/subcomponent/select_input.ttl +1 -1
- package/data/global/subcomponent/spinner.ttl +2 -2
- package/data/global/subcomponent/switch_input.ttl +1 -1
- package/data/global/subcomponent/text_input.ttl +1 -1
- package/data/global/subcomponent/textarea_input.ttl +1 -1
- package/data/global/subcomponent/tile-content.ttl +1 -1
- package/data/global/subcomponent/time_input.ttl +1 -1
- package/data/global/subcomponent/timeline-content.ttl +2 -2
- package/data/global/subcomponent/timeline-event.ttl +5 -5
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +1 -1
- package/data/global/subcomponent/timeline-header.ttl +1 -1
- package/data/global/variant/tooltip_dense.ttl +1 -1
- package/data/sites/component/store_card.ttl +92 -0
- package/data/sites/pattern/hero.ttl +295 -4
- package/data/{stores.ttl → sites_stores.ttl} +2 -2
- package/data/tag/designin-progress.ttl +9 -0
- package/data/tag/devbatch1.ttl +1 -1
- package/data/tag/devbatch2.ttl +1 -1
- package/data/tag/devbatch3.ttl +1 -1
- package/data/tag/devdone.ttl +9 -0
- package/data/tag/devin-progress.ttl +9 -0
- package/data/tag/devin-review.ttl +9 -0
- package/data/tag/devpre-approved.ttl +9 -0
- package/data/tag/{stylesready.ttl → devreactdone.ttl} +3 -3
- package/data/tag/devreactpreapproved.ttl +1 -1
- package/data/tag/{devreactapproved.ttl → devsveltepreapproved.ttl} +3 -3
- package/data/tag/divergent.ttl +1 -1
- package/data/tag/docscomplete.ttl +1 -1
- package/data/tag/global-docs-missing.ttl +1 -1
- package/data/tag/has-no-global-entry.ttl +1 -1
- package/data/tag/implementationcomplete.ttl +9 -0
- package/data/tag/lpto-be-upstreamed.ttl +1 -1
- package/data/tag/lptriageblocked-reqs-design.ttl +1 -1
- package/data/tag/lptriageno-upstream.ttl +1 -1
- package/data/tag/lptriagereimplement-and-deprecate.ttl +1 -1
- package/data/tag/lptriagereimplement-and-keep.ttl +1 -1
- package/data/tag/lptriageupstream-and-deprecate.ttl +1 -1
- package/data/tag/{needsdefinition.ttl → needscoredocumentation.ttl} +3 -3
- package/data/tag/needsdesign.ttl +9 -0
- package/data/tag/{needsdocumentation.ttl → needsfulldocumentation.ttl} +3 -3
- package/data/tag/needsimplementation.ttl +9 -0
- package/data/tag/needstriage.ttl +1 -1
- package/data/tag/specialadoption-docs.ttl +1 -1
- package/data/tag/triagedbacklog.ttl +2 -2
- package/data/tag/triagedrejected.ttl +2 -2
- package/data/tag/upstream-candidate.ttl +1 -1
- package/data/tag/upstream-compliant.ttl +1 -1
- package/data/tag/waiting-for-delta-review.ttl +1 -1
- package/data/tag/wpeinital-implementation.ttl +1 -1
- package/data/tag/wpetriageupstream-and-deprecate.ttl +1 -0
- package/data/tagcategory/design--documentation-status.ttl +6 -0
- package/data/tagcategory/{documentation-stage.ttl → implementationnotes.ttl} +2 -2
- package/data/tagcategory/implementationstatus.ttl +6 -0
- package/data/tagcategory/implementationworkflow.ttl +6 -0
- package/package.json +10 -10
- package/skills/adoption-a1-styles/SKILL.md +38 -8
- package/skills/adoption-a2-components/SKILL.md +44 -4
- package/skills/adoption-a3-forms/SKILL.md +1 -1
- package/skills/anatomy-author/SKILL.md +26 -2
- package/skills/design-auditor/SKILL.md +1 -1
- package/skills/implement-component/SKILL.md +1 -1
- package/skills/specify-component/SKILL.md +1 -1
- package/skills/specify-pattern/SKILL.md +1 -1
- package/src/collect/types.ts +1 -1
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +0 -14
|
@@ -16,122 +16,122 @@ ds:apps_landscape.component.grouped_select a ds:Component;
|
|
|
16
16
|
ds:name "`groupedOptions`";
|
|
17
17
|
ds:summary "Defines the native groups and their options.";
|
|
18
18
|
ds:propertyType "list of objects";
|
|
19
|
-
ds:
|
|
20
|
-
ds:
|
|
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.";
|
|
20
|
+
ds:defaultValue "—"
|
|
21
21
|
], [
|
|
22
22
|
a ds:Property;
|
|
23
23
|
ds:name "`name`";
|
|
24
|
-
ds:summary "Sets the native field name and supplies the fallback id source.
|
|
24
|
+
ds:summary "Sets the native field name and supplies the fallback id source.";
|
|
25
25
|
ds:propertyType "text";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
26
|
+
ds:constraints "The derived id replaces underscores and whitespace with hyphens, splits one camel-case boundary at a time, and lowercases the result.";
|
|
27
|
+
ds:defaultValue "—"
|
|
28
28
|
], [
|
|
29
29
|
a ds:Property;
|
|
30
30
|
ds:name "`group`";
|
|
31
31
|
ds:summary "Controlled selected group label.";
|
|
32
32
|
ds:propertyType "text";
|
|
33
|
-
ds:
|
|
34
|
-
ds:
|
|
33
|
+
ds:constraints "Used only when `option` is non-empty to build the DOM value `${group}/${option}`.";
|
|
34
|
+
ds:defaultValue "—"
|
|
35
35
|
], [
|
|
36
36
|
a ds:Property;
|
|
37
37
|
ds:name "`option`";
|
|
38
38
|
ds:summary "Controlled selected option value.";
|
|
39
39
|
ds:propertyType "text";
|
|
40
|
-
ds:
|
|
41
|
-
ds:
|
|
40
|
+
ds:constraints "An empty string forces the select value to `\"\"`; callers must provide a matching option for non-empty values.";
|
|
41
|
+
ds:defaultValue "—"
|
|
42
42
|
], [
|
|
43
43
|
a ds:Property;
|
|
44
44
|
ds:name "`onChange`";
|
|
45
|
-
ds:summary "Reports the selected option value first and group label second.
|
|
45
|
+
ds:summary "Reports the selected option value first and group label second.";
|
|
46
46
|
ds:propertyType "callback";
|
|
47
|
-
ds:
|
|
48
|
-
ds:
|
|
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.";
|
|
48
|
+
ds:defaultValue "—"
|
|
49
49
|
], [
|
|
50
50
|
a ds:Property;
|
|
51
51
|
ds:name "`id`";
|
|
52
52
|
ds:summary "Overrides the derived select id and label target.";
|
|
53
53
|
ds:propertyType "text";
|
|
54
|
-
ds:defaultValue "Derived from `name`";
|
|
55
54
|
ds:constraints "Use a page-unique id.";
|
|
55
|
+
ds:defaultValue "Derived from `name`";
|
|
56
56
|
ds:optional "true"
|
|
57
57
|
], [
|
|
58
58
|
a ds:Property;
|
|
59
59
|
ds:name "`label`";
|
|
60
60
|
ds:summary "Renders the native field label.";
|
|
61
61
|
ds:propertyType "text";
|
|
62
|
-
ds:defaultValue "`\"\"`";
|
|
63
62
|
ds:constraints "An empty string omits the label entirely.";
|
|
63
|
+
ds:defaultValue "`\"\"`";
|
|
64
64
|
ds:optional "true"
|
|
65
65
|
], [
|
|
66
66
|
a ds:Property;
|
|
67
67
|
ds:name "`emptyOption`";
|
|
68
68
|
ds:summary "Optionally inserts an empty first option.";
|
|
69
69
|
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.";
|
|
70
71
|
ds:defaultValue "—";
|
|
71
|
-
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
72
|
ds:optional "true"
|
|
73
73
|
], [
|
|
74
74
|
a ds:Property;
|
|
75
75
|
ds:name "`error`";
|
|
76
|
-
ds:summary "Applies invalid styling, `aria-invalid`, and renders error content after `Error:`.
|
|
76
|
+
ds:summary "Applies invalid styling, `aria-invalid`, and renders error content after `Error:`.";
|
|
77
77
|
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.";
|
|
78
79
|
ds:defaultValue "—";
|
|
79
|
-
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
80
|
ds:optional "true"
|
|
81
81
|
], [
|
|
82
82
|
a ds:Property;
|
|
83
83
|
ds:name "`onBlur`";
|
|
84
84
|
ds:summary "Forwards the native select blur event.";
|
|
85
85
|
ds:propertyType "callback";
|
|
86
|
+
ds:constraints "Exact type: `FocusEventHandler<HTMLSelectElement>`. No internal touched state is maintained.";
|
|
86
87
|
ds:defaultValue "—";
|
|
87
|
-
ds:constraints "Exact type: `FocusEventHandler<HTMLSelectElement>`. No internal touched state is maintained. ";
|
|
88
88
|
ds:optional "true"
|
|
89
89
|
], [
|
|
90
90
|
a ds:Property;
|
|
91
91
|
ds:name "`disabled`";
|
|
92
92
|
ds:summary "Sets the native select's disabled state.";
|
|
93
93
|
ds:propertyType "boolean";
|
|
94
|
+
ds:constraints "Omission is treated as false and does not alter the controlled value.";
|
|
94
95
|
ds:defaultValue "—";
|
|
95
|
-
ds:constraints "Omission is treated as false and does not alter the controlled value. ";
|
|
96
96
|
ds:optional "true"
|
|
97
97
|
], [
|
|
98
98
|
a ds:Property;
|
|
99
99
|
ds:name "`hidden`";
|
|
100
|
-
ds:summary "Sets the native `hidden` attribute on the select only.
|
|
100
|
+
ds:summary "Sets the native `hidden` attribute on the select only.";
|
|
101
101
|
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.";
|
|
102
103
|
ds:defaultValue "—";
|
|
103
|
-
ds:constraints "Omission is treated as false. The outer wrapper, optional label, and error message remain in the DOM and may remain visible. ";
|
|
104
104
|
ds:optional "true"
|
|
105
105
|
], [
|
|
106
106
|
a ds:Property;
|
|
107
107
|
ds:name "`required`";
|
|
108
108
|
ds:summary "Adds `is-required` to the visible label.";
|
|
109
109
|
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.";
|
|
110
111
|
ds:defaultValue "—";
|
|
111
|
-
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
112
|
ds:optional "true"
|
|
113
113
|
], [
|
|
114
114
|
a ds:Property;
|
|
115
115
|
ds:name "`className`";
|
|
116
116
|
ds:summary "Adds classes to the native select.";
|
|
117
117
|
ds:propertyType "text";
|
|
118
|
-
ds:defaultValue "—";
|
|
119
118
|
ds:constraints "Does not style the wrapper or label.";
|
|
119
|
+
ds:defaultValue "—";
|
|
120
120
|
ds:optional "true"
|
|
121
121
|
], [
|
|
122
122
|
a ds:Property;
|
|
123
123
|
ds:name "`labelClassName`";
|
|
124
124
|
ds:summary "Adds classes to the label.";
|
|
125
125
|
ds:propertyType "text";
|
|
126
|
-
ds:defaultValue "—";
|
|
127
126
|
ds:constraints "Has no effect when `label` is empty.";
|
|
127
|
+
ds:defaultValue "—";
|
|
128
128
|
ds:optional "true"
|
|
129
129
|
], [
|
|
130
130
|
a ds:Property;
|
|
131
131
|
ds:name "`wrapperClassName`";
|
|
132
132
|
ds:summary "Adds classes to the root validation wrapper.";
|
|
133
133
|
ds:propertyType "text";
|
|
134
|
-
ds:defaultValue "—";
|
|
135
134
|
ds:constraints "—";
|
|
135
|
+
ds:defaultValue "—";
|
|
136
136
|
ds:optional "true"
|
|
137
137
|
].
|
|
@@ -14,17 +14,17 @@ ds:apps_landscape.component.loading_state a ds:Component;
|
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "`LoadingState.centerOnScreen`";
|
|
17
|
-
ds:summary "Adds the full-viewport-height centering class to the outer non-inline wrapper.
|
|
17
|
+
ds:summary "Adds the full-viewport-height centering class to the outer non-inline wrapper.";
|
|
18
18
|
ds:propertyType "boolean";
|
|
19
|
-
ds:
|
|
20
|
-
ds:constraints "It does not add another element. Ignored when `inline` is truthy because the inline branch returns before wrapper rendering.
|
|
21
|
-
ds:
|
|
19
|
+
ds:optional "true";
|
|
20
|
+
ds:constraints "It does not add another element. Ignored when `inline` is truthy because the inline branch returns before wrapper rendering.";
|
|
21
|
+
ds:defaultValue "—"
|
|
22
22
|
], [
|
|
23
23
|
a ds:Property;
|
|
24
24
|
ds:name "`LoadingState.inline`";
|
|
25
|
-
ds:summary "Renders a bare status span instead of the contained strip structure.
|
|
25
|
+
ds:summary "Renders a bare status span instead of the contained strip structure.";
|
|
26
26
|
ds:propertyType "boolean";
|
|
27
|
-
ds:
|
|
28
|
-
ds:constraints "Takes precedence over `centerOnScreen`; intended for compact placements.
|
|
29
|
-
ds:
|
|
27
|
+
ds:optional "true";
|
|
28
|
+
ds:constraints "Takes precedence over `centerOnScreen`; intended for compact placements.";
|
|
29
|
+
ds:defaultValue "—"
|
|
30
30
|
].
|
|
@@ -16,60 +16,60 @@ ds:apps_landscape.component.managed_file_input a ds:Component;
|
|
|
16
16
|
ds:name "`ManagedFileInput.value`";
|
|
17
17
|
ds:summary "Selects empty or selected render state.";
|
|
18
18
|
ds:propertyType "object";
|
|
19
|
-
ds:
|
|
20
|
-
ds:
|
|
19
|
+
ds:constraints "TypeScript: `File | null`. Only one file is represented; parent updates control state.";
|
|
20
|
+
ds:defaultValue "—"
|
|
21
21
|
], [
|
|
22
22
|
a ds:Property;
|
|
23
23
|
ds:name "`ManagedFileInput.onFileUpload`";
|
|
24
|
-
ds:summary "Awaited after a non-empty native `FileList` is copied to an array.
|
|
24
|
+
ds:summary "Awaited after a non-empty native `FileList` is copied to an array.";
|
|
25
25
|
ds:propertyType "callback";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
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.";
|
|
27
|
+
ds:defaultValue "—"
|
|
28
28
|
], [
|
|
29
29
|
a ds:Property;
|
|
30
30
|
ds:name "`ManagedFileInput.onFileRemove`";
|
|
31
|
-
ds:summary "Passed directly to the remove Button's click handler.
|
|
31
|
+
ds:summary "Passed directly to the remove Button's click handler.";
|
|
32
32
|
ds:propertyType "callback";
|
|
33
|
-
ds:
|
|
34
|
-
ds:
|
|
33
|
+
ds:constraints "TypeScript: `() => Promise<void>`. Parent must update `value`; no local pending, disabled, or error behavior is added. Rejections are not caught.";
|
|
34
|
+
ds:defaultValue "—"
|
|
35
35
|
], [
|
|
36
36
|
a ds:Property;
|
|
37
37
|
ds:name "`ManagedFileInput.error`";
|
|
38
|
-
ds:summary "Empty state passes it to Canonical Input; selected state adds `is-error` and renders custom error markup.
|
|
38
|
+
ds:summary "Empty state passes it to Canonical Input; selected state adds `is-error` and renders custom error markup.";
|
|
39
39
|
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.";
|
|
40
41
|
ds:defaultValue "—";
|
|
41
|
-
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
42
|
ds:optional "true"
|
|
43
43
|
], [
|
|
44
44
|
a ds:Property;
|
|
45
45
|
ds:name "ManagedFileInput.help";
|
|
46
|
-
ds:summary "Empty state passes it to Input; selected state renders it before the filename.
|
|
46
|
+
ds:summary "Empty state passes it to Input; selected state renders it before the filename.";
|
|
47
47
|
ds:propertyType "node";
|
|
48
|
+
ds:constraints "TypeScript: `string | ReactNode`. React content is supported according to `InputProps`.";
|
|
48
49
|
ds:defaultValue "—";
|
|
49
|
-
ds:constraints "TypeScript: `string | ReactNode`. React content is supported according to `InputProps`. ";
|
|
50
50
|
ds:optional "true"
|
|
51
51
|
], [
|
|
52
52
|
a ds:Property;
|
|
53
53
|
ds:name "`ManagedFileInput.label`";
|
|
54
|
-
ds:summary "Labels the empty-state Input; selected state renders label-styled text.
|
|
54
|
+
ds:summary "Labels the empty-state Input; selected state renders label-styled text.";
|
|
55
55
|
ds:propertyType "node";
|
|
56
|
+
ds:constraints "TypeScript: `string | ReactNode`. The selected-state `<label>` is not associated with a form control.";
|
|
56
57
|
ds:defaultValue "—";
|
|
57
|
-
ds:constraints "TypeScript: `string | ReactNode`. The selected-state `<label>` is not associated with a form control. ";
|
|
58
58
|
ds:optional "true"
|
|
59
59
|
], [
|
|
60
60
|
a ds:Property;
|
|
61
61
|
ds:name "`ManagedFileInput.onBlur`";
|
|
62
|
-
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.
|
|
62
|
+
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
63
|
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.";
|
|
64
65
|
ds:defaultValue "—";
|
|
65
|
-
ds:constraints "TypeScript: `(event: FocusEvent<HTMLInputElement>) => void`. There is no callback on blur alone, after a rejected upload, or without a stored event. ";
|
|
66
66
|
ds:optional "true"
|
|
67
67
|
], [
|
|
68
68
|
a ds:Property;
|
|
69
69
|
ds:name "`ManagedFileInput` remaining Input props";
|
|
70
|
-
ds:summary "Forwarded to the empty-state Canonical Input, including contracts such as `accept`, `name`, `required`, `disabled`, classes, and data/ARIA props where supported.
|
|
70
|
+
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
71
|
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.";
|
|
72
73
|
ds:defaultValue "Canonical Input defaults";
|
|
73
|
-
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
74
|
ds:optional "true"
|
|
75
75
|
].
|
|
@@ -16,308 +16,308 @@ ds:apps_landscape.component.multi_select_field a ds:Component;
|
|
|
16
16
|
ds:name "`items`";
|
|
17
17
|
ds:summary "Supplies the available options.";
|
|
18
18
|
ds:propertyType "list of objects";
|
|
19
|
-
ds:
|
|
20
|
-
ds:
|
|
19
|
+
ds:constraints "TypeScript: `MultiSelectItem[]`. When `disabled` is true, this array also replaces `disabledItems`.";
|
|
20
|
+
ds:defaultValue "—"
|
|
21
21
|
], [
|
|
22
22
|
a ds:Property;
|
|
23
23
|
ds:name "`items[].label`";
|
|
24
24
|
ds:summary "Supplies an option's visible label.";
|
|
25
25
|
ds:propertyType "text";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
26
|
+
ds:constraints "TypeScript: `string`.";
|
|
27
|
+
ds:defaultValue "—"
|
|
28
28
|
], [
|
|
29
29
|
a ds:Property;
|
|
30
30
|
ds:name "`items[].value`";
|
|
31
31
|
ds:summary "Supplies an option's submitted identity.";
|
|
32
32
|
ds:propertyType "text";
|
|
33
|
-
ds:
|
|
34
|
-
ds:
|
|
33
|
+
ds:constraints "TypeScript: `string | number`.";
|
|
34
|
+
ds:defaultValue "—"
|
|
35
35
|
], [
|
|
36
36
|
a ds:Property;
|
|
37
37
|
ds:name "`items[].group`";
|
|
38
38
|
ds:summary "Assigns an option to a group.";
|
|
39
39
|
ds:propertyType "text";
|
|
40
|
-
ds:defaultValue "—";
|
|
41
40
|
ds:constraints "TypeScript: `string`.";
|
|
41
|
+
ds:defaultValue "—";
|
|
42
42
|
ds:optional "true"
|
|
43
43
|
], [
|
|
44
44
|
a ds:Property;
|
|
45
45
|
ds:name "`selectedItems`";
|
|
46
46
|
ds:summary "Supplies the caller-owned selected options.";
|
|
47
47
|
ds:propertyType "list of objects";
|
|
48
|
+
ds:constraints "TypeScript: `MultiSelectItem[]`. The wrapper stores no selected-item state.";
|
|
48
49
|
ds:defaultValue "—";
|
|
49
|
-
ds:constraints "TypeScript: `MultiSelectItem[]`. The wrapper stores no selected-item state. ";
|
|
50
50
|
ds:optional "true"
|
|
51
51
|
], [
|
|
52
52
|
a ds:Property;
|
|
53
53
|
ds:name "`disabledItems`";
|
|
54
|
-
ds:summary "Supplies individually disabled options while the field is enabled.
|
|
54
|
+
ds:summary "Supplies individually disabled options while the field is enabled.";
|
|
55
55
|
ds:propertyType "list of objects";
|
|
56
|
+
ds:constraints "TypeScript: `MultiSelectItem[]`. Ignored in favor of all `items` when `disabled` is true.";
|
|
56
57
|
ds:defaultValue "—";
|
|
57
|
-
ds:constraints "TypeScript: `MultiSelectItem[]`. Ignored in favor of all `items` when `disabled` is true. ";
|
|
58
58
|
ds:optional "true"
|
|
59
59
|
], [
|
|
60
60
|
a ds:Property;
|
|
61
61
|
ds:name "`disabled`";
|
|
62
62
|
ds:summary "Disables the control.";
|
|
63
63
|
ds:propertyType "boolean";
|
|
64
|
+
ds:constraints "TypeScript: `boolean`. A true value also disables every item.";
|
|
64
65
|
ds:defaultValue "—";
|
|
65
|
-
ds:constraints "TypeScript: `boolean`. A true value also disables every item. ";
|
|
66
66
|
ds:optional "true"
|
|
67
67
|
], [
|
|
68
68
|
a ds:Property;
|
|
69
69
|
ds:name "`error`";
|
|
70
|
-
ds:summary "Applies error styling and displays validation feedback.
|
|
70
|
+
ds:summary "Applies error styling and displays validation feedback.";
|
|
71
71
|
ds:propertyType "text";
|
|
72
|
+
ds:constraints "TypeScript: `string`. A truthy value is forwarded and rendered in both the dropdown footer and persistent feedback.";
|
|
72
73
|
ds:defaultValue "—";
|
|
73
|
-
ds:constraints "TypeScript: `string`. A truthy value is forwarded and rendered in both the dropdown footer and persistent feedback. ";
|
|
74
74
|
ds:optional "true"
|
|
75
75
|
], [
|
|
76
76
|
a ds:Property;
|
|
77
77
|
ds:name "`help`";
|
|
78
78
|
ds:summary "Renders persistent help before the control.";
|
|
79
79
|
ds:propertyType "node";
|
|
80
|
+
ds:constraints "TypeScript: `ReactNode`. Truthiness controls rendering; the wrapper adds no `aria-describedby` relationship.";
|
|
80
81
|
ds:defaultValue "—";
|
|
81
|
-
ds:constraints "TypeScript: `ReactNode`. Truthiness controls rendering; the wrapper adds no `aria-describedby` relationship. ";
|
|
82
82
|
ds:optional "true"
|
|
83
83
|
], [
|
|
84
84
|
a ds:Property;
|
|
85
85
|
ds:name "`helpClassName`";
|
|
86
86
|
ds:summary "Supplies Canonical MultiSelect help classes.";
|
|
87
87
|
ds:propertyType "text";
|
|
88
|
+
ds:constraints "TypeScript: `string`. The wrapper consumes `help`, so this has no wrapper-owned help target.";
|
|
88
89
|
ds:defaultValue "—";
|
|
89
|
-
ds:constraints "TypeScript: `string`. The wrapper consumes `help`, so this has no wrapper-owned help target. ";
|
|
90
90
|
ds:optional "true"
|
|
91
91
|
], [
|
|
92
92
|
a ds:Property;
|
|
93
93
|
ds:name "`label`";
|
|
94
|
-
ds:summary "Renders the outer label and labels Canonical MultiSelect.
|
|
94
|
+
ds:summary "Renders the outer label and labels Canonical MultiSelect.";
|
|
95
95
|
ds:propertyType "text";
|
|
96
|
+
ds:constraints "TypeScript: `string`. The outer label has no `htmlFor`.";
|
|
96
97
|
ds:defaultValue "—";
|
|
97
|
-
ds:constraints "TypeScript: `string`. The outer label has no `htmlFor`. ";
|
|
98
98
|
ds:optional "true"
|
|
99
99
|
], [
|
|
100
100
|
a ds:Property;
|
|
101
101
|
ds:name "`listSelected`";
|
|
102
|
-
ds:summary "Selects Canonical MultiSelect's selected-item listing behavior.
|
|
102
|
+
ds:summary "Selects Canonical MultiSelect's selected-item listing behavior.";
|
|
103
103
|
ds:propertyType "boolean";
|
|
104
|
+
ds:constraints "TypeScript: `boolean`. Forwarded unchanged.";
|
|
104
105
|
ds:defaultValue "—";
|
|
105
|
-
ds:constraints "TypeScript: `boolean`. Forwarded unchanged. ";
|
|
106
106
|
ds:optional "true"
|
|
107
107
|
], [
|
|
108
108
|
a ds:Property;
|
|
109
109
|
ds:name "`onDeselectItem`";
|
|
110
110
|
ds:summary "Handles deselection of one option.";
|
|
111
111
|
ds:propertyType "callback";
|
|
112
|
+
ds:constraints "TypeScript: `(item: MultiSelectItem) => void`.";
|
|
112
113
|
ds:defaultValue "—";
|
|
113
|
-
ds:constraints "TypeScript: `(item: MultiSelectItem) => void`. ";
|
|
114
114
|
ds:optional "true"
|
|
115
115
|
], [
|
|
116
116
|
a ds:Property;
|
|
117
117
|
ds:name "`onItemsUpdate`";
|
|
118
118
|
ds:summary "Handles changes to the selected option array.";
|
|
119
119
|
ds:propertyType "callback";
|
|
120
|
+
ds:constraints "TypeScript: `(items: MultiSelectItem[]) => void`.";
|
|
120
121
|
ds:defaultValue "—";
|
|
121
|
-
ds:constraints "TypeScript: `(items: MultiSelectItem[]) => void`. ";
|
|
122
122
|
ds:optional "true"
|
|
123
123
|
], [
|
|
124
124
|
a ds:Property;
|
|
125
125
|
ds:name "`onSelectItem`";
|
|
126
126
|
ds:summary "Handles selection of one option.";
|
|
127
127
|
ds:propertyType "callback";
|
|
128
|
+
ds:constraints "TypeScript: `(item: MultiSelectItem) => void`.";
|
|
128
129
|
ds:defaultValue "—";
|
|
129
|
-
ds:constraints "TypeScript: `(item: MultiSelectItem) => void`. ";
|
|
130
130
|
ds:optional "true"
|
|
131
131
|
], [
|
|
132
132
|
a ds:Property;
|
|
133
133
|
ds:name "`placeholder`";
|
|
134
134
|
ds:summary "Supplies placeholder text for the control.";
|
|
135
135
|
ds:propertyType "text";
|
|
136
|
-
ds:defaultValue "—";
|
|
137
136
|
ds:constraints "TypeScript: `string`.";
|
|
137
|
+
ds:defaultValue "—";
|
|
138
138
|
ds:optional "true"
|
|
139
139
|
], [
|
|
140
140
|
a ds:Property;
|
|
141
141
|
ds:name "`required`";
|
|
142
142
|
ds:summary "Adds required visual treatment to the outer label.";
|
|
143
143
|
ds:propertyType "boolean";
|
|
144
|
+
ds:constraints "TypeScript: `boolean`. It is not forwarded to Canonical MultiSelect.";
|
|
144
145
|
ds:defaultValue "—";
|
|
145
|
-
ds:constraints "TypeScript: `boolean`. It is not forwarded to Canonical MultiSelect. ";
|
|
146
146
|
ds:optional "true"
|
|
147
147
|
], [
|
|
148
148
|
a ds:Property;
|
|
149
149
|
ds:name "`renderItem`";
|
|
150
150
|
ds:summary "Customizes option rendering.";
|
|
151
151
|
ds:propertyType "callback";
|
|
152
|
+
ds:constraints "TypeScript: `(item: MultiSelectItem) => ReactNode`.";
|
|
152
153
|
ds:defaultValue "—";
|
|
153
|
-
ds:constraints "TypeScript: `(item: MultiSelectItem) => ReactNode`. ";
|
|
154
154
|
ds:optional "true"
|
|
155
155
|
], [
|
|
156
156
|
a ds:Property;
|
|
157
157
|
ds:name "`dropdownHeader`";
|
|
158
158
|
ds:summary "Supplies content at the start of the dropdown.";
|
|
159
159
|
ds:propertyType "node";
|
|
160
|
-
ds:defaultValue "—";
|
|
161
160
|
ds:constraints "TypeScript: `ReactNode`.";
|
|
161
|
+
ds:defaultValue "—";
|
|
162
162
|
ds:optional "true"
|
|
163
163
|
], [
|
|
164
164
|
a ds:Property;
|
|
165
165
|
ds:name "`dropdownFooter`";
|
|
166
166
|
ds:summary "Supplies content at the end of the dropdown.";
|
|
167
167
|
ds:propertyType "node";
|
|
168
|
+
ds:constraints "TypeScript: `ReactNode`. With an error, it follows the dropdown error copy inside a validation wrapper.";
|
|
168
169
|
ds:defaultValue "—";
|
|
169
|
-
ds:constraints "TypeScript: `ReactNode`. With an error, it follows the dropdown error copy inside a validation wrapper. ";
|
|
170
170
|
ds:optional "true"
|
|
171
171
|
], [
|
|
172
172
|
a ds:Property;
|
|
173
173
|
ds:name "`footerClassName`";
|
|
174
174
|
ds:summary "Adds classes to the dropdown footer.";
|
|
175
175
|
ds:propertyType "text";
|
|
176
|
-
ds:defaultValue "—";
|
|
177
176
|
ds:constraints "TypeScript: `string`.";
|
|
177
|
+
ds:defaultValue "—";
|
|
178
178
|
ds:optional "true"
|
|
179
179
|
], [
|
|
180
180
|
a ds:Property;
|
|
181
181
|
ds:name "`inputClassName`";
|
|
182
182
|
ds:summary "Adds classes to the Canonical MultiSelect input.";
|
|
183
183
|
ds:propertyType "text";
|
|
184
|
-
ds:defaultValue "—";
|
|
185
184
|
ds:constraints "TypeScript: `string`.";
|
|
185
|
+
ds:defaultValue "—";
|
|
186
186
|
ds:optional "true"
|
|
187
187
|
], [
|
|
188
188
|
a ds:Property;
|
|
189
189
|
ds:name "`dropdownClassName`";
|
|
190
190
|
ds:summary "Adds classes to the dropdown.";
|
|
191
191
|
ds:propertyType "text";
|
|
192
|
-
ds:defaultValue "—";
|
|
193
192
|
ds:constraints "TypeScript: `string`.";
|
|
193
|
+
ds:defaultValue "—";
|
|
194
194
|
ds:optional "true"
|
|
195
195
|
], [
|
|
196
196
|
a ds:Property;
|
|
197
197
|
ds:name "`emptyState`";
|
|
198
198
|
ds:summary "Supplies custom empty-state content.";
|
|
199
199
|
ds:propertyType "node";
|
|
200
|
-
ds:defaultValue "—";
|
|
201
200
|
ds:constraints "TypeScript: `ReactNode`.";
|
|
201
|
+
ds:defaultValue "—";
|
|
202
202
|
ds:optional "true"
|
|
203
203
|
], [
|
|
204
204
|
a ds:Property;
|
|
205
205
|
ds:name "`emptyMessage`";
|
|
206
206
|
ds:summary "Supplies the empty-state message.";
|
|
207
207
|
ds:propertyType "text";
|
|
208
|
-
ds:defaultValue "—";
|
|
209
208
|
ds:constraints "TypeScript: `string`.";
|
|
209
|
+
ds:defaultValue "—";
|
|
210
210
|
ds:optional "true"
|
|
211
211
|
], [
|
|
212
212
|
a ds:Property;
|
|
213
213
|
ds:name "`showDropdownFooter`";
|
|
214
214
|
ds:summary "Controls Canonical MultiSelect footer visibility.";
|
|
215
215
|
ds:propertyType "boolean";
|
|
216
|
-
ds:defaultValue "—";
|
|
217
216
|
ds:constraints "TypeScript: `boolean`.";
|
|
217
|
+
ds:defaultValue "—";
|
|
218
218
|
ds:optional "true"
|
|
219
219
|
], [
|
|
220
220
|
a ds:Property;
|
|
221
221
|
ds:name "`variant`";
|
|
222
222
|
ds:summary "Selects the Canonical MultiSelect trigger variant.";
|
|
223
223
|
ds:propertyType "choice";
|
|
224
|
+
ds:constraints "TypeScript: `\"condensed\" | \"search\"`.";
|
|
224
225
|
ds:defaultValue "—";
|
|
225
|
-
ds:constraints "TypeScript: `\"condensed\" | \"search\"`. ";
|
|
226
226
|
ds:optional "true"
|
|
227
227
|
], [
|
|
228
228
|
a ds:Property;
|
|
229
229
|
ds:name "`scrollOverflow`";
|
|
230
230
|
ds:summary "Controls dropdown overflow behavior.";
|
|
231
231
|
ds:propertyType "boolean";
|
|
232
|
+
ds:constraints "TypeScript: `boolean`. Forwarded values override the wrapper fallback.";
|
|
232
233
|
ds:defaultValue "true";
|
|
233
|
-
ds:constraints "TypeScript: `boolean`. Forwarded values override the wrapper fallback. ";
|
|
234
234
|
ds:optional "true"
|
|
235
235
|
], [
|
|
236
236
|
a ds:Property;
|
|
237
237
|
ds:name "`isSortedAlphabetically`";
|
|
238
238
|
ds:summary "Controls alphabetical option sorting.";
|
|
239
239
|
ds:propertyType "boolean";
|
|
240
|
-
ds:defaultValue "—";
|
|
241
240
|
ds:constraints "TypeScript: `boolean`.";
|
|
241
|
+
ds:defaultValue "—";
|
|
242
242
|
ds:optional "true"
|
|
243
243
|
], [
|
|
244
244
|
a ds:Property;
|
|
245
245
|
ds:name "`hasSelectedItemsFirst`";
|
|
246
246
|
ds:summary "Controls whether selected options appear first.";
|
|
247
247
|
ds:propertyType "boolean";
|
|
248
|
-
ds:defaultValue "—";
|
|
249
248
|
ds:constraints "TypeScript: `boolean`.";
|
|
249
|
+
ds:defaultValue "—";
|
|
250
250
|
ds:optional "true"
|
|
251
251
|
], [
|
|
252
252
|
a ds:Property;
|
|
253
253
|
ds:name "`id`";
|
|
254
254
|
ds:summary "Supplies the Canonical MultiSelect identifier.";
|
|
255
255
|
ds:propertyType "text";
|
|
256
|
-
ds:defaultValue "—";
|
|
257
256
|
ds:constraints "TypeScript: `string`.";
|
|
257
|
+
ds:defaultValue "—";
|
|
258
258
|
ds:optional "true"
|
|
259
259
|
], [
|
|
260
260
|
a ds:Property;
|
|
261
261
|
ds:name "`onSearchChange`";
|
|
262
262
|
ds:summary "Handles search-text changes.";
|
|
263
263
|
ds:propertyType "callback";
|
|
264
|
+
ds:constraints "TypeScript: `(value: string) => void`.";
|
|
264
265
|
ds:defaultValue "—";
|
|
265
|
-
ds:constraints "TypeScript: `(value: string) => void`. ";
|
|
266
266
|
ds:optional "true"
|
|
267
267
|
], [
|
|
268
268
|
a ds:Property;
|
|
269
269
|
ds:name "`onOpen`";
|
|
270
|
-
ds:summary "Notifies when observed `aria-expanded` becomes `\"true\"`.
|
|
270
|
+
ds:summary "Notifies when observed `aria-expanded` becomes `\"true\"`.";
|
|
271
271
|
ds:propertyType "callback";
|
|
272
|
+
ds:constraints "TypeScript: `() => void`. A `MutationObserver` watches the first descendant with `[aria-expanded]`; no initial callback fires.";
|
|
272
273
|
ds:defaultValue "—";
|
|
273
|
-
ds:constraints "TypeScript: `() => void`. A `MutationObserver` watches the first descendant with `[aria-expanded]`; no initial callback fires. ";
|
|
274
274
|
ds:optional "true"
|
|
275
275
|
], [
|
|
276
276
|
a ds:Property;
|
|
277
277
|
ds:name "`onClose`";
|
|
278
|
-
ds:summary "Notifies when observed `aria-expanded` changes away from `\"true\"`.
|
|
278
|
+
ds:summary "Notifies when observed `aria-expanded` changes away from `\"true\"`.";
|
|
279
279
|
ds:propertyType "callback";
|
|
280
|
+
ds:constraints "TypeScript: `() => void`. Observation depends on Canonical MultiSelect's rendered control.";
|
|
280
281
|
ds:defaultValue "—";
|
|
281
|
-
ds:constraints "TypeScript: `() => void`. Observation depends on Canonical MultiSelect's rendered control. ";
|
|
282
282
|
ds:optional "true"
|
|
283
283
|
], [
|
|
284
284
|
a ds:Property;
|
|
285
285
|
ds:name "`searchButtonType`";
|
|
286
|
-
ds:summary "Selects the search trigger's native button type.
|
|
286
|
+
ds:summary "Selects the search trigger's native button type.";
|
|
287
287
|
ds:propertyType "choice";
|
|
288
|
+
ds:constraints "TypeScript: `\"submit\" | \"button\"`.";
|
|
288
289
|
ds:defaultValue "—";
|
|
289
|
-
ds:constraints "TypeScript: `\"submit\" | \"button\"`. ";
|
|
290
290
|
ds:optional "true"
|
|
291
291
|
], [
|
|
292
292
|
a ds:Property;
|
|
293
293
|
ds:name "`className`";
|
|
294
294
|
ds:summary "Adds classes to the root wrapper.";
|
|
295
295
|
ds:propertyType "text";
|
|
296
|
+
ds:constraints "TypeScript: `string`. Local validation and state classes remain applied.";
|
|
296
297
|
ds:defaultValue "—";
|
|
297
|
-
ds:constraints "TypeScript: `string`. Local validation and state classes remain applied. ";
|
|
298
298
|
ds:optional "true"
|
|
299
299
|
], [
|
|
300
300
|
a ds:Property;
|
|
301
301
|
ds:name "`innerRef`";
|
|
302
302
|
ds:summary "Receives the root wrapper node.";
|
|
303
303
|
ds:propertyType "object";
|
|
304
|
+
ds:constraints "TypeScript: `Ref<HTMLDivElement>`. Supports callback and mutable object refs; the implementation does not explicitly write `null` on unmount.";
|
|
304
305
|
ds:defaultValue "—";
|
|
305
|
-
ds:constraints "TypeScript: `Ref<HTMLDivElement>`. Supports callback and mutable object refs; the implementation does not explicitly write `null` on unmount. ";
|
|
306
306
|
ds:optional "true"
|
|
307
307
|
], [
|
|
308
308
|
a ds:Property;
|
|
309
309
|
ds:name "`labelClassName`";
|
|
310
310
|
ds:summary "Adds classes to the outer label.";
|
|
311
311
|
ds:propertyType "text";
|
|
312
|
+
ds:constraints "TypeScript: `string`. Has no effect when `label` is absent.";
|
|
312
313
|
ds:defaultValue "—";
|
|
313
|
-
ds:constraints "TypeScript: `string`. Has no effect when `label` is absent. ";
|
|
314
314
|
ds:optional "true"
|
|
315
315
|
], [
|
|
316
316
|
a ds:Property;
|
|
317
317
|
ds:name "`warning`";
|
|
318
|
-
ds:summary "Applies caution styling and renders feedback below the control.
|
|
318
|
+
ds:summary "Applies caution styling and renders feedback below the control.";
|
|
319
319
|
ds:propertyType "node";
|
|
320
|
+
ds:constraints "TypeScript: `ReactNode`. It is not forwarded or included in the dropdown footer.";
|
|
320
321
|
ds:defaultValue "—";
|
|
321
|
-
ds:constraints "TypeScript: `ReactNode`. It is not forwarded or included in the dropdown footer. ";
|
|
322
322
|
ds:optional "true"
|
|
323
323
|
].
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
ds:apps_landscape.component.password_constraints a ds:Component;
|
|
6
6
|
ds:name "PasswordConstraints";
|
|
7
|
-
ds:summary "The **Password Constraints** component is a validation feedback list that helps users ensure their password meets security requirements in real-time. It displays a list of criteria (length, casing, numbers) that update visually to indicate success, failure, or neutral states based on the user's input
|
|
7
|
+
ds:summary "The **Password Constraints** component is a validation feedback list that helps users ensure their password meets security requirements in real-time. It displays a list of criteria (length, casing, numbers) that update visually to indicate success, failure, or neutral states based on the user's input.";
|
|
8
8
|
ds:anatomyDsl "---\n# 1. Container (Root)\nnode:\n uri: global.component.password-constraints\n styles:\n # Structural\n layout.display: block\n layout.type: stack\n layout.direction: vertical\n # Themeable\n spacing.gap: spacing/vertical/small\n\n edges:\n # 2. Title\n - node:\n role: title label\n styles:\n typography.size: font/size/small # Maps to .p-text--small\n typography.color: color/text/muted # Maps to .u-text--muted\n spacing.margin.bottom: spacing/vertical/small\n relation:\n cardinality: \"1\"\n\n # 3. Constraints List\n - node:\n role: constraints list container\n styles:\n layout.display: block\n edges:\n # 4. Constraint Item (Repeating)\n - node:\n role: constraint item\n styles:\n # Structural (from .constraint class)\n layout.type: flow # Maps to display: flex\n layout.direction: horizontal\n layout.align: center # Maps to align-items: center\n\n # Themeable\n spacing.gap: spacing/small # Maps to column-gap: $sph--small\n spacing.margin.bottom: spacing/small # Maps to margin-bottom: $spv--small\n\n # Dynamic Appearance (State-based)\n # Maps to .passed, .default, .failed classes\n typography.color: [color/positive, color/text/muted, color/negative]\n\n edges:\n # 5. Status Icon\n - node:\n uri: global.component.icon\n styles:\n size.width: size/icon/small\n size.height: size/icon/small\n relation:\n cardinality: \"1\"\n\n # 6. Constraint Label\n - node:\n role: label text\n styles:\n typography.size: font/size/small # Maps to .p-text--small\n relation:\n cardinality: \"1\"\n\n relation:\n cardinality: \"4\" # Fixed at 4 items in the original code\n relation:\n cardinality: \"1\"";
|
|
9
9
|
ds:anatomyClassic "Table\n\n";
|
|
10
10
|
ds:usage "**When to Use**\n\n- **Password Creation:** Use in registration or \"change password\" forms where specific complexity rules are enforced.\n- **Real-time Validation:** Use to provide immediate feedback as the user types, rather than waiting for form submission.\n\n**When Not to Use**\n\n- **Simple Inputs:** Do not use for standard text fields that do not require complex validation logic.\n- **Hidden logic:** Do not use if the password requirements are not publicly disclosed to the user.";
|