@aceshooting/lyra-ui 9.1.1 → 10.0.1
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 +597 -0
- package/custom-elements.json +1 -1
- package/dist/cli/migrate-wa.mjs +52 -0
- package/dist/cli/migration-contract.json +1 -1
- package/dist/components/agent-tools/activity-feed/activity-feed.class.js +1 -1
- package/dist/components/agent-tools/activity-feed/activity-feed.styles.js +0 -16
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.js +1 -1
- package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.styles.js +7 -5
- package/dist/components/agent-tools/agent-run/agent-run.class.js +2 -2
- package/dist/components/agent-tools/agent-run/agent-run.styles.js +0 -13
- package/dist/components/agent-tools/agent-trace/agent-trace.styles.js +7 -4
- package/dist/components/agent-tools/approval-queue/approval-queue.styles.js +7 -5
- package/dist/components/agent-tools/artifact-panel/artifact-panel.styles.js +0 -3
- package/dist/components/agent-tools/browser-frame/browser-frame.styles.js +3 -5
- package/dist/components/agent-tools/commit-card/commit-card.styles.js +0 -10
- package/dist/components/agent-tools/compare-panel/compare-panel.styles.js +11 -6
- package/dist/components/agent-tools/confirm-bar/confirm-bar.styles.js +0 -46
- package/dist/components/agent-tools/eval-dataset/eval-dataset.styles.js +0 -7
- package/dist/components/agent-tools/evaluation-run/evaluation-run.class.js +2 -2
- package/dist/components/agent-tools/prompt-studio/prompt-studio.styles.js +0 -15
- package/dist/components/agent-tools/result-card/result-card.styles.js +0 -7
- package/dist/components/agent-tools/result-card/result-field.styles.js +0 -5
- package/dist/components/agent-tools/schema-viewer/schema-viewer.styles.js +0 -3
- package/dist/components/agent-tools/span-waterfall/span-waterfall.styles.js +0 -15
- package/dist/components/agent-tools/stack-trace/stack-trace.styles.js +0 -20
- package/dist/components/agent-tools/subagent-panel/subagent-panel.class.js +2 -2
- package/dist/components/agent-tools/subagent-panel/subagent-panel.styles.js +0 -3
- package/dist/components/agent-tools/task-list/task-list.styles.js +0 -15
- package/dist/components/agent-tools/terminal/terminal.class.d.ts +11 -6
- package/dist/components/agent-tools/terminal/terminal.class.js +4 -4
- package/dist/components/agent-tools/terminal/terminal.styles.js +0 -46
- package/dist/components/agent-tools/test-results/test-results.class.js +2 -2
- package/dist/components/agent-tools/test-results/test-results.styles.js +0 -5
- package/dist/components/agent-tools/thinking-panel/thinking-panel.styles.js +0 -41
- package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.styles.js +0 -41
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.styles.js +0 -30
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +6 -6
- package/dist/components/agent-tools/tool-param-form/tool-param-form.styles.js +0 -5
- package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.styles.js +0 -20
- package/dist/components/agent-tools/tool-result-view/tool-result-view.styles.js +0 -4
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.styles.js +0 -21
- package/dist/components/agent-tools/trace-tree/trace-tree.styles.js +7 -31
- package/dist/components/charts/chart/box-plot.styles.js +0 -20
- package/dist/components/charts/chart/chart-colors.d.ts +1 -1
- package/dist/components/charts/chart/chart-colors.js +1 -1
- package/dist/components/charts/chart/chart-core-loader.d.ts +1 -0
- package/dist/components/charts/chart/chart-core-loader.js +1 -1
- package/dist/components/charts/chart/chart-feature-loader.d.ts +35 -0
- package/dist/components/charts/chart/chart-feature-loader.js +1 -1
- package/dist/components/charts/chart/chart.class.d.ts +93 -0
- package/dist/components/charts/chart/chart.class.js +3 -3
- package/dist/components/charts/chart/chart.styles.js +0 -27
- package/dist/components/charts/chart/lite-chart.class.d.ts +20 -1
- package/dist/components/charts/chart/lite-chart.class.js +4 -4
- package/dist/components/charts/chart/lite-chart.styles.js +0 -27
- package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +20 -0
- package/dist/components/conversation/agent-workspace/agent-workspace.class.js +3 -1
- package/dist/components/conversation/agent-workspace/agent-workspace.styles.js +3 -0
- package/dist/components/conversation/audio-visualizer/audio-visualizer.styles.js +0 -7
- package/dist/components/conversation/branch-picker/branch-picker.styles.js +0 -3
- package/dist/components/conversation/chat-composer/chat-composer.styles.js +0 -51
- package/dist/components/conversation/chat-message/chat-message.styles.js +7 -35
- package/dist/components/conversation/chat-viewport/chat-viewport.class.js +1 -1
- package/dist/components/conversation/chat-viewport/chat-viewport.styles.js +0 -33
- package/dist/components/conversation/checkpoint/checkpoint.class.js +1 -1
- package/dist/components/conversation/checkpoint/checkpoint.styles.js +0 -3
- package/dist/components/conversation/code-block/code-block-shared.d.ts +5 -2
- package/dist/components/conversation/code-block/code-block.class.js +1 -1
- package/dist/components/conversation/code-block/code-block.styles.js +4 -95
- package/dist/components/conversation/code-block/code-loader.d.ts +11 -0
- package/dist/components/conversation/code-block/code-loader.js +1 -1
- package/dist/components/conversation/code-block/shiki-types.d.ts +12 -0
- package/dist/components/conversation/code-block/shiki-types.js +1 -1
- package/dist/components/conversation/conversation-item/conversation-item.styles.js +8 -54
- package/dist/components/conversation/generation-metrics/generation-metrics.class.js +2 -2
- package/dist/components/conversation/generation-metrics/generation-metrics.styles.js +0 -17
- package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
- package/dist/components/conversation/markdown/markdown.styles.js +0 -41
- package/dist/components/conversation/message-actions/message-actions.styles.js +0 -3
- package/dist/components/conversation/message-feedback/message-feedback.styles.js +0 -35
- package/dist/components/conversation/message-parts/message-parts.class.d.ts +1 -1
- package/dist/components/conversation/message-parts/message-parts.styles.js +0 -5
- package/dist/components/conversation/model-select/model-select.class.js +3 -3
- package/dist/components/conversation/model-select/model-select.styles.js +12 -47
- package/dist/components/conversation/model-settings-panel/model-settings-panel.styles.js +0 -6
- package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +3 -0
- package/dist/components/conversation/prompt-input/prompt-input.styles.js +0 -10
- package/dist/components/conversation/push-to-talk/push-to-talk.styles.js +0 -8
- package/dist/components/conversation/selection-toolbar/selection-toolbar.styles.js +1 -11
- package/dist/components/conversation/stream-status/stream-status.styles.js +0 -16
- package/dist/components/conversation/streaming-text/streaming-text.styles.js +0 -15
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +0 -5
- package/dist/components/conversation/thread-list/thread-list.styles.js +0 -23
- package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +16 -4
- package/dist/components/conversation/transcript-feed/transcript-feed.class.js +1 -1
- package/dist/components/conversation/transcript-feed/transcript-feed.styles.js +0 -1
- package/dist/components/conversation/typing-indicator/typing-indicator.styles.js +0 -23
- package/dist/components/conversation/usage-badge/usage-badge.styles.js +0 -3
- package/dist/components/conversation/voice-picker/voice-picker.class.js +3 -3
- package/dist/components/conversation/voice-picker/voice-picker.styles.js +9 -29
- package/dist/components/conversation/widget-renderer/resolve.d.ts +2 -0
- package/dist/components/conversation/widget-renderer/resolve.js +1 -1
- package/dist/components/data/calendar/calendar.class.d.ts +15 -2
- package/dist/components/data/calendar/calendar.class.js +2 -2
- package/dist/components/data/calendar/calendar.styles.js +2 -28
- package/dist/components/data/condition-builder/condition-builder.class.d.ts +10 -6
- package/dist/components/data/condition-builder/condition-builder.class.js +2 -2
- package/dist/components/data/condition-builder/condition-builder.styles.js +0 -6
- package/dist/components/data/context-meter/context-meter.styles.js +0 -24
- package/dist/components/data/data-grid/data-grid.class.js +3 -3
- package/dist/components/data/data-grid/data-grid.styles.js +0 -22
- package/dist/components/data/document-library/document-library.class.js +2 -2
- package/dist/components/data/document-library/document-library.styles.js +0 -4
- package/dist/components/data/env-list/env-list.class.js +1 -1
- package/dist/components/data/env-list/env-list.styles.js +7 -4
- package/dist/components/data/file-tree/file-tree.class.d.ts +12 -0
- package/dist/components/data/flow-canvas/flow-canvas.styles.js +12 -19
- package/dist/components/data/flow-controls/flow-controls.class.js +2 -2
- package/dist/components/data/flow-controls/flow-controls.styles.js +3 -36
- package/dist/components/data/flow-minimap/flow-minimap.class.js +1 -1
- package/dist/components/data/flow-minimap/flow-minimap.styles.js +0 -9
- package/dist/components/data/flow-node/flow-node.styles.js +0 -23
- package/dist/components/data/flow-run-status/flow-run-status.class.js +1 -1
- package/dist/components/data/flow-run-status/flow-run-status.styles.js +0 -7
- package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +0 -7
- package/dist/components/data/graph-query-builder/graph-query-builder.class.js +1 -1
- package/dist/components/data/graph-query-builder/graph-query-builder.styles.js +0 -10
- package/dist/components/data/heatmap/heatmap-scale.d.ts +20 -0
- package/dist/components/data/heatmap/heatmap-scale.js +1 -1
- package/dist/components/data/heatmap/heatmap.class.d.ts +84 -1
- package/dist/components/data/heatmap/heatmap.class.js +2 -2
- package/dist/components/data/heatmap/heatmap.styles.js +0 -54
- package/dist/components/data/pagination/pagination.styles.js +23 -46
- package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +34 -1
- package/dist/components/data/sequence-strip/sequence-strip.class.js +5 -2
- package/dist/components/data/sequence-strip/sequence-strip.styles.js +14 -20
- package/dist/components/data/sparkline/sparkline.class.js +1 -1
- package/dist/components/data/stat/stat.styles.js +0 -67
- package/dist/components/data/table/table.class.d.ts +42 -3
- package/dist/components/data/table/table.class.js +4 -4
- package/dist/components/data/table/table.styles.js +20 -91
- package/dist/components/data/timeline/timeline-item.styles.js +0 -30
- package/dist/components/data/timeline/timeline.class.d.ts +89 -1
- package/dist/components/data/timeline/timeline.class.js +2 -2
- package/dist/components/data/timeline/timeline.styles.js +111 -31
- package/dist/components/data/tree/tree-item.styles.js +1 -28
- package/dist/components/data/tree/tree.class.js +2 -2
- package/dist/components/data/tree/tree.styles.js +0 -6
- package/dist/components/data/word-cloud/word-cloud.styles.js +0 -5
- package/dist/components/forms/button/button.class.js +1 -1
- package/dist/components/forms/button/button.styles.js +0 -105
- package/dist/components/forms/checkbox/checkbox.class.d.ts +3 -0
- package/dist/components/forms/checkbox/checkbox.class.js +1 -1
- package/dist/components/forms/checkbox/checkbox.styles.js +0 -39
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +21 -2
- package/dist/components/forms/checkbox-group/checkbox-group.class.js +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.styles.js +0 -18
- package/dist/components/forms/code-editor/code-editor.styles.js +0 -30
- package/dist/components/forms/color-picker/color-picker.class.js +2 -2
- package/dist/components/forms/color-picker/color-picker.styles.js +0 -69
- package/dist/components/forms/combobox/combobox.class.js +2 -2
- package/dist/components/forms/combobox/combobox.styles.js +22 -111
- package/dist/components/forms/combobox/option.styles.js +7 -1
- package/dist/components/forms/date-picker/date-input.class.js +1 -1
- package/dist/components/forms/date-picker/date-input.styles.js +12 -67
- package/dist/components/forms/date-picker/date-picker.class.d.ts +1 -0
- package/dist/components/forms/date-picker/date-picker.class.js +22 -20
- package/dist/components/forms/date-picker/date-picker.styles.js +36 -29
- package/dist/components/forms/emoji-picker/emoji-data-loader.d.ts +6 -3
- package/dist/components/forms/emoji-picker/emoji-data-loader.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +8 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.styles.js +3 -41
- package/dist/components/forms/icon-button/icon-button.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.styles.js +0 -16
- package/dist/components/forms/input/input.styles.js +0 -54
- package/dist/components/forms/input/number-input.styles.d.ts +4 -5
- package/dist/components/forms/input/number-input.styles.js +0 -11
- package/dist/components/forms/input/time-input-shared.d.ts +11 -0
- package/dist/components/forms/input/time-input-shared.js +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +11 -2
- package/dist/components/forms/input/time-input.class.js +1 -1
- package/dist/components/forms/input/time-input.styles.js +0 -6
- package/dist/components/forms/locale-picker/locale-picker.class.js +2 -2
- package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -26
- package/dist/components/forms/otp-input/otp-input.class.js +3 -3
- package/dist/components/forms/otp-input/otp-input.styles.js +0 -16
- package/dist/components/forms/phone-input/phone-input.class.d.ts +9 -1
- package/dist/components/forms/phone-input/phone-input.class.js +2 -2
- package/dist/components/forms/phone-input/phone-input.styles.js +0 -37
- package/dist/components/forms/radio/radio-button.styles.js +1 -30
- package/dist/components/forms/radio/radio-group.styles.js +0 -4
- package/dist/components/forms/radio/radio.styles.js +0 -44
- package/dist/components/forms/rubric-form/rubric-form.styles.js +0 -5
- package/dist/components/forms/select/select.class.js +1 -1
- package/dist/components/forms/select/select.styles.js +14 -114
- package/dist/components/forms/slider/slider.styles.js +0 -55
- package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +0 -11
- package/dist/components/forms/swatch-picker/swatch-picker.class.js +2 -2
- package/dist/components/forms/swatch-picker/swatch-picker.styles.js +0 -77
- package/dist/components/forms/switch/switch.class.d.ts +3 -0
- package/dist/components/forms/switch/switch.class.js +1 -1
- package/dist/components/forms/switch/switch.styles.js +0 -37
- package/dist/components/forms/textarea/textarea.styles.js +0 -28
- package/dist/components/forms/time-range/time-range.styles.js +12 -84
- package/dist/components/forms/token-input/token-input.class.d.ts +23 -9
- package/dist/components/forms/token-input/token-input.class.js +1 -1
- package/dist/components/forms/token-input/token-input.styles.js +1 -54
- package/dist/components/layout/app-rail/app-rail-item.class.js +2 -2
- package/dist/components/layout/app-rail/app-rail-item.styles.js +0 -13
- package/dist/components/layout/app-rail/app-rail.class.d.ts +5 -0
- package/dist/components/layout/app-rail/app-rail.class.js +1 -1
- package/dist/components/layout/app-rail/app-rail.styles.js +0 -46
- package/dist/components/layout/button-group/button-group.styles.js +0 -6
- package/dist/components/layout/card/card.class.d.ts +12 -0
- package/dist/components/layout/card/card.styles.js +3 -11
- package/dist/components/layout/carousel/carousel.styles.js +0 -1
- package/dist/components/layout/command-palette/command-palette.class.d.ts +8 -0
- package/dist/components/layout/command-palette/command-palette.class.js +3 -1
- package/dist/components/layout/command-palette/command-palette.styles.js +1 -13
- package/dist/components/layout/control-group/control-group.styles.js +0 -7
- package/dist/components/layout/dashboard-grid/dashboard-grid.styles.js +6 -25
- package/dist/components/layout/details/accordion.class.d.ts +13 -0
- package/dist/components/layout/details/accordion.class.js +1 -1
- package/dist/components/layout/details/details.class.js +1 -1
- package/dist/components/layout/details/details.styles.js +0 -12
- package/dist/components/layout/dock-panel/dock-panel.styles.js +0 -45
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.d.ts +2 -0
- package/dist/components/layout/drilldown-panel/drilldown-panel.class.js +2 -2
- package/dist/components/layout/drilldown-panel/drilldown-panel.styles.js +0 -4
- package/dist/components/layout/filter-bar/filter-bar.class.js +1 -1
- package/dist/components/layout/filter-bar/filter-bar.styles.js +0 -9
- package/dist/components/layout/menu/menu-item.class.d.ts +5 -0
- package/dist/components/layout/menu/menu-item.class.js +1 -1
- package/dist/components/layout/menu/menu-item.styles.js +0 -49
- package/dist/components/layout/menu/menu-label.styles.js +0 -2
- package/dist/components/layout/menu/menu.styles.js +0 -18
- package/dist/components/layout/multi-split/multi-split.styles.js +0 -63
- package/dist/components/layout/page/page.class.d.ts +4 -0
- package/dist/components/layout/page/page.class.js +1 -1
- package/dist/components/layout/reorder-list/reorder-item.styles.js +0 -4
- package/dist/components/layout/responsive-panel/responsive-panel.styles.js +0 -27
- package/dist/components/layout/scroller/scroller.styles.js +0 -20
- package/dist/components/layout/segmented/segmented.class.d.ts +7 -1
- package/dist/components/layout/segmented/segmented.class.js +1 -1
- package/dist/components/layout/segmented/segmented.styles.js +69 -37
- package/dist/components/layout/split-panel/split-panel.styles.js +1 -7
- package/dist/components/layout/stepper/stepper.class.d.ts +8 -1
- package/dist/components/layout/stepper/stepper.class.js +1 -1
- package/dist/components/layout/stepper/stepper.styles.js +140 -41
- package/dist/components/layout/tab-group/tab-group.class.d.ts +4 -1
- package/dist/components/layout/tab-group/tab-group.styles.js +9 -75
- package/dist/components/layout/tab-group/tab.styles.js +0 -2
- package/dist/components/layout/virtual-list/virtual-list.class.d.ts +4 -4
- package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
- package/dist/components/layout/virtual-list/virtual-list.styles.js +0 -68
- package/dist/components/layout/widget/widget.class.d.ts +5 -1
- package/dist/components/layout/widget/widget.class.js +1 -1
- package/dist/components/layout/widget/widget.styles.js +97 -40
- package/dist/components/media/animated-image/animated-image.class.d.ts +3 -0
- package/dist/components/media/animated-image/animated-image.class.js +1 -1
- package/dist/components/media/animated-image/animated-image.styles.js +0 -28
- package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.class.js +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.styles.js +0 -31
- package/dist/components/media/attachment-trigger/attachment-trigger.class.js +3 -3
- package/dist/components/media/attachment-trigger/attachment-trigger.styles.js +0 -40
- package/dist/components/media/av-player/av-player.class.d.ts +5 -6
- package/dist/components/media/av-player/av-player.class.js +1 -1
- package/dist/components/media/av-player/av-player.styles.js +0 -45
- package/dist/components/media/avatar/avatar.styles.js +3 -16
- package/dist/components/media/file-icon/file-icon.class.d.ts +1 -2
- package/dist/components/media/file-icon/file-icon.class.js +1 -1
- package/dist/components/media/file-input/file-input.class.d.ts +12 -0
- package/dist/components/media/file-input/file-input.styles.js +3 -24
- package/dist/components/media/flag/flag.class.d.ts +20 -0
- package/dist/components/media/flag/flag.class.js +4 -2
- package/dist/components/media/flag/flag.styles.js +7 -1
- package/dist/components/media/flag/language-map.d.ts +10 -0
- package/dist/components/media/flag/language-map.js +1 -1
- package/dist/components/media/image-comparer/image-comparer.styles.js +4 -33
- package/dist/components/media/image-viewer/image-viewer.class.js +0 -2
- package/dist/components/media/image-viewer/image-viewer.styles.js +7 -27
- package/dist/components/media/lightbox/lightbox.class.js +0 -2
- package/dist/components/media/lightbox/lightbox.styles.js +0 -21
- package/dist/components/media/map/map-loader.d.ts +19 -1
- package/dist/components/media/map/map-loader.js +1 -1
- package/dist/components/media/map/map.class.d.ts +141 -1
- package/dist/components/media/map/map.class.js +15 -3
- package/dist/components/media/map/map.styles.js +20 -17
- package/dist/components/media/media-card/media-card.class.d.ts +14 -3
- package/dist/components/media/media-card/media-card.class.js +1 -1
- package/dist/components/media/media-card/media-card.styles.js +2 -28
- package/dist/components/media/pan-zoom/pan-zoom.styles.js +0 -3
- package/dist/components/media/qr-code/qr-code.class.d.ts +3 -2
- package/dist/components/media/qr-code/qr-code.class.js +2 -2
- package/dist/components/media/qr-code/qr-code.styles.js +0 -3
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +2 -0
- package/dist/components/media/sequence-playback/sequence-playback.class.js +2 -1
- package/dist/components/media/sequence-playback/sequence-playback.styles.js +0 -19
- package/dist/components/media/video/video.class.d.ts +23 -2
- package/dist/components/media/video/video.class.js +3 -3
- package/dist/components/media/video/video.styles.js +4 -2
- package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +3 -2
- package/dist/components/media/zoomable-frame/zoomable-frame.class.js +2 -2
- package/dist/components/media/zoomable-frame/zoomable-frame.styles.js +0 -5
- package/dist/components/overlays/alert/alert.styles.js +4 -2
- package/dist/components/overlays/badge/badge.styles.js +4 -48
- package/dist/components/overlays/badge/tag.styles.js +0 -14
- package/dist/components/overlays/callout/callout.styles.js +0 -11
- package/dist/components/overlays/chip/chip-group.styles.js +0 -18
- package/dist/components/overlays/chip/chip.styles.js +6 -69
- package/dist/components/overlays/dialog/confirm.d.ts +1 -4
- package/dist/components/overlays/dialog/confirm.js +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +12 -9
- package/dist/components/overlays/dialog/dialog.class.js +1 -1
- package/dist/components/overlays/dialog/dialog.styles.js +0 -43
- package/dist/components/overlays/drawer/drawer.class.d.ts +2 -2
- package/dist/components/overlays/drawer/drawer.styles.js +0 -9
- package/dist/components/overlays/empty/empty.styles.js +0 -12
- package/dist/components/overlays/kbd/kbd.styles.js +0 -8
- package/dist/components/overlays/overlay/dropdown.class.d.ts +1 -6
- package/dist/components/overlays/overlay/dropdown.class.js +2 -2
- package/dist/components/overlays/overlay/overlay.styles.js +0 -28
- package/dist/components/overlays/overlay/popover.class.d.ts +9 -1
- package/dist/components/overlays/overlay/popover.class.js +2 -2
- package/dist/components/overlays/overlay/tooltip.class.d.ts +10 -0
- package/dist/components/overlays/overlay/tooltip.class.js +1 -1
- package/dist/components/overlays/popup/popup.class.d.ts +1 -0
- package/dist/components/overlays/popup/popup.class.js +1 -1
- package/dist/components/overlays/popup/popup.styles.js +0 -15
- package/dist/components/overlays/progress/progress-ring.class.d.ts +9 -1
- package/dist/components/overlays/progress/progress-ring.class.js +3 -3
- package/dist/components/overlays/progress/progress.styles.js +0 -21
- package/dist/components/overlays/rating/rating.styles.js +0 -25
- package/dist/components/overlays/skeleton/skeleton.styles.js +0 -4
- package/dist/components/overlays/spinner/spinner.styles.js +0 -3
- package/dist/components/overlays/toast/toast-item.styles.js +3 -45
- package/dist/components/retrieval/chunk-inspector/chunk-inspector.styles.js +0 -35
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +2 -2
- package/dist/components/retrieval/citation-badge/citation-badge.class.js +3 -3
- package/dist/components/retrieval/citation-badge/citation-badge.styles.js +0 -20
- package/dist/components/retrieval/claim-evidence/claim-evidence.styles.js +0 -8
- package/dist/components/retrieval/community-card/community-card.class.d.ts +1 -0
- package/dist/components/retrieval/community-card/community-card.styles.js +0 -6
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +8 -12
- package/dist/components/retrieval/entity-card/entity-card.class.d.ts +4 -3
- package/dist/components/retrieval/entity-card/entity-card.class.js +1 -1
- package/dist/components/retrieval/entity-card/entity-card.styles.js +0 -12
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +10 -4
- package/dist/components/retrieval/entity-chip/entity-chip.class.js +3 -3
- package/dist/components/retrieval/entity-chip/entity-chip.styles.js +6 -9
- package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +19 -5
- package/dist/components/retrieval/graph/graph.class.d.ts +5 -0
- package/dist/components/retrieval/graph/graph.class.js +1 -1
- package/dist/components/retrieval/graph/graph.styles.js +0 -30
- package/dist/components/retrieval/graph-legend/graph-legend.styles.js +0 -3
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.styles.js +0 -25
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +2 -0
- package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.styles.js +0 -7
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +20 -6
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +2 -2
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.styles.js +0 -16
- package/dist/components/retrieval/mind-map/mind-map.class.d.ts +5 -3
- package/dist/components/retrieval/mind-map/mind-map.class.js +1 -1
- package/dist/components/retrieval/mind-map/mind-map.styles.js +0 -2
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +3 -2
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +1 -1
- package/dist/components/retrieval/neighbor-list/neighbor-list.styles.js +0 -30
- package/dist/components/retrieval/node-palette/node-palette.styles.js +0 -11
- package/dist/components/retrieval/path-strip/path-strip.styles.js +0 -10
- package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +12 -3
- package/dist/components/retrieval/provenance-panel/provenance-panel.styles.js +0 -2
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +3 -2
- package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +2 -2
- package/dist/components/retrieval/retrieval-results/retrieval-results.styles.js +0 -28
- package/dist/components/retrieval/retrieval-search/retrieval-search.styles.js +0 -4
- package/dist/components/retrieval/retrieval-trace/retrieval-trace.styles.js +0 -2
- package/dist/components/retrieval/source-card/source-card.styles.js +0 -13
- package/dist/components/retrieval/source-list/source-list.styles.js +0 -7
- package/dist/components/retrieval/source-picker/source-picker.styles.js +0 -7
- package/dist/components/utility/copy-button/copy-button.styles.js +0 -10
- package/dist/components/utility/diff-view/diff-view.styles.js +0 -14
- package/dist/components/utility/export-button/export-button.styles.js +0 -22
- package/dist/components/utility/icon/icon.styles.js +0 -6
- package/dist/components/utility/json-viewer/json-viewer.styles.js +2 -48
- package/dist/components/utility/known-date/known-date.class.d.ts +7 -3
- package/dist/components/utility/known-date/known-date.styles.js +10 -51
- package/dist/components/utility/live-region/live-region.styles.js +0 -4
- package/dist/components/utility/mention-popover/mention-popover.styles.js +0 -25
- package/dist/components/utility/poll-status/poll-status.styles.js +0 -4
- package/dist/components/utility/random-content/random-content.class.d.ts +22 -0
- package/dist/components/utility/random-content/random-content.class.js +3 -2
- package/dist/components/utility/random-content/random-content.styles.js +6 -13
- package/dist/components/utility/tour/tour.class.d.ts +4 -2
- package/dist/components/utility/tour/tour.class.js +3 -3
- package/dist/components/utility/tour/tour.styles.js +0 -13
- package/dist/components/utility/visually-hidden/visually-hidden.styles.js +0 -5
- package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.styles.d.ts +2 -2
- package/dist/components/viewers/archive-viewer/archive-viewer.styles.js +0 -10
- package/dist/components/viewers/csv-viewer/csv-viewer.class.js +1 -1
- package/dist/components/viewers/csv-viewer/csv-viewer.styles.js +0 -19
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.js +1 -1
- package/dist/components/viewers/dataset-viewer/dataset-viewer.styles.js +0 -15
- package/dist/components/viewers/document-compare/document-compare.styles.js +0 -3
- package/dist/components/viewers/document-preview/document-preview.styles.js +0 -25
- package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +2 -1
- package/dist/components/viewers/document-viewer/document-viewer.class.js +1 -1
- package/dist/components/viewers/document-viewer/document-viewer.styles.js +0 -5
- package/dist/components/viewers/docx-viewer/docx-viewer.styles.js +0 -17
- package/dist/components/viewers/ebook-viewer/ebook-viewer.styles.js +0 -4
- package/dist/components/viewers/email-viewer/email-viewer.styles.js +0 -7
- package/dist/components/viewers/geojson-view/geojson-view.styles.js +0 -5
- package/dist/components/viewers/highlight-layer/highlight-layer.styles.js +0 -3
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +1 -1
- package/dist/components/viewers/notebook-viewer/notebook-viewer.styles.js +0 -38
- package/dist/components/viewers/page-rail/page-rail.class.js +1 -1
- package/dist/components/viewers/page-rail/page-rail.styles.js +0 -13
- package/dist/components/viewers/pdf-viewer/pdf-loader.d.ts +13 -2
- package/dist/components/viewers/pdf-viewer/pdf-loader.js +1 -1
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +32 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +4 -4
- package/dist/components/viewers/pdf-viewer/pdf-viewer.styles.js +1 -27
- package/dist/components/viewers/pptx-viewer/pptx-viewer.styles.js +0 -3
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.js +1 -1
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.styles.js +0 -14
- package/dist/components/viewers/svg-viewer/svg-viewer.styles.js +0 -7
- package/dist/components/viewers/xml-viewer/xml-viewer.styles.js +2 -24
- package/dist/custom-elements-jsx.d.ts +56 -37
- package/dist/events.d.ts +43 -33
- package/dist/internal/agent-status-variants.d.ts +18 -0
- package/dist/internal/agent-status-variants.js +1 -0
- package/dist/internal/announcer.d.ts +8 -3
- package/dist/internal/announcer.js +1 -1
- package/dist/internal/autoloader-manifest.js +1 -1
- package/dist/internal/canvas-color.d.ts +16 -0
- package/dist/internal/canvas-color.js +1 -1
- package/dist/internal/catalog-picker.d.ts +0 -1
- package/dist/internal/catalog-picker.js +1 -1
- package/dist/internal/default-strings.generated.d.ts +1 -0
- package/dist/internal/default-strings.generated.js +1 -1
- package/dist/internal/dev-mode-attribute-warning.d.ts +27 -4
- package/dist/internal/dev-mode-attribute-warning.js +1 -1
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +1 -1
- package/dist/internal/lyra-element.d.ts +13 -0
- package/dist/internal/lyra-element.js +1 -1
- package/dist/internal/media-controller.js +1 -1
- package/dist/internal/package-metadata.d.ts +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/scroll-overflow.d.ts +35 -13
- package/dist/internal/scroll-overflow.js +1 -1
- package/dist/internal/sizes.styles.js +0 -2
- package/dist/internal/specialist-tokens.styles.js +6 -11
- package/dist/internal/text-highlights.d.ts +4 -1
- package/dist/internal/text-highlights.js +1 -1
- package/dist/internal/tokens/palette.styles.js +0 -15
- package/dist/internal/tokens.styles.js +19 -113
- package/dist/lyra.d.ts +8 -5
- package/dist/styles/reservations.css +82 -0
- package/dist/svelte.d.ts +56 -37
- package/dist/translations/ar.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/pt-BR.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/zh-CN.js +1 -1
- package/dist/vue.d.ts +56 -37
- package/llms/components/lr-accordion-item.md +12 -3
- package/llms/components/lr-accordion.md +11 -2
- package/llms/components/lr-agent-eval-dashboard.md +1 -1
- package/llms/components/lr-agent-trace.md +3 -1
- package/llms/components/lr-agent-workspace.md +20 -0
- package/llms/components/lr-artifact-panel.md +10 -4
- package/llms/components/lr-attachment-chip.md +7 -4
- package/llms/components/lr-attachment-trigger.md +7 -4
- package/llms/components/lr-av-player.md +3 -1
- package/llms/components/lr-avatar.md +6 -6
- package/llms/components/lr-bar-chart.md +4 -3
- package/llms/components/lr-box-plot.md +1 -1
- package/llms/components/lr-browser-frame.md +7 -3
- package/llms/components/lr-bubble-chart.md +4 -3
- package/llms/components/lr-calendar.md +9 -2
- package/llms/components/lr-card.md +24 -0
- package/llms/components/lr-chart.md +32 -8
- package/llms/components/lr-chat-viewport.md +7 -2
- package/llms/components/lr-checkbox-group.md +13 -5
- package/llms/components/lr-checkbox.md +5 -2
- package/llms/components/lr-checkpoint.md +6 -2
- package/llms/components/lr-combobox.md +5 -2
- package/llms/components/lr-command-palette.md +4 -1
- package/llms/components/lr-confirm-bar.md +7 -3
- package/llms/components/lr-context-meter.md +12 -11
- package/llms/components/lr-conversation-item.md +7 -4
- package/llms/components/lr-details.md +11 -2
- package/llms/components/lr-dialog.md +15 -10
- package/llms/components/lr-dock-panel.md +7 -10
- package/llms/components/lr-document-preview.md +6 -1
- package/llms/components/lr-document-viewer.md +3 -2
- package/llms/components/lr-doughnut-chart.md +4 -3
- package/llms/components/lr-drawer.md +3 -3
- package/llms/components/lr-entity-card.md +3 -3
- package/llms/components/lr-entity-chip.md +1 -1
- package/llms/components/lr-entity-dossier.md +4 -1
- package/llms/components/lr-file-input.md +2 -2
- package/llms/components/lr-flag.md +20 -5
- package/llms/components/lr-heatmap.md +28 -0
- package/llms/components/lr-histogram.md +3 -1
- package/llms/components/lr-icon.md +1 -1
- package/llms/components/lr-json-schema-viewer.md +2 -1
- package/llms/components/lr-knowledge-graph-explorer.md +8 -3
- package/llms/components/lr-known-date.md +4 -2
- package/llms/components/lr-line-chart.md +4 -3
- package/llms/components/lr-lite-chart.md +16 -6
- package/llms/components/lr-map.md +72 -8
- package/llms/components/lr-markdown-core.md +3 -2
- package/llms/components/lr-media-card.md +28 -12
- package/llms/components/lr-message-parts.md +2 -1
- package/llms/components/lr-model-select.md +9 -10
- package/llms/components/lr-model-settings-panel.md +9 -9
- package/llms/components/lr-neighbor-list.md +1 -1
- package/llms/components/lr-notebook-viewer.md +6 -3
- package/llms/components/lr-option.md +5 -2
- package/llms/components/lr-pdf-viewer.md +62 -2
- package/llms/components/lr-pie-chart.md +4 -3
- package/llms/components/lr-polar-area-chart.md +4 -3
- package/llms/components/lr-popover.md +5 -0
- package/llms/components/lr-progress-ring.md +8 -1
- package/llms/components/lr-prompt-studio.md +1 -1
- package/llms/components/lr-provenance-panel.md +4 -2
- package/llms/components/lr-qr-code.md +1 -1
- package/llms/components/lr-radar-chart.md +4 -3
- package/llms/components/lr-rag-eval-dashboard.md +2 -2
- package/llms/components/lr-random-content.md +13 -0
- package/llms/components/lr-reorder-item.md +6 -1
- package/llms/components/lr-reorder-list.md +6 -1
- package/llms/components/lr-responsive-panel.md +11 -7
- package/llms/components/lr-scatter-chart.md +4 -3
- package/llms/components/lr-sequence-strip.md +16 -2
- package/llms/components/lr-slider.md +12 -5
- package/llms/components/lr-sparkline.md +1 -1
- package/llms/components/lr-suggestion-chips.md +7 -2
- package/llms/components/lr-swatch-picker.md +5 -5
- package/llms/components/lr-switch.md +5 -2
- package/llms/components/lr-table.md +30 -4
- package/llms/components/lr-terminal.md +3 -1
- package/llms/components/lr-thread-list.md +8 -8
- package/llms/components/lr-time-input.md +6 -1
- package/llms/components/lr-timeline-item.md +24 -0
- package/llms/components/lr-timeline.md +25 -1
- package/llms/components/lr-token-input.md +7 -2
- package/llms/components/lr-tool-approval-dialog.md +7 -8
- package/llms/components/lr-tool-call-chip.md +5 -1
- package/llms/components/lr-tool-param-form.md +14 -12
- package/llms/components/lr-tool-result-dialog.md +11 -9
- package/llms/components/lr-tool-result-view.md +7 -6
- package/llms/components/lr-tool-select-dialog.md +18 -16
- package/llms/components/lr-trace-tree.md +3 -1
- package/llms/components/lr-usage-badge.md +4 -1
- package/llms/components/lr-video-playlist.md +1 -1
- package/llms/components/lr-virtual-list.md +22 -14
- package/llms/components/lr-voice-picker.md +8 -5
- package/llms/components/lr-widget-renderer.md +3 -3
- package/llms/components/lr-widget.md +1 -1
- package/llms/components/lr-word-cloud.md +6 -2
- package/llms/peers.md +12 -2
- package/llms/shared.md +70 -2
- package/llms-full.txt +1143 -285
- package/package.json +17 -5
- package/vscode-css-data.json +37 -2
- package/vscode-html-data.json +401 -44
- package/web-types.json +299 -55
|
@@ -14,32 +14,15 @@ import{css}from"lit";const baseTokens=css`
|
|
|
14
14
|
--lr-color-warning-quiet: var(--lr-color-warning-fill-quiet);
|
|
15
15
|
--lr-color-danger: var(--lr-color-danger-fill-loud);
|
|
16
16
|
--lr-color-danger-quiet: var(--lr-color-danger-fill-quiet);
|
|
17
|
-
/* A solid, high-contrast neutral fill -- distinct from --lr-color-surface (which is the
|
|
18
|
-
ambient page/panel background, not a "loud" accent) and from --lr-color-text (used as a
|
|
19
|
-
plain-text/outline accent, not a fill). Backs lr-button's appearance="accent" tier for
|
|
20
|
-
variant="neutral", the one variant whose other tokens all resolve to ambient/plain values. */
|
|
21
17
|
--lr-color-neutral: var(--lr-color-neutral-fill-loud);
|
|
22
|
-
/* Text/icon colors paired with each solid semantic fill. These are
|
|
23
|
-
separate tokens because a theme can choose different foregrounds per
|
|
24
|
-
tone, and the bright standalone dark fills require dark content. */
|
|
25
18
|
--lr-color-on-brand: var(--lr-color-brand-on-loud);
|
|
26
19
|
--lr-color-on-success: var(--lr-color-success-on-loud);
|
|
27
20
|
--lr-color-on-warning: var(--lr-color-warning-on-loud);
|
|
28
21
|
--lr-color-on-danger: var(--lr-color-danger-on-loud);
|
|
29
22
|
--lr-color-on-neutral: var(--lr-color-neutral-on-loud);
|
|
30
|
-
/* Foreground for controls and captions painted over the strong media scrim. It is independent
|
|
31
|
-
from ordinary text and semantic-tone foregrounds because the underlying surface is always
|
|
32
|
-
the strong overlay, regardless of the page theme. */
|
|
33
23
|
--lr-color-on-strong-overlay: var(--lr-theme-color-on-strong-overlay, #fff);
|
|
34
|
-
/* The surface a modal panel (dialog, drawer, lightbox, command palette) paints itself with.
|
|
35
|
-
Separate from --lr-color-surface because in dark mode a panel that shares the page surface
|
|
36
|
-
token is invisible against the page; light mode keeps the page surface as its default. */
|
|
37
24
|
--lr-color-surface-overlay: var(--lr-theme-color-surface-overlay, var(--lr-color-surface));
|
|
38
25
|
--lr-color-overlay: var(--lr-theme-color-overlay, rgb(0 0 0 / 0.5));
|
|
39
|
-
/* Own input, chained through --lr-theme-color-overlay for back-compat: both scrims
|
|
40
|
-
previously read the same input, so defining it flattened the strong scrim's 0.92
|
|
41
|
-
down to the plain scrim's value. A theme that sets only --lr-theme-color-overlay
|
|
42
|
-
still tints both, exactly as before. */
|
|
43
26
|
--lr-color-overlay-strong: var(--lr-theme-color-overlay-strong, var(--lr-theme-color-overlay, rgb(0 0 0 / 0.92)));
|
|
44
27
|
--lr-color-no-data: var(--lr-theme-color-no-data, rgb(128 128 128 / 25%));
|
|
45
28
|
--lr-font-mono: var(--lr-theme-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
|
|
@@ -47,9 +30,6 @@ import{css}from"lit";const baseTokens=css`
|
|
|
47
30
|
--lr-space-s: var(--lr-theme-space-s, 0.5rem);
|
|
48
31
|
--lr-space-m: var(--lr-theme-space-m, 0.75rem);
|
|
49
32
|
--lr-space-l: var(--lr-theme-space-l, 1rem);
|
|
50
|
-
/* Semantic type, density, border, radius, and layer scales. Component styles consume
|
|
51
|
-
these names; the exact fallback values remain centralized here so a theme can retune
|
|
52
|
-
typography and geometry without editing every component. */
|
|
53
33
|
--lr-space-2xs: var(--lr-theme-space-2xs, 0.125rem);
|
|
54
34
|
--lr-space-2xl: var(--lr-theme-space-2xl, 2rem);
|
|
55
35
|
--lr-font-size-3xs: var(--lr-theme-font-size-3xs, 0.5rem);
|
|
@@ -78,7 +58,6 @@ import{css}from"lit";const baseTokens=css`
|
|
|
78
58
|
--lr-radius-xs: var(--lr-theme-border-radius-xs, 2px);
|
|
79
59
|
--lr-radius-pill: var(--lr-theme-border-radius-pill, 999px);
|
|
80
60
|
--lr-color-shadow: var(--lr-theme-color-shadow, #000);
|
|
81
|
-
/* Opaque stop for mask gradients; see MASK_OPAQUE note above. */
|
|
82
61
|
--lr-mask-opaque: #000;
|
|
83
62
|
--lr-layer-base: var(--lr-theme-z-index-base, 0);
|
|
84
63
|
--lr-layer-content: var(--lr-theme-z-index-content, 1);
|
|
@@ -181,11 +160,6 @@ import{css}from"lit";const baseTokens=css`
|
|
|
181
160
|
--lr-size-8em: var(--lr-theme-size-8em, 8em);
|
|
182
161
|
--lr-size-8rem: var(--lr-theme-size-8rem, 8rem);
|
|
183
162
|
--lr-radius: var(--lr-theme-border-radius-m, 0.375rem);
|
|
184
|
-
/* Elevation. One shadow token used to serve 39 stylesheets, so a tooltip, a slider thumb and a
|
|
185
|
-
full-screen dialog all cast the same shadow -- elevation carried no information at all. Five
|
|
186
|
-
steps now, with the shadow COLOUR itself tokenized: it used to be a baked-in
|
|
187
|
-
rgb(0 0 0 / 0.15), which is invisible against a dark surface, so dark mode effectively had no
|
|
188
|
-
elevation. --lr-shadow stays as the mid step, so every existing use keeps rendering. */
|
|
189
163
|
--lr-shadow-color: var(--lr-theme-shadow-color, 0 0 0);
|
|
190
164
|
--lr-shadow-xs: var(--lr-theme-shadow-xs, 0 1px 2px rgb(var(--lr-shadow-color) / 0.12));
|
|
191
165
|
--lr-shadow-s: var(--lr-theme-shadow-s, 0 1px 4px rgb(var(--lr-shadow-color) / 0.14));
|
|
@@ -195,20 +169,6 @@ import{css}from"lit";const baseTokens=css`
|
|
|
195
169
|
--lr-shadow: var(--lr-shadow-m);
|
|
196
170
|
--lr-font: var(--lr-theme-font-family-body, system-ui, sans-serif);
|
|
197
171
|
|
|
198
|
-
/* Motion — every component that animates (popovers, gauge fill, toast)
|
|
199
|
-
reads from these instead of hand-rolling its own duration/easing, so the
|
|
200
|
-
library has one consistent rhythm. -fast/-base are for discrete
|
|
201
|
-
state-change transitions; -ambient is reserved for infinite looping
|
|
202
|
-
"still alive" indicators (a calm ~1.8s breathing pulse, not a flicker).
|
|
203
|
-
|
|
204
|
-
Duration and easing are SEPARATE axes. They used to be fused into one
|
|
205
|
-
value, which reads fine in a transition: shorthand but is unusable in an
|
|
206
|
-
animation: shorthand that names its own timing function -- the expansion
|
|
207
|
-
carries two timing functions, which is invalid, so the browser drops the
|
|
208
|
-
whole declaration and the animation silently never runs. Four component
|
|
209
|
-
stylesheets shipped exactly that. Reach for a --lr-duration-x plus a
|
|
210
|
-
--lr-easing-x in an animation:; the compound tokens below remain for
|
|
211
|
-
transition:. */
|
|
212
172
|
--lr-duration-fast: var(--lr-theme-duration-fast, 120ms);
|
|
213
173
|
--lr-duration-base: var(--lr-theme-duration-normal, 180ms);
|
|
214
174
|
--lr-duration-ambient: var(--lr-theme-duration-slow, 1.8s);
|
|
@@ -218,61 +178,26 @@ import{css}from"lit";const baseTokens=css`
|
|
|
218
178
|
--lr-easing-emphasized: var(--lr-theme-easing-emphasized, ease-in-out);
|
|
219
179
|
--lr-easing-linear: var(--lr-theme-easing-linear, linear);
|
|
220
180
|
|
|
221
|
-
/* Derived, so a consumer retheming either axis gets both. The legacy
|
|
222
|
-
--lr-theme-transition-* inputs still win when set, so an existing theme
|
|
223
|
-
keeps working unchanged. */
|
|
224
181
|
--lr-transition-fast: var(--lr-theme-transition-fast, var(--lr-duration-fast) var(--lr-easing-standard));
|
|
225
182
|
--lr-transition-base: var(--lr-theme-transition-normal, var(--lr-duration-base) var(--lr-easing-standard));
|
|
226
183
|
--lr-transition-ambient: var(--lr-theme-transition-slow, var(--lr-duration-ambient) var(--lr-easing-emphasized));
|
|
227
184
|
|
|
228
|
-
/* Disabled state — one opacity value for every disabled control,
|
|
229
|
-
replacing three previously-independent hardcoded values (0.5/0.4/0.35). */
|
|
230
185
|
--lr-opacity-disabled: var(--lr-theme-opacity-disabled, 0.5);
|
|
231
186
|
|
|
232
|
-
/* De-emphasis that is NOT disablement: still-live content the eye should reach second
|
|
233
|
-
(a streaming part not yet settled, a secondary metadata row). Deliberately far milder than
|
|
234
|
-
--lr-opacity-disabled, because this text still has to clear WCAG 1.4.3 contrast against the
|
|
235
|
-
surface — a disabled control does not, and borrowing that value here failed an axe check. */
|
|
236
187
|
--lr-opacity-muted: var(--lr-theme-opacity-muted, 0.85);
|
|
237
188
|
|
|
238
|
-
/* Interaction states are a COLOUR MIX, not a brightness filter.
|
|
239
|
-
filter: brightness() multiplies every channel, which means it lightens a dark control and
|
|
240
|
-
darkens a light one only by coincidence, does nothing whatsoever to a pure white or pure
|
|
241
|
-
black fill, and -- because filter applies to the element and its descendants -- shifts the
|
|
242
|
-
control's TEXT and ICONS along with its background. Mixing toward a partner colour has none
|
|
243
|
-
of those properties: it is defined on the fill alone, it always moves, and it moves in the
|
|
244
|
-
direction the surface actually needs.
|
|
245
|
-
|
|
246
|
-
The two knobs are percentages, so a theme can flatten or exaggerate every interaction in the
|
|
247
|
-
library at once without touching a component. */
|
|
248
189
|
--lr-color-mix-hover: var(--lr-theme-color-mix-hover, 12%);
|
|
249
190
|
--lr-color-mix-active: var(--lr-theme-color-mix-active, 22%);
|
|
250
|
-
/* What each state mixes TOWARD. Following the text colour makes the direction automatic: on a
|
|
251
|
-
light surface the text is dark, so a hover darkens; on a dark surface it is light, so the
|
|
252
|
-
same declaration lightens. That is the property filter: brightness() never had. */
|
|
253
191
|
--lr-color-mix-partner: var(--lr-theme-color-mix-partner, var(--lr-color-text));
|
|
254
192
|
|
|
255
|
-
/* Superseded by the two mix knobs above and retained only so a theme that set it keeps
|
|
256
|
-
rendering; no component reads it. Remove it once no consumer does. */
|
|
257
193
|
--lr-hover-brightness: var(--lr-theme-hover-brightness, 1.08);
|
|
258
194
|
|
|
259
|
-
/* Popover viewport clamp — the max-inline-size cap that keeps an anchored
|
|
260
|
-
popover/menu from spilling past the viewport edge, shared by every
|
|
261
|
-
floating surface so they clamp to one consistent width. */
|
|
262
195
|
--lr-popover-viewport-clamp: var(--lr-theme-popover-viewport-clamp, 92vw);
|
|
263
196
|
|
|
264
|
-
/* Focus ring — every :focus-visible rule in the library should reference
|
|
265
|
-
these three instead of hardcoding its own width/color/offset. */
|
|
266
197
|
--lr-focus-ring-width: var(--lr-theme-focus-ring-width, 2px);
|
|
267
198
|
--lr-focus-ring-color: var(--lr-theme-color-focus, var(--lr-color-brand));
|
|
268
199
|
--lr-focus-ring-offset: var(--lr-theme-focus-ring-offset, 2px);
|
|
269
200
|
|
|
270
|
-
/* Minimum tappable box for an icon-only button (close/dismiss/nav
|
|
271
|
-
controls). Visual icon size is unaffected; components pad out to this
|
|
272
|
-
via min-inline-size/min-block-size, not by growing the glyph itself.
|
|
273
|
-
Keep the resolved value at or above 24px: it backs the hit area of
|
|
274
|
-
lr-date-input, lr-combobox, lr-input and lr-select, and anything smaller
|
|
275
|
-
fails WCAG 2.2 SC 2.5.8 (Target Size (Minimum)). */
|
|
276
201
|
--lr-icon-button-size: var(--lr-theme-icon-button-size, 2.5rem);
|
|
277
202
|
|
|
278
203
|
font-family: var(--lr-font);
|
|
@@ -280,8 +205,6 @@ import{css}from"lit";const baseTokens=css`
|
|
|
280
205
|
box-sizing: border-box;
|
|
281
206
|
}
|
|
282
207
|
|
|
283
|
-
/* Safe-area environment variables are physical. Mirror the logical aliases
|
|
284
|
-
so inline-start/end keep their meaning when direction is inherited as RTL. */
|
|
285
208
|
:host(:dir(rtl)) {
|
|
286
209
|
--lr-safe-area-inline-start: env(safe-area-inset-right, 0px);
|
|
287
210
|
--lr-safe-area-inline-end: env(safe-area-inset-left, 0px);
|
|
@@ -293,28 +216,15 @@ import{css}from"lit";const baseTokens=css`
|
|
|
293
216
|
--lr-color-text-quiet: var(--lr-theme-color-text-quiet, #9aa1ac);
|
|
294
217
|
--lr-color-border: var(--lr-theme-color-surface-border, #6b6b74);
|
|
295
218
|
--lr-color-border-strong: var(--lr-theme-color-border-strong, #c4c9d1);
|
|
296
|
-
/* A modal panel cannot share the page surface token in dark mode: both resolve to the same
|
|
297
|
-
near-black, so an open dialog reads as a scrim with text floating on it and no panel at
|
|
298
|
-
all. Light mode keeps the page surface deliberately -- a white dialog on a white page is
|
|
299
|
-
separated by the scrim around it, and changing it would be churn for no legibility gain. */
|
|
300
219
|
--lr-color-surface-overlay: var(--lr-theme-color-surface-overlay, #2b3038);
|
|
301
|
-
/* A 50% black scrim over an already-dark page barely darkens it, so the modal/non-modal
|
|
302
|
-
boundary the scrim exists to draw disappears. Both scrims go heavier in dark mode. */
|
|
303
220
|
--lr-color-overlay: var(--lr-theme-color-overlay, rgb(0 0 0 / 0.72));
|
|
304
221
|
--lr-color-overlay-strong: var(--lr-theme-color-overlay-strong, var(--lr-theme-color-overlay, rgb(0 0 0 / 0.95)));
|
|
305
|
-
/* Elevation is a luminance difference, and a 12%-alpha black shadow against a near-black
|
|
306
|
-
surface is not one -- dark mode shipped with no elevation at all. The alphas roughly
|
|
307
|
-
triple so each step stays a visible step. */
|
|
308
222
|
--lr-shadow-xs: var(--lr-theme-shadow-xs, 0 1px 2px rgb(var(--lr-shadow-color) / 0.34));
|
|
309
223
|
--lr-shadow-s: var(--lr-theme-shadow-s, 0 1px 4px rgb(var(--lr-shadow-color) / 0.4));
|
|
310
224
|
--lr-shadow-m: var(--lr-theme-shadow-m, 0 2px 8px rgb(var(--lr-shadow-color) / 0.46));
|
|
311
225
|
--lr-shadow-l: var(--lr-theme-shadow-l, 0 8px 20px rgb(var(--lr-shadow-color) / 0.56));
|
|
312
226
|
--lr-shadow-xl: var(--lr-theme-shadow-xl, 0 16px 40px rgb(var(--lr-shadow-color) / 0.66));
|
|
313
227
|
`,auxTokens=css`
|
|
314
|
-
/* Reduced motion is centralized so components using either the shared
|
|
315
|
-
transition tokens or a component animation get the same behavior. The
|
|
316
|
-
tiny non-zero duration keeps animationend/transitionend contracts from
|
|
317
|
-
becoming engine-dependent while making the visual movement imperceptible. */
|
|
318
228
|
@media (prefers-reduced-motion: reduce) {
|
|
319
229
|
:host {
|
|
320
230
|
--lr-duration-fast: 0.001ms;
|
|
@@ -323,17 +233,10 @@ import{css}from"lit";const baseTokens=css`
|
|
|
323
233
|
--lr-duration-icon: 0.001ms;
|
|
324
234
|
--lr-easing-standard: linear;
|
|
325
235
|
--lr-easing-emphasized: linear;
|
|
326
|
-
/* Overridden too, so a theme that sets the legacy compound inputs directly is still
|
|
327
|
-
flattened rather than keeping its full-length duration. */
|
|
328
236
|
--lr-transition-fast: 0.001ms linear;
|
|
329
237
|
--lr-transition-base: 0.001ms linear;
|
|
330
238
|
--lr-transition-ambient: 0.001ms linear;
|
|
331
239
|
}
|
|
332
|
-
/* Deliberately NOT !important. It used to be, which meant no consumer could override it and
|
|
333
|
-
no component could opt out -- including the rare case where motion *is* the information (a
|
|
334
|
-
progress indicator's only affordance). Zeroing the duration tokens above already flattens
|
|
335
|
-
every component that reads them, which is all of them; this blanket rule is the safety net
|
|
336
|
-
for a stray hardcoded duration, and a safety net should not outrank the author. */
|
|
337
240
|
:host *,
|
|
338
241
|
:host *::before,
|
|
339
242
|
:host *::after {
|
|
@@ -344,12 +247,15 @@ import{css}from"lit";const baseTokens=css`
|
|
|
344
247
|
}
|
|
345
248
|
}
|
|
346
249
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
250
|
+
:host([hidden]) {
|
|
251
|
+
display: none !important;
|
|
252
|
+
}
|
|
253
|
+
*,
|
|
254
|
+
*::before,
|
|
255
|
+
*::after {
|
|
256
|
+
box-sizing: inherit;
|
|
257
|
+
}
|
|
258
|
+
`,forcedColorTokens=css`
|
|
353
259
|
--lr-color-surface: Canvas;
|
|
354
260
|
--lr-color-surface-raised: Canvas;
|
|
355
261
|
--lr-color-text: CanvasText;
|
|
@@ -371,16 +277,6 @@ import{css}from"lit";const baseTokens=css`
|
|
|
371
277
|
--lr-color-on-neutral: Canvas;
|
|
372
278
|
--lr-color-on-strong-overlay: CanvasText;
|
|
373
279
|
--lr-focus-ring-color: Highlight;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
:host([hidden]) {
|
|
377
|
-
display: none !important;
|
|
378
|
-
}
|
|
379
|
-
*,
|
|
380
|
-
*::before,
|
|
381
|
-
*::after {
|
|
382
|
-
box-sizing: inherit;
|
|
383
|
-
}
|
|
384
280
|
`,tokens=css`
|
|
385
281
|
${baseTokens}
|
|
386
282
|
|
|
@@ -395,4 +291,14 @@ import{css}from"lit";const baseTokens=css`
|
|
|
395
291
|
}
|
|
396
292
|
|
|
397
293
|
${auxTokens}
|
|
294
|
+
|
|
295
|
+
@media (forced-colors: active) {
|
|
296
|
+
:host,
|
|
297
|
+
:host(:not([data-lr-theme='light'])),
|
|
298
|
+
:host([data-lr-theme='dark']) {${forcedColorTokens}
|
|
299
|
+
}
|
|
300
|
+
:host(:not([data-lr-theme='light'])):host-context(.lr-dark),
|
|
301
|
+
:host(:not([data-lr-theme='light'])):host-context([data-lr-theme='dark']) {${forcedColorTokens}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
398
304
|
`;export{tokens};
|
package/dist/lyra.d.ts
CHANGED
|
@@ -92,6 +92,9 @@ export type { LyraQrCodeErrorCorrection } from './components/media/qr-code/qr-co
|
|
|
92
92
|
export { LyraRandomContent } from './components/utility/random-content/random-content.class.js';
|
|
93
93
|
export type { LyraRandomContentAnimation, LyraRandomContentMode, LyraRandomContentEventMap, } from './components/utility/random-content/random-content.class.js';
|
|
94
94
|
export { LyraTimeline } from './components/data/timeline/timeline.class.js';
|
|
95
|
+
export type { LyraTimelineScale } from './components/data/timeline/timeline.class.js';
|
|
96
|
+
export type { LyraTimelineCollision } from './components/data/timeline/timeline.class.js';
|
|
97
|
+
export type { LyraSequenceStripActivateDetail, LyraSequenceStripEventMap, } from './components/data/sequence-strip/sequence-strip.class.js';
|
|
95
98
|
export { LyraTimelineItem } from './components/data/timeline/timeline-item.class.js';
|
|
96
99
|
export { LyraTour } from './components/utility/tour/tour.class.js';
|
|
97
100
|
export type { LyraTourTarget, LyraTourStep, LyraTourEndReason, LyraTourEventMap, } from './components/utility/tour/tour.class.js';
|
|
@@ -104,7 +107,7 @@ export type { LyraSkeletonShape, LyraSkeletonEffect, } from './components/overla
|
|
|
104
107
|
export { LyraStat } from './components/data/stat/stat.class.js';
|
|
105
108
|
export type { StatGoodDirection, StatRow, StatOrientation, } from './components/data/stat/stat.class.js';
|
|
106
109
|
export { LyraTable } from './components/data/table/table.class.js';
|
|
107
|
-
export type { TableColumn, TableColumnEditTrigger, TableEdgeAlign, TableLoadingAppearance, TableSelectionMode, TableSortCommitDetail, TableSortDetail, TableSortDirection, TableSortMode, TableSortRequestDetail, } from './components/data/table/table.class.js';
|
|
110
|
+
export type { TableColumn, TableColumnEditTrigger, TableEdgeAlign, TableLoadingAppearance, TableScrollMode, TableSelectionMode, TableSortCommitDetail, TableSortDetail, TableSortDirection, TableSortMode, TableSortRequestDetail, } from './components/data/table/table.class.js';
|
|
108
111
|
export { LyraDataGrid } from './components/data/data-grid/data-grid.class.js';
|
|
109
112
|
export type { DataGridAggregation, DataGridAppearance, DataGridCellContextMenuDetail, DataGridCellDetail, DataGridColumn, DataGridColumnMoveDetail, DataGridColumnPinDetail, DataGridColumnResizeDetail, DataGridColumnState, DataGridColumnVisibilityDetail, DataGridCopyOptions, DataGridCsvOptions, DataGridDataErrorDetail, DataGridExportOptions, DataGridFacets, DataGridFilter, DataGridFilterType, DataGridGroupDetail, DataGridJsonValue, DataGridKey, DataGridPageDetail, DataGridPinSide, DataGridRequest, DataGridResponse, DataGridRowDetail, DataGridScrollOptions, DataGridSelectable, DataGridSelectionDetail, DataGridSize, DataGridSort, DataGridSortAlgorithm, DataGridSortingState, DataGridState, DataGridStateFilter, LyraDataGridEventMap, SortingState, } from './components/data/data-grid/data-grid.class.js';
|
|
110
113
|
export { LyraGauge } from './components/data/gauge/gauge.class.js';
|
|
@@ -155,7 +158,7 @@ export { LyraPolarAreaChart } from './components/charts/chart/polar-area-chart.c
|
|
|
155
158
|
export { LyraRadarChart } from './components/charts/chart/radar-chart.class.js';
|
|
156
159
|
export { LyraScatterChart } from './components/charts/chart/scatter-chart.class.js';
|
|
157
160
|
export { LyraHistogram } from './components/charts/chart/histogram.class.js';
|
|
158
|
-
export type { LyraChartPoint, LyraChartSeries, LyraChartInstance, LyraChartArea, LyraChartConfiguration, LyraChartDataConfiguration, LyraChartDatasetConfiguration, LyraChartType, LyraChartGrid, LyraChartIndexAxis, LyraChartLayoutPosition, LyraChartLegendPosition, LyraChartExportFormat, LyraChartPlugin, LyraChartFormatSurface, LyraChartFormatter, LyraChartFormatterContext, LyraChartDatumKind, LyraChartDatumActivateDetail, LyraChartValueFormatter, LyraChartValueFormatterContext, } from './components/charts/chart/chart.class.js';
|
|
161
|
+
export type { LyraChartPoint, LyraChartSeries, LyraChartInstance, LyraChartArea, LyraChartConfiguration, LyraChartDataConfiguration, LyraChartDatasetConfiguration, LyraChartType, LyraChartGrid, LyraChartIndexAxis, LyraChartScaleType, LyraChartAnnotation, LyraChartLayoutPosition, LyraChartLegendPosition, LyraChartExportFormat, LyraChartPlugin, LyraChartFormatSurface, LyraChartFormatter, LyraChartFormatterContext, LyraChartDatumKind, LyraChartDatumActivateDetail, LyraChartValueFormatter, LyraChartValueFormatterContext, } from './components/charts/chart/chart.class.js';
|
|
159
162
|
export { preloadCharts } from './components/charts/chart/chart-preload.js';
|
|
160
163
|
export type { LyraChartPreloadOptions, LyraChartPreloadResult, } from './components/charts/chart/chart-preload.js';
|
|
161
164
|
export type { LyraChartLegendVisibilityChangeDetail } from './components/charts/chart/chart-legend-visibility.js';
|
|
@@ -166,7 +169,7 @@ export { LyraGraph } from './components/retrieval/graph/graph.class.js';
|
|
|
166
169
|
export type { LyraGraphCommunity, LyraGraphLayout, LyraGraphPickKind, LyraGraphRenderer, LyraGraphSelectionMode, LyraGraphLink, LyraGraphNode, LyraScoreThresholds, } from './components/retrieval/graph/graph.class.js';
|
|
167
170
|
export type { LyraNodeTypeStyle } from './internal/node-type-style.js';
|
|
168
171
|
export { LyraMap } from './components/media/map/map.class.js';
|
|
169
|
-
export type { LyraMapLegendEntry, LyraMapLegendPattern, LyraMapLegendProjection, LyraMapChoroplethLayer, LyraMapMarker, LyraMapGeoJsonDataLayer, LyraMapStyleSpecification, LyraMapInstance, } from './components/media/map/map.class.js';
|
|
172
|
+
export type { LyraMapBounds, LyraMapLegendEntry, LyraMapChoroplethInterpolation, LyraMapLegendGradientStop, LyraMapLegendPattern, LyraMapLegendProjection, LyraMapChoroplethLayer, LyraMapMarker, LyraMapGeoJsonDataLayer, LyraMapStyleSpecification, LyraMapInstance, } from './components/media/map/map.class.js';
|
|
170
173
|
export { DEFAULT_MAX_FILE_SIZE_BYTES, LyraFileInput, } from './components/media/file-input/file-input.class.js';
|
|
171
174
|
export type { LyraFileInputCapture, LyraFileInputFilesDetail, LyraFileInputRejectedFile, LyraFileInputValidator, LyraFileInputValidatorResult, LyraFileInputObjectValidator, LyraFileInputObjectValidatorResult, } from './components/media/file-input/file-input.class.js';
|
|
172
175
|
export { LyraPhoneInput, loadLibphonenumberAdapter, } from './components/forms/phone-input/phone-input.class.js';
|
|
@@ -348,7 +351,7 @@ export type { LyraStepItem, LyraStepperOrientationChangeDetail, LyraStepState, }
|
|
|
348
351
|
export { LyraSegmented } from './components/layout/segmented/segmented.class.js';
|
|
349
352
|
export type { LyraSegmentedItem } from './components/layout/segmented/segmented.class.js';
|
|
350
353
|
export { LyraSwatchPicker } from './components/forms/swatch-picker/swatch-picker.class.js';
|
|
351
|
-
export type { LyraSwatchPickerMode, SwatchPickerItem,
|
|
354
|
+
export type { LyraSwatchPickerMode, SwatchPickerItem, } from './components/forms/swatch-picker/swatch-picker.class.js';
|
|
352
355
|
export { DEFAULT_GEMSTONE, GEMSTONE_KEYS, GEMSTONES, gemstoneGlyph, } from './theme/gemstones.js';
|
|
353
356
|
export type { GemstoneAccent, GemstoneKey } from './theme/gemstones.js';
|
|
354
357
|
export { LyraDiffView } from './components/utility/diff-view/diff-view.class.js';
|
|
@@ -424,7 +427,7 @@ export type { LyraCommand, LyraCommandPaletteEventMap, } from './components/layo
|
|
|
424
427
|
export { LyraCodeEditor } from './components/forms/code-editor/code-editor.class.js';
|
|
425
428
|
export type { LyraCodeEditorEventMap, LyraCodeEditorResize, LyraCodeEditorWrap, } from './components/forms/code-editor/code-editor.class.js';
|
|
426
429
|
export { LyraCalendar } from './components/data/calendar/calendar.class.js';
|
|
427
|
-
export type { CalendarEvent, CalendarView, LyraCalendarEventMap, } from './components/data/calendar/calendar.class.js';
|
|
430
|
+
export type { CalendarEvent, CalendarView, LyraCalendarEventMap, LyraCalendarFirstDayOfWeek, } from './components/data/calendar/calendar.class.js';
|
|
428
431
|
export type { LyraAppRailEventMap } from './components/layout/app-rail/app-rail.class.js';
|
|
429
432
|
export type { LyraAttachmentChipEventMap } from './components/media/attachment-chip/attachment-chip.class.js';
|
|
430
433
|
export type { LyraAttachmentTriggerEventMap } from './components/media/attachment-trigger/attachment-trigger.class.js';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @aceshooting/lyra-ui — layout-shift reservations
|
|
3
|
+
*
|
|
4
|
+
* Optional, opt-in light-DOM stylesheet. Reserves each component's intrinsic footprint BEFORE its
|
|
5
|
+
* definition upgrades, so a custom element in the initial viewport does not contribute a reflow to
|
|
6
|
+
* Cumulative Layout Shift as its definition loads.
|
|
7
|
+
*
|
|
8
|
+
* The problem this solves: an undefined custom element is an inline box with no intrinsic size, so
|
|
9
|
+
* every `lr-*` above the fold shifts the page when it upgrades. Components that additionally defer
|
|
10
|
+
* on an optional peer (`lr-chart`, `lr-map`, `lr-flag`, the graph/explorer family) show a skeleton
|
|
11
|
+
* while that peer resolves, which can cost a second shift when the real content replaces it.
|
|
12
|
+
*
|
|
13
|
+
* Every reservation below is expressed with the SAME custom property and fallback token the
|
|
14
|
+
* component's own stylesheet uses. That is the point: a reservation hard-coding a measured pixel
|
|
15
|
+
* value silently rots the moment a component's default changes, whereas these track it. Theming a
|
|
16
|
+
* component through its documented custom property automatically re-themes its reservation too.
|
|
17
|
+
*
|
|
18
|
+
* Import it alongside the token sheet, before first paint:
|
|
19
|
+
*
|
|
20
|
+
* @import "@aceshooting/lyra-ui/reservations.css";
|
|
21
|
+
*
|
|
22
|
+
* Scope: it styles ONLY `:not(:defined)` elements, so it is inert the moment a definition upgrades
|
|
23
|
+
* and can never fight a component's own layout. It sets no colors and no `:root` rules.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
@layer lr-reservations {
|
|
27
|
+
/* Baseline: an undefined custom element is inline with no box. Every Lyra component that is
|
|
28
|
+
block-level once defined needs to be block-level before it, or its reservation cannot apply.
|
|
29
|
+
Deliberately scoped to `lr-` and to `:not(:defined)` only. */
|
|
30
|
+
[class*='lr-']:not(:defined),
|
|
31
|
+
:is(
|
|
32
|
+
lr-chart, lr-line-chart, lr-bar-chart, lr-scatter-chart, lr-pie-chart, lr-doughnut-chart,
|
|
33
|
+
lr-radar-chart, lr-polar-area-chart, lr-bubble-chart, lr-histogram, lr-box-plot,
|
|
34
|
+
lr-lite-chart, lr-map, lr-heatmap, lr-flow-canvas, lr-knowledge-graph-explorer,
|
|
35
|
+
lr-qr-code, lr-skeleton, lr-card, lr-page, lr-widget, lr-table, lr-data-grid
|
|
36
|
+
):not(:defined) {
|
|
37
|
+
display: block;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Charts. Matches chart.styles.ts's own
|
|
41
|
+
`min-block-size: var(--lr-chart-height, var(--lr-size-280px))`. The `height` attribute is the
|
|
42
|
+
documented per-instance override, so a consumer setting it should also set the matching
|
|
43
|
+
custom property for the pre-upgrade frame to agree. */
|
|
44
|
+
:is(
|
|
45
|
+
lr-chart, lr-line-chart, lr-bar-chart, lr-scatter-chart, lr-pie-chart, lr-doughnut-chart,
|
|
46
|
+
lr-radar-chart, lr-polar-area-chart, lr-bubble-chart, lr-histogram, lr-box-plot
|
|
47
|
+
):not(:defined) {
|
|
48
|
+
min-block-size: var(--lr-chart-height, var(--lr-size-280px, 280px));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Map. Matches map.styles.ts's `block-size: var(--lr-size-24rem)`. */
|
|
52
|
+
lr-map:not(:defined) {
|
|
53
|
+
inline-size: 100%;
|
|
54
|
+
block-size: var(--lr-map-height, var(--lr-size-24rem, 24rem));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Flag. Matches flag.styles.ts: a 1em-tall box on a 4/3 ratio, so it reserves its inline size
|
|
58
|
+
from the surrounding font size exactly as the defined element does. */
|
|
59
|
+
lr-flag:not(:defined) {
|
|
60
|
+
display: inline-block;
|
|
61
|
+
block-size: var(--lr-size-1em, 1em);
|
|
62
|
+
aspect-ratio: var(--lr-flag-aspect-ratio, 4 / 3);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Canvas-backed surfaces that fill their allocation once defined. Without a reservation these
|
|
66
|
+
collapse to zero before upgrade and expand to their container afterwards -- the largest single
|
|
67
|
+
shift of the set. */
|
|
68
|
+
:is(lr-flow-canvas, lr-knowledge-graph-explorer):not(:defined) {
|
|
69
|
+
inline-size: 100%;
|
|
70
|
+
min-block-size: var(--lr-canvas-reserved-height, var(--lr-size-24rem, 24rem));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Inline controls whose height is the shared form-control ladder. Reserving the row height stops
|
|
74
|
+
a form of stacked fields from reflowing field by field as each definition arrives. */
|
|
75
|
+
:is(
|
|
76
|
+
lr-input, lr-number-input, lr-select, lr-combobox, lr-date-input, lr-phone-input,
|
|
77
|
+
lr-color-picker, lr-button, lr-icon-button
|
|
78
|
+
):not(:defined) {
|
|
79
|
+
display: inline-block;
|
|
80
|
+
min-block-size: var(--lr-form-control-height, 2.375rem);
|
|
81
|
+
}
|
|
82
|
+
}
|