@canonical/design-system 0.44.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/apps/component/file_tree.ttl +1 -1
- package/data/apps/component/inline_panel.ttl +17 -0
- package/data/apps/component/key_value_pair.ttl +1 -1
- package/data/apps/{subcomponent → component}/log.ttl +1 -1
- package/data/apps/component/navigation.ttl +1 -1
- package/data/apps/component/notification.ttl +1 -1
- package/data/apps/component/side_navigation.ttl +50 -6
- package/data/apps/group/key_value_pairs.ttl +1 -1
- package/data/apps/group/notifications.ttl +1 -1
- package/data/apps/layout/application_layout.ttl +1 -1
- package/data/apps/layout/content_layout.ttl +2 -3
- package/data/apps/layout/empty_layout.ttl +1 -1
- package/data/apps/layout/empty_state.ttl +1 -1
- package/data/{apps_workplaceengineering/pattern/group_card.ttl → apps/layout/login_layout.ttl} +4 -5
- package/data/apps/layout/side_panel_form_layout.ttl +13 -0
- package/data/apps/pattern/action_bar.ttl +2 -2
- package/data/apps/pattern/code_diff.ttl +1 -1
- package/data/apps/pattern/datatable.ttl +30 -31
- package/data/apps/pattern/destructive_modal.ttl +1 -1
- package/data/apps/pattern/drawer.ttl +1 -1
- package/data/apps/pattern/notification_center.ttl +2 -2
- package/data/apps/pattern/page_header.ttl +13 -0
- package/data/apps/pattern/side_panel.ttl +258 -10
- package/data/apps/subcomponent/data_table-action_bar.ttl +6 -6
- package/data/apps/subcomponent/data_table-body_cell.ttl +26 -26
- package/data/apps/subcomponent/data_table-group_header_row.ttl +8 -8
- package/data/apps/subcomponent/data_table-header_cell.ttl +13 -13
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +9 -9
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +10 -10
- package/data/apps/subcomponent/data_table-settings_menu.ttl +15 -15
- package/data/apps/subcomponent/drawer-content.ttl +1 -1
- package/data/apps/subcomponent/drawer-footer.ttl +1 -1
- package/data/apps/subcomponent/drawer-header.ttl +1 -1
- package/data/apps/subcomponent/side_navigation-content.ttl +13 -0
- package/data/apps/subcomponent/side_navigation-context_switcher.ttl +53 -0
- package/data/apps/subcomponent/side_navigation-item.ttl +80 -0
- package/data/apps/subcomponent/side_navigation-item_group.ttl +13 -0
- package/data/apps/subcomponent/side_panel-content.ttl +2 -2
- package/data/apps/subcomponent/side_panel-footer.ttl +196 -3
- package/data/apps/subcomponent/side_panel-header.ttl +212 -3
- package/data/apps_anbox/component/theme_switcher.ttl +1 -1
- package/data/apps_anbox/pattern/side_menu.ttl +0 -1
- package/data/{tagcategory/lpupstream.ttl → apps_identity.ttl} +2 -2
- package/data/apps_landscape/component/checkbox_group.ttl +24 -24
- package/data/apps_landscape/component/code_editor.ttl +35 -35
- package/data/apps_landscape/component/cron_schedule.ttl +4 -4
- package/data/apps_landscape/component/expandable_radio_group.ttl +47 -47
- package/data/apps_landscape/component/expandable_truncation.ttl +20 -20
- package/data/apps_landscape/component/form_section.ttl +4 -4
- package/data/apps_landscape/component/gpg_key_field.ttl +27 -27
- package/data/apps_landscape/component/grouped_select.ttl +25 -25
- package/data/apps_landscape/component/loading_state.ttl +8 -8
- package/data/apps_landscape/component/managed_file_input.ttl +18 -18
- package/data/apps_landscape/component/multi_select_field.ttl +50 -50
- package/data/apps_landscape/component/password_constraints.ttl +1 -1
- package/data/apps_landscape/component/progress_bar.ttl +20 -20
- package/data/apps_landscape/component/read_only_field.ttl +15 -15
- package/data/apps_landscape/component/search_help_popup.ttl +10 -10
- package/data/apps_landscape/component/search_query_editor.ttl +33 -33
- package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
- package/data/apps_landscape/pattern/content_blocks.ttl +20 -20
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +37 -37
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +6 -6
- package/data/apps_landscape/pattern/form_field_help.ttl +28 -28
- package/data/apps_landscape/pattern/header_search_controls.ttl +41 -41
- package/data/apps_landscape/pattern/ignorable_notification.ttl +16 -16
- package/data/apps_landscape/pattern/information_grid.ttl +14 -14
- package/data/apps_landscape/pattern/instance_association.ttl +5 -5
- package/data/apps_landscape/pattern/process_flow.ttl +11 -11
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +32 -32
- package/data/apps_landscape/pattern/recurring_schedule.ttl +3 -3
- package/data/apps_landscape/pattern/responsive_action_group.ttl +12 -12
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +11 -11
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +40 -40
- package/data/apps_landscape/pattern/sortable_list.ttl +14 -14
- package/data/apps_landscape/pattern/table_filter.ttl +57 -57
- package/data/apps_landscape/pattern/table_filter_chips.ttl +67 -67
- package/data/apps_landscape/pattern/table_pagination.ttl +63 -63
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +22 -22
- package/data/apps_landscape/subcomponent/bold_substring.ttl +4 -4
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +8 -8
- package/data/apps_landscape/subcomponent/label_with_description.ttl +14 -14
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +8 -8
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +12 -12
- package/data/apps_launchpad/component/avatar.ttl +2 -2
- package/data/apps_launchpad/component/badge.ttl +2 -2
- package/data/apps_launchpad/component/breadcrumbs.ttl +1 -1
- package/data/apps_launchpad/component/button.ttl +2 -2
- package/data/apps_launchpad/component/checkbox_input.ttl +4 -4
- package/data/apps_launchpad/component/combobox.ttl +2 -2
- package/data/apps_launchpad/component/drawer.ttl +4 -4
- package/data/apps_launchpad/component/modal.ttl +6 -14
- package/data/apps_launchpad/component/radio_input.ttl +5 -5
- package/data/apps_launchpad/component/select_input.ttl +1 -1
- package/data/apps_launchpad/component/switch.ttl +5 -5
- package/data/apps_launchpad/component/text_input.ttl +8 -8
- package/data/apps_launchpad/component/textarea_input.ttl +10 -10
- package/data/apps_launchpad/component/tooltip.ttl +3 -3
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +2 -2
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +4 -4
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +1 -1
- package/data/apps_launchpad/subcomponent/modal-content.ttl +2 -2
- package/data/apps_lxd/component/back_link.ttl +1 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/doc_link.ttl +2 -2
- package/data/apps_lxd/component/meter.ttl +5 -5
- package/data/apps_lxd/component/output_field.ttl +2 -3
- package/data/apps_lxd/component/rename_header.ttl +15 -15
- package/data/apps_lxd/component/tab_links.ttl +4 -4
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +2 -2
- package/data/apps_lxd/view/network_topology.ttl +3 -4
- package/data/apps_portal/layout/details_view.ttl +0 -1
- package/data/apps_workplaceengineering/component/label-highlight.ttl +2 -3
- package/data/apps_workplaceengineering/component/org_chart.ttl +12 -0
- package/data/apps_workplaceengineering/component/theme_switcher.ttl +1 -1
- package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +2 -2
- package/data/apps_workplaceengineering/pattern/{event_timeline.ttl → org_event_card.ttl} +3 -4
- package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +1 -1
- package/data/concept/Filtering-patterns.ttl +11 -0
- package/data/concept/Foundations-Grid--Layout.ttl +2 -2
- package/data/concept/Foundations-Surfaces.ttl +1 -1
- package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +3 -3
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +1 -1
- package/data/concept/Overflow.ttl +11 -0
- package/data/concept/Question-mark-vs-information-icon.ttl +1 -1
- package/data/documentation/layout/content_page_layout.ttl +13 -0
- package/data/documentation/layout/documentation_layout.ttl +2 -1
- package/data/documentation/layout/library_layout.ttl +13 -0
- package/data/documentation/layout/search_page_layout.ttl +13 -0
- package/data/documentation/pattern/library_side_navigation.ttl +3 -3
- package/data/global/component/accordion.ttl +6 -185
- package/data/global/component/announcement.ttl +2 -3
- package/data/global/component/avatar.ttl +1 -1
- package/data/global/component/badge.ttl +5 -7
- package/data/global/component/breadcrumbs.ttl +7 -6
- package/data/global/component/button.ttl +5 -23
- package/data/global/component/card.ttl +3 -8
- package/data/global/component/checkbox_field.ttl +1 -1
- package/data/global/component/chip.ttl +4 -6
- package/data/global/component/choices_field.ttl +11 -3
- package/data/global/component/code_snippet.ttl +2 -3
- package/data/global/component/color_field.ttl +1 -1
- package/data/global/component/combobox_field.ttl +2 -18
- package/data/global/component/contextual_menu.ttl +4 -6
- package/data/global/component/data_tooltip.ttl +4 -4
- package/data/global/component/date_field.ttl +1 -1
- package/data/global/component/date_time_field.ttl +1 -1
- package/data/global/component/drag_and_drop_list.ttl +2 -2
- package/data/global/component/dropdown_button.ttl +4 -5
- package/data/global/component/file_upload_field.ttl +1 -1
- package/data/global/component/heading.ttl +4 -4
- package/data/global/component/hidden_field.ttl +1 -1
- package/data/global/component/icon.ttl +2 -2
- package/data/global/component/icon_button.ttl +13 -0
- package/data/global/component/icon_in_container.ttl +7 -2
- package/data/global/component/inline_code.ttl +1 -1
- package/data/global/component/keyboard_key.ttl +1 -1
- package/data/global/{layout/form_layout.ttl → component/link.ttl} +3 -3
- package/data/global/component/links.ttl +12 -0
- package/data/global/component/mode_switcher.ttl +1 -1
- package/data/global/component/notification_toast.ttl +1 -1
- package/data/global/component/pagination.ttl +2 -2
- package/data/global/component/password_field.ttl +1 -1
- package/data/global/component/phone_field.ttl +1 -1
- package/data/global/component/popover.ttl +1 -1
- package/data/global/component/query_builder.ttl +12 -0
- package/data/global/component/range_field.ttl +1 -1
- package/data/global/component/rating_field.ttl +1 -1
- package/data/global/component/relative_timestamp.ttl +2 -1
- package/data/global/component/rich_choices_field.ttl +1 -1
- package/data/global/component/rich_text_editor.ttl +12 -0
- package/data/global/component/rich_text_field.ttl +1 -1
- package/data/global/component/search_field.ttl +1 -1
- package/data/global/component/segmented_control.ttl +13 -0
- package/data/global/component/segmented_control_field.ttl +1 -1
- package/data/global/component/select_field.ttl +1 -1
- package/data/global/component/switch_field.ttl +1 -1
- package/data/global/component/table.ttl +2 -2
- package/data/global/component/tabs.ttl +1 -1
- package/data/global/component/tag.ttl +2 -2
- package/data/global/component/text_field.ttl +1 -1
- package/data/global/component/textarea_field.ttl +1 -1
- package/data/global/component/tile.ttl +3 -6
- package/data/global/component/time_field.ttl +1 -1
- package/data/global/component/timestamp.ttl +2 -1
- package/data/global/component/tooltip.ttl +43 -45
- package/data/global/component/tooltip_wrapper.ttl +2 -2
- package/data/global/group/buttons.ttl +1 -8
- package/data/global/group/cards.ttl +1 -5
- package/data/global/group/code_snippets.ttl +1 -1
- package/data/global/group/keyboard_keys.ttl +1 -1
- package/data/global/group/tiles.ttl +1 -1
- package/data/global/modifier/information.ttl +1 -1
- package/data/global/pattern/field.ttl +1 -1
- package/data/global/pattern/filter.ttl +13 -0
- package/data/global/pattern/form_login.ttl +1 -1
- package/data/global/pattern/modal.ttl +5 -21
- package/data/global/pattern/navigation.ttl +1 -1
- package/data/global/pattern/stepper.ttl +1 -1
- package/data/global/pattern/table_of_contents.ttl +1 -1
- package/data/global/pattern/timeline.ttl +15 -20
- package/data/global/subcomponent/accordion-item.ttl +3 -156
- package/data/global/subcomponent/card-content.ttl +1 -1
- package/data/global/subcomponent/card-footer.ttl +1 -1
- package/data/global/subcomponent/card-header.ttl +1 -1
- package/data/global/subcomponent/card-image.ttl +2 -2
- package/data/global/subcomponent/card-thumbnail.ttl +1 -1
- package/data/global/subcomponent/checkbox_input.ttl +1 -1
- package/data/global/subcomponent/color_input.ttl +1 -1
- package/data/global/subcomponent/combobox_input.ttl +2 -18
- package/data/global/subcomponent/date_input.ttl +1 -1
- package/data/global/subcomponent/date_time_input.ttl +1 -1
- package/data/global/subcomponent/field-description.ttl +1 -1
- package/data/global/subcomponent/field-label.ttl +1 -1
- package/data/global/subcomponent/file_upload_input.ttl +1 -1
- package/data/global/subcomponent/hidden_input.ttl +1 -1
- package/data/global/subcomponent/modal-content.ttl +1 -1
- package/data/global/subcomponent/modal-footer.ttl +2 -18
- package/data/global/subcomponent/modal-header.ttl +5 -21
- package/data/global/subcomponent/password_input.ttl +1 -1
- package/data/global/subcomponent/phone_input.ttl +1 -1
- package/data/global/subcomponent/radio_input.ttl +1 -1
- package/data/global/subcomponent/range_input.ttl +1 -1
- package/data/global/subcomponent/rating_input.ttl +1 -1
- package/data/global/subcomponent/rich_text_input.ttl +1 -1
- package/data/global/subcomponent/search_input.ttl +3 -4
- package/data/global/subcomponent/segmented_control_input.ttl +1 -1
- package/data/global/subcomponent/select_input.ttl +1 -1
- package/data/global/subcomponent/spinner.ttl +2 -2
- package/data/global/subcomponent/switch_input.ttl +1 -1
- package/data/global/subcomponent/text_input.ttl +1 -1
- package/data/global/subcomponent/textarea_input.ttl +1 -1
- package/data/global/subcomponent/tile-content.ttl +1 -1
- package/data/global/subcomponent/time_input.ttl +1 -1
- package/data/global/subcomponent/timeline-content.ttl +2 -2
- package/data/global/subcomponent/timeline-event.ttl +5 -5
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +1 -1
- package/data/global/subcomponent/timeline-header.ttl +1 -1
- package/data/global/variant/tooltip_dense.ttl +1 -1
- package/data/sites/component/store_card.ttl +92 -0
- package/data/sites/pattern/hero.ttl +295 -4
- package/data/{stores.ttl → sites_stores.ttl} +2 -2
- package/data/tag/designin-progress.ttl +9 -0
- package/data/tag/devbatch1.ttl +1 -1
- package/data/tag/devbatch2.ttl +1 -1
- package/data/tag/devbatch3.ttl +1 -1
- package/data/tag/devdone.ttl +9 -0
- package/data/tag/devin-progress.ttl +9 -0
- package/data/tag/devin-review.ttl +9 -0
- package/data/tag/devpre-approved.ttl +9 -0
- package/data/tag/{stylesready.ttl → devreactdone.ttl} +3 -3
- package/data/tag/devreactpreapproved.ttl +1 -1
- package/data/tag/{devreactapproved.ttl → devsveltepreapproved.ttl} +3 -3
- package/data/tag/divergent.ttl +1 -1
- package/data/tag/docscomplete.ttl +1 -1
- package/data/tag/global-docs-missing.ttl +1 -1
- package/data/tag/has-no-global-entry.ttl +1 -1
- package/data/tag/implementationcomplete.ttl +9 -0
- package/data/tag/lpto-be-upstreamed.ttl +1 -1
- package/data/tag/lptriageblocked-reqs-design.ttl +1 -1
- package/data/tag/lptriageno-upstream.ttl +1 -1
- package/data/tag/lptriagereimplement-and-deprecate.ttl +1 -1
- package/data/tag/lptriagereimplement-and-keep.ttl +1 -1
- package/data/tag/lptriageupstream-and-deprecate.ttl +1 -1
- package/data/tag/{needsdefinition.ttl → needscoredocumentation.ttl} +3 -3
- package/data/tag/needsdesign.ttl +9 -0
- package/data/tag/{needsdocumentation.ttl → needsfulldocumentation.ttl} +3 -3
- package/data/tag/needsimplementation.ttl +9 -0
- package/data/tag/needstriage.ttl +1 -1
- package/data/tag/specialadoption-docs.ttl +1 -1
- package/data/tag/triagedbacklog.ttl +2 -2
- package/data/tag/triagedrejected.ttl +2 -2
- package/data/tag/upstream-candidate.ttl +1 -1
- package/data/tag/upstream-compliant.ttl +1 -1
- package/data/tag/waiting-for-delta-review.ttl +1 -1
- package/data/tag/wpeinital-implementation.ttl +1 -1
- package/data/tag/wpetriageupstream-and-deprecate.ttl +1 -0
- package/data/tagcategory/design--documentation-status.ttl +6 -0
- package/data/tagcategory/{documentation-stage.ttl → implementationnotes.ttl} +2 -2
- package/data/tagcategory/implementationstatus.ttl +6 -0
- package/data/tagcategory/implementationworkflow.ttl +6 -0
- package/package.json +6 -6
- package/skills/adoption-a1-styles/SKILL.md +37 -7
- package/skills/adoption-a2-components/SKILL.md +43 -3
- package/skills/anatomy-author/SKILL.md +25 -1
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +0 -14
|
@@ -5,10 +5,203 @@
|
|
|
5
5
|
ds:apps.subcomponent.side_panel-footer a ds:Subcomponent;
|
|
6
6
|
ds:name "SidePanel.Footer";
|
|
7
7
|
ds:summary "";
|
|
8
|
-
ds:anatomyDsl "", "
|
|
8
|
+
ds:anatomyDsl "", "---\n\n# Authored 2026-09-17 from @canonical/react-ds-app\n\n# src/lib/SidePanel/common/Footer/styles.css on .ds.side-panel-footer.\n\nnode:\n\n uri: apps.subcomponent.side_panel-footer\n\n styles:\n\n # Never shrinks, and stays visible: the panel scrolls beneath it.\n\n layout.flex.grow: 0\n\n layout.flex.shrink: 0\n\n layout.position: sticky\n\n layout.offset.block.end: 0\n\n # Above the in-flow content, whatever it contains.\n\n layout.stack: 1\n\n # Opaque, so scrolling content passes behind rather than through; `inherit`\n\n # resolves whatever surface colour the panel painted.\n\n appearance.background: inherit\n\n layout.type: flex\n\n layout.justify: end\n\n layout.align: center\n\n layout.wrap: wrap\n\n spacing.gap: 0.5rem\n\n spacing.internal.block.start: 0.5rem\n\n spacing.internal.block.end: 0.5rem\n\n # Closes the scroll region. It lives here rather than on the content pane\n\n # because the panel is the scroller: a border on the content would scroll\n\n # away, whereas this one is pinned by the sticky footer. The colour is the\n\n # muted border (--color-border-muted), a divider, not a boundary. The\n\n # roster measures border widths on the top key and colours on the\n\n # block-start key; the shorthand's `solid` goes through the box-wide style\n\n # key.\n\n appearance.border.top.width: dimension.stroke.thickness.medium\n\n appearance.border.block.start.color: color.border.muted\n\n appearance.border.style: solid\n\n edges:\n\n - node:\n\n uri: global.component.button\n\n relation:\n\n cardinality: \"0..*\"\n\n slotName: default";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
14
|
-
ds:parentComponent ds:apps.pattern.side_panel
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
|
+
ds:parentComponent ds:apps.pattern.side_panel;
|
|
15
|
+
ds:hasTokenBinding [
|
|
16
|
+
a ds:TokenBinding;
|
|
17
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-footer;
|
|
18
|
+
ds:node "$root";
|
|
19
|
+
anatomy:styleKey "appearance.border.top.width";
|
|
20
|
+
anatomy:styleState "default";
|
|
21
|
+
ds:rank 1;
|
|
22
|
+
ds:consumesSymbol dt:dimension.stroke.thickness.medium
|
|
23
|
+
], [
|
|
24
|
+
a ds:TokenBinding;
|
|
25
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-footer;
|
|
26
|
+
ds:node "$root";
|
|
27
|
+
anatomy:styleKey "appearance.border.block.start.color";
|
|
28
|
+
anatomy:styleState "default";
|
|
29
|
+
ds:rank 1;
|
|
30
|
+
ds:consumesSymbol dt:color.border.muted
|
|
31
|
+
], [
|
|
32
|
+
a ds:TokenBinding;
|
|
33
|
+
ds:viaBlock ds:global.component.button;
|
|
34
|
+
ds:node "$root";
|
|
35
|
+
anatomy:styleKey "appearance.border.width";
|
|
36
|
+
anatomy:styleState "default";
|
|
37
|
+
ds:rank 1;
|
|
38
|
+
ds:consumesSymbol dt:dimension.stroke.thickness.medium
|
|
39
|
+
], [
|
|
40
|
+
a ds:TokenBinding;
|
|
41
|
+
ds:viaBlock ds:global.component.button;
|
|
42
|
+
ds:node "$root";
|
|
43
|
+
anatomy:styleKey "appearance.background";
|
|
44
|
+
anatomy:styleState "default";
|
|
45
|
+
ds:rank 1;
|
|
46
|
+
ds:consumesSymbol dt:modifier.color.foreground.primary
|
|
47
|
+
], [
|
|
48
|
+
a ds:TokenBinding;
|
|
49
|
+
ds:viaBlock ds:global.component.button;
|
|
50
|
+
ds:node "$root";
|
|
51
|
+
anatomy:styleKey "appearance.background";
|
|
52
|
+
anatomy:styleState "default";
|
|
53
|
+
ds:rank 2;
|
|
54
|
+
ds:consumesSymbol dt:color.foreground.primary
|
|
55
|
+
], [
|
|
56
|
+
a ds:TokenBinding;
|
|
57
|
+
ds:viaBlock ds:global.component.button;
|
|
58
|
+
ds:node "$root";
|
|
59
|
+
anatomy:styleKey "appearance.background";
|
|
60
|
+
anatomy:styleState "hover";
|
|
61
|
+
ds:rank 1;
|
|
62
|
+
ds:consumesSymbol dt:color.foreground.primary.hover
|
|
63
|
+
], [
|
|
64
|
+
a ds:TokenBinding;
|
|
65
|
+
ds:viaBlock ds:global.component.button;
|
|
66
|
+
ds:node "$root";
|
|
67
|
+
anatomy:styleKey "appearance.background";
|
|
68
|
+
anatomy:styleState "active";
|
|
69
|
+
ds:rank 1;
|
|
70
|
+
ds:consumesSymbol dt:color.foreground.primary.active
|
|
71
|
+
], [
|
|
72
|
+
a ds:TokenBinding;
|
|
73
|
+
ds:viaBlock ds:global.component.button;
|
|
74
|
+
ds:node "$root";
|
|
75
|
+
anatomy:styleKey "appearance.background";
|
|
76
|
+
anatomy:styleState "disabled";
|
|
77
|
+
ds:rank 1;
|
|
78
|
+
ds:consumesSymbol dt:color.foreground.primary.disabled
|
|
79
|
+
], [
|
|
80
|
+
a ds:TokenBinding;
|
|
81
|
+
ds:viaBlock ds:global.component.button;
|
|
82
|
+
ds:node "$root";
|
|
83
|
+
anatomy:styleKey "appearance.border.color";
|
|
84
|
+
anatomy:styleState "default";
|
|
85
|
+
ds:rank 1;
|
|
86
|
+
ds:consumesSymbol dt:modifier.color.border
|
|
87
|
+
], [
|
|
88
|
+
a ds:TokenBinding;
|
|
89
|
+
ds:viaBlock ds:global.component.button;
|
|
90
|
+
ds:node "$root";
|
|
91
|
+
anatomy:styleKey "appearance.border.color";
|
|
92
|
+
anatomy:styleState "default";
|
|
93
|
+
ds:rank 2;
|
|
94
|
+
ds:consumesSymbol dt:color.border.highlighted
|
|
95
|
+
], [
|
|
96
|
+
a ds:TokenBinding;
|
|
97
|
+
ds:viaBlock ds:global.component.button;
|
|
98
|
+
ds:node "$root";
|
|
99
|
+
anatomy:styleKey "appearance.border.color";
|
|
100
|
+
anatomy:styleState "default";
|
|
101
|
+
ds:rank 3;
|
|
102
|
+
ds:consumesSymbol dt:color.border
|
|
103
|
+
], [
|
|
104
|
+
a ds:TokenBinding;
|
|
105
|
+
ds:viaBlock ds:global.component.button;
|
|
106
|
+
ds:node "$root";
|
|
107
|
+
anatomy:styleKey "appearance.border.color";
|
|
108
|
+
anatomy:styleState "disabled";
|
|
109
|
+
ds:rank 1;
|
|
110
|
+
ds:consumesSymbol dt:color.border.highlighted.disabled
|
|
111
|
+
], [
|
|
112
|
+
a ds:TokenBinding;
|
|
113
|
+
ds:viaBlock ds:global.component.button;
|
|
114
|
+
ds:node "$root";
|
|
115
|
+
anatomy:styleKey "typography.color";
|
|
116
|
+
anatomy:styleState "default";
|
|
117
|
+
ds:rank 1;
|
|
118
|
+
ds:consumesSymbol dt:modifier.color.text
|
|
119
|
+
], [
|
|
120
|
+
a ds:TokenBinding;
|
|
121
|
+
ds:viaBlock ds:global.component.button;
|
|
122
|
+
ds:node "$root";
|
|
123
|
+
anatomy:styleKey "typography.color";
|
|
124
|
+
anatomy:styleState "default";
|
|
125
|
+
ds:rank 2;
|
|
126
|
+
ds:consumesSymbol dt:color.text
|
|
127
|
+
], [
|
|
128
|
+
a ds:TokenBinding;
|
|
129
|
+
ds:viaBlock ds:global.component.button;
|
|
130
|
+
ds:node "$root";
|
|
131
|
+
anatomy:styleKey "typography.color";
|
|
132
|
+
anatomy:styleState "disabled";
|
|
133
|
+
ds:rank 1;
|
|
134
|
+
ds:consumesSymbol dt:color.text.disabled
|
|
135
|
+
], [
|
|
136
|
+
a ds:TokenBinding;
|
|
137
|
+
ds:viaBlock ds:global.component.button;
|
|
138
|
+
ds:node "$root";
|
|
139
|
+
anatomy:styleKey "typography.font";
|
|
140
|
+
anatomy:styleState "default";
|
|
141
|
+
ds:rank 1;
|
|
142
|
+
ds:consumesSymbol dt:typography.text.primary
|
|
143
|
+
], [
|
|
144
|
+
a ds:TokenBinding;
|
|
145
|
+
ds:viaBlock ds:global.component.button;
|
|
146
|
+
ds:node "$root";
|
|
147
|
+
anatomy:styleKey "spacing.gap";
|
|
148
|
+
anatomy:styleState "default";
|
|
149
|
+
ds:rank 1;
|
|
150
|
+
ds:consumesSymbol dt:dimension.100
|
|
151
|
+
], [
|
|
152
|
+
a ds:TokenBinding;
|
|
153
|
+
ds:viaBlock ds:global.component.button;
|
|
154
|
+
ds:node "$root";
|
|
155
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
156
|
+
anatomy:styleState "default";
|
|
157
|
+
ds:rank 1;
|
|
158
|
+
ds:consumesSymbol dt:dimension.200
|
|
159
|
+
], [
|
|
160
|
+
a ds:TokenBinding;
|
|
161
|
+
ds:viaBlock ds:global.component.button;
|
|
162
|
+
ds:node "$root";
|
|
163
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
164
|
+
anatomy:styleState "default";
|
|
165
|
+
ds:rank 1;
|
|
166
|
+
ds:consumesSymbol dt:dimension.200
|
|
167
|
+
], [
|
|
168
|
+
a ds:TokenBinding;
|
|
169
|
+
ds:viaBlock ds:global.component.button;
|
|
170
|
+
ds:node "$root";
|
|
171
|
+
anatomy:styleKey "appearance.outline.color";
|
|
172
|
+
anatomy:styleState "focus";
|
|
173
|
+
ds:rank 1;
|
|
174
|
+
ds:consumesSymbol dt:modifier.color.focusRing
|
|
175
|
+
], [
|
|
176
|
+
a ds:TokenBinding;
|
|
177
|
+
ds:viaBlock ds:global.component.button;
|
|
178
|
+
ds:node "$root";
|
|
179
|
+
anatomy:styleKey "appearance.outline.color";
|
|
180
|
+
anatomy:styleState "focus";
|
|
181
|
+
ds:rank 2;
|
|
182
|
+
ds:consumesSymbol dt:color.focusRing
|
|
183
|
+
], [
|
|
184
|
+
a ds:TokenBinding;
|
|
185
|
+
ds:viaBlock ds:global.component.button;
|
|
186
|
+
ds:node "$root/icon";
|
|
187
|
+
anatomy:styleKey "typography.color";
|
|
188
|
+
anatomy:styleState "default";
|
|
189
|
+
ds:rank 1;
|
|
190
|
+
ds:consumesSymbol dt:modifier.color.icon
|
|
191
|
+
], [
|
|
192
|
+
a ds:TokenBinding;
|
|
193
|
+
ds:viaBlock ds:global.component.button;
|
|
194
|
+
ds:node "$root/icon";
|
|
195
|
+
anatomy:styleKey "typography.color";
|
|
196
|
+
anatomy:styleState "default";
|
|
197
|
+
ds:rank 2;
|
|
198
|
+
ds:consumesSymbol dt:modifier.color.text
|
|
199
|
+
], [
|
|
200
|
+
a ds:TokenBinding;
|
|
201
|
+
ds:viaBlock ds:global.component.button;
|
|
202
|
+
ds:node "$root/icon";
|
|
203
|
+
anatomy:styleKey "typography.color";
|
|
204
|
+
anatomy:styleState "disabled";
|
|
205
|
+
ds:rank 1;
|
|
206
|
+
ds:consumesSymbol dt:color.icon.disabled
|
|
207
|
+
].
|
|
@@ -5,10 +5,219 @@
|
|
|
5
5
|
ds:apps.subcomponent.side_panel-header a ds:Subcomponent;
|
|
6
6
|
ds:name "SidePanel.Header";
|
|
7
7
|
ds:summary "";
|
|
8
|
-
ds:anatomyDsl "", "
|
|
8
|
+
ds:anatomyDsl "", "---\n\n# Authored 2026-09-17 from @canonical/react-ds-app\n\n# src/lib/SidePanel/common/Header/styles.css on .ds.side-panel-header.\n\nnode:\n\n uri: apps.subcomponent.side_panel-header\n\n styles:\n\n # Never scrolls: sticky to the panel's scrollport while content passes\n\n # beneath it.\n\n layout.flex.grow: 0\n\n layout.flex.shrink: 0\n\n layout.position: sticky\n\n layout.offset.block.start: 0\n\n # Above the in-flow content, whatever it contains.\n\n layout.stack: 1\n\n # Opaque, so scrolling content passes behind rather than through. `inherit`\n\n # picks up whichever surface colour the panel resolved, so the two cannot\n\n # drift apart; written as it stands.\n\n appearance.background: inherit\n\n layout.type: flex\n\n layout.align: center\n\n # The gap and block padding read component-local custom properties over\n\n # --dimension-200; the roster's spacing.* keys admit spacing. symbols only,\n\n # so these are literal values.\n\n spacing.gap: 0.5rem\n\n spacing.internal.block.start: 0.5rem\n\n spacing.internal.block.end: 0.5rem\n\n edges:\n\n - node:\n\n role: title\n\n styles:\n\n # The heading-4 scale (--typography-heading-4-*), which retunes per\n\n # breakpoint. line-height reads\n\n # --typography-heading-4-line-height-dimension (--dimension-400); the\n\n # roster's typography.lineHeight admits typography. symbols only, so\n\n # it is not bound.\n\n typography.size: dimension.size.fontSize.500\n\n typography.weight: typography.weight.light\n\n typography.fontFamily: typography.fontFamily.default\n\n typography.letterSpacing: dimension.letterSpacing.default\n\n layout.flex.grow: 1\n\n layout.flex.shrink: 1\n\n relation:\n\n cardinality: \"1\"\n\n slotName: default\n\n - node:\n\n uri: global.component.button\n\n props:\n\n icon: close\n\n importance: tertiary\n\n relation:\n\n cardinality: \"0..1\" # omitted when the panel is undismissible\n\n slotName: dismiss";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
14
|
-
ds:parentComponent ds:apps.pattern.side_panel
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
|
+
ds:parentComponent ds:apps.pattern.side_panel;
|
|
15
|
+
ds:hasTokenBinding [
|
|
16
|
+
a ds:TokenBinding;
|
|
17
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
18
|
+
ds:node "$root/title";
|
|
19
|
+
anatomy:styleKey "typography.size";
|
|
20
|
+
anatomy:styleState "default";
|
|
21
|
+
ds:rank 1;
|
|
22
|
+
ds:consumesSymbol dt:dimension.size.fontSize.500
|
|
23
|
+
], [
|
|
24
|
+
a ds:TokenBinding;
|
|
25
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
26
|
+
ds:node "$root/title";
|
|
27
|
+
anatomy:styleKey "typography.weight";
|
|
28
|
+
anatomy:styleState "default";
|
|
29
|
+
ds:rank 1;
|
|
30
|
+
ds:consumesSymbol dt:typography.weight.light
|
|
31
|
+
], [
|
|
32
|
+
a ds:TokenBinding;
|
|
33
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
34
|
+
ds:node "$root/title";
|
|
35
|
+
anatomy:styleKey "typography.fontFamily";
|
|
36
|
+
anatomy:styleState "default";
|
|
37
|
+
ds:rank 1;
|
|
38
|
+
ds:consumesSymbol dt:typography.fontFamily.default
|
|
39
|
+
], [
|
|
40
|
+
a ds:TokenBinding;
|
|
41
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-header;
|
|
42
|
+
ds:node "$root/title";
|
|
43
|
+
anatomy:styleKey "typography.letterSpacing";
|
|
44
|
+
anatomy:styleState "default";
|
|
45
|
+
ds:rank 1;
|
|
46
|
+
ds:consumesSymbol dt:dimension.letterSpacing.default
|
|
47
|
+
], [
|
|
48
|
+
a ds:TokenBinding;
|
|
49
|
+
ds:viaBlock ds:global.component.button;
|
|
50
|
+
ds:node "$root";
|
|
51
|
+
anatomy:styleKey "appearance.border.width";
|
|
52
|
+
anatomy:styleState "default";
|
|
53
|
+
ds:rank 1;
|
|
54
|
+
ds:consumesSymbol dt:dimension.stroke.thickness.medium
|
|
55
|
+
], [
|
|
56
|
+
a ds:TokenBinding;
|
|
57
|
+
ds:viaBlock ds:global.component.button;
|
|
58
|
+
ds:node "$root";
|
|
59
|
+
anatomy:styleKey "appearance.background";
|
|
60
|
+
anatomy:styleState "default";
|
|
61
|
+
ds:rank 1;
|
|
62
|
+
ds:consumesSymbol dt:modifier.color.foreground.primary
|
|
63
|
+
], [
|
|
64
|
+
a ds:TokenBinding;
|
|
65
|
+
ds:viaBlock ds:global.component.button;
|
|
66
|
+
ds:node "$root";
|
|
67
|
+
anatomy:styleKey "appearance.background";
|
|
68
|
+
anatomy:styleState "default";
|
|
69
|
+
ds:rank 2;
|
|
70
|
+
ds:consumesSymbol dt:color.foreground.primary
|
|
71
|
+
], [
|
|
72
|
+
a ds:TokenBinding;
|
|
73
|
+
ds:viaBlock ds:global.component.button;
|
|
74
|
+
ds:node "$root";
|
|
75
|
+
anatomy:styleKey "appearance.background";
|
|
76
|
+
anatomy:styleState "hover";
|
|
77
|
+
ds:rank 1;
|
|
78
|
+
ds:consumesSymbol dt:color.foreground.primary.hover
|
|
79
|
+
], [
|
|
80
|
+
a ds:TokenBinding;
|
|
81
|
+
ds:viaBlock ds:global.component.button;
|
|
82
|
+
ds:node "$root";
|
|
83
|
+
anatomy:styleKey "appearance.background";
|
|
84
|
+
anatomy:styleState "active";
|
|
85
|
+
ds:rank 1;
|
|
86
|
+
ds:consumesSymbol dt:color.foreground.primary.active
|
|
87
|
+
], [
|
|
88
|
+
a ds:TokenBinding;
|
|
89
|
+
ds:viaBlock ds:global.component.button;
|
|
90
|
+
ds:node "$root";
|
|
91
|
+
anatomy:styleKey "appearance.background";
|
|
92
|
+
anatomy:styleState "disabled";
|
|
93
|
+
ds:rank 1;
|
|
94
|
+
ds:consumesSymbol dt:color.foreground.primary.disabled
|
|
95
|
+
], [
|
|
96
|
+
a ds:TokenBinding;
|
|
97
|
+
ds:viaBlock ds:global.component.button;
|
|
98
|
+
ds:node "$root";
|
|
99
|
+
anatomy:styleKey "appearance.border.color";
|
|
100
|
+
anatomy:styleState "default";
|
|
101
|
+
ds:rank 1;
|
|
102
|
+
ds:consumesSymbol dt:modifier.color.border
|
|
103
|
+
], [
|
|
104
|
+
a ds:TokenBinding;
|
|
105
|
+
ds:viaBlock ds:global.component.button;
|
|
106
|
+
ds:node "$root";
|
|
107
|
+
anatomy:styleKey "appearance.border.color";
|
|
108
|
+
anatomy:styleState "default";
|
|
109
|
+
ds:rank 2;
|
|
110
|
+
ds:consumesSymbol dt:color.border.highlighted
|
|
111
|
+
], [
|
|
112
|
+
a ds:TokenBinding;
|
|
113
|
+
ds:viaBlock ds:global.component.button;
|
|
114
|
+
ds:node "$root";
|
|
115
|
+
anatomy:styleKey "appearance.border.color";
|
|
116
|
+
anatomy:styleState "default";
|
|
117
|
+
ds:rank 3;
|
|
118
|
+
ds:consumesSymbol dt:color.border
|
|
119
|
+
], [
|
|
120
|
+
a ds:TokenBinding;
|
|
121
|
+
ds:viaBlock ds:global.component.button;
|
|
122
|
+
ds:node "$root";
|
|
123
|
+
anatomy:styleKey "appearance.border.color";
|
|
124
|
+
anatomy:styleState "disabled";
|
|
125
|
+
ds:rank 1;
|
|
126
|
+
ds:consumesSymbol dt:color.border.highlighted.disabled
|
|
127
|
+
], [
|
|
128
|
+
a ds:TokenBinding;
|
|
129
|
+
ds:viaBlock ds:global.component.button;
|
|
130
|
+
ds:node "$root";
|
|
131
|
+
anatomy:styleKey "typography.color";
|
|
132
|
+
anatomy:styleState "default";
|
|
133
|
+
ds:rank 1;
|
|
134
|
+
ds:consumesSymbol dt:modifier.color.text
|
|
135
|
+
], [
|
|
136
|
+
a ds:TokenBinding;
|
|
137
|
+
ds:viaBlock ds:global.component.button;
|
|
138
|
+
ds:node "$root";
|
|
139
|
+
anatomy:styleKey "typography.color";
|
|
140
|
+
anatomy:styleState "default";
|
|
141
|
+
ds:rank 2;
|
|
142
|
+
ds:consumesSymbol dt:color.text
|
|
143
|
+
], [
|
|
144
|
+
a ds:TokenBinding;
|
|
145
|
+
ds:viaBlock ds:global.component.button;
|
|
146
|
+
ds:node "$root";
|
|
147
|
+
anatomy:styleKey "typography.color";
|
|
148
|
+
anatomy:styleState "disabled";
|
|
149
|
+
ds:rank 1;
|
|
150
|
+
ds:consumesSymbol dt:color.text.disabled
|
|
151
|
+
], [
|
|
152
|
+
a ds:TokenBinding;
|
|
153
|
+
ds:viaBlock ds:global.component.button;
|
|
154
|
+
ds:node "$root";
|
|
155
|
+
anatomy:styleKey "typography.font";
|
|
156
|
+
anatomy:styleState "default";
|
|
157
|
+
ds:rank 1;
|
|
158
|
+
ds:consumesSymbol dt:typography.text.primary
|
|
159
|
+
], [
|
|
160
|
+
a ds:TokenBinding;
|
|
161
|
+
ds:viaBlock ds:global.component.button;
|
|
162
|
+
ds:node "$root";
|
|
163
|
+
anatomy:styleKey "spacing.gap";
|
|
164
|
+
anatomy:styleState "default";
|
|
165
|
+
ds:rank 1;
|
|
166
|
+
ds:consumesSymbol dt:dimension.100
|
|
167
|
+
], [
|
|
168
|
+
a ds:TokenBinding;
|
|
169
|
+
ds:viaBlock ds:global.component.button;
|
|
170
|
+
ds:node "$root";
|
|
171
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
172
|
+
anatomy:styleState "default";
|
|
173
|
+
ds:rank 1;
|
|
174
|
+
ds:consumesSymbol dt:dimension.200
|
|
175
|
+
], [
|
|
176
|
+
a ds:TokenBinding;
|
|
177
|
+
ds:viaBlock ds:global.component.button;
|
|
178
|
+
ds:node "$root";
|
|
179
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
180
|
+
anatomy:styleState "default";
|
|
181
|
+
ds:rank 1;
|
|
182
|
+
ds:consumesSymbol dt:dimension.200
|
|
183
|
+
], [
|
|
184
|
+
a ds:TokenBinding;
|
|
185
|
+
ds:viaBlock ds:global.component.button;
|
|
186
|
+
ds:node "$root";
|
|
187
|
+
anatomy:styleKey "appearance.outline.color";
|
|
188
|
+
anatomy:styleState "focus";
|
|
189
|
+
ds:rank 1;
|
|
190
|
+
ds:consumesSymbol dt:modifier.color.focusRing
|
|
191
|
+
], [
|
|
192
|
+
a ds:TokenBinding;
|
|
193
|
+
ds:viaBlock ds:global.component.button;
|
|
194
|
+
ds:node "$root";
|
|
195
|
+
anatomy:styleKey "appearance.outline.color";
|
|
196
|
+
anatomy:styleState "focus";
|
|
197
|
+
ds:rank 2;
|
|
198
|
+
ds:consumesSymbol dt:color.focusRing
|
|
199
|
+
], [
|
|
200
|
+
a ds:TokenBinding;
|
|
201
|
+
ds:viaBlock ds:global.component.button;
|
|
202
|
+
ds:node "$root/icon";
|
|
203
|
+
anatomy:styleKey "typography.color";
|
|
204
|
+
anatomy:styleState "default";
|
|
205
|
+
ds:rank 1;
|
|
206
|
+
ds:consumesSymbol dt:modifier.color.icon
|
|
207
|
+
], [
|
|
208
|
+
a ds:TokenBinding;
|
|
209
|
+
ds:viaBlock ds:global.component.button;
|
|
210
|
+
ds:node "$root/icon";
|
|
211
|
+
anatomy:styleKey "typography.color";
|
|
212
|
+
anatomy:styleState "default";
|
|
213
|
+
ds:rank 2;
|
|
214
|
+
ds:consumesSymbol dt:modifier.color.text
|
|
215
|
+
], [
|
|
216
|
+
a ds:TokenBinding;
|
|
217
|
+
ds:viaBlock ds:global.component.button;
|
|
218
|
+
ds:node "$root/icon";
|
|
219
|
+
anatomy:styleKey "typography.color";
|
|
220
|
+
anatomy:styleState "disabled";
|
|
221
|
+
ds:rank 1;
|
|
222
|
+
ds:consumesSymbol dt:color.icon.disabled
|
|
223
|
+
].
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
ds:apps_anbox.component.theme_switcher a ds:Component;
|
|
6
6
|
ds:name "ThemeSwitcher";
|
|
7
|
-
ds:summary "A control used to switch the interface theme between light and dark modes. It helps users quickly choose the visual appearance that is most comfortable for their environment, preference, or accessibility needs. Use it when the product supports multiple visual themes and users may need an explicit, persistent way to change them
|
|
7
|
+
ds:summary "A control used to switch the interface theme between light and dark modes. It helps users quickly choose the visual appearance that is most comfortable for their environment, preference, or accessibility needs. Use it when the product supports multiple visual themes and users may need an explicit, persistent way to change them.";
|
|
8
8
|
ds:anatomyDsl "@prefix ds: <https://ds.canonical.com/> .\n\nds:global.component.theme_switcher a ds:Component ; \n ds:name \"Theme switcher\" ; \n ds:description \"Control that lets users switch the interface theme between light and dark modes, typically represented with sun and moon visuals.\" ; \n ds:tier ds:global ; \n ds:whenToUse \"When a product supports multiple themes and users need a quick, explicit way to change the interface appearance.\" ; \n ds:whenNotToUse \"When the product supports only one theme, or when theme changes are controlled automatically without user override.\" ; \n ds:guidelines \"Use clear sun and moon affordances, preserve the user's selection, provide accessible labels and keyboard support, and communicate the current state clearly to assistive technologies.\" .";
|
|
9
9
|
ds:anatomyClassic "The theme switcher is composed of a small set of visual and interactive elements that communicate state and afford interaction clearly.\n\n### Parts\n\n- **Container**\n - The clickable/tappable area that wraps the entire control.\n - Defines hit area, spacing, and layout.\n - Appears as an icon highlighting the current state of the switcher.\n- **Toggle / Button**\n - The main interactive element.\n - Handles user input (click, tap, keyboard).\n - Visually represents the current state.\n- **Icon (light)**\n - Typically a sun symbol.\n - Represents the light theme state.\n - May be shown when active or as part of a transition.\n- **Icon (dark)**\n - Typically a moon symbol.\n - Represents the dark theme state.\n - May replace or animate from the light icon.\n- **Focus indicator**\n - Visible outline or highlight when the component receives keyboard focus.\n - Must be clearly visible in both light and dark themes.\n- **Label (optional)**\n - Text describing the control (e.g., “Light”, “Dark”, “Theme”).\n - Can be visible or accessible-only.\n\n\n\n### States\n\n- **Default**\n - Shows current theme (sun or moon).\n- **Hover**\n - Indicates interactivity on pointer devices.\n- **Active / Pressed**\n - Brief feedback when user activates the control.\n- **Focused**\n - Visible focus ring for keyboard navigation.\n- **Selected (Light)**\n - Light theme is active.\n- **Selected (Dark)**\n - Dark theme is active.\n- **Disabled**\n - Non-interactive state when switching is unavailable.";
|
|
10
10
|
ds:usage "## When to use\n\nUse this component when users need a direct way to switch between supported visual themes.\n\nRecommended usage scenarios:\n\n- **User preference override** \nUse the theme switcher when users should be able to choose light or dark mode regardless of the system default.\n- **Long-running applications** \nUse it in products users keep open for long periods, where lighting conditions may change during use.\n- **Accessibility and comfort** \nUse it when darker or lighter interfaces may improve readability, reduce glare, or better fit user comfort.\n- **Global application setting** \nUse it when theme is a product-level preference that should affect the full interface consistently.\n\n## When not to use\n\nAvoid using this component when changing theme is not a real user choice or when it affects too small a scope.\n\nAvoid usage:\n\n- **Single-theme products** \nDo not show a theme switcher if only one visual theme is available.\n- **Temporary visual effects** \nDo not use it for controls that only change a local surface, card, or panel rather than the product theme.\n- **Unclear or decorative toggles** \nAvoid using icon-only controls without an accessible name or without a clear indication of the current state.\n- **Automatic-only behavior** \nAvoid showing it if the theme is always inherited from system settings and the user cannot override it.";
|
|
@@ -16,95 +16,95 @@ ds:apps_landscape.component.checkbox_group a ds:Component;
|
|
|
16
16
|
ds:name "name";
|
|
17
17
|
ds:summary "Shared native name forwarded to every checkbox.";
|
|
18
18
|
ds:propertyType "text";
|
|
19
|
-
ds:
|
|
19
|
+
ds:optional "false";
|
|
20
20
|
ds:constraints "Use a stable form field name.";
|
|
21
|
-
ds:
|
|
21
|
+
ds:defaultValue "None"
|
|
22
22
|
], [
|
|
23
23
|
a ds:Property;
|
|
24
24
|
ds:name "label";
|
|
25
25
|
ds:summary "Visible text rendered in the fieldset legend.";
|
|
26
26
|
ds:propertyType "text";
|
|
27
|
-
ds:
|
|
27
|
+
ds:optional "false";
|
|
28
28
|
ds:constraints "The current API does not accept rich label content.";
|
|
29
|
-
ds:
|
|
29
|
+
ds:defaultValue "None"
|
|
30
30
|
], [
|
|
31
31
|
a ds:Property;
|
|
32
32
|
ds:name "options";
|
|
33
33
|
ds:summary "Ordered records with label, value, and optional disabled.";
|
|
34
34
|
ds:propertyType "list of objects";
|
|
35
|
-
ds:
|
|
35
|
+
ds:optional "false";
|
|
36
36
|
ds:constraints "Values must be unique for React keys and unambiguous selection. Each entry is a `SelectOption` with `label: string`, `value: string`, `disabled?: boolean`. An empty array renders no checkboxes.";
|
|
37
|
-
ds:
|
|
37
|
+
ds:defaultValue "None"
|
|
38
38
|
], [
|
|
39
39
|
a ds:Property;
|
|
40
40
|
ds:name "value";
|
|
41
41
|
ds:summary "Controlled selected values.";
|
|
42
42
|
ds:propertyType "list of text";
|
|
43
|
-
ds:
|
|
43
|
+
ds:optional "false";
|
|
44
44
|
ds:constraints "A checkbox is checked when its option value is included. Unknown values remain in the array until the consumer changes it.";
|
|
45
|
-
ds:
|
|
45
|
+
ds:defaultValue "None"
|
|
46
46
|
], [
|
|
47
47
|
a ds:Property;
|
|
48
48
|
ds:name "onChange";
|
|
49
49
|
ds:summary "Receives the complete next array after a toggle.";
|
|
50
50
|
ds:propertyType "function";
|
|
51
|
-
ds:
|
|
51
|
+
ds:optional "false";
|
|
52
52
|
ds:constraints "The component does not mutate value; the consumer must provide the updated prop.";
|
|
53
|
-
ds:
|
|
53
|
+
ds:defaultValue "None"
|
|
54
54
|
], [
|
|
55
55
|
a ds:Property;
|
|
56
56
|
ds:name "onBlur";
|
|
57
57
|
ds:summary "Shared blur handler forwarded to every checkbox.";
|
|
58
58
|
ds:propertyType "function";
|
|
59
|
-
ds:
|
|
59
|
+
ds:optional "true";
|
|
60
60
|
ds:constraints "Receives the blurred checkbox event.";
|
|
61
|
-
ds:
|
|
61
|
+
ds:defaultValue "undefined"
|
|
62
62
|
], [
|
|
63
63
|
a ds:Property;
|
|
64
64
|
ds:name "error";
|
|
65
65
|
ds:summary "Renders a group-level validation paragraph and adds is-error to the fieldset.";
|
|
66
66
|
ds:propertyType "ReactNode";
|
|
67
|
-
ds:
|
|
67
|
+
ds:optional "true";
|
|
68
68
|
ds:constraints "Truthiness controls rendering and class state; no aria-describedby/aria-errormessage wiring is added locally.";
|
|
69
|
-
ds:
|
|
69
|
+
ds:defaultValue "undefined"
|
|
70
70
|
], [
|
|
71
71
|
a ds:Property;
|
|
72
72
|
ds:name "help";
|
|
73
73
|
ds:summary "Renders persistent group guidance after any error and before the options.";
|
|
74
74
|
ds:propertyType "ReactNode";
|
|
75
|
-
ds:
|
|
75
|
+
ds:optional "true";
|
|
76
76
|
ds:constraints "No described-by association is added locally.";
|
|
77
|
-
ds:
|
|
77
|
+
ds:defaultValue "undefined"
|
|
78
78
|
], [
|
|
79
79
|
a ds:Property;
|
|
80
80
|
ds:name "required";
|
|
81
81
|
ds:summary "Adds the local required-marker class to the legend.";
|
|
82
82
|
ds:propertyType "boolean";
|
|
83
|
-
ds:
|
|
83
|
+
ds:optional "true";
|
|
84
84
|
ds:constraints "Visual marker only; the component does not apply required to descendant inputs or enforce a minimum selection.";
|
|
85
|
-
ds:
|
|
85
|
+
ds:defaultValue "undefined"
|
|
86
86
|
], [
|
|
87
87
|
a ds:Property;
|
|
88
88
|
ds:name "disabled";
|
|
89
89
|
ds:summary "Sets native disabled on the fieldset, disabling descendant controls.";
|
|
90
90
|
ds:propertyType "boolean";
|
|
91
|
-
ds:
|
|
91
|
+
ds:optional "true";
|
|
92
92
|
ds:constraints "Applies to the whole group.";
|
|
93
|
-
ds:
|
|
93
|
+
ds:defaultValue "undefined"
|
|
94
94
|
], [
|
|
95
95
|
a ds:Property;
|
|
96
96
|
ds:name "className";
|
|
97
97
|
ds:summary "Merges consumer classes onto the fieldset.";
|
|
98
98
|
ds:propertyType "text";
|
|
99
|
-
ds:
|
|
99
|
+
ds:optional "true";
|
|
100
100
|
ds:constraints "Added after built-in classes through classnames.";
|
|
101
|
-
ds:
|
|
101
|
+
ds:defaultValue "undefined"
|
|
102
102
|
], [
|
|
103
103
|
a ds:Property;
|
|
104
104
|
ds:name "style";
|
|
105
105
|
ds:summary "Applies inline styles to the fieldset.";
|
|
106
106
|
ds:propertyType "object";
|
|
107
|
-
ds:
|
|
107
|
+
ds:optional "true";
|
|
108
108
|
ds:constraints "Standard React style object.";
|
|
109
|
-
ds:
|
|
109
|
+
ds:defaultValue "undefined"
|
|
110
110
|
].
|