@aceshooting/lyra-ui 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/custom-elements.json +21460 -8489
- package/dist/components/app-rail/app-rail.d.ts +171 -0
- package/dist/components/app-rail/app-rail.js +483 -0
- package/dist/components/app-rail/app-rail.styles.d.ts +1 -0
- package/dist/components/app-rail/app-rail.styles.js +125 -0
- package/dist/components/attachment-chip/attachment-chip.d.ts +114 -0
- package/dist/components/attachment-chip/attachment-chip.js +312 -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 +83 -0
- package/dist/components/attachment-trigger/attachment-trigger.js +258 -0
- package/dist/components/attachment-trigger/attachment-trigger.styles.d.ts +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.styles.js +68 -0
- package/dist/components/chart/box-plot.js +11 -1
- 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 +12 -2
- package/dist/components/chart/chart.js +121 -14
- package/dist/components/chart/histogram-bin.d.ts +4 -1
- package/dist/components/chart/histogram-bin.js +24 -14
- package/dist/components/chart/lite-chart.d.ts +63 -0
- package/dist/components/chart/lite-chart.js +181 -23
- package/dist/components/chart/lite-chart.styles.js +9 -0
- package/dist/components/chat-composer/chat-composer.d.ts +92 -0
- package/dist/components/chat-composer/chat-composer.js +285 -0
- package/dist/components/chat-composer/chat-composer.styles.d.ts +1 -0
- package/dist/components/chat-composer/chat-composer.styles.js +135 -0
- package/dist/components/chat-message/chat-message.d.ts +113 -0
- package/dist/components/chat-message/chat-message.js +291 -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 +59 -0
- package/dist/components/checkbox/checkbox.js +230 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -0
- package/dist/components/checkbox/checkbox.styles.js +70 -0
- package/dist/components/chip/chip-group.d.ts +56 -0
- package/dist/components/chip/chip-group.js +124 -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 +115 -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 +300 -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 +89 -0
- package/dist/components/code-block/code-block.js +317 -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 +44 -0
- package/dist/components/code-block/code-loader.js +79 -0
- package/dist/components/combobox/combobox.d.ts +19 -1
- package/dist/components/combobox/combobox.js +84 -14
- 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 +150 -0
- package/dist/components/context-meter/context-meter.styles.d.ts +1 -0
- package/dist/components/context-meter/context-meter.styles.js +120 -0
- package/dist/components/conversation-item/conversation-item.d.ts +128 -0
- package/dist/components/conversation-item/conversation-item.js +322 -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/date-input.d.ts +24 -0
- package/dist/components/date-picker/date-input.js +134 -22
- package/dist/components/date-picker/date-picker.d.ts +7 -0
- package/dist/components/date-picker/date-picker.js +85 -16
- package/dist/components/dialog/confirm.d.ts +40 -0
- package/dist/components/dialog/confirm.js +79 -0
- package/dist/components/dialog/dialog.d.ts +85 -0
- package/dist/components/dialog/dialog.js +272 -0
- package/dist/components/dialog/dialog.styles.d.ts +1 -0
- package/dist/components/dialog/dialog.styles.js +52 -0
- package/dist/components/dock-panel/dock-panel.d.ts +134 -0
- package/dist/components/dock-panel/dock-panel.js +345 -0
- package/dist/components/dock-panel/dock-panel.styles.d.ts +1 -0
- package/dist/components/dock-panel/dock-panel.styles.js +145 -0
- package/dist/components/document-preview/document-preview.d.ts +135 -0
- package/dist/components/document-preview/document-preview.js +372 -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/export-button/csv.js +1 -1
- package/dist/components/export-button/export-button.js +2 -0
- package/dist/components/flag/flag.d.ts +42 -5
- package/dist/components/flag/flag.js +70 -3
- package/dist/components/gauge/gauge.js +19 -10
- package/dist/components/generation-status/generation-status.d.ts +109 -0
- package/dist/components/generation-status/generation-status.js +273 -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/heatmap/calendar-grid.d.ts +4 -1
- package/dist/components/heatmap/calendar-grid.js +25 -12
- package/dist/components/heatmap/heatmap-scale.d.ts +6 -0
- package/dist/components/heatmap/heatmap-scale.js +7 -1
- package/dist/components/heatmap/heatmap.d.ts +89 -3
- package/dist/components/heatmap/heatmap.js +158 -29
- package/dist/components/json-viewer/json-viewer.d.ts +53 -0
- package/dist/components/json-viewer/json-viewer.js +283 -0
- package/dist/components/json-viewer/json-viewer.styles.d.ts +1 -0
- package/dist/components/json-viewer/json-viewer.styles.js +176 -0
- package/dist/components/kbd/kbd.d.ts +77 -0
- package/dist/components/kbd/kbd.js +214 -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 +81 -0
- package/dist/components/live-region/live-region.js +153 -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 +8 -6
- package/dist/components/map/map.js +44 -8
- package/dist/components/markdown/markdown-loader.d.ts +34 -0
- package/dist/components/markdown/markdown-loader.js +43 -0
- package/dist/components/markdown/markdown.d.ts +81 -0
- package/dist/components/markdown/markdown.js +284 -0
- package/dist/components/markdown/markdown.styles.d.ts +1 -0
- package/dist/components/markdown/markdown.styles.js +82 -0
- package/dist/components/media-card/media-card.d.ts +122 -0
- package/dist/components/media-card/media-card.js +295 -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 +200 -0
- package/dist/components/mention-popover/mention-popover.js +475 -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 +62 -0
- package/dist/components/menu/menu-item.js +119 -0
- package/dist/components/menu/menu-item.styles.d.ts +1 -0
- package/dist/components/menu/menu-item.styles.js +67 -0
- package/dist/components/menu/menu.d.ts +143 -0
- package/dist/components/menu/menu.js +365 -0
- package/dist/components/menu/menu.styles.d.ts +1 -0
- package/dist/components/menu/menu.styles.js +66 -0
- package/dist/components/model-select/model-select.d.ts +125 -0
- package/dist/components/model-select/model-select.js +490 -0
- package/dist/components/model-select/model-select.styles.d.ts +1 -0
- package/dist/components/model-select/model-select.styles.js +189 -0
- package/dist/components/model-settings-panel/model-settings-panel.d.ts +69 -0
- package/dist/components/model-settings-panel/model-settings-panel.js +145 -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 +13 -1
- package/dist/components/playback/playback.js +47 -14
- package/dist/components/responsive-panel/responsive-panel.d.ts +150 -0
- package/dist/components/responsive-panel/responsive-panel.js +365 -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 +44 -0
- package/dist/components/result-card/result-card.js +83 -0
- package/dist/components/result-card/result-card.styles.d.ts +1 -0
- package/dist/components/result-card/result-card.styles.js +50 -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 +45 -1
- package/dist/components/select/select.js +114 -17
- package/dist/components/select/select.styles.js +26 -2
- package/dist/components/slider/slider.d.ts +89 -0
- package/dist/components/slider/slider.js +352 -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 +92 -0
- package/dist/components/source-card/source-card.js +148 -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 +122 -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 +27 -13
- package/dist/components/split/split.d.ts +93 -1
- package/dist/components/split/split.js +284 -15
- package/dist/components/split/split.styles.js +30 -0
- package/dist/components/stat/stat.d.ts +22 -1
- package/dist/components/stat/stat.js +49 -3
- package/dist/components/stat/stat.styles.js +20 -0
- package/dist/components/stream-status/stream-status.d.ts +110 -0
- package/dist/components/stream-status/stream-status.js +210 -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 +98 -0
- package/dist/components/streaming-text/streaming-text.js +209 -0
- package/dist/components/streaming-text/streaming-text.styles.d.ts +1 -0
- package/dist/components/streaming-text/streaming-text.styles.js +62 -0
- package/dist/components/switch/switch.d.ts +58 -0
- package/dist/components/switch/switch.js +179 -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 +73 -4
- package/dist/components/table/table.js +169 -20
- package/dist/components/table/table.styles.js +6 -1
- package/dist/components/tabs/tabs.d.ts +51 -0
- package/dist/components/tabs/tabs.js +190 -0
- package/dist/components/tabs/tabs.styles.d.ts +1 -0
- package/dist/components/tabs/tabs.styles.js +63 -0
- package/dist/components/thinking-panel/thinking-panel.d.ts +121 -0
- package/dist/components/thinking-panel/thinking-panel.js +235 -0
- package/dist/components/thinking-panel/thinking-panel.styles.d.ts +1 -0
- package/dist/components/thinking-panel/thinking-panel.styles.js +117 -0
- package/dist/components/toast/toast-item.d.ts +1 -0
- package/dist/components/toast/toast-item.js +31 -6
- package/dist/components/tool-approval-dialog/tool-approval-dialog.d.ts +130 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.js +403 -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 +89 -0
- package/dist/components/tool-call-chip/tool-call-chip.js +288 -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 +145 -0
- package/dist/components/tool-param-form/tool-param-form.js +366 -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 +102 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.js +393 -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 +81 -0
- package/dist/components/tool-result-view/registry.js +84 -0
- package/dist/components/tool-result-view/tool-result-view.d.ts +55 -0
- package/dist/components/tool-result-view/tool-result-view.js +138 -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 +439 -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 +182 -0
- package/dist/components/tree/tree-node.d.ts +11 -2
- package/dist/components/tree/tree-node.js +16 -6
- package/dist/components/tree/tree.d.ts +8 -2
- package/dist/components/tree/tree.js +18 -11
- package/dist/components/typing-indicator/typing-indicator.d.ts +60 -0
- package/dist/components/typing-indicator/typing-indicator.js +96 -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 +173 -0
- package/dist/components/virtual-list/virtual-list.js +461 -0
- package/dist/components/virtual-list/virtual-list.styles.d.ts +1 -0
- package/dist/components/virtual-list/virtual-list.styles.js +44 -0
- package/dist/components/widget/widget.d.ts +10 -0
- package/dist/components/widget/widget.js +24 -1
- package/dist/components/widget/widget.styles.js +9 -2
- package/dist/components/word-cloud/word-cloud-layout.js +14 -1
- package/dist/components/word-cloud/word-cloud.d.ts +6 -0
- package/dist/components/word-cloud/word-cloud.js +25 -14
- package/dist/components/word-cloud/word-cloud.styles.js +4 -2
- package/dist/internal/announcer.d.ts +57 -0
- package/dist/internal/announcer.js +71 -0
- package/dist/internal/form-associated.d.ts +1 -0
- package/dist/internal/form-associated.js +55 -11
- package/dist/internal/group-by-recency.d.ts +50 -0
- package/dist/internal/group-by-recency.js +80 -0
- package/dist/internal/rtl.d.ts +23 -0
- package/dist/internal/rtl.js +28 -0
- package/dist/internal/scroll-lock.d.ts +10 -5
- package/dist/internal/scroll-lock.js +30 -14
- package/dist/internal/tokens.styles.js +6 -0
- package/dist/lyra.d.ts +130 -31
- package/dist/lyra.js +94 -26
- package/llms-full.txt +3921 -32
- package/llms.txt +16 -1
- package/package.json +23 -5
- 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 -12
- package/dist/components/chart/lite-chart.stories.js +0 -98
- 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 -5
- package/dist/components/flag/flag.stories.js +0 -17
- 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 -22
- package/dist/components/heatmap/heatmap.stories.js +0 -154
- 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 -19
- package/dist/components/select/select.stories.js +0 -75
- 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 -8
- package/dist/components/stat/stat.stories.js +0 -64
- 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 -7
- package/dist/components/widget/widget.stories.js +0 -41
- package/dist/components/word-cloud/word-cloud.stories.d.ts +0 -10
- package/dist/components/word-cloud/word-cloud.stories.js +0 -55
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Charts/LiteChart',
|
|
4
|
-
component: 'lyra-lite-chart',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
/** Zero-dependency alternative to `lyra-chart` — plain SVG/DOM, no `chart.js` peer dep. */
|
|
9
|
-
export const Default = {
|
|
10
|
-
render: () => {
|
|
11
|
-
const series = [{ label: 'Revenue', data: [12, 19, 14, 22] }];
|
|
12
|
-
return html `
|
|
13
|
-
<lyra-lite-chart
|
|
14
|
-
type="bar"
|
|
15
|
-
height="16rem"
|
|
16
|
-
style="width: 22rem"
|
|
17
|
-
legend
|
|
18
|
-
.labels=${['Q1', 'Q2', 'Q3', 'Q4']}
|
|
19
|
-
.datasets=${series}
|
|
20
|
-
></lyra-lite-chart>
|
|
21
|
-
`;
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
export const GroupedBars = {
|
|
25
|
-
render: () => {
|
|
26
|
-
const series = [
|
|
27
|
-
{ label: 'This year', data: [12, 19, 14, 22] },
|
|
28
|
-
{ label: 'Last year', data: [9, 15, 11, 18] },
|
|
29
|
-
];
|
|
30
|
-
return html `
|
|
31
|
-
<lyra-lite-chart
|
|
32
|
-
type="bar"
|
|
33
|
-
height="16rem"
|
|
34
|
-
style="width: 24rem"
|
|
35
|
-
legend
|
|
36
|
-
.labels=${['Q1', 'Q2', 'Q3', 'Q4']}
|
|
37
|
-
.datasets=${series}
|
|
38
|
-
></lyra-lite-chart>
|
|
39
|
-
`;
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
/** `stacked` sums each category's bars into one segmented bar instead of grouping them side by side. */
|
|
43
|
-
export const StackedBars = {
|
|
44
|
-
render: () => {
|
|
45
|
-
const series = [
|
|
46
|
-
{ label: 'Docs', data: [4, 6, 3, 8] },
|
|
47
|
-
{ label: 'Bugs', data: [3, 2, 5, 4] },
|
|
48
|
-
{ label: 'Features', data: [5, 7, 6, 3] },
|
|
49
|
-
];
|
|
50
|
-
return html `
|
|
51
|
-
<lyra-lite-chart
|
|
52
|
-
type="bar"
|
|
53
|
-
stacked
|
|
54
|
-
height="16rem"
|
|
55
|
-
style="width: 24rem"
|
|
56
|
-
legend
|
|
57
|
-
x-label="Week"
|
|
58
|
-
y-label="Commits"
|
|
59
|
-
.labels=${['W1', 'W2', 'W3', 'W4']}
|
|
60
|
-
.datasets=${series}
|
|
61
|
-
></lyra-lite-chart>
|
|
62
|
-
`;
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
export const Line = {
|
|
66
|
-
render: () => {
|
|
67
|
-
const series = [
|
|
68
|
-
{ label: 'CPU', data: [20, 35, 42, 30, 55] },
|
|
69
|
-
{ label: 'Memory', data: [40, 38, 45, 60, 58] },
|
|
70
|
-
];
|
|
71
|
-
return html `
|
|
72
|
-
<lyra-lite-chart
|
|
73
|
-
type="line"
|
|
74
|
-
height="16rem"
|
|
75
|
-
style="width: 24rem"
|
|
76
|
-
legend
|
|
77
|
-
.labels=${['00:00', '00:05', '00:10', '00:15', '00:20']}
|
|
78
|
-
.datasets=${series}
|
|
79
|
-
></lyra-lite-chart>
|
|
80
|
-
`;
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
/** Clicking (or Enter/Space on a focused) bar/point fires `lyra-point-click`, same detail shape as `lyra-chart`'s. */
|
|
84
|
-
export const ClickToFilter = {
|
|
85
|
-
render: () => {
|
|
86
|
-
const series = [{ label: 'Runs', data: [12, 19, 14, 22] }];
|
|
87
|
-
return html `
|
|
88
|
-
<lyra-lite-chart
|
|
89
|
-
type="bar"
|
|
90
|
-
height="16rem"
|
|
91
|
-
style="width: 22rem"
|
|
92
|
-
.labels=${['Q1', 'Q2', 'Q3', 'Q4']}
|
|
93
|
-
.datasets=${series}
|
|
94
|
-
@lyra-point-click=${(e) => alert(JSON.stringify(e.detail))}
|
|
95
|
-
></lyra-lite-chart>
|
|
96
|
-
`;
|
|
97
|
-
},
|
|
98
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Charts/Pie',
|
|
4
|
-
component: 'lyra-pie-chart',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Default = {
|
|
9
|
-
render: () => {
|
|
10
|
-
const series = [
|
|
11
|
-
{
|
|
12
|
-
label: 'Browsers',
|
|
13
|
-
data: [58, 18, 15, 9],
|
|
14
|
-
color: ['#5b8def', '#f7b955', '#59c19a', '#b6b8c3'],
|
|
15
|
-
},
|
|
16
|
-
];
|
|
17
|
-
return html `
|
|
18
|
-
<lyra-pie-chart
|
|
19
|
-
height="16rem"
|
|
20
|
-
style="width: 16rem"
|
|
21
|
-
.labels=${['Chrome', 'Firefox', 'Safari', 'Other']}
|
|
22
|
-
.datasets=${series}
|
|
23
|
-
></lyra-pie-chart>
|
|
24
|
-
`;
|
|
25
|
-
},
|
|
26
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Charts/PolarArea',
|
|
4
|
-
component: 'lyra-polar-area-chart',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Default = {
|
|
9
|
-
render: () => {
|
|
10
|
-
const series = [{ label: 'Revenue', data: [12, 19, 14, 22] }];
|
|
11
|
-
return html `
|
|
12
|
-
<lyra-polar-area-chart
|
|
13
|
-
height="16rem"
|
|
14
|
-
style="width: 18rem"
|
|
15
|
-
.labels=${['Q1', 'Q2', 'Q3', 'Q4']}
|
|
16
|
-
.datasets=${series}
|
|
17
|
-
></lyra-polar-area-chart>
|
|
18
|
-
`;
|
|
19
|
-
},
|
|
20
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Charts/Radar',
|
|
4
|
-
component: 'lyra-radar-chart',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Default = {
|
|
9
|
-
render: () => {
|
|
10
|
-
const series = [{ label: 'Model A', data: [80, 90, 70, 85, 75] }];
|
|
11
|
-
return html `
|
|
12
|
-
<lyra-radar-chart
|
|
13
|
-
height="16rem"
|
|
14
|
-
style="width: 22rem"
|
|
15
|
-
.labels=${['Speed', 'Reliability', 'Comfort', 'Safety', 'Efficiency']}
|
|
16
|
-
.datasets=${series}
|
|
17
|
-
></lyra-radar-chart>
|
|
18
|
-
`;
|
|
19
|
-
},
|
|
20
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Charts/Scatter',
|
|
4
|
-
component: 'lyra-scatter-chart',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Default = {
|
|
9
|
-
render: () => {
|
|
10
|
-
const series = [
|
|
11
|
-
{
|
|
12
|
-
label: 'Samples',
|
|
13
|
-
points: [
|
|
14
|
-
{ x: 10, y: 20 },
|
|
15
|
-
{ x: 15, y: 10 },
|
|
16
|
-
{ x: 20, y: 30 },
|
|
17
|
-
{ x: 25, y: 15 },
|
|
18
|
-
],
|
|
19
|
-
},
|
|
20
|
-
];
|
|
21
|
-
return html `
|
|
22
|
-
<lyra-scatter-chart
|
|
23
|
-
height="16rem"
|
|
24
|
-
style="width: 22rem"
|
|
25
|
-
x-label="X"
|
|
26
|
-
y-label="Y"
|
|
27
|
-
.datasets=${series}
|
|
28
|
-
></lyra-scatter-chart>
|
|
29
|
-
`;
|
|
30
|
-
},
|
|
31
|
-
};
|
|
@@ -1,24 +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 Multiple: Story;
|
|
7
|
-
/**
|
|
8
|
-
* Rows come from `<lyra-option>` children plus `group` (section headers),
|
|
9
|
-
* `sub` (a secondary line), and `dot-color` (a leading status dot) — useful
|
|
10
|
-
* for richer pickers like a device or status list.
|
|
11
|
-
*/
|
|
12
|
-
export declare const RichRows: Story;
|
|
13
|
-
/**
|
|
14
|
-
* `source` replaces the light-DOM `<lyra-option>` list with an async
|
|
15
|
-
* `(query) => Promise<ComboboxSourceRow[]>` lookup, debounced ~200ms after
|
|
16
|
-
* each keystroke. A "Loading…" row is shown while a call is in flight.
|
|
17
|
-
*/
|
|
18
|
-
export declare const AsyncSource: Story;
|
|
19
|
-
/**
|
|
20
|
-
* `filter` overrides the default label/searchText matcher entirely, e.g. to
|
|
21
|
-
* match only from the start of the label instead of anywhere within it.
|
|
22
|
-
*/
|
|
23
|
-
export declare const CustomFilter: Story;
|
|
24
|
-
export declare const States: Story;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Combobox',
|
|
4
|
-
component: 'lyra-combobox',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Default = {
|
|
9
|
-
render: () => html `
|
|
10
|
-
<lyra-combobox label="Fruit" placeholder="Pick one…" with-clear style="max-width: 20rem">
|
|
11
|
-
<lyra-option value="a">Apple</lyra-option>
|
|
12
|
-
<lyra-option value="b">Banana</lyra-option>
|
|
13
|
-
<lyra-option value="c">Cherry</lyra-option>
|
|
14
|
-
<lyra-option value="d">Date</lyra-option>
|
|
15
|
-
</lyra-combobox>
|
|
16
|
-
`,
|
|
17
|
-
};
|
|
18
|
-
export const Multiple = {
|
|
19
|
-
render: () => html `
|
|
20
|
-
<lyra-combobox label="Fruit" multiple with-clear style="max-width: 20rem">
|
|
21
|
-
<lyra-option value="a">Apple</lyra-option>
|
|
22
|
-
<lyra-option value="b">Banana</lyra-option>
|
|
23
|
-
<lyra-option value="c">Cherry</lyra-option>
|
|
24
|
-
<lyra-option value="d">Date</lyra-option>
|
|
25
|
-
</lyra-combobox>
|
|
26
|
-
`,
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Rows come from `<lyra-option>` children plus `group` (section headers),
|
|
30
|
-
* `sub` (a secondary line), and `dot-color` (a leading status dot) — useful
|
|
31
|
-
* for richer pickers like a device or status list.
|
|
32
|
-
*/
|
|
33
|
-
export const RichRows = {
|
|
34
|
-
render: () => html `
|
|
35
|
-
<lyra-combobox label="Inverter" placeholder="Pick one…" style="max-width: 22rem">
|
|
36
|
-
<lyra-option value="inv-1" group="Building A" sub="Running" dot-color="var(--lyra-color-success)">
|
|
37
|
-
Inverter 1
|
|
38
|
-
</lyra-option>
|
|
39
|
-
<lyra-option value="inv-2" group="Building A" sub="Idle" dot-color="var(--lyra-color-text-quiet)">
|
|
40
|
-
Inverter 2
|
|
41
|
-
</lyra-option>
|
|
42
|
-
<lyra-option value="inv-3" group="Building B" sub="Fault" dot-color="var(--lyra-color-danger)">
|
|
43
|
-
Inverter 3
|
|
44
|
-
</lyra-option>
|
|
45
|
-
</lyra-combobox>
|
|
46
|
-
`,
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* `source` replaces the light-DOM `<lyra-option>` list with an async
|
|
50
|
-
* `(query) => Promise<ComboboxSourceRow[]>` lookup, debounced ~200ms after
|
|
51
|
-
* each keystroke. A "Loading…" row is shown while a call is in flight.
|
|
52
|
-
*/
|
|
53
|
-
export const AsyncSource = {
|
|
54
|
-
render: () => {
|
|
55
|
-
const all = ['Apple', 'Banana', 'Cherry', 'Date', 'Elderberry', 'Fig', 'Grape'];
|
|
56
|
-
const source = async (query) => {
|
|
57
|
-
await new Promise((r) => setTimeout(r, 400));
|
|
58
|
-
return all
|
|
59
|
-
.filter((label) => label.toLowerCase().includes(query.toLowerCase()))
|
|
60
|
-
.map((label) => ({ value: label.toLowerCase(), label }));
|
|
61
|
-
};
|
|
62
|
-
return html `
|
|
63
|
-
<lyra-combobox label="Fruit (async)" placeholder="Type to search…" with-clear
|
|
64
|
-
style="max-width: 22rem" .source=${source}
|
|
65
|
-
></lyra-combobox>
|
|
66
|
-
`;
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* `filter` overrides the default label/searchText matcher entirely, e.g. to
|
|
71
|
-
* match only from the start of the label instead of anywhere within it.
|
|
72
|
-
*/
|
|
73
|
-
export const CustomFilter = {
|
|
74
|
-
render: () => {
|
|
75
|
-
const startsWith = (option, query) => option.label.toLowerCase().startsWith(query.toLowerCase());
|
|
76
|
-
return html `
|
|
77
|
-
<lyra-combobox label="Fruit (starts with…)" placeholder="Try “an”…" style="max-width: 22rem"
|
|
78
|
-
.filter=${startsWith}
|
|
79
|
-
>
|
|
80
|
-
<lyra-option value="a">Apple</lyra-option>
|
|
81
|
-
<lyra-option value="b">Banana</lyra-option>
|
|
82
|
-
<lyra-option value="c">Cherry</lyra-option>
|
|
83
|
-
<lyra-option value="d">Date</lyra-option>
|
|
84
|
-
</lyra-combobox>
|
|
85
|
-
`;
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
export const States = {
|
|
89
|
-
render: () => html `
|
|
90
|
-
<div style="display: flex; flex-direction: column; gap: 1.5rem; max-width: 22rem">
|
|
91
|
-
<lyra-combobox label="Disabled" disabled placeholder="Can't touch this">
|
|
92
|
-
<lyra-option value="a">Apple</lyra-option>
|
|
93
|
-
</lyra-combobox>
|
|
94
|
-
<lyra-combobox label="Required" required hint="Pick your favorite">
|
|
95
|
-
<lyra-option value="a">Apple</lyra-option>
|
|
96
|
-
</lyra-combobox>
|
|
97
|
-
<lyra-combobox label="Invalid" required error-text="Selection required">
|
|
98
|
-
<lyra-option value="a">Apple</lyra-option>
|
|
99
|
-
</lyra-combobox>
|
|
100
|
-
</div>
|
|
101
|
-
`,
|
|
102
|
-
};
|
|
@@ -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 MinMax: Story;
|
|
7
|
-
export declare const DisablePast: Story;
|
|
8
|
-
export declare const DisableFuture: Story;
|
|
9
|
-
export declare const Range: Story;
|
|
10
|
-
export declare const WithOutsideDays: Story;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'DatePicker/WithInput',
|
|
4
|
-
component: 'lyra-date-input',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Default = {
|
|
9
|
-
render: () => html `
|
|
10
|
-
<lyra-date-input label="Start date" with-clear style="max-width: 16rem"></lyra-date-input>
|
|
11
|
-
`,
|
|
12
|
-
};
|
|
13
|
-
export const MinMax = {
|
|
14
|
-
render: () => html `
|
|
15
|
-
<lyra-date-input
|
|
16
|
-
label="Appointment date"
|
|
17
|
-
min="2026-07-10"
|
|
18
|
-
max="2026-07-20"
|
|
19
|
-
value="2026-07-15"
|
|
20
|
-
style="max-width: 16rem"
|
|
21
|
-
></lyra-date-input>
|
|
22
|
-
`,
|
|
23
|
-
};
|
|
24
|
-
export const DisablePast = {
|
|
25
|
-
render: () => html `
|
|
26
|
-
<lyra-date-input label="Upcoming date" disable-past style="max-width: 16rem"></lyra-date-input>
|
|
27
|
-
`,
|
|
28
|
-
};
|
|
29
|
-
export const DisableFuture = {
|
|
30
|
-
render: () => html `
|
|
31
|
-
<lyra-date-input label="Historical date" disable-future style="max-width: 16rem"></lyra-date-input>
|
|
32
|
-
`,
|
|
33
|
-
};
|
|
34
|
-
export const Range = {
|
|
35
|
-
render: () => html `
|
|
36
|
-
<lyra-date-input label="Trip dates" mode="range" months="2" style="max-width: 20rem"></lyra-date-input>
|
|
37
|
-
`,
|
|
38
|
-
};
|
|
39
|
-
export const WithOutsideDays = {
|
|
40
|
-
render: () => html `
|
|
41
|
-
<lyra-date-input
|
|
42
|
-
label="Meeting date"
|
|
43
|
-
with-outside-days
|
|
44
|
-
value="2026-07-15"
|
|
45
|
-
style="max-width: 16rem"
|
|
46
|
-
></lyra-date-input>
|
|
47
|
-
`,
|
|
48
|
-
};
|
|
@@ -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 Single: Story;
|
|
6
|
-
export declare const Range: Story;
|
|
7
|
-
export declare const MinMax: Story;
|
|
8
|
-
export declare const DisablePast: Story;
|
|
9
|
-
export declare const DisableFuture: Story;
|
|
10
|
-
export declare const WithOutsideDays: Story;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'DatePicker/Inline',
|
|
4
|
-
component: 'lyra-date-picker',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Single = {
|
|
9
|
-
render: () => html `<lyra-date-picker mode="single"></lyra-date-picker>`,
|
|
10
|
-
};
|
|
11
|
-
export const Range = {
|
|
12
|
-
render: () => html `<lyra-date-picker mode="range" months="2"></lyra-date-picker>`,
|
|
13
|
-
};
|
|
14
|
-
export const MinMax = {
|
|
15
|
-
render: () => html `<lyra-date-picker min="2026-07-10" max="2026-07-20" value="2026-07-15"></lyra-date-picker>`,
|
|
16
|
-
};
|
|
17
|
-
export const DisablePast = {
|
|
18
|
-
render: () => html `<lyra-date-picker disable-past></lyra-date-picker>`,
|
|
19
|
-
};
|
|
20
|
-
export const DisableFuture = {
|
|
21
|
-
render: () => html `<lyra-date-picker disable-future></lyra-date-picker>`,
|
|
22
|
-
};
|
|
23
|
-
export const WithOutsideDays = {
|
|
24
|
-
render: () => html `<lyra-date-picker with-outside-days value="2026-07-15"></lyra-date-picker>`,
|
|
25
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Empty',
|
|
4
|
-
component: 'lyra-empty',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Default = {
|
|
9
|
-
render: () => html `
|
|
10
|
-
<lyra-empty heading="No results" description="Try a different search.">
|
|
11
|
-
<span slot="actions"><button>Reset</button></span>
|
|
12
|
-
</lyra-empty>
|
|
13
|
-
`,
|
|
14
|
-
};
|
|
15
|
-
export const WithIcon = {
|
|
16
|
-
render: () => html `
|
|
17
|
-
<lyra-empty heading="No results" description="Try a different search.">
|
|
18
|
-
<svg slot="" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
19
|
-
<circle cx="11" cy="11" r="7" stroke-width="2"></circle>
|
|
20
|
-
<path d="M21 21l-4.35-4.35" stroke-width="2" stroke-linecap="round"></path>
|
|
21
|
-
</svg>
|
|
22
|
-
<span slot="actions"><button>Reset</button></span>
|
|
23
|
-
</lyra-empty>
|
|
24
|
-
`,
|
|
25
|
-
};
|
|
26
|
-
export const Compact = {
|
|
27
|
-
render: () => html `
|
|
28
|
-
<div style="max-width: 16rem; border: 1px solid var(--lyra-color-border);">
|
|
29
|
-
<lyra-empty compact heading="No results" description="Try a different search.">
|
|
30
|
-
<span slot="actions"><button>Reset</button></span>
|
|
31
|
-
</lyra-empty>
|
|
32
|
-
</div>
|
|
33
|
-
`,
|
|
34
|
-
};
|
|
@@ -1,7 +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 SingleFormat: Story;
|
|
6
|
-
export declare const MultiFormatMenu: Story;
|
|
7
|
-
export declare const Disabled: Story;
|
|
@@ -1,37 +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: 'id', label: 'ID' },
|
|
9
|
-
{ key: 'name', label: 'Name' },
|
|
10
|
-
{ key: 'score', label: 'Score' },
|
|
11
|
-
];
|
|
12
|
-
const meta = {
|
|
13
|
-
title: 'ExportButton',
|
|
14
|
-
component: 'lyra-export-button',
|
|
15
|
-
tags: ['autodocs'],
|
|
16
|
-
};
|
|
17
|
-
export default meta;
|
|
18
|
-
export const SingleFormat = {
|
|
19
|
-
render: () => html `
|
|
20
|
-
<lyra-export-button filename="demo" .rows=${rows} .columns=${columns}></lyra-export-button>
|
|
21
|
-
`,
|
|
22
|
-
};
|
|
23
|
-
export const MultiFormatMenu = {
|
|
24
|
-
render: () => html `
|
|
25
|
-
<lyra-export-button
|
|
26
|
-
filename="demo"
|
|
27
|
-
.rows=${rows}
|
|
28
|
-
.columns=${columns}
|
|
29
|
-
.formats=${['csv', 'json']}
|
|
30
|
-
></lyra-export-button>
|
|
31
|
-
`,
|
|
32
|
-
};
|
|
33
|
-
export const Disabled = {
|
|
34
|
-
render: () => html `
|
|
35
|
-
<lyra-export-button filename="demo" .rows=${rows} .columns=${columns} disabled></lyra-export-button>
|
|
36
|
-
`,
|
|
37
|
-
};
|
|
@@ -1,7 +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 CustomSlotContent: Story;
|
|
7
|
-
export declare const Disabled: Story;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'FileInput',
|
|
4
|
-
component: 'lyra-file-input',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Default = {
|
|
9
|
-
render: () => html `<lyra-file-input multiple accept=".csv,.xlsx"></lyra-file-input>`,
|
|
10
|
-
};
|
|
11
|
-
export const CustomSlotContent = {
|
|
12
|
-
render: () => html `<lyra-file-input multiple accept=".csv,.xlsx" label="Upload spreadsheets">
|
|
13
|
-
<strong>Drag spreadsheets here</strong>
|
|
14
|
-
<span>or click to browse (.csv, .xlsx)</span>
|
|
15
|
-
</lyra-file-input>`,
|
|
16
|
-
};
|
|
17
|
-
export const Disabled = {
|
|
18
|
-
render: () => html `<lyra-file-input disabled accept=".csv,.xlsx"></lyra-file-input>`,
|
|
19
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Flag',
|
|
4
|
-
component: 'lyra-flag',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Gallery = {
|
|
9
|
-
render: () => html `
|
|
10
|
-
<div style="display:flex; gap:1rem; align-items:center;">
|
|
11
|
-
<lyra-flag country="fr" label="France" style="height: 1.5rem"></lyra-flag>
|
|
12
|
-
<lyra-flag language="en" label="English" style="height: 1.5rem"></lyra-flag>
|
|
13
|
-
<lyra-flag language="de" label="German" round style="height: 1.5rem"></lyra-flag>
|
|
14
|
-
<lyra-flag country="jp" label="Japan" round style="height: 1.5rem"></lyra-flag>
|
|
15
|
-
</div>
|
|
16
|
-
`,
|
|
17
|
-
};
|
|
@@ -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 Radial: Story;
|
|
6
|
-
export declare const Linear: Story;
|
|
7
|
-
export declare const WithValueLabel: Story;
|
|
8
|
-
export declare const NonzeroMin: Story;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
const meta = {
|
|
3
|
-
title: 'Gauge',
|
|
4
|
-
component: 'lyra-gauge',
|
|
5
|
-
tags: ['autodocs'],
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
export const Radial = {
|
|
9
|
-
render: () => html `<lyra-gauge value="72" max="100" label="CPU"></lyra-gauge>`,
|
|
10
|
-
};
|
|
11
|
-
export const Linear = {
|
|
12
|
-
render: () => html `<lyra-gauge type="linear" value="40" max="100" label="Disk"></lyra-gauge>`,
|
|
13
|
-
};
|
|
14
|
-
export const WithValueLabel = {
|
|
15
|
-
render: () => html `<lyra-gauge value="72" max="100" label="Temp" .valueLabel=${'72°F'}></lyra-gauge>`,
|
|
16
|
-
};
|
|
17
|
-
export const NonzeroMin = {
|
|
18
|
-
render: () => html `<lyra-gauge value="18" min="-20" max="40" label="Outdoor Temp"></lyra-gauge>`,
|
|
19
|
-
};
|
|
@@ -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 TunedForces: Story;
|
|
7
|
-
export declare const BoundedZoom: Story;
|
|
8
|
-
export declare const SeededLayout: Story;
|