@elmethis/solid 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +118 -0
- package/lib/index.solid.cjs +25 -0
- package/lib/index.solid.mjs +5806 -0
- package/lib/style.css +2 -0
- package/lib-solid/components/a2ui/catalog/basic-catalog.jsx +207 -0
- package/lib-solid/components/a2ui/catalog/basic-catalog.jsx.map +1 -0
- package/lib-solid/components/a2ui/catalog/catalog-utils.js +23 -0
- package/lib-solid/components/a2ui/catalog/catalog-utils.js.map +1 -0
- package/lib-solid/components/a2ui/catalog/catalog.js +85 -0
- package/lib-solid/components/a2ui/catalog/catalog.js.map +1 -0
- package/lib-solid/components/a2ui/catalog/notion-block-catalog.jsx +217 -0
- package/lib-solid/components/a2ui/catalog/notion-block-catalog.jsx.map +1 -0
- package/lib-solid/components/a2ui/catalog/render-indexed-child.jsx +4 -0
- package/lib-solid/components/a2ui/catalog/render-indexed-child.jsx.map +1 -0
- package/lib-solid/components/a2ui/component-host.jsx +98 -0
- package/lib-solid/components/a2ui/component-host.jsx.map +1 -0
- package/lib-solid/components/a2ui/elm-a2ui.jsx +152 -0
- package/lib-solid/components/a2ui/elm-a2ui.jsx.map +1 -0
- package/lib-solid/components/a2ui/elm-a2ui.module.css +193 -0
- package/lib-solid/components/a2ui/stream-json-lines.js +45 -0
- package/lib-solid/components/a2ui/stream-json-lines.js.map +1 -0
- package/lib-solid/components/code/elm-code-block.jsx +40 -0
- package/lib-solid/components/code/elm-code-block.jsx.map +1 -0
- package/lib-solid/components/code/elm-code-block.module.css +45 -0
- package/lib-solid/components/code/elm-html-viewer.jsx +114 -0
- package/lib-solid/components/code/elm-html-viewer.jsx.map +1 -0
- package/lib-solid/components/code/elm-html-viewer.module.css +61 -0
- package/lib-solid/components/code/elm-html.jsx +178 -0
- package/lib-solid/components/code/elm-html.jsx.map +1 -0
- package/lib-solid/components/code/elm-html.module.css +5 -0
- package/lib-solid/components/code/elm-katex.jsx +14 -0
- package/lib-solid/components/code/elm-katex.jsx.map +1 -0
- package/lib-solid/components/code/elm-katex.module.css +4 -0
- package/lib-solid/components/code/elm-shiki-highlighter.jsx +74 -0
- package/lib-solid/components/code/elm-shiki-highlighter.jsx.map +1 -0
- package/lib-solid/components/code/elm-shiki-highlighter.module.css +25 -0
- package/lib-solid/components/containments/elm-collapse.jsx +31 -0
- package/lib-solid/components/containments/elm-collapse.jsx.map +1 -0
- package/lib-solid/components/containments/elm-collapse.module.css +47 -0
- package/lib-solid/components/containments/elm-modal.jsx +96 -0
- package/lib-solid/components/containments/elm-modal.jsx.map +1 -0
- package/lib-solid/components/containments/elm-modal.module.css +28 -0
- package/lib-solid/components/containments/elm-parallax.jsx +22 -0
- package/lib-solid/components/containments/elm-parallax.jsx.map +1 -0
- package/lib-solid/components/containments/elm-parallax.module.css +29 -0
- package/lib-solid/components/containments/elm-tabs.jsx +74 -0
- package/lib-solid/components/containments/elm-tabs.jsx.map +1 -0
- package/lib-solid/components/containments/elm-tabs.module.css +63 -0
- package/lib-solid/components/containments/elm-toggle.jsx +58 -0
- package/lib-solid/components/containments/elm-toggle.jsx.map +1 -0
- package/lib-solid/components/containments/elm-toggle.module.css +98 -0
- package/lib-solid/components/containments/elm-tooltip.jsx +61 -0
- package/lib-solid/components/containments/elm-tooltip.jsx.map +1 -0
- package/lib-solid/components/containments/elm-tooltip.module.css +23 -0
- package/lib-solid/components/fallback/elm-block-fallback.jsx +22 -0
- package/lib-solid/components/fallback/elm-block-fallback.jsx.map +1 -0
- package/lib-solid/components/fallback/elm-block-fallback.module.css +8 -0
- package/lib-solid/components/fallback/elm-rectangle-wave.jsx +8 -0
- package/lib-solid/components/fallback/elm-rectangle-wave.jsx.map +1 -0
- package/lib-solid/components/fallback/elm-rectangle-wave.module.css +35 -0
- package/lib-solid/components/fallback/elm-unsupported-block.jsx +19 -0
- package/lib-solid/components/fallback/elm-unsupported-block.jsx.map +1 -0
- package/lib-solid/components/fallback/elm-unsupported-block.module.css +26 -0
- package/lib-solid/components/form/elm-button-dropdown.jsx +121 -0
- package/lib-solid/components/form/elm-button-dropdown.jsx.map +1 -0
- package/lib-solid/components/form/elm-button-dropdown.module.css +83 -0
- package/lib-solid/components/form/elm-button.jsx +49 -0
- package/lib-solid/components/form/elm-button.jsx.map +1 -0
- package/lib-solid/components/form/elm-button.module.css +96 -0
- package/lib-solid/components/form/elm-checkbox.jsx +61 -0
- package/lib-solid/components/form/elm-checkbox.jsx.map +1 -0
- package/lib-solid/components/form/elm-checkbox.module.css +63 -0
- package/lib-solid/components/form/elm-select.jsx +98 -0
- package/lib-solid/components/form/elm-select.jsx.map +1 -0
- package/lib-solid/components/form/elm-select.module.css +108 -0
- package/lib-solid/components/form/elm-slider.jsx +298 -0
- package/lib-solid/components/form/elm-slider.jsx.map +1 -0
- package/lib-solid/components/form/elm-slider.module.css +236 -0
- package/lib-solid/components/form/elm-switch.jsx +37 -0
- package/lib-solid/components/form/elm-switch.jsx.map +1 -0
- package/lib-solid/components/form/elm-switch.module.css +59 -0
- package/lib-solid/components/form/elm-text-area.jsx +95 -0
- package/lib-solid/components/form/elm-text-area.jsx.map +1 -0
- package/lib-solid/components/form/elm-text-area.module.css +133 -0
- package/lib-solid/components/form/elm-text-field.jsx +129 -0
- package/lib-solid/components/form/elm-text-field.jsx.map +1 -0
- package/lib-solid/components/form/elm-text-field.module.css +158 -0
- package/lib-solid/components/form/elm-validation.jsx +27 -0
- package/lib-solid/components/form/elm-validation.jsx.map +1 -0
- package/lib-solid/components/form/elm-validation.module.css +9 -0
- package/lib-solid/components/icon/elm-copy-icon.jsx +34 -0
- package/lib-solid/components/icon/elm-copy-icon.jsx.map +1 -0
- package/lib-solid/components/icon/elm-copy-icon.module.css +32 -0
- package/lib-solid/components/icon/elm-dot-loading-icon.jsx +19 -0
- package/lib-solid/components/icon/elm-dot-loading-icon.jsx.map +1 -0
- package/lib-solid/components/icon/elm-dot-loading-icon.module.css +48 -0
- package/lib-solid/components/icon/elm-inline-icon.jsx +19 -0
- package/lib-solid/components/icon/elm-inline-icon.jsx.map +1 -0
- package/lib-solid/components/icon/elm-inline-icon.module.css +38 -0
- package/lib-solid/components/icon/elm-language-icon.jsx +17 -0
- package/lib-solid/components/icon/elm-language-icon.jsx.map +1 -0
- package/lib-solid/components/icon/elm-mdi-icon.jsx +27 -0
- package/lib-solid/components/icon/elm-mdi-icon.jsx.map +1 -0
- package/lib-solid/components/icon/elm-mdi-icon.module.css +7 -0
- package/lib-solid/components/icon/elm-square-loading-icon.jsx +31 -0
- package/lib-solid/components/icon/elm-square-loading-icon.jsx.map +1 -0
- package/lib-solid/components/icon/elm-square-loading-icon.module.css +38 -0
- package/lib-solid/components/icon/elm-toggle-theme.jsx +146 -0
- package/lib-solid/components/icon/elm-toggle-theme.jsx.map +1 -0
- package/lib-solid/components/icon/elm-toggle-theme.module.css +15 -0
- package/lib-solid/components/icon/language-glyph.jsx +27 -0
- package/lib-solid/components/icon/language-glyph.jsx.map +1 -0
- package/lib-solid/components/media/elm-audio-player.jsx +275 -0
- package/lib-solid/components/media/elm-audio-player.jsx.map +1 -0
- package/lib-solid/components/media/elm-audio-player.module.css +433 -0
- package/lib-solid/components/media/elm-block-image.jsx +54 -0
- package/lib-solid/components/media/elm-block-image.jsx.map +1 -0
- package/lib-solid/components/media/elm-block-image.module.css +45 -0
- package/lib-solid/components/media/elm-file.jsx +65 -0
- package/lib-solid/components/media/elm-file.jsx.map +1 -0
- package/lib-solid/components/media/elm-file.module.css +33 -0
- package/lib-solid/components/navigation/elm-bookmark.jsx +44 -0
- package/lib-solid/components/navigation/elm-bookmark.jsx.map +1 -0
- package/lib-solid/components/navigation/elm-bookmark.module.css +88 -0
- package/lib-solid/components/navigation/elm-breadcrumb.jsx +26 -0
- package/lib-solid/components/navigation/elm-breadcrumb.jsx.map +1 -0
- package/lib-solid/components/navigation/elm-breadcrumb.module.css +44 -0
- package/lib-solid/components/navigation/elm-page-top.jsx +56 -0
- package/lib-solid/components/navigation/elm-page-top.jsx.map +1 -0
- package/lib-solid/components/navigation/elm-page-top.module.css +130 -0
- package/lib-solid/components/notion/elm-notion-callout.jsx +22 -0
- package/lib-solid/components/notion/elm-notion-callout.jsx.map +1 -0
- package/lib-solid/components/notion/elm-notion-callout.module.css +91 -0
- package/lib-solid/components/others/color-sample-copy.js +63 -0
- package/lib-solid/components/others/color-sample-copy.js.map +1 -0
- package/lib-solid/components/others/elm-color-primitive-sample.jsx +55 -0
- package/lib-solid/components/others/elm-color-primitive-sample.jsx.map +1 -0
- package/lib-solid/components/others/elm-color-primitive-sample.module.css +74 -0
- package/lib-solid/components/others/elm-color-semantic-sample.jsx +170 -0
- package/lib-solid/components/others/elm-color-semantic-sample.jsx.map +1 -0
- package/lib-solid/components/others/elm-color-semantic-sample.module.css +134 -0
- package/lib-solid/components/others/elm-markdown.jsx +133 -0
- package/lib-solid/components/others/elm-markdown.jsx.map +1 -0
- package/lib-solid/components/others/elm-markdown.module.css +6 -0
- package/lib-solid/components/others/use-wordle.jsx +247 -0
- package/lib-solid/components/others/use-wordle.jsx.map +1 -0
- package/lib-solid/components/others/use-wordle.module.css +192 -0
- package/lib-solid/components/others/wordle/validGuesses.js +10660 -0
- package/lib-solid/components/others/wordle/validGuesses.js.map +1 -0
- package/lib-solid/components/others/wordle/wordlist.js +5760 -0
- package/lib-solid/components/others/wordle/wordlist.js.map +1 -0
- package/lib-solid/components/table/elm-table-body.jsx +9 -0
- package/lib-solid/components/table/elm-table-body.jsx.map +1 -0
- package/lib-solid/components/table/elm-table-cell.jsx +27 -0
- package/lib-solid/components/table/elm-table-cell.jsx.map +1 -0
- package/lib-solid/components/table/elm-table-cell.module.css +27 -0
- package/lib-solid/components/table/elm-table-header.jsx +13 -0
- package/lib-solid/components/table/elm-table-header.jsx.map +1 -0
- package/lib-solid/components/table/elm-table-header.module.css +7 -0
- package/lib-solid/components/table/elm-table-row.jsx +10 -0
- package/lib-solid/components/table/elm-table-row.jsx.map +1 -0
- package/lib-solid/components/table/elm-table-row.module.css +15 -0
- package/lib-solid/components/table/elm-table.jsx +63 -0
- package/lib-solid/components/table/elm-table.jsx.map +1 -0
- package/lib-solid/components/table/elm-table.module.css +107 -0
- package/lib-solid/components/table/index.js +7 -0
- package/lib-solid/components/table/index.js.map +1 -0
- package/lib-solid/components/table/table-context.js +5 -0
- package/lib-solid/components/table/table-context.js.map +1 -0
- package/lib-solid/components/typography/elm-block-quote.jsx +22 -0
- package/lib-solid/components/typography/elm-block-quote.jsx.map +1 -0
- package/lib-solid/components/typography/elm-block-quote.module.css +40 -0
- package/lib-solid/components/typography/elm-callout.jsx +24 -0
- package/lib-solid/components/typography/elm-callout.jsx.map +1 -0
- package/lib-solid/components/typography/elm-callout.module.css +65 -0
- package/lib-solid/components/typography/elm-divider.jsx +8 -0
- package/lib-solid/components/typography/elm-divider.jsx.map +1 -0
- package/lib-solid/components/typography/elm-divider.module.css +5 -0
- package/lib-solid/components/typography/elm-fragment-identifier.jsx +16 -0
- package/lib-solid/components/typography/elm-fragment-identifier.jsx.map +1 -0
- package/lib-solid/components/typography/elm-fragment-identifier.module.css +28 -0
- package/lib-solid/components/typography/elm-heading.jsx +37 -0
- package/lib-solid/components/typography/elm-heading.jsx.map +1 -0
- package/lib-solid/components/typography/elm-heading.module.css +96 -0
- package/lib-solid/components/typography/elm-inline-text.jsx +75 -0
- package/lib-solid/components/typography/elm-inline-text.jsx.map +1 -0
- package/lib-solid/components/typography/elm-inline-text.module.css +118 -0
- package/lib-solid/components/typography/elm-list.jsx +13 -0
- package/lib-solid/components/typography/elm-list.jsx.map +1 -0
- package/lib-solid/components/typography/elm-list.module.css +92 -0
- package/lib-solid/components/typography/elm-paragraph.jsx +21 -0
- package/lib-solid/components/typography/elm-paragraph.jsx.map +1 -0
- package/lib-solid/components/typography/elm-paragraph.module.css +15 -0
- package/lib-solid/components/typography/markers/list-bullet-level-1.svg +3 -0
- package/lib-solid/components/typography/markers/list-bullet-level-2.svg +3 -0
- package/lib-solid/components/typography/markers/list-bullet-level-3.svg +3 -0
- package/lib-solid/exports.js +67 -0
- package/lib-solid/exports.js.map +1 -0
- package/lib-solid/hooks/create-auto-animate.js +61 -0
- package/lib-solid/hooks/create-auto-animate.js.map +1 -0
- package/lib-solid/index.js +3 -0
- package/lib-solid/index.js.map +1 -0
- package/lib-solid/primitives/call-event-handler.js +9 -0
- package/lib-solid/primitives/call-event-handler.js.map +1 -0
- package/lib-solid/primitives/create-async-state.js +71 -0
- package/lib-solid/primitives/create-async-state.js.map +1 -0
- package/lib-solid/primitives/create-auto-animate.js +67 -0
- package/lib-solid/primitives/create-auto-animate.js.map +1 -0
- package/lib-solid/primitives/create-clipboard.js +41 -0
- package/lib-solid/primitives/create-clipboard.js.map +1 -0
- package/lib-solid/primitives/create-controllable-signal.js +32 -0
- package/lib-solid/primitives/create-controllable-signal.js.map +1 -0
- package/lib-solid/primitives/create-debounced.js +41 -0
- package/lib-solid/primitives/create-debounced.js.map +1 -0
- package/lib-solid/primitives/create-delayed-signal.js +34 -0
- package/lib-solid/primitives/create-delayed-signal.js.map +1 -0
- package/lib-solid/primitives/create-elmethis-theme.js +83 -0
- package/lib-solid/primitives/create-elmethis-theme.js.map +1 -0
- package/lib-solid/primitives/create-modal.jsx +14 -0
- package/lib-solid/primitives/create-modal.jsx.map +1 -0
- package/lib-solid/primitives/create-storage.js +173 -0
- package/lib-solid/primitives/create-storage.js.map +1 -0
- package/lib-solid/primitives/create-throttled-queue.js +80 -0
- package/lib-solid/primitives/create-throttled-queue.js.map +1 -0
- package/lib-solid/primitives/create-throttled.js +58 -0
- package/lib-solid/primitives/create-throttled.js.map +1 -0
- package/lib-solid/styles/_component-vars.css +48 -0
- package/lib-solid/styles/merge-style.js +11 -0
- package/lib-solid/styles/merge-style.js.map +1 -0
- package/lib-solid/styles/text.module.css +11 -0
- package/lib-types/components/a2ui/catalog/basic-catalog.d.ts +5 -0
- package/lib-types/components/a2ui/catalog/basic-catalog.d.ts.map +1 -0
- package/lib-types/components/a2ui/catalog/catalog-utils.d.ts +5 -0
- package/lib-types/components/a2ui/catalog/catalog-utils.d.ts.map +1 -0
- package/lib-types/components/a2ui/catalog/catalog.d.ts +39 -0
- package/lib-types/components/a2ui/catalog/catalog.d.ts.map +1 -0
- package/lib-types/components/a2ui/catalog/notion-block-catalog.d.ts +5 -0
- package/lib-types/components/a2ui/catalog/notion-block-catalog.d.ts.map +1 -0
- package/lib-types/components/a2ui/catalog/render-indexed-child.d.ts +11 -0
- package/lib-types/components/a2ui/catalog/render-indexed-child.d.ts.map +1 -0
- package/lib-types/components/a2ui/component-host.d.ts +14 -0
- package/lib-types/components/a2ui/component-host.d.ts.map +1 -0
- package/lib-types/components/a2ui/elm-a2ui.d.ts +28 -0
- package/lib-types/components/a2ui/elm-a2ui.d.ts.map +1 -0
- package/lib-types/components/a2ui/stream-json-lines.d.ts +8 -0
- package/lib-types/components/a2ui/stream-json-lines.d.ts.map +1 -0
- package/lib-types/components/code/elm-code-block.d.ts +11 -0
- package/lib-types/components/code/elm-code-block.d.ts.map +1 -0
- package/lib-types/components/code/elm-html-viewer.d.ts +20 -0
- package/lib-types/components/code/elm-html-viewer.d.ts.map +1 -0
- package/lib-types/components/code/elm-html.d.ts +24 -0
- package/lib-types/components/code/elm-html.d.ts.map +1 -0
- package/lib-types/components/code/elm-katex.d.ts +9 -0
- package/lib-types/components/code/elm-katex.d.ts.map +1 -0
- package/lib-types/components/code/elm-shiki-highlighter.d.ts +9 -0
- package/lib-types/components/code/elm-shiki-highlighter.d.ts.map +1 -0
- package/lib-types/components/containments/elm-collapse.d.ts +8 -0
- package/lib-types/components/containments/elm-collapse.d.ts.map +1 -0
- package/lib-types/components/containments/elm-modal.d.ts +9 -0
- package/lib-types/components/containments/elm-modal.d.ts.map +1 -0
- package/lib-types/components/containments/elm-parallax.d.ts +6 -0
- package/lib-types/components/containments/elm-parallax.d.ts.map +1 -0
- package/lib-types/components/containments/elm-tabs.d.ts +24 -0
- package/lib-types/components/containments/elm-tabs.d.ts.map +1 -0
- package/lib-types/components/containments/elm-toggle.d.ts +17 -0
- package/lib-types/components/containments/elm-toggle.d.ts.map +1 -0
- package/lib-types/components/containments/elm-tooltip.d.ts +9 -0
- package/lib-types/components/containments/elm-tooltip.d.ts.map +1 -0
- package/lib-types/components/fallback/elm-block-fallback.d.ts +6 -0
- package/lib-types/components/fallback/elm-block-fallback.d.ts.map +1 -0
- package/lib-types/components/fallback/elm-rectangle-wave.d.ts +4 -0
- package/lib-types/components/fallback/elm-rectangle-wave.d.ts.map +1 -0
- package/lib-types/components/fallback/elm-unsupported-block.d.ts +6 -0
- package/lib-types/components/fallback/elm-unsupported-block.d.ts.map +1 -0
- package/lib-types/components/form/elm-button-dropdown.d.ts +51 -0
- package/lib-types/components/form/elm-button-dropdown.d.ts.map +1 -0
- package/lib-types/components/form/elm-button.d.ts +12 -0
- package/lib-types/components/form/elm-button.d.ts.map +1 -0
- package/lib-types/components/form/elm-checkbox.d.ts +17 -0
- package/lib-types/components/form/elm-checkbox.d.ts.map +1 -0
- package/lib-types/components/form/elm-select.d.ts +29 -0
- package/lib-types/components/form/elm-select.d.ts.map +1 -0
- package/lib-types/components/form/elm-slider.d.ts +32 -0
- package/lib-types/components/form/elm-slider.d.ts.map +1 -0
- package/lib-types/components/form/elm-switch.d.ts +15 -0
- package/lib-types/components/form/elm-switch.d.ts.map +1 -0
- package/lib-types/components/form/elm-text-area.d.ts +14 -0
- package/lib-types/components/form/elm-text-area.d.ts.map +1 -0
- package/lib-types/components/form/elm-text-field.d.ts +18 -0
- package/lib-types/components/form/elm-text-field.d.ts.map +1 -0
- package/lib-types/components/form/elm-validation.d.ts +8 -0
- package/lib-types/components/form/elm-validation.d.ts.map +1 -0
- package/lib-types/components/icon/elm-copy-icon.d.ts +7 -0
- package/lib-types/components/icon/elm-copy-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-dot-loading-icon.d.ts +7 -0
- package/lib-types/components/icon/elm-dot-loading-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-inline-icon.d.ts +12 -0
- package/lib-types/components/icon/elm-inline-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-language-icon.d.ts +13 -0
- package/lib-types/components/icon/elm-language-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-mdi-icon.d.ts +10 -0
- package/lib-types/components/icon/elm-mdi-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-square-loading-icon.d.ts +7 -0
- package/lib-types/components/icon/elm-square-loading-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-toggle-theme.d.ts +7 -0
- package/lib-types/components/icon/elm-toggle-theme.d.ts.map +1 -0
- package/lib-types/components/icon/language-glyph.d.ts +11 -0
- package/lib-types/components/icon/language-glyph.d.ts.map +1 -0
- package/lib-types/components/media/elm-audio-player.d.ts +25 -0
- package/lib-types/components/media/elm-audio-player.d.ts.map +1 -0
- package/lib-types/components/media/elm-block-image.d.ts +15 -0
- package/lib-types/components/media/elm-block-image.d.ts.map +1 -0
- package/lib-types/components/media/elm-file.d.ts +11 -0
- package/lib-types/components/media/elm-file.d.ts.map +1 -0
- package/lib-types/components/navigation/elm-bookmark.d.ts +13 -0
- package/lib-types/components/navigation/elm-bookmark.d.ts.map +1 -0
- package/lib-types/components/navigation/elm-breadcrumb.d.ts +11 -0
- package/lib-types/components/navigation/elm-breadcrumb.d.ts.map +1 -0
- package/lib-types/components/navigation/elm-page-top.d.ts +7 -0
- package/lib-types/components/navigation/elm-page-top.d.ts.map +1 -0
- package/lib-types/components/notion/elm-notion-callout.d.ts +21 -0
- package/lib-types/components/notion/elm-notion-callout.d.ts.map +1 -0
- package/lib-types/components/others/color-sample-copy.d.ts +10 -0
- package/lib-types/components/others/color-sample-copy.d.ts.map +1 -0
- package/lib-types/components/others/elm-color-primitive-sample.d.ts +4 -0
- package/lib-types/components/others/elm-color-primitive-sample.d.ts.map +1 -0
- package/lib-types/components/others/elm-color-semantic-sample.d.ts +4 -0
- package/lib-types/components/others/elm-color-semantic-sample.d.ts.map +1 -0
- package/lib-types/components/others/elm-markdown.d.ts +8 -0
- package/lib-types/components/others/elm-markdown.d.ts.map +1 -0
- package/lib-types/components/others/use-wordle.d.ts +25 -0
- package/lib-types/components/others/use-wordle.d.ts.map +1 -0
- package/lib-types/components/others/wordle/validGuesses.d.ts +2 -0
- package/lib-types/components/others/wordle/validGuesses.d.ts.map +1 -0
- package/lib-types/components/others/wordle/wordlist.d.ts +2 -0
- package/lib-types/components/others/wordle/wordlist.d.ts.map +1 -0
- package/lib-types/components/table/elm-table-body.d.ts +4 -0
- package/lib-types/components/table/elm-table-body.d.ts.map +1 -0
- package/lib-types/components/table/elm-table-cell.d.ts +11 -0
- package/lib-types/components/table/elm-table-cell.d.ts.map +1 -0
- package/lib-types/components/table/elm-table-header.d.ts +4 -0
- package/lib-types/components/table/elm-table-header.d.ts.map +1 -0
- package/lib-types/components/table/elm-table-row.d.ts +4 -0
- package/lib-types/components/table/elm-table-row.d.ts.map +1 -0
- package/lib-types/components/table/elm-table.d.ts +7 -0
- package/lib-types/components/table/elm-table.d.ts.map +1 -0
- package/lib-types/components/table/index.d.ts +7 -0
- package/lib-types/components/table/index.d.ts.map +1 -0
- package/lib-types/components/table/table-context.d.ts +7 -0
- package/lib-types/components/table/table-context.d.ts.map +1 -0
- package/lib-types/components/typography/elm-block-quote.d.ts +5 -0
- package/lib-types/components/typography/elm-block-quote.d.ts.map +1 -0
- package/lib-types/components/typography/elm-callout.d.ts +8 -0
- package/lib-types/components/typography/elm-callout.d.ts.map +1 -0
- package/lib-types/components/typography/elm-divider.d.ts +4 -0
- package/lib-types/components/typography/elm-divider.d.ts.map +1 -0
- package/lib-types/components/typography/elm-fragment-identifier.d.ts +7 -0
- package/lib-types/components/typography/elm-fragment-identifier.d.ts.map +1 -0
- package/lib-types/components/typography/elm-heading.d.ts +8 -0
- package/lib-types/components/typography/elm-heading.d.ts.map +1 -0
- package/lib-types/components/typography/elm-inline-text.d.ts +23 -0
- package/lib-types/components/typography/elm-inline-text.d.ts.map +1 -0
- package/lib-types/components/typography/elm-list.d.ts +7 -0
- package/lib-types/components/typography/elm-list.d.ts.map +1 -0
- package/lib-types/components/typography/elm-paragraph.d.ts +7 -0
- package/lib-types/components/typography/elm-paragraph.d.ts.map +1 -0
- package/lib-types/exports.d.ts +67 -0
- package/lib-types/exports.d.ts.map +1 -0
- package/lib-types/hooks/create-auto-animate.d.ts +26 -0
- package/lib-types/hooks/create-auto-animate.d.ts.map +1 -0
- package/lib-types/index.d.ts +3 -0
- package/lib-types/index.d.ts.map +1 -0
- package/lib-types/primitives/call-event-handler.d.ts +6 -0
- package/lib-types/primitives/call-event-handler.d.ts.map +1 -0
- package/lib-types/primitives/create-async-state.d.ts +25 -0
- package/lib-types/primitives/create-async-state.d.ts.map +1 -0
- package/lib-types/primitives/create-auto-animate.d.ts +26 -0
- package/lib-types/primitives/create-auto-animate.d.ts.map +1 -0
- package/lib-types/primitives/create-clipboard.d.ts +16 -0
- package/lib-types/primitives/create-clipboard.d.ts.map +1 -0
- package/lib-types/primitives/create-controllable-signal.d.ts +17 -0
- package/lib-types/primitives/create-controllable-signal.d.ts.map +1 -0
- package/lib-types/primitives/create-debounced.d.ts +10 -0
- package/lib-types/primitives/create-debounced.d.ts.map +1 -0
- package/lib-types/primitives/create-delayed-signal.d.ts +10 -0
- package/lib-types/primitives/create-delayed-signal.d.ts.map +1 -0
- package/lib-types/primitives/create-elmethis-theme.d.ts +12 -0
- package/lib-types/primitives/create-elmethis-theme.d.ts.map +1 -0
- package/lib-types/primitives/create-modal.d.ts +15 -0
- package/lib-types/primitives/create-modal.d.ts.map +1 -0
- package/lib-types/primitives/create-storage.d.ts +18 -0
- package/lib-types/primitives/create-storage.d.ts.map +1 -0
- package/lib-types/primitives/create-throttled-queue.d.ts +17 -0
- package/lib-types/primitives/create-throttled-queue.d.ts.map +1 -0
- package/lib-types/primitives/create-throttled.d.ts +10 -0
- package/lib-types/primitives/create-throttled.d.ts.map +1 -0
- package/lib-types/styles/merge-style.d.ts +5 -0
- package/lib-types/styles/merge-style.d.ts.map +1 -0
- package/package.json +112 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
.elm-audio-player {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
width: 100%;
|
|
4
|
+
padding: 0.875rem 1.5rem;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 0.75rem;
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
border: 1px solid var(--elmethis-color-surface-sunken);
|
|
11
|
+
border-radius: 0.75rem;
|
|
12
|
+
background-color: var(--elmethis-color-surface-raised);
|
|
13
|
+
user-select: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.native-audio {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.elm-audio-player::before {
|
|
21
|
+
content: "";
|
|
22
|
+
position: absolute;
|
|
23
|
+
inset: 0 0 auto;
|
|
24
|
+
height: 1px;
|
|
25
|
+
background: linear-gradient(
|
|
26
|
+
90deg,
|
|
27
|
+
var(--elmethis-color-primary)
|
|
28
|
+
calc(var(--elmethis-scoped-progress, 0) * 100%),
|
|
29
|
+
var(--elmethis-color-neutral-weak)
|
|
30
|
+
calc(var(--elmethis-scoped-progress, 0) * 100%)
|
|
31
|
+
);
|
|
32
|
+
opacity: 0.5;
|
|
33
|
+
transition: opacity 300ms ease;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.elm-audio-player.loading::before {
|
|
37
|
+
opacity: 0.3;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.header {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 0.75rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.artwork {
|
|
47
|
+
flex: 0 0 auto;
|
|
48
|
+
display: grid;
|
|
49
|
+
place-items: center;
|
|
50
|
+
width: 2.5rem;
|
|
51
|
+
height: 2.5rem;
|
|
52
|
+
border-radius: 0.5rem;
|
|
53
|
+
color: var(--elmethis-color-surface-raised);
|
|
54
|
+
background: linear-gradient(
|
|
55
|
+
145deg,
|
|
56
|
+
var(--elmethis-color-primary-strong),
|
|
57
|
+
var(--elmethis-color-primary)
|
|
58
|
+
);
|
|
59
|
+
box-shadow: 0 0.25rem 0.5rem -0.25rem var(--elmethis-box-shadow-color);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.artwork-error {
|
|
63
|
+
color: var(--elmethis-color-accent-error);
|
|
64
|
+
background: var(--elmethis-color-accent-error-surface);
|
|
65
|
+
box-shadow: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.meta {
|
|
69
|
+
flex: 1 1 auto;
|
|
70
|
+
min-width: 0;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
gap: 0.125rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.title {
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
font-size: 0.95rem;
|
|
79
|
+
font-weight: 600;
|
|
80
|
+
letter-spacing: 0.01em;
|
|
81
|
+
color: var(--elmethis-color-neutral-strong);
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
text-overflow: ellipsis;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.artist {
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
font-family: var(--elmethis-font-family-monospace);
|
|
89
|
+
font-size: 0.7rem;
|
|
90
|
+
letter-spacing: 0.06em;
|
|
91
|
+
text-transform: uppercase;
|
|
92
|
+
color: var(--elmethis-color-neutral);
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
text-overflow: ellipsis;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.equalizer {
|
|
98
|
+
flex: 0 0 auto;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: flex-end;
|
|
101
|
+
gap: 2px;
|
|
102
|
+
width: 1.25rem;
|
|
103
|
+
height: 1.25rem;
|
|
104
|
+
|
|
105
|
+
i {
|
|
106
|
+
flex: 1;
|
|
107
|
+
height: 25%;
|
|
108
|
+
border-radius: 1px;
|
|
109
|
+
background-color: var(--elmethis-color-neutral-weak);
|
|
110
|
+
transition: background-color 300ms ease;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.playing .equalizer i {
|
|
115
|
+
background-color: var(--elmethis-color-primary);
|
|
116
|
+
animation: elm-eq 900ms ease-in-out infinite;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.playing .equalizer i:nth-child(1) {
|
|
120
|
+
animation-delay: -200ms;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.playing .equalizer i:nth-child(2) {
|
|
124
|
+
animation-delay: -600ms;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.playing .equalizer i:nth-child(3) {
|
|
128
|
+
animation-delay: -100ms;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.playing .equalizer i:nth-child(4) {
|
|
132
|
+
animation-delay: -450ms;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@keyframes elm-eq {
|
|
136
|
+
0%,
|
|
137
|
+
100% {
|
|
138
|
+
height: 22%;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
50% {
|
|
142
|
+
height: 100%;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.seekbar {
|
|
147
|
+
position: relative;
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 1.25rem;
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
cursor: pointer;
|
|
153
|
+
touch-action: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.seekbar:focus-visible {
|
|
157
|
+
outline: 2px solid var(--elmethis-color-primary);
|
|
158
|
+
outline-offset: 4px;
|
|
159
|
+
border-radius: 0.25rem;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.track {
|
|
163
|
+
position: relative;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: 0.25rem;
|
|
166
|
+
border-radius: 999px;
|
|
167
|
+
background-color: var(--elmethis-color-neutral-weak);
|
|
168
|
+
overflow: hidden;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.fill {
|
|
172
|
+
position: absolute;
|
|
173
|
+
inset: 0 auto 0 0;
|
|
174
|
+
width: calc(var(--elmethis-scoped-progress, 0) * 100%);
|
|
175
|
+
border-radius: 999px;
|
|
176
|
+
background-color: var(--elmethis-color-primary);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.playing .fill {
|
|
180
|
+
box-shadow: 0 0 0.375rem 0 var(--elmethis-color-primary);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.thumb {
|
|
184
|
+
position: absolute;
|
|
185
|
+
top: 50%;
|
|
186
|
+
left: calc(var(--elmethis-scoped-progress, 0) * 100%);
|
|
187
|
+
width: 0.75rem;
|
|
188
|
+
height: 0.75rem;
|
|
189
|
+
border-radius: 50%;
|
|
190
|
+
background-color: var(--elmethis-color-primary-strong);
|
|
191
|
+
box-shadow: 0 0.125rem 0.375rem -0.0625rem var(--elmethis-box-shadow-color);
|
|
192
|
+
transform: translate(-50%, -50%);
|
|
193
|
+
transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
194
|
+
pointer-events: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.seekbar:hover .thumb,
|
|
198
|
+
.seekbar:focus-visible .thumb {
|
|
199
|
+
transform: translate(-50%, -50%) scale(1.25);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.hover-thumb {
|
|
203
|
+
position: absolute;
|
|
204
|
+
top: 50%;
|
|
205
|
+
left: calc(var(--elmethis-scoped-hover, 0) * 100%);
|
|
206
|
+
width: 0.625rem;
|
|
207
|
+
height: 0.625rem;
|
|
208
|
+
border-radius: 50%;
|
|
209
|
+
background-color: var(--elmethis-color-primary);
|
|
210
|
+
opacity: 0;
|
|
211
|
+
transform: translate(-50%, -50%);
|
|
212
|
+
transition: opacity 160ms ease;
|
|
213
|
+
pointer-events: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.seekbar:hover .hover-thumb {
|
|
217
|
+
opacity: 0.35;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.loading .seekbar {
|
|
221
|
+
cursor: progress;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.loading .track {
|
|
225
|
+
animation: elm-pulse 1.4s ease-in-out infinite;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@keyframes elm-pulse {
|
|
229
|
+
0%,
|
|
230
|
+
100% {
|
|
231
|
+
opacity: 0.55;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
50% {
|
|
235
|
+
opacity: 1;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.controls {
|
|
240
|
+
display: flex;
|
|
241
|
+
align-items: center;
|
|
242
|
+
gap: 0.75rem;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.time {
|
|
246
|
+
flex: 0 0 auto;
|
|
247
|
+
min-width: 3ch;
|
|
248
|
+
font-family: var(--elmethis-font-family-monospace);
|
|
249
|
+
font-size: 0.75rem;
|
|
250
|
+
font-variant-numeric: tabular-nums;
|
|
251
|
+
letter-spacing: 0.03em;
|
|
252
|
+
color: var(--elmethis-color-neutral);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.time-current {
|
|
256
|
+
color: var(--elmethis-color-primary);
|
|
257
|
+
text-align: left;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.time-total {
|
|
261
|
+
text-align: right;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.transport {
|
|
265
|
+
flex: 1 1 auto;
|
|
266
|
+
display: flex;
|
|
267
|
+
align-items: center;
|
|
268
|
+
justify-content: center;
|
|
269
|
+
gap: 0.5rem;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.icon-button {
|
|
273
|
+
display: grid;
|
|
274
|
+
place-items: center;
|
|
275
|
+
width: 2rem;
|
|
276
|
+
height: 2rem;
|
|
277
|
+
padding: 0;
|
|
278
|
+
border: none;
|
|
279
|
+
border-radius: 50%;
|
|
280
|
+
color: var(--elmethis-color-neutral-strong);
|
|
281
|
+
background: transparent;
|
|
282
|
+
cursor: pointer;
|
|
283
|
+
transition:
|
|
284
|
+
color 160ms ease,
|
|
285
|
+
background-color 160ms ease,
|
|
286
|
+
transform 120ms ease;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.icon-button:hover {
|
|
290
|
+
color: var(--elmethis-color-primary);
|
|
291
|
+
background-color: var(--elmethis-color-primary-hover);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.icon-button:active {
|
|
295
|
+
transform: scale(0.92);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.icon-button:focus-visible {
|
|
299
|
+
outline: 2px solid var(--elmethis-color-primary);
|
|
300
|
+
outline-offset: 2px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.play-button {
|
|
304
|
+
display: grid;
|
|
305
|
+
place-items: center;
|
|
306
|
+
width: 3rem;
|
|
307
|
+
height: 3rem;
|
|
308
|
+
padding: 0;
|
|
309
|
+
border: none;
|
|
310
|
+
border-radius: 50%;
|
|
311
|
+
color: var(--elmethis-color-surface-raised);
|
|
312
|
+
background: linear-gradient(
|
|
313
|
+
145deg,
|
|
314
|
+
var(--elmethis-color-primary-strong),
|
|
315
|
+
var(--elmethis-color-primary)
|
|
316
|
+
);
|
|
317
|
+
cursor: pointer;
|
|
318
|
+
box-shadow:
|
|
319
|
+
0 0 0 1px color-mix(in srgb, var(--elmethis-color-primary) 40%, transparent),
|
|
320
|
+
0 0.375rem 0.875rem -0.375rem var(--elmethis-color-primary);
|
|
321
|
+
transition:
|
|
322
|
+
transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1),
|
|
323
|
+
box-shadow 160ms ease;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.play-button:hover {
|
|
327
|
+
transform: scale(1.06);
|
|
328
|
+
box-shadow:
|
|
329
|
+
0 0 0 1px color-mix(in srgb, var(--elmethis-color-primary) 60%, transparent),
|
|
330
|
+
0 0.5rem 1.25rem -0.375rem var(--elmethis-color-primary);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.play-button:active {
|
|
334
|
+
transform: scale(0.96);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.play-button:focus-visible {
|
|
338
|
+
outline: 2px solid var(--elmethis-color-primary-strong);
|
|
339
|
+
outline-offset: 3px;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.playing .play-button {
|
|
343
|
+
box-shadow:
|
|
344
|
+
0 0 0 1px color-mix(in srgb, var(--elmethis-color-primary) 50%, transparent),
|
|
345
|
+
0 0 0 6px var(--elmethis-color-primary-hover);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.volume {
|
|
349
|
+
flex: 0 0 auto;
|
|
350
|
+
display: flex;
|
|
351
|
+
align-items: center;
|
|
352
|
+
gap: 0.25rem;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.volume-slider {
|
|
356
|
+
width: 0;
|
|
357
|
+
height: 0.25rem;
|
|
358
|
+
margin: 0;
|
|
359
|
+
padding: 0;
|
|
360
|
+
opacity: 0;
|
|
361
|
+
appearance: none;
|
|
362
|
+
border-radius: 999px;
|
|
363
|
+
background: linear-gradient(
|
|
364
|
+
90deg,
|
|
365
|
+
var(--elmethis-color-primary) calc(var(--elmethis-scoped-volume, 1) * 100%),
|
|
366
|
+
var(--elmethis-color-neutral-weak)
|
|
367
|
+
calc(var(--elmethis-scoped-volume, 1) * 100%)
|
|
368
|
+
);
|
|
369
|
+
cursor: pointer;
|
|
370
|
+
transition:
|
|
371
|
+
width 220ms ease,
|
|
372
|
+
opacity 220ms ease;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.volume:hover .volume-slider,
|
|
376
|
+
.volume:focus-within .volume-slider {
|
|
377
|
+
width: 4rem;
|
|
378
|
+
opacity: 1;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.volume-slider::-webkit-slider-thumb {
|
|
382
|
+
appearance: none;
|
|
383
|
+
width: 0.75rem;
|
|
384
|
+
height: 0.75rem;
|
|
385
|
+
border: none;
|
|
386
|
+
border-radius: 50%;
|
|
387
|
+
background-color: var(--elmethis-color-primary-strong);
|
|
388
|
+
box-shadow: 0 0.125rem 0.25rem -0.0625rem var(--elmethis-box-shadow-color);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.volume-slider::-moz-range-thumb {
|
|
392
|
+
width: 0.75rem;
|
|
393
|
+
height: 0.75rem;
|
|
394
|
+
border: none;
|
|
395
|
+
border-radius: 50%;
|
|
396
|
+
background-color: var(--elmethis-color-primary-strong);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.errored {
|
|
400
|
+
border-color: color-mix(
|
|
401
|
+
in srgb,
|
|
402
|
+
var(--elmethis-color-accent-error) 45%,
|
|
403
|
+
var(--elmethis-color-neutral-weak)
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.error-notice {
|
|
408
|
+
display: flex;
|
|
409
|
+
align-items: center;
|
|
410
|
+
gap: 0.5rem;
|
|
411
|
+
padding: 0.625rem 0.875rem;
|
|
412
|
+
border-radius: 0.5rem;
|
|
413
|
+
color: var(--elmethis-color-accent-error);
|
|
414
|
+
background-color: var(--elmethis-color-accent-error-surface);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.error-message {
|
|
418
|
+
font-size: 0.85rem;
|
|
419
|
+
font-weight: 500;
|
|
420
|
+
line-height: 1.3;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
@media (prefers-reduced-motion: reduce) {
|
|
424
|
+
.playing .equalizer i,
|
|
425
|
+
.loading .track {
|
|
426
|
+
animation: none;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.elm-audio-player *,
|
|
430
|
+
.elm-audio-player {
|
|
431
|
+
transition-duration: 0.01ms !important;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { mergeProps, Show, splitProps } from "solid-js";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { mdiMessageImageOutline } from "@mdi/js";
|
|
4
|
+
import { createModal } from "../../primitives/create-modal";
|
|
5
|
+
import { ElmMdiIcon } from "../icon/elm-mdi-icon";
|
|
6
|
+
import { ElmInlineText } from "../typography/elm-inline-text";
|
|
7
|
+
import styles from "./elm-block-image.module.css";
|
|
8
|
+
export const ElmBlockImage = (props) => {
|
|
9
|
+
const merged = mergeProps({ enableModal: true }, props);
|
|
10
|
+
const [local, rest] = splitProps(merged, [
|
|
11
|
+
"class",
|
|
12
|
+
"children",
|
|
13
|
+
"src",
|
|
14
|
+
"srcSet",
|
|
15
|
+
"sizes",
|
|
16
|
+
"alt",
|
|
17
|
+
"enableModal",
|
|
18
|
+
"caption",
|
|
19
|
+
"width",
|
|
20
|
+
"height",
|
|
21
|
+
]);
|
|
22
|
+
const { Modal: ImageModal, isOpen, show, hide } = createModal();
|
|
23
|
+
const openModal = () => {
|
|
24
|
+
if (local.enableModal)
|
|
25
|
+
show();
|
|
26
|
+
};
|
|
27
|
+
const image = (isModal) => (<img class={styles.image} src={local.src} alt={local.alt ?? local.caption ?? "Image"} srcset={isModal ? undefined : local.srcSet} sizes={isModal ? undefined : local.sizes} width={local.width} height={local.height} loading={isModal ? "lazy" : undefined} fetchpriority={isModal ? "low" : "auto"} onClick={isModal ? hide : undefined} style={{
|
|
28
|
+
"--elmethis-scoped-cursor": local.enableModal
|
|
29
|
+
? isOpen()
|
|
30
|
+
? "zoom-out"
|
|
31
|
+
: "zoom-in"
|
|
32
|
+
: "default",
|
|
33
|
+
"--elmethis-scoped-aspect-ratio": local.width && local.height
|
|
34
|
+
? `${local.width} / ${local.height}`
|
|
35
|
+
: "auto",
|
|
36
|
+
}}/>);
|
|
37
|
+
return (<figure {...rest} class={clsx(styles["elm-block-image"], local.class)}>
|
|
38
|
+
<div class={styles["image-container"]} onClick={openModal}>
|
|
39
|
+
{image(false)}
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<Show when={local.caption}>
|
|
43
|
+
{(caption) => (<figcaption class={styles["caption-box"]}>
|
|
44
|
+
<span class={styles["caption-icon"]}>
|
|
45
|
+
<ElmMdiIcon d={mdiMessageImageOutline} size="1.25rem"/>
|
|
46
|
+
</span>
|
|
47
|
+
<ElmInlineText size="1rem">{caption()}</ElmInlineText>
|
|
48
|
+
</figcaption>)}
|
|
49
|
+
</Show>
|
|
50
|
+
|
|
51
|
+
<ImageModal>{isOpen() && image(true)}</ImageModal>
|
|
52
|
+
</figure>);
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=elm-block-image.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-block-image.jsx","sourceRoot":"","sources":["../../../src/components/media/elm-block-image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,MAAM,MAAM,8BAA8B,CAAC;AAelD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IACzD,MAAM,MAAM,GAAG,UAAU,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,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AU,CAAC,CAAC,MAAM,EAAE,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,UAAU,CACnD;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.elm-block-image {
|
|
2
|
+
margin-inline: 0;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 0.5rem;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.image-container {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
position: relative;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.image {
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
max-height: min(100%, 100vh);
|
|
23
|
+
width: auto;
|
|
24
|
+
height: auto;
|
|
25
|
+
object-fit: contain;
|
|
26
|
+
border-radius: 0.25rem;
|
|
27
|
+
box-shadow: 0 0 0.125rem rgb(0 0 0 / 10%);
|
|
28
|
+
user-select: none;
|
|
29
|
+
aspect-ratio: var(--elmethis-scoped-aspect-ratio, auto);
|
|
30
|
+
cursor: var(--elmethis-scoped-cursor);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.caption-box {
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
padding: 0 1rem;
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 1rem;
|
|
40
|
+
|
|
41
|
+
.caption-icon {
|
|
42
|
+
flex: 1;
|
|
43
|
+
color: var(--elmethis-color-primary);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { onCleanup, splitProps } from "solid-js";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { mdiDownload, mdiFile } from "@mdi/js";
|
|
4
|
+
import styles from "./elm-file.module.css";
|
|
5
|
+
import { ElmMdiIcon } from "../icon/elm-mdi-icon";
|
|
6
|
+
import { ElmInlineText } from "../typography/elm-inline-text";
|
|
7
|
+
function getLastPathSegmentWithoutQueryOrHash(urlString) {
|
|
8
|
+
const cleanedUrl = urlString.split(/[?#]/)[0];
|
|
9
|
+
const pathSegments = cleanedUrl.split("/").filter(Boolean);
|
|
10
|
+
return pathSegments.length > 0 ? pathSegments[pathSegments.length - 1] : null;
|
|
11
|
+
}
|
|
12
|
+
export const ElmFile = (props) => {
|
|
13
|
+
const [local, rest] = splitProps(props, ["class", "name", "src", "filesize"]);
|
|
14
|
+
let objectUrl;
|
|
15
|
+
let disposed = false;
|
|
16
|
+
onCleanup(() => {
|
|
17
|
+
disposed = true;
|
|
18
|
+
if (objectUrl)
|
|
19
|
+
URL.revokeObjectURL(objectUrl);
|
|
20
|
+
});
|
|
21
|
+
const downloadFile = async () => {
|
|
22
|
+
const src = local.src;
|
|
23
|
+
const name = local.name;
|
|
24
|
+
try {
|
|
25
|
+
const response = await fetch(src);
|
|
26
|
+
if (!response.ok)
|
|
27
|
+
throw new Error("Failed to download file");
|
|
28
|
+
const blob = await response.blob();
|
|
29
|
+
if (disposed)
|
|
30
|
+
return;
|
|
31
|
+
const nextObjectUrl = URL.createObjectURL(blob);
|
|
32
|
+
if (objectUrl)
|
|
33
|
+
URL.revokeObjectURL(objectUrl);
|
|
34
|
+
objectUrl = nextObjectUrl;
|
|
35
|
+
const link = document.createElement("a");
|
|
36
|
+
link.href = objectUrl;
|
|
37
|
+
link.download =
|
|
38
|
+
name ?? getLastPathSegmentWithoutQueryOrHash(src) ?? "file";
|
|
39
|
+
link.click();
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
console.error("ERROR:", error);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
return (<div class={clsx(styles["elm-file"], local.class)} {...rest}>
|
|
46
|
+
<div>
|
|
47
|
+
<ElmMdiIcon d={mdiFile} size="1.25rem"/>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div>
|
|
51
|
+
<ElmInlineText>
|
|
52
|
+
{local.name ?? getLastPathSegmentWithoutQueryOrHash(local.src)}
|
|
53
|
+
</ElmInlineText>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div class={styles["file-size"]}>
|
|
57
|
+
<ElmInlineText>{local.filesize}</ElmInlineText>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div class={styles["download-icon"]} onClick={() => void downloadFile()}>
|
|
61
|
+
<ElmMdiIcon d={mdiDownload} size="1.25rem"/>
|
|
62
|
+
</div>
|
|
63
|
+
</div>);
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=elm-file.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-file.jsx","sourceRoot":"","sources":["../../../src/components/media/elm-file.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAa9D,SAAS,oCAAoC,CAC3C,SAAiB;IAEjB,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,YAAY,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3D,OAAO,YAAY,CAAC,MAAM,GAAG,CAAC,CAA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: 1rem;
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: 1.5rem 1fr 1fr 1.5rem;
|
|
5
|
+
gap: 1rem;
|
|
6
|
+
align-items: center;
|
|
7
|
+
box-shadow: 0 0 0.125rem rgb(0 0 0 / 20%);
|
|
8
|
+
border-radius: 0.25rem;
|
|
9
|
+
background-color: light-dark(rgb(255 255 255 / 20%), rgb(0 0 0 / 20%));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.file-size {
|
|
13
|
+
text-align: right;
|
|
14
|
+
opacity: 0.5;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.download-icon {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
height: 1.5rem;
|
|
22
|
+
width: 1.5rem;
|
|
23
|
+
padding: 0.125rem;
|
|
24
|
+
border-radius: 0.125rem;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
transition:
|
|
27
|
+
color 200ms,
|
|
28
|
+
background-color 200ms;
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
background-color: light-dark(rgb(0 0 0 / 10%), rgb(255 255 255 / 10%));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createEffect, createSignal, on, splitProps } from "solid-js";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { mdiLinkVariant } from "@mdi/js";
|
|
4
|
+
import styles from "./elm-bookmark.module.css";
|
|
5
|
+
import { ElmInlineText } from "../typography/elm-inline-text";
|
|
6
|
+
import { ElmMdiIcon } from "../icon/elm-mdi-icon";
|
|
7
|
+
import { ElmInlineIcon } from "../icon/elm-inline-icon";
|
|
8
|
+
const HIDDEN_IMAGE_STYLE = {
|
|
9
|
+
visibility: "hidden",
|
|
10
|
+
width: "0",
|
|
11
|
+
};
|
|
12
|
+
export const ElmBookmark = (props) => {
|
|
13
|
+
const [local, rest] = splitProps(props, [
|
|
14
|
+
"class",
|
|
15
|
+
"title",
|
|
16
|
+
"url",
|
|
17
|
+
"image",
|
|
18
|
+
"description",
|
|
19
|
+
"favicon",
|
|
20
|
+
]);
|
|
21
|
+
const [imageError, setImageError] = createSignal(false);
|
|
22
|
+
createEffect(on(() => local.image, () => setImageError(false), { defer: true }));
|
|
23
|
+
return (<div class={clsx(styles["elm-bookmark"], local.class)} {...rest}>
|
|
24
|
+
<a class={styles.container} href={local.url} target="_blank" rel="noopener noreferrer">
|
|
25
|
+
<img class={styles.image} src={local.image} alt="OGP Image" onError={() => setImageError(true)} style={imageError() || local.image == null ? HIDDEN_IMAGE_STYLE : undefined}/>
|
|
26
|
+
|
|
27
|
+
<div class={styles.content}>
|
|
28
|
+
<div class={styles.title}>
|
|
29
|
+
<ElmInlineText bold>{local.title}</ElmInlineText>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class={styles.description}>
|
|
33
|
+
<ElmInlineText size="0.75rem">{local.description}</ElmInlineText>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div class={styles.link}>
|
|
37
|
+
{local.favicon ? (<ElmInlineIcon src={local.favicon}/>) : (<ElmMdiIcon d={mdiLinkVariant} color="var(--elmethis-color-accent-info)"/>)}
|
|
38
|
+
<ElmInlineText size="0.75rem">{local.url}</ElmInlineText>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</a>
|
|
42
|
+
</div>);
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=elm-bookmark.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-bookmark.jsx","sourceRoot":"","sources":["../../../src/components/navigation/elm-bookmark.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE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