@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,60 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/utility.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-counter`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/lr-counter.js';` (stable tag alias; registers the tag)
|
|
6
|
+
- **Class** `LyraCounter`, also available unregistered from `@aceshooting/lyra-ui/components/utility/counter/counter.class.js`
|
|
7
|
+
- **Family** `components/utility/` — 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** 6 parts, 1 custom property — 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-counter`
|
|
18
|
+
|
|
19
|
+
Countdown or count-up clock. Counts down to `date` (or for `duration` ms from connect) and up from
|
|
20
|
+
`date` with `direction="up"`, ticking through years, months, days, hours, minutes and seconds. Years
|
|
21
|
+
and months follow the local calendar; days and smaller are exact elapsed time. Unit labels and the
|
|
22
|
+
spoken phrase come from `Intl.NumberFormat` units in the effective locale, so the element has no
|
|
23
|
+
library strings to translate.
|
|
24
|
+
|
|
25
|
+
**Properties:**
|
|
26
|
+
|
|
27
|
+
- `date?: Date | string | number` — use ISO 8601 strings; a number is epoch ms. Invalid shows zeros
|
|
28
|
+
- `duration?: number` — ms to count down from once connected; changing it restarts. Ignored when `date` is set or `direction="up"`
|
|
29
|
+
- `direction: 'down' | 'up' = 'down'` (reflected)
|
|
30
|
+
- `label: string = ''` — accessible name of the timer
|
|
31
|
+
- `largestUnit` / `smallestUnit: 'years' | 'months' | 'days' | 'hours' | 'minutes' | 'seconds' = 'days' | 'seconds'` (`largest-unit`, `smallest-unit`); larger time rolls into the largest unit, smaller is dropped; an invalid or inverted pair falls back to days through seconds
|
|
32
|
+
- `format: 'long' | 'short' | 'narrow' = 'long'` — label style
|
|
33
|
+
- `withoutLabels: boolean = false` (`without-labels`, reflected) — clock style: hides labels, keeps every unit and stays left to right under `dir="rtl"`
|
|
34
|
+
- `delimiter: string = ''` — text between units, e.g. `:`
|
|
35
|
+
- `paused: boolean = false` (reflected) — clearing it continues from the time shown
|
|
36
|
+
- `valueFormatter?: (value: number, unit) => string` — property only; the spoken phrase keeps the raw value
|
|
37
|
+
|
|
38
|
+
**Slots:** `years`, `months`, `days`, `hours`, `minutes`, `seconds` — replace one unit's label;
|
|
39
|
+
`finished` — shown instead of the units when a countdown is at zero (including a date already past).
|
|
40
|
+
|
|
41
|
+
**CSS parts:** `base`, `unit`, `value`, `label`, `delimiter`, `finished`.
|
|
42
|
+
**CSS custom property:** `--lr-counter-gap` (default `0.5em`). **CSS state:** `:state(finished)`.
|
|
43
|
+
|
|
44
|
+
**Events:** `lr-finish` (`null` detail) — a running countdown reached zero; fires once and not for a
|
|
45
|
+
date that was already past when the counter started.
|
|
46
|
+
|
|
47
|
+
**Accessibility:** the base part is a `role="timer"` named by `label`, with the current time as
|
|
48
|
+
visually hidden text and the visual units `aria-hidden`. `role="timer"` is not live, so nothing is
|
|
49
|
+
announced each second. The timer stops on disconnect and resumes on reconnect; it renders zeros during
|
|
50
|
+
SSR and starts on the client.
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<script type="module">
|
|
54
|
+
import '@aceshooting/lyra-ui/components/lr-counter.js';
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<lr-counter label="Sale ends" date="2031-01-01T00:00:00Z"></lr-counter>
|
|
58
|
+
<lr-counter label="Doors open" date="2031-01-01T00:00:00Z" without-labels delimiter=":"></lr-counter>
|
|
59
|
+
<lr-counter label="Launch" duration="60000"><strong slot="finished">We are live</strong></lr-counter>
|
|
60
|
+
```
|
|
@@ -139,3 +139,7 @@ including RTL and dark themes. `--lr-form-control-invalid-border-color` themes t
|
|
|
139
139
|
</script>
|
|
140
140
|
<lr-country-picker name="country" label="Country" searchable></lr-country-picker>
|
|
141
141
|
```
|
|
142
|
+
|
|
143
|
+
Further custom properties:
|
|
144
|
+
|
|
145
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
@@ -145,3 +145,7 @@ preserve their shared part names and inherit shared form-control and surface tok
|
|
|
145
145
|
|
|
146
146
|
<lr-currency-picker name="currency" label="Display currency" value="EUR"></lr-currency-picker>
|
|
147
147
|
```
|
|
148
|
+
|
|
149
|
+
Further custom properties:
|
|
150
|
+
|
|
151
|
+
- `--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** 55 parts, 43 custom properties — see `lr-date-picker.md`
|
|
13
13
|
- **Documented with** `lr-date-picker`: see [lr-date-picker.md](./lr-date-picker.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -222,6 +222,9 @@ while its range is the current value),
|
|
|
222
222
|
day-cell/grid-column size; its private default follows the `size` tier — `2xs`/`xs`/`s`/`l`/`xl`;
|
|
223
223
|
`m` keeps the default). An inherited or direct public value remains authoritative in every tier.
|
|
224
224
|
|
|
225
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
226
|
+
height of the field label.
|
|
227
|
+
|
|
225
228
|
**Optional peer deps:** none.
|
|
226
229
|
|
|
227
230
|
### `lr-date-input`
|
|
@@ -395,7 +398,20 @@ from outside — new in 11.1.0), `end`, `expand-button`,
|
|
|
395
398
|
`input-wrapper`, `popup`, `range-separator`, `segment`, `segment-literal`, `start`, permanent
|
|
396
399
|
compatibility name `base` (a nested wrapper inside `date-input`), and permanent compatibility name
|
|
397
400
|
`label` (the inner label-content wrapper inside `form-control-label`). Lyra additionally retains
|
|
398
|
-
`error`.
|
|
401
|
+
`error`. Every nested `lr-date-picker` part is also forwarded under a `date-picker__` prefix, the
|
|
402
|
+
names Web Awesome's date input exports, which exist only while the calendar is rendered:
|
|
403
|
+
`date-picker__date-picker`, `date-picker__day`, `date-picker__day-disabled`,
|
|
404
|
+
`date-picker__day-label`, `date-picker__day-outside`, `date-picker__day-placeholder`,
|
|
405
|
+
`date-picker__day-range-end`, `date-picker__day-range-inner`, `date-picker__day-range-preview`,
|
|
406
|
+
`date-picker__day-range-start`, `date-picker__day-selected`, `date-picker__day-today`,
|
|
407
|
+
`date-picker__day-weekend`, `date-picker__footer`, `date-picker__grid`, `date-picker__header`,
|
|
408
|
+
`date-picker__month`, `date-picker__month-label`, `date-picker__months`, `date-picker__next`,
|
|
409
|
+
`date-picker__previous`, `date-picker__title`, `date-picker__view-cell`, `date-picker__view-grid`,
|
|
410
|
+
`date-picker__view-item`, `date-picker__view-item-disabled`, `date-picker__view-item-selected`,
|
|
411
|
+
`date-picker__view-item-today`, `date-picker__view-row`, `date-picker__weekday`,
|
|
412
|
+
`date-picker__weekdays`, `date-picker__weeknumber`, `date-picker__weeknumbers`
|
|
413
|
+
(`::part(date-picker__day-selected)`). `date-picker__date-picker` is the picker's own root, the
|
|
414
|
+
replacement for Web Awesome's deprecated `date-picker__base`.
|
|
399
415
|
|
|
400
416
|
On `lr-date-input`, `--lr-form-control-invalid-border-color` (default `var(--lr-color-danger)`) themes the resting border while the field matches `:state(user-invalid)`; a component-specific invalid border, where one exists, overrides it.
|
|
401
417
|
|
|
@@ -432,6 +448,7 @@ set. If it forces a row below its target size, the action overflows instead of s
|
|
|
432
448
|
|
|
433
449
|
The mapped `--show-duration` and `--hide-duration` hooks independently retime the popup's enter
|
|
434
450
|
and exit transitions; both default to `var(--lr-transition-fast)`. Clear and calendar action
|
|
451
|
+
resting colour is `--lr-date-input-action-color` (default `var(--lr-color-text-quiet)`); their
|
|
435
452
|
state hooks are `--lr-date-input-action-hover-color`, `--lr-date-input-action-hover-bg`, and
|
|
436
453
|
`--lr-date-input-action-hover-radius` (defaults: text, transparent, and the input radius), plus
|
|
437
454
|
`--lr-date-input-action-active-color`, `--lr-date-input-action-active-bg`, and
|
|
@@ -571,4 +588,11 @@ and `dateTimeFormat(locale, options)`.
|
|
|
571
588
|
- `--lr-form-control-focus-shadow` — The shared field halo, painted as a `box-shadow` while the row
|
|
572
589
|
holds focus. Default: `none`. Additive — the focused brand border is never replaced by it.
|
|
573
590
|
|
|
591
|
+
Further custom properties:
|
|
592
|
+
|
|
593
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
594
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
595
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
596
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
597
|
+
|
|
574
598
|
---
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 8 parts,
|
|
12
|
+
- **Themeable via** 8 parts, 27 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Documented with** `lr-accordion`, `lr-accordion-item` (same section below)
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -341,8 +341,12 @@ Details surface paint uses `--lr-details-outlined-bg` / `--lr-details-outlined-b
|
|
|
341
341
|
respectively the existing surface/border, brand-quiet/transparent, and brand-quiet/border values.
|
|
342
342
|
Summary interaction paint uses `--lr-details-summary-hover-bg` (default
|
|
343
343
|
`var(--lr-color-brand-quiet)`) and `--lr-details-summary-active-bg` (default the existing active
|
|
344
|
-
`color-mix(...)`)
|
|
344
|
+
`color-mix(...)`); `--lr-details-summary-hover-color` (default `var(--lr-details-summary-color)`)
|
|
345
|
+
recolors the summary text while hovered or pressed. All eight are inheritable inline-fallback hooks, so they isolate one disclosure
|
|
345
346
|
theme without requiring shared-token changes or shadow-part selectors.
|
|
347
|
+
`lr-details` also takes `--lr-details-icon-color` (default `inherit`, so the icon follows the summary
|
|
348
|
+
text including its hover colour) and `--lr-details-icon-size` (default `var(--lr-size-1rem)`, the
|
|
349
|
+
built-in chevron only; a slotted `expand-icon`/`collapse-icon` keeps its own size).
|
|
346
350
|
|
|
347
351
|
```html
|
|
348
352
|
<lr-details summary="Advanced options">Panel content</lr-details>
|
|
@@ -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** 16 parts, 33 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `body`: `--lr-dialog-height`; `footer`: `--lr-dialog-height`; `header`: `--lr-dialog-height`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -42,6 +42,9 @@ read, and neither is deprecated.
|
|
|
42
42
|
the property, the reflected attribute and the two methods can never disagree. `el.open = false`
|
|
43
43
|
therefore emits the full close lifecycle and can be vetoed. Markup that renders open from the start (`<lr-dialog open>`) emits nothing.
|
|
44
44
|
- `label: string = ''` — mapped visible title. The richer `label` slot wins over it.
|
|
45
|
+
- `withLabel: boolean = false` (attribute `with-label`) — server-rendering hint that a `label` slot
|
|
46
|
+
child is provided, so the titled header is present before hydration; in the browser the real slot
|
|
47
|
+
content decides, so `with-label` without a label never renders an empty heading. Also on `lr-drawer`.
|
|
45
48
|
- `headingLevel: LyraHeadingLevel = '3'` (attribute `heading-level`, reflected) — `1`–`6` expose
|
|
46
49
|
the generated visible title (string property or rich `label` slot) at that semantic level;
|
|
47
50
|
invalid untyped values retain level 3, while `none` keeps visual title text without heading
|
|
@@ -60,6 +63,11 @@ read, and neither is deprecated.
|
|
|
60
63
|
panel) leaves it.
|
|
61
64
|
- `withFooter: boolean = false` (attribute `with-footer`, reflected) — keeps the footer wrapper
|
|
62
65
|
rendered as an SSR/hydration presence hint even before assigned slot content is observable
|
|
66
|
+
- `fullscreenNarrow: boolean = false` (attribute `fullscreen-narrow`, reflected) — opt-in
|
|
67
|
+
full-screen layout below a `40rem` viewport width: the panel drops the viewport inset, corner
|
|
68
|
+
radius and size caps, fills the viewport and pads itself with the `--lr-safe-area-*` insets. At
|
|
69
|
+
wider viewports it renders exactly as without the attribute. The `(max-width: 40rem)` breakpoint
|
|
70
|
+
is evaluated with `matchMedia()` and followed live while the dialog is connected.
|
|
63
71
|
- `size: LyraSize = 'm'` (reflected) — `'2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'small' | 'medium' |
|
|
64
72
|
'large'`. Panel-width tier, on the shared six-step ladder: `20rem` (`2xs`), `24rem` (`xs`), `28rem`
|
|
65
73
|
(`s`/`small`), `32rem` (`m`/`medium`), `38rem`
|
|
@@ -90,7 +98,8 @@ chrome remains visible. The fallback order appears below.
|
|
|
90
98
|
`DialogCloseReason = 'escape' | 'backdrop' | 'close-button' | 'api' | 'unmount' | string` —
|
|
91
99
|
`'escape'`/`'backdrop'` are emitted by the dialog's own built-in dismiss triggers;
|
|
92
100
|
`'close-button'` by the built-in header close button (rendered unless `without-close-button` is
|
|
93
|
-
set); `'
|
|
101
|
+
set); `'close-action'` by a declarative `data-dialog="close"` (or, in a drawer,
|
|
102
|
+
`data-drawer="close"`) action; `'api'`
|
|
94
103
|
covers `close()` with no argument, `hide()`, and `open = false`; `'unmount'` is emitted
|
|
95
104
|
automatically if the dialog is removed from the DOM while still `open` by anything other than its
|
|
96
105
|
own `close()` (a consumer's own cleanup code, a parent re-render that drops it); any other string
|
|
@@ -118,6 +127,33 @@ chrome remains visible. The fallback order appears below.
|
|
|
118
127
|
|
|
119
128
|
The two `lr-after-*` events are never cancelable.
|
|
120
129
|
|
|
130
|
+
**Declarative open and close:** markup alone can drive a dialog, with the same attribute Web
|
|
131
|
+
Awesome documents, so migrated markup keeps working:
|
|
132
|
+
|
|
133
|
+
```html
|
|
134
|
+
<button data-dialog="open edit-user">Edit user</button>
|
|
135
|
+
<lr-dialog id="edit-user" label="Edit user">
|
|
136
|
+
<p>Form fields</p>
|
|
137
|
+
<button slot="footer" data-dialog="close">Cancel</button>
|
|
138
|
+
</lr-dialog>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
- Activating any element with `data-dialog="open <id>"` calls `show()` on the `<lr-dialog>` with
|
|
142
|
+
that `id`. The id is looked up in the trigger's own tree (its shadow root or document) first, then
|
|
143
|
+
in its document. An id that matches nothing, or matches something other than a dialog, is ignored.
|
|
144
|
+
- Activating a descendant with `data-dialog="close"` (including one inside a descendant's open
|
|
145
|
+
shadow root) closes the nearest owning dialog with reason `'close-action'`; `lr-hide`'s
|
|
146
|
+
`detail.source` is the action element. A nested dialog consumes its own close action, so its
|
|
147
|
+
parent stays open. `lr-request-close` is not emitted.
|
|
148
|
+
- Both use the ordinary lifecycle, so `lr-show`, `lr-hide` and `lr-close-request` can veto them.
|
|
149
|
+
- Activation is a `click`, so Enter/Space on a native or custom button counts. A `disabled`,
|
|
150
|
+
`aria-disabled="true"` or inert action does nothing, and so does a click whose default was already
|
|
151
|
+
prevented.
|
|
152
|
+
- Dialogs register themselves, so a dialog defined under another tag name works the same. One
|
|
153
|
+
delegated document listener serves every dialog and drawer; it is installed when the first one
|
|
154
|
+
connects and removed when the last one disconnects.
|
|
155
|
+
- `<lr-drawer>` uses `data-drawer` instead; `data-dialog` never addresses a drawer.
|
|
156
|
+
|
|
121
157
|
The open sequence is `lr-show` → `lr-initial-focus` (when focus would move) → `lr-after-show`; the
|
|
122
158
|
direct close sequence is `lr-hide` → `lr-close-request` → state change → `lr-close` → `lr-after-hide`.
|
|
123
159
|
A built-in dismissal prepends `lr-request-close`. **Both state pre-events fire _before_ the state changes**, so reading
|
|
@@ -192,7 +228,10 @@ border simply has no default to relay, which is different from border theming be
|
|
|
192
228
|
remains the one exception that does not cross this way: use `--lr-theme-icon-button-size`, never
|
|
193
229
|
`--lr-icon-button-size`, as noted above.
|
|
194
230
|
|
|
195
|
-
|
|
231
|
+
Further CSS parts: `close-button__button`: Web Awesome-named alias of `close-button-control`: the
|
|
232
|
+
close button's own native control.
|
|
233
|
+
|
|
234
|
+
**Themeable custom properties:** mapped aliases are `--backdrop-filter`, `--backdrop-color` (alias of `--lr-dialog-overlay-color`, which wins when both are set), `--width`, `--spacing`,
|
|
196
235
|
`--header-spacing`, `--body-spacing`, `--footer-spacing`, `--show-duration`, and
|
|
197
236
|
`--hide-duration`. The individual region properties override `--spacing`; mapped properties in
|
|
198
237
|
turn fall back to the retained Lyra tokens: `--lr-dialog-overlay-color` (default
|
|
@@ -207,7 +246,12 @@ the private `--_lr-dialog-max-width` is the `size` property's own tier value (`3
|
|
|
207
246
|
default, unchanged); when
|
|
208
247
|
`--lr-dialog-width` is set but `--lr-dialog-max-width` is left at its default, the cap falls back to
|
|
209
248
|
the requested width itself — not the tier default — so an assertive width isn't silently clipped;
|
|
210
|
-
the viewport is still a hard limit either way), `--lr-dialog-height` (default `
|
|
249
|
+
the viewport is still a hard limit either way), `--lr-dialog-max-height` (default `100%` — the
|
|
250
|
+
panel's max-block-size cap, the block-axis twin of `--lr-dialog-max-width`, applied as
|
|
251
|
+
`min(var(--lr-dialog-max-height, 100%), 100%)` so the viewport stays a hard limit),
|
|
252
|
+
`--lr-dialog-viewport-inset` (default `var(--lr-space-l)` — the gap between the viewport edges and
|
|
253
|
+
the panel on all four sides; the `--lr-safe-area-*` insets still win where larger; replaces the
|
|
254
|
+
`::part(dialog) { max-block-size }`-style overrides), `--lr-dialog-height` (default `auto` — the panel
|
|
211
255
|
shrink-wraps to content on the block axis; always capped at
|
|
212
256
|
`100%`, i.e. the viewport, like every other panel dimension). With it set, `[part="body"]`'s own
|
|
213
257
|
`flex: 1 1 auto` is what actually gives slotted content a definite, fillable block size:
|
|
@@ -219,9 +263,13 @@ preview or editor fills the dialog without a `::part(body)` rule; light-DOM rule
|
|
|
219
263
|
still win, so `flex: none` keeps a heading or toolbar at its natural size. On `<lr-drawer>`,
|
|
220
264
|
`fill-body` also restores the body growth the drawer otherwise opts out of.
|
|
221
265
|
`--lr-dialog-heading-font-size` (default `inherit`), `--lr-dialog-heading-font-weight` (default
|
|
222
|
-
`var(--lr-font-weight-semibold)`)
|
|
223
|
-
`var(--lr-font-heading)`) style the visible header title (`[part~="heading"]`), including
|
|
224
|
-
`confirm()`'s
|
|
266
|
+
`var(--lr-font-weight-semibold)`), `--lr-dialog-heading-letter-spacing` (default `normal`) and
|
|
267
|
+
`--lr-dialog-heading-font-family` (default `var(--lr-font-heading)`) style the visible header title (`[part~="heading"]`), including
|
|
268
|
+
`confirm()`'s, and `--lr-dialog-heading-line-height` (default `inherit`) sets its line height.
|
|
269
|
+
`--lr-dialog-header-border` (default `var(--lr-border-width-thin) solid var(--lr-dialog-divider-color)`)
|
|
270
|
+
is the header's bottom rule as a border shorthand (`none` removes it; the footer rule keeps
|
|
271
|
+
`--lr-dialog-divider-color`), and `--lr-dialog-body-overflow` (default `auto`) is the body's
|
|
272
|
+
`overflow`, for example `hidden` when slotted content manages its own scrolling. `--lr-dialog-spacing` (default `var(--lr-space-l)` —
|
|
225
273
|
the padding inside `[part="body"]` and the _inline_ padding of the header and footer rows),
|
|
226
274
|
`--lr-dialog-spacing-block` (default `var(--lr-space-m)` — the _block_ padding of the header and
|
|
227
275
|
footer rows, which are tighter than the body by default), `--lr-dialog-panel-duration` (default
|
|
@@ -230,10 +278,14 @@ footer rows, which are tighter than the body by default), `--lr-dialog-panel-dur
|
|
|
230
278
|
The panel paints from the **shared overlay-surface family** (16.0.0), not from the page-surface
|
|
231
279
|
tokens this entry previously named: `--lr-overlay-surface` (default `var(--lr-color-surface-overlay)`
|
|
232
280
|
— the panel fill), `--lr-overlay-border` (default `var(--lr-color-border-subtle)` — the panel edge and the
|
|
233
|
-
header's and footer's dividing rules), `--lr-overlay-radius` (default `var(--lr-radius)` — the panel
|
|
281
|
+
header's and footer's dividing rules unless `--lr-dialog-divider-color` is set), `--lr-overlay-radius` (default `var(--lr-radius-container)` — the panel
|
|
234
282
|
corner and the close button's) and `--lr-overlay-shadow-modal` (default `var(--lr-shadow-xl)` — the
|
|
235
283
|
panel's elevation). None is declared on `:host`, so one declaration on `:root` (or on any ancestor,
|
|
236
|
-
to scope it) retints the dialog together with every popup opened from it.
|
|
284
|
+
to scope it) retints the dialog together with every popup opened from it. Two dialog-scoped hooks
|
|
285
|
+
split the panel from that family: `--lr-dialog-panel-bg` (default: the `--lr-overlay-surface` chain)
|
|
286
|
+
fills this panel only, so popups, menus and listboxes opened inside the dialog keep the overlay
|
|
287
|
+
surface, and `--lr-dialog-divider-color` (default: the `--lr-overlay-border` chain) colours the
|
|
288
|
+
header's and footer's dividing rules apart from the panel edge. The modal tier is a
|
|
237
289
|
separate name from `--lr-overlay-shadow-anchored`, which anchored popups read, so raising popups
|
|
238
290
|
never raises dialogs.
|
|
239
291
|
|
|
@@ -410,4 +462,44 @@ with `className`:
|
|
|
410
462
|
Invoking the helper synchronously registers both classes before mounting the transient element;
|
|
411
463
|
consumers do not need a separate registration import for helper-created dialogs.
|
|
412
464
|
|
|
465
|
+
### `prompt()`
|
|
466
|
+
|
|
467
|
+
A drop-in async replacement for `window.prompt()`, and the text-entry sibling of `confirm()`, with
|
|
468
|
+
the same module conventions.
|
|
469
|
+
|
|
470
|
+
```ts
|
|
471
|
+
import { prompt } from "@aceshooting/lyra-ui/components/overlays/dialog/prompt.js";
|
|
472
|
+
|
|
473
|
+
const name = await prompt({
|
|
474
|
+
title: "Rename conversation",
|
|
475
|
+
label: "Name",
|
|
476
|
+
value: conversation.name,
|
|
477
|
+
validate: (value) => (value.trim() ? null : "Enter a name"),
|
|
478
|
+
});
|
|
479
|
+
if (name !== null) renameConversation(name);
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
`prompt(options: PromptOptions): Promise<string | null>` where
|
|
483
|
+
`PromptOptions = { title: string; label: string; description?: string; value?: string /* = '' */; placeholder?: string; validate?: (value: string) => string | null | undefined; confirmLabel?: string /* = 'Confirm' */; cancelLabel?: string /* = 'Cancel' */; size?: LyraSize /* = 'm' */; headingLevel?: LyraHeadingLevel /* = '2' */; className?: string }`.
|
|
484
|
+
|
|
485
|
+
Resolves the submitted string when the confirm button is pressed or Enter is pressed in the field,
|
|
486
|
+
and `null` on Escape, a backdrop click, the cancel button or removal. The body holds one labelled
|
|
487
|
+
`<lr-input data-lr-prompt-field>` (`label` names it) that starts with `value` and takes focus when
|
|
488
|
+
the dialog opens, through the dialog's own `lr-initial-focus` hand-off. Submitting runs
|
|
489
|
+
`validate(value)` first: a returned non-empty message becomes the field's `errorText` (announced
|
|
490
|
+
and `aria-invalid="true"`), the field keeps focus and the dialog stays open; typing clears it, and
|
|
491
|
+
`null`, `undefined` or `''` accepts the value. The message is rendered as given, so localize it in
|
|
492
|
+
the caller. The default action labels resolve the shared `'confirm'` and `'cancel'` messages
|
|
493
|
+
through the active locale, exactly as `confirm()`'s do.
|
|
494
|
+
|
|
495
|
+
Everything else matches `confirm()`: a transient `<lr-dialog>` on `document.body` with
|
|
496
|
+
`lightDismiss` on and no header close button, removed after its exit animation; `title` is the
|
|
497
|
+
header title at `headingLevel`; `size` and `className` are forwarded; dismissal funnels through
|
|
498
|
+
`close()`/`lr-close`, so a `lr-hide` or `lr-close-request` veto keeps it open; focus returns to the
|
|
499
|
+
opener once it settles. Actions are `<lr-button>` elements in the `footer` slot carrying
|
|
500
|
+
`data-lr-prompt-action="cancel" | "confirm"`, and `description` becomes a zero-specificity
|
|
501
|
+
`<p data-lr-prompt-description>` above the field, so `--lr-dialog-*`, `--lr-input-*` and
|
|
502
|
+
`--lr-button-*` tokens scoped through `className` all apply. Importing `prompt` is side-effect
|
|
503
|
+
free; invoking it registers `<lr-dialog>`, `<lr-input>` and `<lr-button>`.
|
|
504
|
+
|
|
413
505
|
---
|
|
@@ -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** 5 parts, 5 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
|
---
|
|
@@ -21,15 +21,24 @@ Unsupported orientation values normalize to `horizontal`. The boolean `vertical`
|
|
|
21
21
|
A semantic separator: renders `<hr part="base" role="separator" aria-orientation="…">`. A host
|
|
22
22
|
`aria-label` is forwarded to that inner semantic owner.
|
|
23
23
|
|
|
24
|
-
**Properties:** `orientation: 'horizontal' | 'vertical' = 'horizontal'` (reflected)
|
|
25
|
-
`vertical: boolean = false` (reflected Shoelace-compatible shorthand)
|
|
24
|
+
**Properties:** `orientation: 'horizontal' | 'vertical' = 'horizontal'` (reflected),
|
|
25
|
+
`vertical: boolean = false` (reflected Shoelace-compatible shorthand),
|
|
26
|
+
`labelPlacement: 'start' | 'center' | 'end' = 'center'` (`label-placement`, reflected) and
|
|
27
|
+
`withLabel: boolean = false` (`with-label`, reflected).
|
|
26
28
|
|
|
27
|
-
**
|
|
29
|
+
**Label:** slotted content in the default slot is drawn on the line; the base then becomes a
|
|
30
|
+
`div role="separator"` with `line` / `line-start` / `line-end` and `label` parts, and the label text
|
|
31
|
+
names the separator unless the host sets `aria-label`. `with-label` follows the real slot content in
|
|
32
|
+
the browser; set it on server-rendered markup so the labeled layout exists before hydration.
|
|
33
|
+
|
|
34
|
+
**Events:** none. **Slots:** default (label). **CSS parts:** `base`, `line`, `line-start`,
|
|
35
|
+
`line-end`, `label`.
|
|
28
36
|
|
|
29
37
|
**Themeable custom properties:** `--color` (falls back to `--lr-color-border-subtle`, the
|
|
30
38
|
decorative-edge token, which itself resolves to `--lr-color-border` unless a theme sets a subtle
|
|
31
39
|
border), `--width` (falls back to `--lr-border-width-thin`), and `--spacing` (default `0`, applied
|
|
32
|
-
on the cross axis)
|
|
40
|
+
on the cross axis), `--label-spacing` (label padding, default `--lr-space-s`) and `--label-offset`
|
|
41
|
+
(short line length for a `start`/`end` label, default `2em`).
|
|
33
42
|
|
|
34
43
|
The host is `display: block` when horizontal and `display: inline-block; block-size: 100%` when
|
|
35
44
|
vertical, so a vertical divider fills its flex/grid row's height with no extra CSS — but it needs a
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [charts](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/charts.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 19 parts,
|
|
12
|
+
- **Themeable via** 19 parts, 54 custom properties — see `lr-line-chart.md`
|
|
13
13
|
- **Documented with** `lr-line-chart`: see [lr-line-chart.md](./lr-line-chart.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** 16 parts, 41 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `body`: `--lr-dialog-height`; `footer`: `--lr-dialog-height`; `header`: `--lr-dialog-height`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -33,6 +33,11 @@ the slide animation are its own.
|
|
|
33
33
|
- `contained: boolean = false` (attribute `contained`, reflected) — position within the nearest
|
|
34
34
|
containing block without a backdrop, page inerting, focus trap, scroll lock, top-layer
|
|
35
35
|
promotion, or global Escape ownership
|
|
36
|
+
- `floating: boolean = false` (attribute `floating`, reflected) — an inset, floating sheet: the
|
|
37
|
+
panel keeps a `--lr-drawer-inset` gap (default `var(--lr-space-s)`) from every viewport edge
|
|
38
|
+
(from the containing block's edges with `contained`; the safe-area insets still win where
|
|
39
|
+
larger) and rounds its corners with `--lr-overlay-radius` (default `var(--lr-radius-container)`).
|
|
40
|
+
Off by default, so the drawer stays square and edge-flush.
|
|
36
41
|
- `heading?: string`, `label: string`,
|
|
37
42
|
`withoutCloseButton: boolean = false` (attribute `without-close-button`, reflected),
|
|
38
43
|
`noHeader: boolean = false` (attribute `no-header`, Shoelace's spelling, reflected),
|
|
@@ -52,10 +57,18 @@ the slide animation are its own.
|
|
|
52
57
|
from the drawer-specific `--size` CSS custom property below, which maps to this same panel's own
|
|
53
58
|
`inline-size`/`block-size` for the active axis.
|
|
54
59
|
|
|
60
|
+
More properties: `with-label`: see the component JSDoc.
|
|
61
|
+
|
|
55
62
|
**Methods:** `show(): Promise<void>`, `hide(): Promise<void>`,
|
|
56
63
|
`close(reason?: DialogCloseReason): Promise<void>` — inherited unchanged from `lr-dialog`; each
|
|
57
64
|
promise settles after the matching `lr-after-*` event.
|
|
58
65
|
|
|
66
|
+
**Declarative open and close:** `data-drawer="open <id>"` on any element opens the `<lr-drawer>`
|
|
67
|
+
with that `id`, and `data-drawer="close"` on a descendant closes the nearest owning drawer with
|
|
68
|
+
reason `'close-action'`. Lookup, nesting, vetoes and disabled/inert handling follow `lr-dialog`'s
|
|
69
|
+
declarative rules; `data-dialog` never addresses a drawer and `data-drawer` never addresses a
|
|
70
|
+
dialog.
|
|
71
|
+
|
|
59
72
|
**Events:** `lr-show` (cancelable), `lr-after-show`, `lr-hide` (cancelable), `lr-after-hide`, and
|
|
60
73
|
`lr-initial-focus` (cancelable), `lr-request-close` (cancelable, detail source), and `lr-close`
|
|
61
74
|
(`detail: { reason: DialogCloseReason }`, non-cancelable), plus cancelable `lr-close-request`
|
|
@@ -80,7 +93,7 @@ lifecycle.
|
|
|
80
93
|
controls, rendered before the built-in close button), `footer` — all inherited from `lr-dialog`.
|
|
81
94
|
|
|
82
95
|
**CSS parts:** `base`; `backdrop overlay`; `panel dialog`; `header`; `heading title label`;
|
|
83
|
-
`header-actions`; `close-button close-button__base`; `close-button-control
|
|
96
|
+
`header-actions`; `close-button close-button__base`; `close-button-control` (also `close-button__button`, the same native control); `body`; `footer`.
|
|
84
97
|
Names grouped together are aliases on the same functional node; `close-button-control` is the
|
|
85
98
|
composed `<lr-icon-button>`'s own native `<button>`, inherited from `lr-dialog` as of 16.0.0.
|
|
86
99
|
|
|
@@ -88,7 +101,7 @@ composed `<lr-icon-button>`'s own native `<button>`, inherited from `lr-dialog`
|
|
|
88
101
|
the inherited `--width` and `--lr-dialog-width` remain compatibility fallbacks when neither
|
|
89
102
|
`--size` nor `--lr-drawer-width` is set, and `--lr-dialog-max-width` remains an effective cap,
|
|
90
103
|
falling back to the `size` property's own tier value (see Properties above) when unset.
|
|
91
|
-
The other mapped/inherited aliases are `--backdrop-filter`, `--spacing`, `--header-spacing`, `--body-spacing`,
|
|
104
|
+
The other mapped/inherited aliases are `--backdrop-filter`, `--backdrop-color` (alias of `--lr-dialog-overlay-color`, which wins when both are set), `--spacing`, `--header-spacing`, `--body-spacing`,
|
|
92
105
|
`--footer-spacing`, `--show-duration`, and `--hide-duration`. Lyra compatibility tokens remain:
|
|
93
106
|
`--lr-drawer-width` (default `--lr-size-24rem`; used by
|
|
94
107
|
`placement="start"|"end"`, capped at `100%`), `--lr-drawer-height` (default `--lr-size-24rem`;
|
|
@@ -96,14 +109,18 @@ used by `placement="top"|"bottom"`), `--lr-drawer-enter-x` / `--lr-drawer-enter-
|
|
|
96
109
|
slide translate offset, used for both the enter and the exit keyframes — `-x` for start/end, `-y`
|
|
97
110
|
for top/bottom; both default to `±var(--lr-size-1rem)` and are set per `placement`, with `-x`
|
|
98
111
|
explicitly flipped under `:dir(rtl)` since `translateX` is physical. Override to lengthen/shorten
|
|
99
|
-
the slide)
|
|
112
|
+
the slide), `--lr-drawer-panel-bg` (the panel's own fill, ahead of the inherited
|
|
113
|
+
`--lr-dialog-panel-bg` and the shared `--lr-overlay-surface`; unlike the shared token it does not
|
|
114
|
+
retint popups opened inside the drawer), `--lr-drawer-radius` (default `0`, or
|
|
115
|
+
`--lr-overlay-radius` while `floating` is set; an explicit value wins either way) and
|
|
116
|
+
`--lr-drawer-inset` (default `var(--lr-space-s)`; the `floating` gap, ignored otherwise). It also inherits every `<lr-dialog>` token — `--lr-dialog-overlay-color`,
|
|
100
117
|
`--lr-dialog-backdrop-filter`, `--lr-dialog-width`, `--lr-dialog-max-width`, `--lr-dialog-spacing`,
|
|
101
118
|
`--lr-dialog-spacing-block`, `--lr-dialog-panel-duration` and `--lr-dialog-backdrop-duration` —
|
|
102
119
|
since `LyraDrawer` extends `LyraDialog`, including the shared overlay-surface family the panel
|
|
103
120
|
paints from: `--lr-overlay-surface`, `--lr-overlay-border`, `--lr-overlay-radius` and
|
|
104
121
|
`--lr-overlay-shadow-modal`. The drawer's own `[part~="panel"]` rule squares the corners and steps
|
|
105
122
|
the default elevation down to `var(--lr-shadow-l)` — three of its edges are flush with the viewport —
|
|
106
|
-
so on this tag `--lr-overlay-radius` is overridden, while the fill, edge colour and a consumer
|
|
123
|
+
so on this tag `--lr-overlay-radius` is overridden unless `floating` is set, while the fill, edge colour and a consumer
|
|
107
124
|
`--lr-overlay-shadow-modal` still take effect. `--lr-dialog-height` is deliberately **not** among the
|
|
108
125
|
inherited tokens above: `<lr-drawer>`'s own `[part~="panel"]` rule unconditionally sets its own
|
|
109
126
|
`block-size` for every placement (`100%` for `start`/`end`, a `--lr-drawer-height`-driven `min()`
|
|
@@ -116,8 +133,8 @@ override `body` would always stretch and push `footer` to the panel's far edge.
|
|
|
116
133
|
`[part="body"]` rule restores the natural content size instead, so `footer` follows immediately
|
|
117
134
|
after a short body. Set the inherited `fill-body` attribute to opt back in: `body` then grows to the
|
|
118
135
|
panel and becomes a column flex container whose slotted children fill it. The inherited
|
|
119
|
-
`--lr-dialog-heading-font-size`, `--lr-dialog-heading-font-weight
|
|
120
|
-
`--lr-dialog-heading-font-family` tokens style the drawer's header title exactly as on
|
|
136
|
+
`--lr-dialog-heading-font-size`, `--lr-dialog-heading-font-weight`,
|
|
137
|
+
`--lr-dialog-heading-letter-spacing` and `--lr-dialog-heading-font-family` tokens style the drawer's header title exactly as on
|
|
121
138
|
`<lr-dialog>`. The drawer's own
|
|
122
139
|
size/width/height tokens take precedence
|
|
123
140
|
for its panel, and only the animation _name_ is overridden, so `--lr-dialog-panel-duration` retunes the
|
|
@@ -132,3 +149,11 @@ slide too and the reduced-motion flattening of the shared `--lr-duration-*` toke
|
|
|
132
149
|
```
|
|
133
150
|
|
|
134
151
|
---
|
|
152
|
+
|
|
153
|
+
The drawer inherits the dialog's opt-in `fullscreen-narrow` attribute (a viewport narrower than 40rem fills the screen) and the panel sizing tokens `--lr-dialog-max-height`, `--lr-dialog-viewport-inset` and `--lr-dialog-divider-color`, exactly as on `<lr-dialog>`.
|
|
154
|
+
|
|
155
|
+
Further custom properties:
|
|
156
|
+
|
|
157
|
+
- `--lr-dialog-body-overflow` (default `auto`): `overflow` of the body region, for example `hidden` when slotted content manages its own scrolling.
|
|
158
|
+
- `--lr-dialog-header-border` (default `var(--lr-border-width-thin) solid var(--lr-dialog-divider-color)`): Border shorthand of the header's bottom rule; `none` removes it. The footer rule keeps `--lr-dialog-divider-color`.
|
|
159
|
+
- `--lr-dialog-heading-line-height` (default `inherit`): Line height of the visible header title.
|
|
@@ -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 parts,
|
|
12
|
+
- **Themeable via** 12 parts, 25 custom properties — see `lr-menu.md`
|
|
13
13
|
- **Documented with** `lr-menu`: see [lr-menu.md](./lr-menu.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -9,7 +9,8 @@
|
|
|
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, 14 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `content`: `--lr-overlay-content-padding`
|
|
13
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
15
|
|
|
15
16
|
---
|
|
@@ -103,8 +104,8 @@ its surface.
|
|
|
103
104
|
light-dismiss handling.
|
|
104
105
|
- `withoutArrow: boolean = false` (attribute `without-arrow`, reflected) — suppresses the
|
|
105
106
|
pointer. Set `without-arrow` to preserve the previous omitted-arrow appearance.
|
|
106
|
-
- `arrowPlacement`, `arrowPadding`,
|
|
107
|
-
`lr-popover`.
|
|
107
|
+
- `arrowPlacement`, `arrowPadding`, `fullWidthTrigger` (`full-width-trigger`), and
|
|
108
|
+
`accessibleLabel` (`aria-label`) are inherited from `lr-popover`.
|
|
108
109
|
- `popupRole: 'menu'` (attribute `popup-role`) is the narrowed inherited surface. Dropdowns cannot
|
|
109
110
|
be changed into dialogs; use `lr-popover popup-role="dialog"` for arbitrary dialog-like content.
|
|
110
111
|
|
|
@@ -145,7 +146,10 @@ default; style it only to debug the travel region.
|
|
|
145
146
|
|
|
146
147
|
**Themeable custom properties:** `--show-duration` and `--hide-duration` (both default
|
|
147
148
|
`var(--lr-transition-fast)`), mapped `--max-width` and `--arrow-size`, plus retained
|
|
148
|
-
`--lr-overlay-max-inline-size` and `--lr-overlay-arrow-size` fallbacks
|
|
149
|
+
`--lr-overlay-max-inline-size` and `--lr-overlay-arrow-size` fallbacks, and the inherited
|
|
150
|
+
`--lr-overlay-inline-size` / `--lr-overlay-min-inline-size` popup width hooks (a `top-layer` popup
|
|
151
|
+
honours them too). The menu keeps its own compact `var(--lr-space-xs)` content padding, so
|
|
152
|
+
`--lr-overlay-content-padding` does not reach it. The popup surface is
|
|
149
153
|
`lr-popover`'s, so the whole overlay-surface family reaches it unchanged: `--lr-overlay-surface`,
|
|
150
154
|
`--lr-overlay-border`, `--lr-overlay-radius`, `--lr-overlay-shadow-anchored`, and the cascading
|
|
151
155
|
`--lr-positioning-strategy` override documented on `<lr-popover>`
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `emoji-picker-element-data` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 19 parts,
|
|
12
|
+
- **Themeable via** 19 parts, 38 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `form-control-label`: `--lr-form-control-required-content`; `grid`: `--lr-theme-scrollbar-color`; `search-wrapper`: `--lr-emoji-picker-search-clear-gap`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -192,6 +192,9 @@ The `grid` scroll container also honors the opt-in theme-level
|
|
|
192
192
|
(defaults `auto`/`stable`/`auto`, matching its previous unconditional `scrollbar-gutter: stable`) — set any of them on `:root` or any ancestor for
|
|
193
193
|
one declaration to retheme every internal scroll container in the library.
|
|
194
194
|
|
|
195
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
196
|
+
height of the field label.
|
|
197
|
+
|
|
195
198
|
**Optional peer dependency:** install `emoji-picker-element-data` with
|
|
196
199
|
`pnpm add emoji-picker-element-data` for the built-in auto-loaded default emoji set — omit it and
|
|
197
200
|
supply `groups` directly instead. The loader never throws; it leaves `groups` empty and logs one
|
|
@@ -226,3 +229,9 @@ those through `registerLyraLocale()` or `.strings`. An unknown future group id u
|
|
|
226
229
|
- `--lr-form-control-focus-shadow` — The shared field halo, painted as a `box-shadow` on the search
|
|
227
230
|
field while it is focused. One name for every field-shaped control in the library, so a halo is
|
|
228
231
|
configured once instead of per component; additive to the existing focus outline. Default: `none`.
|
|
232
|
+
|
|
233
|
+
Further custom properties:
|
|
234
|
+
|
|
235
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
236
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
237
|
+
- `--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** 5 parts,
|
|
12
|
+
- **Themeable via** 5 parts, 13 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
|
---
|
|
@@ -47,7 +47,8 @@ attribute), `description` (rich description content, overrides the `description`
|
|
|
47
47
|
|
|
48
48
|
**CSS parts:** `base`, `icon`, `heading`, `description`, `actions`
|
|
49
49
|
|
|
50
|
-
**Themeable custom properties:** `--lr-empty-
|
|
50
|
+
**Themeable custom properties:** `--lr-empty-icon-color` (default `--lr-color-text-quiet`) colours
|
|
51
|
+
the icon or illustration; `--lr-empty-padding` (default `--lr-space-l` — padding at the
|
|
51
52
|
default density), `--lr-empty-gap` (default `--lr-space-s` — gap between the icon, heading, and
|
|
52
53
|
description at the default density), `--lr-empty-icon-size` (default `--lr-font-size-3xl` — icon
|
|
53
54
|
size at the default density), `--lr-empty-compact-icon-size` (default `--lr-font-size-m` — icon
|
|
@@ -54,7 +54,7 @@ The anchored detail popover is a floating surface and paints from the **shared o
|
|
|
54
54
|
`--lr-overlay-surface` (default `var(--lr-color-surface-overlay)`), `--lr-overlay-border` (default
|
|
55
55
|
`var(--lr-color-border-subtle)`) and `--lr-overlay-shadow-anchored` (default `var(--lr-shadow-m)`). None is
|
|
56
56
|
declared on `:host`, so one declaration on `:root` — or on any ancestor, to scope it — retints this
|
|
57
|
-
surface together with every other floating surface in the library. `--lr-overlay-radius` (default `var(--lr-radius)`) is the matching corner radius.
|
|
57
|
+
surface together with every other floating surface in the library. `--lr-overlay-radius` (default `var(--lr-radius-container)`) is the matching corner radius.
|
|
58
58
|
|
|
59
59
|
`--lr-positioning-strategy` — the preview popover reads this same cascading
|
|
60
60
|
`absolute`/`fixed` override documented on `<lr-popover>` when it is (re)positioned, falling back to
|