@aceshooting/lyra-ui 1.2.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +98 -14
- package/custom-elements.json +30279 -12124
- package/dist/components/app-rail/app-rail-item.d.ts +30 -0
- package/dist/components/app-rail/app-rail-item.js +68 -0
- package/dist/components/app-rail/app-rail-item.styles.d.ts +1 -0
- package/dist/components/app-rail/app-rail-item.styles.js +65 -0
- package/dist/components/app-rail/app-rail.d.ts +168 -0
- package/dist/components/app-rail/app-rail.js +419 -0
- package/dist/components/app-rail/app-rail.styles.d.ts +1 -0
- package/dist/components/app-rail/app-rail.styles.js +128 -0
- package/dist/components/attachment-chip/attachment-chip.d.ts +141 -0
- package/dist/components/attachment-chip/attachment-chip.js +356 -0
- package/dist/components/attachment-chip/attachment-chip.styles.d.ts +1 -0
- package/dist/components/attachment-chip/attachment-chip.styles.js +184 -0
- package/dist/components/attachment-trigger/attachment-trigger.d.ts +96 -0
- package/dist/components/attachment-trigger/attachment-trigger.js +270 -0
- package/dist/components/attachment-trigger/attachment-trigger.styles.d.ts +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.styles.js +90 -0
- package/dist/components/chart/bar-chart.js +2 -18
- package/dist/components/chart/box-plot.d.ts +25 -1
- package/dist/components/chart/box-plot.js +147 -7
- package/dist/components/chart/box-plot.styles.js +13 -0
- package/dist/components/chart/bubble-chart.js +2 -18
- package/dist/components/chart/chart-loader.d.ts +44 -13
- package/dist/components/chart/chart-loader.js +65 -18
- package/dist/components/chart/chart.d.ts +55 -12
- package/dist/components/chart/chart.js +247 -49
- package/dist/components/chart/doughnut-chart.js +2 -18
- package/dist/components/chart/histogram-bin.d.ts +7 -1
- package/dist/components/chart/histogram-bin.js +32 -14
- package/dist/components/chart/histogram.js +8 -16
- package/dist/components/chart/line-chart.js +2 -18
- package/dist/components/chart/lite-chart.d.ts +134 -3
- package/dist/components/chart/lite-chart.js +382 -67
- package/dist/components/chart/lite-chart.styles.js +9 -0
- package/dist/components/chart/pie-chart.js +2 -18
- package/dist/components/chart/polar-area-chart.js +2 -18
- package/dist/components/chart/radar-chart.js +2 -18
- package/dist/components/chart/scatter-chart.js +2 -18
- package/dist/components/chat-composer/chat-composer.d.ts +133 -0
- package/dist/components/chat-composer/chat-composer.js +366 -0
- package/dist/components/chat-composer/chat-composer.styles.d.ts +1 -0
- package/dist/components/chat-composer/chat-composer.styles.js +145 -0
- package/dist/components/chat-message/chat-message.d.ts +141 -0
- package/dist/components/chat-message/chat-message.js +331 -0
- package/dist/components/chat-message/chat-message.styles.d.ts +1 -0
- package/dist/components/chat-message/chat-message.styles.js +203 -0
- package/dist/components/checkbox/checkbox.d.ts +117 -0
- package/dist/components/checkbox/checkbox.js +353 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -0
- package/dist/components/checkbox/checkbox.styles.js +77 -0
- package/dist/components/chip/chip-group.d.ts +56 -0
- package/dist/components/chip/chip-group.js +130 -0
- package/dist/components/chip/chip-group.styles.d.ts +1 -0
- package/dist/components/chip/chip-group.styles.js +57 -0
- package/dist/components/chip/chip.d.ts +64 -0
- package/dist/components/chip/chip.js +122 -0
- package/dist/components/chip/chip.styles.d.ts +1 -0
- package/dist/components/chip/chip.styles.js +115 -0
- package/dist/components/citation-badge/citation-badge.d.ts +113 -0
- package/dist/components/citation-badge/citation-badge.js +318 -0
- package/dist/components/citation-badge/citation-badge.styles.d.ts +1 -0
- package/dist/components/citation-badge/citation-badge.styles.js +96 -0
- package/dist/components/code-block/code-block.d.ts +127 -0
- package/dist/components/code-block/code-block.js +382 -0
- package/dist/components/code-block/code-block.styles.d.ts +1 -0
- package/dist/components/code-block/code-block.styles.js +187 -0
- package/dist/components/code-block/code-loader.d.ts +87 -0
- package/dist/components/code-block/code-loader.js +142 -0
- package/dist/components/combobox/combobox.d.ts +65 -6
- package/dist/components/combobox/combobox.js +258 -48
- package/dist/components/combobox/combobox.styles.js +3 -3
- package/dist/components/combobox/option.d.ts +5 -1
- package/dist/components/combobox/option.js +35 -0
- package/dist/components/context-meter/context-meter.d.ts +53 -0
- package/dist/components/context-meter/context-meter.js +159 -0
- package/dist/components/context-meter/context-meter.styles.d.ts +1 -0
- package/dist/components/context-meter/context-meter.styles.js +114 -0
- package/dist/components/conversation-item/conversation-item.d.ts +125 -0
- package/dist/components/conversation-item/conversation-item.js +331 -0
- package/dist/components/conversation-item/conversation-item.styles.d.ts +1 -0
- package/dist/components/conversation-item/conversation-item.styles.js +155 -0
- package/dist/components/date-picker/calendar-core.d.ts +24 -0
- package/dist/components/date-picker/calendar-core.js +51 -4
- package/dist/components/date-picker/date-input.d.ts +100 -9
- package/dist/components/date-picker/date-input.js +383 -66
- package/dist/components/date-picker/date-picker.d.ts +35 -4
- package/dist/components/date-picker/date-picker.js +171 -44
- package/dist/components/dialog/confirm.d.ts +40 -0
- package/dist/components/dialog/confirm.js +76 -0
- package/dist/components/dialog/dialog.d.ts +129 -0
- package/dist/components/dialog/dialog.js +288 -0
- package/dist/components/dialog/dialog.styles.d.ts +1 -0
- package/dist/components/dialog/dialog.styles.js +96 -0
- package/dist/components/dock-panel/dock-panel.d.ts +142 -0
- package/dist/components/dock-panel/dock-panel.js +359 -0
- package/dist/components/dock-panel/dock-panel.styles.d.ts +1 -0
- package/dist/components/dock-panel/dock-panel.styles.js +159 -0
- package/dist/components/document-preview/document-preview.d.ts +143 -0
- package/dist/components/document-preview/document-preview.js +388 -0
- package/dist/components/document-preview/document-preview.styles.d.ts +1 -0
- package/dist/components/document-preview/document-preview.styles.js +191 -0
- package/dist/components/empty/empty.d.ts +1 -2
- package/dist/components/empty/empty.js +18 -12
- package/dist/components/empty/empty.styles.js +0 -3
- package/dist/components/export-button/csv.js +1 -1
- package/dist/components/export-button/export-button.d.ts +12 -0
- package/dist/components/export-button/export-button.js +35 -5
- package/dist/components/export-button/export-button.styles.js +5 -1
- package/dist/components/file-input/accept.js +2 -0
- package/dist/components/file-input/file-input.d.ts +10 -1
- package/dist/components/file-input/file-input.js +36 -5
- package/dist/components/flag/flag.d.ts +29 -13
- package/dist/components/flag/flag.js +54 -14
- package/dist/components/flag/flag.styles.js +1 -1
- package/dist/components/flag/language-map.d.ts +4 -1
- package/dist/components/flag/language-map.js +6 -3
- package/dist/components/gauge/gauge.d.ts +10 -1
- package/dist/components/gauge/gauge.js +41 -13
- package/dist/components/generation-status/generation-status.d.ts +117 -0
- package/dist/components/generation-status/generation-status.js +327 -0
- package/dist/components/generation-status/generation-status.styles.d.ts +1 -0
- package/dist/components/generation-status/generation-status.styles.js +84 -0
- package/dist/components/graph/graph.d.ts +37 -3
- package/dist/components/graph/graph.js +132 -20
- package/dist/components/heatmap/calendar-grid.d.ts +19 -7
- package/dist/components/heatmap/calendar-grid.js +42 -18
- package/dist/components/heatmap/heatmap-scale.d.ts +11 -1
- package/dist/components/heatmap/heatmap-scale.js +14 -2
- package/dist/components/heatmap/heatmap.d.ts +227 -12
- package/dist/components/heatmap/heatmap.js +488 -93
- package/dist/components/json-viewer/json-viewer.d.ts +70 -0
- package/dist/components/json-viewer/json-viewer.js +361 -0
- package/dist/components/json-viewer/json-viewer.styles.d.ts +1 -0
- package/dist/components/json-viewer/json-viewer.styles.js +177 -0
- package/dist/components/kbd/kbd.d.ts +77 -0
- package/dist/components/kbd/kbd.js +231 -0
- package/dist/components/kbd/kbd.styles.d.ts +1 -0
- package/dist/components/kbd/kbd.styles.js +52 -0
- package/dist/components/live-region/live-region.d.ts +90 -0
- package/dist/components/live-region/live-region.js +189 -0
- package/dist/components/live-region/live-region.styles.d.ts +1 -0
- package/dist/components/live-region/live-region.styles.js +10 -0
- package/dist/components/map/map.d.ts +32 -7
- package/dist/components/map/map.js +133 -32
- package/dist/components/markdown/markdown-loader.d.ts +58 -0
- package/dist/components/markdown/markdown-loader.js +77 -0
- package/dist/components/markdown/markdown.d.ts +119 -0
- package/dist/components/markdown/markdown.js +389 -0
- package/dist/components/markdown/markdown.styles.d.ts +1 -0
- package/dist/components/markdown/markdown.styles.js +88 -0
- package/dist/components/media-card/media-card.d.ts +130 -0
- package/dist/components/media-card/media-card.js +273 -0
- package/dist/components/media-card/media-card.styles.d.ts +1 -0
- package/dist/components/media-card/media-card.styles.js +132 -0
- package/dist/components/mention-popover/mention-popover.d.ts +203 -0
- package/dist/components/mention-popover/mention-popover.js +493 -0
- package/dist/components/mention-popover/mention-popover.styles.d.ts +1 -0
- package/dist/components/mention-popover/mention-popover.styles.js +101 -0
- package/dist/components/menu/menu-item.d.ts +91 -0
- package/dist/components/menu/menu-item.js +206 -0
- package/dist/components/menu/menu-item.styles.d.ts +1 -0
- package/dist/components/menu/menu-item.styles.js +75 -0
- package/dist/components/menu/menu.d.ts +167 -0
- package/dist/components/menu/menu.js +461 -0
- package/dist/components/menu/menu.styles.d.ts +1 -0
- package/dist/components/menu/menu.styles.js +67 -0
- package/dist/components/model-select/model-select.d.ts +170 -0
- package/dist/components/model-select/model-select.js +588 -0
- package/dist/components/model-select/model-select.styles.d.ts +1 -0
- package/dist/components/model-select/model-select.styles.js +203 -0
- package/dist/components/model-settings-panel/model-settings-panel.d.ts +93 -0
- package/dist/components/model-settings-panel/model-settings-panel.js +209 -0
- package/dist/components/model-settings-panel/model-settings-panel.styles.d.ts +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.styles.js +82 -0
- package/dist/components/playback/playback.d.ts +19 -3
- package/dist/components/playback/playback.js +109 -33
- package/dist/components/playback/playback.styles.js +6 -1
- package/dist/components/responsive-panel/responsive-panel.d.ts +163 -0
- package/dist/components/responsive-panel/responsive-panel.js +363 -0
- package/dist/components/responsive-panel/responsive-panel.styles.d.ts +1 -0
- package/dist/components/responsive-panel/responsive-panel.styles.js +103 -0
- package/dist/components/result-card/result-card.d.ts +50 -0
- package/dist/components/result-card/result-card.js +89 -0
- package/dist/components/result-card/result-card.styles.d.ts +1 -0
- package/dist/components/result-card/result-card.styles.js +49 -0
- package/dist/components/result-card/result-field.d.ts +36 -0
- package/dist/components/result-card/result-field.js +87 -0
- package/dist/components/result-card/result-field.styles.d.ts +1 -0
- package/dist/components/result-card/result-field.styles.js +32 -0
- package/dist/components/select/select.d.ts +84 -4
- package/dist/components/select/select.js +251 -36
- package/dist/components/skeleton/skeleton.d.ts +3 -0
- package/dist/components/skeleton/skeleton.js +7 -1
- package/dist/components/skeleton/skeleton.styles.js +5 -4
- package/dist/components/slider/slider.d.ts +141 -0
- package/dist/components/slider/slider.js +467 -0
- package/dist/components/slider/slider.styles.d.ts +1 -0
- package/dist/components/slider/slider.styles.js +87 -0
- package/dist/components/source-card/source-card.d.ts +104 -0
- package/dist/components/source-card/source-card.js +195 -0
- package/dist/components/source-card/source-card.styles.d.ts +1 -0
- package/dist/components/source-card/source-card.styles.js +69 -0
- package/dist/components/source-list/source-list.d.ts +63 -0
- package/dist/components/source-list/source-list.js +130 -0
- package/dist/components/source-list/source-list.styles.d.ts +1 -0
- package/dist/components/source-list/source-list.styles.js +59 -0
- package/dist/components/sparkline/sparkline.js +58 -20
- package/dist/components/split/split.d.ts +224 -5
- package/dist/components/split/split.js +617 -43
- package/dist/components/split/split.styles.js +47 -0
- package/dist/components/stat/stat.d.ts +15 -4
- package/dist/components/stat/stat.js +53 -12
- package/dist/components/stream-status/stream-status.d.ts +126 -0
- package/dist/components/stream-status/stream-status.js +292 -0
- package/dist/components/stream-status/stream-status.styles.d.ts +1 -0
- package/dist/components/stream-status/stream-status.styles.js +103 -0
- package/dist/components/streaming-text/streaming-text.d.ts +104 -0
- package/dist/components/streaming-text/streaming-text.js +224 -0
- package/dist/components/streaming-text/streaming-text.styles.d.ts +1 -0
- package/dist/components/streaming-text/streaming-text.styles.js +63 -0
- package/dist/components/switch/switch.d.ts +103 -0
- package/dist/components/switch/switch.js +250 -0
- package/dist/components/switch/switch.styles.d.ts +1 -0
- package/dist/components/switch/switch.styles.js +75 -0
- package/dist/components/table/table.d.ts +89 -5
- package/dist/components/table/table.js +243 -26
- package/dist/components/table/table.styles.js +6 -1
- package/dist/components/tabs/tabs.d.ts +74 -0
- package/dist/components/tabs/tabs.js +254 -0
- package/dist/components/tabs/tabs.styles.d.ts +1 -0
- package/dist/components/tabs/tabs.styles.js +74 -0
- package/dist/components/thinking-panel/thinking-panel.d.ts +123 -0
- package/dist/components/thinking-panel/thinking-panel.js +260 -0
- package/dist/components/thinking-panel/thinking-panel.styles.d.ts +1 -0
- package/dist/components/thinking-panel/thinking-panel.styles.js +123 -0
- package/dist/components/time-range/time-range.d.ts +59 -2
- package/dist/components/time-range/time-range.js +163 -67
- package/dist/components/toast/toast-item.d.ts +12 -2
- package/dist/components/toast/toast-item.js +106 -44
- package/dist/components/toast/toast-item.styles.js +59 -28
- package/dist/components/toast/toast.js +17 -5
- package/dist/components/toast/toaster.js +10 -1
- package/dist/components/tool-approval-dialog/tool-approval-dialog.d.ts +131 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.js +329 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.d.ts +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.js +160 -0
- package/dist/components/tool-call-chip/tool-call-chip.d.ts +105 -0
- package/dist/components/tool-call-chip/tool-call-chip.js +349 -0
- package/dist/components/tool-call-chip/tool-call-chip.styles.d.ts +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.styles.js +203 -0
- package/dist/components/tool-param-form/tool-param-form.d.ts +206 -0
- package/dist/components/tool-param-form/tool-param-form.js +610 -0
- package/dist/components/tool-param-form/tool-param-form.styles.d.ts +1 -0
- package/dist/components/tool-param-form/tool-param-form.styles.js +75 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.d.ts +122 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.js +358 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.styles.d.ts +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.styles.js +176 -0
- package/dist/components/tool-result-view/registry.d.ts +73 -0
- package/dist/components/tool-result-view/registry.js +89 -0
- package/dist/components/tool-result-view/tool-result-view.d.ts +58 -0
- package/dist/components/tool-result-view/tool-result-view.js +152 -0
- package/dist/components/tool-result-view/tool-result-view.styles.d.ts +1 -0
- package/dist/components/tool-result-view/tool-result-view.styles.js +13 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.d.ts +151 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.js +350 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.styles.d.ts +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.styles.js +191 -0
- package/dist/components/tree/tree-node.d.ts +15 -3
- package/dist/components/tree/tree-node.js +20 -7
- package/dist/components/tree/tree.d.ts +25 -10
- package/dist/components/tree/tree.js +39 -31
- package/dist/components/typing-indicator/typing-indicator.d.ts +70 -0
- package/dist/components/typing-indicator/typing-indicator.js +108 -0
- package/dist/components/typing-indicator/typing-indicator.styles.d.ts +1 -0
- package/dist/components/typing-indicator/typing-indicator.styles.js +132 -0
- package/dist/components/virtual-list/virtual-list.d.ts +210 -0
- package/dist/components/virtual-list/virtual-list.js +607 -0
- package/dist/components/virtual-list/virtual-list.styles.d.ts +1 -0
- package/dist/components/virtual-list/virtual-list.styles.js +56 -0
- package/dist/components/widget/widget.d.ts +5 -4
- package/dist/components/widget/widget.js +54 -120
- package/dist/components/widget/widget.styles.js +8 -2
- package/dist/components/word-cloud/word-cloud-layout.d.ts +7 -0
- package/dist/components/word-cloud/word-cloud-layout.js +29 -2
- package/dist/components/word-cloud/word-cloud.d.ts +28 -2
- package/dist/components/word-cloud/word-cloud.js +69 -19
- package/dist/components/word-cloud/word-cloud.styles.js +16 -3
- package/dist/internal/anchored-validity.d.ts +1 -0
- package/dist/internal/anchored-validity.js +86 -0
- package/dist/internal/announcer.d.ts +57 -0
- package/dist/internal/announcer.js +71 -0
- package/dist/internal/form-associated.d.ts +8 -0
- package/dist/internal/form-associated.js +98 -15
- package/dist/internal/group-by-recency.d.ts +50 -0
- package/dist/internal/group-by-recency.js +80 -0
- package/dist/internal/numbers.d.ts +12 -0
- package/dist/internal/numbers.js +26 -0
- package/dist/internal/overlay-manager.d.ts +51 -0
- package/dist/internal/overlay-manager.js +523 -0
- package/dist/internal/positioner.js +27 -3
- package/dist/internal/rtl.d.ts +23 -0
- package/dist/internal/rtl.js +28 -0
- package/dist/internal/safe-url.d.ts +12 -0
- package/dist/internal/safe-url.js +41 -0
- package/dist/internal/scroll-lock.d.ts +10 -5
- package/dist/internal/scroll-lock.js +30 -14
- package/dist/internal/tokens.styles.js +22 -10
- package/dist/lyra.d.ts +133 -31
- package/dist/lyra.js +96 -26
- package/llms-full.txt +4546 -183
- package/llms.txt +21 -5
- package/package.json +41 -6
- package/dist/components/chart/bar-chart.stories.d.ts +0 -5
- package/dist/components/chart/bar-chart.stories.js +0 -20
- package/dist/components/chart/box-plot.stories.d.ts +0 -5
- package/dist/components/chart/box-plot.stories.js +0 -29
- package/dist/components/chart/bubble-chart.stories.d.ts +0 -5
- package/dist/components/chart/bubble-chart.stories.js +0 -26
- package/dist/components/chart/chart.stories.d.ts +0 -32
- package/dist/components/chart/chart.stories.js +0 -141
- package/dist/components/chart/doughnut-chart.stories.d.ts +0 -5
- package/dist/components/chart/doughnut-chart.stories.js +0 -26
- package/dist/components/chart/histogram.stories.d.ts +0 -5
- package/dist/components/chart/histogram.stories.js +0 -17
- package/dist/components/chart/line-chart.stories.d.ts +0 -22
- package/dist/components/chart/line-chart.stories.js +0 -99
- package/dist/components/chart/lite-chart.stories.d.ts +0 -14
- package/dist/components/chart/lite-chart.stories.js +0 -114
- package/dist/components/chart/pie-chart.stories.d.ts +0 -5
- package/dist/components/chart/pie-chart.stories.js +0 -26
- package/dist/components/chart/polar-area-chart.stories.d.ts +0 -5
- package/dist/components/chart/polar-area-chart.stories.js +0 -20
- package/dist/components/chart/radar-chart.stories.d.ts +0 -5
- package/dist/components/chart/radar-chart.stories.js +0 -20
- package/dist/components/chart/scatter-chart.stories.d.ts +0 -5
- package/dist/components/chart/scatter-chart.stories.js +0 -31
- package/dist/components/combobox/combobox.stories.d.ts +0 -24
- package/dist/components/combobox/combobox.stories.js +0 -102
- package/dist/components/date-picker/date-input.stories.d.ts +0 -10
- package/dist/components/date-picker/date-input.stories.js +0 -48
- package/dist/components/date-picker/date-picker.stories.d.ts +0 -10
- package/dist/components/date-picker/date-picker.stories.js +0 -25
- package/dist/components/empty/empty.stories.d.ts +0 -7
- package/dist/components/empty/empty.stories.js +0 -34
- package/dist/components/export-button/export-button.stories.d.ts +0 -7
- package/dist/components/export-button/export-button.stories.js +0 -37
- package/dist/components/file-input/file-input.stories.d.ts +0 -7
- package/dist/components/file-input/file-input.stories.js +0 -19
- package/dist/components/flag/flag.stories.d.ts +0 -6
- package/dist/components/flag/flag.stories.js +0 -31
- package/dist/components/gauge/gauge.stories.d.ts +0 -8
- package/dist/components/gauge/gauge.stories.js +0 -19
- package/dist/components/graph/graph.stories.d.ts +0 -8
- package/dist/components/graph/graph.stories.js +0 -68
- package/dist/components/heatmap/heatmap.stories.d.ts +0 -27
- package/dist/components/heatmap/heatmap.stories.js +0 -179
- package/dist/components/map/map.stories.d.ts +0 -15
- package/dist/components/map/map.stories.js +0 -135
- package/dist/components/playback/playback.stories.d.ts +0 -7
- package/dist/components/playback/playback.stories.js +0 -16
- package/dist/components/select/select.stories.d.ts +0 -21
- package/dist/components/select/select.stories.js +0 -91
- package/dist/components/skeleton/skeleton.stories.d.ts +0 -5
- package/dist/components/skeleton/skeleton.stories.js +0 -16
- package/dist/components/sparkline/sparkline.stories.d.ts +0 -11
- package/dist/components/sparkline/sparkline.stories.js +0 -39
- package/dist/components/split/split.stories.d.ts +0 -7
- package/dist/components/split/split.stories.js +0 -36
- package/dist/components/stat/stat.stories.d.ts +0 -9
- package/dist/components/stat/stat.stories.js +0 -81
- package/dist/components/table/table.stories.d.ts +0 -12
- package/dist/components/table/table.stories.js +0 -67
- package/dist/components/time-range/time-range.stories.d.ts +0 -8
- package/dist/components/time-range/time-range.stories.js +0 -26
- package/dist/components/toast/toast.stories.d.ts +0 -8
- package/dist/components/toast/toast.stories.js +0 -72
- package/dist/components/tree/tree.stories.d.ts +0 -9
- package/dist/components/tree/tree.stories.js +0 -52
- package/dist/components/widget/widget.stories.d.ts +0 -9
- package/dist/components/widget/widget.stories.js +0 -74
- package/dist/components/word-cloud/word-cloud.stories.d.ts +0 -10
- package/dist/components/word-cloud/word-cloud.stories.js +0 -55
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Split',
|
|
4
|
-
component: 'lyra-split',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Default = {
|
|
9
|
-
render: () => html `
|
|
10
|
-
<lyra-split style="height: 8rem; border: 1px solid #ddd">
|
|
11
|
-
<div style="padding: 0.5rem">Panel A</div>
|
|
12
|
-
<div style="padding: 0.5rem">Panel B</div>
|
|
13
|
-
<div style="padding: 0.5rem">Panel C</div>
|
|
14
|
-
</lyra-split>
|
|
15
|
-
`,
|
|
16
|
-
};
|
|
17
|
-
export const Vertical = {
|
|
18
|
-
render: () => html `
|
|
19
|
-
<lyra-split orientation="vertical" style="height: 16rem; border: 1px solid #ddd">
|
|
20
|
-
<div style="padding: 0.5rem">Panel A</div>
|
|
21
|
-
<div style="padding: 0.5rem">Panel B</div>
|
|
22
|
-
<div style="padding: 0.5rem">Panel C</div>
|
|
23
|
-
</lyra-split>
|
|
24
|
-
`,
|
|
25
|
-
};
|
|
26
|
-
export const FixedPixelRangePanel = {
|
|
27
|
-
render: () => html `
|
|
28
|
-
<lyra-split
|
|
29
|
-
style="height: 8rem; border: 1px solid #ddd"
|
|
30
|
-
.panelConstraints=${[{ minPx: 160, maxPx: 320 }, null]}
|
|
31
|
-
>
|
|
32
|
-
<div style="padding: 0.5rem">Sidebar — pinned between 160px and 320px regardless of the split's own percent-based sizing or a container resize</div>
|
|
33
|
-
<div style="padding: 0.5rem">Main content — fills the rest, percent-based as usual</div>
|
|
34
|
-
</lyra-split>
|
|
35
|
-
`,
|
|
36
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
type Story = StoryObj;
|
|
5
|
-
export declare const Gallery: Story;
|
|
6
|
-
export declare const SparkAndBreakdown: Story;
|
|
7
|
-
export declare const BreakdownRows: Story;
|
|
8
|
-
export declare const Emphasis: Story;
|
|
9
|
-
export declare const ExactValueSubProseCompact: Story;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Stat',
|
|
4
|
-
component: 'lyra-stat',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Gallery = {
|
|
9
|
-
render: () => html `
|
|
10
|
-
<div class="flex flex-wrap gap-4">
|
|
11
|
-
<lyra-stat label="Revenue" value="12.4" unit="k€" trend="3.2" variant="success"></lyra-stat>
|
|
12
|
-
<lyra-stat label="Errors" value="128" trend="-5.1" variant="danger"></lyra-stat>
|
|
13
|
-
<lyra-stat label="Pending Reviews" value="42" trend="8.6" variant="warning"></lyra-stat>
|
|
14
|
-
<lyra-stat label="Sessions" value="9,204"></lyra-stat>
|
|
15
|
-
<lyra-stat label="Uptime" value="99.98" unit="%" caption="Last 30 days">
|
|
16
|
-
<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2">
|
|
17
|
-
<circle cx="12" cy="12" r="9"></circle>
|
|
18
|
-
</svg>
|
|
19
|
-
</lyra-stat>
|
|
20
|
-
<lyra-stat label="Latency" value="182" unit="ms" trend="14" good-direction="down">
|
|
21
|
-
<span slot="caption">Median over <strong>1,000</strong> requests</span>
|
|
22
|
-
</lyra-stat>
|
|
23
|
-
</div>
|
|
24
|
-
`,
|
|
25
|
-
};
|
|
26
|
-
export const SparkAndBreakdown = {
|
|
27
|
-
render: () => html `
|
|
28
|
-
<div class="flex flex-wrap gap-4">
|
|
29
|
-
<lyra-stat label="Revenue" value="12.4" unit="k€" trend="3.2" variant="success" caption="Last 30 days">
|
|
30
|
-
<lyra-sparkline
|
|
31
|
-
slot="spark"
|
|
32
|
-
type="line"
|
|
33
|
-
.values=${[4, 6, 5, 8, 7, 9, 12, 10, 13, 12.4]}
|
|
34
|
-
></lyra-sparkline>
|
|
35
|
-
</lyra-stat>
|
|
36
|
-
<lyra-stat label="Sessions" value="9,204" caption="By channel">
|
|
37
|
-
<lyra-sparkline slot="spark" type="bar" .values=${[3, 5, 4, 6, 8, 7, 9]}></lyra-sparkline>
|
|
38
|
-
</lyra-stat>
|
|
39
|
-
</div>
|
|
40
|
-
`,
|
|
41
|
-
};
|
|
42
|
-
export const BreakdownRows = {
|
|
43
|
-
render: () => html `
|
|
44
|
-
<div class="flex flex-wrap gap-4">
|
|
45
|
-
<lyra-stat label="Sessions" value="9,204" caption="By channel"></lyra-stat>
|
|
46
|
-
</div>
|
|
47
|
-
`,
|
|
48
|
-
play: async ({ canvasElement }) => {
|
|
49
|
-
const el = canvasElement.querySelector('lyra-stat');
|
|
50
|
-
el.rows = [
|
|
51
|
-
{ label: 'Direct', value: '64%' },
|
|
52
|
-
{ label: 'Referral', value: '21%' },
|
|
53
|
-
{ label: 'Other', value: '15%' },
|
|
54
|
-
];
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
export const Emphasis = {
|
|
58
|
-
render: () => html `
|
|
59
|
-
<div class="flex flex-wrap gap-4">
|
|
60
|
-
<lyra-stat label="Revenue" value="12.4" unit="k€" trend="3.2" emphasis></lyra-stat>
|
|
61
|
-
<lyra-stat label="Errors" value="128" trend="-5.1" variant="danger" emphasis></lyra-stat>
|
|
62
|
-
</div>
|
|
63
|
-
`,
|
|
64
|
-
};
|
|
65
|
-
export const ExactValueSubProseCompact = {
|
|
66
|
-
render: () => html `
|
|
67
|
-
<div class="flex flex-wrap gap-4">
|
|
68
|
-
<lyra-stat
|
|
69
|
-
label="Revenue"
|
|
70
|
-
value="$1.2K"
|
|
71
|
-
exact-value="$1,204.37"
|
|
72
|
-
sub="vs. last week"
|
|
73
|
-
caption="Updated 2h ago"
|
|
74
|
-
trend="3.2"
|
|
75
|
-
variant="success"
|
|
76
|
-
></lyra-stat>
|
|
77
|
-
<lyra-stat label="Status" prose value="Waiting for the next sync…"></lyra-stat>
|
|
78
|
-
<lyra-stat label="Sessions" value="9,204" sub="+312 today" compact></lyra-stat>
|
|
79
|
-
</div>
|
|
80
|
-
`,
|
|
81
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
type Story = StoryObj;
|
|
5
|
-
export declare const Default: Story;
|
|
6
|
-
export declare const Empty: Story;
|
|
7
|
-
export declare const NoColumnsConfigured: Story;
|
|
8
|
-
export declare const ActiveSort: Story;
|
|
9
|
-
export declare const SelectedRow: Story;
|
|
10
|
-
export declare const LoadMore: Story;
|
|
11
|
-
export declare const PriorityAndSticky: Story;
|
|
12
|
-
export declare const RowActions: Story;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const rows = [
|
|
3
|
-
{ id: 'a', name: 'Alpha', score: 92 },
|
|
4
|
-
{ id: 'b', name: 'Beta', score: 81 },
|
|
5
|
-
{ id: 'c', name: 'Gamma', score: 76 },
|
|
6
|
-
];
|
|
7
|
-
const columns = [
|
|
8
|
-
{ key: 'name', label: 'Name', sortable: true, cell: (r) => r.name },
|
|
9
|
-
{ key: 'score', label: 'Score', sortable: true, align: 'end', cell: (r) => r.score },
|
|
10
|
-
];
|
|
11
|
-
const meta = {
|
|
12
|
-
title: 'Table',
|
|
13
|
-
component: 'lyra-table',
|
|
14
|
-
tags: ['autodocs'],
|
|
15
|
-
};
|
|
16
|
-
export default meta;
|
|
17
|
-
export const Default = {
|
|
18
|
-
render: () => html `<lyra-table .columns=${columns} .rows=${rows}></lyra-table>`,
|
|
19
|
-
};
|
|
20
|
-
export const Empty = {
|
|
21
|
-
render: () => html `<lyra-table .columns=${columns} .rows=${[]}></lyra-table>`,
|
|
22
|
-
};
|
|
23
|
-
export const NoColumnsConfigured = {
|
|
24
|
-
render: () => html `<lyra-table .columns=${[]} .rows=${rows}></lyra-table>`,
|
|
25
|
-
};
|
|
26
|
-
export const ActiveSort = {
|
|
27
|
-
render: () => html `<lyra-table .columns=${columns} .rows=${rows} sort-key="score" sort-dir="desc"></lyra-table>`,
|
|
28
|
-
};
|
|
29
|
-
export const SelectedRow = {
|
|
30
|
-
render: () => html `<lyra-table .columns=${columns} .rows=${rows} .selectedKey=${'b'}></lyra-table>`,
|
|
31
|
-
};
|
|
32
|
-
export const LoadMore = {
|
|
33
|
-
render: () => html `<lyra-table .columns=${columns} .rows=${rows} has-more more-label="Load more rows"></lyra-table>`,
|
|
34
|
-
};
|
|
35
|
-
const detailRows = [
|
|
36
|
-
{ id: 'a', name: 'Alpha', score: 92, region: 'EU-West', updated: '2 min ago' },
|
|
37
|
-
{ id: 'b', name: 'Beta', score: 81, region: 'US-East', updated: '5 min ago' },
|
|
38
|
-
{ id: 'c', name: 'Gamma', score: 76, region: 'AP-South', updated: '1 hr ago' },
|
|
39
|
-
];
|
|
40
|
-
// Narrow the story's own container, so the `priority`-hidden columns below
|
|
41
|
-
// actually hide without needing to shrink the whole Storybook viewport.
|
|
42
|
-
const priorityColumns = [
|
|
43
|
-
{ key: 'name', label: 'Name', sortable: true, sticky: true, cell: (r) => r.name },
|
|
44
|
-
{ key: 'score', label: 'Score', sortable: true, align: 'end', cell: (r) => r.score },
|
|
45
|
-
{ key: 'region', label: 'Region', priority: 'medium', cell: (r) => r.region },
|
|
46
|
-
{ key: 'updated', label: 'Updated', priority: 'low', cell: (r) => r.updated },
|
|
47
|
-
];
|
|
48
|
-
export const PriorityAndSticky = {
|
|
49
|
-
render: () => html `<div style="max-width: 420px;">
|
|
50
|
-
<lyra-table .columns=${priorityColumns} .rows=${detailRows}></lyra-table>
|
|
51
|
-
</div>`,
|
|
52
|
-
};
|
|
53
|
-
// A <button> inside cell() must own its own click/Enter activation — the
|
|
54
|
-
// table's row-click delegation must not intercept it (see table.ts's
|
|
55
|
-
// INTERACTIVE_SELECTOR guard).
|
|
56
|
-
const actionColumns = [
|
|
57
|
-
{ key: 'name', label: 'Name', cell: (r) => r.name },
|
|
58
|
-
{ key: 'score', label: 'Score', align: 'end', cell: (r) => r.score },
|
|
59
|
-
{
|
|
60
|
-
key: 'actions',
|
|
61
|
-
label: 'Actions',
|
|
62
|
-
cell: (r) => html `<button type="button" @click=${() => alert(`Editing ${r.name}`)}>Edit</button>`,
|
|
63
|
-
},
|
|
64
|
-
];
|
|
65
|
-
export const RowActions = {
|
|
66
|
-
render: () => html `<lyra-table .columns=${actionColumns} .rows=${rows}></lyra-table>`,
|
|
67
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
type Story = StoryObj;
|
|
5
|
-
export declare const Default: Story;
|
|
6
|
-
export declare const Disabled: Story;
|
|
7
|
-
export declare const CoarseStep: Story;
|
|
8
|
-
export declare const DiscretePresets: Story;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const presets = [
|
|
3
|
-
{ label: 'Last 7 days', start: 0, end: 7 },
|
|
4
|
-
{ label: 'Last 30 days', start: 0, end: 30 },
|
|
5
|
-
{ label: 'Last 90 days', start: 0, end: 90 },
|
|
6
|
-
];
|
|
7
|
-
const meta = {
|
|
8
|
-
title: 'TimeRange',
|
|
9
|
-
component: 'lyra-time-range',
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
export const Default = {
|
|
14
|
-
render: () => html `<lyra-time-range min="0" max="100" start="20" end="80"></lyra-time-range>`,
|
|
15
|
-
};
|
|
16
|
-
export const Disabled = {
|
|
17
|
-
render: () => html `<lyra-time-range min="0" max="100" start="20" end="80" disabled></lyra-time-range>`,
|
|
18
|
-
};
|
|
19
|
-
export const CoarseStep = {
|
|
20
|
-
render: () => html `<lyra-time-range min="0" max="100" start="20" end="80" step="10"></lyra-time-range>`,
|
|
21
|
-
};
|
|
22
|
-
export const DiscretePresets = {
|
|
23
|
-
render: () => html `
|
|
24
|
-
<lyra-time-range min="0" max="90" start="0" end="30" .presets=${presets}></lyra-time-range>
|
|
25
|
-
`,
|
|
26
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
type Story = StoryObj;
|
|
5
|
-
export declare const Triggers: Story;
|
|
6
|
-
export declare const Sizes: Story;
|
|
7
|
-
export declare const WithIcon: Story;
|
|
8
|
-
export declare const Placements: Story;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import { toast } from '../../lyra.js';
|
|
3
|
-
const meta = {
|
|
4
|
-
title: 'Toast',
|
|
5
|
-
component: 'lyra-toast',
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
parameters: {
|
|
8
|
-
docs: {
|
|
9
|
-
description: {
|
|
10
|
-
component: 'Click a button to fire a toast via the `toast()` helper — the ergonomic entry point that lazily mounts one `<lyra-toast>` region per placement on `document.body`.',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
export default meta;
|
|
16
|
-
export const Triggers = {
|
|
17
|
-
render: () => html `
|
|
18
|
-
<div style="display:flex; gap:1rem;">
|
|
19
|
-
<button @click=${() => toast('Just so you know')}>Neutral</button>
|
|
20
|
-
<button @click=${() => toast({ message: 'Saved!', variant: 'success' })}>Success</button>
|
|
21
|
-
<button
|
|
22
|
-
@click=${() => toast({
|
|
23
|
-
message: 'Item deleted',
|
|
24
|
-
variant: 'danger',
|
|
25
|
-
duration: 0,
|
|
26
|
-
action: { label: 'Undo', onClick: (item) => item.hide() },
|
|
27
|
-
})}
|
|
28
|
-
>
|
|
29
|
-
Danger + action
|
|
30
|
-
</button>
|
|
31
|
-
</div>
|
|
32
|
-
`,
|
|
33
|
-
};
|
|
34
|
-
const sizes = ['xs', 's', 'm', 'l', 'xl'];
|
|
35
|
-
export const Sizes = {
|
|
36
|
-
render: () => html `
|
|
37
|
-
<div style="display:flex; gap:1rem;">
|
|
38
|
-
${sizes.map((size) => html `<button @click=${() => toast({ message: `Size "${size}"`, size })}>${size}</button>`)}
|
|
39
|
-
</div>
|
|
40
|
-
`,
|
|
41
|
-
};
|
|
42
|
-
export const WithIcon = {
|
|
43
|
-
render: () => html `
|
|
44
|
-
<div style="display:flex; gap:1rem;">
|
|
45
|
-
<button
|
|
46
|
-
@click=${() => toast({ message: 'Upload complete', variant: 'success', withIcon: true }).item.then((item) => {
|
|
47
|
-
const icon = document.createElement('span');
|
|
48
|
-
icon.slot = 'icon';
|
|
49
|
-
icon.textContent = '✓';
|
|
50
|
-
item.appendChild(icon);
|
|
51
|
-
})}
|
|
52
|
-
>
|
|
53
|
-
Success + icon
|
|
54
|
-
</button>
|
|
55
|
-
</div>
|
|
56
|
-
`,
|
|
57
|
-
};
|
|
58
|
-
const placements = [
|
|
59
|
-
'top-start',
|
|
60
|
-
'top-center',
|
|
61
|
-
'top-end',
|
|
62
|
-
'bottom-start',
|
|
63
|
-
'bottom-center',
|
|
64
|
-
'bottom-end',
|
|
65
|
-
];
|
|
66
|
-
export const Placements = {
|
|
67
|
-
render: () => html `
|
|
68
|
-
<div style="display:flex; flex-wrap:wrap; gap:1rem;">
|
|
69
|
-
${placements.map((placement) => html `<button @click=${() => toast({ message: placement, placement })}>${placement}</button>`)}
|
|
70
|
-
</div>
|
|
71
|
-
`,
|
|
72
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
type Story = StoryObj;
|
|
5
|
-
export declare const Default: Story;
|
|
6
|
-
/** Demonstrates the imperative `expandAll()`/`collapseAll()` methods. */
|
|
7
|
-
export declare const ExpandCollapseAll: Story;
|
|
8
|
-
/** A single branch nested well past the 8rem indentation cap, so the capped indent and truncated label are both visible without expanding anything by hand. */
|
|
9
|
-
export declare const DeeplyNested: Story;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const data = [
|
|
3
|
-
{
|
|
4
|
-
id: '1',
|
|
5
|
-
label: 'Root',
|
|
6
|
-
badge: 2,
|
|
7
|
-
children: [
|
|
8
|
-
{ id: '1.1', label: 'Child A' },
|
|
9
|
-
{ id: '1.2', label: 'Child B' },
|
|
10
|
-
],
|
|
11
|
-
},
|
|
12
|
-
{ id: '2', label: 'Leaf' },
|
|
13
|
-
];
|
|
14
|
-
const meta = {
|
|
15
|
-
title: 'Tree',
|
|
16
|
-
component: 'lyra-tree',
|
|
17
|
-
tags: ['autodocs'],
|
|
18
|
-
};
|
|
19
|
-
export default meta;
|
|
20
|
-
export const Default = {
|
|
21
|
-
render: () => html `<lyra-tree style="max-width: 20rem" label="File explorer" .data=${data}></lyra-tree>`,
|
|
22
|
-
};
|
|
23
|
-
/** Demonstrates the imperative `expandAll()`/`collapseAll()` methods. */
|
|
24
|
-
export const ExpandCollapseAll = {
|
|
25
|
-
render: () => {
|
|
26
|
-
const getTree = () => document.getElementById('imperative-tree');
|
|
27
|
-
return html `
|
|
28
|
-
<div style="display:flex; flex-direction:column; gap:1rem; max-width:20rem">
|
|
29
|
-
<div style="display:flex; gap:0.5rem">
|
|
30
|
-
<button @click=${() => getTree().expandAll()}>Expand all</button>
|
|
31
|
-
<button @click=${() => getTree().collapseAll()}>Collapse all</button>
|
|
32
|
-
</div>
|
|
33
|
-
<lyra-tree id="imperative-tree" label="File explorer" .data=${data}></lyra-tree>
|
|
34
|
-
</div>
|
|
35
|
-
`;
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const buildDeepData = (depth) => {
|
|
39
|
-
let node = { id: `d${depth}`, label: `A very long deeply-nested label all the way at depth ${depth}` };
|
|
40
|
-
for (let d = depth - 1; d >= 0; d--) {
|
|
41
|
-
node = { id: `d${d}`, label: `Level ${d} node with a fairly long descriptive label`, children: [node] };
|
|
42
|
-
}
|
|
43
|
-
return [node];
|
|
44
|
-
};
|
|
45
|
-
/** A single branch nested well past the 8rem indentation cap, so the capped indent and truncated label are both visible without expanding anything by hand. */
|
|
46
|
-
export const DeeplyNested = {
|
|
47
|
-
render: () => html `<lyra-tree style="max-width: 20rem" label="Deeply nested example" .data=${buildDeepData(12)}></lyra-tree>`,
|
|
48
|
-
play: async ({ canvasElement }) => {
|
|
49
|
-
const tree = canvasElement.querySelector('lyra-tree');
|
|
50
|
-
tree.expandAll();
|
|
51
|
-
},
|
|
52
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
type Story = StoryObj;
|
|
5
|
-
export declare const Default: Story;
|
|
6
|
-
export declare const CollapsedInitially: Story;
|
|
7
|
-
export declare const FullscreenInitially: Story;
|
|
8
|
-
export declare const FullscreenWithSidebarInset: Story;
|
|
9
|
-
export declare const Compact: Story;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Widget',
|
|
4
|
-
component: 'lyra-widget',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Default = {
|
|
9
|
-
render: () => html `
|
|
10
|
-
<lyra-widget
|
|
11
|
-
label="Load profile"
|
|
12
|
-
sublabel="Last 7 days"
|
|
13
|
-
collapsible
|
|
14
|
-
expandable
|
|
15
|
-
style="max-width: 28rem;"
|
|
16
|
-
>
|
|
17
|
-
<span slot="actions"><button>Refresh</button></span>
|
|
18
|
-
<div style="padding: 1rem;">
|
|
19
|
-
<p style="margin: 0 0 0.5rem;">Panel body content — a chart, a table, anything.</p>
|
|
20
|
-
<p style="margin: 0; color: #666;">Click the chevron to collapse, or the expand icon to go fullscreen.</p>
|
|
21
|
-
</div>
|
|
22
|
-
</lyra-widget>
|
|
23
|
-
`,
|
|
24
|
-
};
|
|
25
|
-
export const CollapsedInitially = {
|
|
26
|
-
render: () => html `
|
|
27
|
-
<lyra-widget label="Alerts" sublabel="3 active" collapsible collapsed style="max-width: 28rem;">
|
|
28
|
-
<div style="padding: 1rem;">This body is hidden until the panel is expanded.</div>
|
|
29
|
-
</lyra-widget>
|
|
30
|
-
`,
|
|
31
|
-
};
|
|
32
|
-
export const FullscreenInitially = {
|
|
33
|
-
render: () => html `
|
|
34
|
-
<lyra-widget label="Load profile" sublabel="Last 7 days" expandable fullscreen style="max-width: 28rem;">
|
|
35
|
-
<span slot="actions"><button>Refresh</button></span>
|
|
36
|
-
<div style="padding: 1rem;">
|
|
37
|
-
<p style="margin: 0;">Rendered already fullscreen — backdrop, fixed panel, and dialog semantics.</p>
|
|
38
|
-
</div>
|
|
39
|
-
</lyra-widget>
|
|
40
|
-
`,
|
|
41
|
-
};
|
|
42
|
-
export const FullscreenWithSidebarInset = {
|
|
43
|
-
render: () => html `
|
|
44
|
-
<div style="position: relative;">
|
|
45
|
-
<div
|
|
46
|
-
style="position: fixed; inset: 0 auto 0 0; inline-size: 240px; background: #1e293b; color: #fff; padding: 1rem; z-index: 1001;"
|
|
47
|
-
>
|
|
48
|
-
Persistent sidebar (stays visible above the widget's fullscreen panel)
|
|
49
|
-
</div>
|
|
50
|
-
<lyra-widget
|
|
51
|
-
label="Load profile"
|
|
52
|
-
sublabel="Last 7 days"
|
|
53
|
-
expandable
|
|
54
|
-
fullscreen
|
|
55
|
-
fullscreen-inset="0 0 0 240px"
|
|
56
|
-
style="max-width: 28rem;"
|
|
57
|
-
>
|
|
58
|
-
<div style="padding: 1rem;">
|
|
59
|
-
<p style="margin: 0;">
|
|
60
|
-
Fullscreen with <code>fullscreen-inset="0 0 0 240px"</code> — the panel and backdrop leave
|
|
61
|
-
room for the 240px sidebar instead of covering it.
|
|
62
|
-
</p>
|
|
63
|
-
</div>
|
|
64
|
-
</lyra-widget>
|
|
65
|
-
</div>
|
|
66
|
-
`,
|
|
67
|
-
};
|
|
68
|
-
export const Compact = {
|
|
69
|
-
render: () => html `
|
|
70
|
-
<lyra-widget label="Alerts" sublabel="3 active" compact collapsible expandable style="max-width: 28rem;">
|
|
71
|
-
<div style="padding: 0.5rem;">Tighter header/body padding for constrained spaces.</div>
|
|
72
|
-
</lyra-widget>
|
|
73
|
-
`,
|
|
74
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
type Story = StoryObj;
|
|
5
|
-
export declare const Default: Story;
|
|
6
|
-
export declare const SqrtScale: Story;
|
|
7
|
-
export declare const MixedOrientation: Story;
|
|
8
|
-
export declare const GroupedColors: Story;
|
|
9
|
-
export declare const CustomPalette: Story;
|
|
10
|
-
export declare const Empty: Story;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'WordCloud',
|
|
4
|
-
component: 'lyra-word-cloud',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
const WORDS = [
|
|
9
|
-
{ text: 'JavaScript', weight: 90 },
|
|
10
|
-
{ text: 'TypeScript', weight: 75 },
|
|
11
|
-
{ text: 'Lit', weight: 60 },
|
|
12
|
-
{ text: 'Web Components', weight: 55 },
|
|
13
|
-
{ text: 'HTML', weight: 40 },
|
|
14
|
-
{ text: 'CSS', weight: 38 },
|
|
15
|
-
{ text: 'Shadow DOM', weight: 25 },
|
|
16
|
-
{ text: 'Custom Elements', weight: 22 },
|
|
17
|
-
{ text: 'Accessibility', weight: 18 },
|
|
18
|
-
{ text: 'SVG', weight: 15 },
|
|
19
|
-
{ text: 'Design Tokens', weight: 12 },
|
|
20
|
-
{ text: 'Testing', weight: 10 },
|
|
21
|
-
];
|
|
22
|
-
export const Default = {
|
|
23
|
-
render: () => html `<lyra-word-cloud .words=${WORDS} style="height: 20rem"></lyra-word-cloud>`,
|
|
24
|
-
};
|
|
25
|
-
export const SqrtScale = {
|
|
26
|
-
render: () => html `<lyra-word-cloud .words=${WORDS} scale="sqrt" style="height: 20rem"></lyra-word-cloud>`,
|
|
27
|
-
};
|
|
28
|
-
export const MixedOrientation = {
|
|
29
|
-
render: () => html `<lyra-word-cloud .words=${WORDS} orientations="mixed" style="height: 20rem"></lyra-word-cloud>`,
|
|
30
|
-
};
|
|
31
|
-
export const GroupedColors = {
|
|
32
|
-
render: () => html `<lyra-word-cloud
|
|
33
|
-
style="height: 20rem"
|
|
34
|
-
.words=${[
|
|
35
|
-
{ text: 'React', weight: 80, group: 'framework' },
|
|
36
|
-
{ text: 'Vue', weight: 60, group: 'framework' },
|
|
37
|
-
{ text: 'Svelte', weight: 40, group: 'framework' },
|
|
38
|
-
{ text: 'Jest', weight: 55, group: 'testing' },
|
|
39
|
-
{ text: 'Playwright', weight: 45, group: 'testing' },
|
|
40
|
-
{ text: 'Vitest', weight: 30, group: 'testing' },
|
|
41
|
-
{ text: 'Vite', weight: 50, group: 'tooling' },
|
|
42
|
-
{ text: 'esbuild', weight: 20, group: 'tooling' },
|
|
43
|
-
]}
|
|
44
|
-
></lyra-word-cloud>`,
|
|
45
|
-
};
|
|
46
|
-
export const CustomPalette = {
|
|
47
|
-
render: () => html `<lyra-word-cloud
|
|
48
|
-
style="height: 20rem"
|
|
49
|
-
.words=${WORDS}
|
|
50
|
-
.palette=${['#e63946', '#f1a208', '#2a9d8f', '#264653']}
|
|
51
|
-
></lyra-word-cloud>`,
|
|
52
|
-
};
|
|
53
|
-
export const Empty = {
|
|
54
|
-
render: () => html `<lyra-word-cloud style="height: 10rem"></lyra-word-cloud>`,
|
|
55
|
-
};
|