@aceshooting/lyra-ui 32.0.0 → 33.0.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/CHANGELOG.md +224 -1380
- package/README.md +36 -7
- package/custom-elements.slim.json +1 -0
- package/design-tokens.json +1 -1
- package/dist/accent-roles.css +1 -0
- package/dist/all.d.ts +1 -1
- package/dist/all.js +1 -1
- package/dist/autoloader.d.ts +10 -0
- package/dist/autoloader.js +1 -1
- package/dist/cli/migrate-wa.mjs +54 -44
- package/dist/cli/migration-contract.json.gz +0 -0
- package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +1 -0
- package/dist/components/agent-tools/budget-meter/budget-meter.styles.js +1 -1
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +1 -1
- package/dist/components/charts/chart/box-plot.class.d.ts +3 -0
- package/dist/components/charts/chart/chart-band.js +1 -1
- package/dist/components/charts/chart/chart-input-projection.js +1 -1
- package/dist/components/charts/chart/chart-surface.styles.js +1 -1
- package/dist/components/charts/chart/chart-types.d.ts +16 -2
- package/dist/components/charts/chart/chart.class.d.ts +4 -1
- package/dist/components/charts/chart/chart.class.js +3 -3
- package/dist/components/charts/chart/lite-chart.class.d.ts +3 -0
- package/dist/components/charts/chart/lite-chart.styles.js +1 -1
- package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -0
- package/dist/components/conversation/code-block/code-block-base.class.d.ts +31 -3
- package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-core.class.d.ts +46 -2
- package/dist/components/conversation/code-block/code-block-core.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-shared.d.ts +6 -2
- package/dist/components/conversation/code-block/code-block-shared.js +5 -4
- package/dist/components/conversation/code-block/code-block.class.d.ts +48 -3
- package/dist/components/conversation/code-block/code-block.class.js +1 -1
- package/dist/components/conversation/code-block/code-block.styles.js +1 -1
- package/dist/components/conversation/code-block/code-grammar-registry.d.ts +35 -0
- package/dist/components/conversation/code-block/code-grammar-registry.js +1 -0
- package/dist/components/conversation/markdown/markdown-core.class.d.ts +12 -0
- package/dist/components/conversation/markdown/markdown.class.d.ts +12 -0
- package/dist/components/conversation/markdown/markdown.styles.js +1 -1
- package/dist/components/conversation/model-select/model-select.class.d.ts +12 -5
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +1 -0
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.d.ts +3 -0
- package/dist/components/conversation/thread-list/thread-list.styles.js +1 -1
- package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +12 -5
- package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +4 -0
- package/dist/components/data/heatmap/heatmap.class.d.ts +21 -2
- package/dist/components/data/heatmap/heatmap.class.js +2 -2
- package/dist/components/data/heatmap/heatmap.styles.js +1 -1
- package/dist/components/data/stat/stat.class.d.ts +24 -1
- package/dist/components/data/stat/stat.class.js +2 -2
- package/dist/components/data/stat/stat.styles.js +1 -1
- package/dist/components/data/table/table-row-attributes.js +1 -0
- package/dist/components/data/table/table-support.d.ts +64 -5
- package/dist/components/data/table/table-support.js +1 -1
- package/dist/components/data/table/table.class.d.ts +78 -7
- package/dist/components/data/table/table.class.js +10 -10
- package/dist/components/data/table/table.styles.js +1 -1
- package/dist/components/data/timeline/timeline-item.class.d.ts +27 -5
- package/dist/components/data/timeline/timeline-item.class.js +11 -7
- package/dist/components/data/timeline/timeline-item.styles.js +1 -1
- package/dist/components/data/timeline/timeline.class.d.ts +54 -8
- package/dist/components/data/timeline/timeline.class.js +11 -7
- package/dist/components/data/timeline/timeline.styles.js +1 -1
- package/dist/components/data/tree/tree-item.class.d.ts +2 -0
- package/dist/components/data/tree/tree-item.class.js +2 -2
- package/dist/components/data/tree/tree-item.styles.js +1 -1
- package/dist/components/forms/button/button.class.d.ts +13 -0
- package/dist/components/forms/button/button.styles.js +1 -1
- package/dist/components/forms/catalog-picker-base.d.ts +14 -1
- package/dist/components/forms/checkbox/checkbox.class.js +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +28 -2
- package/dist/components/forms/checkbox-group/checkbox-group.class.js +3 -3
- package/dist/components/forms/checkbox-group/checkbox-group.styles.js +1 -1
- package/dist/components/forms/code-editor/code-editor.class.d.ts +18 -3
- package/dist/components/forms/code-editor/code-editor.styles.js +1 -1
- package/dist/components/forms/color-picker/color-picker.class.d.ts +25 -5
- package/dist/components/forms/color-picker/color-picker.class.js +3 -3
- package/dist/components/forms/color-picker/color-picker.styles.js +1 -1
- package/dist/components/forms/combobox/combobox-option-html.js +1 -0
- package/dist/components/forms/combobox/combobox.class.d.ts +140 -12
- package/dist/components/forms/combobox/combobox.class.js +113 -22
- package/dist/components/forms/combobox/combobox.styles.js +1 -1
- package/dist/components/forms/country-picker/country-picker.class.d.ts +4 -3
- package/dist/components/forms/currency-picker/currency-picker.class.d.ts +4 -3
- package/dist/components/forms/date-picker/date-input.class.d.ts +53 -3
- package/dist/components/forms/date-picker/date-input.class.js +2 -2
- package/dist/components/forms/date-picker/date-input.styles.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +14 -0
- package/dist/components/forms/emoji-picker/emoji-picker.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.class.d.ts +2 -1
- package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
- package/dist/components/forms/input/input-shared.d.ts +24 -3
- package/dist/components/forms/input/input.styles.js +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +19 -4
- package/dist/components/forms/input/time-input.styles.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +17 -5
- package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
- package/dist/components/forms/otp-input/otp-input.class.d.ts +8 -3
- package/dist/components/forms/otp-input/otp-input.styles.js +1 -1
- package/dist/components/forms/phone-input/phone-input.class.d.ts +18 -3
- package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +23 -2
- package/dist/components/forms/radio/radio-group.class.js +2 -2
- package/dist/components/forms/radio/radio-group.styles.js +1 -1
- package/dist/components/forms/radio/radio.class.js +2 -2
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts +4 -0
- package/dist/components/forms/select/select.class.d.ts +16 -4
- package/dist/components/forms/select/select.class.js +1 -1
- package/dist/components/forms/select/select.styles.js +1 -1
- package/dist/components/forms/signature-pad/signature-pad.class.d.ts +8 -3
- package/dist/components/forms/signature-pad/signature-pad.styles.js +1 -1
- package/dist/components/forms/slider/slider.class.d.ts +29 -2
- package/dist/components/forms/slider/slider.class.js +3 -3
- package/dist/components/forms/slider/slider.styles.js +1 -1
- package/dist/components/forms/switch/switch.class.d.ts +2 -0
- package/dist/components/forms/switch/switch.styles.js +1 -1
- package/dist/components/forms/textarea/textarea.class.d.ts +20 -3
- package/dist/components/forms/textarea/textarea.styles.js +1 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +4 -3
- package/dist/components/forms/token-input/token-input.class.d.ts +99 -21
- package/dist/components/forms/token-input/token-input.class.js +11 -8
- package/dist/components/forms/token-input/token-input.styles.js +1 -1
- package/dist/components/forms/unit-picker/unit-picker.class.d.ts +4 -3
- package/dist/components/layout/app-rail/app-rail.class.d.ts +3 -0
- package/dist/components/layout/app-rail/app-rail.styles.js +1 -1
- package/dist/components/layout/button-group/button-group.class.d.ts +4 -0
- package/dist/components/layout/button-group/button-group.class.js +1 -1
- package/dist/components/layout/card/card.class.d.ts +15 -1
- package/dist/components/layout/card/card.styles.js +1 -1
- package/dist/components/layout/command-palette/command-palette.class.d.ts +1 -1
- package/dist/components/layout/details/details.class.d.ts +6 -0
- package/dist/components/layout/details/details.styles.js +1 -1
- package/dist/components/layout/filter-bar/filter-bar.class.d.ts +6 -0
- package/dist/components/layout/filter-bar/filter-bar.styles.js +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/menu/dropdown-item.class.d.ts +8 -2
- package/dist/components/layout/menu/dropdown-item.class.js +1 -1
- package/dist/components/layout/menu/menu-item.class.d.ts +7 -0
- package/dist/components/layout/menu/menu-item.styles.js +1 -1
- package/dist/components/layout/menu/menu-label.class.d.ts +5 -0
- package/dist/components/layout/menu/menu-label.class.js +1 -1
- package/dist/components/layout/menu/menu.class.d.ts +4 -1
- package/dist/components/layout/menu/menu.styles.js +1 -1
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +1 -1
- package/dist/components/layout/page/page.class.d.ts +9 -1
- package/dist/components/layout/page/page.class.js +2 -2
- package/dist/components/layout/segmented/segmented.class.d.ts +22 -3
- package/dist/components/layout/segmented/segmented.class.js +3 -4
- package/dist/components/layout/segmented/segmented.styles.js +1 -1
- package/dist/components/layout/stepper/step.class.d.ts +102 -0
- package/dist/components/layout/stepper/step.class.js +18 -0
- package/dist/components/layout/stepper/step.styles.js +1 -0
- package/dist/components/layout/stepper/stepper.class.d.ts +106 -13
- package/dist/components/layout/stepper/stepper.class.js +6 -2
- package/dist/components/layout/stepper/stepper.styles.js +1 -1
- package/dist/components/layout/tab-group/tab-group.class.d.ts +10 -1
- package/dist/components/layout/tab-group/tab-group.class.js +1 -1
- package/dist/components/layout/tab-group/tab-group.styles.js +1 -1
- package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -0
- package/dist/components/layout/tab-group/tab-panel.class.js +1 -1
- package/dist/components/layout/tab-group/tab.class.d.ts +4 -0
- package/dist/components/layout/widget/widget.class.d.ts +1 -0
- package/dist/components/layout/widget/widget.styles.js +1 -1
- package/dist/components/lr-code-block-core.d.ts +1 -1
- package/dist/components/lr-code-block.d.ts +1 -1
- package/dist/components/lr-counter.d.ts +1 -0
- package/dist/components/lr-counter.js +1 -0
- package/dist/components/lr-lightbox-item.d.ts +1 -0
- package/dist/components/lr-lightbox-item.js +1 -0
- package/dist/components/lr-lightbox.d.ts +1 -1
- package/dist/components/lr-lightbox.js +1 -1
- package/dist/components/lr-number-ticker.d.ts +1 -0
- package/dist/components/lr-number-ticker.js +1 -0
- package/dist/components/lr-step.d.ts +1 -0
- package/dist/components/lr-step.js +1 -0
- package/dist/components/media/file-input/file-input.class.d.ts +8 -1
- package/dist/components/media/file-input/file-input.class.js +2 -2
- package/dist/components/media/file-input/file-input.styles.js +1 -1
- package/dist/components/media/index.d.ts +1 -1
- package/dist/components/media/index.js +1 -1
- package/dist/components/media/lightbox/lightbox-item.class.d.ts +67 -0
- package/dist/components/media/lightbox/lightbox-item.class.js +9 -0
- package/dist/components/media/lightbox/lightbox-item.styles.js +1 -0
- package/dist/components/media/lightbox/lightbox-source.js +1 -1
- package/dist/components/media/lightbox/lightbox-types.d.ts +4 -1
- package/dist/components/media/lightbox/lightbox.class.d.ts +123 -30
- package/dist/components/media/lightbox/lightbox.class.js +18 -12
- package/dist/components/media/lightbox/lightbox.styles.js +1 -1
- package/dist/components/media/map/map-anchor-avoid.js +1 -1
- package/dist/components/media/map/map-drawing-controller.js +1 -1
- package/dist/components/media/map/map.class.d.ts +137 -7
- package/dist/components/media/map/map.class.js +6 -6
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +9 -0
- package/dist/components/media/sequence-playback/sequence-playback.class.js +2 -2
- package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
- package/dist/components/media/video/video.class.d.ts +4 -0
- package/dist/components/media/video/video.class.js +2 -2
- package/dist/components/media/video/video.styles.js +1 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -0
- package/dist/components/media/zoomable-frame/zoomable-frame.class.js +2 -2
- package/dist/components/overlays/badge/badge.class.d.ts +2 -0
- package/dist/components/overlays/badge/badge.styles.js +1 -1
- package/dist/components/overlays/badge/tag.class.d.ts +2 -0
- package/dist/components/overlays/badge/tag.class.js +1 -1
- package/dist/components/overlays/chip/chip-group.class.d.ts +31 -4
- package/dist/components/overlays/chip/chip-group.class.js +3 -3
- package/dist/components/overlays/context-menu/context-menu.class.d.ts +6 -1
- package/dist/components/overlays/context-menu/context-menu.class.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +54 -6
- package/dist/components/overlays/dialog/dialog.class.js +3 -3
- package/dist/components/overlays/dialog/dialog.styles.js +1 -1
- package/dist/components/overlays/dialog/prompt.d.ts +60 -0
- package/dist/components/overlays/dialog/prompt.js +1 -0
- package/dist/components/overlays/drawer/drawer.class.d.ts +22 -1
- package/dist/components/overlays/drawer/drawer.class.js +1 -1
- package/dist/components/overlays/empty/empty.class.d.ts +1 -0
- package/dist/components/overlays/empty/empty.class.js +1 -1
- package/dist/components/overlays/overlay/dropdown.class.d.ts +5 -1
- package/dist/components/overlays/overlay/dropdown.class.js +1 -1
- package/dist/components/overlays/overlay/overlay.styles.js +1 -1
- package/dist/components/overlays/overlay/popover.class.d.ts +30 -4
- package/dist/components/overlays/overlay/popover.class.js +2 -2
- package/dist/components/overlays/overlay/tooltip.class.d.ts +7 -0
- package/dist/components/overlays/overlay/tooltip.class.js +4 -4
- package/dist/components/overlays/toast/toast-item.class.d.ts +3 -2
- package/dist/components/overlays/toast/toast-item.class.js +1 -1
- package/dist/components/overlays/toast/toast-item.styles.js +1 -1
- package/dist/components/overlays/toast/toast.class.d.ts +6 -0
- package/dist/components/overlays/toast/toast.class.js +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +4 -1
- package/dist/components/utility/copy-button/copy-button.class.js +2 -2
- package/dist/components/utility/counter/counter-time.d.ts +15 -0
- package/dist/components/utility/counter/counter-time.js +1 -0
- package/dist/components/utility/counter/counter.class.d.ts +67 -0
- package/dist/components/utility/counter/counter.class.js +1 -0
- package/dist/components/utility/counter/counter.styles.js +1 -0
- package/dist/components/utility/divider/divider.class.d.ts +21 -3
- package/dist/components/utility/divider/divider.class.js +5 -1
- package/dist/components/utility/export-button/export-button.class.d.ts +6 -1
- package/dist/components/utility/export-button/export-button.styles.js +1 -1
- package/dist/components/utility/icon/icon-library-bootstrap.d.ts +50 -0
- package/dist/components/utility/icon/icon-library-bootstrap.js +1 -0
- package/dist/components/utility/icon/icon-library-font-awesome.d.ts +68 -0
- package/dist/components/utility/icon/icon-library-font-awesome.js +1 -0
- package/dist/components/utility/icon/icon-library.d.ts +14 -1
- package/dist/components/utility/icon/icon-library.js +1 -1
- package/dist/components/utility/icon/icon-sprite.js +1 -0
- package/dist/components/utility/icon/icon.class.d.ts +4 -2
- package/dist/components/utility/icon/icon.class.js +2 -2
- package/dist/components/utility/index.d.ts +1 -1
- package/dist/components/utility/index.js +1 -1
- package/dist/components/utility/known-date/known-date.class.d.ts +14 -0
- package/dist/components/utility/mention-popover/mention-popover.class.d.ts +1 -1
- package/dist/components/utility/number-ticker/number-ticker.class.d.ts +66 -0
- package/dist/components/utility/number-ticker/number-ticker.class.js +1 -0
- package/dist/components/utility/number-ticker/number-ticker.styles.js +1 -0
- package/dist/components/utility/tour/tour.class.d.ts +1 -1
- package/dist/components/viewers/include/include.class.d.ts +4 -1
- package/dist/components/viewers/include/include.class.js +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +10 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.styles.js +1 -1
- package/dist/custom-elements-jsx.d.ts +1 -1
- package/dist/event-classes.d.ts +2342 -0
- package/dist/event-classes.js +1 -0
- package/dist/events.d.ts +48 -22
- package/dist/framework-types.d.ts +2 -2
- package/dist/internal/accessibility-visibility.js +1 -1
- package/dist/internal/all-defined-arguments.d.ts +19 -0
- package/dist/internal/all-defined-arguments.js +1 -0
- package/dist/internal/autoloader-manifest.js +1 -1
- package/dist/internal/autoloader-tags.d.ts +1 -1
- package/dist/internal/autoloader-tags.js +1 -1
- package/dist/internal/checked-control-label.js +1 -1
- package/dist/internal/component-loaders.generated.js +1 -1
- package/dist/internal/declarative-overlay-action.js +1 -0
- package/dist/internal/dedent.js +7 -0
- package/dist/internal/default-strings/forms.generated.js +1 -1
- package/dist/internal/default-strings/layout.generated.js +1 -1
- package/dist/internal/dev-mode-attribute-warning.development.js +1 -1
- package/dist/internal/document-token-css.generated.js +10 -0
- package/dist/internal/document-tokens.generated.js +2 -11
- package/dist/internal/document-tokens.js +2 -2
- package/dist/internal/dom-guards.js +1 -1
- package/dist/internal/external-label-association.js +1 -0
- package/dist/internal/focus-navigation.js +1 -1
- package/dist/internal/form-control/chrome.styles.js +1 -1
- package/dist/internal/form-control-labels.js +1 -1
- package/dist/internal/form-control.styles.js +1 -1
- package/dist/internal/interactive-control.styles.js +2 -2
- package/dist/internal/labeled-group.js +1 -1
- package/dist/internal/localization-runtime.d.ts +5 -0
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +2 -2
- package/dist/internal/lyra-element.d.ts +11 -2
- package/dist/internal/lyra-element.js +2 -2
- package/dist/internal/lyra-event.d.ts +22 -0
- package/dist/internal/lyra-event.js +1 -0
- package/dist/internal/overlay-shared.d.ts +5 -2
- package/dist/internal/overlay-shared.js +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/root-registration-allowlist.js +1 -1
- package/dist/internal/scoped-definitions.generated.js +1 -1
- package/dist/internal/shiki/core.d.ts +4 -1
- package/dist/internal/shiki/tokenize.js +1 -1
- package/dist/internal/srcset.js +1 -0
- package/dist/internal/theme-observation.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/ssr/all.d.ts +1 -1
- package/dist/ssr/all.js +1 -1
- package/dist/ssr.d.ts +5 -5
- package/dist/ssr.js +1 -1
- package/dist/styles/native.css +1 -1
- package/dist/styles/palette.css +1 -0
- package/dist/styles/tokens-root.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/testing/happy-dom-shims.d.ts +11 -2
- package/dist/testing/happy-dom-shims.js +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/lyra-tag-event-map.d.ts +2 -2
- package/dist/testing/lyra-tag-event-map.js +1 -1
- package/dist/theme-core.css +1 -1
- package/dist/theme.css +1 -1
- package/dist/utilities/defined.d.ts +10 -1
- package/dist/utilities/defined.js +1 -1
- package/dist/utilities/form.d.ts +9 -0
- package/dist/utilities/form.js +1 -0
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/vue.d.ts +1 -1
- package/llms/components/lr-app-rail.md +4 -2
- package/llms/components/lr-badge.md +4 -4
- package/llms/components/lr-bar-chart.md +1 -1
- package/llms/components/lr-box-plot.md +6 -1
- package/llms/components/lr-bubble-chart.md +1 -1
- package/llms/components/lr-budget-meter.md +2 -2
- package/llms/components/lr-button-group.md +7 -3
- package/llms/components/lr-button.md +11 -1
- package/llms/components/lr-card.md +11 -1
- package/llms/components/lr-chart.md +21 -7
- package/llms/components/lr-checkbox-group.md +11 -1
- package/llms/components/lr-chip.md +11 -1
- package/llms/components/lr-citation-badge.md +1 -1
- package/llms/components/lr-code-block-core.md +39 -9
- package/llms/components/lr-code-block.md +59 -6
- package/llms/components/lr-code-editor.md +11 -1
- package/llms/components/lr-color-picker.md +19 -6
- package/llms/components/lr-combobox.md +81 -9
- package/llms/components/lr-context-menu.md +6 -4
- package/llms/components/lr-copy-button.md +6 -4
- package/llms/components/lr-counter.md +60 -0
- package/llms/components/lr-country-picker.md +4 -0
- package/llms/components/lr-currency-picker.md +4 -0
- package/llms/components/lr-date-input.md +1 -1
- package/llms/components/lr-date-picker.md +25 -1
- package/llms/components/lr-details.md +6 -2
- package/llms/components/lr-dialog.md +101 -9
- package/llms/components/lr-divider.md +14 -5
- package/llms/components/lr-doughnut-chart.md +1 -1
- package/llms/components/lr-drawer.md +32 -7
- package/llms/components/lr-dropdown-item.md +1 -1
- package/llms/components/lr-dropdown.md +8 -4
- package/llms/components/lr-emoji-picker.md +10 -1
- package/llms/components/lr-empty.md +3 -2
- package/llms/components/lr-entity-chip.md +1 -1
- package/llms/components/lr-export-button.md +6 -3
- package/llms/components/lr-file-input.md +13 -1
- package/llms/components/lr-filter-bar.md +6 -2
- package/llms/components/lr-graph-query-builder.md +10 -1
- package/llms/components/lr-heatmap.md +20 -3
- package/llms/components/lr-histogram.md +7 -2
- package/llms/components/lr-icon-button.md +3 -1
- package/llms/components/lr-icon.md +104 -0
- package/llms/components/lr-include.md +3 -0
- package/llms/components/lr-input.md +9 -1
- package/llms/components/lr-known-date.md +10 -1
- package/llms/components/lr-lightbox-item.md +14 -0
- package/llms/components/lr-lightbox.md +119 -14
- package/llms/components/lr-line-chart.md +7 -2
- package/llms/components/lr-lite-chart.md +3 -2
- package/llms/components/lr-locale-picker.md +17 -1
- package/llms/components/lr-map.md +122 -11
- package/llms/components/lr-markdown-core.md +15 -4
- package/llms/components/lr-markdown.md +13 -4
- package/llms/components/lr-mention-popover.md +1 -1
- package/llms/components/lr-menu-item.md +1 -1
- package/llms/components/lr-menu-label.md +5 -2
- package/llms/components/lr-menu.md +22 -7
- package/llms/components/lr-model-select.md +13 -3
- package/llms/components/lr-native-time-input.md +11 -1
- package/llms/components/lr-number-input.md +11 -1
- package/llms/components/lr-number-ticker.md +60 -0
- package/llms/components/lr-otp-input.md +11 -1
- package/llms/components/lr-page.md +7 -1
- package/llms/components/lr-pagination.md +18 -0
- package/llms/components/lr-pdf-viewer.md +6 -1
- package/llms/components/lr-phone-input.md +11 -1
- package/llms/components/lr-pie-chart.md +1 -1
- package/llms/components/lr-polar-area-chart.md +1 -1
- package/llms/components/lr-popover.md +26 -6
- package/llms/components/lr-radar-chart.md +1 -1
- package/llms/components/lr-radio-group.md +11 -1
- package/llms/components/lr-rubric-form.md +7 -1
- package/llms/components/lr-scatter-chart.md +1 -1
- package/llms/components/lr-segmented.md +20 -2
- package/llms/components/lr-select.md +11 -3
- package/llms/components/lr-selection-toolbar.md +1 -1
- package/llms/components/lr-sequence-playback.md +8 -2
- package/llms/components/lr-signature-pad.md +8 -1
- package/llms/components/lr-slider.md +17 -4
- package/llms/components/lr-stat.md +20 -5
- package/llms/components/lr-step.md +67 -0
- package/llms/components/lr-stepper.md +64 -8
- package/llms/components/lr-suggestion-chips.md +3 -2
- package/llms/components/lr-switch.md +4 -3
- package/llms/components/lr-tab-group.md +10 -3
- package/llms/components/lr-tab-panel.md +2 -2
- package/llms/components/lr-table.md +87 -8
- package/llms/components/lr-tag.md +1 -1
- package/llms/components/lr-textarea.md +17 -1
- package/llms/components/lr-thread-list.md +4 -2
- package/llms/components/lr-time-input.md +9 -2
- package/llms/components/lr-time-zone-picker.md +4 -0
- package/llms/components/lr-timeline-item.md +1 -1
- package/llms/components/lr-timeline.md +47 -3
- package/llms/components/lr-toast-item.md +1 -1
- package/llms/components/lr-toast.md +8 -3
- package/llms/components/lr-token-input.md +68 -11
- package/llms/components/lr-tool-call-chip.md +1 -1
- package/llms/components/lr-tooltip.md +8 -3
- package/llms/components/lr-tree-item.md +1 -1
- package/llms/components/lr-tree.md +2 -1
- package/llms/components/lr-unit-picker.md +4 -0
- package/llms/components/lr-usage-badge.md +1 -1
- package/llms/components/lr-video.md +5 -4
- package/llms/components/lr-voice-picker.md +10 -2
- package/llms/components/lr-widget.md +2 -2
- package/llms/components/lr-zoomable-frame.md +8 -0
- package/llms/index.md +205 -201
- package/llms/migration.md +103 -16
- package/llms/peers.md +3 -3
- package/llms/shared/events-and-types.md +36 -0
- package/llms/shared/forms-and-accessibility.md +4 -1
- package/llms/shared/frameworks-and-ssr.md +10 -1
- package/llms/shared/imports-and-registration.md +68 -2
- package/llms/shared/localization-and-rtl.md +5 -0
- package/llms/shared/native-styles-and-utilities.md +142 -7
- package/llms/shared/styles-and-tokens.md +60 -6
- package/llms/shared/testing-and-utilities.md +30 -0
- package/llms/shared.md +354 -17
- package/llms/tokens.md +6 -1
- package/llms.txt +3 -3
- package/locales.json +1 -1
- package/package.json +48 -10
- package/registrations.json +1 -1
- package/skills/compose-lyra-interfaces/SKILL.md +1 -1
- package/skills/lyra-ui/SKILL.md +1 -1
- package/skills/lyra-ui/commands/migrate.md +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/layout.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-step`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/lr-step.js';` (stable tag alias; registers the tag)
|
|
6
|
+
- **Class** `LyraStep`, also available unregistered from `@aceshooting/lyra-ui/components/layout/stepper/step.class.js`
|
|
7
|
+
- **Family** `components/layout/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Status** `experimental` since `32.1.0` — see the maturity and deprecation policy in `llms/shared.md`
|
|
9
|
+
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
|
+
- **Deprecations** none
|
|
11
|
+
- **Optional peers** none
|
|
12
|
+
- **Themeable via** 9 parts, 10 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## `lr-step`
|
|
18
|
+
|
|
19
|
+
One stage inside a child-driven `<lr-stepper>`: marker (number, check mark, spinner or `icon` slot),
|
|
20
|
+
label, optional description and status text. Mirrors `wa-step`. Granular import:
|
|
21
|
+
`@aceshooting/lyra-ui/components/lr-step.js`.
|
|
22
|
+
|
|
23
|
+
**Properties:** `name: string = ''` (reflected; matched by the stepper's `active`, `goTo()` and events);
|
|
24
|
+
`completed`, `loading` (spinner, `aria-busy`), `disabled` (unreachable; a disabled button while the
|
|
25
|
+
stepper is `clickable`) — booleans, reflected; `variant: 'neutral' | 'brand' | 'success' | 'warning' |
|
|
26
|
+
'danger' = 'brand'` (cosmetic marker color; an upcoming `brand` step keeps a neutral outline);
|
|
27
|
+
`attention: 'none' | 'pulse' | 'bounce' = 'none'` (marker animation, off under
|
|
28
|
+
`prefers-reduced-motion`); `active` (reflected; the stepper keeps it in sync); `with-description`
|
|
29
|
+
(server rendering hint). The stepper sets the step's number, `locked` state (a `linear` stepper) and
|
|
30
|
+
`clickable`; nothing else needs setting by hand.
|
|
31
|
+
|
|
32
|
+
More properties: `focus` (`focus()`): Focuses the step's button when the stepper is `clickable`.
|
|
33
|
+
`withDescription` (attribute `with-description`, default `false`): Server rendering only: set it
|
|
34
|
+
when a `description` is slotted so the server markup includes it before hydration.
|
|
35
|
+
|
|
36
|
+
**Slots:** default (label), `description`, `icon` (replaces number/check/spinner).
|
|
37
|
+
**CSS parts:** `step`, `connector` (both half lines), `button` (only while the stepper is `clickable`),
|
|
38
|
+
`marker`, `spinner`, `content`, `label`, `status` (visually hidden: Completed, Loading, Unavailable,
|
|
39
|
+
Locked or Not started), `description`. **Custom property:** `--lr-step-pulse-color`, also spelled
|
|
40
|
+
`--pulse-color` (the unprefixed name wins when both are set); layout hooks are the stepper's
|
|
41
|
+
`--lr-stepper-*` properties and their unprefixed aliases. **Custom states:** `:state(active)`, `:state(completed)`,
|
|
42
|
+
`:state(loading)`, `:state(disabled)`, `:state(locked)` and `:state(clickable)`, e.g.
|
|
43
|
+
`lr-step:state(locked) { opacity: 0.6; }`. `customStates: string = ''` (attribute `custom-states`) adds
|
|
44
|
+
author-defined states: each space-separated CSS identifier is published as `:state(<name>)`, e.g.
|
|
45
|
+
`<lr-step custom-states="error">` with `lr-step:state(error)::part(marker) { border-color: var(--lr-color-danger); }`.
|
|
46
|
+
The step's own names (`active`, `completed`, `loading`, `disabled`, `locked`, `clickable`), invalid
|
|
47
|
+
identifiers, duplicates, names over 64 characters and names after the 32nd are ignored. It is a
|
|
48
|
+
styling hook only (status text and stepper behavior are unchanged), so pair it with a visible cue.
|
|
49
|
+
**Accessibility:** host `role="listitem"`; `aria-current="step"`
|
|
50
|
+
sits on the focused element (the inner button while clickable, the host otherwise).
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<lr-stepper><lr-step name="a" completed>Account</lr-step><lr-step name="b" attention="pulse">Billing</lr-step></lr-stepper>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
More themeable custom properties: `--lr-stepper-active-bg`: Background of a pressed, enabled
|
|
59
|
+
clickable step. `--lr-stepper-connector-active-color`: Color of the line after a completed step;
|
|
60
|
+
unset, it follows the completed step's variant. `--lr-stepper-connector-color` (default
|
|
61
|
+
`var(--lr-color-neutral-fill-normal)`): Color of the line after a step that is not completed.
|
|
62
|
+
`--lr-stepper-connector-gap` (default `var(--lr-size-0-35em)`): Gap between the marker edge and the
|
|
63
|
+
line on both sides. `--lr-stepper-connector-width` (default `var(--lr-border-width-medium)`):
|
|
64
|
+
Thickness of the line. `--lr-stepper-hover-bg`: Background of a hovered, enabled clickable step.
|
|
65
|
+
`--lr-stepper-marker-size` (default `var(--lr-size-2rem)`): Diameter of the marker. Set on the
|
|
66
|
+
stepper or an ancestor. `--lr-stepper-step-gap` (default `var(--lr-space-m)`): Block spacing between
|
|
67
|
+
steps while the stepper is laid out vertically.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 10 parts, 30 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `step`: `--lr-stepper-current-font-weight`; `step-check`: `--lr-stepper-check-color`; `step-index`: `--lr-stepper-current-index-bg`, `--lr-stepper-index-bg`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -23,10 +23,59 @@ The host `aria-label`, the `accessibleLabel` property, and the `label` fallback
|
|
|
23
23
|
|
|
24
24
|
Ordered multi-step wizard/form navigation: an index/label per step, independent
|
|
25
25
|
`pending`/`current`/`completed`/`error` progress plus disabled availability, and click-to-jump.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
Mirrors `wa-stepper` (its `wa-step` children are `<lr-step>`) and has two authoring modes.
|
|
27
|
+
|
|
28
|
+
**Data-driven mode** (the original contract): fully data-driven and controlled, like `lr-table`'s
|
|
29
|
+
`columns`/`rows` — it never mutates `steps` itself; a click, or Enter/Space on a non-disabled step,
|
|
30
|
+
fires a non-cancelable `lr-step-select`, and the host decides whether/how `steps` changes in response.
|
|
31
|
+
|
|
32
|
+
**Child mode**: with an empty `steps` array and `<lr-step>` children, the stepper owns the current
|
|
33
|
+
step. A non-empty `steps` array always wins.
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<button data-stepper="previous flow">Back</button>
|
|
37
|
+
<button data-stepper="next flow">Next</button>
|
|
38
|
+
<lr-stepper id="flow" label="Checkout" active="shipping" linear clickable orientation="auto">
|
|
39
|
+
<lr-step name="cart" completed>Cart</lr-step>
|
|
40
|
+
<lr-step name="shipping">Shipping<span slot="description">Where should it go?</span></lr-step>
|
|
41
|
+
<lr-step name="pay">Payment</lr-step>
|
|
42
|
+
</lr-stepper>
|
|
43
|
+
<script type="module">
|
|
44
|
+
const flow = document.querySelector("#flow");
|
|
45
|
+
flow.addEventListener("lr-before-step-change", (e) => {
|
|
46
|
+
if (!formIsValid()) e.preventDefault(); // vetoes the move
|
|
47
|
+
});
|
|
48
|
+
flow.addEventListener("lr-step-change", (e) => console.log(e.detail.name, e.detail.previousName));
|
|
49
|
+
</script>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
- `active: string = ''` (reflected) — `name` of the current step; the first step when unset or unmatched.
|
|
53
|
+
- `linear: boolean = false` (reflected) — a step cannot be reached until every step before it is
|
|
54
|
+
`completed`; later steps render locked (`next()`, `goTo()`, invokers and clicks all respect it).
|
|
55
|
+
- `clickable: boolean = false` (reflected) — steps become buttons (one roving tab stop; Left/Right swap
|
|
56
|
+
under RTL, Up/Down while stacked, Home/End) and a click or Enter/Space jumps to the step. The wrapper is
|
|
57
|
+
then a `<nav>` landmark; otherwise a labelled `role="group"`.
|
|
58
|
+
- `orientation: 'horizontal' | 'vertical' | 'auto' = 'horizontal'` — `'auto'` rows the steps and stacks
|
|
59
|
+
them when the stepper's measured inline size cannot give each step about 6em; it also works with
|
|
60
|
+
`steps`. The live axis is `effectiveOrientation` / `data-effective-orientation`.
|
|
61
|
+
- `label` names the group (localized "Steps" when unset); the host `aria-label` wins.
|
|
62
|
+
- Methods `goTo(name)`, `next()`, `previous()` ask first and no-op for an unknown, `disabled` or (while
|
|
63
|
+
`linear`) unreachable step. `data-stepper="next <id>"`, `"previous <id>"` and `"goto <id> <step name>"` on
|
|
64
|
+
any element click-drive the stepper with that `id`; inside a stepper the `<id>` may be omitted.
|
|
65
|
+
- Events: `lr-before-step-change` (cancelable) and `lr-step-change`, both
|
|
66
|
+
`detail: { name, previousName, step, previousStep }`. The new position ("Step 2 of 3") is announced politely.
|
|
67
|
+
- Slot: default (`<lr-step>` elements). Extra parts: `stepper`, `summary` (visually hidden "Step X of Y"),
|
|
68
|
+
`steps` (the step list; the same node as `base`).
|
|
69
|
+
- Custom properties for child mode: `--lr-stepper-marker-size`, `--lr-stepper-connector-color`,
|
|
70
|
+
`--lr-stepper-connector-active-color`, `--lr-stepper-connector-width`, `--lr-stepper-connector-gap`,
|
|
71
|
+
`--lr-stepper-step-gap`, each also readable under its unprefixed name (`--marker-size`,
|
|
72
|
+
`--connector-color`, `--connector-color-active`, `--connector-width`, `--connector-gap`, and `--gap`
|
|
73
|
+
for the stacked step spacing), which wins when both are set.
|
|
74
|
+
- Custom states: `:state(completed)` (every step completed, in either mode), `:state(loading)` (a child
|
|
75
|
+
step is loading) and `:state(stacked)` (the steps are laid out vertically, however that came about),
|
|
76
|
+
e.g. `lr-stepper:state(stacked) { --gap: 1.5rem; }`.
|
|
77
|
+
- New string keys: `stepperSteps`, `stepperStepPosition` (`{current}`/`{total}`), `stepperStateLoading`,
|
|
78
|
+
`stepperStateDisabled` (plus the existing completed/pending/locked keys for status text).
|
|
30
79
|
|
|
31
80
|
**Properties:**
|
|
32
81
|
|
|
@@ -112,9 +161,12 @@ string; state: LyraStepState; disabled?: boolean; title?: string; icon?: unknown
|
|
|
112
161
|
focused, on a non-`disabled` step. Never fired while `readonly`. It is non-cancelable because the
|
|
113
162
|
component takes no default action to veto: it never mutates `steps`. `lr-stepper-orientation-change`
|
|
114
163
|
(`detail: { orientation }`) — fired only when an enabled `orientationBreakpoint` actually changes
|
|
115
|
-
`effectiveOrientation`.
|
|
164
|
+
`effectiveOrientation`. In child mode, cancelable `lr-before-step-change`
|
|
165
|
+
(`detail: { name, previousName, step, previousStep }`) fires before `active` changes —
|
|
166
|
+
`preventDefault()` keeps the current step — and `lr-step-change` (same detail) fires after `active`
|
|
167
|
+
changed and the steps re-rendered.
|
|
116
168
|
|
|
117
|
-
**Slots:** none.
|
|
169
|
+
**Slots:** none in data-driven mode; the default slot takes `<lr-step>` children in child mode.
|
|
118
170
|
|
|
119
171
|
**CSS parts:** `base` (root wrapper, `role="list"`), `step-item` (the `role="listitem"` wrapper for
|
|
120
172
|
one step), `step` (a single native button — or a non-interactive `<div>` carrying the same part
|
|
@@ -126,6 +178,10 @@ rendered when the step has one, additionally to — never instead of — `step-i
|
|
|
126
178
|
(the completed-checkmark glyph, shown for `completed` steps instead of `step-index`), `step-label`
|
|
127
179
|
(the step's label text).
|
|
128
180
|
|
|
181
|
+
Further CSS parts: `stepper`: Child mode: the outer wrapper, a `<nav>` landmark while `clickable`,
|
|
182
|
+
otherwise a labelled `role="group"`. `summary`: Child mode: visually hidden "Step X of Y" text for
|
|
183
|
+
assistive technology.
|
|
184
|
+
|
|
129
185
|
**Themeable custom properties:** `--lr-stepper-hover-bg` (default
|
|
130
186
|
`var(--lr-color-brand-quiet)`) and `--lr-stepper-hover-color` (default
|
|
131
187
|
`var(--lr-color-text)`) style a hovered non-disabled step. `--lr-stepper-active-bg` (default
|
|
@@ -139,7 +195,7 @@ text color of an `error` step. `--lr-stepper-current-index-bg` (default `var(--l
|
|
|
139
195
|
`--lr-stepper-current-index-color` (default `var(--lr-color-on-brand)`) — background and text color
|
|
140
196
|
of the `current` step's numbered `step-index` chip. The text color reads the dedicated on-brand
|
|
141
197
|
foreground token, not `--lr-color-surface`, so the chip stays legible in dark mode and under forced
|
|
142
|
-
colors, where surface and on-brand diverge. `--lr-stepper-index-bg` / `--lr-stepper-index-color`
|
|
198
|
+
colors, where surface and on-brand diverge. `--lr-stepper-index-border` (default `none`; `--lr-stepper-current-index-border` and `--lr-stepper-error-index-border` fall back to it) draws a border on the index circle without resizing it. `--lr-stepper-index-bg` / `--lr-stepper-index-color`
|
|
143
199
|
(defaults `var(--lr-color-neutral-fill-normal)` / `var(--lr-color-neutral-on-normal)`) paint every
|
|
144
200
|
other step's index, `--lr-stepper-error-index-bg` / `--lr-stepper-error-index-color` (same defaults)
|
|
145
201
|
an `error` step's index, and `--lr-stepper-check-color` (default `var(--lr-color-success)`) the
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 6 parts,
|
|
12
|
+
- **Themeable via** 6 parts, 13 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `base`: `--lr-suggestion-chips-justify`; `chip-label`: `--lr-suggestion-chips-label-lines`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -65,7 +65,8 @@ every line, the wrapped final one included, which styling `::part(base)` as a ce
|
|
|
65
65
|
cannot do (once the chips wrap, the row fills the available inline size and each line packs to the
|
|
66
66
|
start). `--lr-suggestion-chips-hover-bg` (default `var(--lr-color-brand-quiet)`) — a `chip`'s
|
|
67
67
|
background on hover. `--lr-suggestion-chips-hover-border-color` (default `var(--lr-color-brand)`) — a
|
|
68
|
-
`chip`'s border color on hover.
|
|
68
|
+
`chip`'s border color on hover. `--lr-suggestion-chips-hover-color` (default the chip's
|
|
69
|
+
`--lr-suggestion-chips-chip-color`) — a `chip`'s text color on hover and press. All of these are declared as `var()` fallbacks at the point of use, not
|
|
69
70
|
on `:host`. `--lr-suggestion-chips-disabled-opacity` (default `var(--lr-opacity-disabled)`) — opacity of a chip whose
|
|
70
71
|
suggestion sets `disabled`. `--lr-suggestion-chips-label-lines` (default `1`; `3` when `wrap` is
|
|
71
72
|
set) — how many lines a `chip-label` shows before it is clamped with an ellipsis, so full-question
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 12 parts,
|
|
13
|
-
- **Tokens by part** (prefer these over a `::part()` rule) `label`: `--lr-switch-label-font-size`, `--lr-switch-label-color`, `--lr-switch-checked-label-color`; `track`: `--lr-switch-invalid-border-color`, `--lr-switch-track-fill`, `--lr-switch-track-border`, `--lr-switch-checked-track-border`
|
|
12
|
+
- **Themeable via** 12 parts, 20 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `label`: `--lr-switch-label-font-size`, `--lr-switch-label-color`, `--lr-switch-checked-label-color`, `--lr-switch-checked-label-font-weight`; `track`: `--lr-switch-invalid-border-color`, `--lr-switch-track-fill`, `--lr-switch-track-border`, `--lr-switch-checked-track-border`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
16
16
|
---
|
|
@@ -161,7 +161,8 @@ unchecked thumb untouched.
|
|
|
161
161
|
`--lr-switch-label-font-size` (default `var(--lr-font-size-md-sm)`) sets `[part='label']`'s text size.
|
|
162
162
|
`--lr-switch-label-color` (default `var(--lr-color-text)`) controls `[part='label']`'s text color,
|
|
163
163
|
and is also the checked-state fallback. `--lr-switch-checked-label-color` (default
|
|
164
|
-
`var(--lr-switch-label-color)`) independently retints the label only while checked
|
|
164
|
+
`var(--lr-switch-label-color)`) independently retints the label only while checked, and
|
|
165
|
+
`--lr-switch-checked-label-font-weight` (default `inherit`) weights it. The checked label hooks
|
|
165
166
|
read the switch's **live** checked state (the same `:state(checked)` custom state the class doc's
|
|
166
167
|
`@cssstate checked` documents), not the `checked` *attribute* — which instead reflects
|
|
167
168
|
`defaultChecked`, the form-reset value — so the checked-state hook tracks user interaction correctly
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
11
11
|
- **Deprecations** none
|
|
12
12
|
- **Optional peers** none
|
|
13
|
-
- **Themeable via**
|
|
13
|
+
- **Themeable via** 17 parts, 21 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
14
14
|
- **Tokens by part** (prefer these over a `::part()` rule) `panel`: `--lr-tab-group-panel-hover-outline-color`, `--lr-tab-group-panel-hover-outline-offset`, `--lr-tab-group-panel-hover-outline-style`, `--lr-tab-group-panel-hover-outline-width`
|
|
15
15
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
16
16
|
|
|
@@ -191,7 +191,7 @@ projection slot a standalone `<lr-tab>` uses before a hydrated group assigns its
|
|
|
191
191
|
panels; `nav` (the row wrapping the
|
|
192
192
|
tablist together with the two overflow scroll controls; mirrors the upstream part of the same name),
|
|
193
193
|
`tablist` and `tabs` (aliases on the `role="tablist"` row of tab buttons and scroll container),
|
|
194
|
-
`body` (wrapper around all panels), `scroll-button` and `scroll-
|
|
194
|
+
`body` (wrapper around all panels), `scroll-button`, `scroll-button__base` and `scroll-button__button` (aliases shared by
|
|
195
195
|
both overflow controls), `scroll-button-start`/`scroll-button--start` and
|
|
196
196
|
`scroll-button-end`/`scroll-button--end` (aliases on the individual
|
|
197
197
|
controls that scroll the tabs toward their inline start and end — under RTL "start" is the
|
|
@@ -219,7 +219,14 @@ an attribute selector after `::part()`), which previously left overriding the li
|
|
|
219
219
|
repainting everything else that reads them. Unset, each falls back to the token its rule used
|
|
220
220
|
before, so rendering is unchanged. The upstream hooks `--indicator-color` (selected indicator),
|
|
221
221
|
`--track-color` (resting strip rule), and `--track-width` (resting strip-rule thickness) are read
|
|
222
|
-
first, with the Lyra/token values as fallbacks
|
|
222
|
+
first, with the Lyra/token values as fallbacks; `--lr-tab-group-track-width` (default
|
|
223
|
+
`var(--lr-border-width-thin)`) is the Lyra-prefixed strip-rule thickness behind `--track-width`, on
|
|
224
|
+
whichever edge `placement` puts the rule, and the selected underline keeps overlapping it exactly.
|
|
225
|
+
The tab buttons themselves take `--lr-tab-group-tab-padding` (default
|
|
226
|
+
`var(--lr-space-s) var(--lr-space-xs)`), `--lr-tab-group-tab-font-size` (default `inherit`) and
|
|
227
|
+
`--lr-tab-group-tab-min-block-size` (default `auto`, for a taller touch-friendly strip); because the
|
|
228
|
+
group renders the real tab button, these are set on the group or an ancestor, not on `<lr-tab>`.
|
|
229
|
+
`--lr-tab-group-vertical-nav-max-inline-size`
|
|
223
230
|
(default `var(--lr-size-12rem)`) caps a `start`/`end` nav's logical inline size while still allowing
|
|
224
231
|
it to shrink in a constrained allocation. Its inline fallback means it can be set on the group or
|
|
225
232
|
an ancestor; long single-line tab labels ellipsize within the cap rather than expanding the group or
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 2 parts, 1 custom property — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -25,7 +25,7 @@ announced twice. Show/hide is the group's job too — this element is always pre
|
|
|
25
25
|
|
|
26
26
|
**Properties:** `name: string = ''` (reflected) — matches the `panel` of the `<lr-tab>` that reveals
|
|
27
27
|
it; `active: boolean = false` (reflected) — SSR visibility hint, synchronized by the owning group
|
|
28
|
-
after hydration. **Events:** none. **Slots:** default (the panel's content). **CSS parts:** `base`
|
|
28
|
+
after hydration. **Events:** none. **Slots:** default (the panel's content). **CSS parts:** `base`, also named `tab-panel`
|
|
29
29
|
(the content wrapper); the owning group also exposes its outer `panel` wrapper. **Themeable custom
|
|
30
30
|
properties:** `--padding` (default `0`) — inner padding on the panel's own `base` wrapper.
|
|
31
31
|
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 59 parts,
|
|
13
|
-
- **Tokens by part** (prefer these over a `::part()` rule) `base`: `--lr-theme-scrollbar-color`, `--lr-theme-scrollbar-gutter`, `--lr-theme-scrollbar-width`; `header-cell`: `--lr-table-header-sorted-bg`; `row`: `--lr-table-row-selected-bg`
|
|
12
|
+
- **Themeable via** 59 parts, 64 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `base`: `--lr-table-border`, `--lr-theme-scrollbar-color`, `--lr-theme-scrollbar-gutter`, `--lr-theme-scrollbar-width`; `caption`: `--lr-table-caption-color`, `--lr-table-caption-font-size`, `--lr-table-caption-font-weight`, `--lr-table-caption-padding`, `--lr-table-caption-text-align`; `header-cell`: `--lr-table-header-sorted-bg`; `row`: `--lr-table-row-selected-bg`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
16
16
|
---
|
|
@@ -51,7 +51,7 @@ unchanged.
|
|
|
51
51
|
bounded to the first 10,000 source positions; blank keys and later duplicates are omitted first-wins
|
|
52
52
|
before header, cell, sort, focus, and event paths; reassign to update) — `{ key, label, ariaLabel?,
|
|
53
53
|
headerCell?, width?, minWidth?, maxWidth?,
|
|
54
|
-
resizable?, sortable?, sortValue?, defaultSortDir?: 'asc'|'desc', align?: 'start'|'end',
|
|
54
|
+
resizable?, sortable?, rowHeader?: boolean, wrap?: 'wrap'|'nowrap', sortValue?, defaultSortDir?: 'asc'|'desc', align?: 'start'|'end',
|
|
55
55
|
priority?: 'medium'|'low',
|
|
56
56
|
sticky?: 'start'|'end', editTrigger?: 'double-click'|'always', editValue?, editLabel?: (row) => string,
|
|
57
57
|
editType?: 'text'|'number'|'select',
|
|
@@ -67,7 +67,15 @@ cell: (row) => unknown }` — `cell` is required for every `editTrigger` except
|
|
|
67
67
|
`[part~='cell-content']` element that also carries every whitespace-separated name returned
|
|
68
68
|
(non-string results are ignored; no wrapper renders when `cellPart` is omitted, and none inside
|
|
69
69
|
an open inline editor), and a `part` attribute written inside a `cell()` template is equally a
|
|
70
|
-
part of the table. Prefix those names (`cell-…`) so they never collide with the table's own parts
|
|
70
|
+
part of the table. Prefix those names (`cell-…`) so they never collide with the table's own parts.
|
|
71
|
+
**Reserved part names:** every part listed under Parts below — `cell`, `cell-content`,
|
|
72
|
+
`cell-label`, `cell-link`, `cell-editor`, `row`, `header-cell`, `empty-*`, `error-*`,
|
|
73
|
+
`pagination-*` and the rest — is the table's own. A `cellPart` result reusing one (for example
|
|
74
|
+
`cell-label`, which then also matches every `::part(cell-label)` rule for the stacked caption)
|
|
75
|
+
still applies, but a development build warns once per colliding name. For text layout
|
|
76
|
+
(`white-space`, line clamping, `text-overflow`) prefer `cellPart` plus a `::part()` rule over
|
|
77
|
+
`cellStyle`: the wrapper holds only the value, while `cellStyle` lands on the whole `<td>`, which
|
|
78
|
+
in stacked mode also holds the `cell-label` caption:
|
|
71
79
|
|
|
72
80
|
```ts
|
|
73
81
|
columns = [{ key: 'name', label: 'Name',
|
|
@@ -147,6 +155,18 @@ cell: (row) => unknown }` — `cell` is required for every `editTrigger` except
|
|
|
147
155
|
overrides that editor's accessible name — omit it and each editor takes the localized
|
|
148
156
|
`tableEditCellInRow` name (`Edit {column}, row {row}`) instead, or `tableEditCell` while only one
|
|
149
157
|
row renders (see the accessibility note under `editTrigger` below)
|
|
158
|
+
`rowHeader: true` renders that column's body cells as `<th scope="row" role="rowheader">` instead
|
|
159
|
+
of `<td role="gridcell">`, so screen readers announce the cell as the row's name while moving
|
|
160
|
+
across its other cells — usually the identifying column. The cell keeps `part="cell"`, gains
|
|
161
|
+
`[data-row-header]`, and looks like its row (`--lr-table-row-header-font-weight`, default
|
|
162
|
+
`inherit`, sets its weight); header clicks, sorting and header keyboard navigation never treat it
|
|
163
|
+
as a column header;
|
|
164
|
+
`wrap: 'wrap' | 'nowrap'` sets line wrapping for that column's body and footer cells (the header
|
|
165
|
+
keeps its single line): `'nowrap'` keeps each value on one line and widens the column instead
|
|
166
|
+
(ids, dates, amounts); `'wrap'` wraps and also breaks an unbroken token (a URL, a hash) inside a
|
|
167
|
+
narrow or fixed-width column. Omitted, values wrap at spaces exactly as before. While stacked, a
|
|
168
|
+
`'nowrap'` column wraps, since a card cannot scroll sideways. The cell carries `[data-wrap]`;
|
|
169
|
+
unknown values are ignored;
|
|
150
170
|
`cellTitle(row) => string | undefined` is the `title` analogue of `cellStyle`, applied directly to
|
|
151
171
|
the generated `<td>` — e.g. the untruncated text behind an ellipsized cell, or a formatted
|
|
152
172
|
timestamp behind a relative one;
|
|
@@ -225,7 +245,46 @@ cell: (row) => unknown }` — `cell` is required for every `editTrigger` except
|
|
|
225
245
|
The grid/row/gridcell roles, sortable headers (wrapped into a strip above the cards), selection,
|
|
226
246
|
activation, editing, expansion and `href` links keep working; `sticky` columns stop pinning while
|
|
227
247
|
stacked. `--lr-table-stack-label-inline-size` (default `40%`) sets the caption's inline size. Unsupported
|
|
228
|
-
values normalize to `'never'`, which renders exactly the previous markup
|
|
248
|
+
values normalize to `'never'`, which renders exactly the previous markup. While stacked, the
|
|
249
|
+
`caption` spans the cards' full width.
|
|
250
|
+
- `stackHeader: 'visible'|'sortable'|'hidden' = 'visible'` (`stack-header`, reflected) — what the
|
|
251
|
+
column header strip shows while rows are stacked; no effect on the grid. `'visible'` keeps every
|
|
252
|
+
header wrapped into a strip above the cards. `'sortable'` keeps only the sortable headers, as a
|
|
253
|
+
compact sort strip (no strip at all when no column is sortable); `'hidden'` keeps none, since each
|
|
254
|
+
card's `cell-label` captions already name its values. A header left out of the strip is visually
|
|
255
|
+
hidden, not removed: it still names its column's cells for assistive technology, and it is shown
|
|
256
|
+
again while it holds keyboard focus. Unsupported values normalize to `'visible'`.
|
|
257
|
+
|
|
258
|
+
```html
|
|
259
|
+
<lr-table caption="Accounts" stack="auto" stack-header="sortable"></lr-table>
|
|
260
|
+
```
|
|
261
|
+
- `withoutHeaderRow: boolean = false` (`without-header-row`, reflected) — omits the `<thead>`
|
|
262
|
+
entirely, for a table whose columns need no headings (a key/value summary, ideally with a
|
|
263
|
+
`rowHeader` column). Header sorting, column resizing and header keyboard navigation have nothing
|
|
264
|
+
to act on; rows, selection, editing, expansion, sticky columns, priority hiding and the footer
|
|
265
|
+
keep working. Name the grid with `caption` or a host `aria-label`. Same spelling as
|
|
266
|
+
`lr-csv-viewer`'s `without-header-row`.
|
|
267
|
+
- `rowAttributes?: (row, index) => Record<string, string | number | boolean | null | undefined> | undefined`
|
|
268
|
+
(property only) — extra attributes for each body `<tr part="row">`; `index` is the row's 0-based
|
|
269
|
+
position among the rows currently rendered (after sorting, filtering and pagination). Only
|
|
270
|
+
lowercase `data-*` names — except the table's own `data-row-key`/`data-stripe` and the
|
|
271
|
+
`data-lr-*` namespace — plus `aria-label`, `aria-description`, `aria-current` and `aria-rowindex`
|
|
272
|
+
are written. Event handlers (`on*`), `style`, `class`, `id`, `role`, `tabindex` and every other
|
|
273
|
+
name are dropped with a development-build warning. A string or finite number is written as text,
|
|
274
|
+
`true` as an empty attribute, `false`/`null`/`undefined` leave it off, and a name returned on one
|
|
275
|
+
render but not the next is removed. A throwing callback writes nothing for that row. Applied in
|
|
276
|
+
the browser, not in server-rendered markup.
|
|
277
|
+
|
|
278
|
+
```ts
|
|
279
|
+
table.rowAttributes = (row) => ({ 'data-testid': `account-${row.id}`, 'data-overdue': row.overdue });
|
|
280
|
+
// A delegated listener reads them from the composed path:
|
|
281
|
+
table.addEventListener('click', (event) => {
|
|
282
|
+
const tr = event.composedPath().find((n) => n instanceof HTMLElement && n.localName === 'tr');
|
|
283
|
+
if (tr instanceof HTMLElement && tr.hasAttribute('data-overdue')) openReminder(tr.dataset.testid);
|
|
284
|
+
});
|
|
285
|
+
```
|
|
286
|
+
Only pseudo-classes may follow `::part()`, so `lr-table::part(row)[data-overdue]` is not valid
|
|
287
|
+
CSS; style a row state through `cellPart` instead.
|
|
229
288
|
- `layout: 'auto'|'fixed' = 'auto'` (reflected) — a **floor** on the `<table>`'s `table-layout`, not
|
|
230
289
|
an override. `'fixed'` forces the fixed algorithm even when no column declares a `width`, so every
|
|
231
290
|
column shares the available width evenly and long cell content is clipped/wrapped instead of
|
|
@@ -520,7 +579,7 @@ enabled — fired both from a row activation and from a `selectionMode` flip to
|
|
|
520
579
|
an existing multi-row selection down to one key (skipped on the very first render, since an
|
|
521
580
|
already-inconsistent initial `selectionMode`/`selectedRowKeys` pairing is a starting state, not a
|
|
522
581
|
live transition), `lr-filter-change`
|
|
523
|
-
(frozen readonly `detail: { filterText }`), and `lr-page-change` (frozen readonly `detail: { page }`) from the
|
|
582
|
+
(frozen readonly `detail: { filterText }`), and `lr-page-change` (frozen readonly `detail: { page, pageSize, offset }`) from the
|
|
524
583
|
filter/pagination surfaces, and `lr-cell-edit` (`detail: { row, columnKey, value }`) for editable
|
|
525
584
|
columns, and `lr-column-resize` (`detail: { columnKey, width }`, `width` in CSS pixels) on every pointer or
|
|
526
585
|
keyboard resize step. These notifications are non-cancelable. A final pointer width or keyboard step
|
|
@@ -609,7 +668,22 @@ continue to determine row height. Cell content can always grow a row beyond the
|
|
|
609
668
|
`--lr-table-cell-link-hover-color` — an anchor returned from a column's `cell(row)` renders inside
|
|
610
669
|
the component's shadow root, where page CSS cannot reach it and `::part()` cannot select past the
|
|
611
670
|
first compound selector to reach it either, so without these it computes to the UA default link
|
|
612
|
-
blue; set `revert` for the UA default. `--lr-table-cell-
|
|
671
|
+
blue; set `revert` for the UA default. `--lr-table-cell-link-font-weight` (default `inherit`) and
|
|
672
|
+
`--lr-table-cell-link-text-decoration` (default `revert`, the UA underline; `none` removes it) restyle
|
|
673
|
+
that anchor at rest, and `--lr-table-cell-link-hover-font-weight` /
|
|
674
|
+
`--lr-table-cell-link-hover-text-decoration` (each falling back to its resting twin) restyle it on hover,
|
|
675
|
+
`:focus-visible` and press. The built-in `filterable` field takes `--lr-table-filter-height` (default
|
|
676
|
+
`var(--lr-input-control-min-height, auto)`, so it lines up with `lr-input`) and
|
|
677
|
+
`--lr-table-filter-font-size` (default `inherit`); `--lr-table-filter-wrap: wrap` with a
|
|
678
|
+
`--lr-table-filter-basis` (for example `12rem`) stacks the field under its label text once the row is too
|
|
679
|
+
narrow for both. The `caption` takes `--lr-table-caption-font-size`, `--lr-table-caption-font-weight`, `--lr-table-caption-color`,
|
|
680
|
+
`--lr-table-caption-text-align` (default `revert`: the UA centring; `start` aligns with the first column) and `--lr-table-caption-padding`.
|
|
681
|
+
`--lr-table-reveal-columns-min-size` (default `0`) sets the minimum inline and block size of the
|
|
682
|
+
reveal-columns button for a larger touch target. `--lr-table-header-bg` fills header cells (the sorted header's `--lr-table-header-sorted-bg` still wins),
|
|
683
|
+
`--lr-table-header-border-color` colours the rule under the header apart from the body rules
|
|
684
|
+
(default `--lr-table-cell-border-color`), `--lr-table-group-bg` fills group cells, and
|
|
685
|
+
`--lr-table-more-button-bg` / `--lr-table-reveal-columns-bg` set the resting fill of those two buttons
|
|
686
|
+
(default none; hover and press keep their own fills). `--lr-table-cell-padding` (default `var(--lr-space-s)`) sets
|
|
613
687
|
the padding of a header cell, a body cell, and the row-total cell; `--lr-table-cell-padding-compact`
|
|
614
688
|
(default `var(--lr-space-xs) var(--lr-space-s)`) is the same hook for the group-header cell and the
|
|
615
689
|
footer cell, which default to a tighter block/inline shorthand rather than sharing the first token
|
|
@@ -645,9 +719,14 @@ Every header cell at rest reads `--lr-table-header-color` (default `inherit`),
|
|
|
645
719
|
`var(--lr-font-weight-semibold)`). `--lr-table-cell-border-color` (default
|
|
646
720
|
`var(--lr-color-border-subtle)`) colors the rules between rows: the header cell's bottom rule, every
|
|
647
721
|
body, group, total, expansion and footer cell rule, and the seam beside a `sticky` column; the outer
|
|
648
|
-
frame keeps its own edge
|
|
722
|
+
frame keeps its own edge, drawn from `--lr-table-border` (a border shorthand, default
|
|
723
|
+
`var(--lr-border-width-thin) solid var(--lr-color-border-subtle)`; `none` drops the frame).
|
|
724
|
+
`--lr-table-cell-line-height` (default `inherit`) sets the line height of body cells only.
|
|
649
725
|
The `sort-icon` part styles only the indicator; these tokens style the header cell. Use `::part(sort-icon-inactive)` and
|
|
650
726
|
`::part(sort-icon-active)` to style the two indicator states without private selectors.
|
|
727
|
+
`--lr-table-sort-icon-vertical-align` (default `middle`) moves the icon against the label text, for
|
|
728
|
+
example `text-bottom` or `-0.125em`. Changing the icon's `display` (to `inline-flex`, say) does not
|
|
729
|
+
change its alignment; this token does.
|
|
651
730
|
`--lr-table-sticky-offset` (default `0`) is measured and written inline per column by the component
|
|
652
731
|
so multiple `sticky` columns stack instead of overlapping; it is a read-out, not a knob you set.
|
|
653
732
|
`--lr-table-heat-t` is likewise component-written (each `[data-heat]` cell's position on the ramp).
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 9 parts, 28 custom properties — see `lr-badge.md`
|
|
13
13
|
- **Documented with** `lr-badge`: see [lr-badge.md](./lr-badge.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 13 parts,
|
|
12
|
+
- **Themeable via** 13 parts, 29 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -250,6 +250,15 @@ With no label text the part is hidden and no glyph is painted.
|
|
|
250
250
|
- `--lr-form-control-focus-shadow` (default `none`) — the shared field halo, painted as a
|
|
251
251
|
`box-shadow` while the field holds focus. One name for every field-shaped control in the library,
|
|
252
252
|
so a halo is configured once instead of per component; additive to the brand border.
|
|
253
|
+
- `--lr-form-control-transition` (default `none`) — opt-in `transition` for the field's border and halo
|
|
254
|
+
(for example `border-color 150ms, box-shadow 150ms`), honoured by `lr-input`, `lr-textarea`,
|
|
255
|
+
`lr-combobox` and `lr-select` (the textarea default stays its border-color ease); always off under `prefers-reduced-motion: reduce`.
|
|
256
|
+
- `--lr-form-control-focus-outline` (`lr-select` trigger; default the standard focus ring) — opt-in
|
|
257
|
+
`outline` shorthand that replaces the keyboard outline so an app's own halo can stand in. Pair it with
|
|
258
|
+
`--lr-form-control-focus-shadow` or a border colour that still marks focus: a visible indicator is the
|
|
259
|
+
accessibility contract, and forced colours always restores the standard ring.
|
|
260
|
+
- `--lr-select-open-shadow` (`lr-select`; default `--lr-form-control-focus-shadow`) — the halo while the
|
|
261
|
+
listbox is open.
|
|
253
262
|
|
|
254
263
|
`<lr-textarea>` fills an explicitly sized host: give the host a block size (`block-size: 100%`
|
|
255
264
|
inside a container with a resolved block size, a pixel size, or a flex/grid allocation) and the
|
|
@@ -267,3 +276,10 @@ including when that allocation shrinks after the content renders.
|
|
|
267
276
|
---
|
|
268
277
|
|
|
269
278
|
The start-placed label aligns to the first line of the field, measured with `--lr-form-control-height`.
|
|
279
|
+
|
|
280
|
+
Further custom properties:
|
|
281
|
+
|
|
282
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
283
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
284
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
285
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 46 parts,
|
|
12
|
+
- **Themeable via** 46 parts, 40 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `search-input`: `--lr-thread-list-search-hover-border-color`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -391,7 +391,9 @@ resolves them to that tier's shared form-control height and font size.
|
|
|
391
391
|
`--lr-thread-list-search-padding-block` (default `var(--lr-space-xs)`) and
|
|
392
392
|
`--lr-thread-list-search-radius` (default `var(--lr-radius)`) are replaced by the tier's shared
|
|
393
393
|
form-control values when `size` is set. `--lr-thread-list-search-clear-size` (default
|
|
394
|
-
`var(--lr-icon-button-size)`) is the clear button's box;
|
|
394
|
+
`var(--lr-icon-button-size)`) is the clear button's box; `--lr-thread-list-search-bg` (default
|
|
395
|
+
`var(--lr-color-surface)`), `--lr-thread-list-search-border-color` (default `var(--lr-color-border)`)
|
|
396
|
+
and `--lr-thread-list-search-color` (default `var(--lr-color-text)`) paint the search field; it never follows `size`, because that button is
|
|
395
397
|
a tap target floored at `--lr-icon-button-size` rather than a text box, so only a larger value changes it. Every one of these wins over
|
|
396
398
|
the tier, so a consumer can take a tier and then move one value.
|
|
397
399
|
`--lr-thread-list-search-hover-border-color` (default `var(--lr-color-brand)`) is the hovered search
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 23 parts,
|
|
12
|
+
- **Themeable via** 23 parts, 50 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `column`: `--lr-theme-scrollbar-color`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -192,7 +192,7 @@ replaced by it.
|
|
|
192
192
|
|
|
193
193
|
The `popup` panel is a floating surface and paints from the **shared overlay-surface family**
|
|
194
194
|
(16.0.0): `--lr-overlay-surface`, `--lr-overlay-border` (default `var(--lr-color-border)`),
|
|
195
|
-
`--lr-overlay-radius` (default `var(--lr-radius)`) and `--lr-overlay-shadow-anchored` (default
|
|
195
|
+
`--lr-overlay-radius` (default `var(--lr-radius-container)`) and `--lr-overlay-shadow-anchored` (default
|
|
196
196
|
`var(--lr-shadow-m)`). None is declared on `:host`, so one declaration on `:root` — or on any
|
|
197
197
|
ancestor, to scope it — retints this panel together with every other floating surface in the
|
|
198
198
|
library. One deliberate difference from the rest of the family: `--lr-overlay-surface` defaults here
|
|
@@ -224,3 +224,10 @@ ancestor to change every unset time input beneath it.
|
|
|
224
224
|
import "@aceshooting/lyra-ui/components/lr-time-input.js";
|
|
225
225
|
</script>
|
|
226
226
|
```
|
|
227
|
+
|
|
228
|
+
Further custom properties:
|
|
229
|
+
|
|
230
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
231
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
232
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
233
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
@@ -72,3 +72,7 @@ in both modes, following the country picker's event contract.
|
|
|
72
72
|
</script>
|
|
73
73
|
<lr-time-zone-picker name="zone" label="Time zone" value="UTC" searchable></lr-time-zone-picker>
|
|
74
74
|
```
|
|
75
|
+
|
|
76
|
+
Further custom properties:
|
|
77
|
+
|
|
78
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 15 parts, 20 custom properties — see `lr-timeline.md`
|
|
13
13
|
- **Documented with** `lr-timeline`: see [lr-timeline.md](./lr-timeline.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 2 parts, 13 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Documented with** `lr-timeline-item` (same section below)
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -26,6 +26,23 @@ item's `title`/`description` routinely hold focusable content, so wrapping the r
|
|
|
26
26
|
would trip `nested-interactive`). The opt-in clustered time scale adds only native count-marker
|
|
27
27
|
buttons; it does not make the individual rows interactive.
|
|
28
28
|
|
|
29
|
+
**`wa-timeline` / `wa-timeline-item` parity.** `lr-timeline` accepts Web Awesome's
|
|
30
|
+
`orientation="auto"` (see the properties below; an unrecognized value keeps `vertical`). It accepts
|
|
31
|
+
`marker-placement: 'start' | 'end' | 'alternate' = 'start'` (`alternate` swaps
|
|
32
|
+
sides on every other item around a central rail and falls back to `start` under 30em; sides follow the
|
|
33
|
+
inline direction, so RTL mirrors), `marker-alignment: 'start' | 'center' = 'start'` (`center` centers the
|
|
34
|
+
marker on the item's height with the rail running above and below it), and `label` (accessible name; a
|
|
35
|
+
host `aria-label` wins, then `label`, then the localized default). `[part='base']` also carries the
|
|
36
|
+
`timeline` part. `lr-timeline-item` adds the `opposite` slot and part (a fixed share beside the rail,
|
|
37
|
+
`--lr-timeline-opposite-size`, default `30%`; above the marker when horizontal; the far column when
|
|
38
|
+
alternating), `with-opposite`, the `icon` slot (alias of `marker-icon`) and `with-icon` (server-render
|
|
39
|
+
hints that also force the column or icon marker), and the `connector` and `timeline-item` part aliases of
|
|
40
|
+
`rail` and `base`. Custom properties: `--lr-timeline-icon-marker-size` (defaults to the marker size),
|
|
41
|
+
`--lr-timeline-connector-color` / `--lr-timeline-connector-width` (aliases that win over the
|
|
42
|
+
`--lr-timeline-rail-*` pair) and `--lr-timeline-connector-gap` (default `0px`).
|
|
43
|
+
Migration: `wa-timeline`'s `--gap`, `--marker-size`, `--icon-marker-size`, `--connector-color`,
|
|
44
|
+
`--connector-width` and `--connector-gap` become the `--lr-timeline-*` names above.
|
|
45
|
+
|
|
29
46
|
A non-neutral `variant` adds a localized, visually hidden state to the item title. In forced colours, the marker and rail use system colours.
|
|
30
47
|
|
|
31
48
|
Every assigned item remains mounted; the timeline does not window large collections. Flow mode
|
|
@@ -40,8 +57,15 @@ horizontal scrolling retains clipping on the cross axis. Cluster mode keeps its
|
|
|
40
57
|
behavior. Vertical time layouts keep the `--lr-timeline-time-extent` axis and reserve room after it
|
|
41
58
|
for the latest item, which sits at the axis end, so it never overlaps the content that follows.
|
|
42
59
|
|
|
43
|
-
**`lr-timeline` properties:** `orientation: 'vertical' | 'horizontal' = 'vertical'`
|
|
44
|
-
opposite default from `lr-stepper`; `horizontal` makes
|
|
60
|
+
**`lr-timeline` properties:** `orientation: 'vertical' | 'horizontal' | 'auto' = 'vertical'` (type
|
|
61
|
+
`LyraTimelineOrientation`) — note the opposite default from `lr-stepper`; `horizontal` makes
|
|
62
|
+
`[part='base']` a horizontally scrollable row. `auto` measures the timeline's own inline size with a
|
|
63
|
+
`ResizeObserver` and runs it as a row while every item gets about 10em (in the timeline's computed
|
|
64
|
+
font size), as a column otherwise, so a 320px phone or a narrow pane stacks with no breakpoint to
|
|
65
|
+
author; it renders as a column until measured (server-rendered markup included). Read-only
|
|
66
|
+
`effectiveOrientation: 'vertical' | 'horizontal'` reports the axis in effect, and while `auto` the
|
|
67
|
+
host carries a matching `data-effective-orientation` attribute. RTL mirrors the row like
|
|
68
|
+
`horizontal`.
|
|
45
69
|
`accessibleLabel?: string` (attribute `aria-label`) overrides the localized `"Timeline"` name —
|
|
46
70
|
omitting it reads back `undefined` and falls back to that default, while an explicitly empty
|
|
47
71
|
`aria-label` stays empty
|
|
@@ -150,6 +174,8 @@ removed on the last item, so marker alignment stays consistent), `content`, `hea
|
|
|
150
174
|
wrapping `title` and `timestamp`; wraps at narrow widths rather than truncating), `title`,
|
|
151
175
|
`timestamp` (hidden when there's nothing to show), `description`.
|
|
152
176
|
|
|
177
|
+
Further CSS parts: `connector`: Alias of `rail`. `timeline-item`: Alias of `base`.
|
|
178
|
+
|
|
153
179
|
**Themeable custom properties:** `--lr-timeline-gap` (default `var(--lr-space-l)`) — declared on
|
|
154
180
|
`lr-timeline` but consumed inside each item via inheritance across the slot boundary; it is both the
|
|
155
181
|
inter-item spacing and the length each rail bridges. `--lr-timeline-cluster-size` (default
|
|
@@ -178,3 +204,21 @@ Version 9 removes the legacy item `icon` slot; migrate marker glyphs to `slot="m
|
|
|
178
204
|
Timeline orientation/rail coordination now uses private implementation-prefixed cross-shadow
|
|
179
205
|
properties. The only supported spacing input remains `--lr-timeline-gap`; stop overriding the five
|
|
180
206
|
former `--lr-timeline-item-*` plumbing names.
|
|
207
|
+
|
|
208
|
+
More properties: `markerAlignment` (attribute `marker-alignment`, default `'start'`): Where the
|
|
209
|
+
marker sits along its item while the timeline runs as a column. `'start'` (the default) pins it to
|
|
210
|
+
the item's first line; `'center'` centers it on the item's full height and runs the rail through it
|
|
211
|
+
as one line, which suits cards. Ignored while the timeline runs as a row. `markerPlacement`
|
|
212
|
+
(attribute `marker-placement`, default `'start'`): Which side of its content each item's marker sits
|
|
213
|
+
on while the timeline runs as a column. `'start'` (the default) puts the marker before the content,
|
|
214
|
+
`'end'` after it, and `'alternate'` switches sides on every other item so the rail runs down the
|
|
215
|
+
middle, with an item's `opposite` content on the far side. Sides follow the inline direction, so
|
|
216
|
+
they mirror under RTL. An alternating timeline narrower than 30em lays every item out like `start`.
|
|
217
|
+
Ignored while the timeline runs as a row.
|
|
218
|
+
|
|
219
|
+
More properties: `withIcon` (attribute `with-icon`, default `false`): Server-render hint: set it
|
|
220
|
+
when `icon`/`marker-icon` content is slotted so the marker renders as an icon marker before the
|
|
221
|
+
element hydrates. Also forces the icon marker presentation. `withOpposite` (attribute
|
|
222
|
+
`with-opposite`, default `false`): Server-render hint: set it when `opposite` content is slotted so
|
|
223
|
+
the opposite column renders before the element hydrates. Also keeps the column even when the slot is
|
|
224
|
+
empty.
|