@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
|
@@ -9,7 +9,7 @@
|
|
|
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** none
|
|
12
|
-
- **Themeable via** 21 parts,
|
|
12
|
+
- **Themeable via** 21 parts, 35 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `legend-swatch`: `--lr-chart-pattern-step`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -403,7 +403,8 @@ without moving the library-wide ramp; `--lr-chart-legend-side-max` (default
|
|
|
403
403
|
`--lr-chart-legend-gap` (default `var(--lr-space-s)`), `--lr-chart-legend-padding` (default
|
|
404
404
|
`var(--lr-space-xs)`), `--lr-chart-legend-font-size` (default `var(--lr-font-size-xs)`),
|
|
405
405
|
`--lr-chart-legend-swatch-size` (default `var(--lr-size-0-7em)`) and
|
|
406
|
-
`--lr-chart-legend-swatch-radius` (default `var(--lr-radius-xs)`)
|
|
406
|
+
`--lr-chart-legend-swatch-radius` (default `var(--lr-radius-xs)`), `--lr-chart-legend-justify`
|
|
407
|
+
(default `center`) and `--lr-chart-legend-item-line-height` (default `inherit`) restyle the legend without
|
|
407
408
|
`::part()` rules; `--lr-lite-chart-selected-outline-color` (default
|
|
408
409
|
`var(--lr-color-brand)`) — the stroke drawn on
|
|
409
410
|
selected `[part='bar']` and `[part='point']` marks whose category index is in `selectedIndices`;
|
|
@@ -9,13 +9,19 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 18 parts,
|
|
12
|
+
- **Themeable via** 18 parts, 40 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
|
---
|
|
16
16
|
|
|
17
17
|
## `lr-locale-picker`
|
|
18
18
|
|
|
19
|
+
`--lr-locale-picker-trigger-radius` rounds the trigger only; unset it follows `--lr-locale-picker-radius`, which keeps rounding the listbox and options.
|
|
20
|
+
|
|
21
|
+
`--lr-locale-picker-listbox-min-inline-size` (default `var(--lr-size-12rem)`) is the options
|
|
22
|
+
popover's minimum inline size, still capped by the viewport, the space beside the trigger and the
|
|
23
|
+
popover's `28rem` maximum.
|
|
24
|
+
|
|
19
25
|
Under a coarse pointer the editable text is floored at `--lr-form-control-touch-font-size-min`
|
|
20
26
|
(default `16px`; `0px` opts out) so mobile Safari does not zoom on focus; see "Touch font floor".
|
|
21
27
|
|
|
@@ -274,6 +280,9 @@ default when nothing is set. There is no per-instance `positioning-strategy` pro
|
|
|
274
280
|
`<lr-locale-picker>`; set the custom property on `:root`, a theme, or one clipping ancestor to
|
|
275
281
|
change every unset locale picker beneath it.
|
|
276
282
|
|
|
283
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
284
|
+
height of the field label.
|
|
285
|
+
|
|
277
286
|
**Optional peer deps:** none directly — each row's `<lr-flag>` degrades to an empty render (no
|
|
278
287
|
peer warning duplication; `lr-flag` itself already logs one) when the optional
|
|
279
288
|
`@aceshooting/lyra-flags` package isn't installed and `withoutFlags` is left off.
|
|
@@ -345,3 +354,10 @@ only once it has registered the requested messages; it must not change the activ
|
|
|
345
354
|
- `--lr-locale-picker-option-selected-color` — Selected option text. Default: `var(--lr-color-brand)`.
|
|
346
355
|
|
|
347
356
|
The start-placed label aligns to the first line of the field, measured with `--lr-form-control-height`.
|
|
357
|
+
|
|
358
|
+
Further custom properties:
|
|
359
|
+
|
|
360
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
361
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
362
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
363
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `@aceshooting/lyra-map`, `dompurify`, `maplibre-gl` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 93 parts,
|
|
13
|
-
- **Tokens by part** (prefer these over a `::part()` rule) `anchor-body`: `--lr-map-anchor-close-reservation`; `anchor-close`: `--lr-map-anchor-close-reservation`; `popup-close-button`: `--lr-map-popup-close-button-active-bg`, `--lr-map-popup-close-button-active-color`, `--lr-map-popup-close-button-hover-bg`, `--lr-map-popup-close-button-hover-color`
|
|
12
|
+
- **Themeable via** 93 parts, 95 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `anchor-body`: `--lr-map-anchor-close-reservation`; `anchor-close`: `--lr-map-anchor-close-reservation`; `initialization-activate`: `--lr-map-initialization-activate-label-display`; `initialization-activate-label`: `--lr-map-initialization-activate-label-display`; `initialization-placeholder`: `--lr-map-initialization-placeholder-bg`; `initialization-skeleton`: `--lr-map-initialization-skeleton-display`; `legend-disclosure`: `--lr-map-legend-disclosure-font-weight`, `--lr-map-legend-disclosure-min-height`, `--lr-map-legend-disclosure-padding`; `legend-group-heading`: `--lr-map-legend-group-heading-color`, `--lr-map-legend-group-heading-padding`; `legend-toggle`: `--lr-map-legend-toggle-font-weight`, `--lr-map-legend-toggle-min-height`, `--lr-map-legend-toggle-padding`; `popup-close-button`: `--lr-map-popup-close-button-active-bg`, `--lr-map-popup-close-button-active-color`, `--lr-map-popup-close-button-hover-bg`, `--lr-map-popup-close-button-hover-color`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
16
16
|
---
|
|
@@ -52,8 +52,29 @@ for exceptions. `--lr-map-control-size` sizes each button (unset: content size a
|
|
|
52
52
|
shorthand), `--lr-map-control-shadow`, `--lr-map-control-bg` (resting fill under the shared glass
|
|
53
53
|
treatment) and `--lr-map-control-color` shape control groups and outlines; `--lr-map-control-hover-bg`
|
|
54
54
|
and `--lr-map-control-active-bg` paint pointer states in every state (the action tokens no longer reach native controls);
|
|
55
|
-
`--lr-map-control-gap` is the margin around each control
|
|
56
|
-
`--lr-map-
|
|
55
|
+
`--lr-map-control-gap` is the margin around each control; `--lr-map-attribution-margin` (default
|
|
56
|
+
`--lr-map-control-gap`) gives the attribution control its own margin shorthand. The attribution control takes
|
|
57
|
+
`--lr-map-attribution-radius`, `--lr-map-attribution-border`, `--lr-map-attribution-padding`
|
|
58
|
+
(default `0 var(--lr-space-xs)`), `--lr-map-attribution-link-padding` (default `0`; each link keeps
|
|
59
|
+
its `--lr-size-24px` minimum box), `--lr-map-attribution-max-inline-size` (default `100%`, never
|
|
60
|
+
wider than the map less the control gaps), `--lr-map-attribution-font-family` (default `inherit`),
|
|
61
|
+
`--lr-map-attribution-font-size` (default `var(--lr-font-size-xs)`) and
|
|
62
|
+
`--lr-map-attribution-line-height` (default `inherit`). Its compact toggle takes
|
|
63
|
+
`--lr-map-attribution-toggle-size` (default `--lr-map-control-size`, then `--lr-icon-button-size`;
|
|
64
|
+
the compact control reserves the same room), `--lr-map-attribution-toggle-radius` (default
|
|
65
|
+
`--lr-map-control-radius`, then a pill) and `--lr-map-attribution-toggle-icon-size` (default
|
|
66
|
+
`var(--lr-size-1rem)`). A grouped zoom, compass or
|
|
67
|
+
geolocate stack takes group-level tokens on top: `--lr-map-control-group-radius` and
|
|
68
|
+
`--lr-map-control-group-border` (defaults: `--lr-map-control-radius` and `--lr-map-control-border`)
|
|
69
|
+
shape the group's outer edge, `--lr-map-control-button-radius` (default `inherit`, the group radius)
|
|
70
|
+
sets the buttons' own corners while the first and last button keep the group's outer corners, and
|
|
71
|
+
`--lr-map-control-divider` (border shorthand, default `var(--lr-border-width-thin) solid
|
|
72
|
+
var(--lr-color-border)`; `none` removes it) draws the line between buttons. The scale takes
|
|
73
|
+
`--lr-map-scale-bg` (default `--lr-map-control-bg`), `--lr-map-scale-radius` (default `0`),
|
|
74
|
+
`--lr-map-scale-border` (default `none`), `--lr-map-scale-padding-block` (default
|
|
75
|
+
`var(--lr-space-2xs)`; the block end adds the ruler's height), `--lr-map-scale-padding-inline`
|
|
76
|
+
(default `var(--lr-space-xs)`), `--lr-map-scale-font-size` (default `var(--lr-font-size-xs)`) and
|
|
77
|
+
`--lr-map-scale-color` (default `var(--lr-color-text)`).
|
|
57
78
|
|
|
58
79
|
```css
|
|
59
80
|
lr-map.branded {
|
|
@@ -62,6 +83,14 @@ lr-map.branded {
|
|
|
62
83
|
--lr-map-control-border: none;
|
|
63
84
|
--lr-map-control-hover-bg: var(--lr-color-brand-quiet);
|
|
64
85
|
}
|
|
86
|
+
/* One pill per group: rounded outer ends, square inner corners, a quiet divider. */
|
|
87
|
+
lr-map.pill-groups {
|
|
88
|
+
--lr-map-control-group-radius: var(--lr-radius-pill);
|
|
89
|
+
--lr-map-control-button-radius: 0;
|
|
90
|
+
--lr-map-control-divider: var(--lr-border-width-thin) solid var(--lr-color-border-subtle);
|
|
91
|
+
--lr-map-scale-radius: var(--lr-radius-pill);
|
|
92
|
+
--lr-map-scale-padding-inline: var(--lr-space-s);
|
|
93
|
+
}
|
|
65
94
|
```
|
|
66
95
|
|
|
67
96
|
**Corner reservations:** when application chrome (a layers button, a sheet handle, a floating
|
|
@@ -71,6 +100,30 @@ header) owns part of a map edge, set `--lr-map-controls-inset-block-start`,
|
|
|
71
100
|
control stacks inward on that logical edge (`inline-start` is the right edge under RTL), and the
|
|
72
101
|
legend and the pick, drawing and scene bars clear the same space.
|
|
73
102
|
|
|
103
|
+
One corner alone takes `--lr-map-controls-<corner>-inset-block` and
|
|
104
|
+
`--lr-map-controls-<corner>-inset-inline` (`<corner>` is `top-left`, `top-right`, `bottom-left` or
|
|
105
|
+
`bottom-right`, the control position vocabulary; each default `0px`; that is `--lr-map-controls-top-left-inset-block`, `--lr-map-controls-top-left-inset-inline`, `--lr-map-controls-top-right-inset-block`, `--lr-map-controls-top-right-inset-inline`, `--lr-map-controls-bottom-left-inset-block`, `--lr-map-controls-bottom-left-inset-inline`, `--lr-map-controls-bottom-right-inset-block` and `--lr-map-controls-bottom-right-inset-inline`), before and after
|
|
106
|
+
construction. The block inset offsets the corner from its row's edge and the inline inset from its
|
|
107
|
+
column's edge; the left corners are the inline-start corners, so they sit at the right under RTL.
|
|
108
|
+
The control row grows with the corner, so the legend (also under `legendClearance = 'corner'`) and
|
|
109
|
+
the pick, drawing and scene bars keep clearing it.
|
|
110
|
+
|
|
111
|
+
```css
|
|
112
|
+
/* Only the zoom stack moves down past an application search card. */
|
|
113
|
+
lr-map { --lr-map-controls-top-right-inset-block: 4rem; }
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
`controlsAvoid?: readonly Element[]` (property only) measures that chrome instead: it is observed
|
|
117
|
+
like `anchorAvoid` (size, page scrolling, visual viewport, once per animation frame), each
|
|
118
|
+
element's overlap with the map is reserved on its cheapest logical edge and added to that edge's
|
|
119
|
+
`--lr-map-controls-inset-*`, so every corner stack, the legend and the bars clear it; the authored
|
|
120
|
+
inset then acts as the gap beyond the element. Clearing it, removing an element or disconnecting
|
|
121
|
+
the map releases the observers.
|
|
122
|
+
|
|
123
|
+
```ts
|
|
124
|
+
map.controlsAvoid = [document.querySelector('.floating-search')!];
|
|
125
|
+
```
|
|
126
|
+
|
|
74
127
|
**Large spatial sources:** a catalog of a million logical geospatial records can stay in a
|
|
75
128
|
host-owned spatial service. Supply a hosted vector style URL, or a style object with vector tile
|
|
76
129
|
sources and layers, through `mapStyle`; the selected peer requests and renders tiles for the
|
|
@@ -587,10 +640,16 @@ implicitly reopen it unless `drawingCompleteBehavior = 'edit'` (attribute
|
|
|
587
640
|
`drawing-complete-behavior`, reflected, default `'clear'`; an unsupported value normalizes to
|
|
588
641
|
`'clear'`) is set: then the completed shape stays on the map as
|
|
589
642
|
an edit session, opened synchronously right after `lr-map-draw-complete`, and finishing that edit
|
|
590
|
-
commits and clears it. `
|
|
643
|
+
commits and clears it. `drawingFinishBehavior = 'clear'` (attribute `drawing-finish-behavior`,
|
|
644
|
+
reflected; an unsupported value normalizes to `'clear'`) set to `'keep'` makes Finish
|
|
645
|
+
(`completeDrawing()`) on any edit session commit (`lr-map-draw-complete`) and keep the edit open,
|
|
646
|
+
so the committed shape stays visible and editable and each later Finish commits again; cancel,
|
|
647
|
+
Escape or `cancelDrawing()` ends it. `drawingSticky = false` (reflected attribute `drawing-sticky`) set to `true`
|
|
591
648
|
keeps `drawMode` armed after a completion or a user cancel (cancel action, Escape,
|
|
592
|
-
`cancelDrawing()`), or re-arms it when the edit opened by `'edit'` ends
|
|
593
|
-
|
|
649
|
+
`cancelDrawing()`), or re-arms it when the edit opened by `'edit'` ends (under `'keep'`, only once
|
|
650
|
+
it is cancelled), so the next shape starts at once without listeners re-assigning `drawMode`. The
|
|
651
|
+
sticky flag is read when that edit ends: clearing it while the edit is open leaves `drawMode` at
|
|
652
|
+
`'none'`. Pick mode, disabling and mode changes still disarm. Before the drawing runtime has loaded it returns `false` without reading the
|
|
594
653
|
snapshot and starts the load; await `whenIdle()` and call it again. Keyboard vertex handles and
|
|
595
654
|
pointer edits update the same session. Arrow keys move a focused vertex in screen direction in both
|
|
596
655
|
LTR and RTL, because the map canvas is never mirrored.
|
|
@@ -635,7 +694,24 @@ consumer that moves `anchor-close` to the header corner through `::part(anchor-c
|
|
|
635
694
|
`--lr-map-anchor-close-reservation` to pad that logical edge of `anchor-body`. For a rich card with
|
|
636
695
|
a fixed header and scrolling details, prefer an `lr-map-anchor` child: its close button owns its own
|
|
637
696
|
column at the block-start, inline-end corner, so the header never runs under it, and its `body`
|
|
638
|
-
scrolls.
|
|
697
|
+
scrolls. To keep such a card in the `anchor` slot, set `anchorFill = false` (attribute `anchor-fill`,
|
|
698
|
+
reflected) to `true`: `anchor-body` stops scrolling and becomes a column that shrinks the slotted
|
|
699
|
+
card to the panel, so the card's own details region (`flex: 1 1 auto; min-block-size: 0;
|
|
700
|
+
overflow: auto`) scrolls with no wrapper. The body then reserves no close room; the slotted content
|
|
701
|
+
inherits `--lr-map-anchor-close-reservation`, so the card pads only its header with it:
|
|
702
|
+
|
|
703
|
+
```html
|
|
704
|
+
<lr-map anchor-closable anchor-fill style="--lr-map-anchor-close-reservation: 2.5rem">
|
|
705
|
+
<article slot="anchor" style="display: flex; flex-direction: column; min-block-size: 0">
|
|
706
|
+
<h3 style="padding-inline-end: var(--lr-map-anchor-close-reservation)">Station 12</h3>
|
|
707
|
+
<div style="flex: 1 1 auto; min-block-size: 0; overflow: auto">Long details</div>
|
|
708
|
+
</article>
|
|
709
|
+
</lr-map>
|
|
710
|
+
```
|
|
711
|
+
|
|
712
|
+
Move the close action into the reserved header corner with
|
|
713
|
+
`lr-map::part(anchor-close) { position: absolute; inset-block-start: 0; inset-inline-end: 0; }`;
|
|
714
|
+
the positioned `anchor` panel is its containing block.
|
|
639
715
|
|
|
640
716
|
`anchorAvoid?: readonly Element[]` (property only) keeps anchors clear of application chrome
|
|
641
717
|
without measuring it: the map observes each element's size, page scrolling and the visual
|
|
@@ -643,7 +719,9 @@ viewport (once per animation frame), intersects each with the map and reserves t
|
|
|
643
719
|
cheapest logical edge (a full-width header reserves `blockStart`, a full-height side sheet its
|
|
644
720
|
inline edge). The result is folded into `anchorSafeArea` edge by edge, the larger inset winning,
|
|
645
721
|
for the `anchor` slot and every `lr-map-anchor` child without its own `safeArea`. Clearing it,
|
|
646
|
-
removing an element or disconnecting the map releases the observers.
|
|
722
|
+
removing an element or disconnecting the map releases the observers. `anchorAvoidGap` (attribute
|
|
723
|
+
`anchor-avoid-gap`, CSS pixels, default `0`) keeps that much extra room beyond each edge an
|
|
724
|
+
obstacle reserves, so a panel never sits flush against it; edges no obstacle reserves stay zero.
|
|
647
725
|
|
|
648
726
|
```ts
|
|
649
727
|
map.anchorAvoid = [document.querySelector('header.app-bar')!, document.querySelector('.search')!];
|
|
@@ -891,9 +969,38 @@ omittedCount, truncatedLabelCount, truncated }` result for the latest assignment
|
|
|
891
969
|
drawing or scene bars share the map. An unsupported value normalizes to `'bottom-start'`. Size and type it with
|
|
892
970
|
`--lr-map-legend-inset-block`, `--lr-map-legend-inset-inline`, `--lr-map-legend-max-inline-size`,
|
|
893
971
|
`--lr-map-legend-max-block-size`, `--lr-map-legend-columns` (equal row columns, default 1),
|
|
894
|
-
`--lr-map-legend-font-size`, `--lr-map-legend-gap`, `--lr-map-legend-
|
|
972
|
+
`--lr-map-legend-font-size`, `--lr-map-legend-gap`, `--lr-map-legend-row-gap` (rows of one list or
|
|
973
|
+
section only, default `--lr-map-legend-gap`), `--lr-map-legend-group-columns` (equal columns the
|
|
974
|
+
rows of one group flow into, default 1), `--lr-map-legend-padding`, `--lr-map-legend-border`
|
|
975
|
+
(border shorthand, default `var(--lr-border-width-thin) solid var(--lr-color-border-subtle)`),
|
|
895
976
|
`--lr-map-legend-radius`, `--lr-map-legend-bg`, `--lr-map-legend-shadow`, `--lr-map-legend-color`
|
|
896
977
|
and `--lr-map-legend-swatch-size` — the same suffixes `lr-heatmap` and `lr-chart` use.
|
|
978
|
+
`--lr-map-legend-toggle-padding` and `--lr-map-legend-disclosure-padding` (both default
|
|
979
|
+
`var(--lr-size-2px) var(--lr-space-xs)`) pad the interactive `legend-toggle` rows and the
|
|
980
|
+
`legend-disclosure` button; their minimum box stays the `--lr-icon-button-size` hit area, so
|
|
981
|
+
shrink that floor through `--lr-icon-button-size-scope` rather than a part rule, or set
|
|
982
|
+
`--lr-map-legend-toggle-min-height` and `--lr-map-legend-disclosure-min-height` (both default
|
|
983
|
+
`var(--lr-icon-button-size)`, never below `--lr-size-24px`). `--lr-map-legend-toggle-font-weight`
|
|
984
|
+
(default `inherit`) and `--lr-map-legend-disclosure-font-weight` (default
|
|
985
|
+
`var(--lr-font-weight-semibold)`) set their weight, and `--lr-map-legend-group-heading-color`
|
|
986
|
+
(default `var(--lr-color-text-quiet)`) and `--lr-map-legend-group-heading-padding` (default `0`)
|
|
987
|
+
style each `legend-group-heading`.
|
|
988
|
+
- `legendFlow: LyraMapLegendFlow = 'row'` (attribute `legend-flow`, reflected) — `'row' | 'column'`,
|
|
989
|
+
the order legend rows fill `--lr-map-legend-columns`. `'row'` places them across each row of an
|
|
990
|
+
equal-column grid; `'column'` fills each column top to bottom before the next, so a sorted key
|
|
991
|
+
reads down, and each group heading spans every column above its own rows. In `'column'` flow
|
|
992
|
+
`--lr-map-legend-group-columns` does not apply; unsupported values normalize to `'row'`.
|
|
993
|
+
- `legendClearance: LyraMapLegendClearance = 'row'` (attribute `legend-clearance`, reflected) — which
|
|
994
|
+
native control corners the legend clears. `'row'` lifts it above the tallest corner of the top and
|
|
995
|
+
bottom rows; `'corner'` clears only the corners in its own logical column, so a `bottom-start`
|
|
996
|
+
legend sits just above the bottom-start controls even when a tall zoom and geolocate stack fills
|
|
997
|
+
the bottom-end corner. Centred `top` and `bottom` placements always clear the whole row. Keep a
|
|
998
|
+
`'corner'` legend narrow enough (`--lr-map-legend-max-inline-size`) not to reach the other column.
|
|
999
|
+
`'none'` reserves nothing for the controls: `--lr-map-legend-inset-block` and
|
|
1000
|
+
`--lr-map-legend-inset-inline` measure from the map edge alone (no control rows, no
|
|
1001
|
+
`--lr-map-controls-inset-*`), so `legend-clearance="none"` with
|
|
1002
|
+
`--lr-map-legend-inset-block: 48px` keeps the panel in a 48px footer lane; the panel may then
|
|
1003
|
+
overlap native controls. An unsupported value normalizes to `'row'`.
|
|
897
1004
|
- `legendOpen: boolean = true` (attribute `legend-open`, reflected) — whether a `legendCollapsible`
|
|
898
1005
|
panel is expanded. It defaults **open**, so adding only `legendCollapsible` never hides an existing
|
|
899
1006
|
key, and it does nothing at all while `legendCollapsible` is unset. Because it is a
|
|
@@ -1723,7 +1830,11 @@ control installed or one failed; a later `controls` change replaces them and dis
|
|
|
1723
1830
|
Already installed controls gain no outline. Outlines paint with the same glass or solid surface material
|
|
1724
1831
|
as the installed controls, so the swap does not change their fill. For `initialization="interaction"`,
|
|
1725
1832
|
`initialization-activate` starts the map and `initialization-activate-label` styles its visible label.
|
|
1726
|
-
Hiding that label retains the button's localized accessible name.
|
|
1833
|
+
Hiding that label retains the button's localized accessible name. Three tokens cover the same
|
|
1834
|
+
without part rules: `--lr-map-initialization-placeholder-bg` (default `transparent`) fills the
|
|
1835
|
+
placeholder, `--lr-map-initialization-skeleton-display: none` suppresses the skeleton (default
|
|
1836
|
+
`inline-block`), and `--lr-map-initialization-activate-label-display: none` hides the visible prompt
|
|
1837
|
+
(default `inline`) while the covering button keeps its name. Pick mode renders `pick-controls` with
|
|
1727
1838
|
`pick-center` and `pick-cancel`; draw mode renders `drawing-controls` with `drawing-add`,
|
|
1728
1839
|
`drawing-undo`, `drawing-complete`, `drawing-cancel` and the `drawing-status` vertex count (plus
|
|
1729
1840
|
`drawing-summary` with `drawingMeasurements`; after the controls first render, later changes to
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `dompurify`, `katex`, `marked`, `shiki` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 24 parts,
|
|
13
|
-
- **Tokens by part** (prefer these over a `::part()` rule) `code-block`: `--lr-code-block-tab-size`, `--lr-markdown-code-bg`, `--lr-markdown-code-block-padding`, `--lr-markdown-code-block-radius`; `content`: `--lr-markdown-font-mono`, `--lr-markdown-max-height`; `table`: `--lr-markdown-table-header-bg`
|
|
12
|
+
- **Themeable via** 24 parts, 57 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `code-block`: `--lr-code-block-tab-size`, `--lr-markdown-code-bg`, `--lr-markdown-code-block-font-size`, `--lr-markdown-code-block-line-height`, `--lr-markdown-code-block-padding`, `--lr-markdown-code-block-radius`; `content`: `--lr-markdown-font-mono`, `--lr-markdown-max-height`; `table`: `--lr-markdown-table-header-bg`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
16
16
|
---
|
|
@@ -106,7 +106,8 @@ anchor-jump message), `content` (respects `max-height`), `heading`, `paragraph`,
|
|
|
106
106
|
|
|
107
107
|
**Themeable custom properties:** identical to `<lr-markdown>`'s own tokens, including
|
|
108
108
|
`--lr-markdown-content-min-size`, the three `--lr-markdown-code-copy-bg*` state tokens and the prose
|
|
109
|
-
tokens (`--lr-markdown-block-gap`, `--lr-markdown-heading-
|
|
109
|
+
tokens (`--lr-markdown-block-gap`, `--lr-markdown-heading-margin-block-start`,
|
|
110
|
+
`--lr-markdown-heading-1-font-size`,
|
|
110
111
|
`--lr-markdown-heading-2-font-size`, `--lr-markdown-heading-3-font-size`,
|
|
111
112
|
`--lr-markdown-heading-4-font-size`,
|
|
112
113
|
`--lr-markdown-heading-font-weight`, `--lr-markdown-link-color`, `--lr-markdown-link-hover-color`,
|
|
@@ -119,7 +120,9 @@ fenced `code-block` surface), `--lr-markdown-code-padding`/`--lr-markdown-code-r
|
|
|
119
120
|
`code` span padding/radius, defaulting to `var(--lr-size-0-125rem) var(--lr-size-0-3125rem)`/
|
|
120
121
|
`calc(var(--lr-radius) * 0.5)`), and `--lr-markdown-code-block-padding`/
|
|
121
122
|
`--lr-markdown-code-block-radius` (the fenced `code-block` surface's padding/radius, defaulting to
|
|
122
|
-
`var(--lr-space-s) var(--lr-space-m)`/`var(--lr-radius)`)
|
|
123
|
+
`var(--lr-space-s) var(--lr-space-m)`/`var(--lr-radius)`), `--lr-markdown-code-block-font-size`/
|
|
124
|
+
`--lr-markdown-code-block-line-height` (the fenced code's type, defaulting to
|
|
125
|
+
`var(--lr-font-size-sm)`/`var(--lr-line-height-normal)`) — plus `--lr-code-block-tab-size` (default
|
|
123
126
|
`2` — tab width inside a rendered fenced or indented `code-block`), with exactly the mechanics
|
|
124
127
|
described under `<lr-markdown>` above: the same property name and default that
|
|
125
128
|
`<lr-code-block>`/`<lr-code-editor>` read, declared as a `var()` fallback at the point of use rather
|
|
@@ -170,3 +173,11 @@ keeps the box and list gutter aligned. Header hooks are `--lr-markdown-code-head
|
|
|
170
173
|
(default `var(--lr-color-text-quiet)`).
|
|
171
174
|
|
|
172
175
|
**Shared icon-button tokens:** the code-block action buttons read the shared tokens `--lr-icon-button-bg`, `--lr-icon-button-hover-bg`, `--lr-icon-button-active-bg`, `--lr-icon-button-border`, `--lr-icon-button-hover-border`, `--lr-icon-button-active-border`, `--lr-icon-button-color`, `--lr-icon-button-hover-color`, `--lr-icon-button-active-color` and `--lr-icon-button-radius`. `--lr-markdown-code-copy-hover-bg` and `--lr-markdown-code-copy-active-bg` set the fenced copy button's hovered and pressed backgrounds. `--lr-markdown-code-copy-hover-color` (default `var(--lr-color-brand)`) and `--lr-markdown-code-copy-active-color` set its glyph color in those states, and `--lr-markdown-code-copy-success-color` / `--lr-markdown-code-copy-error-color` (defaults `var(--lr-color-success)` / `var(--lr-color-danger)`) its copy feedback.
|
|
176
|
+
|
|
177
|
+
Further custom properties:
|
|
178
|
+
|
|
179
|
+
- `--lr-markdown-color` (default `inherit`): Text color of the rendered content.
|
|
180
|
+
- `--lr-markdown-font-size` (default `inherit`): Font size of the rendered content; headings and code scale from it.
|
|
181
|
+
- `--lr-markdown-line-height` (default `var(--lr-line-height-loose)`): Line height of the rendered body text.
|
|
182
|
+
- `--lr-markdown-list-gap` (default `var(--lr-markdown-block-gap)`): Space after each list.
|
|
183
|
+
- `--lr-markdown-paragraph-gap` (default `var(--lr-markdown-block-gap)`): Space after each paragraph.
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `dompurify`, `katex`, `marked`, `shiki` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 24 parts,
|
|
13
|
-
- **Tokens by part** (prefer these over a `::part()` rule) `code-block`: `--lr-code-block-tab-size`, `--lr-markdown-code-bg`, `--lr-markdown-code-block-padding`, `--lr-markdown-code-block-radius`; `content`: `--lr-markdown-font-mono`, `--lr-markdown-max-height`; `table`: `--lr-markdown-table-header-bg`
|
|
12
|
+
- **Themeable via** 24 parts, 57 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `code-block`: `--lr-code-block-tab-size`, `--lr-markdown-code-bg`, `--lr-markdown-code-block-font-size`, `--lr-markdown-code-block-line-height`, `--lr-markdown-code-block-padding`, `--lr-markdown-code-block-radius`; `content`: `--lr-markdown-font-mono`, `--lr-markdown-max-height`; `table`: `--lr-markdown-table-header-bg`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
16
16
|
---
|
|
@@ -284,7 +284,9 @@ The `streaming-tail` part marks the stable text node used by progressive streami
|
|
|
284
284
|
|
|
285
285
|
Prefer tokens over part rules for routine prose and code styling: `--lr-markdown-block-gap`
|
|
286
286
|
(default `var(--lr-space-s)` — space after every paragraph, list, heading, blockquote, code block
|
|
287
|
-
and table), `--lr-markdown-heading-
|
|
287
|
+
and table), `--lr-markdown-heading-margin-block-start` (default `var(--lr-space-l)` — space before
|
|
288
|
+
every heading; a leading heading keeps none), `--lr-markdown-heading-1-font-size` (default
|
|
289
|
+
`calc(var(--lr-size-1em) * 2)`),
|
|
288
290
|
`--lr-markdown-heading-2-font-size` (default `var(--lr-size-1-5em)`),
|
|
289
291
|
`--lr-markdown-heading-3-font-size` (default `calc(var(--lr-size-1em) * 1.17)`) and
|
|
290
292
|
`--lr-markdown-heading-4-font-size` (default `var(--lr-size-1em)`) — together these restate the
|
|
@@ -293,9 +295,16 @@ browser scale — `--lr-markdown-heading-font-weight`
|
|
|
293
295
|
and `--lr-markdown-link-hover-color` (default the link colour), `--lr-markdown-blockquote-border-color`
|
|
294
296
|
(default `var(--lr-color-border-subtle)`), `--lr-markdown-blockquote-color` (default
|
|
295
297
|
`var(--lr-color-text-quiet)`) and `--lr-markdown-list-indent` (default `var(--lr-size-2-5rem)`).
|
|
298
|
+
`--lr-markdown-paragraph-gap` and `--lr-markdown-list-gap` (both default `--lr-markdown-block-gap`)
|
|
299
|
+
split the space after paragraphs and after lists from the shared rhythm, and
|
|
300
|
+
`--lr-markdown-font-size`, `--lr-markdown-line-height` and `--lr-markdown-color` (all default
|
|
301
|
+
`inherit`) set the rendered prose's body type and colour without a host rule.
|
|
296
302
|
The `code-block` and `inline-code` surfaces have `--lr-markdown-code-block-padding`,
|
|
297
303
|
`--lr-markdown-code-block-radius`, `--lr-markdown-code-block-bg`, `--lr-markdown-code-padding`,
|
|
298
|
-
`--lr-markdown-code-radius` and `--lr-markdown-code-bg` (all listed below)
|
|
304
|
+
`--lr-markdown-code-radius` and `--lr-markdown-code-bg` (all listed below);
|
|
305
|
+
`--lr-markdown-code-block-font-size` (default `var(--lr-font-size-sm)`) and
|
|
306
|
+
`--lr-markdown-code-block-line-height` (default `var(--lr-line-height-normal)`) set the fenced code's
|
|
307
|
+
type. Every token inherits, so
|
|
299
308
|
a chat bubble with a filled background sets `--lr-markdown-link-color` once on that bubble:
|
|
300
309
|
|
|
301
310
|
```css
|
|
@@ -157,7 +157,7 @@ The popup is a floating surface and paints from the **shared overlay-surface fam
|
|
|
157
157
|
`--lr-overlay-surface` (default `var(--lr-color-surface-overlay)`), `--lr-overlay-border` (default
|
|
158
158
|
`var(--lr-color-border)`) and `--lr-overlay-shadow-anchored` (default `var(--lr-shadow-m)`). None is
|
|
159
159
|
declared on `:host`, so one declaration on `:root` — or on any ancestor, to scope it — retints this
|
|
160
|
-
surface together with every other floating surface in the library. `--lr-overlay-radius` (default `var(--lr-radius)`) is the matching corner radius.
|
|
160
|
+
surface together with every other floating surface in the library. `--lr-overlay-radius` (default `var(--lr-radius-container)`) is the matching corner radius.
|
|
161
161
|
The edge deliberately keeps the control tier, `var(--lr-color-border)`, rather than the
|
|
162
162
|
decorative `var(--lr-color-border-subtle)` floating panels default to: the listbox completes the
|
|
163
163
|
value of the text field it is bound to and keeps that field's boundary contrast (see `<lr-popover>`).
|
|
@@ -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, 22 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,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 1 part,
|
|
12
|
+
- **Themeable via** 1 part, 8 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
|
---
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
## `lr-menu-label`
|
|
18
18
|
|
|
19
19
|
The `lr-menu-label` styling hooks include `--lr-menu-label-color`, `--lr-menu-label-padding`, and
|
|
20
|
-
`--lr-menu-label-font-size` (default `var(--lr-font-size-sm)`)
|
|
20
|
+
`--lr-menu-label-font-size` (default `var(--lr-font-size-sm)`), `--lr-menu-label-font-weight`
|
|
21
|
+
(default `var(--lr-font-weight-semibold)`) and `--lr-menu-label-letter-spacing` (default `normal`),
|
|
22
|
+
plus `--lr-menu-label-line-height` (default `var(--lr-line-height-snug)`),
|
|
23
|
+
`--lr-menu-label-font-family` and `--lr-menu-label-text-transform` (both default `inherit`).
|
|
21
24
|
|
|
22
25
|
A non-interactive section heading inside `<lr-menu>`'s default slot. Mirrors `sl-menu-label`.
|
|
23
26
|
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 3 parts,
|
|
13
|
-
- **Tokens by part** (prefer these over a `::part()` rule) `list`: `--lr-menu-gap`, `--lr-menu-padding`, `--lr-theme-scrollbar-color`, `--lr-theme-scrollbar-gutter`, `--lr-theme-scrollbar-width`
|
|
12
|
+
- **Themeable via** 3 parts, 13 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `list`: `--lr-menu-gap`, `--lr-menu-max-block-size`, `--lr-menu-padding`, `--lr-theme-scrollbar-color`, `--lr-theme-scrollbar-gutter`, `--lr-theme-scrollbar-width`
|
|
14
14
|
- **Documented with** `lr-menu-item`, `lr-dropdown-item` (same section below)
|
|
15
15
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
16
16
|
|
|
@@ -90,7 +90,7 @@ style those on `<lr-dropdown>` when using the overlay composition.
|
|
|
90
90
|
**Themeable custom properties:** the standalone menu surface and a submenu's own surface paint from
|
|
91
91
|
the **shared overlay-surface family** (16.0.0) — `--lr-overlay-surface` (default
|
|
92
92
|
`var(--lr-color-surface-overlay)`), `--lr-overlay-border` (default `var(--lr-color-border-subtle)`),
|
|
93
|
-
`--lr-overlay-radius` (default `var(--lr-radius)`) and, on the submenu only,
|
|
93
|
+
`--lr-overlay-radius` (default `var(--lr-radius-container)`) and, on the submenu only,
|
|
94
94
|
`--lr-overlay-shadow-anchored` (default `var(--lr-shadow-m)`). None is declared on `:host`, so one
|
|
95
95
|
declaration on `:root` (or on any ancestor, to scope it) retints this menu together with every other
|
|
96
96
|
floating surface. A menu contained by `<lr-dropdown>` paints no surface of its own, so the family has
|
|
@@ -102,7 +102,12 @@ Row chrome is controlled through the menu-item properties listed below.
|
|
|
102
102
|
List density: `--lr-menu-padding` (default `var(--lr-space-xs)`) pads `[part="list"]` and
|
|
103
103
|
`--lr-menu-gap` (default `0`) spaces its rows. Both apply inside `lr-dropdown` too and are read only
|
|
104
104
|
through `var()` fallbacks, so one declaration on the menu or an ancestor retunes the list without a
|
|
105
|
-
`::part(list)` rule.
|
|
105
|
+
`::part(list)` rule. `--lr-menu-max-block-size` (default `var(--lr-size-20rem)`) is the list's
|
|
106
|
+
block-size ceiling, past which it scrolls; it also caps a submenu's surface. Inside `lr-dropdown`
|
|
107
|
+
the positioned available space still caps it, and a standalone menu can be raised above `20rem`.
|
|
108
|
+
To widen a dropdown's menu, set `--lr-overlay-min-inline-size` or `--lr-overlay-inline-size` on the
|
|
109
|
+
`lr-dropdown`, not a width on the `lr-menu`: a contained menu is `display: contents`, so its list
|
|
110
|
+
lays out directly in the popup and fills whatever width the popup takes. The scrolling list also honors the theme-level
|
|
106
111
|
`--lr-theme-scrollbar-width`/`--lr-theme-scrollbar-gutter`/`--lr-theme-scrollbar-color` hooks
|
|
107
112
|
(defaults `auto`/`auto`/`auto`), like every other internal scroll container.
|
|
108
113
|
|
|
@@ -240,7 +245,9 @@ expanding the popup.
|
|
|
240
245
|
**Themeable custom properties:** `--lr-menu-item-gap`, `--lr-menu-item-radius`,
|
|
241
246
|
`--lr-menu-item-danger-color`, `--lr-menu-item-danger-hover-bg`,
|
|
242
247
|
`--lr-menu-item-danger-active-bg`, `--lr-menu-item-checked-bg` (default `transparent`),
|
|
243
|
-
`--lr-menu-item-
|
|
248
|
+
`--lr-menu-item-color` (default `inherit`; a resting row's text, which danger, disabled and checked
|
|
249
|
+
rows override), `--lr-menu-item-checked-color` (default `inherit`, which follows `--lr-menu-item-color`),
|
|
250
|
+
`--lr-menu-item-checked-font-weight` (default
|
|
244
251
|
`inherit`), and `--submenu-offset`, plus shared size/focus/color/spacing tokens. The checked hooks
|
|
245
252
|
apply to a `type="checkbox" checked` or `type="radio" checked` row's `[part="base"]`, matching the
|
|
246
253
|
checked/selected-state hooks `<lr-option>`, `<lr-select>`, `<lr-combobox>`, and `<lr-tree-item>`
|
|
@@ -264,8 +271,12 @@ itself.
|
|
|
264
271
|
Row density hooks, also inline fallbacks: `--lr-menu-item-padding-block` (default
|
|
265
272
|
`var(--lr-form-control-padding-block)`), `--lr-menu-item-padding-inline` (default
|
|
266
273
|
`var(--lr-form-control-padding-inline)`), `--lr-menu-item-font-size` (default
|
|
267
|
-
`var(--lr-form-control-font-size)`)
|
|
268
|
-
|
|
274
|
+
`var(--lr-form-control-font-size)`), `--lr-menu-item-font-weight` (default `inherit`),
|
|
275
|
+
`--lr-menu-item-letter-spacing` (default `normal`), `--lr-menu-item-details-font-size` (default
|
|
276
|
+
`var(--lr-font-size-sm)`) and `--lr-menu-item-details-color` (default `var(--lr-color-text-quiet)`)
|
|
277
|
+
for `[part="details"]`, and `--lr-menu-item-icon-size` (default `inherit`), the font
|
|
278
|
+
size of `[part="icon"]`, which sizes a slotted `lr-icon` or any `1em` glyph. `lr-dropdown-item`
|
|
279
|
+
reads the same row tokens.
|
|
269
280
|
|
|
270
281
|
```html
|
|
271
282
|
<lr-menu style="--lr-menu-padding: 2px; --lr-menu-item-padding-block: 2px; --lr-menu-item-font-size: var(--lr-font-size-sm); --lr-menu-item-icon-size: 14px;">
|
|
@@ -337,6 +348,10 @@ the focusable host gains or loses focus, plus the shared menu-item events above.
|
|
|
337
348
|
**CSS parts:** the shared menu-item parts, except that the loading spinner is `spinner-base` (beside
|
|
338
349
|
`spinner`).
|
|
339
350
|
|
|
351
|
+
**Custom states:** `:state(active)` (the item has focus), `:state(checked)`, `:state(disabled)`,
|
|
352
|
+
`:state(has-submenu)` (content in the `submenu` slot), `:state(link)` (`href` resolves to a safe link)
|
|
353
|
+
and `:state(submenu-open)`, e.g. `lr-dropdown-item:state(submenu-open) { font-weight: 600; }`.
|
|
354
|
+
|
|
340
355
|
**Themeable custom properties:** every `<lr-menu-item>` hook above, including 16.0.0's
|
|
341
356
|
`--lr-menu-item-hover-bg`, `--lr-menu-item-active-bg`, `--lr-menu-item-icon-color` and
|
|
342
357
|
`--lr-menu-item-min-height`.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 16 parts,
|
|
12
|
+
- **Themeable via** 16 parts, 48 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`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -311,8 +311,8 @@ The listbox is a floating surface and paints from the **shared overlay-surface f
|
|
|
311
311
|
`--lr-overlay-surface` (default `var(--lr-color-surface-overlay)`), `--lr-overlay-border` (default
|
|
312
312
|
`var(--lr-color-border)`) and `--lr-overlay-shadow-anchored` (default `var(--lr-shadow-m)`). None is
|
|
313
313
|
declared on `:host`, so one declaration on `:root` — or on any ancestor, to scope it — retints this
|
|
314
|
-
surface together with every other floating surface in the library. `--lr-overlay-radius`
|
|
315
|
-
`--lr-model-select-radius`, which still wins when set. The edge deliberately keeps the control tier, `var(--lr-color-border)`, rather than the
|
|
314
|
+
surface together with every other floating surface in the library. `--lr-overlay-radius` reaches it only as the middle arm of
|
|
315
|
+
`--lr-model-select-radius`, which still wins when set; left unset, the listbox keeps the component's own radius default. The edge deliberately keeps the control tier, `var(--lr-color-border)`, rather than the
|
|
316
316
|
decorative `var(--lr-color-border-subtle)` floating panels default to: this listbox belongs to the
|
|
317
317
|
form control it opens from and keeps that control's boundary contrast (see `<lr-popover>`).
|
|
318
318
|
|
|
@@ -322,6 +322,9 @@ override documented on `<lr-popover>` each time it is positioned, falling back t
|
|
|
322
322
|
`positioning-strategy` property; set the token on `:root`, a theme, or an ancestor to retune its
|
|
323
323
|
listbox along with the other floating surfaces.
|
|
324
324
|
|
|
325
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
326
|
+
height of the field label.
|
|
327
|
+
|
|
325
328
|
**Optional peer deps:** none.
|
|
326
329
|
|
|
327
330
|
```html
|
|
@@ -357,4 +360,11 @@ listbox along with the other floating surfaces.
|
|
|
357
360
|
to the rendered `hint`/`error` ids — set on whichever element (`trigger` or `combobox-input`) owns
|
|
358
361
|
`role="combobox"` for the active mode.
|
|
359
362
|
|
|
363
|
+
Further custom properties:
|
|
364
|
+
|
|
365
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
366
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
367
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
368
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
369
|
+
|
|
360
370
|
---
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 18 parts,
|
|
12
|
+
- **Themeable via** 18 parts, 39 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `input-wrapper`: `--lr-input-gap`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -112,3 +112,13 @@ entry for the flush and cancellation rules.
|
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
---
|
|
115
|
+
|
|
116
|
+
`--lr-form-control-label-line-height` (default `inherit`) sets the label line height, and `--lr-input-font-variant-numeric` (default `inherit`; for example `tabular-nums`) sets the field text's numeric figures, shared with `lr-input`.
|
|
117
|
+
|
|
118
|
+
Further custom properties:
|
|
119
|
+
|
|
120
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
121
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
122
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
123
|
+
- `--lr-input-line-height` (default `inherit`): Line height of the native input text.
|
|
124
|
+
- `--lr-input-number-direction` (default `ltr`): Inline direction of numeric content (`type="number"`), which renders left-to-right by default so digits and signs keep their order. Set `rtl` to start the number at the right edge in a right-to-left layout. Set `tabular-nums` so digits share one width and a column of values lines up; `lr-number-input` shares the same field styles and honours it too.
|
|
@@ -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, 39 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `input-wrapper`: `--lr-input-gap`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -213,3 +213,13 @@ The exact-320px RTL story keeps long label/hint copy and both fixed-size stepper
|
|
|
213
213
|
element is not reverted — use `lr-input` when the type has to change.
|
|
214
214
|
|
|
215
215
|
<a id="date-and-time-controls"></a>
|
|
216
|
+
|
|
217
|
+
`--lr-form-control-label-line-height` (default `inherit`) sets the label line height, and `--lr-input-font-variant-numeric` (default `inherit`; for example `tabular-nums`) sets the field text's numeric figures, shared with `lr-input`.
|
|
218
|
+
|
|
219
|
+
Further custom properties:
|
|
220
|
+
|
|
221
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
222
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
223
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
224
|
+
- `--lr-input-line-height` (default `inherit`): Line height of the native input text.
|
|
225
|
+
- `--lr-input-number-direction` (default `ltr`): Inline direction of numeric content (`type="number"`), which renders left-to-right by default so digits and signs keep their order. Set `rtl` to start the number at the right edge in a right-to-left layout. Set `tabular-nums` so digits share one width and a column of values lines up; `lr-number-input` shares the same field styles and honours it too.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/utility.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-number-ticker`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/lr-number-ticker.js';` (stable tag alias; registers the tag)
|
|
6
|
+
- **Class** `LyraNumberTicker`, also available unregistered from `@aceshooting/lyra-ui/components/utility/number-ticker/number-ticker.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** 2 parts, 0 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-number-ticker`
|
|
18
|
+
|
|
19
|
+
Counts to `value` when at least half of it scrolls into view (or at once with `eager`), formatting
|
|
20
|
+
every frame with `Intl.NumberFormat` in the effective locale. It renders `startValue` before the
|
|
21
|
+
count and during SSR.
|
|
22
|
+
|
|
23
|
+
**Properties:**
|
|
24
|
+
|
|
25
|
+
- `value: number = 0`; `startValue: number = 0` (`start-value`) — first run and `restart()` begin here
|
|
26
|
+
- `duration: number = 2000` ms (`0` skips the animation); `delay: number = 0` ms (first run only);
|
|
27
|
+
`easing: string` — any CSS easing, an invalid one falls back to the default
|
|
28
|
+
- `eager: boolean = false`
|
|
29
|
+
- `type: 'decimal' | 'currency' | 'percent' = 'decimal'`; `currency: string = 'USD'`;
|
|
30
|
+
`currencyDisplay: 'symbol' | 'narrowSymbol' | 'code' | 'name' = 'symbol'` (`currency-display`)
|
|
31
|
+
- `withoutGrouping: boolean = false` (`without-grouping`)
|
|
32
|
+
- `minimumIntegerDigits`, `minimumFractionDigits`, `maximumFractionDigits`, `minimumSignificantDigits`,
|
|
33
|
+
`maximumSignificantDigits` (kebab-case attributes) — unset by default and clamped to Intl ranges;
|
|
34
|
+
one fraction option alone applies to both bounds; plain decimals keep a steady number of places
|
|
35
|
+
- `valueFormatter?: (value: number) => string` — property only; replaces Intl formatting
|
|
36
|
+
|
|
37
|
+
**Methods:** `restart()` — count again from `startValue`.
|
|
38
|
+
**Events:** `lr-finish` (`null` detail) — the ticker settled, including the instant paths. A count
|
|
39
|
+
settles early: on the first frame whose formatted text equals the formatted final value it shows
|
|
40
|
+
that value, leaves `:state(counting)` and emits `lr-finish`, rather than repainting the same text until
|
|
41
|
+
`duration` ends (with the default ease-out curve that is when the number visibly stops; an
|
|
42
|
+
overshooting easing settles the first time its text reaches the final value). A `value` change,
|
|
43
|
+
mid-count or later, counts on from the number shown; reduced motion turning on mid-count settles at
|
|
44
|
+
once.
|
|
45
|
+
**CSS parts:** `base`, `value`. **CSS state:** `:state(counting)`.
|
|
46
|
+
|
|
47
|
+
**Accessibility and motion:** the counting text is `aria-hidden` and the final value is visually
|
|
48
|
+
hidden text from the first paint; once settled the number renders once. A `value` change after the
|
|
49
|
+
first count is announced politely through the shared light-DOM live region. Under
|
|
50
|
+
`prefers-reduced-motion: reduce` (or `data-lr-motion="reduce"`) or `duration="0"` it jumps to the final
|
|
51
|
+
value and still emits `lr-finish`.
|
|
52
|
+
|
|
53
|
+
```html
|
|
54
|
+
<script type="module">
|
|
55
|
+
import '@aceshooting/lyra-ui/components/lr-number-ticker.js';
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<lr-number-ticker value="12840"></lr-number-ticker>
|
|
59
|
+
<lr-number-ticker type="currency" currency="EUR" value="98765.43" eager></lr-number-ticker>
|
|
60
|
+
```
|