@aceshooting/lyra-ui 32.0.0 → 32.1.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 +203 -0
- package/README.md +24 -6
- package/design-tokens.json +1 -1
- 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 +45 -37
- 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/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/code-block/code-block-base.class.d.ts +29 -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 +45 -1
- 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/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 +6 -0
- 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/voice-picker/voice-picker.class.d.ts +6 -0
- 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 +65 -5
- package/dist/components/data/table/table-support.js +1 -1
- package/dist/components/data/table/table.class.d.ts +77 -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 +40 -5
- 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/checkbox-group/checkbox-group.class.d.ts +29 -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 +6 -0
- package/dist/components/forms/color-picker/color-picker.class.d.ts +9 -0
- 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.class.d.ts +114 -7
- package/dist/components/forms/combobox/combobox.class.js +9 -7
- package/dist/components/forms/combobox/combobox.styles.js +1 -1
- package/dist/components/forms/country-picker/country-picker.class.d.ts +2 -0
- package/dist/components/forms/currency-picker/currency-picker.class.d.ts +2 -0
- package/dist/components/forms/date-picker/date-input.class.d.ts +41 -0
- 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 +4 -0
- package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
- package/dist/components/forms/input/input-shared.d.ts +12 -0
- package/dist/components/forms/input/input.styles.js +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +6 -0
- package/dist/components/forms/input/time-input.styles.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +11 -0
- package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
- package/dist/components/forms/otp-input/otp-input.class.d.ts +6 -0
- package/dist/components/forms/phone-input/phone-input.class.d.ts +6 -0
- package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +24 -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/rubric-form/rubric-form.class.d.ts +4 -0
- package/dist/components/forms/select/select.class.d.ts +13 -0
- 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 +6 -0
- package/dist/components/forms/signature-pad/signature-pad.styles.js +1 -1
- package/dist/components/forms/slider/slider.class.d.ts +28 -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 +8 -0
- package/dist/components/forms/textarea/textarea.styles.js +1 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +2 -0
- package/dist/components/forms/token-input/token-input.class.d.ts +96 -18
- 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 +2 -0
- 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/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 +3 -0
- package/dist/components/layout/menu/menu.styles.js +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 +89 -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 +7 -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 +57 -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.class.d.ts +90 -20
- package/dist/components/media/lightbox/lightbox.class.js +17 -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 +5 -0
- package/dist/components/overlays/context-menu/context-menu.class.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +36 -4
- 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 +16 -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 +4 -0
- 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 +29 -3
- package/dist/components/overlays/overlay/popover.class.js +2 -2
- package/dist/components/overlays/overlay/tooltip.class.d.ts +2 -0
- package/dist/components/overlays/overlay/tooltip.class.js +2 -2
- package/dist/components/overlays/toast/toast-item.class.d.ts +1 -0
- 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/utility/copy-button/copy-button.class.d.ts +2 -0
- 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 +5 -0
- package/dist/components/utility/export-button/export-button.styles.js +1 -1
- 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 +4 -0
- package/dist/components/utility/number-ticker/number-ticker.class.d.ts +58 -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/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/all-defined-arguments.d.ts +19 -0
- package/dist/internal/all-defined-arguments.js +1 -0
- 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/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-tokens.generated.js +3 -3
- package/dist/internal/form-control/chrome.styles.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.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/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-code-block-core.md +36 -8
- package/llms/components/lr-code-block.md +45 -6
- package/llms/components/lr-code-editor.md +11 -1
- package/llms/components/lr-color-picker.md +17 -4
- package/llms/components/lr-combobox.md +62 -6
- package/llms/components/lr-context-menu.md +5 -3
- package/llms/components/lr-copy-button.md +2 -1
- package/llms/components/lr-counter.md +60 -0
- package/llms/components/lr-country-picker.md +5 -1
- package/llms/components/lr-currency-picker.md +5 -1
- 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 +72 -8
- package/llms/components/lr-divider.md +14 -5
- package/llms/components/lr-doughnut-chart.md +1 -1
- package/llms/components/lr-drawer.md +26 -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-export-button.md +5 -2
- 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 +8 -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 +84 -5
- 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-menu-item.md +1 -1
- package/llms/components/lr-menu-label.md +5 -2
- package/llms/components/lr-menu.md +21 -6
- package/llms/components/lr-model-select.md +11 -1
- 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 +55 -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 +25 -5
- 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 +10 -2
- 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 +61 -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 +8 -1
- package/llms/components/lr-time-zone-picker.md +5 -1
- package/llms/components/lr-timeline-item.md +1 -1
- package/llms/components/lr-timeline.md +38 -1
- package/llms/components/lr-toast-item.md +1 -1
- package/llms/components/lr-toast.md +7 -2
- package/llms/components/lr-token-input.md +64 -8
- package/llms/components/lr-tooltip.md +3 -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 +5 -1
- package/llms/components/lr-video.md +5 -4
- package/llms/components/lr-voice-picker.md +8 -1
- package/llms/components/lr-widget.md +2 -2
- package/llms/components/lr-zoomable-frame.md +8 -0
- package/llms/index.md +145 -141
- package/llms/migration.md +20 -12
- package/llms/peers.md +2 -2
- package/llms/shared/events-and-types.md +36 -0
- package/llms/shared/imports-and-registration.md +60 -1
- package/llms/shared/native-styles-and-utilities.md +109 -3
- package/llms/shared/styles-and-tokens.md +2 -2
- package/llms/shared/testing-and-utilities.md +21 -0
- package/llms/shared.md +227 -6
- package/llms/tokens.md +6 -1
- package/llms.txt +3 -3
- package/locales.json +1 -1
- package/package.json +38 -9
- package/registrations.json +1 -1
- package/skills/compose-lyra-interfaces/SKILL.md +1 -1
- package/skills/lyra-ui/SKILL.md +1 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 17 parts,
|
|
12
|
+
- **Themeable via** 17 parts, 40 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
|
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
## `lr-input`
|
|
19
19
|
|
|
20
|
+
Field text can use tabular figures with `--lr-input-font-variant-numeric: tabular-nums` (default `inherit`); `lr-number-input` shares the sheet and honours it. `--lr-input-line-height` (default `inherit`) sets the field text line height. Numeric content (`type="number"`, and `lr-number-input` in either form) renders left to right so digits and signs keep their order; `--lr-input-number-direction` (default `ltr`) changes that inline direction, for example `rtl` to start the number at the right edge of a right-to-left form. The component never sets `dir` itself. Every form-control label also reads `--lr-form-control-label-line-height` (default `inherit`) beside the size, weight and colour tokens.
|
|
21
|
+
|
|
20
22
|
`labelPlacement: 'top' | 'start' = 'top'` (attribute `label-placement`, reflected) puts the label in
|
|
21
23
|
an inline-start column, sized by `--lr-form-control-label-inline-size` (default `30%`) and
|
|
22
24
|
`--lr-form-control-label-gap` (default `var(--lr-space-m)`), returning above the field below
|
|
@@ -481,3 +483,9 @@ first field's, referenced here by id.
|
|
|
481
483
|
**Additional API surface:**
|
|
482
484
|
|
|
483
485
|
- `click()` — Activates the internal input.
|
|
486
|
+
|
|
487
|
+
Further custom properties:
|
|
488
|
+
|
|
489
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
490
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
491
|
+
- `--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** 16 parts,
|
|
12
|
+
- **Themeable via** 16 parts, 21 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `field-input`: `--lr-known-date-field-padding-block`, `--lr-known-date-field-padding-inline`, `--lr-known-date-field-font-size`, `--lr-known-date-field-min-height`, `--lr-known-date-field-height`, `--lr-known-date-invalid-border-color`; `legend`: `--lr-form-control-required-content`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -187,6 +187,9 @@ The two height knobs work as a pair on `[part='field-input']`, the same way
|
|
|
187
187
|
it. Because the component never declares it, it can be set inline, from an ancestor, or from an
|
|
188
188
|
outer-tree rule.
|
|
189
189
|
|
|
190
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
191
|
+
height of the field label.
|
|
192
|
+
|
|
190
193
|
**Known gotchas:**
|
|
191
194
|
|
|
192
195
|
- Field _order_ is derived from the locale by formatting a probe date (Jan 2 2026) with
|
|
@@ -213,3 +216,9 @@ The two height knobs work as a pair on `[part='field-input']`, the same way
|
|
|
213
216
|
**Additional API surface:**
|
|
214
217
|
|
|
215
218
|
- `click()` — Activates the first native field in locale order.
|
|
219
|
+
|
|
220
|
+
Further custom properties:
|
|
221
|
+
|
|
222
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
223
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
224
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- GENERATED by scripts/build-llms.mjs from llms/media.md — do not edit this file. -->
|
|
2
|
+
|
|
3
|
+
# `lr-lightbox-item`
|
|
4
|
+
|
|
5
|
+
- **Import** `import '@aceshooting/lyra-ui/components/lr-lightbox-item.js';` (stable tag alias; registers the tag)
|
|
6
|
+
- **Class** `LyraLightboxItem`, also available unregistered from `@aceshooting/lyra-ui/components/media/lightbox/lightbox-item.class.js`
|
|
7
|
+
- **Family** `components/media/` — see `llms/index.md` for its siblings
|
|
8
|
+
- **Status** `stable` 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** 4 parts, 0 custom properties — see `lr-lightbox.md`
|
|
13
|
+
- **Documented with** `lr-lightbox`: see [lr-lightbox.md](./lr-lightbox.md).
|
|
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**
|
|
12
|
+
- **Themeable via** 33 parts, 22 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Documented with** `lr-lightbox-item` (same section below)
|
|
13
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
15
|
|
|
15
16
|
---
|
|
@@ -45,9 +46,8 @@ A lightbox opened outside an existing native `dialog.showModal()` stays interact
|
|
|
45
46
|
logical index while its descriptor and image load.
|
|
46
47
|
- `loop: boolean = false` (reflected) — wraps prev/next past the ends.
|
|
47
48
|
- `lightDismiss: boolean = false` (attribute `light-dismiss`) — opt in to backdrop dismissal. Off by default, matching `lr-dialog`.
|
|
48
|
-
- `withoutCounter: boolean = false` (attribute `without-counter`,
|
|
49
|
-
visible `[part="counter"]`; the polite position announcement stays active.
|
|
50
|
-
written back to the attribute — no stylesheet or selector keys off it.
|
|
49
|
+
- `withoutCounter: boolean = false` (attribute `without-counter`, not reflected) — hides the
|
|
50
|
+
visible `[part="counter"]`; the polite position announcement stays active.
|
|
51
51
|
Spoken position updates remain active when the counter is hidden: the shadow
|
|
52
52
|
`[part="live-region"]` is only an `aria-hidden` text mirror, while announcements append to the
|
|
53
53
|
shared light-DOM polite sink. Announcements stay silent when the lightbox or a composed ancestor
|
|
@@ -66,6 +66,13 @@ A lightbox opened outside an existing native `dialog.showModal()` stays interact
|
|
|
66
66
|
- `accessibleLabel: string | null = null` (attribute `aria-label`) — the dialog's accessible name.
|
|
67
67
|
Blank labels use the localized `lightboxLabel` default.
|
|
68
68
|
|
|
69
|
+
More properties: `withThumbnails` (attribute `with-thumbnails`, default `false`): Shows a strip of
|
|
70
|
+
thumbnails for jumping between items (images or slotted items). Not available with `imageSource`,
|
|
71
|
+
which only loads the current image. `withoutNavigation` (attribute `without-navigation`, default
|
|
72
|
+
`false`): Hides the previous/next buttons. Swiping and the arrow keys still navigate. `withoutZoom`
|
|
73
|
+
(attribute `without-zoom`, default `false`): Disables zooming and removes the zoom button and the
|
|
74
|
+
embedded zoom controls.
|
|
75
|
+
|
|
69
76
|
**Methods:** promise-based `show()`, `hide()`, and `close(reason?)`, plus `next()`, `previous()`, and
|
|
70
77
|
`goTo(index)`. `show()`/`hide()` resolve after the successful rendered transition; a veto resolves
|
|
71
78
|
without changing state. `goTo()` ignores a non-finite
|
|
@@ -111,7 +118,9 @@ object. Use
|
|
|
111
118
|
`unmount`. `lr-index-change` (`detail: { index }`, fired
|
|
112
119
|
for internally-driven navigation — a button, a keyboard shortcut, or `next()`/`previous()`/
|
|
113
120
|
`goTo()` — and when a shrinking active collection normalizes the index; **not** when a consumer sets
|
|
114
|
-
`index` directly); `lr-
|
|
121
|
+
`index` directly); `lr-item-change` (`detail: { index, previousIndex, item, previousItem }`, the
|
|
122
|
+
items `null` in data mode) fires alongside `lr-index-change` for the same navigations and, like it,
|
|
123
|
+
not when `index` is written directly; `lr-zoom-change` (`detail: {
|
|
115
124
|
zoom }`) is not emitted by the lightbox itself — it bubbles up composed from the embedded frame.
|
|
116
125
|
|
|
117
126
|
**Slots:** `actions` — extra toolbar buttons (download/share/delete), rendered in `[part="toolbar"]`
|
|
@@ -135,6 +144,19 @@ Source loading and error messages use `--lr-lightbox-status-color`, falling back
|
|
|
135
144
|
`--lr-color-on-strong-overlay`. When the image collection shrinks, a listener for the resulting
|
|
136
145
|
`lr-index-change` sees the newly rendered image.
|
|
137
146
|
|
|
147
|
+
Further CSS parts: `navigation-button`: Both the previous and the next button.
|
|
148
|
+
`navigation-button-next`: The same element as `next-button`. `navigation-button-previous`: The same
|
|
149
|
+
element as `previous-button`. `scroll-container`: The same element as `stage`. `slide`: The wrapper
|
|
150
|
+
around the current image or video. `surface`: The viewer's viewport layer. Only positioned and shown
|
|
151
|
+
while open (slotted mode). `thumbnail`: One thumbnail button in the strip. `thumbnail-active`: Added
|
|
152
|
+
to the current item's thumbnail. `thumbnails`: The thumbnail strip, rendered only with
|
|
153
|
+
`with-thumbnails`. `video`: The current video of a `type="video"` item. `zoom-button`: Toolbar
|
|
154
|
+
button that toggles between fitted and zoomed in. Rendered for slotted items only;
|
|
155
|
+
`images`/`imageSource` galleries keep the embedded `frame-controls`.
|
|
156
|
+
|
|
157
|
+
Each slotted `lr-lightbox-item` exposes its own `trigger`, `thumbnail-image`, `play-button` and
|
|
158
|
+
`play-glyph` parts, described with the slotted items below.
|
|
159
|
+
|
|
138
160
|
**Themeable custom properties:** `--lr-lightbox-overlay-color` (default
|
|
139
161
|
`var(--lr-color-overlay-strong)` — the backdrop scrim), `--lr-lightbox-control-bg` (default
|
|
140
162
|
`var(--lr-color-neutral)`) and `--lr-lightbox-control-color` (default `var(--lr-color-on-neutral)`)
|
|
@@ -163,3 +185,60 @@ photo content.
|
|
|
163
185
|
still observable through the before/after events and methods above.
|
|
164
186
|
|
|
165
187
|
Set `--lr-lightbox-control-hover-bg` and `--lr-lightbox-control-hover-color` for hovered controls. Set `--lr-lightbox-control-active-bg` and `--lr-lightbox-control-active-color` for pressed controls.
|
|
188
|
+
|
|
189
|
+
### `lr-lightbox` slotted items (`lr-lightbox-item`)
|
|
190
|
+
|
|
191
|
+
`<lr-lightbox>` also accepts `<lr-lightbox-item>` children (any depth, no nested lightbox), mirroring
|
|
192
|
+
`wa-lightbox`/`wa-lightbox-item`. `images`/`imageSource` keep working unchanged and take precedence
|
|
193
|
+
when set. With items the host stays inline and the viewer opens over the page.
|
|
194
|
+
|
|
195
|
+
```html
|
|
196
|
+
<lr-lightbox label="Trip" with-thumbnails>
|
|
197
|
+
<lr-lightbox-item src="/photos/a-full.jpg" alt="Harbour" width="1600" height="900">
|
|
198
|
+
<img src="/photos/a-thumb.jpg" alt="Harbour" />
|
|
199
|
+
<span slot="caption">Harbour at dawn</span>
|
|
200
|
+
</lr-lightbox-item>
|
|
201
|
+
<lr-lightbox-item type="video" src="/clips/b.mp4" thumbnail="/clips/b.jpg" alt="Boat"></lr-lightbox-item>
|
|
202
|
+
</lr-lightbox>
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**`lr-lightbox-item`** — `type: 'image' | 'video' = 'image'` (reflected; video shows a play button),
|
|
206
|
+
`src` (the link target, so the gallery works without JavaScript and can be opened in a new tab; a modified
|
|
207
|
+
click is left to the browser), `srcset`/`sizes` (the lightbox loads the smallest candidate covering
|
|
208
|
+
the viewport or a single `px`/`vw` `sizes` length, else the largest), `alt` (defaults to the slotted
|
|
209
|
+
`img` alt), `caption`, `thumbnail` (strip image and the item's own image when nothing is slotted),
|
|
210
|
+
`width`/`height` (reserve space). Slots: default thumbnail, `caption` (text shown in the viewer),
|
|
211
|
+
`play-icon`. Parts: `trigger`, `thumbnail-image`, `play-button`. The `data-active` attribute marks the
|
|
212
|
+
current item while open. URLs are validated: `src` for the link with `safeLinkHref()` and all media
|
|
213
|
+
with `safeMediaSrc()`; a rejected `src` leaves a button-style trigger and the item out of the viewer.
|
|
214
|
+
An item with no `src` is activated with Enter/Space.
|
|
215
|
+
|
|
216
|
+
**Lightbox additions** — `with-thumbnails` (thumbnail strip, not with `imageSource`), `without-navigation`
|
|
217
|
+
(hides previous/next; arrow keys and swipe stay), `without-zoom` (no zoom button/controls; the toolbar zoom button exists for slotted items only), `label`
|
|
218
|
+
(reflected; names the dialog; a host `aria-label` wins), `items` and `currentItem` getters, `zoomIn()`/`zoomOut()`.
|
|
219
|
+
`lr-item-change` fires with every `lr-index-change` and adds `{ index, previousIndex, item, previousItem }`
|
|
220
|
+
(items are `null` in data mode); like `lr-index-change` it is not fired when `index` is written directly. Touch and pen swipes (not mouse) navigate, reversed under RTL, and are
|
|
221
|
+
off while zoomed; `pointercancel` abandons a swipe. A `type="video"` item plays in a native `<video>`
|
|
222
|
+
that pauses on slide change and close; zoom is unavailable for video. Slots `close-icon`,
|
|
223
|
+
`previous-icon`, `next-icon`, `zoom-in-icon`, `zoom-out-icon`. Added part aliases: `dialog` (panel),
|
|
224
|
+
`scroll-container` (stage), `image` (the zoomable `frame`),
|
|
225
|
+
`navigation-button`/`navigation-button-previous`/`navigation-button-next`, plus `surface`, `slide`, `video`, `zoom-button`, `thumbnails`, `thumbnail`, `thumbnail-active`.
|
|
226
|
+
Match them with `[part~="…"]` when querying.
|
|
227
|
+
Motion: `--show-duration`/`--hide-duration` (or `--lr-lightbox-panel-duration`, default
|
|
228
|
+
`--lr-duration-base`) drive the open/close and slide animations, which are flattened under
|
|
229
|
+
`prefers-reduced-motion`; `lr-after-show`/`lr-after-hide` keep their render-based timing and the motion
|
|
230
|
+
runs on after them (the host stays painted with `data-closing` until the exit motion ends).
|
|
231
|
+
`--slide-gap` (`--lr-lightbox-slide-gap`), `--thumbnail-size` (`--lr-lightbox-thumbnail-size`) and
|
|
232
|
+
`--media-border-radius` (`--lr-lightbox-media-radius`) style slides and the strip.
|
|
233
|
+
Upstream-named styling properties: `--backdrop-color` (scrim), `--backdrop-filter` (default `none`,
|
|
234
|
+
e.g. `blur(1rem)`), `--controls-background` and `--controls-color` (controls, counter, caption) and
|
|
235
|
+
`--spacing` (gap between toolbar, media, caption and strip; default `var(--lr-space-s)`); each
|
|
236
|
+
`--lr-lightbox-*` token wins over its alias. Custom states: `lr-lightbox:state(open)`,
|
|
237
|
+
`:state(zoomed)`; on items `lr-lightbox-item:state(active)` (current item while open),
|
|
238
|
+
`:state(empty)` (nothing slotted, no `thumbnail`; hidden on the page) and `:state(morphing)` (while
|
|
239
|
+
the open/close motion runs for that item).
|
|
240
|
+
|
|
241
|
+
**CSS parts:** `trigger` (the link, or button-like anchor, that wraps the thumbnail and opens the
|
|
242
|
+
lightbox), `thumbnail-image` (the image rendered from `thumbnail` when nothing is slotted),
|
|
243
|
+
`play-button` (the play button shown over a video's thumbnail) and `play-glyph` (the default play
|
|
244
|
+
glyph inside the `play-icon` slot).
|
|
@@ -9,8 +9,8 @@
|
|
|
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,
|
|
13
|
-
- **Tokens by part** (prefer these over a `::part()` rule) `canvas`: `--lr-chart-canvas-hover-outline-color`, `--lr-chart-canvas-hover-outline-width`; `legend-swatch`: `--lr-chart-pattern-step`
|
|
12
|
+
- **Themeable via** 19 parts, 54 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `canvas`: `--lr-chart-canvas-hover-outline-color`, `--lr-chart-canvas-hover-outline-width`; `center`: `--lr-chart-legend-justify`; `legend-swatch`: `--lr-chart-pattern-step`
|
|
14
14
|
- **Documented with** `lr-bar-chart`, `lr-pie-chart`, `lr-doughnut-chart`, `lr-radar-chart`, `lr-polar-area-chart`, `lr-bubble-chart`, `lr-scatter-chart` (same section below)
|
|
15
15
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
16
16
|
|
|
@@ -130,4 +130,9 @@ together. The mirrored hooks are `--border-color-1`,
|
|
|
130
130
|
for bubble radius, and optional `label` for the point-level accessible/event/export label; no
|
|
131
131
|
runtime cast is needed.
|
|
132
132
|
|
|
133
|
+
Further custom properties:
|
|
134
|
+
|
|
135
|
+
- `--lr-chart-legend-item-line-height` (default `inherit`): Line height of each legend item.
|
|
136
|
+
- `--lr-chart-legend-justify` (default `normal`): `justify-content` of the legend row, for example `center` or `flex-end`.
|
|
137
|
+
|
|
133
138
|
---
|
|
@@ -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, 41 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-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
|
|
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
|
|
@@ -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
|
|