@aceshooting/lyra-ui 32.0.0 → 33.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +224 -1380
- package/README.md +36 -7
- package/custom-elements.slim.json +1 -0
- package/design-tokens.json +1 -1
- package/dist/accent-roles.css +1 -0
- package/dist/all.d.ts +1 -1
- package/dist/all.js +1 -1
- package/dist/autoloader.d.ts +10 -0
- package/dist/autoloader.js +1 -1
- package/dist/cli/migrate-wa.mjs +54 -44
- package/dist/cli/migration-contract.json.gz +0 -0
- package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +1 -0
- package/dist/components/agent-tools/budget-meter/budget-meter.styles.js +1 -1
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +1 -1
- package/dist/components/charts/chart/box-plot.class.d.ts +3 -0
- package/dist/components/charts/chart/chart-band.js +1 -1
- package/dist/components/charts/chart/chart-input-projection.js +1 -1
- package/dist/components/charts/chart/chart-surface.styles.js +1 -1
- package/dist/components/charts/chart/chart-types.d.ts +16 -2
- package/dist/components/charts/chart/chart.class.d.ts +4 -1
- package/dist/components/charts/chart/chart.class.js +3 -3
- package/dist/components/charts/chart/lite-chart.class.d.ts +3 -0
- package/dist/components/charts/chart/lite-chart.styles.js +1 -1
- package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -0
- package/dist/components/conversation/code-block/code-block-base.class.d.ts +31 -3
- package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-core.class.d.ts +46 -2
- package/dist/components/conversation/code-block/code-block-core.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-shared.d.ts +6 -2
- package/dist/components/conversation/code-block/code-block-shared.js +5 -4
- package/dist/components/conversation/code-block/code-block.class.d.ts +48 -3
- package/dist/components/conversation/code-block/code-block.class.js +1 -1
- package/dist/components/conversation/code-block/code-block.styles.js +1 -1
- package/dist/components/conversation/code-block/code-grammar-registry.d.ts +35 -0
- package/dist/components/conversation/code-block/code-grammar-registry.js +1 -0
- package/dist/components/conversation/markdown/markdown-core.class.d.ts +12 -0
- package/dist/components/conversation/markdown/markdown.class.d.ts +12 -0
- package/dist/components/conversation/markdown/markdown.styles.js +1 -1
- package/dist/components/conversation/model-select/model-select.class.d.ts +12 -5
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +1 -0
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.d.ts +3 -0
- package/dist/components/conversation/thread-list/thread-list.styles.js +1 -1
- package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +12 -5
- package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +4 -0
- package/dist/components/data/heatmap/heatmap.class.d.ts +21 -2
- package/dist/components/data/heatmap/heatmap.class.js +2 -2
- package/dist/components/data/heatmap/heatmap.styles.js +1 -1
- package/dist/components/data/stat/stat.class.d.ts +24 -1
- package/dist/components/data/stat/stat.class.js +2 -2
- package/dist/components/data/stat/stat.styles.js +1 -1
- package/dist/components/data/table/table-row-attributes.js +1 -0
- package/dist/components/data/table/table-support.d.ts +64 -5
- package/dist/components/data/table/table-support.js +1 -1
- package/dist/components/data/table/table.class.d.ts +78 -7
- package/dist/components/data/table/table.class.js +10 -10
- package/dist/components/data/table/table.styles.js +1 -1
- package/dist/components/data/timeline/timeline-item.class.d.ts +27 -5
- package/dist/components/data/timeline/timeline-item.class.js +11 -7
- package/dist/components/data/timeline/timeline-item.styles.js +1 -1
- package/dist/components/data/timeline/timeline.class.d.ts +54 -8
- package/dist/components/data/timeline/timeline.class.js +11 -7
- package/dist/components/data/timeline/timeline.styles.js +1 -1
- package/dist/components/data/tree/tree-item.class.d.ts +2 -0
- package/dist/components/data/tree/tree-item.class.js +2 -2
- package/dist/components/data/tree/tree-item.styles.js +1 -1
- package/dist/components/forms/button/button.class.d.ts +13 -0
- package/dist/components/forms/button/button.styles.js +1 -1
- package/dist/components/forms/catalog-picker-base.d.ts +14 -1
- package/dist/components/forms/checkbox/checkbox.class.js +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +28 -2
- package/dist/components/forms/checkbox-group/checkbox-group.class.js +3 -3
- package/dist/components/forms/checkbox-group/checkbox-group.styles.js +1 -1
- package/dist/components/forms/code-editor/code-editor.class.d.ts +18 -3
- package/dist/components/forms/code-editor/code-editor.styles.js +1 -1
- package/dist/components/forms/color-picker/color-picker.class.d.ts +25 -5
- package/dist/components/forms/color-picker/color-picker.class.js +3 -3
- package/dist/components/forms/color-picker/color-picker.styles.js +1 -1
- package/dist/components/forms/combobox/combobox-option-html.js +1 -0
- package/dist/components/forms/combobox/combobox.class.d.ts +140 -12
- package/dist/components/forms/combobox/combobox.class.js +113 -22
- package/dist/components/forms/combobox/combobox.styles.js +1 -1
- package/dist/components/forms/country-picker/country-picker.class.d.ts +4 -3
- package/dist/components/forms/currency-picker/currency-picker.class.d.ts +4 -3
- package/dist/components/forms/date-picker/date-input.class.d.ts +53 -3
- package/dist/components/forms/date-picker/date-input.class.js +2 -2
- package/dist/components/forms/date-picker/date-input.styles.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +14 -0
- package/dist/components/forms/emoji-picker/emoji-picker.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.class.d.ts +2 -1
- package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
- package/dist/components/forms/input/input-shared.d.ts +24 -3
- package/dist/components/forms/input/input.styles.js +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +19 -4
- package/dist/components/forms/input/time-input.styles.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +17 -5
- package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
- package/dist/components/forms/otp-input/otp-input.class.d.ts +8 -3
- package/dist/components/forms/otp-input/otp-input.styles.js +1 -1
- package/dist/components/forms/phone-input/phone-input.class.d.ts +18 -3
- package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +23 -2
- package/dist/components/forms/radio/radio-group.class.js +2 -2
- package/dist/components/forms/radio/radio-group.styles.js +1 -1
- package/dist/components/forms/radio/radio.class.js +2 -2
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts +4 -0
- package/dist/components/forms/select/select.class.d.ts +16 -4
- package/dist/components/forms/select/select.class.js +1 -1
- package/dist/components/forms/select/select.styles.js +1 -1
- package/dist/components/forms/signature-pad/signature-pad.class.d.ts +8 -3
- package/dist/components/forms/signature-pad/signature-pad.styles.js +1 -1
- package/dist/components/forms/slider/slider.class.d.ts +29 -2
- package/dist/components/forms/slider/slider.class.js +3 -3
- package/dist/components/forms/slider/slider.styles.js +1 -1
- package/dist/components/forms/switch/switch.class.d.ts +2 -0
- package/dist/components/forms/switch/switch.styles.js +1 -1
- package/dist/components/forms/textarea/textarea.class.d.ts +20 -3
- package/dist/components/forms/textarea/textarea.styles.js +1 -1
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +4 -3
- package/dist/components/forms/token-input/token-input.class.d.ts +99 -21
- package/dist/components/forms/token-input/token-input.class.js +11 -8
- package/dist/components/forms/token-input/token-input.styles.js +1 -1
- package/dist/components/forms/unit-picker/unit-picker.class.d.ts +4 -3
- package/dist/components/layout/app-rail/app-rail.class.d.ts +3 -0
- package/dist/components/layout/app-rail/app-rail.styles.js +1 -1
- package/dist/components/layout/button-group/button-group.class.d.ts +4 -0
- package/dist/components/layout/button-group/button-group.class.js +1 -1
- package/dist/components/layout/card/card.class.d.ts +15 -1
- package/dist/components/layout/card/card.styles.js +1 -1
- package/dist/components/layout/command-palette/command-palette.class.d.ts +1 -1
- package/dist/components/layout/details/details.class.d.ts +6 -0
- package/dist/components/layout/details/details.styles.js +1 -1
- package/dist/components/layout/filter-bar/filter-bar.class.d.ts +6 -0
- package/dist/components/layout/filter-bar/filter-bar.styles.js +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/menu/dropdown-item.class.d.ts +8 -2
- package/dist/components/layout/menu/dropdown-item.class.js +1 -1
- package/dist/components/layout/menu/menu-item.class.d.ts +7 -0
- package/dist/components/layout/menu/menu-item.styles.js +1 -1
- package/dist/components/layout/menu/menu-label.class.d.ts +5 -0
- package/dist/components/layout/menu/menu-label.class.js +1 -1
- package/dist/components/layout/menu/menu.class.d.ts +4 -1
- package/dist/components/layout/menu/menu.styles.js +1 -1
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +1 -1
- package/dist/components/layout/page/page.class.d.ts +9 -1
- package/dist/components/layout/page/page.class.js +2 -2
- package/dist/components/layout/segmented/segmented.class.d.ts +22 -3
- package/dist/components/layout/segmented/segmented.class.js +3 -4
- package/dist/components/layout/segmented/segmented.styles.js +1 -1
- package/dist/components/layout/stepper/step.class.d.ts +102 -0
- package/dist/components/layout/stepper/step.class.js +18 -0
- package/dist/components/layout/stepper/step.styles.js +1 -0
- package/dist/components/layout/stepper/stepper.class.d.ts +106 -13
- package/dist/components/layout/stepper/stepper.class.js +6 -2
- package/dist/components/layout/stepper/stepper.styles.js +1 -1
- package/dist/components/layout/tab-group/tab-group.class.d.ts +10 -1
- package/dist/components/layout/tab-group/tab-group.class.js +1 -1
- package/dist/components/layout/tab-group/tab-group.styles.js +1 -1
- package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -0
- package/dist/components/layout/tab-group/tab-panel.class.js +1 -1
- package/dist/components/layout/tab-group/tab.class.d.ts +4 -0
- package/dist/components/layout/widget/widget.class.d.ts +1 -0
- package/dist/components/layout/widget/widget.styles.js +1 -1
- package/dist/components/lr-code-block-core.d.ts +1 -1
- package/dist/components/lr-code-block.d.ts +1 -1
- package/dist/components/lr-counter.d.ts +1 -0
- package/dist/components/lr-counter.js +1 -0
- package/dist/components/lr-lightbox-item.d.ts +1 -0
- package/dist/components/lr-lightbox-item.js +1 -0
- package/dist/components/lr-lightbox.d.ts +1 -1
- package/dist/components/lr-lightbox.js +1 -1
- package/dist/components/lr-number-ticker.d.ts +1 -0
- package/dist/components/lr-number-ticker.js +1 -0
- package/dist/components/lr-step.d.ts +1 -0
- package/dist/components/lr-step.js +1 -0
- package/dist/components/media/file-input/file-input.class.d.ts +8 -1
- package/dist/components/media/file-input/file-input.class.js +2 -2
- package/dist/components/media/file-input/file-input.styles.js +1 -1
- package/dist/components/media/index.d.ts +1 -1
- package/dist/components/media/index.js +1 -1
- package/dist/components/media/lightbox/lightbox-item.class.d.ts +67 -0
- package/dist/components/media/lightbox/lightbox-item.class.js +9 -0
- package/dist/components/media/lightbox/lightbox-item.styles.js +1 -0
- package/dist/components/media/lightbox/lightbox-source.js +1 -1
- package/dist/components/media/lightbox/lightbox-types.d.ts +4 -1
- package/dist/components/media/lightbox/lightbox.class.d.ts +123 -30
- package/dist/components/media/lightbox/lightbox.class.js +18 -12
- package/dist/components/media/lightbox/lightbox.styles.js +1 -1
- package/dist/components/media/map/map-anchor-avoid.js +1 -1
- package/dist/components/media/map/map-drawing-controller.js +1 -1
- package/dist/components/media/map/map.class.d.ts +137 -7
- package/dist/components/media/map/map.class.js +6 -6
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +9 -0
- package/dist/components/media/sequence-playback/sequence-playback.class.js +2 -2
- package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
- package/dist/components/media/video/video.class.d.ts +4 -0
- package/dist/components/media/video/video.class.js +2 -2
- package/dist/components/media/video/video.styles.js +1 -1
- package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -0
- package/dist/components/media/zoomable-frame/zoomable-frame.class.js +2 -2
- package/dist/components/overlays/badge/badge.class.d.ts +2 -0
- package/dist/components/overlays/badge/badge.styles.js +1 -1
- package/dist/components/overlays/badge/tag.class.d.ts +2 -0
- package/dist/components/overlays/badge/tag.class.js +1 -1
- package/dist/components/overlays/chip/chip-group.class.d.ts +31 -4
- package/dist/components/overlays/chip/chip-group.class.js +3 -3
- package/dist/components/overlays/context-menu/context-menu.class.d.ts +6 -1
- package/dist/components/overlays/context-menu/context-menu.class.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +54 -6
- package/dist/components/overlays/dialog/dialog.class.js +3 -3
- package/dist/components/overlays/dialog/dialog.styles.js +1 -1
- package/dist/components/overlays/dialog/prompt.d.ts +60 -0
- package/dist/components/overlays/dialog/prompt.js +1 -0
- package/dist/components/overlays/drawer/drawer.class.d.ts +22 -1
- package/dist/components/overlays/drawer/drawer.class.js +1 -1
- package/dist/components/overlays/empty/empty.class.d.ts +1 -0
- package/dist/components/overlays/empty/empty.class.js +1 -1
- package/dist/components/overlays/overlay/dropdown.class.d.ts +5 -1
- package/dist/components/overlays/overlay/dropdown.class.js +1 -1
- package/dist/components/overlays/overlay/overlay.styles.js +1 -1
- package/dist/components/overlays/overlay/popover.class.d.ts +30 -4
- package/dist/components/overlays/overlay/popover.class.js +2 -2
- package/dist/components/overlays/overlay/tooltip.class.d.ts +7 -0
- package/dist/components/overlays/overlay/tooltip.class.js +4 -4
- package/dist/components/overlays/toast/toast-item.class.d.ts +3 -2
- package/dist/components/overlays/toast/toast-item.class.js +1 -1
- package/dist/components/overlays/toast/toast-item.styles.js +1 -1
- package/dist/components/overlays/toast/toast.class.d.ts +6 -0
- package/dist/components/overlays/toast/toast.class.js +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +4 -1
- package/dist/components/utility/copy-button/copy-button.class.js +2 -2
- package/dist/components/utility/counter/counter-time.d.ts +15 -0
- package/dist/components/utility/counter/counter-time.js +1 -0
- package/dist/components/utility/counter/counter.class.d.ts +67 -0
- package/dist/components/utility/counter/counter.class.js +1 -0
- package/dist/components/utility/counter/counter.styles.js +1 -0
- package/dist/components/utility/divider/divider.class.d.ts +21 -3
- package/dist/components/utility/divider/divider.class.js +5 -1
- package/dist/components/utility/export-button/export-button.class.d.ts +6 -1
- package/dist/components/utility/export-button/export-button.styles.js +1 -1
- package/dist/components/utility/icon/icon-library-bootstrap.d.ts +50 -0
- package/dist/components/utility/icon/icon-library-bootstrap.js +1 -0
- package/dist/components/utility/icon/icon-library-font-awesome.d.ts +68 -0
- package/dist/components/utility/icon/icon-library-font-awesome.js +1 -0
- package/dist/components/utility/icon/icon-library.d.ts +14 -1
- package/dist/components/utility/icon/icon-library.js +1 -1
- package/dist/components/utility/icon/icon-sprite.js +1 -0
- package/dist/components/utility/icon/icon.class.d.ts +4 -2
- package/dist/components/utility/icon/icon.class.js +2 -2
- package/dist/components/utility/index.d.ts +1 -1
- package/dist/components/utility/index.js +1 -1
- package/dist/components/utility/known-date/known-date.class.d.ts +14 -0
- package/dist/components/utility/mention-popover/mention-popover.class.d.ts +1 -1
- package/dist/components/utility/number-ticker/number-ticker.class.d.ts +66 -0
- package/dist/components/utility/number-ticker/number-ticker.class.js +1 -0
- package/dist/components/utility/number-ticker/number-ticker.styles.js +1 -0
- package/dist/components/utility/tour/tour.class.d.ts +1 -1
- package/dist/components/viewers/include/include.class.d.ts +4 -1
- package/dist/components/viewers/include/include.class.js +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +10 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.styles.js +1 -1
- package/dist/custom-elements-jsx.d.ts +1 -1
- package/dist/event-classes.d.ts +2342 -0
- package/dist/event-classes.js +1 -0
- package/dist/events.d.ts +48 -22
- package/dist/framework-types.d.ts +2 -2
- package/dist/internal/accessibility-visibility.js +1 -1
- package/dist/internal/all-defined-arguments.d.ts +19 -0
- package/dist/internal/all-defined-arguments.js +1 -0
- package/dist/internal/autoloader-manifest.js +1 -1
- package/dist/internal/autoloader-tags.d.ts +1 -1
- package/dist/internal/autoloader-tags.js +1 -1
- package/dist/internal/checked-control-label.js +1 -1
- package/dist/internal/component-loaders.generated.js +1 -1
- package/dist/internal/declarative-overlay-action.js +1 -0
- package/dist/internal/dedent.js +7 -0
- package/dist/internal/default-strings/forms.generated.js +1 -1
- package/dist/internal/default-strings/layout.generated.js +1 -1
- package/dist/internal/dev-mode-attribute-warning.development.js +1 -1
- package/dist/internal/document-token-css.generated.js +10 -0
- package/dist/internal/document-tokens.generated.js +2 -11
- package/dist/internal/document-tokens.js +2 -2
- package/dist/internal/dom-guards.js +1 -1
- package/dist/internal/external-label-association.js +1 -0
- package/dist/internal/focus-navigation.js +1 -1
- package/dist/internal/form-control/chrome.styles.js +1 -1
- package/dist/internal/form-control-labels.js +1 -1
- package/dist/internal/form-control.styles.js +1 -1
- package/dist/internal/interactive-control.styles.js +2 -2
- package/dist/internal/labeled-group.js +1 -1
- package/dist/internal/localization-runtime.d.ts +5 -0
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +2 -2
- package/dist/internal/lyra-element.d.ts +11 -2
- package/dist/internal/lyra-element.js +2 -2
- package/dist/internal/lyra-event.d.ts +22 -0
- package/dist/internal/lyra-event.js +1 -0
- package/dist/internal/overlay-shared.d.ts +5 -2
- package/dist/internal/overlay-shared.js +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/root-registration-allowlist.js +1 -1
- package/dist/internal/scoped-definitions.generated.js +1 -1
- package/dist/internal/shiki/core.d.ts +4 -1
- package/dist/internal/shiki/tokenize.js +1 -1
- package/dist/internal/srcset.js +1 -0
- package/dist/internal/theme-observation.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/ssr/all.d.ts +1 -1
- package/dist/ssr/all.js +1 -1
- package/dist/ssr.d.ts +5 -5
- package/dist/ssr.js +1 -1
- package/dist/styles/native.css +1 -1
- package/dist/styles/palette.css +1 -0
- package/dist/styles/tokens-root.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/testing/happy-dom-shims.d.ts +11 -2
- package/dist/testing/happy-dom-shims.js +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/lyra-tag-event-map.d.ts +2 -2
- package/dist/testing/lyra-tag-event-map.js +1 -1
- package/dist/theme-core.css +1 -1
- package/dist/theme.css +1 -1
- package/dist/utilities/defined.d.ts +10 -1
- package/dist/utilities/defined.js +1 -1
- package/dist/utilities/form.d.ts +9 -0
- package/dist/utilities/form.js +1 -0
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/vue.d.ts +1 -1
- package/llms/components/lr-app-rail.md +4 -2
- package/llms/components/lr-badge.md +4 -4
- package/llms/components/lr-bar-chart.md +1 -1
- package/llms/components/lr-box-plot.md +6 -1
- package/llms/components/lr-bubble-chart.md +1 -1
- package/llms/components/lr-budget-meter.md +2 -2
- package/llms/components/lr-button-group.md +7 -3
- package/llms/components/lr-button.md +11 -1
- package/llms/components/lr-card.md +11 -1
- package/llms/components/lr-chart.md +21 -7
- package/llms/components/lr-checkbox-group.md +11 -1
- package/llms/components/lr-chip.md +11 -1
- package/llms/components/lr-citation-badge.md +1 -1
- package/llms/components/lr-code-block-core.md +39 -9
- package/llms/components/lr-code-block.md +59 -6
- package/llms/components/lr-code-editor.md +11 -1
- package/llms/components/lr-color-picker.md +19 -6
- package/llms/components/lr-combobox.md +81 -9
- package/llms/components/lr-context-menu.md +6 -4
- package/llms/components/lr-copy-button.md +6 -4
- package/llms/components/lr-counter.md +60 -0
- package/llms/components/lr-country-picker.md +4 -0
- package/llms/components/lr-currency-picker.md +4 -0
- package/llms/components/lr-date-input.md +1 -1
- package/llms/components/lr-date-picker.md +25 -1
- package/llms/components/lr-details.md +6 -2
- package/llms/components/lr-dialog.md +101 -9
- package/llms/components/lr-divider.md +14 -5
- package/llms/components/lr-doughnut-chart.md +1 -1
- package/llms/components/lr-drawer.md +32 -7
- package/llms/components/lr-dropdown-item.md +1 -1
- package/llms/components/lr-dropdown.md +8 -4
- package/llms/components/lr-emoji-picker.md +10 -1
- package/llms/components/lr-empty.md +3 -2
- package/llms/components/lr-entity-chip.md +1 -1
- package/llms/components/lr-export-button.md +6 -3
- package/llms/components/lr-file-input.md +13 -1
- package/llms/components/lr-filter-bar.md +6 -2
- package/llms/components/lr-graph-query-builder.md +10 -1
- package/llms/components/lr-heatmap.md +20 -3
- package/llms/components/lr-histogram.md +7 -2
- package/llms/components/lr-icon-button.md +3 -1
- package/llms/components/lr-icon.md +104 -0
- package/llms/components/lr-include.md +3 -0
- package/llms/components/lr-input.md +9 -1
- package/llms/components/lr-known-date.md +10 -1
- package/llms/components/lr-lightbox-item.md +14 -0
- package/llms/components/lr-lightbox.md +119 -14
- package/llms/components/lr-line-chart.md +7 -2
- package/llms/components/lr-lite-chart.md +3 -2
- package/llms/components/lr-locale-picker.md +17 -1
- package/llms/components/lr-map.md +122 -11
- package/llms/components/lr-markdown-core.md +15 -4
- package/llms/components/lr-markdown.md +13 -4
- package/llms/components/lr-mention-popover.md +1 -1
- package/llms/components/lr-menu-item.md +1 -1
- package/llms/components/lr-menu-label.md +5 -2
- package/llms/components/lr-menu.md +22 -7
- package/llms/components/lr-model-select.md +13 -3
- package/llms/components/lr-native-time-input.md +11 -1
- package/llms/components/lr-number-input.md +11 -1
- package/llms/components/lr-number-ticker.md +60 -0
- package/llms/components/lr-otp-input.md +11 -1
- package/llms/components/lr-page.md +7 -1
- package/llms/components/lr-pagination.md +18 -0
- package/llms/components/lr-pdf-viewer.md +6 -1
- package/llms/components/lr-phone-input.md +11 -1
- package/llms/components/lr-pie-chart.md +1 -1
- package/llms/components/lr-polar-area-chart.md +1 -1
- package/llms/components/lr-popover.md +26 -6
- package/llms/components/lr-radar-chart.md +1 -1
- package/llms/components/lr-radio-group.md +11 -1
- package/llms/components/lr-rubric-form.md +7 -1
- package/llms/components/lr-scatter-chart.md +1 -1
- package/llms/components/lr-segmented.md +20 -2
- package/llms/components/lr-select.md +11 -3
- package/llms/components/lr-selection-toolbar.md +1 -1
- package/llms/components/lr-sequence-playback.md +8 -2
- package/llms/components/lr-signature-pad.md +8 -1
- package/llms/components/lr-slider.md +17 -4
- package/llms/components/lr-stat.md +20 -5
- package/llms/components/lr-step.md +67 -0
- package/llms/components/lr-stepper.md +64 -8
- package/llms/components/lr-suggestion-chips.md +3 -2
- package/llms/components/lr-switch.md +4 -3
- package/llms/components/lr-tab-group.md +10 -3
- package/llms/components/lr-tab-panel.md +2 -2
- package/llms/components/lr-table.md +87 -8
- package/llms/components/lr-tag.md +1 -1
- package/llms/components/lr-textarea.md +17 -1
- package/llms/components/lr-thread-list.md +4 -2
- package/llms/components/lr-time-input.md +9 -2
- package/llms/components/lr-time-zone-picker.md +4 -0
- package/llms/components/lr-timeline-item.md +1 -1
- package/llms/components/lr-timeline.md +47 -3
- package/llms/components/lr-toast-item.md +1 -1
- package/llms/components/lr-toast.md +8 -3
- package/llms/components/lr-token-input.md +68 -11
- package/llms/components/lr-tool-call-chip.md +1 -1
- package/llms/components/lr-tooltip.md +8 -3
- package/llms/components/lr-tree-item.md +1 -1
- package/llms/components/lr-tree.md +2 -1
- package/llms/components/lr-unit-picker.md +4 -0
- package/llms/components/lr-usage-badge.md +1 -1
- package/llms/components/lr-video.md +5 -4
- package/llms/components/lr-voice-picker.md +10 -2
- package/llms/components/lr-widget.md +2 -2
- package/llms/components/lr-zoomable-frame.md +8 -0
- package/llms/index.md +205 -201
- package/llms/migration.md +103 -16
- package/llms/peers.md +3 -3
- package/llms/shared/events-and-types.md +36 -0
- package/llms/shared/forms-and-accessibility.md +4 -1
- package/llms/shared/frameworks-and-ssr.md +10 -1
- package/llms/shared/imports-and-registration.md +68 -2
- package/llms/shared/localization-and-rtl.md +5 -0
- package/llms/shared/native-styles-and-utilities.md +142 -7
- package/llms/shared/styles-and-tokens.md +60 -6
- package/llms/shared/testing-and-utilities.md +30 -0
- package/llms/shared.md +354 -17
- package/llms/tokens.md +6 -1
- package/llms.txt +3 -3
- package/locales.json +1 -1
- package/package.json +48 -10
- package/registrations.json +1 -1
- package/skills/compose-lyra-interfaces/SKILL.md +1 -1
- package/skills/lyra-ui/SKILL.md +1 -1
- package/skills/lyra-ui/commands/migrate.md +1 -1
|
@@ -39,16 +39,21 @@ the first connected Lyra element would otherwise adopt, available before any com
|
|
|
39
39
|
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
40
40
|
| Display and composition | `lr-block`, `lr-inline-block`, `lr-flex`, `lr-inline-flex`, `lr-grid`, `lr-flow-root`, `lr-stack`, `lr-cluster`, `lr-grid-auto` |
|
|
41
41
|
| Static 12-column grid | `lr-grid-12`, `lr-span-1` – `lr-span-12`, `lr-row-span-2` – `lr-row-span-4` |
|
|
42
|
-
| Flex direction and wrapping | `lr-row`, `lr-column`, `lr-wrap`, `lr-nowrap`, `lr-grow`, `lr-grow-0`, `lr-shrink`, `lr-shrink-0` |
|
|
43
|
-
| Item alignment | `lr-items-start`, `lr-items-center`, `lr-items-end`, `lr-items-stretch`, `lr-items-baseline`, `lr-self-start`, `lr-self-center`, `lr-self-end`, `lr-self-stretch` |
|
|
44
|
-
| Distribution | `lr-justify-start`, `lr-justify-center`, `lr-justify-end`, `lr-justify-between`, `lr-justify-around` |
|
|
45
|
-
| Gaps | `lr-gap-0`, `lr-gap-xs`, `lr-gap-s`, `lr-gap-m`, `lr-gap-l`, `lr-gap-2xl`
|
|
42
|
+
| Flex direction and wrapping | `lr-row`, `lr-column`, `lr-wrap`, `lr-wrap-reverse`, `lr-nowrap`, `lr-grow`, `lr-grow-0`, `lr-shrink`, `lr-shrink-0` |
|
|
43
|
+
| Item alignment | `lr-items-start`, `lr-items-center`, `lr-items-end`, `lr-items-stretch`, `lr-items-baseline`, `lr-self-baseline`, `lr-self-start`, `lr-self-center`, `lr-self-end`, `lr-self-stretch` |
|
|
44
|
+
| Distribution | `lr-justify-start`, `lr-justify-center`, `lr-justify-end`, `lr-justify-between`, `lr-justify-around`, `lr-justify-evenly` |
|
|
45
|
+
| Gaps | `lr-gap-0`, `lr-gap-2xs`, `lr-gap-xs`, `lr-gap-s`, `lr-gap-m`, `lr-gap-l`, `lr-gap-xl`, `lr-gap-2xl`, `lr-gap-3xl`, `lr-gap-4xl` |
|
|
46
|
+
| Compositions | `lr-flank`, `lr-flank-end`, `lr-split`, `lr-split-column`, `lr-frame`, `lr-frame-square`, `lr-frame-landscape`, `lr-frame-portrait`, `lr-span-grid`, `lr-container` |
|
|
47
|
+
| Plain-element helpers | `lr-link-plain`, `lr-list-plain`, `lr-placeholder`, `lr-scroll-lock`, `lr-cloak` |
|
|
48
|
+
| Radius and case | `lr-radius-none`, `lr-radius-xs`, `lr-radius-m`, `lr-radius-container`, `lr-radius-pill`, `lr-radius-circle`, `lr-uppercase`, `lr-lowercase`, `lr-capitalize`, `lr-normal-case` |
|
|
49
|
+
| Variant and size | `lr-neutral`, `lr-brand`, `lr-success`, `lr-warning`, `lr-danger`; `lr-size-2xs`, `lr-size-xs`, `lr-size-s`, `lr-size-m`, `lr-size-l`, `lr-size-xl` (`lr-size-full` stays the 100% box) |
|
|
46
50
|
| Logical sizing | `lr-inline-full`, `lr-block-full`, `lr-size-full`, `lr-min-inline-0`, `lr-min-block-0`, `lr-max-inline-full`, `lr-max-inline-prose`, `lr-center` |
|
|
47
51
|
| Overflow | `lr-overflow-auto`, `lr-overflow-hidden` |
|
|
48
|
-
| Text alignment and size | `lr-text-start`, `lr-text-center`, `lr-text-end`, `lr-text-xs`, `lr-text-sm`, `lr-text-base`, `lr-text-lg`, `lr-text-xl`, `lr-text-quiet` |
|
|
49
|
-
| Font | `lr-font-normal`, `lr-font-medium`, `lr-font-semibold`, `lr-font-bold`, `lr-font-mono` |
|
|
52
|
+
| Text alignment and size | `lr-text-start`, `lr-text-center`, `lr-text-end`, `lr-text-justify`, `lr-text-xs`, `lr-text-sm`, `lr-text-base`, `lr-text-lg`, `lr-text-xl`, `lr-text-2xl` – `lr-text-5xl`, `lr-text-quiet` |
|
|
53
|
+
| Font | `lr-font-normal`, `lr-font-medium`, `lr-font-light`, `lr-font-semibold`, `lr-font-bold`, `lr-font-mono`, `lr-tabular-nums` |
|
|
54
|
+
| Table rows | `lr-zebra-rows`, `lr-hover-rows` (on the `table`; tint `tbody` rows from `--lr-color-text` and `--lr-color-mix-hover`) |
|
|
50
55
|
| Text flow | `lr-text-break`, `lr-text-nowrap`, `lr-truncate`, `lr-text-balance`, `lr-text-pretty`, `lr-prose` |
|
|
51
|
-
| Typography | `lr-typography`, `lr-not-typography`, `lr-heading-1`, `lr-heading-2`, `lr-heading-3`, `lr-heading-4`, `lr-inline-code` |
|
|
56
|
+
| Typography | `lr-typography`, `lr-not-typography`, `lr-heading-1`, `lr-heading-2`, `lr-heading-3`, `lr-heading-4`, `lr-heading-5`, `lr-heading-6`, `lr-inline-code` |
|
|
52
57
|
| Visibility and focus | `lr-visually-hidden`, `lr-visually-hidden-focusable`, `lr-fouce-hidden`, `lr-hidden` |
|
|
53
58
|
| Page allocation | `lr-page-mobile-only`, `lr-page-desktop-only` |
|
|
54
59
|
|
|
@@ -69,6 +74,43 @@ properties, so these two widths are fixed. Source order is reading order at ever
|
|
|
69
74
|
</section>
|
|
70
75
|
```
|
|
71
76
|
|
|
77
|
+
### Compositions and small utilities
|
|
78
|
+
|
|
79
|
+
All spacing here reads `--lr-layout-gap` (default `--lr-space-m`).
|
|
80
|
+
|
|
81
|
+
- **`lr-flank` / `lr-flank-end`** — a flex row where the first (or, for `-end`, the last) child keeps
|
|
82
|
+
its own width (`--lr-flank-inline-size`, default `auto`) and the other fills the rest. The filling
|
|
83
|
+
child wraps onto its own row below `--lr-flank-content-min-inline-size` (default `50%`).
|
|
84
|
+
- **`lr-split` / `lr-split-column`** — items pushed to the two ends of a wrapping row, or of a
|
|
85
|
+
column. Logical, so the ends swap under `dir="rtl"`.
|
|
86
|
+
- **`lr-frame`, `lr-frame-square` (1/1), `lr-frame-landscape` (16/9), `lr-frame-portrait` (3/4)** —
|
|
87
|
+
a clipped aspect-ratio box; a direct `img`, `picture`, `video`, `canvas`, `svg` or `iframe` child
|
|
88
|
+
fills it with `object-fit: cover`. A bare `lr-frame` reads `--lr-frame-ratio` (default `1 / 1`).
|
|
89
|
+
- **`lr-span-grid`** — takes the whole row of its grid parent, including inside `lr-grid-12` at every
|
|
90
|
+
container width. **`lr-container`** makes an element an inline-size query container.
|
|
91
|
+
- **`lr-link-plain`** — inherited colour, no underline until hover. **`lr-list-plain`** — no
|
|
92
|
+
marker, no indent, no margin (an `ul`/`ol` that keeps `role="list"` stays announced as a list).
|
|
93
|
+
- **`lr-placeholder`** — a quiet neutral block (`--lr-placeholder-block-size`, default `1em`) that
|
|
94
|
+
pulses only when `prefers-reduced-motion: no-preference`.
|
|
95
|
+
- **`lr-radius-*`** read the radius tokens; `lr-radius-circle` is `50%`. **`lr-uppercase`,
|
|
96
|
+
`lr-lowercase`, `lr-capitalize`, `lr-normal-case`** set `text-transform`.
|
|
97
|
+
- **Variants** `lr-neutral|brand|success|warning|danger` (the `variant` vocabulary) colour the
|
|
98
|
+
element's text and native-control accent with that tone's loud fill and publish
|
|
99
|
+
`--lr-variant-fill-quiet`, `--lr-variant-fill-loud`, `--lr-variant-on-quiet` and
|
|
100
|
+
`--lr-variant-border` for your own rules. **Sizes** `lr-size-2xs … lr-size-xl` (the `size` ladder;
|
|
101
|
+
`small`/`medium`/`large` spellings are not classes) set the type size and scale the native control
|
|
102
|
+
block size and padding that `.lr-native` reads.
|
|
103
|
+
- **`lr-scroll-lock`** is pure CSS (`overflow: hidden`, `overscroll-behavior: contain`, plus a stable
|
|
104
|
+
scrollbar gutter on `html`). Put it on `html`, `body` or a scroll container. It is independent of
|
|
105
|
+
the lock a modal component takes: both can be active, and the component's lock sees the stable
|
|
106
|
+
gutter and adds no padding.
|
|
107
|
+
- **`lr-cloak`** on `html`/`body` (or any root) hides the root with `visibility: hidden` while any
|
|
108
|
+
custom element beneath it still matches `:not(:defined)`, then reveals it as soon as they are
|
|
109
|
+
all defined. It fails open: after `--lr-cloak-timeout` (default `3s`) the root becomes visible
|
|
110
|
+
regardless, so a script that never loads cannot leave a blank page. The fail-open is a
|
|
111
|
+
visibility switch, not motion, so it needs no reduced-motion branch. Only light-DOM descendants
|
|
112
|
+
are seen; for a single element use `lr-fouce-hidden`.
|
|
113
|
+
|
|
72
114
|
`lr-fouce-hidden` hides only an opted-in custom element while it matches `:not(:defined)`, then
|
|
73
115
|
reveals it automatically after registration. `lr-visually-hidden-focusable` becomes visible on
|
|
74
116
|
focus or when a descendant receives focus, making it suitable for skip links.
|
|
@@ -380,3 +422,96 @@ the surface layer and disables Glass in the same way as an unlayered rule. Keep
|
|
|
380
422
|
`background` rules off `.lr-surface-chrome` elements, or exclude them with
|
|
381
423
|
`:not(.lr-surface-chrome)`. See [Cascade layers](styles-and-tokens.md#cascade-layers) for the full
|
|
382
424
|
order.
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
### Native control extensions
|
|
428
|
+
|
|
429
|
+
Inside `.lr-native`, `native.css` also styles: **checkbox, radio and range** (`accent-color` from the
|
|
430
|
+
brand token, a `--lr-native-check-size` box, hover shifts to the loud border tone); **colour and file
|
|
431
|
+
inputs** (control border and radius, a styled `::file-selector-button`, pointer cursor with hover);
|
|
432
|
+
**`progress` and `meter`** (a pill track of `--lr-native-meter-block-size`, brand bar, semantic
|
|
433
|
+
optimum/sub-optimum/even-less-good meter colours); **`details`/`summary`** (subtle bounded block, open
|
|
434
|
+
rule under the summary); **`dialog`** (overlay surface, container radius, `--lr-color-overlay` scrim);
|
|
435
|
+
**`mark`** (quiet warning fill and its paired foreground); and **lists** (`--lr-native-list-indent`
|
|
436
|
+
logical start inset, quiet markers). Disabled controls use `not-allowed`, every control shows the
|
|
437
|
+
shared focus ring, and `forced-colors: active` maps accents and bars to system colours. Dark mode
|
|
438
|
+
follows the tokens.
|
|
439
|
+
|
|
440
|
+
### Migrating Web Awesome and Shoelace classes and stylesheets
|
|
441
|
+
|
|
442
|
+
`lyra-ui-migrate` (no `--origin`) rewrites the upstream utility and theme classes that have a Lyra
|
|
443
|
+
counterpart, and only whole class tokens in class positions: `class`/`className` values,
|
|
444
|
+
`:class`, `[class]` and `[ngClass]` bindings, `className={...}`, `classMap()`, `classList.add/remove/
|
|
445
|
+
toggle/contains/replace()`, `.className =` and `setAttribute('class', ...)`. Selectors, prose, other
|
|
446
|
+
attributes and `${}`/`{{}}` interpolations are never read. A name the tool does not list is left alone,
|
|
447
|
+
because it is as likely your own class as an upstream one.
|
|
448
|
+
|
|
449
|
+
| Upstream | Lyra |
|
|
450
|
+
| -------- | ---- |
|
|
451
|
+
| `wa-stack`, `wa-cluster`, `wa-flank`, `wa-split`, `wa-frame` (with `:end`, `:column`, `:square`, `:landscape`, `:portrait`) | `lr-stack`, `lr-cluster`, `lr-flank`/`lr-flank-end`, `lr-split`/`lr-split-column`, `lr-frame`/`lr-frame-*` |
|
|
452
|
+
| `wa-grid`, `wa-span-grid` | `lr-grid-auto`, `lr-span-grid` |
|
|
453
|
+
| `wa-gap-<step>` | `lr-gap-<step>`, mapped by resolved length: the two spacing scales are offset by one step, so `wa-gap-m` (1rem) is `lr-gap-l` |
|
|
454
|
+
| `wa-align-items-*`, `wa-align-self-*`, `wa-justify-content-*`, `wa-flex-wrap`/`wa-flex-nowrap` | `lr-items-*`, `lr-self-*`, `lr-justify-*`, `lr-wrap`/`lr-nowrap` |
|
|
455
|
+
| `wa-text-*`, `wa-font-weight-*`, `wa-color-text-quiet`, `wa-link-plain`, `wa-list-plain`, `wa-prose`, `wa-visually-hidden`, `wa-cloak`, `wa-placeholder`, `wa-scroll-lock` | the same helper under `lr-`; see the inventory above |
|
|
456
|
+
| `wa-brand`, `wa-neutral`, `wa-success`, `wa-warning`, `wa-danger`, `wa-size-*` | `lr-brand`, `lr-neutral`, `lr-success`, `lr-warning`, `lr-danger`, `lr-size-*` |
|
|
457
|
+
| `wa-dark`, `wa-light`, `sl-theme-dark`, `sl-theme-light` | `lr-dark`, `lr-light` |
|
|
458
|
+
|
|
459
|
+
`wa-font-size-*`, `wa-body-*` and `wa-border-radius-s`/`-m` rewrite to the nearest class
|
|
460
|
+
(`lr-text-*`, `lr-radius-*`) and report `UPSTREAM_CLASS_APPROXIMATE_REVIEW`: the type and radius scales
|
|
461
|
+
are not value-aligned. `wa-heading-*`, `wa-caption-*`, `wa-longform-*`, the hue-pinned variants
|
|
462
|
+
(`wa-brand-blue`), `wa-theme-*`, the `native.css` opt-ins (`wa-button`, `wa-zebra-rows`, ...), the
|
|
463
|
+
`wa-form-control-*` classes and the gaps Lyra has no step for are reported as `UPSTREAM_CLASS_REVIEW`
|
|
464
|
+
with the nearest alternative and are not rewritten.
|
|
465
|
+
|
|
466
|
+
Design-token references (`var(--wa-*)`, `var(--sl-*)`) follow a reviewed route table, matched by role
|
|
467
|
+
and resolved value rather than by name, and every target is a document-layer token. Semantic colours
|
|
468
|
+
(`--wa-color-brand-fill-loud` becomes `--lr-color-brand-fill-loud`; surface, text, border, overlay,
|
|
469
|
+
shadow and focus colours likewise), border widths, font families and weights, and spacing steps
|
|
470
|
+
with the same length (`--wa-space-m` and `--sl-spacing-medium`, both 1rem, become `--lr-space-l`) are
|
|
471
|
+
rewritten silently. Type sizes, radii, line heights, shadows, durations, easing and the Shoelace
|
|
472
|
+
`-600` palette steps rewrite to the nearest role and report `UPSTREAM_TOKEN_APPROXIMATE_REVIEW`.
|
|
473
|
+
A token with no equivalent (`--wa-space-2xl` at 2.5rem, numbered and hue palettes) stays as-is and is
|
|
474
|
+
reported as `UPSTREAM_TOKEN_REVIEW` with the nearest alternatives. A token the file declares itself
|
|
475
|
+
(`--wa-space-m: 2rem`) is treated as its own property and left alone.
|
|
476
|
+
|
|
477
|
+
Stylesheet and loader imports (`import '...'` and CSS `@import`) map to real package subpaths:
|
|
478
|
+
`dist/styles/webawesome.css` becomes `theme.css`, `native.css` and `utilities.css`;
|
|
479
|
+
`styles/native.css`, `styles/utilities.css`, `styles/themes/default.css` and Shoelace
|
|
480
|
+
`themes/light.css`/`dark.css` become the matching one. `native.css` styles only inside `.lr-native`, and
|
|
481
|
+
`dark.css` is mode switching with `lr-dark`, so both carry an `UPSTREAM_ASSET_REVIEW` note. The
|
|
482
|
+
self-starting loaders (`webawesome.loader.js`, `shoelace-autoloader.js`) become
|
|
483
|
+
`@aceshooting/lyra-ui/autoloader-cdn.js` and, like the all-components entries (`webawesome.js`,
|
|
484
|
+
`shoelace.js`), are rewritten only when the scanned files have no manual uses left. `setBasePath` and
|
|
485
|
+
`utilities/base-path`, `layers.css`, the `awesome` and `shoelace` themes and the colour palettes have no
|
|
486
|
+
Lyra counterpart and are reported as `UPSTREAM_ASSET_REVIEW`.
|
|
487
|
+
|
|
488
|
+
Translation imports (`dist/translations/<lang>.js`) become the matching
|
|
489
|
+
`@aceshooting/lyra-translations/<locale>.js` catalog with Lyra's casing (`de-ch` becomes `de-CH`)
|
|
490
|
+
and report `OPTIONAL_PEER_REQUIRED` once, because that package is an optional peer. The `en` import is
|
|
491
|
+
removed, because English is built in. A bare `pt` or `zh` loads `pt-BR` or `zh-CN`, the region CLDR
|
|
492
|
+
resolves it to, and reports `TRANSLATION_LOCALE_REVIEW`. A locale Lyra does not ship stays unchanged
|
|
493
|
+
and reports `UPSTREAM_ASSET_REVIEW`.
|
|
494
|
+
|
|
495
|
+
Named imports from `dist/utilities/*.js` are rewritten symbol by symbol when every name has a Lyra
|
|
496
|
+
export with the same call shape: `serialize` (`utilities/form.js`), `registerIconLibrary`,
|
|
497
|
+
`unregisterIconLibrary`, `setDefaultIconFamily`, `getDefaultIconFamily` and `getDefaultIconVariant`
|
|
498
|
+
(`components/utility/icon/icon-library.js`), `allDefined` (`utilities/defined.js`),
|
|
499
|
+
`setDefaultAnimation`, `setAnimation` and `getAnimation` (`utilities/animation-registry.js`, with a
|
|
500
|
+
`UTILITY_BEHAVIOR_REVIEW` note to check animation names), and `getAnimationNames` and
|
|
501
|
+
`getEasingNames` (`components/media/animation/animation.class.js`). A statement that also imports
|
|
502
|
+
an unlisted name, a type-only import or a re-export stays unchanged with
|
|
503
|
+
`IMPORT_BINDING_REVIEW_REQUIRED`.
|
|
504
|
+
|
|
505
|
+
### Hue palette
|
|
506
|
+
|
|
507
|
+
```css
|
|
508
|
+
@import "@aceshooting/lyra-ui/palette.css";
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
Declares static `--lr-color-<hue>-<step>` ramps on `:root` and every `[data-lr-theme-scope]`, for
|
|
512
|
+
hues `gray`, `red`, `orange`, `yellow`, `green`, `cyan`, `blue`, `purple` and `pink` and steps `05 10
|
|
513
|
+
20 30 40 50 60 70 80 90 95` (near-black to near-white). `gray`, `red`, `orange`, `green` and `blue`
|
|
514
|
+
are the neutral, danger, warning, success and brand tooling ramps; the others are the brand ramp
|
|
515
|
+
rotated in hue at the same lightness. The values do not change with light/dark mode: use them for
|
|
516
|
+
tags, charts, avatars and illustrations, and keep UI chrome on the semantic grid. To recolour the
|
|
517
|
+
semantic roles themselves, use `setLyraStyle({ accent: { success, warning, danger, neutral } })`.
|
|
@@ -64,8 +64,9 @@ Three layers, and **which one you set decides how far the override reaches**:
|
|
|
64
64
|
**Layer 2 (`--lr-*`) is declared once per document, not on each component**. The
|
|
65
65
|
_document token layer_ declares every shared output on `:root` and re-derives it only at
|
|
66
66
|
[theme scopes](#theme-scopes). `theme.css` carries it, so a page that imports `theme.css` has it from
|
|
67
|
-
first paint; on a page without `theme.css`, registering the first `lr-*` element
|
|
68
|
-
|
|
67
|
+
first paint; on a page without `theme.css` or `tokens-root.css`, registering the first `lr-*` element
|
|
68
|
+
loads the same text on demand and adopts it as a constructed stylesheet, and components hold their
|
|
69
|
+
first render until it arrives. Components inherit the result, and so do your own elements —
|
|
69
70
|
`body { color: var(--lr-color-text) }` resolves everywhere the layer applies.
|
|
70
71
|
[`tokens-root.css`](#reading-the-resolved-tokens-from-your-own-components--tokens-rootcss) is the
|
|
71
72
|
layer alone, for pages that do not use `theme.css`. Retheme through layer 1 (`--lr-theme-*`) **on a theme scope**: `:root`, a
|
|
@@ -273,8 +274,11 @@ component does: `var(--lr-color-border)` inside **your** component resolves wher
|
|
|
273
274
|
applies. `theme.css` carries the layer, so importing `theme.css` is enough, including for
|
|
274
275
|
server-rendered pages and for application elements that paint before any Lyra element exists.
|
|
275
276
|
`tokens-root.css` is the same layer alone, as a static stylesheet, for pages that do not use
|
|
276
|
-
`theme.css
|
|
277
|
+
`theme.css`. Link one of them on every page: the layer then costs components no JavaScript.
|
|
277
278
|
|
|
279
|
+
- **Every page, for size.** Component modules do not bundle the layer. Without a static copy, the
|
|
280
|
+
first registration imports it as a separate module (about 4 KB gzip) and adopts it; with
|
|
281
|
+
`theme.css` or `tokens-root.css` present, that module is never requested.
|
|
278
282
|
- **Server-rendered pages.** See
|
|
279
283
|
[SSR and declarative shadow DOM](./frameworks-and-ssr.md#ssr-and-declarative-shadow-dom) and
|
|
280
284
|
[Theme scopes](#theme-scopes) for application shadow roots.
|
|
@@ -320,10 +324,10 @@ needs to sit inside a Lyra UI without looking foreign, and the file's header lis
|
|
|
320
324
|
| Ambient colour | `--lr-color-surface`, `--lr-color-surface-raised`, `--lr-color-surface-overlay`, `--lr-color-overlay`, `--lr-color-text`, `--lr-color-text-quiet`, `--lr-color-border`, `--lr-color-border-strong`, `--lr-color-border-subtle` |
|
|
321
325
|
| The semantic grid | all 45 `--lr-color-{brand,success,warning,danger,neutral}-{fill,border,on}-{quiet,normal,loud}` slots |
|
|
322
326
|
| Flat colour aliases | `--lr-color-{brand,success,warning,danger,neutral}`, `--lr-color-{brand,success,warning,danger}-quiet`, `--lr-color-on-{brand,success,warning,danger,neutral}` |
|
|
323
|
-
| Spacing | `--lr-space-2xs`, `--lr-space-xs`, `--lr-space-s`, `--lr-space-m`, `--lr-space-l`, `--lr-space-2xl`
|
|
327
|
+
| Spacing | `--lr-space-2xs`, `--lr-space-xs`, `--lr-space-s`, `--lr-space-m`, `--lr-space-l`, `--lr-space-xl`, `--lr-space-2xl`, `--lr-space-3xl`, `--lr-space-4xl` (`xl`, `3xl`, `4xl` derive from the `l`/`2xl` theme inputs, so density and re-theming carry through) |
|
|
324
328
|
| Geometry | `--lr-radius-xs`, `--lr-radius`, `--lr-radius-pill`, `--lr-border-width-thin`, `--lr-border-width-medium`, `--lr-border-width-thick` |
|
|
325
329
|
| Elevation | `--lr-shadow-color`, `--lr-shadow-xs`, `--lr-shadow-s`, `--lr-shadow-m`, `--lr-shadow-l`, `--lr-shadow-xl`, `--lr-shadow` |
|
|
326
|
-
| Typography | `--lr-font`, `--lr-font-mono`, the
|
|
330
|
+
| Typography | `--lr-font`, `--lr-font-mono`, the twelve `--lr-font-size-*` steps (`--lr-font-size-4xl` and `-5xl` derive from the `3xl` theme input at 1.25x and 1.5x), the four `--lr-font-weight-*` steps |
|
|
327
331
|
| State and motion | `--lr-focus-ring`, `--lr-focus-ring-color`, `--lr-focus-ring-width`, `--lr-focus-ring-offset`, `--lr-opacity-disabled`, `--lr-opacity-muted`, `--lr-duration-fast`, `--lr-duration-base`, `--lr-easing-standard`, `--lr-easing-emphasized`, `--lr-transition-fast`, `--lr-transition-base`, `--lr-transition-interactive` |
|
|
328
332
|
|
|
329
333
|
The grid is stable as a whole because its [contrast contract](#semantic-colour-contrast-contract)
|
|
@@ -359,7 +363,9 @@ properties only — notably not `color-scheme` — so importing it paints nothin
|
|
|
359
363
|
A **theme scope** is an element that re-derives the whole token layer from the `--lr-theme-*` inputs
|
|
360
364
|
and the mode it sees. The list is closed: `:root`; the mode scopes `.lr-light`, `.lr-dark` and
|
|
361
365
|
`[data-lr-theme]` (any value); the style-axis boundaries `[data-lr-mode]`, `[data-lr-look]`,
|
|
362
|
-
`[data-lr-accent]`,
|
|
366
|
+
`[data-lr-accent]`, the per-role `[data-lr-accent-neutral]`, `[data-lr-accent-success]`,
|
|
367
|
+
`[data-lr-accent-warning]`, `[data-lr-accent-danger]`, `[data-lr-density]`, `[data-lr-contrast]`,
|
|
368
|
+
`[data-lr-motion]`; a look's scoped
|
|
363
369
|
`.light` / `.dark` aliases; the design-token fixture scopes `.lr-token-light`, `.lr-token-dark`,
|
|
364
370
|
`[data-lr-design-token-mode]`; and the mode-neutral marker **`data-lr-theme-scope`**.
|
|
365
371
|
|
|
@@ -664,6 +670,7 @@ Each sheet is the one that style needs under `theme-core.css`:
|
|
|
664
670
|
| `look: 'shadcn'`, `'material'`, `'data'`, `'terminal'`, `'high-contrast'` | `looks/<look>.css` |
|
|
665
671
|
| `surface: 'glass'`, or the `.lr-surface-chrome` class | `surfaces/glass.css` |
|
|
666
672
|
| a named `accent` such as `'emerald'` | `accents.css` |
|
|
673
|
+
| a per-role `data-lr-accent-<role>` remap | `accent-roles.css` |
|
|
667
674
|
| `density: 'compact'` or `'touch'` | `density.css` |
|
|
668
675
|
|
|
669
676
|
An application that keeps the whole built-in profile should stay on `theme.css`, which is smaller
|
|
@@ -685,6 +692,53 @@ axes on `<html>` and restore only the mode, as in
|
|
|
685
692
|
</html>
|
|
686
693
|
```
|
|
687
694
|
|
|
695
|
+
### Per-role accents — accent-roles.css
|
|
696
|
+
|
|
697
|
+
`data-lr-accent` names the brand palette. To recolor another semantic role declaratively, import
|
|
698
|
+
`accent-roles.css` and name a gemstone on the role's own attribute: `data-lr-accent-neutral`,
|
|
699
|
+
`data-lr-accent-success`, `data-lr-accent-warning` or `data-lr-accent-danger`. The values are the
|
|
700
|
+
nine gemstones that `data-lr-accent` accepts (`emerald`, `peridot`, `topaz`, `ruby`, `tourmaline`,
|
|
701
|
+
`amethyst`, `aquamarine`, `sapphire`, `hematite`), plus `none`.
|
|
702
|
+
|
|
703
|
+
```css
|
|
704
|
+
@import "@aceshooting/lyra-ui/theme.css";
|
|
705
|
+
@import "@aceshooting/lyra-ui/accent-roles.css";
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
```html
|
|
709
|
+
<html data-lr-accent-success="aquamarine" data-lr-accent-danger="tourmaline">
|
|
710
|
+
…
|
|
711
|
+
<section data-lr-accent-success="sapphire">…</section> <!-- this region only -->
|
|
712
|
+
<aside data-lr-accent-success="none">…</aside> <!-- the look's own success colours -->
|
|
713
|
+
</html>
|
|
714
|
+
```
|
|
715
|
+
|
|
716
|
+
- **Same ramp as brand.** A remapped role gets exactly the quiet, normal and loud fill, border and
|
|
717
|
+
`on` ramp that `data-lr-accent="<gemstone>"` gives brand, in both light and dark mode, qualified
|
|
718
|
+
by the same rules: every `on` colour meets 4.5:1 on its fill, the loud fill meets 4.5:1 as text on
|
|
719
|
+
the quiet fill and on every built-in reference surface (each look's page and raised surfaces),
|
|
720
|
+
and normal and loud borders meet 3:1 against those surfaces. Every component that reads `--lr-color-<role>-*` follows, including
|
|
721
|
+
`variant="success"` and friends.
|
|
722
|
+
- **Defaults are unchanged.** Without a role attribute, or without `accent-roles.css`, each role
|
|
723
|
+
keeps the look's colours. Brand and the focus ring belong to `data-lr-accent`; a role attribute
|
|
724
|
+
never moves them, and remapping one role leaves the others alone.
|
|
725
|
+
- **Scoping.** Each attribute is a theme scope, so it works on any element and nests: a closer
|
|
726
|
+
attribute wins, `none` restores the look's colours for that role below it, and an unknown value
|
|
727
|
+
changes nothing. A `data-lr-accent` element starts a fresh accent scope for every role, so set the
|
|
728
|
+
role attributes on that element (or inside it) as well when you nest a brand accent. Both
|
|
729
|
+
attributes compose on one element.
|
|
730
|
+
- **Mode, contrast and forced colours.** The role follows the mode of its nearest scope
|
|
731
|
+
(`data-lr-mode`, `.lr-dark`, System). `prefers-contrast: more` and `data-lr-contrast="more"` still
|
|
732
|
+
strengthen control borders and focus rings exactly as they do with a brand accent. Under `forced-colors: active` the role aliases resolve to system colours, so
|
|
733
|
+
a remap never overrides the user's palette.
|
|
734
|
+
- **Runtime precedence.** `setLyraStyle({ accent: { success: '#0d9488' } })` and
|
|
735
|
+
`applyLyraStyleScope()` write inline per-role ramps, which win over the attribute on the same
|
|
736
|
+
element; use them for arbitrary colours, and the attributes for the built-in palette with no
|
|
737
|
+
JavaScript and no first-paint flash.
|
|
738
|
+
- **Cost.** `theme.css` and `theme-core.css` carry only the four scope selectors;
|
|
739
|
+
`accent-roles.css` (under 3 KB gzipped) holds the palettes, so pages that never remap a role pay
|
|
740
|
+
nothing.
|
|
741
|
+
|
|
688
742
|
### Cascade layers
|
|
689
743
|
|
|
690
744
|
`theme.css` declares its layer order up front, with base inputs in `lr-theme` and built-in profile
|
|
@@ -47,6 +47,12 @@ An existing platform collection is never replaced, and plain Node remains unchan
|
|
|
47
47
|
`Element.part` (Happy DOM), rendering does not throw, and highlighted lines keep their
|
|
48
48
|
`line-highlight` part wherever CSS parts exist. `installHappyDomShims()` does not install one.
|
|
49
49
|
|
|
50
|
+
`installHappyDomShims()` also calls `installHappyDomResponseBytesShim()`, which adds
|
|
51
|
+
`Response.prototype.bytes()` (read through `arrayBuffer()`) where Happy DOM 21 lacks it. Shiki's
|
|
52
|
+
inlined Oniguruma engine, which `lr-code-block` loads on demand, calls `bytes()` as it imports, so
|
|
53
|
+
without it each highlighter load leaves an unhandled rejection. It is a no-op where `bytes()`
|
|
54
|
+
exists, takes an optional prototype, and returns a function that removes the method again.
|
|
55
|
+
|
|
50
56
|
When Happy DOM lacks the HTML `dir="ltr"`/`dir="rtl"` presentational hints,
|
|
51
57
|
`installHappyDomShims()` adds zero-specificity direction rules to the document head. This restores
|
|
52
58
|
computed direction and inherited component direction while preserving explicit author CSS.
|
|
@@ -269,6 +275,15 @@ files matter when scaffolding a project's editor configuration. Build tools can
|
|
|
269
275
|
through the explicit `@aceshooting/lyra-ide/custom-elements.json` package export; native Node ESM
|
|
270
276
|
uses `with { type: 'json' }` on that import.
|
|
271
277
|
|
|
278
|
+
**Slim manifest in `@aceshooting/lyra-ui`.** The main package's `customElements` field points at
|
|
279
|
+
`custom-elements.slim.json` (export `@aceshooting/lyra-ui/custom-elements.slim.json`), so Storybook,
|
|
280
|
+
wc-toolkit and analyzers discover every tag without installing `@aceshooting/lyra-ide`. Per tag it
|
|
281
|
+
lists attributes (name, `fieldName`, type, default), public fields and methods, events, slots, CSS
|
|
282
|
+
parts, CSS properties and CSS states, already flattened across superclasses, with module paths at the
|
|
283
|
+
shipped `dist/` files. It carries no descriptions, status, `since` or deprecation records and no
|
|
284
|
+
companion-package tags; use the full `@aceshooting/lyra-ide/custom-elements.json` for those. The
|
|
285
|
+
inheritance note below applies to the full manifest only.
|
|
286
|
+
|
|
272
287
|
**Inherited members in `custom-elements.json`.** A subclass declaration's `cssParts` array is
|
|
273
288
|
always the complete flattened set, including everything inherited from a superclass — `::part()`
|
|
274
289
|
has no type-level inheritance chain a consumer could otherwise walk. `attributes`, `members`,
|
|
@@ -565,6 +580,18 @@ boolean; set defaultChecked(next: boolean) }`.
|
|
|
565
580
|
`RecencyBucket<T> { label; items }`.
|
|
566
581
|
The callable signature is `groupByRecency<T>(items: T[], options?:
|
|
567
582
|
GroupByRecencyOptions<T>): RecencyBucket<T>[]`.
|
|
583
|
+
- **`allDefined({ match?, additionalElements?, root?, timeout? })`** — options form of the helper
|
|
584
|
+
below. Without `match` it waits like the root form; with `match` it waits for every undefined
|
|
585
|
+
element under `root` (default `document`) whose lowercase tag the function accepts.
|
|
586
|
+
`additionalElements` (a tag or tags) names elements that may not be on the page yet. After
|
|
587
|
+
`timeout` ms (default `2000`, `Infinity` disables it) it logs a console warning listing the tags
|
|
588
|
+
still undefined and resolves anyway. A negative or `NaN` timeout throws `RangeError`. The
|
|
589
|
+
`(root, options)` form never times out.
|
|
590
|
+
- **`form` → `serialize(form): Record<string, FormDataEntryValue | FormDataEntryValue[]>`** — a
|
|
591
|
+
form's successful controls as a plain object; a name that occurs more than once becomes an array
|
|
592
|
+
in document order (`serializeFormData(formData: FormData): Record<string, FormDataEntryValue |
|
|
593
|
+
FormDataEntryValue[]>` is the same fold over any `FormData`). The result
|
|
594
|
+
has a `null` prototype, so a field named `__proto__` is just a key.
|
|
568
595
|
- **`defined` → `allDefined(root?, options?): Promise<void>`** — iteratively waits for every
|
|
569
596
|
currently rendered, inventory-known Lyra tag below a `Document`, `DocumentFragment`/open
|
|
570
597
|
`ShadowRoot`, or `Element` to be defined in its owning/scoped registry. It also waits for each
|
|
@@ -581,6 +608,9 @@ GroupByRecencyOptions<T>): RecencyBucket<T>[]`.
|
|
|
581
608
|
The exact options record is `AllDefinedOptions { readonly maxPasses?: number; readonly
|
|
582
609
|
maxElements?: number; readonly maxRoots?: number; readonly maxDepth?: number; readonly maxWork?:
|
|
583
610
|
number }`.
|
|
611
|
+
The options form takes `AllDefinedWaitOptions { readonly match?: (tagName: string) => boolean;
|
|
612
|
+
readonly additionalElements?: string | readonly string[]; readonly root?: LyraDefinitionRoot;
|
|
613
|
+
readonly timeout?: number }`.
|
|
584
614
|
- **`css-length` → `resolveCssLength(value, options?)`** — resolves finite numbers and CSS
|
|
585
615
|
`px`/`rem`/`em`/`%`/`vw`/`vh` lengths to pixels without allocating DOM. Supply `host` for live
|
|
586
616
|
font and owner-realm context, `percentBase` for percentages, and an optional `viewportBasis` for
|