@aceshooting/lyra-ui 2.1.0 → 2.3.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 +39 -17
- package/custom-elements.json +43158 -20263
- package/dist/components/app-rail/app-rail-item.class.d.ts +51 -0
- package/dist/components/app-rail/app-rail-item.class.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail-item.class.js +128 -0
- package/dist/components/app-rail/app-rail-item.class.js.map +1 -0
- package/dist/components/app-rail/app-rail-item.d.ts +2 -30
- package/dist/components/app-rail/app-rail-item.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail-item.js +3 -66
- package/dist/components/app-rail/app-rail-item.js.map +1 -0
- package/dist/components/app-rail/app-rail-item.styles.d.ts +1 -0
- package/dist/components/app-rail/app-rail-item.styles.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail-item.styles.js +20 -3
- package/dist/components/app-rail/app-rail-item.styles.js.map +1 -0
- package/dist/components/app-rail/app-rail.class.d.ts +225 -0
- package/dist/components/app-rail/app-rail.class.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail.class.js +567 -0
- package/dist/components/app-rail/app-rail.class.js.map +1 -0
- package/dist/components/app-rail/app-rail.d.ts +3 -168
- package/dist/components/app-rail/app-rail.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail.js +4 -417
- package/dist/components/app-rail/app-rail.js.map +1 -0
- package/dist/components/app-rail/app-rail.styles.d.ts +1 -0
- package/dist/components/app-rail/app-rail.styles.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail.styles.js +45 -10
- package/dist/components/app-rail/app-rail.styles.js.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.class.d.ts +157 -0
- package/dist/components/attachment-chip/attachment-chip.class.d.ts.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.class.js +379 -0
- package/dist/components/attachment-chip/attachment-chip.class.js.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.d.ts +2 -141
- package/dist/components/attachment-chip/attachment-chip.d.ts.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.js +3 -354
- package/dist/components/attachment-chip/attachment-chip.js.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.styles.d.ts +1 -0
- package/dist/components/attachment-chip/attachment-chip.styles.d.ts.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.styles.js +36 -13
- package/dist/components/attachment-chip/attachment-chip.styles.js.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.d.ts +109 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.d.ts.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.js +278 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.js.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.d.ts +4 -96
- package/dist/components/attachment-trigger/attachment-trigger.d.ts.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.js +5 -268
- package/dist/components/attachment-trigger/attachment-trigger.js.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.styles.d.ts +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.styles.d.ts.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.styles.js +21 -6
- package/dist/components/attachment-trigger/attachment-trigger.styles.js.map +1 -0
- package/dist/components/avatar/avatar.class.d.ts +43 -0
- package/dist/components/avatar/avatar.class.d.ts.map +1 -0
- package/dist/components/avatar/avatar.class.js +75 -0
- package/dist/components/avatar/avatar.class.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +2 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +5 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/avatar.styles.d.ts +2 -0
- package/dist/components/avatar/avatar.styles.d.ts.map +1 -0
- package/dist/components/avatar/avatar.styles.js +55 -0
- package/dist/components/avatar/avatar.styles.js.map +1 -0
- package/dist/components/card/card.class.d.ts +52 -0
- package/dist/components/card/card.class.d.ts.map +1 -0
- package/dist/components/card/card.class.js +111 -0
- package/dist/components/card/card.class.js.map +1 -0
- package/dist/components/card/card.d.ts +2 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.js +5 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/card/card.styles.d.ts +2 -0
- package/dist/components/card/card.styles.d.ts.map +1 -0
- package/dist/components/card/card.styles.js +77 -0
- package/dist/components/card/card.styles.js.map +1 -0
- package/dist/components/chart/bar-chart.class.d.ts +15 -0
- package/dist/components/chart/bar-chart.class.d.ts.map +1 -0
- package/dist/components/chart/bar-chart.class.js +10 -0
- package/dist/components/chart/bar-chart.class.js.map +1 -0
- package/dist/components/chart/bar-chart.d.ts +3 -14
- package/dist/components/chart/bar-chart.d.ts.map +1 -0
- package/dist/components/chart/bar-chart.js +4 -9
- package/dist/components/chart/bar-chart.js.map +1 -0
- package/dist/components/chart/box-plot.class.d.ts +78 -0
- package/dist/components/chart/box-plot.class.d.ts.map +1 -0
- package/dist/components/chart/box-plot.class.js +320 -0
- package/dist/components/chart/box-plot.class.js.map +1 -0
- package/dist/components/chart/box-plot.d.ts +3 -77
- package/dist/components/chart/box-plot.d.ts.map +1 -0
- package/dist/components/chart/box-plot.js +4 -319
- package/dist/components/chart/box-plot.js.map +1 -0
- package/dist/components/chart/box-plot.styles.d.ts +1 -0
- package/dist/components/chart/box-plot.styles.d.ts.map +1 -0
- package/dist/components/chart/box-plot.styles.js +2 -1
- package/dist/components/chart/box-plot.styles.js.map +1 -0
- package/dist/components/chart/bubble-chart.class.d.ts +19 -0
- package/dist/components/chart/bubble-chart.class.d.ts.map +1 -0
- package/dist/components/chart/bubble-chart.class.js +14 -0
- package/dist/components/chart/bubble-chart.class.js.map +1 -0
- package/dist/components/chart/bubble-chart.d.ts +3 -18
- package/dist/components/chart/bubble-chart.d.ts.map +1 -0
- package/dist/components/chart/bubble-chart.js +4 -13
- package/dist/components/chart/bubble-chart.js.map +1 -0
- package/dist/components/chart/chart-loader.d.ts +12 -9
- package/dist/components/chart/chart-loader.d.ts.map +1 -0
- package/dist/components/chart/chart-loader.js +1 -0
- package/dist/components/chart/chart-loader.js.map +1 -0
- package/dist/components/chart/chart.class.d.ts +209 -0
- package/dist/components/chart/chart.class.d.ts.map +1 -0
- package/dist/components/chart/chart.class.js +692 -0
- package/dist/components/chart/chart.class.js.map +1 -0
- package/dist/components/chart/chart.d.ts +3 -196
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/chart.js +4 -682
- package/dist/components/chart/chart.js.map +1 -0
- package/dist/components/chart/chart.styles.d.ts +1 -0
- package/dist/components/chart/chart.styles.d.ts.map +1 -0
- package/dist/components/chart/chart.styles.js +5 -4
- package/dist/components/chart/chart.styles.js.map +1 -0
- package/dist/components/chart/doughnut-chart.class.d.ts +15 -0
- package/dist/components/chart/doughnut-chart.class.d.ts.map +1 -0
- package/dist/components/chart/doughnut-chart.class.js +10 -0
- package/dist/components/chart/doughnut-chart.class.js.map +1 -0
- package/dist/components/chart/doughnut-chart.d.ts +3 -14
- package/dist/components/chart/doughnut-chart.d.ts.map +1 -0
- package/dist/components/chart/doughnut-chart.js +4 -9
- package/dist/components/chart/doughnut-chart.js.map +1 -0
- package/dist/components/chart/histogram-bin.d.ts +1 -0
- package/dist/components/chart/histogram-bin.d.ts.map +1 -0
- package/dist/components/chart/histogram-bin.js +1 -0
- package/dist/components/chart/histogram-bin.js.map +1 -0
- package/dist/components/chart/histogram.class.d.ts +23 -0
- package/dist/components/chart/histogram.class.d.ts.map +1 -0
- package/dist/components/chart/histogram.class.js +91 -0
- package/dist/components/chart/histogram.class.js.map +1 -0
- package/dist/components/chart/histogram.d.ts +3 -22
- package/dist/components/chart/histogram.d.ts.map +1 -0
- package/dist/components/chart/histogram.js +4 -90
- package/dist/components/chart/histogram.js.map +1 -0
- package/dist/components/chart/histogram.styles.d.ts +1 -0
- package/dist/components/chart/histogram.styles.d.ts.map +1 -0
- package/dist/components/chart/histogram.styles.js +1 -0
- package/dist/components/chart/histogram.styles.js.map +1 -0
- package/dist/components/chart/line-chart.class.d.ts +15 -0
- package/dist/components/chart/line-chart.class.d.ts.map +1 -0
- package/dist/components/chart/line-chart.class.js +10 -0
- package/dist/components/chart/line-chart.class.js.map +1 -0
- package/dist/components/chart/line-chart.d.ts +3 -14
- package/dist/components/chart/line-chart.d.ts.map +1 -0
- package/dist/components/chart/line-chart.js +4 -9
- package/dist/components/chart/line-chart.js.map +1 -0
- package/dist/components/chart/lite-chart.class.d.ts +244 -0
- package/dist/components/chart/lite-chart.class.d.ts.map +1 -0
- package/dist/components/chart/lite-chart.class.js +845 -0
- package/dist/components/chart/lite-chart.class.js.map +1 -0
- package/dist/components/chart/lite-chart.d.ts +2 -214
- package/dist/components/chart/lite-chart.d.ts.map +1 -0
- package/dist/components/chart/lite-chart.js +3 -737
- package/dist/components/chart/lite-chart.js.map +1 -0
- package/dist/components/chart/lite-chart.styles.d.ts +1 -0
- package/dist/components/chart/lite-chart.styles.d.ts.map +1 -0
- package/dist/components/chart/lite-chart.styles.js +23 -10
- package/dist/components/chart/lite-chart.styles.js.map +1 -0
- package/dist/components/chart/pie-chart.class.d.ts +16 -0
- package/dist/components/chart/pie-chart.class.d.ts.map +1 -0
- package/dist/components/chart/pie-chart.class.js +11 -0
- package/dist/components/chart/pie-chart.class.js.map +1 -0
- package/dist/components/chart/pie-chart.d.ts +3 -15
- package/dist/components/chart/pie-chart.d.ts.map +1 -0
- package/dist/components/chart/pie-chart.js +4 -10
- package/dist/components/chart/pie-chart.js.map +1 -0
- package/dist/components/chart/polar-area-chart.class.d.ts +15 -0
- package/dist/components/chart/polar-area-chart.class.d.ts.map +1 -0
- package/dist/components/chart/polar-area-chart.class.js +10 -0
- package/dist/components/chart/polar-area-chart.class.js.map +1 -0
- package/dist/components/chart/polar-area-chart.d.ts +3 -14
- package/dist/components/chart/polar-area-chart.d.ts.map +1 -0
- package/dist/components/chart/polar-area-chart.js +4 -9
- package/dist/components/chart/polar-area-chart.js.map +1 -0
- package/dist/components/chart/radar-chart.class.d.ts +15 -0
- package/dist/components/chart/radar-chart.class.d.ts.map +1 -0
- package/dist/components/chart/radar-chart.class.js +10 -0
- package/dist/components/chart/radar-chart.class.js.map +1 -0
- package/dist/components/chart/radar-chart.d.ts +3 -14
- package/dist/components/chart/radar-chart.d.ts.map +1 -0
- package/dist/components/chart/radar-chart.js +4 -9
- package/dist/components/chart/radar-chart.js.map +1 -0
- package/dist/components/chart/scatter-chart.class.d.ts +16 -0
- package/dist/components/chart/scatter-chart.class.d.ts.map +1 -0
- package/dist/components/chart/scatter-chart.class.js +11 -0
- package/dist/components/chart/scatter-chart.class.js.map +1 -0
- package/dist/components/chart/scatter-chart.d.ts +3 -15
- package/dist/components/chart/scatter-chart.d.ts.map +1 -0
- package/dist/components/chart/scatter-chart.js +4 -10
- package/dist/components/chart/scatter-chart.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.class.d.ts +145 -0
- package/dist/components/chat-composer/chat-composer.class.d.ts.map +1 -0
- package/dist/components/chat-composer/chat-composer.class.js +367 -0
- package/dist/components/chat-composer/chat-composer.class.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.d.ts +2 -133
- package/dist/components/chat-composer/chat-composer.d.ts.map +1 -0
- package/dist/components/chat-composer/chat-composer.js +3 -364
- package/dist/components/chat-composer/chat-composer.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.styles.d.ts +1 -0
- package/dist/components/chat-composer/chat-composer.styles.d.ts.map +1 -0
- package/dist/components/chat-composer/chat-composer.styles.js +5 -4
- package/dist/components/chat-composer/chat-composer.styles.js.map +1 -0
- package/dist/components/chat-message/chat-message.class.d.ts +145 -0
- package/dist/components/chat-message/chat-message.class.d.ts.map +1 -0
- package/dist/components/chat-message/chat-message.class.js +330 -0
- package/dist/components/chat-message/chat-message.class.js.map +1 -0
- package/dist/components/chat-message/chat-message.d.ts +3 -141
- package/dist/components/chat-message/chat-message.d.ts.map +1 -0
- package/dist/components/chat-message/chat-message.js +4 -329
- package/dist/components/chat-message/chat-message.js.map +1 -0
- package/dist/components/chat-message/chat-message.styles.d.ts +1 -0
- package/dist/components/chat-message/chat-message.styles.d.ts.map +1 -0
- package/dist/components/chat-message/chat-message.styles.js +13 -12
- package/dist/components/chat-message/chat-message.styles.js.map +1 -0
- package/dist/components/checkbox/checkbox.class.d.ts +123 -0
- package/dist/components/checkbox/checkbox.class.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.class.js +352 -0
- package/dist/components/checkbox/checkbox.class.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +2 -117
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +3 -351
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -0
- package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.styles.js +5 -4
- package/dist/components/checkbox/checkbox.styles.js.map +1 -0
- package/dist/components/chip/chip-group.class.d.ts +57 -0
- package/dist/components/chip/chip-group.class.d.ts.map +1 -0
- package/dist/components/chip/chip-group.class.js +129 -0
- package/dist/components/chip/chip-group.class.js.map +1 -0
- package/dist/components/chip/chip-group.d.ts +2 -56
- package/dist/components/chip/chip-group.d.ts.map +1 -0
- package/dist/components/chip/chip-group.js +3 -128
- package/dist/components/chip/chip-group.js.map +1 -0
- package/dist/components/chip/chip-group.styles.d.ts +1 -0
- package/dist/components/chip/chip-group.styles.d.ts.map +1 -0
- package/dist/components/chip/chip-group.styles.js +7 -6
- package/dist/components/chip/chip-group.styles.js.map +1 -0
- package/dist/components/chip/chip.class.d.ts +83 -0
- package/dist/components/chip/chip.class.d.ts.map +1 -0
- package/dist/components/chip/chip.class.js +158 -0
- package/dist/components/chip/chip.class.js.map +1 -0
- package/dist/components/chip/chip.d.ts +2 -64
- package/dist/components/chip/chip.d.ts.map +1 -0
- package/dist/components/chip/chip.js +3 -120
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/chip/chip.styles.d.ts +1 -0
- package/dist/components/chip/chip.styles.d.ts.map +1 -0
- package/dist/components/chip/chip.styles.js +31 -12
- package/dist/components/chip/chip.styles.js.map +1 -0
- package/dist/components/citation-badge/citation-badge.class.d.ts +114 -0
- package/dist/components/citation-badge/citation-badge.class.d.ts.map +1 -0
- package/dist/components/citation-badge/citation-badge.class.js +317 -0
- package/dist/components/citation-badge/citation-badge.class.js.map +1 -0
- package/dist/components/citation-badge/citation-badge.d.ts +2 -113
- package/dist/components/citation-badge/citation-badge.d.ts.map +1 -0
- package/dist/components/citation-badge/citation-badge.js +3 -316
- package/dist/components/citation-badge/citation-badge.js.map +1 -0
- package/dist/components/citation-badge/citation-badge.styles.d.ts +1 -0
- package/dist/components/citation-badge/citation-badge.styles.d.ts.map +1 -0
- package/dist/components/citation-badge/citation-badge.styles.js +12 -11
- package/dist/components/citation-badge/citation-badge.styles.js.map +1 -0
- package/dist/components/code-block/code-block-core.class.d.ts +111 -0
- package/dist/components/code-block/code-block-core.class.d.ts.map +1 -0
- package/dist/components/code-block/code-block-core.class.js +363 -0
- package/dist/components/code-block/code-block-core.class.js.map +1 -0
- package/dist/components/code-block/code-block-core.d.ts +3 -0
- package/dist/components/code-block/code-block-core.d.ts.map +1 -0
- package/dist/components/code-block/code-block-core.js +6 -0
- package/dist/components/code-block/code-block-core.js.map +1 -0
- package/dist/components/code-block/code-block.class.d.ts +141 -0
- package/dist/components/code-block/code-block.class.d.ts.map +1 -0
- package/dist/components/code-block/code-block.class.js +398 -0
- package/dist/components/code-block/code-block.class.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +3 -127
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.js +4 -380
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/code-block/code-block.styles.d.ts +1 -0
- package/dist/components/code-block/code-block.styles.d.ts.map +1 -0
- package/dist/components/code-block/code-block.styles.js +25 -21
- package/dist/components/code-block/code-block.styles.js.map +1 -0
- package/dist/components/code-block/code-loader.d.ts +8 -7
- package/dist/components/code-block/code-loader.d.ts.map +1 -0
- package/dist/components/code-block/code-loader.js +1 -0
- package/dist/components/code-block/code-loader.js.map +1 -0
- package/dist/components/combobox/combobox.class.d.ts +205 -0
- package/dist/components/combobox/combobox.class.d.ts.map +1 -0
- package/dist/components/combobox/combobox.class.js +892 -0
- package/dist/components/combobox/combobox.class.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +3 -199
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/combobox.js +4 -891
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/combobox/combobox.styles.d.ts +1 -0
- package/dist/components/combobox/combobox.styles.d.ts.map +1 -0
- package/dist/components/combobox/combobox.styles.js +34 -33
- package/dist/components/combobox/combobox.styles.js.map +1 -0
- package/dist/components/combobox/option.class.d.ts +44 -0
- package/dist/components/combobox/option.class.d.ts.map +1 -0
- package/dist/components/combobox/option.class.js +101 -0
- package/dist/components/combobox/option.class.js.map +1 -0
- package/dist/components/combobox/option.d.ts +2 -40
- package/dist/components/combobox/option.d.ts.map +1 -0
- package/dist/components/combobox/option.js +3 -109
- package/dist/components/combobox/option.js.map +1 -0
- package/dist/components/context-meter/context-meter.class.d.ts +54 -0
- package/dist/components/context-meter/context-meter.class.d.ts.map +1 -0
- package/dist/components/context-meter/context-meter.class.js +158 -0
- package/dist/components/context-meter/context-meter.class.js.map +1 -0
- package/dist/components/context-meter/context-meter.d.ts +2 -53
- package/dist/components/context-meter/context-meter.d.ts.map +1 -0
- package/dist/components/context-meter/context-meter.js +3 -157
- package/dist/components/context-meter/context-meter.js.map +1 -0
- package/dist/components/context-meter/context-meter.styles.d.ts +1 -0
- package/dist/components/context-meter/context-meter.styles.d.ts.map +1 -0
- package/dist/components/context-meter/context-meter.styles.js +7 -6
- package/dist/components/context-meter/context-meter.styles.js.map +1 -0
- package/dist/components/conversation-item/conversation-item.class.d.ts +127 -0
- package/dist/components/conversation-item/conversation-item.class.d.ts.map +1 -0
- package/dist/components/conversation-item/conversation-item.class.js +328 -0
- package/dist/components/conversation-item/conversation-item.class.js.map +1 -0
- package/dist/components/conversation-item/conversation-item.d.ts +2 -125
- package/dist/components/conversation-item/conversation-item.d.ts.map +1 -0
- package/dist/components/conversation-item/conversation-item.js +3 -329
- package/dist/components/conversation-item/conversation-item.js.map +1 -0
- package/dist/components/conversation-item/conversation-item.styles.d.ts +1 -0
- package/dist/components/conversation-item/conversation-item.styles.d.ts.map +1 -0
- package/dist/components/conversation-item/conversation-item.styles.js +12 -11
- package/dist/components/conversation-item/conversation-item.styles.js.map +1 -0
- package/dist/components/copy-button/copy-button.class.d.ts +37 -0
- package/dist/components/copy-button/copy-button.class.d.ts.map +1 -0
- package/dist/components/copy-button/copy-button.class.js +116 -0
- package/dist/components/copy-button/copy-button.class.js.map +1 -0
- package/dist/components/copy-button/copy-button.d.ts +2 -0
- package/dist/components/copy-button/copy-button.d.ts.map +1 -0
- package/dist/components/copy-button/copy-button.js +5 -0
- package/dist/components/copy-button/copy-button.js.map +1 -0
- package/dist/components/copy-button/copy-button.styles.d.ts +2 -0
- package/dist/components/copy-button/copy-button.styles.d.ts.map +1 -0
- package/dist/components/copy-button/copy-button.styles.js +40 -0
- package/dist/components/copy-button/copy-button.styles.js.map +1 -0
- package/dist/components/date-picker/calendar-core.d.ts +1 -0
- package/dist/components/date-picker/calendar-core.d.ts.map +1 -0
- package/dist/components/date-picker/calendar-core.js +1 -0
- package/dist/components/date-picker/calendar-core.js.map +1 -0
- package/dist/components/date-picker/date-input.class.d.ts +185 -0
- package/dist/components/date-picker/date-input.class.d.ts.map +1 -0
- package/dist/components/date-picker/date-input.class.js +704 -0
- package/dist/components/date-picker/date-input.class.js.map +1 -0
- package/dist/components/date-picker/date-input.d.ts +3 -168
- package/dist/components/date-picker/date-input.d.ts.map +1 -0
- package/dist/components/date-picker/date-input.js +4 -675
- package/dist/components/date-picker/date-input.js.map +1 -0
- package/dist/components/date-picker/date-input.styles.d.ts +1 -0
- package/dist/components/date-picker/date-input.styles.d.ts.map +1 -0
- package/dist/components/date-picker/date-input.styles.js +11 -10
- package/dist/components/date-picker/date-input.styles.js.map +1 -0
- package/dist/components/date-picker/date-picker.class.d.ts +121 -0
- package/dist/components/date-picker/date-picker.class.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.class.js +541 -0
- package/dist/components/date-picker/date-picker.class.js.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +2 -103
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.js +3 -490
- package/dist/components/date-picker/date-picker.js.map +1 -0
- package/dist/components/date-picker/date-picker.styles.d.ts +1 -0
- package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.styles.js +10 -9
- package/dist/components/date-picker/date-picker.styles.js.map +1 -0
- package/dist/components/dialog/confirm.d.ts +1 -0
- package/dist/components/dialog/confirm.d.ts.map +1 -0
- package/dist/components/dialog/confirm.js +1 -0
- package/dist/components/dialog/confirm.js.map +1 -0
- package/dist/components/dialog/dialog.class.d.ts +137 -0
- package/dist/components/dialog/dialog.class.d.ts.map +1 -0
- package/dist/components/dialog/dialog.class.js +301 -0
- package/dist/components/dialog/dialog.class.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +2 -129
- package/dist/components/dialog/dialog.d.ts.map +1 -0
- package/dist/components/dialog/dialog.js +3 -286
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/dialog/dialog.styles.d.ts +1 -0
- package/dist/components/dialog/dialog.styles.d.ts.map +1 -0
- package/dist/components/dialog/dialog.styles.js +20 -9
- package/dist/components/dialog/dialog.styles.js.map +1 -0
- package/dist/components/diff-view/diff-line-diff.d.ts +13 -0
- package/dist/components/diff-view/diff-line-diff.d.ts.map +1 -0
- package/dist/components/diff-view/diff-line-diff.js +45 -0
- package/dist/components/diff-view/diff-line-diff.js.map +1 -0
- package/dist/components/diff-view/diff-view.class.d.ts +40 -0
- package/dist/components/diff-view/diff-view.class.d.ts.map +1 -0
- package/dist/components/diff-view/diff-view.class.js +73 -0
- package/dist/components/diff-view/diff-view.class.js.map +1 -0
- package/dist/components/diff-view/diff-view.d.ts +2 -0
- package/dist/components/diff-view/diff-view.d.ts.map +1 -0
- package/dist/components/diff-view/diff-view.js +5 -0
- package/dist/components/diff-view/diff-view.js.map +1 -0
- package/dist/components/diff-view/diff-view.styles.d.ts +2 -0
- package/dist/components/diff-view/diff-view.styles.d.ts.map +1 -0
- package/dist/components/diff-view/diff-view.styles.js +49 -0
- package/dist/components/diff-view/diff-view.styles.js.map +1 -0
- package/dist/components/dock-panel/dock-panel.class.d.ts +143 -0
- package/dist/components/dock-panel/dock-panel.class.d.ts.map +1 -0
- package/dist/components/dock-panel/dock-panel.class.js +358 -0
- package/dist/components/dock-panel/dock-panel.class.js.map +1 -0
- package/dist/components/dock-panel/dock-panel.d.ts +2 -142
- package/dist/components/dock-panel/dock-panel.d.ts.map +1 -0
- package/dist/components/dock-panel/dock-panel.js +3 -357
- package/dist/components/dock-panel/dock-panel.js.map +1 -0
- package/dist/components/dock-panel/dock-panel.styles.d.ts +1 -0
- package/dist/components/dock-panel/dock-panel.styles.d.ts.map +1 -0
- package/dist/components/dock-panel/dock-panel.styles.js +19 -12
- package/dist/components/dock-panel/dock-panel.styles.js.map +1 -0
- package/dist/components/document-preview/document-preview.class.d.ts +153 -0
- package/dist/components/document-preview/document-preview.class.d.ts.map +1 -0
- package/dist/components/document-preview/document-preview.class.js +387 -0
- package/dist/components/document-preview/document-preview.class.js.map +1 -0
- package/dist/components/document-preview/document-preview.d.ts +2 -143
- package/dist/components/document-preview/document-preview.d.ts.map +1 -0
- package/dist/components/document-preview/document-preview.js +3 -386
- package/dist/components/document-preview/document-preview.js.map +1 -0
- package/dist/components/document-preview/document-preview.styles.d.ts +1 -0
- package/dist/components/document-preview/document-preview.styles.d.ts.map +1 -0
- package/dist/components/document-preview/document-preview.styles.js +22 -21
- package/dist/components/document-preview/document-preview.styles.js.map +1 -0
- package/dist/components/empty/empty.class.d.ts +49 -0
- package/dist/components/empty/empty.class.d.ts.map +1 -0
- package/dist/components/empty/empty.class.js +138 -0
- package/dist/components/empty/empty.class.js.map +1 -0
- package/dist/components/empty/empty.d.ts +2 -42
- package/dist/components/empty/empty.d.ts.map +1 -0
- package/dist/components/empty/empty.js +3 -111
- package/dist/components/empty/empty.js.map +1 -0
- package/dist/components/empty/empty.styles.d.ts +1 -0
- package/dist/components/empty/empty.styles.d.ts.map +1 -0
- package/dist/components/empty/empty.styles.js +8 -7
- package/dist/components/empty/empty.styles.js.map +1 -0
- package/dist/components/export-button/csv.d.ts +1 -0
- package/dist/components/export-button/csv.d.ts.map +1 -0
- package/dist/components/export-button/csv.js +1 -0
- package/dist/components/export-button/csv.js.map +1 -0
- package/dist/components/export-button/export-button.class.d.ts +76 -0
- package/dist/components/export-button/export-button.class.d.ts.map +1 -0
- package/dist/components/export-button/export-button.class.js +262 -0
- package/dist/components/export-button/export-button.class.js.map +1 -0
- package/dist/components/export-button/export-button.d.ts +2 -67
- package/dist/components/export-button/export-button.d.ts.map +1 -0
- package/dist/components/export-button/export-button.js +3 -261
- package/dist/components/export-button/export-button.js.map +1 -0
- package/dist/components/export-button/export-button.styles.d.ts +1 -0
- package/dist/components/export-button/export-button.styles.d.ts.map +1 -0
- package/dist/components/export-button/export-button.styles.js +6 -5
- package/dist/components/export-button/export-button.styles.js.map +1 -0
- package/dist/components/file-input/accept.d.ts +1 -0
- package/dist/components/file-input/accept.d.ts.map +1 -0
- package/dist/components/file-input/accept.js +1 -0
- package/dist/components/file-input/accept.js.map +1 -0
- package/dist/components/file-input/file-input.class.d.ts +66 -0
- package/dist/components/file-input/file-input.class.d.ts.map +1 -0
- package/dist/components/file-input/file-input.class.js +227 -0
- package/dist/components/file-input/file-input.class.js.map +1 -0
- package/dist/components/file-input/file-input.d.ts +2 -59
- package/dist/components/file-input/file-input.d.ts.map +1 -0
- package/dist/components/file-input/file-input.js +3 -226
- package/dist/components/file-input/file-input.js.map +1 -0
- package/dist/components/file-input/file-input.styles.d.ts +1 -0
- package/dist/components/file-input/file-input.styles.d.ts.map +1 -0
- package/dist/components/file-input/file-input.styles.js +5 -4
- package/dist/components/file-input/file-input.styles.js.map +1 -0
- package/dist/components/flag/flag-peer.d.ts +8 -0
- package/dist/components/flag/flag-peer.d.ts.map +1 -0
- package/dist/components/flag/flag-peer.js +13 -0
- package/dist/components/flag/flag-peer.js.map +1 -0
- package/dist/components/flag/flag.class.d.ts +124 -0
- package/dist/components/flag/flag.class.d.ts.map +1 -0
- package/dist/components/flag/flag.class.js +251 -0
- package/dist/components/flag/flag.class.js.map +1 -0
- package/dist/components/flag/flag.d.ts +3 -121
- package/dist/components/flag/flag.d.ts.map +1 -0
- package/dist/components/flag/flag.js +4 -239
- package/dist/components/flag/flag.js.map +1 -0
- package/dist/components/flag/flag.styles.d.ts +1 -0
- package/dist/components/flag/flag.styles.d.ts.map +1 -0
- package/dist/components/flag/flag.styles.js +5 -4
- package/dist/components/flag/flag.styles.js.map +1 -0
- package/dist/components/flag/language-map.d.ts +1 -0
- package/dist/components/flag/language-map.d.ts.map +1 -0
- package/dist/components/flag/language-map.js +1 -0
- package/dist/components/flag/language-map.js.map +1 -0
- package/dist/components/gauge/gauge.class.d.ts +41 -0
- package/dist/components/gauge/gauge.class.d.ts.map +1 -0
- package/dist/components/gauge/gauge.class.js +178 -0
- package/dist/components/gauge/gauge.class.js.map +1 -0
- package/dist/components/gauge/gauge.d.ts +2 -40
- package/dist/components/gauge/gauge.d.ts.map +1 -0
- package/dist/components/gauge/gauge.js +3 -177
- package/dist/components/gauge/gauge.js.map +1 -0
- package/dist/components/gauge/gauge.styles.d.ts +1 -0
- package/dist/components/gauge/gauge.styles.d.ts.map +1 -0
- package/dist/components/gauge/gauge.styles.js +9 -8
- package/dist/components/gauge/gauge.styles.js.map +1 -0
- package/dist/components/generation-status/generation-status.class.d.ts +121 -0
- package/dist/components/generation-status/generation-status.class.d.ts.map +1 -0
- package/dist/components/generation-status/generation-status.class.js +326 -0
- package/dist/components/generation-status/generation-status.class.js.map +1 -0
- package/dist/components/generation-status/generation-status.d.ts +2 -117
- package/dist/components/generation-status/generation-status.d.ts.map +1 -0
- package/dist/components/generation-status/generation-status.js +3 -325
- package/dist/components/generation-status/generation-status.js.map +1 -0
- package/dist/components/generation-status/generation-status.styles.d.ts +1 -0
- package/dist/components/generation-status/generation-status.styles.d.ts.map +1 -0
- package/dist/components/generation-status/generation-status.styles.js +7 -6
- package/dist/components/generation-status/generation-status.styles.js.map +1 -0
- package/dist/components/graph/graph-loader.d.ts +13 -13
- package/dist/components/graph/graph-loader.d.ts.map +1 -0
- package/dist/components/graph/graph-loader.js +1 -0
- package/dist/components/graph/graph-loader.js.map +1 -0
- package/dist/components/graph/graph.class.d.ts +172 -0
- package/dist/components/graph/graph.class.d.ts.map +1 -0
- package/dist/components/graph/graph.class.js +617 -0
- package/dist/components/graph/graph.class.js.map +1 -0
- package/dist/components/graph/graph.d.ts +3 -157
- package/dist/components/graph/graph.d.ts.map +1 -0
- package/dist/components/graph/graph.js +4 -577
- package/dist/components/graph/graph.js.map +1 -0
- package/dist/components/graph/graph.styles.d.ts +1 -0
- package/dist/components/graph/graph.styles.d.ts.map +1 -0
- package/dist/components/graph/graph.styles.js +6 -1
- package/dist/components/graph/graph.styles.js.map +1 -0
- package/dist/components/heatmap/calendar-grid.d.ts +1 -0
- package/dist/components/heatmap/calendar-grid.d.ts.map +1 -0
- package/dist/components/heatmap/calendar-grid.js +1 -0
- package/dist/components/heatmap/calendar-grid.js.map +1 -0
- package/dist/components/heatmap/heatmap-scale.d.ts +9 -0
- package/dist/components/heatmap/heatmap-scale.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap-scale.js +13 -0
- package/dist/components/heatmap/heatmap-scale.js.map +1 -0
- package/dist/components/heatmap/heatmap.class.d.ts +489 -0
- package/dist/components/heatmap/heatmap.class.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap.class.js +1295 -0
- package/dist/components/heatmap/heatmap.class.js.map +1 -0
- package/dist/components/heatmap/heatmap.d.ts +2 -437
- package/dist/components/heatmap/heatmap.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap.js +3 -1175
- package/dist/components/heatmap/heatmap.js.map +1 -0
- package/dist/components/heatmap/heatmap.styles.d.ts +1 -0
- package/dist/components/heatmap/heatmap.styles.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap.styles.js +20 -20
- package/dist/components/heatmap/heatmap.styles.js.map +1 -0
- package/dist/components/json-viewer/json-viewer.class.d.ts +77 -0
- package/dist/components/json-viewer/json-viewer.class.d.ts.map +1 -0
- package/dist/components/json-viewer/json-viewer.class.js +362 -0
- package/dist/components/json-viewer/json-viewer.class.js.map +1 -0
- package/dist/components/json-viewer/json-viewer.d.ts +2 -70
- package/dist/components/json-viewer/json-viewer.d.ts.map +1 -0
- package/dist/components/json-viewer/json-viewer.js +3 -359
- package/dist/components/json-viewer/json-viewer.js.map +1 -0
- package/dist/components/json-viewer/json-viewer.styles.d.ts +1 -0
- package/dist/components/json-viewer/json-viewer.styles.d.ts.map +1 -0
- package/dist/components/json-viewer/json-viewer.styles.js +23 -20
- package/dist/components/json-viewer/json-viewer.styles.js.map +1 -0
- package/dist/components/kbd/kbd.class.d.ts +78 -0
- package/dist/components/kbd/kbd.class.d.ts.map +1 -0
- package/dist/components/kbd/kbd.class.js +230 -0
- package/dist/components/kbd/kbd.class.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +2 -77
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/kbd/kbd.js +3 -229
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/kbd/kbd.styles.d.ts +1 -0
- package/dist/components/kbd/kbd.styles.d.ts.map +1 -0
- package/dist/components/kbd/kbd.styles.js +10 -9
- package/dist/components/kbd/kbd.styles.js.map +1 -0
- package/dist/components/live-region/live-region.class.d.ts +91 -0
- package/dist/components/live-region/live-region.class.d.ts.map +1 -0
- package/dist/components/live-region/live-region.class.js +188 -0
- package/dist/components/live-region/live-region.class.js.map +1 -0
- package/dist/components/live-region/live-region.d.ts +2 -90
- package/dist/components/live-region/live-region.d.ts.map +1 -0
- package/dist/components/live-region/live-region.js +3 -187
- package/dist/components/live-region/live-region.js.map +1 -0
- package/dist/components/live-region/live-region.styles.d.ts +1 -0
- package/dist/components/live-region/live-region.styles.d.ts.map +1 -0
- package/dist/components/live-region/live-region.styles.js +1 -0
- package/dist/components/live-region/live-region.styles.js.map +1 -0
- package/dist/components/map/map-loader.d.ts +5 -2
- package/dist/components/map/map-loader.d.ts.map +1 -0
- package/dist/components/map/map-loader.js +1 -0
- package/dist/components/map/map-loader.js.map +1 -0
- package/dist/components/map/map.class.d.ts +121 -0
- package/dist/components/map/map.class.d.ts.map +1 -0
- package/dist/components/map/map.class.js +477 -0
- package/dist/components/map/map.class.js.map +1 -0
- package/dist/components/map/map.d.ts +3 -111
- package/dist/components/map/map.d.ts.map +1 -0
- package/dist/components/map/map.js +4 -477
- package/dist/components/map/map.js.map +1 -0
- package/dist/components/map/map.styles.d.ts +1 -0
- package/dist/components/map/map.styles.d.ts.map +1 -0
- package/dist/components/map/map.styles.js +8 -7
- package/dist/components/map/map.styles.js.map +1 -0
- package/dist/components/markdown/markdown-loader.d.ts +6 -6
- package/dist/components/markdown/markdown-loader.d.ts.map +1 -0
- package/dist/components/markdown/markdown-loader.js +1 -0
- package/dist/components/markdown/markdown-loader.js.map +1 -0
- package/dist/components/markdown/markdown.class.d.ts +137 -0
- package/dist/components/markdown/markdown.class.d.ts.map +1 -0
- package/dist/components/markdown/markdown.class.js +427 -0
- package/dist/components/markdown/markdown.class.js.map +1 -0
- package/dist/components/markdown/markdown.d.ts +2 -119
- package/dist/components/markdown/markdown.d.ts.map +1 -0
- package/dist/components/markdown/markdown.js +3 -387
- package/dist/components/markdown/markdown.js.map +1 -0
- package/dist/components/markdown/markdown.styles.d.ts +1 -0
- package/dist/components/markdown/markdown.styles.d.ts.map +1 -0
- package/dist/components/markdown/markdown.styles.js +12 -11
- package/dist/components/markdown/markdown.styles.js.map +1 -0
- package/dist/components/media-card/media-card.class.d.ts +131 -0
- package/dist/components/media-card/media-card.class.d.ts.map +1 -0
- package/dist/components/media-card/media-card.class.js +272 -0
- package/dist/components/media-card/media-card.class.js.map +1 -0
- package/dist/components/media-card/media-card.d.ts +2 -130
- package/dist/components/media-card/media-card.d.ts.map +1 -0
- package/dist/components/media-card/media-card.js +3 -271
- package/dist/components/media-card/media-card.js.map +1 -0
- package/dist/components/media-card/media-card.styles.d.ts +1 -0
- package/dist/components/media-card/media-card.styles.d.ts.map +1 -0
- package/dist/components/media-card/media-card.styles.js +8 -7
- package/dist/components/media-card/media-card.styles.js.map +1 -0
- package/dist/components/mention-popover/mention-popover.class.d.ts +207 -0
- package/dist/components/mention-popover/mention-popover.class.d.ts.map +1 -0
- package/dist/components/mention-popover/mention-popover.class.js +492 -0
- package/dist/components/mention-popover/mention-popover.class.js.map +1 -0
- package/dist/components/mention-popover/mention-popover.d.ts +2 -203
- package/dist/components/mention-popover/mention-popover.d.ts.map +1 -0
- package/dist/components/mention-popover/mention-popover.js +3 -491
- package/dist/components/mention-popover/mention-popover.js.map +1 -0
- package/dist/components/mention-popover/mention-popover.styles.d.ts +1 -0
- package/dist/components/mention-popover/mention-popover.styles.d.ts.map +1 -0
- package/dist/components/mention-popover/mention-popover.styles.js +11 -10
- package/dist/components/mention-popover/mention-popover.styles.js.map +1 -0
- package/dist/components/menu/menu-item.class.d.ts +99 -0
- package/dist/components/menu/menu-item.class.d.ts.map +1 -0
- package/dist/components/menu/menu-item.class.js +205 -0
- package/dist/components/menu/menu-item.class.js.map +1 -0
- package/dist/components/menu/menu-item.d.ts +2 -91
- package/dist/components/menu/menu-item.d.ts.map +1 -0
- package/dist/components/menu/menu-item.js +3 -204
- package/dist/components/menu/menu-item.js.map +1 -0
- package/dist/components/menu/menu-item.styles.d.ts +1 -0
- package/dist/components/menu/menu-item.styles.d.ts.map +1 -0
- package/dist/components/menu/menu-item.styles.js +3 -2
- package/dist/components/menu/menu-item.styles.js.map +1 -0
- package/dist/components/menu/menu.class.d.ts +173 -0
- package/dist/components/menu/menu.class.d.ts.map +1 -0
- package/dist/components/menu/menu.class.js +462 -0
- package/dist/components/menu/menu.class.js.map +1 -0
- package/dist/components/menu/menu.d.ts +3 -167
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/menu/menu.js +4 -459
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/menu/menu.styles.d.ts +1 -0
- package/dist/components/menu/menu.styles.d.ts.map +1 -0
- package/dist/components/menu/menu.styles.js +9 -8
- package/dist/components/menu/menu.styles.js.map +1 -0
- package/dist/components/model-select/model-select.class.d.ts +177 -0
- package/dist/components/model-select/model-select.class.d.ts.map +1 -0
- package/dist/components/model-select/model-select.class.js +587 -0
- package/dist/components/model-select/model-select.class.js.map +1 -0
- package/dist/components/model-select/model-select.d.ts +2 -170
- package/dist/components/model-select/model-select.d.ts.map +1 -0
- package/dist/components/model-select/model-select.js +3 -586
- package/dist/components/model-select/model-select.js.map +1 -0
- package/dist/components/model-select/model-select.styles.d.ts +1 -0
- package/dist/components/model-select/model-select.styles.d.ts.map +1 -0
- package/dist/components/model-select/model-select.styles.js +24 -23
- package/dist/components/model-select/model-select.styles.js.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.class.d.ts +94 -0
- package/dist/components/model-settings-panel/model-settings-panel.class.d.ts.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.class.js +208 -0
- package/dist/components/model-settings-panel/model-settings-panel.class.js.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.d.ts +4 -93
- package/dist/components/model-settings-panel/model-settings-panel.d.ts.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.js +5 -207
- package/dist/components/model-settings-panel/model-settings-panel.js.map +1 -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.d.ts.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.styles.js +12 -11
- package/dist/components/model-settings-panel/model-settings-panel.styles.js.map +1 -0
- package/dist/components/playback/playback.class.d.ts +79 -0
- package/dist/components/playback/playback.class.d.ts.map +1 -0
- package/dist/components/playback/playback.class.js +251 -0
- package/dist/components/playback/playback.class.js.map +1 -0
- package/dist/components/playback/playback.d.ts +2 -71
- package/dist/components/playback/playback.d.ts.map +1 -0
- package/dist/components/playback/playback.js +3 -250
- package/dist/components/playback/playback.js.map +1 -0
- package/dist/components/playback/playback.styles.d.ts +1 -0
- package/dist/components/playback/playback.styles.d.ts.map +1 -0
- package/dist/components/playback/playback.styles.js +2 -1
- package/dist/components/playback/playback.styles.js.map +1 -0
- package/dist/components/poll-status/poll-status.class.d.ts +54 -0
- package/dist/components/poll-status/poll-status.class.d.ts.map +1 -0
- package/dist/components/poll-status/poll-status.class.js +150 -0
- package/dist/components/poll-status/poll-status.class.js.map +1 -0
- package/dist/components/poll-status/poll-status.d.ts +3 -0
- package/dist/components/poll-status/poll-status.d.ts.map +1 -0
- package/dist/components/poll-status/poll-status.js +6 -0
- package/dist/components/poll-status/poll-status.js.map +1 -0
- package/dist/components/poll-status/poll-status.styles.d.ts +2 -0
- package/dist/components/poll-status/poll-status.styles.d.ts.map +1 -0
- package/dist/components/poll-status/poll-status.styles.js +53 -0
- package/dist/components/poll-status/poll-status.styles.js.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.class.d.ts +164 -0
- package/dist/components/responsive-panel/responsive-panel.class.d.ts.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.class.js +362 -0
- package/dist/components/responsive-panel/responsive-panel.class.js.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.d.ts +2 -163
- package/dist/components/responsive-panel/responsive-panel.d.ts.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.js +3 -361
- package/dist/components/responsive-panel/responsive-panel.js.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.styles.d.ts +1 -0
- package/dist/components/responsive-panel/responsive-panel.styles.d.ts.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.styles.js +8 -5
- package/dist/components/responsive-panel/responsive-panel.styles.js.map +1 -0
- package/dist/components/result-card/result-card.class.d.ts +51 -0
- package/dist/components/result-card/result-card.class.d.ts.map +1 -0
- package/dist/components/result-card/result-card.class.js +88 -0
- package/dist/components/result-card/result-card.class.js.map +1 -0
- package/dist/components/result-card/result-card.d.ts +2 -50
- package/dist/components/result-card/result-card.d.ts.map +1 -0
- package/dist/components/result-card/result-card.js +3 -87
- package/dist/components/result-card/result-card.js.map +1 -0
- package/dist/components/result-card/result-card.styles.d.ts +1 -0
- package/dist/components/result-card/result-card.styles.d.ts.map +1 -0
- package/dist/components/result-card/result-card.styles.js +5 -4
- package/dist/components/result-card/result-card.styles.js.map +1 -0
- package/dist/components/result-card/result-field.class.d.ts +37 -0
- package/dist/components/result-card/result-field.class.d.ts.map +1 -0
- package/dist/components/result-card/result-field.class.js +86 -0
- package/dist/components/result-card/result-field.class.js.map +1 -0
- package/dist/components/result-card/result-field.d.ts +2 -36
- package/dist/components/result-card/result-field.d.ts.map +1 -0
- package/dist/components/result-card/result-field.js +3 -85
- package/dist/components/result-card/result-field.js.map +1 -0
- package/dist/components/result-card/result-field.styles.d.ts +1 -0
- package/dist/components/result-card/result-field.styles.d.ts.map +1 -0
- package/dist/components/result-card/result-field.styles.js +3 -2
- package/dist/components/result-card/result-field.styles.js.map +1 -0
- package/dist/components/segmented/segmented.class.d.ts +44 -0
- package/dist/components/segmented/segmented.class.d.ts.map +1 -0
- package/dist/components/segmented/segmented.class.js +100 -0
- package/dist/components/segmented/segmented.class.js.map +1 -0
- package/dist/components/segmented/segmented.d.ts +2 -0
- package/dist/components/segmented/segmented.d.ts.map +1 -0
- package/dist/components/segmented/segmented.js +5 -0
- package/dist/components/segmented/segmented.js.map +1 -0
- package/dist/components/segmented/segmented.styles.d.ts +2 -0
- package/dist/components/segmented/segmented.styles.d.ts.map +1 -0
- package/dist/components/segmented/segmented.styles.js +38 -0
- package/dist/components/segmented/segmented.styles.js.map +1 -0
- package/dist/components/select/select.class.d.ts +212 -0
- package/dist/components/select/select.class.d.ts.map +1 -0
- package/dist/components/select/select.class.js +694 -0
- package/dist/components/select/select.class.js.map +1 -0
- package/dist/components/select/select.d.ts +3 -205
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/select/select.js +4 -693
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/select.styles.d.ts +1 -0
- package/dist/components/select/select.styles.d.ts.map +1 -0
- package/dist/components/select/select.styles.js +41 -35
- package/dist/components/select/select.styles.js.map +1 -0
- package/dist/components/skeleton/skeleton.class.d.ts +30 -0
- package/dist/components/skeleton/skeleton.class.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.class.js +67 -0
- package/dist/components/skeleton/skeleton.class.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +2 -29
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.js +3 -66
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/skeleton/skeleton.styles.d.ts +1 -0
- package/dist/components/skeleton/skeleton.styles.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.styles.js +2 -1
- package/dist/components/skeleton/skeleton.styles.js.map +1 -0
- package/dist/components/slider/slider.class.d.ts +152 -0
- package/dist/components/slider/slider.class.d.ts.map +1 -0
- package/dist/components/slider/slider.class.js +468 -0
- package/dist/components/slider/slider.class.js.map +1 -0
- package/dist/components/slider/slider.d.ts +2 -141
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/slider.js +3 -465
- package/dist/components/slider/slider.js.map +1 -0
- package/dist/components/slider/slider.styles.d.ts +1 -0
- package/dist/components/slider/slider.styles.d.ts.map +1 -0
- package/dist/components/slider/slider.styles.js +15 -14
- package/dist/components/slider/slider.styles.js.map +1 -0
- package/dist/components/source-card/source-card.class.d.ts +105 -0
- package/dist/components/source-card/source-card.class.d.ts.map +1 -0
- package/dist/components/source-card/source-card.class.js +194 -0
- package/dist/components/source-card/source-card.class.js.map +1 -0
- package/dist/components/source-card/source-card.d.ts +2 -104
- package/dist/components/source-card/source-card.d.ts.map +1 -0
- package/dist/components/source-card/source-card.js +3 -193
- package/dist/components/source-card/source-card.js.map +1 -0
- package/dist/components/source-card/source-card.styles.d.ts +1 -0
- package/dist/components/source-card/source-card.styles.d.ts.map +1 -0
- package/dist/components/source-card/source-card.styles.js +11 -10
- package/dist/components/source-card/source-card.styles.js.map +1 -0
- package/dist/components/source-list/source-list.class.d.ts +64 -0
- package/dist/components/source-list/source-list.class.d.ts.map +1 -0
- package/dist/components/source-list/source-list.class.js +129 -0
- package/dist/components/source-list/source-list.class.js.map +1 -0
- package/dist/components/source-list/source-list.d.ts +2 -63
- package/dist/components/source-list/source-list.d.ts.map +1 -0
- package/dist/components/source-list/source-list.js +3 -128
- package/dist/components/source-list/source-list.js.map +1 -0
- package/dist/components/source-list/source-list.styles.d.ts +1 -0
- package/dist/components/source-list/source-list.styles.d.ts.map +1 -0
- package/dist/components/source-list/source-list.styles.js +5 -4
- package/dist/components/source-list/source-list.styles.js.map +1 -0
- package/dist/components/sparkline/sparkline.class.d.ts +31 -0
- package/dist/components/sparkline/sparkline.class.d.ts.map +1 -0
- package/dist/components/sparkline/sparkline.class.js +140 -0
- package/dist/components/sparkline/sparkline.class.js.map +1 -0
- package/dist/components/sparkline/sparkline.d.ts +2 -30
- package/dist/components/sparkline/sparkline.d.ts.map +1 -0
- package/dist/components/sparkline/sparkline.js +3 -137
- package/dist/components/sparkline/sparkline.js.map +1 -0
- package/dist/components/sparkline/sparkline.styles.d.ts +1 -0
- package/dist/components/sparkline/sparkline.styles.d.ts.map +1 -0
- package/dist/components/sparkline/sparkline.styles.js +3 -2
- package/dist/components/sparkline/sparkline.styles.js.map +1 -0
- package/dist/components/split/split.class.d.ts +293 -0
- package/dist/components/split/split.class.d.ts.map +1 -0
- package/dist/components/split/split.class.js +894 -0
- package/dist/components/split/split.class.js.map +1 -0
- package/dist/components/split/split.d.ts +2 -282
- package/dist/components/split/split.d.ts.map +1 -0
- package/dist/components/split/split.js +3 -888
- package/dist/components/split/split.js.map +1 -0
- package/dist/components/split/split.styles.d.ts +1 -0
- package/dist/components/split/split.styles.d.ts.map +1 -0
- package/dist/components/split/split.styles.js +8 -7
- package/dist/components/split/split.styles.js.map +1 -0
- package/dist/components/stat/stat.class.d.ts +90 -0
- package/dist/components/stat/stat.class.d.ts.map +1 -0
- package/dist/components/stat/stat.class.js +249 -0
- package/dist/components/stat/stat.class.js.map +1 -0
- package/dist/components/stat/stat.d.ts +2 -89
- package/dist/components/stat/stat.d.ts.map +1 -0
- package/dist/components/stat/stat.js +3 -248
- package/dist/components/stat/stat.js.map +1 -0
- package/dist/components/stat/stat.styles.d.ts +1 -0
- package/dist/components/stat/stat.styles.d.ts.map +1 -0
- package/dist/components/stat/stat.styles.js +25 -22
- package/dist/components/stat/stat.styles.js.map +1 -0
- package/dist/components/stepper/stepper.class.d.ts +52 -0
- package/dist/components/stepper/stepper.class.d.ts.map +1 -0
- package/dist/components/stepper/stepper.class.js +138 -0
- package/dist/components/stepper/stepper.class.js.map +1 -0
- package/dist/components/stepper/stepper.d.ts +2 -0
- package/dist/components/stepper/stepper.d.ts.map +1 -0
- package/dist/components/stepper/stepper.js +5 -0
- package/dist/components/stepper/stepper.js.map +1 -0
- package/dist/components/stepper/stepper.styles.d.ts +2 -0
- package/dist/components/stepper/stepper.styles.d.ts.map +1 -0
- package/dist/components/stepper/stepper.styles.js +67 -0
- package/dist/components/stepper/stepper.styles.js.map +1 -0
- package/dist/components/stream-status/stream-status.class.d.ts +131 -0
- package/dist/components/stream-status/stream-status.class.d.ts.map +1 -0
- package/dist/components/stream-status/stream-status.class.js +291 -0
- package/dist/components/stream-status/stream-status.class.js.map +1 -0
- package/dist/components/stream-status/stream-status.d.ts +3 -126
- package/dist/components/stream-status/stream-status.d.ts.map +1 -0
- package/dist/components/stream-status/stream-status.js +4 -290
- package/dist/components/stream-status/stream-status.js.map +1 -0
- package/dist/components/stream-status/stream-status.styles.d.ts +1 -0
- package/dist/components/stream-status/stream-status.styles.d.ts.map +1 -0
- package/dist/components/stream-status/stream-status.styles.js +7 -6
- package/dist/components/stream-status/stream-status.styles.js.map +1 -0
- package/dist/components/streaming-text/streaming-text.class.d.ts +105 -0
- package/dist/components/streaming-text/streaming-text.class.d.ts.map +1 -0
- package/dist/components/streaming-text/streaming-text.class.js +223 -0
- package/dist/components/streaming-text/streaming-text.class.js.map +1 -0
- package/dist/components/streaming-text/streaming-text.d.ts +3 -104
- package/dist/components/streaming-text/streaming-text.d.ts.map +1 -0
- package/dist/components/streaming-text/streaming-text.js +4 -222
- package/dist/components/streaming-text/streaming-text.js.map +1 -0
- package/dist/components/streaming-text/streaming-text.styles.d.ts +1 -0
- package/dist/components/streaming-text/streaming-text.styles.d.ts.map +1 -0
- package/dist/components/streaming-text/streaming-text.styles.js +4 -3
- package/dist/components/streaming-text/streaming-text.styles.js.map +1 -0
- package/dist/components/switch/switch.class.d.ts +109 -0
- package/dist/components/switch/switch.class.d.ts.map +1 -0
- package/dist/components/switch/switch.class.js +249 -0
- package/dist/components/switch/switch.class.js.map +1 -0
- package/dist/components/switch/switch.d.ts +2 -103
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/switch/switch.js +3 -248
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/switch/switch.styles.d.ts +1 -0
- package/dist/components/switch/switch.styles.d.ts.map +1 -0
- package/dist/components/switch/switch.styles.js +18 -14
- package/dist/components/switch/switch.styles.js.map +1 -0
- package/dist/components/table/table.class.d.ts +223 -0
- package/dist/components/table/table.class.d.ts.map +1 -0
- package/dist/components/table/table.class.js +630 -0
- package/dist/components/table/table.class.js.map +1 -0
- package/dist/components/table/table.d.ts +3 -199
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/table/table.js +4 -611
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/table/table.styles.d.ts +1 -0
- package/dist/components/table/table.styles.d.ts.map +1 -0
- package/dist/components/table/table.styles.js +23 -8
- package/dist/components/table/table.styles.js.map +1 -0
- package/dist/components/tabs/tabs.class.d.ts +80 -0
- package/dist/components/tabs/tabs.class.d.ts.map +1 -0
- package/dist/components/tabs/tabs.class.js +253 -0
- package/dist/components/tabs/tabs.class.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +2 -74
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +3 -252
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tabs/tabs.styles.d.ts +1 -0
- package/dist/components/tabs/tabs.styles.d.ts.map +1 -0
- package/dist/components/tabs/tabs.styles.js +11 -4
- package/dist/components/tabs/tabs.styles.js.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.class.d.ts +124 -0
- package/dist/components/thinking-panel/thinking-panel.class.d.ts.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.class.js +259 -0
- package/dist/components/thinking-panel/thinking-panel.class.js.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.d.ts +2 -123
- package/dist/components/thinking-panel/thinking-panel.d.ts.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.js +3 -258
- package/dist/components/thinking-panel/thinking-panel.js.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.styles.d.ts +1 -0
- package/dist/components/thinking-panel/thinking-panel.styles.d.ts.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.styles.js +13 -12
- package/dist/components/thinking-panel/thinking-panel.styles.js.map +1 -0
- package/dist/components/time-range/time-range.class.d.ts +137 -0
- package/dist/components/time-range/time-range.class.d.ts.map +1 -0
- package/dist/components/time-range/time-range.class.js +495 -0
- package/dist/components/time-range/time-range.class.js.map +1 -0
- package/dist/components/time-range/time-range.d.ts +2 -126
- package/dist/components/time-range/time-range.d.ts.map +1 -0
- package/dist/components/time-range/time-range.js +3 -494
- package/dist/components/time-range/time-range.js.map +1 -0
- package/dist/components/time-range/time-range.styles.d.ts +1 -0
- package/dist/components/time-range/time-range.styles.d.ts.map +1 -0
- package/dist/components/time-range/time-range.styles.js +21 -13
- package/dist/components/time-range/time-range.styles.js.map +1 -0
- package/dist/components/toast/toast-item.class.d.ts +79 -0
- package/dist/components/toast/toast-item.class.d.ts.map +1 -0
- package/dist/components/toast/toast-item.class.js +324 -0
- package/dist/components/toast/toast-item.class.js.map +1 -0
- package/dist/components/toast/toast-item.d.ts +2 -72
- package/dist/components/toast/toast-item.d.ts.map +1 -0
- package/dist/components/toast/toast-item.js +3 -323
- package/dist/components/toast/toast-item.js.map +1 -0
- package/dist/components/toast/toast-item.styles.d.ts +1 -0
- package/dist/components/toast/toast-item.styles.d.ts.map +1 -0
- package/dist/components/toast/toast-item.styles.js +13 -12
- package/dist/components/toast/toast-item.styles.js.map +1 -0
- package/dist/components/toast/toast.class.d.ts +33 -0
- package/dist/components/toast/toast.class.d.ts.map +1 -0
- package/dist/components/toast/toast.class.js +59 -0
- package/dist/components/toast/toast.class.js.map +1 -0
- package/dist/components/toast/toast.d.ts +3 -32
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +4 -58
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toast/toast.styles.d.ts +1 -0
- package/dist/components/toast/toast.styles.d.ts.map +1 -0
- package/dist/components/toast/toast.styles.js +20 -16
- package/dist/components/toast/toast.styles.js.map +1 -0
- package/dist/components/toast/toaster.d.ts +1 -0
- package/dist/components/toast/toaster.d.ts.map +1 -0
- package/dist/components/toast/toaster.js +1 -0
- package/dist/components/toast/toaster.js.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.class.d.ts +135 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.class.d.ts.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.class.js +328 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.class.js.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.d.ts +3 -131
- package/dist/components/tool-approval-dialog/tool-approval-dialog.d.ts.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.js +4 -327
- package/dist/components/tool-approval-dialog/tool-approval-dialog.js.map +1 -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.d.ts.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.js +22 -18
- package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.js.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.class.d.ts +106 -0
- package/dist/components/tool-call-chip/tool-call-chip.class.d.ts.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.class.js +348 -0
- package/dist/components/tool-call-chip/tool-call-chip.class.js.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.d.ts +2 -105
- package/dist/components/tool-call-chip/tool-call-chip.d.ts.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.js +3 -347
- package/dist/components/tool-call-chip/tool-call-chip.js.map +1 -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.d.ts.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.styles.js +22 -21
- package/dist/components/tool-call-chip/tool-call-chip.styles.js.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.class.d.ts +216 -0
- package/dist/components/tool-param-form/tool-param-form.class.d.ts.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.class.js +609 -0
- package/dist/components/tool-param-form/tool-param-form.class.js.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.d.ts +5 -206
- package/dist/components/tool-param-form/tool-param-form.d.ts.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.js +6 -608
- package/dist/components/tool-param-form/tool-param-form.js.map +1 -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.d.ts.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.styles.js +9 -8
- package/dist/components/tool-param-form/tool-param-form.styles.js.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.class.d.ts +123 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.class.d.ts.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.class.js +357 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.class.js.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.d.ts +2 -122
- package/dist/components/tool-result-dialog/tool-result-dialog.d.ts.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.js +3 -356
- package/dist/components/tool-result-dialog/tool-result-dialog.js.map +1 -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.d.ts.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.styles.js +24 -16
- package/dist/components/tool-result-dialog/tool-result-dialog.styles.js.map +1 -0
- package/dist/components/tool-result-view/registry.d.ts +1 -0
- package/dist/components/tool-result-view/registry.d.ts.map +1 -0
- package/dist/components/tool-result-view/registry.js +1 -0
- package/dist/components/tool-result-view/registry.js.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.class.d.ts +65 -0
- package/dist/components/tool-result-view/tool-result-view.class.d.ts.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.class.js +151 -0
- package/dist/components/tool-result-view/tool-result-view.class.js.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.d.ts +4 -58
- package/dist/components/tool-result-view/tool-result-view.d.ts.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.js +5 -150
- package/dist/components/tool-result-view/tool-result-view.js.map +1 -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.d.ts.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.styles.js +1 -0
- package/dist/components/tool-result-view/tool-result-view.styles.js.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.class.d.ts +152 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.class.d.ts.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.class.js +349 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.class.js.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.d.ts +4 -151
- package/dist/components/tool-select-dialog/tool-select-dialog.d.ts.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.js +5 -348
- package/dist/components/tool-select-dialog/tool-select-dialog.js.map +1 -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.d.ts.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.styles.js +29 -25
- package/dist/components/tool-select-dialog/tool-select-dialog.styles.js.map +1 -0
- package/dist/components/tree/tree-node.class.d.ts +78 -0
- package/dist/components/tree/tree-node.class.d.ts.map +1 -0
- package/dist/components/tree/tree-node.class.js +223 -0
- package/dist/components/tree/tree-node.class.js.map +1 -0
- package/dist/components/tree/tree-node.d.ts +2 -68
- package/dist/components/tree/tree-node.d.ts.map +1 -0
- package/dist/components/tree/tree-node.js +4 -222
- package/dist/components/tree/tree-node.js.map +1 -0
- package/dist/components/tree/tree.class.d.ts +130 -0
- package/dist/components/tree/tree.class.d.ts.map +1 -0
- package/dist/components/tree/tree.class.js +326 -0
- package/dist/components/tree/tree.class.js.map +1 -0
- package/dist/components/tree/tree.d.ts +3 -129
- package/dist/components/tree/tree.d.ts.map +1 -0
- package/dist/components/tree/tree.js +5 -325
- package/dist/components/tree/tree.js.map +1 -0
- package/dist/components/tree/tree.styles.d.ts +1 -0
- package/dist/components/tree/tree.styles.d.ts.map +1 -0
- package/dist/components/tree/tree.styles.js +1 -0
- package/dist/components/tree/tree.styles.js.map +1 -0
- package/dist/components/tree/update-cascade.d.ts +1 -0
- package/dist/components/tree/update-cascade.d.ts.map +1 -0
- package/dist/components/tree/update-cascade.js +1 -0
- package/dist/components/tree/update-cascade.js.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.class.d.ts +71 -0
- package/dist/components/typing-indicator/typing-indicator.class.d.ts.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.class.js +107 -0
- package/dist/components/typing-indicator/typing-indicator.class.js.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.d.ts +2 -70
- package/dist/components/typing-indicator/typing-indicator.d.ts.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.js +3 -106
- package/dist/components/typing-indicator/typing-indicator.js.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.styles.d.ts +1 -0
- package/dist/components/typing-indicator/typing-indicator.styles.d.ts.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.styles.js +7 -6
- package/dist/components/typing-indicator/typing-indicator.styles.js.map +1 -0
- package/dist/components/virtual-list/virtual-list.class.d.ts +215 -0
- package/dist/components/virtual-list/virtual-list.class.d.ts.map +1 -0
- package/dist/components/virtual-list/virtual-list.class.js +609 -0
- package/dist/components/virtual-list/virtual-list.class.js.map +1 -0
- package/dist/components/virtual-list/virtual-list.d.ts +2 -210
- package/dist/components/virtual-list/virtual-list.d.ts.map +1 -0
- package/dist/components/virtual-list/virtual-list.js +3 -605
- package/dist/components/virtual-list/virtual-list.js.map +1 -0
- package/dist/components/virtual-list/virtual-list.styles.d.ts +1 -0
- package/dist/components/virtual-list/virtual-list.styles.d.ts.map +1 -0
- package/dist/components/virtual-list/virtual-list.styles.js +5 -4
- package/dist/components/virtual-list/virtual-list.styles.js.map +1 -0
- package/dist/components/widget/widget.class.d.ts +100 -0
- package/dist/components/widget/widget.class.d.ts.map +1 -0
- package/dist/components/widget/widget.class.js +327 -0
- package/dist/components/widget/widget.class.js.map +1 -0
- package/dist/components/widget/widget.d.ts +2 -65
- package/dist/components/widget/widget.d.ts.map +1 -0
- package/dist/components/widget/widget.js +3 -249
- package/dist/components/widget/widget.js.map +1 -0
- package/dist/components/widget/widget.styles.d.ts +1 -0
- package/dist/components/widget/widget.styles.d.ts.map +1 -0
- package/dist/components/widget/widget.styles.js +54 -9
- package/dist/components/widget/widget.styles.js.map +1 -0
- package/dist/components/word-cloud/word-cloud-layout.d.ts +1 -0
- package/dist/components/word-cloud/word-cloud-layout.d.ts.map +1 -0
- package/dist/components/word-cloud/word-cloud-layout.js +1 -0
- package/dist/components/word-cloud/word-cloud-layout.js.map +1 -0
- package/dist/components/word-cloud/word-cloud.class.d.ts +99 -0
- package/dist/components/word-cloud/word-cloud.class.d.ts.map +1 -0
- package/dist/components/word-cloud/word-cloud.class.js +307 -0
- package/dist/components/word-cloud/word-cloud.class.js.map +1 -0
- package/dist/components/word-cloud/word-cloud.d.ts +2 -91
- package/dist/components/word-cloud/word-cloud.d.ts.map +1 -0
- package/dist/components/word-cloud/word-cloud.js +3 -303
- package/dist/components/word-cloud/word-cloud.js.map +1 -0
- package/dist/components/word-cloud/word-cloud.styles.d.ts +1 -0
- package/dist/components/word-cloud/word-cloud.styles.d.ts.map +1 -0
- package/dist/components/word-cloud/word-cloud.styles.js +32 -18
- package/dist/components/word-cloud/word-cloud.styles.js.map +1 -0
- package/dist/internal/a11y.d.ts +1 -0
- package/dist/internal/a11y.d.ts.map +1 -0
- package/dist/internal/a11y.js +1 -0
- package/dist/internal/a11y.js.map +1 -0
- package/dist/internal/anchored-validity.d.ts +1 -0
- package/dist/internal/anchored-validity.d.ts.map +1 -0
- package/dist/internal/anchored-validity.js +1 -0
- package/dist/internal/anchored-validity.js.map +1 -0
- package/dist/internal/announcer.d.ts +1 -0
- package/dist/internal/announcer.d.ts.map +1 -0
- package/dist/internal/announcer.js +1 -0
- package/dist/internal/announcer.js.map +1 -0
- package/dist/internal/form-associated.d.ts +1 -0
- package/dist/internal/form-associated.d.ts.map +1 -0
- package/dist/internal/form-associated.js +1 -0
- package/dist/internal/form-associated.js.map +1 -0
- package/dist/internal/group-by-recency.d.ts +1 -0
- package/dist/internal/group-by-recency.d.ts.map +1 -0
- package/dist/internal/group-by-recency.js +1 -0
- package/dist/internal/group-by-recency.js.map +1 -0
- package/dist/internal/icons.d.ts +1 -0
- package/dist/internal/icons.d.ts.map +1 -0
- package/dist/internal/icons.js +1 -0
- package/dist/internal/icons.js.map +1 -0
- package/dist/internal/localization.d.ts +27 -0
- package/dist/internal/localization.d.ts.map +1 -0
- package/dist/internal/localization.js +142 -0
- package/dist/internal/localization.js.map +1 -0
- package/dist/internal/lyra-element.d.ts +27 -3
- package/dist/internal/lyra-element.d.ts.map +1 -0
- package/dist/internal/lyra-element.js +52 -3
- package/dist/internal/lyra-element.js.map +1 -0
- package/dist/internal/numbers.d.ts +1 -0
- package/dist/internal/numbers.d.ts.map +1 -0
- package/dist/internal/numbers.js +1 -0
- package/dist/internal/numbers.js.map +1 -0
- package/dist/internal/optional-peer-types.d.ts +8 -0
- package/dist/internal/optional-peer-types.d.ts.map +1 -0
- package/dist/internal/optional-peer-types.js +2 -0
- package/dist/internal/optional-peer-types.js.map +1 -0
- package/dist/internal/overlay-manager.d.ts +1 -0
- package/dist/internal/overlay-manager.d.ts.map +1 -0
- package/dist/internal/overlay-manager.js +1 -0
- package/dist/internal/overlay-manager.js.map +1 -0
- package/dist/internal/positioner.d.ts +1 -0
- package/dist/internal/positioner.d.ts.map +1 -0
- package/dist/internal/positioner.js +1 -0
- package/dist/internal/positioner.js.map +1 -0
- package/dist/internal/prefix.d.ts +1 -0
- package/dist/internal/prefix.d.ts.map +1 -0
- package/dist/internal/prefix.js +9 -2
- package/dist/internal/prefix.js.map +1 -0
- package/dist/internal/root-registration-allowlist.d.ts +8 -0
- package/dist/internal/root-registration-allowlist.d.ts.map +1 -0
- package/dist/internal/root-registration-allowlist.js +102 -0
- package/dist/internal/root-registration-allowlist.js.map +1 -0
- package/dist/internal/rtl.d.ts +1 -0
- package/dist/internal/rtl.d.ts.map +1 -0
- package/dist/internal/rtl.js +1 -0
- package/dist/internal/rtl.js.map +1 -0
- package/dist/internal/safe-url.d.ts +1 -0
- package/dist/internal/safe-url.d.ts.map +1 -0
- package/dist/internal/safe-url.js +1 -0
- package/dist/internal/safe-url.js.map +1 -0
- package/dist/internal/scroll-lock.d.ts +1 -0
- package/dist/internal/scroll-lock.d.ts.map +1 -0
- package/dist/internal/scroll-lock.js +1 -0
- package/dist/internal/scroll-lock.js.map +1 -0
- package/dist/internal/tokens.styles.d.ts +1 -0
- package/dist/internal/tokens.styles.d.ts.map +1 -0
- package/dist/internal/tokens.styles.js +207 -0
- package/dist/internal/tokens.styles.js.map +1 -0
- package/dist/lyra.d.ts +76 -4
- package/dist/lyra.d.ts.map +1 -0
- package/dist/lyra.js +19 -1
- package/dist/lyra.js.map +1 -0
- package/dist/testing/happy-dom-shims.d.ts +40 -0
- package/dist/testing/happy-dom-shims.d.ts.map +1 -0
- package/dist/testing/happy-dom-shims.js +52 -0
- package/dist/testing/happy-dom-shims.js.map +1 -0
- package/llms-full.txt +726 -81
- package/llms.txt +9 -7
- package/package.json +199 -6
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, nothing } from 'lit';
|
|
8
|
+
import { property, state } from 'lit/decorators.js';
|
|
9
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
10
|
+
import { styles } from './kbd.styles.js';
|
|
11
|
+
// A deliberately small map — just the modifier-adjacent/navigation keys
|
|
12
|
+
// common enough in real shortcuts to be worth a friendly glyph. Anything not
|
|
13
|
+
// listed here (e.g. 'f1', 'k', a punctuation key) falls through to the
|
|
14
|
+
// generic "render as typed, upper-case single letters" rule in
|
|
15
|
+
// `shortcutTokenLabel` below, per this component's spec.
|
|
16
|
+
//
|
|
17
|
+
// 'plus'/'minus' exist specifically so a shortcut that includes a literal
|
|
18
|
+
// "+" or "-" key (e.g. the classic zoom-in shortcut) has a way to say so:
|
|
19
|
+
// the '+'-separated `keys` grammar can't itself carry a literal "+" token
|
|
20
|
+
// (it's the delimiter), so callers spell it as the word instead.
|
|
21
|
+
const NAMED_KEY_LABELS = {
|
|
22
|
+
enter: { visual: '↵', word: 'Enter' },
|
|
23
|
+
esc: { visual: 'Esc', word: 'Escape' },
|
|
24
|
+
escape: { visual: 'Esc', word: 'Escape' },
|
|
25
|
+
tab: { visual: 'Tab', word: 'Tab' },
|
|
26
|
+
space: { visual: 'Space', word: 'Space' },
|
|
27
|
+
backspace: { visual: '⌫', word: 'Backspace' },
|
|
28
|
+
delete: { visual: 'Del', word: 'Delete' },
|
|
29
|
+
home: { visual: 'Home', word: 'Home' },
|
|
30
|
+
end: { visual: 'End', word: 'End' },
|
|
31
|
+
pageup: { visual: 'PgUp', word: 'Page Up' },
|
|
32
|
+
pagedown: { visual: 'PgDn', word: 'Page Down' },
|
|
33
|
+
arrowup: { visual: '↑', word: 'Arrow Up' },
|
|
34
|
+
arrowdown: { visual: '↓', word: 'Arrow Down' },
|
|
35
|
+
arrowleft: { visual: '←', word: 'Arrow Left' },
|
|
36
|
+
arrowright: { visual: '→', word: 'Arrow Right' },
|
|
37
|
+
plus: { visual: '+', word: 'Plus' },
|
|
38
|
+
minus: { visual: '−', word: 'Minus' },
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Resolves one `+`-separated token of a `keys` string to its rendered glyph
|
|
42
|
+
* and spelled-out word, given whether the shortcut is being shown on macOS.
|
|
43
|
+
*
|
|
44
|
+
* Exported as a pure function (parameterized on `isMac` rather than reading
|
|
45
|
+
* the module-scope platform constant directly) so both the macOS and
|
|
46
|
+
* non-macOS branches are directly unit-testable without having to spoof
|
|
47
|
+
* `navigator` in a browser test environment that only ever runs as one
|
|
48
|
+
* platform.
|
|
49
|
+
*/
|
|
50
|
+
export function shortcutTokenLabel(rawToken, isMac) {
|
|
51
|
+
const token = rawToken.trim();
|
|
52
|
+
const lower = token.toLowerCase();
|
|
53
|
+
// 'mod' is the platform-neutral primary modifier: Command on macOS,
|
|
54
|
+
// Control everywhere else. 'ctrl' is deliberately distinct — it always
|
|
55
|
+
// means the literal Control key, even on macOS, for shortcuts that are
|
|
56
|
+
// specifically Ctrl-based (e.g. terminal Ctrl+C) rather than
|
|
57
|
+
// platform-adapted.
|
|
58
|
+
if (lower === 'mod')
|
|
59
|
+
return isMac ? { visual: '⌘', word: 'Command' } : { visual: 'Ctrl', word: 'Control' };
|
|
60
|
+
if (lower === 'ctrl' || lower === 'control')
|
|
61
|
+
return { visual: 'Ctrl', word: 'Control' };
|
|
62
|
+
if (lower === 'alt')
|
|
63
|
+
return isMac ? { visual: '⌥', word: 'Option' } : { visual: 'Alt', word: 'Alt' };
|
|
64
|
+
if (lower === 'shift')
|
|
65
|
+
return { visual: '⇧', word: 'Shift' };
|
|
66
|
+
const named = NAMED_KEY_LABELS[lower];
|
|
67
|
+
if (named)
|
|
68
|
+
return named;
|
|
69
|
+
// Anything else renders as typed (preserving the caller's own casing),
|
|
70
|
+
// except a bare single letter/digit, which is upper-cased for a
|
|
71
|
+
// consistent key-cap look ('k' and 'K' both render 'K').
|
|
72
|
+
if (token.length === 1) {
|
|
73
|
+
const upper = token.toUpperCase();
|
|
74
|
+
return { visual: upper, word: upper };
|
|
75
|
+
}
|
|
76
|
+
return { visual: token, word: token };
|
|
77
|
+
}
|
|
78
|
+
/** Splits a `keys` string (e.g. `'mod+shift+p'`) into its resolved token
|
|
79
|
+
* labels, dropping empty segments from stray/leading/trailing `+`s. */
|
|
80
|
+
export function parseShortcut(keys, isMac) {
|
|
81
|
+
return keys
|
|
82
|
+
.split('+')
|
|
83
|
+
.map((t) => t.trim())
|
|
84
|
+
.filter((t) => t.length > 0)
|
|
85
|
+
.map((t) => shortcutTokenLabel(t, isMac));
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Detects macOS to decide whether `mod`/`alt` render their Mac glyphs (⌘/⌥)
|
|
89
|
+
* or their generic-platform text (Ctrl/Alt). Prefers the modern
|
|
90
|
+
* `navigator.userAgentData` (Client Hints) API when the browser exposes it,
|
|
91
|
+
* falling back through `navigator.platform` and finally a `navigator.userAgent`
|
|
92
|
+
* substring check — all three are deprecated/non-standard to varying
|
|
93
|
+
* degrees (`userAgentData` is Chromium-only so far; `platform` is
|
|
94
|
+
* long-deprecated; `userAgent` sniffing is a last resort) but remain, in
|
|
95
|
+
* combination, the practical cross-browser way to answer "is this macOS"
|
|
96
|
+
* today with no dependency.
|
|
97
|
+
*/
|
|
98
|
+
function detectIsMac() {
|
|
99
|
+
if (typeof navigator === 'undefined')
|
|
100
|
+
return false;
|
|
101
|
+
const uaData = navigator.userAgentData;
|
|
102
|
+
if (uaData?.platform)
|
|
103
|
+
return uaData.platform.toLowerCase().includes('mac');
|
|
104
|
+
if (navigator.platform)
|
|
105
|
+
return /mac/i.test(navigator.platform);
|
|
106
|
+
return /mac/i.test(navigator.userAgent ?? '');
|
|
107
|
+
}
|
|
108
|
+
// Computed once at module scope, not per-instance/per-render — a page's
|
|
109
|
+
// platform never changes mid-session, so there is nothing to gain (and a
|
|
110
|
+
// little cost, however small) from re-detecting it on every <lyra-kbd>
|
|
111
|
+
// instance or every re-render.
|
|
112
|
+
const IS_MAC = detectIsMac();
|
|
113
|
+
// The one "is there real content" predicate shared by both the initial
|
|
114
|
+
// synchronous seed (willUpdate, reading light-DOM childNodes) and the
|
|
115
|
+
// runtime slotchange handler (reading assignedNodes) — using two different
|
|
116
|
+
// predicates for the same question let them disagree: a text-only check
|
|
117
|
+
// would seed correctly for whitespace-only text but (wrongly) treat a
|
|
118
|
+
// content-less icon element as empty, and a node-count-only check would
|
|
119
|
+
// treat *any* assigned node — including a whitespace-only text node — as
|
|
120
|
+
// real content. Counting every element node as real content (regardless of
|
|
121
|
+
// its own text) while requiring non-whitespace text from text nodes gets
|
|
122
|
+
// both cases right in one place.
|
|
123
|
+
const hasRealContent = (nodes) => Array.from(nodes).some((n) => n.nodeType === Node.ELEMENT_NODE || (n.textContent ?? '').trim().length > 0);
|
|
124
|
+
/**
|
|
125
|
+
* `<lyra-kbd>` — a small chip representing a keyboard shortcut, rendering
|
|
126
|
+
* the platform-appropriate glyph for cross-platform modifier keys (⌘ on
|
|
127
|
+
* macOS, "Ctrl" elsewhere) from a single platform-neutral `keys` string.
|
|
128
|
+
*
|
|
129
|
+
* `keys` is a `+`-separated sequence of tokens, e.g. `"mod+k"` or
|
|
130
|
+
* `"mod+shift+p"`. Recognized modifier tokens: `mod` (the platform-neutral
|
|
131
|
+
* primary modifier — ⌘ on macOS, "Ctrl" elsewhere), `alt` (⌥ / "Alt"),
|
|
132
|
+
* `shift` (⇧ on every platform), and `ctrl` (always the literal Control
|
|
133
|
+
* key, distinct from `mod`, for a shortcut that's specifically Ctrl even on
|
|
134
|
+
* macOS). Any other token renders as typed, except a bare single
|
|
135
|
+
* letter/digit which is upper-cased, with a small built-in map of friendly
|
|
136
|
+
* labels for common named keys (`enter` → `↵`, `esc` → "Esc", the four
|
|
137
|
+
* arrow keys → arrow glyphs, plus `tab`/`space`/`backspace`/`delete`/`home`/
|
|
138
|
+
* `end`/`pageup`/`pagedown`/`plus`/`minus`). `enter` renders as its `↵`
|
|
139
|
+
* glyph (not the word "Enter") to match the other single-glyph modifier/
|
|
140
|
+
* arrow keys visually — its spelled-out word form still appears in the
|
|
141
|
+
* computed `aria-label`.
|
|
142
|
+
*
|
|
143
|
+
* Each token renders as its own key cap (`part="key"`); consecutive caps
|
|
144
|
+
* are joined by a small "+" separator between them, matching how most
|
|
145
|
+
* cross-platform shortcut documentation (including on macOS, despite the
|
|
146
|
+
* OS's own native shortcut hints usually running the glyphs together with
|
|
147
|
+
* no separator) reads unambiguously regardless of how many/which glyphs are
|
|
148
|
+
* involved.
|
|
149
|
+
*
|
|
150
|
+
* The default slot is not used for the normal glyph rendering above — it's
|
|
151
|
+
* an escape hatch for fully custom content (e.g. an icon instead of a text
|
|
152
|
+
* glyph) that, when non-empty, replaces the `keys`-driven rendering
|
|
153
|
+
* entirely and stops this component from asserting its own `aria-label`,
|
|
154
|
+
* leaving the slotted content to carry its own accessible name.
|
|
155
|
+
*
|
|
156
|
+
* @customElement lyra-kbd
|
|
157
|
+
* @slot - Optional override for fully custom key-cap content, replacing the
|
|
158
|
+
* `keys`-driven rendering. Leave empty to use `keys`.
|
|
159
|
+
* @csspart base - The chip's root element.
|
|
160
|
+
* @csspart key - Each rendered key cap (one per token in `keys`).
|
|
161
|
+
*/
|
|
162
|
+
export class LyraKbd extends LyraElement {
|
|
163
|
+
constructor() {
|
|
164
|
+
super(...arguments);
|
|
165
|
+
/** A `+`-separated shortcut, e.g. `'mod+k'`. See the class doc for the
|
|
166
|
+
* full token grammar. */
|
|
167
|
+
this.keys = '';
|
|
168
|
+
// Real (non-whitespace) light-DOM content overrides the keys-driven
|
|
169
|
+
// rendering below — same "seed synchronously, refine on slotchange"
|
|
170
|
+
// pattern as lyra-checkbox's hasLabelSlot/lyra-citation-badge's
|
|
171
|
+
// hasPreviewSlot, so a declaratively-slotted override doesn't flash the
|
|
172
|
+
// keys rendering for one frame before the first slotchange event.
|
|
173
|
+
this.hasCustomContent = false;
|
|
174
|
+
this.onSlotChange = (e) => {
|
|
175
|
+
this.hasCustomContent = hasRealContent(e.target.assignedNodes({ flatten: true }));
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
static { this.styles = [LyraElement.styles, styles]; }
|
|
179
|
+
willUpdate() {
|
|
180
|
+
if (!this.hasUpdated) {
|
|
181
|
+
this.hasCustomContent = hasRealContent(this.childNodes);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
render() {
|
|
185
|
+
const explicitLabel = this.getAttribute('aria-label');
|
|
186
|
+
if (this.hasCustomContent) {
|
|
187
|
+
return html `
|
|
188
|
+
<span part="base" aria-label=${explicitLabel || nothing}>
|
|
189
|
+
<slot @slotchange=${this.onSlotChange}></slot>
|
|
190
|
+
</span>
|
|
191
|
+
`;
|
|
192
|
+
}
|
|
193
|
+
const tokens = parseShortcut(this.keys, IS_MAC);
|
|
194
|
+
// role="img" treats the chip as one opaque unit (matching
|
|
195
|
+
// lyra-context-meter's/lyra-chart's canvas usage of the same pattern):
|
|
196
|
+
// the individual glyphs and "+" separators aren't real words, so
|
|
197
|
+
// exposing them as separate accessible-tree text would read worse than
|
|
198
|
+
// the single spelled-out aria-label below. An empty `keys` (and no
|
|
199
|
+
// explicit override) renders nothing visible, so it's marked
|
|
200
|
+
// aria-hidden instead of exposed as a nameless image.
|
|
201
|
+
//
|
|
202
|
+
// role/aria-hidden are both derived from this same `ariaLabel` value
|
|
203
|
+
// (rather than each independently re-deriving "is there a label" from
|
|
204
|
+
// tokens.length/explicitLabel) so role="img" can never be absent while
|
|
205
|
+
// aria-label is present — that combination is an aria-prohibited-attr
|
|
206
|
+
// violation (a nameless-but-labeled, role-less element).
|
|
207
|
+
const ariaLabel = explicitLabel || tokens.map((t) => t.word).join('+');
|
|
208
|
+
return html `
|
|
209
|
+
<span
|
|
210
|
+
part="base"
|
|
211
|
+
role=${ariaLabel ? 'img' : nothing}
|
|
212
|
+
aria-hidden=${ariaLabel ? nothing : 'true'}
|
|
213
|
+
aria-label=${ariaLabel || nothing}
|
|
214
|
+
>
|
|
215
|
+
${tokens.map((t, i) => html `
|
|
216
|
+
${i > 0 ? html `<span class="sep" aria-hidden="true">+</span>` : nothing}
|
|
217
|
+
<span part="key">${t.visual}</span>
|
|
218
|
+
`)}
|
|
219
|
+
<slot @slotchange=${this.onSlotChange} hidden></slot>
|
|
220
|
+
</span>
|
|
221
|
+
`;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
__decorate([
|
|
225
|
+
property()
|
|
226
|
+
], LyraKbd.prototype, "keys", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
state()
|
|
229
|
+
], LyraKbd.prototype, "hasCustomContent", void 0);
|
|
230
|
+
//# sourceMappingURL=kbd.class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.class.js","sourceRoot":"","sources":["../../../src/components/kbd/kbd.class.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,77 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/** A single rendered key token: the compact glyph shown in the key cap, and
|
|
4
|
-
* the spelled-out word used in the chip's `aria-label` (glyphs like `⌘`/
|
|
5
|
-
* `⇧`/`⌥` are not reliably announced across every screen reader/platform
|
|
6
|
-
* combination, so the accessible name always spells them out in full). */
|
|
7
|
-
export interface KbdKeyLabel {
|
|
8
|
-
visual: string;
|
|
9
|
-
word: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Resolves one `+`-separated token of a `keys` string to its rendered glyph
|
|
13
|
-
* and spelled-out word, given whether the shortcut is being shown on macOS.
|
|
14
|
-
*
|
|
15
|
-
* Exported as a pure function (parameterized on `isMac` rather than reading
|
|
16
|
-
* the module-scope platform constant directly) so both the macOS and
|
|
17
|
-
* non-macOS branches are directly unit-testable without having to spoof
|
|
18
|
-
* `navigator` in a browser test environment that only ever runs as one
|
|
19
|
-
* platform.
|
|
20
|
-
*/
|
|
21
|
-
export declare function shortcutTokenLabel(rawToken: string, isMac: boolean): KbdKeyLabel;
|
|
22
|
-
/** Splits a `keys` string (e.g. `'mod+shift+p'`) into its resolved token
|
|
23
|
-
* labels, dropping empty segments from stray/leading/trailing `+`s. */
|
|
24
|
-
export declare function parseShortcut(keys: string, isMac: boolean): KbdKeyLabel[];
|
|
25
|
-
/**
|
|
26
|
-
* `<lyra-kbd>` — a small chip representing a keyboard shortcut, rendering
|
|
27
|
-
* the platform-appropriate glyph for cross-platform modifier keys (⌘ on
|
|
28
|
-
* macOS, "Ctrl" elsewhere) from a single platform-neutral `keys` string.
|
|
29
|
-
*
|
|
30
|
-
* `keys` is a `+`-separated sequence of tokens, e.g. `"mod+k"` or
|
|
31
|
-
* `"mod+shift+p"`. Recognized modifier tokens: `mod` (the platform-neutral
|
|
32
|
-
* primary modifier — ⌘ on macOS, "Ctrl" elsewhere), `alt` (⌥ / "Alt"),
|
|
33
|
-
* `shift` (⇧ on every platform), and `ctrl` (always the literal Control
|
|
34
|
-
* key, distinct from `mod`, for a shortcut that's specifically Ctrl even on
|
|
35
|
-
* macOS). Any other token renders as typed, except a bare single
|
|
36
|
-
* letter/digit which is upper-cased, with a small built-in map of friendly
|
|
37
|
-
* labels for common named keys (`enter` → `↵`, `esc` → "Esc", the four
|
|
38
|
-
* arrow keys → arrow glyphs, plus `tab`/`space`/`backspace`/`delete`/`home`/
|
|
39
|
-
* `end`/`pageup`/`pagedown`/`plus`/`minus`). `enter` renders as its `↵`
|
|
40
|
-
* glyph (not the word "Enter") to match the other single-glyph modifier/
|
|
41
|
-
* arrow keys visually — its spelled-out word form still appears in the
|
|
42
|
-
* computed `aria-label`.
|
|
43
|
-
*
|
|
44
|
-
* Each token renders as its own key cap (`part="key"`); consecutive caps
|
|
45
|
-
* are joined by a small "+" separator between them, matching how most
|
|
46
|
-
* cross-platform shortcut documentation (including on macOS, despite the
|
|
47
|
-
* OS's own native shortcut hints usually running the glyphs together with
|
|
48
|
-
* no separator) reads unambiguously regardless of how many/which glyphs are
|
|
49
|
-
* involved.
|
|
50
|
-
*
|
|
51
|
-
* The default slot is not used for the normal glyph rendering above — it's
|
|
52
|
-
* an escape hatch for fully custom content (e.g. an icon instead of a text
|
|
53
|
-
* glyph) that, when non-empty, replaces the `keys`-driven rendering
|
|
54
|
-
* entirely and stops this component from asserting its own `aria-label`,
|
|
55
|
-
* leaving the slotted content to carry its own accessible name.
|
|
56
|
-
*
|
|
57
|
-
* @customElement lyra-kbd
|
|
58
|
-
* @slot - Optional override for fully custom key-cap content, replacing the
|
|
59
|
-
* `keys`-driven rendering. Leave empty to use `keys`.
|
|
60
|
-
* @csspart base - The chip's root element.
|
|
61
|
-
* @csspart key - Each rendered key cap (one per token in `keys`).
|
|
62
|
-
*/
|
|
63
|
-
export declare class LyraKbd extends LyraElement {
|
|
64
|
-
static styles: import("lit").CSSResultGroup[];
|
|
65
|
-
/** A `+`-separated shortcut, e.g. `'mod+k'`. See the class doc for the
|
|
66
|
-
* full token grammar. */
|
|
67
|
-
keys: string;
|
|
68
|
-
private hasCustomContent;
|
|
69
|
-
protected willUpdate(): void;
|
|
70
|
-
private onSlotChange;
|
|
71
|
-
render(): TemplateResult;
|
|
72
|
-
}
|
|
73
|
-
declare global {
|
|
74
|
-
interface HTMLElementTagNameMap {
|
|
75
|
-
'lyra-kbd': LyraKbd;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
export * from './kbd.class.js';
|
|
2
|
+
//# sourceMappingURL=kbd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.d.ts","sourceRoot":"","sources":["../../../src/components/kbd/kbd.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,231 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { html, nothing } from 'lit';
|
|
8
|
-
import { property, state } from 'lit/decorators.js';
|
|
9
|
-
import { LyraElement } from '../../internal/lyra-element.js';
|
|
1
|
+
export * from './kbd.class.js';
|
|
2
|
+
import { LyraKbd } from './kbd.class.js';
|
|
10
3
|
import { defineElement } from '../../internal/prefix.js';
|
|
11
|
-
import { styles } from './kbd.styles.js';
|
|
12
|
-
// A deliberately small map — just the modifier-adjacent/navigation keys
|
|
13
|
-
// common enough in real shortcuts to be worth a friendly glyph. Anything not
|
|
14
|
-
// listed here (e.g. 'f1', 'k', a punctuation key) falls through to the
|
|
15
|
-
// generic "render as typed, upper-case single letters" rule in
|
|
16
|
-
// `shortcutTokenLabel` below, per this component's spec.
|
|
17
|
-
//
|
|
18
|
-
// 'plus'/'minus' exist specifically so a shortcut that includes a literal
|
|
19
|
-
// "+" or "-" key (e.g. the classic zoom-in shortcut) has a way to say so:
|
|
20
|
-
// the '+'-separated `keys` grammar can't itself carry a literal "+" token
|
|
21
|
-
// (it's the delimiter), so callers spell it as the word instead.
|
|
22
|
-
const NAMED_KEY_LABELS = {
|
|
23
|
-
enter: { visual: '↵', word: 'Enter' },
|
|
24
|
-
esc: { visual: 'Esc', word: 'Escape' },
|
|
25
|
-
escape: { visual: 'Esc', word: 'Escape' },
|
|
26
|
-
tab: { visual: 'Tab', word: 'Tab' },
|
|
27
|
-
space: { visual: 'Space', word: 'Space' },
|
|
28
|
-
backspace: { visual: '⌫', word: 'Backspace' },
|
|
29
|
-
delete: { visual: 'Del', word: 'Delete' },
|
|
30
|
-
home: { visual: 'Home', word: 'Home' },
|
|
31
|
-
end: { visual: 'End', word: 'End' },
|
|
32
|
-
pageup: { visual: 'PgUp', word: 'Page Up' },
|
|
33
|
-
pagedown: { visual: 'PgDn', word: 'Page Down' },
|
|
34
|
-
arrowup: { visual: '↑', word: 'Arrow Up' },
|
|
35
|
-
arrowdown: { visual: '↓', word: 'Arrow Down' },
|
|
36
|
-
arrowleft: { visual: '←', word: 'Arrow Left' },
|
|
37
|
-
arrowright: { visual: '→', word: 'Arrow Right' },
|
|
38
|
-
plus: { visual: '+', word: 'Plus' },
|
|
39
|
-
minus: { visual: '−', word: 'Minus' },
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Resolves one `+`-separated token of a `keys` string to its rendered glyph
|
|
43
|
-
* and spelled-out word, given whether the shortcut is being shown on macOS.
|
|
44
|
-
*
|
|
45
|
-
* Exported as a pure function (parameterized on `isMac` rather than reading
|
|
46
|
-
* the module-scope platform constant directly) so both the macOS and
|
|
47
|
-
* non-macOS branches are directly unit-testable without having to spoof
|
|
48
|
-
* `navigator` in a browser test environment that only ever runs as one
|
|
49
|
-
* platform.
|
|
50
|
-
*/
|
|
51
|
-
export function shortcutTokenLabel(rawToken, isMac) {
|
|
52
|
-
const token = rawToken.trim();
|
|
53
|
-
const lower = token.toLowerCase();
|
|
54
|
-
// 'mod' is the platform-neutral primary modifier: Command on macOS,
|
|
55
|
-
// Control everywhere else. 'ctrl' is deliberately distinct — it always
|
|
56
|
-
// means the literal Control key, even on macOS, for shortcuts that are
|
|
57
|
-
// specifically Ctrl-based (e.g. terminal Ctrl+C) rather than
|
|
58
|
-
// platform-adapted.
|
|
59
|
-
if (lower === 'mod')
|
|
60
|
-
return isMac ? { visual: '⌘', word: 'Command' } : { visual: 'Ctrl', word: 'Control' };
|
|
61
|
-
if (lower === 'ctrl' || lower === 'control')
|
|
62
|
-
return { visual: 'Ctrl', word: 'Control' };
|
|
63
|
-
if (lower === 'alt')
|
|
64
|
-
return isMac ? { visual: '⌥', word: 'Option' } : { visual: 'Alt', word: 'Alt' };
|
|
65
|
-
if (lower === 'shift')
|
|
66
|
-
return { visual: '⇧', word: 'Shift' };
|
|
67
|
-
const named = NAMED_KEY_LABELS[lower];
|
|
68
|
-
if (named)
|
|
69
|
-
return named;
|
|
70
|
-
// Anything else renders as typed (preserving the caller's own casing),
|
|
71
|
-
// except a bare single letter/digit, which is upper-cased for a
|
|
72
|
-
// consistent key-cap look ('k' and 'K' both render 'K').
|
|
73
|
-
if (token.length === 1) {
|
|
74
|
-
const upper = token.toUpperCase();
|
|
75
|
-
return { visual: upper, word: upper };
|
|
76
|
-
}
|
|
77
|
-
return { visual: token, word: token };
|
|
78
|
-
}
|
|
79
|
-
/** Splits a `keys` string (e.g. `'mod+shift+p'`) into its resolved token
|
|
80
|
-
* labels, dropping empty segments from stray/leading/trailing `+`s. */
|
|
81
|
-
export function parseShortcut(keys, isMac) {
|
|
82
|
-
return keys
|
|
83
|
-
.split('+')
|
|
84
|
-
.map((t) => t.trim())
|
|
85
|
-
.filter((t) => t.length > 0)
|
|
86
|
-
.map((t) => shortcutTokenLabel(t, isMac));
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Detects macOS to decide whether `mod`/`alt` render their Mac glyphs (⌘/⌥)
|
|
90
|
-
* or their generic-platform text (Ctrl/Alt). Prefers the modern
|
|
91
|
-
* `navigator.userAgentData` (Client Hints) API when the browser exposes it,
|
|
92
|
-
* falling back through `navigator.platform` and finally a `navigator.userAgent`
|
|
93
|
-
* substring check — all three are deprecated/non-standard to varying
|
|
94
|
-
* degrees (`userAgentData` is Chromium-only so far; `platform` is
|
|
95
|
-
* long-deprecated; `userAgent` sniffing is a last resort) but remain, in
|
|
96
|
-
* combination, the practical cross-browser way to answer "is this macOS"
|
|
97
|
-
* today with no dependency.
|
|
98
|
-
*/
|
|
99
|
-
function detectIsMac() {
|
|
100
|
-
if (typeof navigator === 'undefined')
|
|
101
|
-
return false;
|
|
102
|
-
const uaData = navigator.userAgentData;
|
|
103
|
-
if (uaData?.platform)
|
|
104
|
-
return uaData.platform.toLowerCase().includes('mac');
|
|
105
|
-
if (navigator.platform)
|
|
106
|
-
return /mac/i.test(navigator.platform);
|
|
107
|
-
return /mac/i.test(navigator.userAgent ?? '');
|
|
108
|
-
}
|
|
109
|
-
// Computed once at module scope, not per-instance/per-render — a page's
|
|
110
|
-
// platform never changes mid-session, so there is nothing to gain (and a
|
|
111
|
-
// little cost, however small) from re-detecting it on every <lyra-kbd>
|
|
112
|
-
// instance or every re-render.
|
|
113
|
-
const IS_MAC = detectIsMac();
|
|
114
|
-
// The one "is there real content" predicate shared by both the initial
|
|
115
|
-
// synchronous seed (willUpdate, reading light-DOM childNodes) and the
|
|
116
|
-
// runtime slotchange handler (reading assignedNodes) — using two different
|
|
117
|
-
// predicates for the same question let them disagree: a text-only check
|
|
118
|
-
// would seed correctly for whitespace-only text but (wrongly) treat a
|
|
119
|
-
// content-less icon element as empty, and a node-count-only check would
|
|
120
|
-
// treat *any* assigned node — including a whitespace-only text node — as
|
|
121
|
-
// real content. Counting every element node as real content (regardless of
|
|
122
|
-
// its own text) while requiring non-whitespace text from text nodes gets
|
|
123
|
-
// both cases right in one place.
|
|
124
|
-
const hasRealContent = (nodes) => Array.from(nodes).some((n) => n.nodeType === Node.ELEMENT_NODE || (n.textContent ?? '').trim().length > 0);
|
|
125
|
-
/**
|
|
126
|
-
* `<lyra-kbd>` — a small chip representing a keyboard shortcut, rendering
|
|
127
|
-
* the platform-appropriate glyph for cross-platform modifier keys (⌘ on
|
|
128
|
-
* macOS, "Ctrl" elsewhere) from a single platform-neutral `keys` string.
|
|
129
|
-
*
|
|
130
|
-
* `keys` is a `+`-separated sequence of tokens, e.g. `"mod+k"` or
|
|
131
|
-
* `"mod+shift+p"`. Recognized modifier tokens: `mod` (the platform-neutral
|
|
132
|
-
* primary modifier — ⌘ on macOS, "Ctrl" elsewhere), `alt` (⌥ / "Alt"),
|
|
133
|
-
* `shift` (⇧ on every platform), and `ctrl` (always the literal Control
|
|
134
|
-
* key, distinct from `mod`, for a shortcut that's specifically Ctrl even on
|
|
135
|
-
* macOS). Any other token renders as typed, except a bare single
|
|
136
|
-
* letter/digit which is upper-cased, with a small built-in map of friendly
|
|
137
|
-
* labels for common named keys (`enter` → `↵`, `esc` → "Esc", the four
|
|
138
|
-
* arrow keys → arrow glyphs, plus `tab`/`space`/`backspace`/`delete`/`home`/
|
|
139
|
-
* `end`/`pageup`/`pagedown`/`plus`/`minus`). `enter` renders as its `↵`
|
|
140
|
-
* glyph (not the word "Enter") to match the other single-glyph modifier/
|
|
141
|
-
* arrow keys visually — its spelled-out word form still appears in the
|
|
142
|
-
* computed `aria-label`.
|
|
143
|
-
*
|
|
144
|
-
* Each token renders as its own key cap (`part="key"`); consecutive caps
|
|
145
|
-
* are joined by a small "+" separator between them, matching how most
|
|
146
|
-
* cross-platform shortcut documentation (including on macOS, despite the
|
|
147
|
-
* OS's own native shortcut hints usually running the glyphs together with
|
|
148
|
-
* no separator) reads unambiguously regardless of how many/which glyphs are
|
|
149
|
-
* involved.
|
|
150
|
-
*
|
|
151
|
-
* The default slot is not used for the normal glyph rendering above — it's
|
|
152
|
-
* an escape hatch for fully custom content (e.g. an icon instead of a text
|
|
153
|
-
* glyph) that, when non-empty, replaces the `keys`-driven rendering
|
|
154
|
-
* entirely and stops this component from asserting its own `aria-label`,
|
|
155
|
-
* leaving the slotted content to carry its own accessible name.
|
|
156
|
-
*
|
|
157
|
-
* @customElement lyra-kbd
|
|
158
|
-
* @slot - Optional override for fully custom key-cap content, replacing the
|
|
159
|
-
* `keys`-driven rendering. Leave empty to use `keys`.
|
|
160
|
-
* @csspart base - The chip's root element.
|
|
161
|
-
* @csspart key - Each rendered key cap (one per token in `keys`).
|
|
162
|
-
*/
|
|
163
|
-
export class LyraKbd extends LyraElement {
|
|
164
|
-
constructor() {
|
|
165
|
-
super(...arguments);
|
|
166
|
-
/** A `+`-separated shortcut, e.g. `'mod+k'`. See the class doc for the
|
|
167
|
-
* full token grammar. */
|
|
168
|
-
this.keys = '';
|
|
169
|
-
// Real (non-whitespace) light-DOM content overrides the keys-driven
|
|
170
|
-
// rendering below — same "seed synchronously, refine on slotchange"
|
|
171
|
-
// pattern as lyra-checkbox's hasLabelSlot/lyra-citation-badge's
|
|
172
|
-
// hasPreviewSlot, so a declaratively-slotted override doesn't flash the
|
|
173
|
-
// keys rendering for one frame before the first slotchange event.
|
|
174
|
-
this.hasCustomContent = false;
|
|
175
|
-
this.onSlotChange = (e) => {
|
|
176
|
-
this.hasCustomContent = hasRealContent(e.target.assignedNodes({ flatten: true }));
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
static { this.styles = [LyraElement.styles, styles]; }
|
|
180
|
-
willUpdate() {
|
|
181
|
-
if (!this.hasUpdated) {
|
|
182
|
-
this.hasCustomContent = hasRealContent(this.childNodes);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
render() {
|
|
186
|
-
const explicitLabel = this.getAttribute('aria-label');
|
|
187
|
-
if (this.hasCustomContent) {
|
|
188
|
-
return html `
|
|
189
|
-
<span part="base" aria-label=${explicitLabel || nothing}>
|
|
190
|
-
<slot @slotchange=${this.onSlotChange}></slot>
|
|
191
|
-
</span>
|
|
192
|
-
`;
|
|
193
|
-
}
|
|
194
|
-
const tokens = parseShortcut(this.keys, IS_MAC);
|
|
195
|
-
// role="img" treats the chip as one opaque unit (matching
|
|
196
|
-
// lyra-context-meter's/lyra-chart's canvas usage of the same pattern):
|
|
197
|
-
// the individual glyphs and "+" separators aren't real words, so
|
|
198
|
-
// exposing them as separate accessible-tree text would read worse than
|
|
199
|
-
// the single spelled-out aria-label below. An empty `keys` (and no
|
|
200
|
-
// explicit override) renders nothing visible, so it's marked
|
|
201
|
-
// aria-hidden instead of exposed as a nameless image.
|
|
202
|
-
//
|
|
203
|
-
// role/aria-hidden are both derived from this same `ariaLabel` value
|
|
204
|
-
// (rather than each independently re-deriving "is there a label" from
|
|
205
|
-
// tokens.length/explicitLabel) so role="img" can never be absent while
|
|
206
|
-
// aria-label is present — that combination is an aria-prohibited-attr
|
|
207
|
-
// violation (a nameless-but-labeled, role-less element).
|
|
208
|
-
const ariaLabel = explicitLabel || tokens.map((t) => t.word).join('+');
|
|
209
|
-
return html `
|
|
210
|
-
<span
|
|
211
|
-
part="base"
|
|
212
|
-
role=${ariaLabel ? 'img' : nothing}
|
|
213
|
-
aria-hidden=${ariaLabel ? nothing : 'true'}
|
|
214
|
-
aria-label=${ariaLabel || nothing}
|
|
215
|
-
>
|
|
216
|
-
${tokens.map((t, i) => html `
|
|
217
|
-
${i > 0 ? html `<span class="sep" aria-hidden="true">+</span>` : nothing}
|
|
218
|
-
<span part="key">${t.visual}</span>
|
|
219
|
-
`)}
|
|
220
|
-
<slot @slotchange=${this.onSlotChange} hidden></slot>
|
|
221
|
-
</span>
|
|
222
|
-
`;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
__decorate([
|
|
226
|
-
property()
|
|
227
|
-
], LyraKbd.prototype, "keys", void 0);
|
|
228
|
-
__decorate([
|
|
229
|
-
state()
|
|
230
|
-
], LyraKbd.prototype, "hasCustomContent", void 0);
|
|
231
4
|
defineElement('kbd', LyraKbd);
|
|
5
|
+
//# sourceMappingURL=kbd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.js","sourceRoot":"","sources":["../../../src/components/kbd/kbd.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.styles.d.ts","sourceRoot":"","sources":["../../../src/components/kbd/kbd.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAkDlB,CAAC"}
|
|
@@ -16,8 +16,8 @@ export const styles = css `
|
|
|
16
16
|
— and have more complete glyph coverage — in the UI font than in a
|
|
17
17
|
monospace stack that may not even ship those symbols. */
|
|
18
18
|
font-family: var(--lyra-font);
|
|
19
|
-
font-size:
|
|
20
|
-
line-height:
|
|
19
|
+
font-size: var(--lyra-font-size-sm);
|
|
20
|
+
line-height: var(--lyra-line-height-snug);
|
|
21
21
|
color: var(--lyra-color-text-quiet);
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -26,23 +26,23 @@ export const styles = css `
|
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: center;
|
|
28
28
|
box-sizing: border-box;
|
|
29
|
-
min-inline-size: 1
|
|
30
|
-
padding: 0
|
|
31
|
-
border:
|
|
29
|
+
min-inline-size: var(--lyra-size-1-5em);
|
|
30
|
+
padding: var(--lyra-size-0-0625rem) var(--lyra-space-xs);
|
|
31
|
+
border: var(--lyra-border-width-thin) solid var(--lyra-color-border);
|
|
32
32
|
border-radius: calc(var(--lyra-radius) * 0.6);
|
|
33
33
|
background: var(--lyra-color-surface);
|
|
34
34
|
color: var(--lyra-color-text);
|
|
35
|
-
font-weight:
|
|
35
|
+
font-weight: var(--lyra-font-weight-medium);
|
|
36
36
|
/* A subtle bottom-weighted inset shadow reads as a slightly-raised
|
|
37
37
|
physical key cap rather than a flat label chip, echoing the
|
|
38
38
|
lyra-chip/lyra-checkbox box's own bordered-box treatment. */
|
|
39
|
-
box-shadow: inset 0 -1px 0 var(--lyra-color-border);
|
|
39
|
+
box-shadow: inset 0 var(--lyra-size-neg-1px) 0 var(--lyra-color-border);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.sep {
|
|
43
|
-
margin-inline: 0
|
|
43
|
+
margin-inline: var(--lyra-size-0-1875rem);
|
|
44
44
|
color: var(--lyra-color-text-quiet);
|
|
45
|
-
font-size: 0
|
|
45
|
+
font-size: var(--lyra-size-0-75em);
|
|
46
46
|
user-select: none;
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -50,3 +50,4 @@ export const styles = css `
|
|
|
50
50
|
vertical-align: middle;
|
|
51
51
|
}
|
|
52
52
|
`;
|
|
53
|
+
//# sourceMappingURL=kbd.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd.styles.js","sourceRoot":"","sources":["../../../src/components/kbd/kbd.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDxB,CAAC"}
|