@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** 8 parts,
|
|
12
|
+
- **Themeable via** 8 parts, 27 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Documented with** `lr-accordion`, `lr-accordion-item` (same section below)
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -341,8 +341,12 @@ Details surface paint uses `--lr-details-outlined-bg` / `--lr-details-outlined-b
|
|
|
341
341
|
respectively the existing surface/border, brand-quiet/transparent, and brand-quiet/border values.
|
|
342
342
|
Summary interaction paint uses `--lr-details-summary-hover-bg` (default
|
|
343
343
|
`var(--lr-color-brand-quiet)`) and `--lr-details-summary-active-bg` (default the existing active
|
|
344
|
-
`color-mix(...)`)
|
|
344
|
+
`color-mix(...)`); `--lr-details-summary-hover-color` (default `var(--lr-details-summary-color)`)
|
|
345
|
+
recolors the summary text while hovered or pressed. All eight are inheritable inline-fallback hooks, so they isolate one disclosure
|
|
345
346
|
theme without requiring shared-token changes or shadow-part selectors.
|
|
347
|
+
`lr-details` also takes `--lr-details-icon-color` (default `inherit`, so the icon follows the summary
|
|
348
|
+
text including its hover colour) and `--lr-details-icon-size` (default `var(--lr-size-1rem)`, the
|
|
349
|
+
built-in chevron only; a slotted `expand-icon`/`collapse-icon` keeps its own size).
|
|
346
350
|
|
|
347
351
|
```html
|
|
348
352
|
<lr-details summary="Advanced options">Panel content</lr-details>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 16 parts, 33 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `body`: `--lr-dialog-height`; `footer`: `--lr-dialog-height`; `header`: `--lr-dialog-height`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -42,6 +42,9 @@ read, and neither is deprecated.
|
|
|
42
42
|
the property, the reflected attribute and the two methods can never disagree. `el.open = false`
|
|
43
43
|
therefore emits the full close lifecycle and can be vetoed. Markup that renders open from the start (`<lr-dialog open>`) emits nothing.
|
|
44
44
|
- `label: string = ''` — mapped visible title. The richer `label` slot wins over it.
|
|
45
|
+
- `withLabel: boolean = false` (attribute `with-label`) — server-rendering hint that a `label` slot
|
|
46
|
+
child is provided, so the titled header is present before hydration; in the browser the real slot
|
|
47
|
+
content decides, so `with-label` without a label never renders an empty heading. Also on `lr-drawer`.
|
|
45
48
|
- `headingLevel: LyraHeadingLevel = '3'` (attribute `heading-level`, reflected) — `1`–`6` expose
|
|
46
49
|
the generated visible title (string property or rich `label` slot) at that semantic level;
|
|
47
50
|
invalid untyped values retain level 3, while `none` keeps visual title text without heading
|
|
@@ -60,6 +63,11 @@ read, and neither is deprecated.
|
|
|
60
63
|
panel) leaves it.
|
|
61
64
|
- `withFooter: boolean = false` (attribute `with-footer`, reflected) — keeps the footer wrapper
|
|
62
65
|
rendered as an SSR/hydration presence hint even before assigned slot content is observable
|
|
66
|
+
- `fullscreenNarrow: boolean = false` (attribute `fullscreen-narrow`, reflected) — opt-in
|
|
67
|
+
full-screen layout below a `40rem` viewport width: the panel drops the viewport inset, corner
|
|
68
|
+
radius and size caps, fills the viewport and pads itself with the `--lr-safe-area-*` insets. At
|
|
69
|
+
wider viewports it renders exactly as without the attribute. The `(max-width: 40rem)` breakpoint
|
|
70
|
+
is evaluated with `matchMedia()` and followed live while the dialog is connected.
|
|
63
71
|
- `size: LyraSize = 'm'` (reflected) — `'2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'small' | 'medium' |
|
|
64
72
|
'large'`. Panel-width tier, on the shared six-step ladder: `20rem` (`2xs`), `24rem` (`xs`), `28rem`
|
|
65
73
|
(`s`/`small`), `32rem` (`m`/`medium`), `38rem`
|
|
@@ -192,7 +200,10 @@ border simply has no default to relay, which is different from border theming be
|
|
|
192
200
|
remains the one exception that does not cross this way: use `--lr-theme-icon-button-size`, never
|
|
193
201
|
`--lr-icon-button-size`, as noted above.
|
|
194
202
|
|
|
195
|
-
|
|
203
|
+
Further CSS parts: `close-button__button`: Web Awesome-named alias of `close-button-control`: the
|
|
204
|
+
close button's own native control.
|
|
205
|
+
|
|
206
|
+
**Themeable custom properties:** mapped aliases are `--backdrop-filter`, `--backdrop-color` (alias of `--lr-dialog-overlay-color`, which wins when both are set), `--width`, `--spacing`,
|
|
196
207
|
`--header-spacing`, `--body-spacing`, `--footer-spacing`, `--show-duration`, and
|
|
197
208
|
`--hide-duration`. The individual region properties override `--spacing`; mapped properties in
|
|
198
209
|
turn fall back to the retained Lyra tokens: `--lr-dialog-overlay-color` (default
|
|
@@ -207,7 +218,12 @@ the private `--_lr-dialog-max-width` is the `size` property's own tier value (`3
|
|
|
207
218
|
default, unchanged); when
|
|
208
219
|
`--lr-dialog-width` is set but `--lr-dialog-max-width` is left at its default, the cap falls back to
|
|
209
220
|
the requested width itself — not the tier default — so an assertive width isn't silently clipped;
|
|
210
|
-
the viewport is still a hard limit either way), `--lr-dialog-height` (default `
|
|
221
|
+
the viewport is still a hard limit either way), `--lr-dialog-max-height` (default `100%` — the
|
|
222
|
+
panel's max-block-size cap, the block-axis twin of `--lr-dialog-max-width`, applied as
|
|
223
|
+
`min(var(--lr-dialog-max-height, 100%), 100%)` so the viewport stays a hard limit),
|
|
224
|
+
`--lr-dialog-viewport-inset` (default `var(--lr-space-l)` — the gap between the viewport edges and
|
|
225
|
+
the panel on all four sides; the `--lr-safe-area-*` insets still win where larger; replaces the
|
|
226
|
+
`::part(dialog) { max-block-size }`-style overrides), `--lr-dialog-height` (default `auto` — the panel
|
|
211
227
|
shrink-wraps to content on the block axis; always capped at
|
|
212
228
|
`100%`, i.e. the viewport, like every other panel dimension). With it set, `[part="body"]`'s own
|
|
213
229
|
`flex: 1 1 auto` is what actually gives slotted content a definite, fillable block size:
|
|
@@ -219,9 +235,13 @@ preview or editor fills the dialog without a `::part(body)` rule; light-DOM rule
|
|
|
219
235
|
still win, so `flex: none` keeps a heading or toolbar at its natural size. On `<lr-drawer>`,
|
|
220
236
|
`fill-body` also restores the body growth the drawer otherwise opts out of.
|
|
221
237
|
`--lr-dialog-heading-font-size` (default `inherit`), `--lr-dialog-heading-font-weight` (default
|
|
222
|
-
`var(--lr-font-weight-semibold)`)
|
|
223
|
-
`var(--lr-font-heading)`) style the visible header title (`[part~="heading"]`), including
|
|
224
|
-
`confirm()`'s
|
|
238
|
+
`var(--lr-font-weight-semibold)`), `--lr-dialog-heading-letter-spacing` (default `normal`) and
|
|
239
|
+
`--lr-dialog-heading-font-family` (default `var(--lr-font-heading)`) style the visible header title (`[part~="heading"]`), including
|
|
240
|
+
`confirm()`'s, and `--lr-dialog-heading-line-height` (default `inherit`) sets its line height.
|
|
241
|
+
`--lr-dialog-header-border` (default `var(--lr-border-width-thin) solid var(--lr-dialog-divider-color)`)
|
|
242
|
+
is the header's bottom rule as a border shorthand (`none` removes it; the footer rule keeps
|
|
243
|
+
`--lr-dialog-divider-color`), and `--lr-dialog-body-overflow` (default `auto`) is the body's
|
|
244
|
+
`overflow`, for example `hidden` when slotted content manages its own scrolling. `--lr-dialog-spacing` (default `var(--lr-space-l)` —
|
|
225
245
|
the padding inside `[part="body"]` and the _inline_ padding of the header and footer rows),
|
|
226
246
|
`--lr-dialog-spacing-block` (default `var(--lr-space-m)` — the _block_ padding of the header and
|
|
227
247
|
footer rows, which are tighter than the body by default), `--lr-dialog-panel-duration` (default
|
|
@@ -230,10 +250,14 @@ footer rows, which are tighter than the body by default), `--lr-dialog-panel-dur
|
|
|
230
250
|
The panel paints from the **shared overlay-surface family** (16.0.0), not from the page-surface
|
|
231
251
|
tokens this entry previously named: `--lr-overlay-surface` (default `var(--lr-color-surface-overlay)`
|
|
232
252
|
— the panel fill), `--lr-overlay-border` (default `var(--lr-color-border-subtle)` — the panel edge and the
|
|
233
|
-
header's and footer's dividing rules), `--lr-overlay-radius` (default `var(--lr-radius)` — the panel
|
|
253
|
+
header's and footer's dividing rules unless `--lr-dialog-divider-color` is set), `--lr-overlay-radius` (default `var(--lr-radius)` — the panel
|
|
234
254
|
corner and the close button's) and `--lr-overlay-shadow-modal` (default `var(--lr-shadow-xl)` — the
|
|
235
255
|
panel's elevation). None is declared on `:host`, so one declaration on `:root` (or on any ancestor,
|
|
236
|
-
to scope it) retints the dialog together with every popup opened from it.
|
|
256
|
+
to scope it) retints the dialog together with every popup opened from it. Two dialog-scoped hooks
|
|
257
|
+
split the panel from that family: `--lr-dialog-panel-bg` (default: the `--lr-overlay-surface` chain)
|
|
258
|
+
fills this panel only, so popups, menus and listboxes opened inside the dialog keep the overlay
|
|
259
|
+
surface, and `--lr-dialog-divider-color` (default: the `--lr-overlay-border` chain) colours the
|
|
260
|
+
header's and footer's dividing rules apart from the panel edge. The modal tier is a
|
|
237
261
|
separate name from `--lr-overlay-shadow-anchored`, which anchored popups read, so raising popups
|
|
238
262
|
never raises dialogs.
|
|
239
263
|
|
|
@@ -410,4 +434,44 @@ with `className`:
|
|
|
410
434
|
Invoking the helper synchronously registers both classes before mounting the transient element;
|
|
411
435
|
consumers do not need a separate registration import for helper-created dialogs.
|
|
412
436
|
|
|
437
|
+
### `prompt()`
|
|
438
|
+
|
|
439
|
+
A drop-in async replacement for `window.prompt()`, and the text-entry sibling of `confirm()`, with
|
|
440
|
+
the same module conventions.
|
|
441
|
+
|
|
442
|
+
```ts
|
|
443
|
+
import { prompt } from "@aceshooting/lyra-ui/components/overlays/dialog/prompt.js";
|
|
444
|
+
|
|
445
|
+
const name = await prompt({
|
|
446
|
+
title: "Rename conversation",
|
|
447
|
+
label: "Name",
|
|
448
|
+
value: conversation.name,
|
|
449
|
+
validate: (value) => (value.trim() ? null : "Enter a name"),
|
|
450
|
+
});
|
|
451
|
+
if (name !== null) renameConversation(name);
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
`prompt(options: PromptOptions): Promise<string | null>` where
|
|
455
|
+
`PromptOptions = { title: string; label: string; description?: string; value?: string /* = '' */; placeholder?: string; validate?: (value: string) => string | null | undefined; confirmLabel?: string /* = 'Confirm' */; cancelLabel?: string /* = 'Cancel' */; size?: LyraSize /* = 'm' */; headingLevel?: LyraHeadingLevel /* = '2' */; className?: string }`.
|
|
456
|
+
|
|
457
|
+
Resolves the submitted string when the confirm button is pressed or Enter is pressed in the field,
|
|
458
|
+
and `null` on Escape, a backdrop click, the cancel button or removal. The body holds one labelled
|
|
459
|
+
`<lr-input data-lr-prompt-field>` (`label` names it) that starts with `value` and takes focus when
|
|
460
|
+
the dialog opens, through the dialog's own `lr-initial-focus` hand-off. Submitting runs
|
|
461
|
+
`validate(value)` first: a returned non-empty message becomes the field's `errorText` (announced
|
|
462
|
+
and `aria-invalid="true"`), the field keeps focus and the dialog stays open; typing clears it, and
|
|
463
|
+
`null`, `undefined` or `''` accepts the value. The message is rendered as given, so localize it in
|
|
464
|
+
the caller. The default action labels resolve the shared `'confirm'` and `'cancel'` messages
|
|
465
|
+
through the active locale, exactly as `confirm()`'s do.
|
|
466
|
+
|
|
467
|
+
Everything else matches `confirm()`: a transient `<lr-dialog>` on `document.body` with
|
|
468
|
+
`lightDismiss` on and no header close button, removed after its exit animation; `title` is the
|
|
469
|
+
header title at `headingLevel`; `size` and `className` are forwarded; dismissal funnels through
|
|
470
|
+
`close()`/`lr-close`, so a `lr-hide` or `lr-close-request` veto keeps it open; focus returns to the
|
|
471
|
+
opener once it settles. Actions are `<lr-button>` elements in the `footer` slot carrying
|
|
472
|
+
`data-lr-prompt-action="cancel" | "confirm"`, and `description` becomes a zero-specificity
|
|
473
|
+
`<p data-lr-prompt-description>` above the field, so `--lr-dialog-*`, `--lr-input-*` and
|
|
474
|
+
`--lr-button-*` tokens scoped through `className` all apply. Importing `prompt` is side-effect
|
|
475
|
+
free; invoking it registers `<lr-dialog>`, `<lr-input>` and `<lr-button>`.
|
|
476
|
+
|
|
413
477
|
---
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 5 parts, 5 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -21,15 +21,24 @@ Unsupported orientation values normalize to `horizontal`. The boolean `vertical`
|
|
|
21
21
|
A semantic separator: renders `<hr part="base" role="separator" aria-orientation="…">`. A host
|
|
22
22
|
`aria-label` is forwarded to that inner semantic owner.
|
|
23
23
|
|
|
24
|
-
**Properties:** `orientation: 'horizontal' | 'vertical' = 'horizontal'` (reflected)
|
|
25
|
-
`vertical: boolean = false` (reflected Shoelace-compatible shorthand)
|
|
24
|
+
**Properties:** `orientation: 'horizontal' | 'vertical' = 'horizontal'` (reflected),
|
|
25
|
+
`vertical: boolean = false` (reflected Shoelace-compatible shorthand),
|
|
26
|
+
`labelPlacement: 'start' | 'center' | 'end' = 'center'` (`label-placement`, reflected) and
|
|
27
|
+
`withLabel: boolean = false` (`with-label`, reflected).
|
|
26
28
|
|
|
27
|
-
**
|
|
29
|
+
**Label:** slotted content in the default slot is drawn on the line; the base then becomes a
|
|
30
|
+
`div role="separator"` with `line` / `line-start` / `line-end` and `label` parts, and the label text
|
|
31
|
+
names the separator unless the host sets `aria-label`. `with-label` follows the real slot content in
|
|
32
|
+
the browser; set it on server-rendered markup so the labeled layout exists before hydration.
|
|
33
|
+
|
|
34
|
+
**Events:** none. **Slots:** default (label). **CSS parts:** `base`, `line`, `line-start`,
|
|
35
|
+
`line-end`, `label`.
|
|
28
36
|
|
|
29
37
|
**Themeable custom properties:** `--color` (falls back to `--lr-color-border-subtle`, the
|
|
30
38
|
decorative-edge token, which itself resolves to `--lr-color-border` unless a theme sets a subtle
|
|
31
39
|
border), `--width` (falls back to `--lr-border-width-thin`), and `--spacing` (default `0`, applied
|
|
32
|
-
on the cross axis)
|
|
40
|
+
on the cross axis), `--label-spacing` (label padding, default `--lr-space-s`) and `--label-offset`
|
|
41
|
+
(short line length for a `start`/`end` label, default `2em`).
|
|
33
42
|
|
|
34
43
|
The host is `display: block` when horizontal and `display: inline-block; block-size: 100%` when
|
|
35
44
|
vertical, so a vertical divider fills its flex/grid row's height with no extra CSS — but it needs a
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [charts](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/charts.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 19 parts,
|
|
12
|
+
- **Themeable via** 19 parts, 54 custom properties — see `lr-line-chart.md`
|
|
13
13
|
- **Documented with** `lr-line-chart`: see [lr-line-chart.md](./lr-line-chart.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 16 parts, 41 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `body`: `--lr-dialog-height`; `footer`: `--lr-dialog-height`; `header`: `--lr-dialog-height`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -33,6 +33,11 @@ the slide animation are its own.
|
|
|
33
33
|
- `contained: boolean = false` (attribute `contained`, reflected) — position within the nearest
|
|
34
34
|
containing block without a backdrop, page inerting, focus trap, scroll lock, top-layer
|
|
35
35
|
promotion, or global Escape ownership
|
|
36
|
+
- `floating: boolean = false` (attribute `floating`, reflected) — an inset, floating sheet: the
|
|
37
|
+
panel keeps a `--lr-drawer-inset` gap (default `var(--lr-space-s)`) from every viewport edge
|
|
38
|
+
(from the containing block's edges with `contained`; the safe-area insets still win where
|
|
39
|
+
larger) and rounds its corners with `--lr-overlay-radius` (default `var(--lr-radius)`).
|
|
40
|
+
Off by default, so the drawer stays square and edge-flush.
|
|
36
41
|
- `heading?: string`, `label: string`,
|
|
37
42
|
`withoutCloseButton: boolean = false` (attribute `without-close-button`, reflected),
|
|
38
43
|
`noHeader: boolean = false` (attribute `no-header`, Shoelace's spelling, reflected),
|
|
@@ -52,6 +57,8 @@ the slide animation are its own.
|
|
|
52
57
|
from the drawer-specific `--size` CSS custom property below, which maps to this same panel's own
|
|
53
58
|
`inline-size`/`block-size` for the active axis.
|
|
54
59
|
|
|
60
|
+
More properties: `with-label`: see the component JSDoc.
|
|
61
|
+
|
|
55
62
|
**Methods:** `show(): Promise<void>`, `hide(): Promise<void>`,
|
|
56
63
|
`close(reason?: DialogCloseReason): Promise<void>` — inherited unchanged from `lr-dialog`; each
|
|
57
64
|
promise settles after the matching `lr-after-*` event.
|
|
@@ -80,7 +87,7 @@ lifecycle.
|
|
|
80
87
|
controls, rendered before the built-in close button), `footer` — all inherited from `lr-dialog`.
|
|
81
88
|
|
|
82
89
|
**CSS parts:** `base`; `backdrop overlay`; `panel dialog`; `header`; `heading title label`;
|
|
83
|
-
`header-actions`; `close-button close-button__base`; `close-button-control
|
|
90
|
+
`header-actions`; `close-button close-button__base`; `close-button-control` (also `close-button__button`, the same native control); `body`; `footer`.
|
|
84
91
|
Names grouped together are aliases on the same functional node; `close-button-control` is the
|
|
85
92
|
composed `<lr-icon-button>`'s own native `<button>`, inherited from `lr-dialog` as of 16.0.0.
|
|
86
93
|
|
|
@@ -88,7 +95,7 @@ composed `<lr-icon-button>`'s own native `<button>`, inherited from `lr-dialog`
|
|
|
88
95
|
the inherited `--width` and `--lr-dialog-width` remain compatibility fallbacks when neither
|
|
89
96
|
`--size` nor `--lr-drawer-width` is set, and `--lr-dialog-max-width` remains an effective cap,
|
|
90
97
|
falling back to the `size` property's own tier value (see Properties above) when unset.
|
|
91
|
-
The other mapped/inherited aliases are `--backdrop-filter`, `--spacing`, `--header-spacing`, `--body-spacing`,
|
|
98
|
+
The other mapped/inherited aliases are `--backdrop-filter`, `--backdrop-color` (alias of `--lr-dialog-overlay-color`, which wins when both are set), `--spacing`, `--header-spacing`, `--body-spacing`,
|
|
92
99
|
`--footer-spacing`, `--show-duration`, and `--hide-duration`. Lyra compatibility tokens remain:
|
|
93
100
|
`--lr-drawer-width` (default `--lr-size-24rem`; used by
|
|
94
101
|
`placement="start"|"end"`, capped at `100%`), `--lr-drawer-height` (default `--lr-size-24rem`;
|
|
@@ -96,14 +103,18 @@ used by `placement="top"|"bottom"`), `--lr-drawer-enter-x` / `--lr-drawer-enter-
|
|
|
96
103
|
slide translate offset, used for both the enter and the exit keyframes — `-x` for start/end, `-y`
|
|
97
104
|
for top/bottom; both default to `±var(--lr-size-1rem)` and are set per `placement`, with `-x`
|
|
98
105
|
explicitly flipped under `:dir(rtl)` since `translateX` is physical. Override to lengthen/shorten
|
|
99
|
-
the slide)
|
|
106
|
+
the slide), `--lr-drawer-panel-bg` (the panel's own fill, ahead of the inherited
|
|
107
|
+
`--lr-dialog-panel-bg` and the shared `--lr-overlay-surface`; unlike the shared token it does not
|
|
108
|
+
retint popups opened inside the drawer), `--lr-drawer-radius` (default `0`, or
|
|
109
|
+
`--lr-overlay-radius` while `floating` is set; an explicit value wins either way) and
|
|
110
|
+
`--lr-drawer-inset` (default `var(--lr-space-s)`; the `floating` gap, ignored otherwise). It also inherits every `<lr-dialog>` token — `--lr-dialog-overlay-color`,
|
|
100
111
|
`--lr-dialog-backdrop-filter`, `--lr-dialog-width`, `--lr-dialog-max-width`, `--lr-dialog-spacing`,
|
|
101
112
|
`--lr-dialog-spacing-block`, `--lr-dialog-panel-duration` and `--lr-dialog-backdrop-duration` —
|
|
102
113
|
since `LyraDrawer` extends `LyraDialog`, including the shared overlay-surface family the panel
|
|
103
114
|
paints from: `--lr-overlay-surface`, `--lr-overlay-border`, `--lr-overlay-radius` and
|
|
104
115
|
`--lr-overlay-shadow-modal`. The drawer's own `[part~="panel"]` rule squares the corners and steps
|
|
105
116
|
the default elevation down to `var(--lr-shadow-l)` — three of its edges are flush with the viewport —
|
|
106
|
-
so on this tag `--lr-overlay-radius` is overridden, while the fill, edge colour and a consumer
|
|
117
|
+
so on this tag `--lr-overlay-radius` is overridden unless `floating` is set, while the fill, edge colour and a consumer
|
|
107
118
|
`--lr-overlay-shadow-modal` still take effect. `--lr-dialog-height` is deliberately **not** among the
|
|
108
119
|
inherited tokens above: `<lr-drawer>`'s own `[part~="panel"]` rule unconditionally sets its own
|
|
109
120
|
`block-size` for every placement (`100%` for `start`/`end`, a `--lr-drawer-height`-driven `min()`
|
|
@@ -116,8 +127,8 @@ override `body` would always stretch and push `footer` to the panel's far edge.
|
|
|
116
127
|
`[part="body"]` rule restores the natural content size instead, so `footer` follows immediately
|
|
117
128
|
after a short body. Set the inherited `fill-body` attribute to opt back in: `body` then grows to the
|
|
118
129
|
panel and becomes a column flex container whose slotted children fill it. The inherited
|
|
119
|
-
`--lr-dialog-heading-font-size`, `--lr-dialog-heading-font-weight
|
|
120
|
-
`--lr-dialog-heading-font-family` tokens style the drawer's header title exactly as on
|
|
130
|
+
`--lr-dialog-heading-font-size`, `--lr-dialog-heading-font-weight`,
|
|
131
|
+
`--lr-dialog-heading-letter-spacing` and `--lr-dialog-heading-font-family` tokens style the drawer's header title exactly as on
|
|
121
132
|
`<lr-dialog>`. The drawer's own
|
|
122
133
|
size/width/height tokens take precedence
|
|
123
134
|
for its panel, and only the animation _name_ is overridden, so `--lr-dialog-panel-duration` retunes the
|
|
@@ -132,3 +143,11 @@ slide too and the reduced-motion flattening of the shared `--lr-duration-*` toke
|
|
|
132
143
|
```
|
|
133
144
|
|
|
134
145
|
---
|
|
146
|
+
|
|
147
|
+
The drawer inherits the dialog's opt-in `fullscreen-narrow` attribute (a viewport narrower than 40rem fills the screen) and the panel sizing tokens `--lr-dialog-max-height`, `--lr-dialog-viewport-inset` and `--lr-dialog-divider-color`, exactly as on `<lr-dialog>`.
|
|
148
|
+
|
|
149
|
+
Further custom properties:
|
|
150
|
+
|
|
151
|
+
- `--lr-dialog-body-overflow` (default `auto`): `overflow` of the body region, for example `hidden` when slotted content manages its own scrolling.
|
|
152
|
+
- `--lr-dialog-header-border` (default `var(--lr-border-width-thin) solid var(--lr-dialog-divider-color)`): Border shorthand of the header's bottom rule; `none` removes it. The footer rule keeps `--lr-dialog-divider-color`.
|
|
153
|
+
- `--lr-dialog-heading-line-height` (default `inherit`): Line height of the visible header title.
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 12 parts,
|
|
12
|
+
- **Themeable via** 12 parts, 25 custom properties — see `lr-menu.md`
|
|
13
13
|
- **Documented with** `lr-menu`: see [lr-menu.md](./lr-menu.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 13 parts,
|
|
12
|
+
- **Themeable via** 13 parts, 14 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
|
+
- **Tokens by part** (prefer these over a `::part()` rule) `content`: `--lr-overlay-content-padding`
|
|
13
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
15
|
|
|
15
16
|
---
|
|
@@ -103,8 +104,8 @@ its surface.
|
|
|
103
104
|
light-dismiss handling.
|
|
104
105
|
- `withoutArrow: boolean = false` (attribute `without-arrow`, reflected) — suppresses the
|
|
105
106
|
pointer. Set `without-arrow` to preserve the previous omitted-arrow appearance.
|
|
106
|
-
- `arrowPlacement`, `arrowPadding`,
|
|
107
|
-
`lr-popover`.
|
|
107
|
+
- `arrowPlacement`, `arrowPadding`, `fullWidthTrigger` (`full-width-trigger`), and
|
|
108
|
+
`accessibleLabel` (`aria-label`) are inherited from `lr-popover`.
|
|
108
109
|
- `popupRole: 'menu'` (attribute `popup-role`) is the narrowed inherited surface. Dropdowns cannot
|
|
109
110
|
be changed into dialogs; use `lr-popover popup-role="dialog"` for arbitrary dialog-like content.
|
|
110
111
|
|
|
@@ -145,7 +146,10 @@ default; style it only to debug the travel region.
|
|
|
145
146
|
|
|
146
147
|
**Themeable custom properties:** `--show-duration` and `--hide-duration` (both default
|
|
147
148
|
`var(--lr-transition-fast)`), mapped `--max-width` and `--arrow-size`, plus retained
|
|
148
|
-
`--lr-overlay-max-inline-size` and `--lr-overlay-arrow-size` fallbacks
|
|
149
|
+
`--lr-overlay-max-inline-size` and `--lr-overlay-arrow-size` fallbacks, and the inherited
|
|
150
|
+
`--lr-overlay-inline-size` / `--lr-overlay-min-inline-size` popup width hooks (a `top-layer` popup
|
|
151
|
+
honours them too). The menu keeps its own compact `var(--lr-space-xs)` content padding, so
|
|
152
|
+
`--lr-overlay-content-padding` does not reach it. The popup surface is
|
|
149
153
|
`lr-popover`'s, so the whole overlay-surface family reaches it unchanged: `--lr-overlay-surface`,
|
|
150
154
|
`--lr-overlay-border`, `--lr-overlay-radius`, `--lr-overlay-shadow-anchored`, and the cascading
|
|
151
155
|
`--lr-positioning-strategy` override documented on `<lr-popover>`
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `emoji-picker-element-data` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via** 19 parts,
|
|
12
|
+
- **Themeable via** 19 parts, 38 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `form-control-label`: `--lr-form-control-required-content`; `grid`: `--lr-theme-scrollbar-color`; `search-wrapper`: `--lr-emoji-picker-search-clear-gap`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -192,6 +192,9 @@ The `grid` scroll container also honors the opt-in theme-level
|
|
|
192
192
|
(defaults `auto`/`stable`/`auto`, matching its previous unconditional `scrollbar-gutter: stable`) — set any of them on `:root` or any ancestor for
|
|
193
193
|
one declaration to retheme every internal scroll container in the library.
|
|
194
194
|
|
|
195
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
196
|
+
height of the field label.
|
|
197
|
+
|
|
195
198
|
**Optional peer dependency:** install `emoji-picker-element-data` with
|
|
196
199
|
`pnpm add emoji-picker-element-data` for the built-in auto-loaded default emoji set — omit it and
|
|
197
200
|
supply `groups` directly instead. The loader never throws; it leaves `groups` empty and logs one
|
|
@@ -226,3 +229,9 @@ those through `registerLyraLocale()` or `.strings`. An unknown future group id u
|
|
|
226
229
|
- `--lr-form-control-focus-shadow` — The shared field halo, painted as a `box-shadow` on the search
|
|
227
230
|
field while it is focused. One name for every field-shaped control in the library, so a halo is
|
|
228
231
|
configured once instead of per component; additive to the existing focus outline. Default: `none`.
|
|
232
|
+
|
|
233
|
+
Further custom properties:
|
|
234
|
+
|
|
235
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
236
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
237
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 5 parts,
|
|
12
|
+
- **Themeable via** 5 parts, 13 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -47,7 +47,8 @@ attribute), `description` (rich description content, overrides the `description`
|
|
|
47
47
|
|
|
48
48
|
**CSS parts:** `base`, `icon`, `heading`, `description`, `actions`
|
|
49
49
|
|
|
50
|
-
**Themeable custom properties:** `--lr-empty-
|
|
50
|
+
**Themeable custom properties:** `--lr-empty-icon-color` (default `--lr-color-text-quiet`) colours
|
|
51
|
+
the icon or illustration; `--lr-empty-padding` (default `--lr-space-l` — padding at the
|
|
51
52
|
default density), `--lr-empty-gap` (default `--lr-space-s` — gap between the icon, heading, and
|
|
52
53
|
description at the default density), `--lr-empty-icon-size` (default `--lr-font-size-3xl` — icon
|
|
53
54
|
size at the default density), `--lr-empty-compact-icon-size` (default `--lr-font-size-m` — icon
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 6 parts,
|
|
12
|
+
- **Themeable via** 6 parts, 23 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `trigger`: `--lr-export-button-radius`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -128,7 +128,10 @@ hover, `--lr-export-button-hover-bg`, `--lr-export-button-hover-color` and
|
|
|
128
128
|
the current `appearance` resolves to and leaves the other paints alone, so they are also the way to
|
|
129
129
|
keep `appearance="outlined"` chrome while returning its label to neutral text — `outlined` paints
|
|
130
130
|
the label `--lr-color-brand` and, unlike `lr-button`, this component has no `variant` of its own to
|
|
131
|
-
opt out.
|
|
131
|
+
opt out. The trigger's type and padding take `--lr-export-button-font-size` (unset, it inherits the
|
|
132
|
+
host font size or takes the `size` tier's), `--lr-export-button-font-weight` (default `inherit`) and
|
|
133
|
+
`--lr-export-button-padding-inline` (default `var(--lr-space-m)`, also over the `size` tier's; an
|
|
134
|
+
`icon-only` trigger stays a padding-free square). The menu rows keep their own.
|
|
132
135
|
`--lr-export-button-gap` (default `var(--lr-space-xs)`, constant across the `size` ladder) and
|
|
133
136
|
`--lr-export-button-radius` (default `var(--lr-radius)`) retune the trigger's icon/label gap and
|
|
134
137
|
corner radius without a `::part(trigger)` rule. Plus shared
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 22 parts, 38 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `dropzone-icon`: `--lr-file-input-dropzone-icon-size`; `file`: `--lr-file-input-file-bg`, `--lr-file-input-file-border-color`, `--lr-file-input-file-radius`; `file-input`: `--lr-file-input-accept-bg`, `--lr-file-input-accept-border-color`, `--lr-file-input-compact-padding`, `--lr-file-input-dropzone-padding`, `--lr-file-input-radius`, `--lr-file-input-reject-bg`, `--lr-file-input-reject-border-color`; `file-thumbnail`: `--lr-file-input-thumbnail-size`; `form-control-label`: `--lr-form-control-required-content`; `remove-button`: `--lr-file-input-remove-hover-bg`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -264,6 +264,8 @@ What this changes for you:
|
|
|
264
264
|
- **A `::part(rejection)[role]`-style selector never matched anyway** — an attribute selector
|
|
265
265
|
cannot follow `::part()`. Nothing that worked before stopped working.
|
|
266
266
|
|
|
267
|
+
Further CSS parts: `remove-button__button`: Web Awesome-named alias on the same remove button.
|
|
268
|
+
|
|
267
269
|
**CSS custom states:** `blank` and `dragging`, plus the shared validity states `required`,
|
|
268
270
|
`optional`, `valid`, `invalid`, `user-valid`, and `user-invalid`. As on every other form-associated
|
|
269
271
|
control, `valid`/`invalid` and `user-valid`/`user-invalid` stop matching entirely while the control
|
|
@@ -317,6 +319,9 @@ tokens — `--lr-space-xs`, `--lr-space-l`,
|
|
|
317
319
|
`--lr-focus-ring-width/-color/-offset` (`[part="file-input"]:focus-visible` outline),
|
|
318
320
|
`--lr-opacity-disabled` (`:host([disabled])` dimming).
|
|
319
321
|
|
|
322
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
323
|
+
height of the field label.
|
|
324
|
+
|
|
320
325
|
**Optional peer deps:** none.
|
|
321
326
|
|
|
322
327
|
```html
|
|
@@ -369,4 +374,11 @@ an extension-only `accept` list.
|
|
|
369
374
|
|
|
370
375
|
Use `--lr-file-input-dropzone-active-border-color` and `--lr-file-input-dropzone-active-bg` for the pressed field. `--lr-file-input-file-radius` sets the row radius, `--lr-file-input-file-bg` (default `var(--lr-color-surface-raised)`) and `--lr-file-input-file-border-color` (default `var(--lr-color-border-subtle)`) paint it, and `--lr-file-input-remove-hover-bg` (default `var(--lr-color-brand-quiet)`) / `--lr-file-input-remove-active-bg` tint its remove button. `--lr-file-input-thumbnail-size` and `--lr-file-input-thumbnail-radius` size and round its preview.
|
|
371
376
|
|
|
377
|
+
Further custom properties:
|
|
378
|
+
|
|
379
|
+
- `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Gap between the label and the field.
|
|
380
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
381
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
382
|
+
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
383
|
+
|
|
372
384
|
---
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 30 parts,
|
|
12
|
+
- **Themeable via** 30 parts, 4 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `controls`: `--lr-filter-bar-gap`; `end`: `--lr-filter-bar-gap`; `field`: `--lr-filter-bar-field-basis`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -200,7 +200,11 @@ baked-in label text is visible or screen-reader-only).
|
|
|
200
200
|
flex-basis is themeable via `--lr-filter-bar-field-basis` (default `var(--lr-size-12rem)`).
|
|
201
201
|
`--lr-filter-bar-gap` (default `var(--lr-space-s)`) themes the gap between filter fields, the
|
|
202
202
|
`end` slot, the reset button, and the loading status in the `controls` row. Both are byte-identical
|
|
203
|
-
to the previous hardcoded values when unset.
|
|
203
|
+
to the previous hardcoded values when unset. `--lr-filter-bar-control-height` gives every filter
|
|
204
|
+
type (select, combobox, date, text and checkbox-menu) and the reset button one control height at any
|
|
205
|
+
`size`, and `--lr-filter-bar-control-font-size` one field font size; both are unset by default, so
|
|
206
|
+
each control keeps its own tier and any value set on an ancestor through that control's own token. A
|
|
207
|
+
control's own font token set on an ancestor still wins over `--lr-filter-bar-control-font-size`.
|
|
204
208
|
|
|
205
209
|
The reset button and the `end` slot form one wrapping action group, and the `end` wrapper reserves the
|
|
206
210
|
same trailing validation spacer as a field, so slotted end actions sit on the field frames' bottom
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 28 parts,
|
|
12
|
+
- **Themeable via** 28 parts, 32 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
|
---
|
|
@@ -121,6 +121,9 @@ surface/text/brand/danger colors and hover/active mixes. They are inline `var()`
|
|
|
121
121
|
longhand that consumes them, so an override on a parent themes every descendant builder without
|
|
122
122
|
being shadowed by a declaration on the component host.
|
|
123
123
|
|
|
124
|
+
More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
|
|
125
|
+
height of the field label.
|
|
126
|
+
|
|
124
127
|
**Additional API surface:**
|
|
125
128
|
|
|
126
129
|
- `errorText` — Caller-supplied outer error text. Field-level validation remains on the affected controls. Type: `string`.
|
|
@@ -129,3 +132,9 @@ being shadowed by a declaration on the component host.
|
|
|
129
132
|
- `hint` attribute — Supporting text rendered below the outer label.
|
|
130
133
|
- `hint` slot — Supporting text for the complete form control.
|
|
131
134
|
- `part="hint"` — Supporting text for the complete form control.
|
|
135
|
+
|
|
136
|
+
Further custom properties:
|
|
137
|
+
|
|
138
|
+
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
139
|
+
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
140
|
+
- `--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** 25 parts,
|
|
12
|
+
- **Themeable via** 25 parts, 30 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
|
---
|
|
@@ -385,6 +385,17 @@ weekdayLabelWidth?: number|'auto'; weekdayLabelText?: (jsWeekday:number)=>string
|
|
|
385
385
|
label bands keep working instead of an outer container scrolling the whole component. Percentage
|
|
386
386
|
trap: without `fill`, `--lr-heatmap-grid-max-block-size: 100%` resolves to `none`, because the
|
|
387
387
|
base is auto-height; and `fill` itself needs a definite parent height, like any percentage.
|
|
388
|
+
- `fitBlock: boolean = false` (attribute `fit-block`, reflected) — fits the heatmap within the
|
|
389
|
+
host's own `max-block-size` with no definite parent height: the heatmap takes its content height
|
|
390
|
+
up to that ceiling and, in matrix mode, the grid renders inside the `[part="grid"]` scrollport
|
|
391
|
+
(as under `fill`), which takes the block size the legend leaves and becomes the single scroller.
|
|
392
|
+
A short matrix stays as tall as its content; calendar mode is unchanged. Set the ceiling on the
|
|
393
|
+
element itself; a percentage ceiling only resolves against a definite parent. Without a ceiling
|
|
394
|
+
it changes nothing visible.
|
|
395
|
+
|
|
396
|
+
```html
|
|
397
|
+
<lr-heatmap fit-block sticky-labels="cols" style="max-block-size: 24rem"></lr-heatmap>
|
|
398
|
+
```
|
|
388
399
|
- `scale: 'linear' | 'sqrt' = 'linear'` — governs both modes: in matrix mode, `'sqrt'` compresses the
|
|
389
400
|
color ramp via `sqrtStep()` instead of mapping linearly; in calendar mode, the default `'linear'`
|
|
390
401
|
still buckets by quartile (`quartileBucket()`, unchanged), while `'sqrt'` instead compresses via the
|
|
@@ -687,9 +698,15 @@ that real DOM element; set it to give a frozen column band vertical scrolling to
|
|
|
687
698
|
The legend row reads `--lr-heatmap-legend-font-size` (default `var(--lr-font-size-xs)`),
|
|
688
699
|
`--lr-heatmap-legend-color` (default `var(--lr-color-text-quiet)`), `--lr-heatmap-legend-gap`
|
|
689
700
|
(default `var(--lr-space-xs)`), `--lr-heatmap-legend-padding` (default `0`),
|
|
690
|
-
`--lr-heatmap-legend-bg` (default `transparent`), `--lr-heatmap-legend-radius` (default `0`)
|
|
701
|
+
`--lr-heatmap-legend-bg` (default `transparent`), `--lr-heatmap-legend-radius` (default `0`),
|
|
702
|
+
`--lr-heatmap-legend-font-family` (default `inherit`), `--lr-heatmap-legend-divider` (border
|
|
703
|
+
shorthand, default `none`; drawn on the legend edge facing the grid: its block start under the
|
|
704
|
+
default bottom placement, its block end under `legendPlacement = 'top'`) and
|
|
691
705
|
`--lr-heatmap-legend-swatch-size` (default `var(--lr-size-0-6rem)`, stop swatches and annotation
|
|
692
|
-
rings)
|
|
706
|
+
rings), `--lr-heatmap-legend-swatch-radius` (default `var(--lr-radius-xs)`, a `legendStops` swatch's
|
|
707
|
+
corners), `--lr-heatmap-legend-justify` (default `normal`, the row's `justify-content`) and
|
|
708
|
+
`--lr-heatmap-legend-offset` (default `var(--lr-space-xs)`, the distance between the grid and the
|
|
709
|
+
legend on whichever edge `legend-placement` puts it); the continuous ramp reads `--lr-heatmap-legend-ramp-inline-size` (default
|
|
693
710
|
`var(--lr-size-6rem)`), `--lr-heatmap-legend-ramp-block-size` (default `var(--lr-size-0-5rem)`)
|
|
694
711
|
and `--lr-heatmap-legend-ramp-radius` (default `var(--lr-size-2px)`). The suffixes match the chart
|
|
695
712
|
and map legend tokens. Also consumes `--lr-color-text-quiet` (axis label
|
|
@@ -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
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
16
16
|
---
|
|
@@ -174,4 +174,9 @@ their semantics, defaults, and gotchas.
|
|
|
174
174
|
active `setLyraLocale()` locale instead of a hardcoded `'en'`, matching `utilities/format.ts`'s
|
|
175
175
|
helpers; an app that never calls `setLyraLocale()` sees no change, and an explicit tag still wins.
|
|
176
176
|
|
|
177
|
+
Further custom properties:
|
|
178
|
+
|
|
179
|
+
- `--lr-chart-legend-item-line-height` (default `inherit`): Line height of each legend item.
|
|
180
|
+
- `--lr-chart-legend-justify` (default `normal`): `justify-content` of the legend row, for example `center` or `flex-end`.
|
|
181
|
+
|
|
177
182
|
---
|
|
@@ -144,7 +144,9 @@ no appearance attribute or reset rules to sit quietly in a toolbar.
|
|
|
144
144
|
the floor makes the button exactly `--lr-icon-button-size` on both axes; no `::part(button)`
|
|
145
145
|
width/height rule is needed. Set the size on the element for one button, or
|
|
146
146
|
`--lr-icon-button-size-scope` on a wrapper for a toolbar, and keep the slotted glyph (or
|
|
147
|
-
`--lr-icon-size`) at or below it:
|
|
147
|
+
`--lr-icon-size`) at or below it. The native button sets `line-height: 1`, so a glyph wrapped in an
|
|
148
|
+
inline element (a `<span>` around an `<svg>`) does not grow the box to the page's line-height at a
|
|
149
|
+
large root font size:
|
|
148
150
|
|
|
149
151
|
```html
|
|
150
152
|
<lr-icon-button icon="info-circle" label="Details" style="--lr-icon-button-size: 2rem"></lr-icon-button>
|
|
@@ -41,6 +41,14 @@ Pairs with `lr-icon-button` (see `llms/components/lr-icon-button.md`).
|
|
|
41
41
|
- `family: string = ''` and `variant: string = ''` (reflected once set) — forwarded with `name` to
|
|
42
42
|
a registered library resolver. Their vocabulary belongs to that library; for example, an icon
|
|
43
43
|
host might distinguish `classic`/`sharp` families and `regular`/`solid` variants.
|
|
44
|
+
While `family`/`variant` is empty the values from `setDefaultIconFamily(family, variant?)` are
|
|
45
|
+
forwarded instead (`getDefaultIconFamily()`/`getDefaultIconVariant()` read them; both are `''`
|
|
46
|
+
until set). Changing the defaults re-resolves every rendered icon, and an omitted `variant` keeps
|
|
47
|
+
the current default variant.
|
|
48
|
+
- Sprite sheets: `registerIconLibrary(name, { resolver, spriteSheet: true })` makes the resolver
|
|
49
|
+
return a same-origin `sheet.svg#symbol-id` URL, rendered as `<svg part="svg"><use part="use"
|
|
50
|
+
href>`. Nothing is fetched or sanitized, so cross-origin, `data:`, `blob:` and fragment-less
|
|
51
|
+
results fail with `lr-error` (the library `mutator` does not run).
|
|
44
52
|
- `src: string = ''` — URL of a single SVG document to fetch. It applies only when no registered
|
|
45
53
|
library owns the icon: no `library` set, an unregistered one, or an empty `name`. Once a
|
|
46
54
|
registered library does own the name it decides alone — a resolver that returns `''` or throws
|
|
@@ -52,6 +52,9 @@ the source is loading and being sanitized. Build error UI from `lr-include-error
|
|
|
52
52
|
cross-origin fetching is opt-in; an invalid value is normalized back to `same-origin` rather than
|
|
53
53
|
letting `fetch()` throw. `no-cors` is accepted for enum completeness but always yields an opaque
|
|
54
54
|
response (`status` `0`, unreadable body) — a Fetch API limitation, not a bug here.
|
|
55
|
+
- `withoutFragment: boolean = false` (attribute `without-fragment`) — includes the whole sanitized
|
|
56
|
+
remote document and ignores the hash in `src`; no effect on a same-page `#id` source. Sanitization
|
|
57
|
+
is unchanged.
|
|
55
58
|
- `withoutCache: boolean = false` (attribute `without-cache`, not reflected) — by default an
|
|
56
59
|
include shares matching in-flight work and retains successful sanitized remote documents in a
|
|
57
60
|
bounded cache; `without-cache` opts this instance out of both deduplication and retention.
|