@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,96 @@
|
|
|
1
|
+
.elm-button {
|
|
2
|
+
all: unset;
|
|
3
|
+
position: relative;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
min-height: 2.75rem;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 0.5rem;
|
|
9
|
+
border-radius: 0.25rem;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
padding: 0.5rem 1.5rem;
|
|
12
|
+
line-height: 1.5rem;
|
|
13
|
+
user-select: none;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
transition:
|
|
16
|
+
opacity 200ms,
|
|
17
|
+
transform 200ms;
|
|
18
|
+
opacity: var(--elmethis-scoped-opacity);
|
|
19
|
+
box-shadow: 0 0 0.125rem var(--elmethis-box-shadow-color);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.normal {
|
|
23
|
+
color: oklch(
|
|
24
|
+
from contrast-color(var(--elmethis-color-neutral-strong)) l c h / 65%
|
|
25
|
+
);
|
|
26
|
+
background-color: var(--elmethis-color-neutral-strong);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.primary {
|
|
30
|
+
color: oklch(
|
|
31
|
+
from contrast-color(var(--elmethis-color-primary-weak)) l c h / 65%
|
|
32
|
+
);
|
|
33
|
+
background-color: var(--elmethis-color-primary-weak);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.colored {
|
|
37
|
+
background-color: var(--elmethis-scoped-color);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.enable {
|
|
41
|
+
transition:
|
|
42
|
+
opacity 200ms,
|
|
43
|
+
transform 100ms,
|
|
44
|
+
box-shadow 200ms;
|
|
45
|
+
|
|
46
|
+
&:hover {
|
|
47
|
+
transform: translateX(-1px) translateY(-1px);
|
|
48
|
+
opacity: var(--elmethis-scoped-opacity, 0.7);
|
|
49
|
+
box-shadow: 0.125rem 0.125rem 0.125rem rgb(128 128 128 / 25%);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:active {
|
|
53
|
+
transform: translateX(1px) translateY(1px);
|
|
54
|
+
opacity: var(--elmethis-scoped-opacity, 0.5);
|
|
55
|
+
box-shadow: -1px -1px 0.125rem rgb(128 128 128 / 25%);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.flex {
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 0.5rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes button-ripple {
|
|
67
|
+
0% {
|
|
68
|
+
transform: scale(0);
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
50% {
|
|
73
|
+
transform: scale(1.2);
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
100% {
|
|
78
|
+
transform: scale(1.2);
|
|
79
|
+
opacity: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ripple {
|
|
84
|
+
position: absolute;
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
background-color: rgb(205 181 123 / 15%);
|
|
88
|
+
width: 100%;
|
|
89
|
+
aspect-ratio: 1 / 1;
|
|
90
|
+
transition: none;
|
|
91
|
+
opacity: 0;
|
|
92
|
+
animation-name: button-ripple;
|
|
93
|
+
animation-duration: 300ms;
|
|
94
|
+
animation-fill-mode: both;
|
|
95
|
+
animation-timing-function: ease-out;
|
|
96
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Show, splitProps } from "solid-js";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { callEventHandler } from "../../primitives/call-event-handler";
|
|
4
|
+
import { createControllableSignal } from "../../primitives/create-controllable-signal";
|
|
5
|
+
import { ElmInlineText } from "../typography/elm-inline-text";
|
|
6
|
+
import styles from "./elm-checkbox.module.css";
|
|
7
|
+
export const ElmCheckbox = (props) => {
|
|
8
|
+
const [local, rest] = splitProps(props, [
|
|
9
|
+
"class",
|
|
10
|
+
"onClick",
|
|
11
|
+
"label",
|
|
12
|
+
"isLoading",
|
|
13
|
+
"disabled",
|
|
14
|
+
"checked",
|
|
15
|
+
"defaultChecked",
|
|
16
|
+
"onCheckedChange",
|
|
17
|
+
"children",
|
|
18
|
+
]);
|
|
19
|
+
const [isChecked, setIsChecked] = createControllableSignal({
|
|
20
|
+
value: () => local.checked,
|
|
21
|
+
defaultValue: () => local.defaultChecked ?? false,
|
|
22
|
+
onChange: (checked) => local.onCheckedChange?.(checked),
|
|
23
|
+
});
|
|
24
|
+
const handleClick = (event) => {
|
|
25
|
+
callEventHandler(local.onClick, event);
|
|
26
|
+
if (!event.defaultPrevented && !local.isLoading && !local.disabled) {
|
|
27
|
+
setIsChecked((checked) => !checked);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
return (<div {...rest} class={clsx(styles["elm-checkbox"], local.disabled && styles.disabled, local.class)} onClick={handleClick}>
|
|
31
|
+
<div style={{ display: "flex", "align-items": "center", gap: "0.5rem" }}>
|
|
32
|
+
<svg width="24" height="24" class={styles.checkbox}>
|
|
33
|
+
<circle cx="0" cy="0" r="2" class={styles["loading-dot"]} style={{ opacity: local.isLoading ? 1 : 0 }}>
|
|
34
|
+
<animate attributeName="cx" values="4; 20; 20; 4; 4" dur="1.2s" repeatCount="indefinite" keySplines="0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1" calcMode="spline"/>
|
|
35
|
+
<animate attributeName="cy" values="4; 4; 20; 20; 4" dur="1.2s" repeatCount="indefinite" keySplines="0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1" calcMode="spline"/>
|
|
36
|
+
</circle>
|
|
37
|
+
|
|
38
|
+
<circle cx="20" cy="20" r="2" class={styles["loading-dot"]} style={{ opacity: local.isLoading ? 1 : 0 }}>
|
|
39
|
+
<animate attributeName="cx" values="20; 4; 4; 20; 20" dur="1.2s" repeatCount="indefinite" keySplines="0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1" calcMode="spline"/>
|
|
40
|
+
<animate attributeName="cy" values="20; 20; 4; 4; 20" dur="1.2s" repeatCount="indefinite" keySplines="0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1" calcMode="spline"/>
|
|
41
|
+
</circle>
|
|
42
|
+
|
|
43
|
+
<rect x="4" y="4" width="16" height="16" class={clsx(styles.rect, isChecked() && styles.checked, local.isLoading && styles.loading)} stroke-width="0.8"/>
|
|
44
|
+
|
|
45
|
+
<Show when={isChecked()}>
|
|
46
|
+
<polyline class={styles["check-line"]} points="5,12 10,17 19,8" stroke-width="1.5" fill="transparent"/>
|
|
47
|
+
</Show>
|
|
48
|
+
|
|
49
|
+
<line x1="0" y1="1" x2="4" y2="1" stroke-width="2" fill="transparent"/>
|
|
50
|
+
<line x1="4" y1="0" x2="24" y2="0" stroke-width="1" fill="transparent"/>
|
|
51
|
+
<line x1="0" y1="4" x2="0" y2="16" stroke-width="1" fill="transparent"/>
|
|
52
|
+
<line x1="0" y1="18" x2="0" y2="20" stroke-width="1" fill="transparent"/>
|
|
53
|
+
<line x1="0" y1="24" x2="20" y2="24" stroke-width="1" fill="transparent"/>
|
|
54
|
+
<line x1="20" y1="23" x2="24" y2="23" stroke-width="1.5" fill="transparent"/>
|
|
55
|
+
<line x1="24" y1="4" x2="24" y2="20" style={{ "stroke-width": "1px" }} fill="transparent"/>
|
|
56
|
+
</svg>
|
|
57
|
+
<ElmInlineText>{local.label}</ElmInlineText>
|
|
58
|
+
</div>
|
|
59
|
+
</div>);
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=elm-checkbox.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-checkbox.jsx","sourceRoot":"","sources":["../../../src/components/form/elm-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAyB/C,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACrD,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,EAAE;QACtC,OAAO;QACP,SAAS;QACT,OAAO;QACP,WAAW;QACX,UAAU;QACV,SAAS;QACT,gBAAgB;QAChB,iBAAiB;QACjB,UAAU;KACX,CAAC,CAAC;IACH,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,wBAAwB,CAAC;QACzD,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO;QAC1B,YAAY,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,IAAI,KAAK;QACjD,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC,OAAO,CAAC;KACxD,CAAC,CAAC;IAEH,MAAM,WAAW,GAAiD,CAAC,KAAK,EAAE,EAAE;QAC1E,gBAAgB,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACvC,IAAI,CAAC,KAAK,CAAC,gBAAgB,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YAC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MAAA,EAAE,GAAG,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
.elm-checkbox {
|
|
2
|
+
width: fit-content;
|
|
3
|
+
font-family: sans-serif;
|
|
4
|
+
user-select: none;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
transition: opacity 200ms;
|
|
7
|
+
|
|
8
|
+
&:hover {
|
|
9
|
+
opacity: 0.8;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.disabled {
|
|
13
|
+
opacity: 0.45;
|
|
14
|
+
cursor: not-allowed;
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
opacity: 0.45;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.checkbox {
|
|
23
|
+
stroke: light-dark(rgb(0 0 0 / 80%), rgb(255 255 255 / 80%));
|
|
24
|
+
fill: transparent;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.rect {
|
|
28
|
+
transition: all 0.2s;
|
|
29
|
+
|
|
30
|
+
&.loading {
|
|
31
|
+
opacity: 0.3;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.checked {
|
|
35
|
+
fill: light-dark(rgb(0 0 0 / 80%), rgb(255 255 255 / 80%));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.loading-dot {
|
|
40
|
+
transition: opacity 200ms;
|
|
41
|
+
fill: light-dark(rgb(0 0 0 / 70%), rgb(255 255 255 / 70%));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes elmethis-checkbox-check-line {
|
|
45
|
+
0% {
|
|
46
|
+
stroke-dashoffset: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
100% {
|
|
50
|
+
stroke-dashoffset: 0%;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.check-line {
|
|
55
|
+
stroke-dasharray: 100%;
|
|
56
|
+
animation-name: elmethis-checkbox-check-line;
|
|
57
|
+
animation-duration: 0.2s;
|
|
58
|
+
animation-timing-function: ease-in-out;
|
|
59
|
+
animation-delay: 0.1s;
|
|
60
|
+
animation-fill-mode: both;
|
|
61
|
+
transform-origin: center;
|
|
62
|
+
stroke: light-dark(rgb(255 255 255 / 90%), rgb(0 0 0 / 90%));
|
|
63
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { createMemo, createSignal, For, onCleanup, onMount, Show, splitProps, } from "solid-js";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { mdiArrowDownDropCircleOutline, mdiChevronRight, mdiMenuDown, } from "@mdi/js";
|
|
4
|
+
import { callEventHandler } from "../../primitives/call-event-handler";
|
|
5
|
+
import { createControllableSignal } from "../../primitives/create-controllable-signal";
|
|
6
|
+
import { ElmCollapse } from "../containments/elm-collapse";
|
|
7
|
+
import { ElmInlineIcon } from "../icon/elm-inline-icon";
|
|
8
|
+
import { ElmMdiIcon } from "../icon/elm-mdi-icon";
|
|
9
|
+
import { ElmInlineText } from "../typography/elm-inline-text";
|
|
10
|
+
import styles from "./elm-select.module.css";
|
|
11
|
+
import textStyles from "../../styles/text.module.css";
|
|
12
|
+
export const ElmSelect = (props) => {
|
|
13
|
+
const [local, rest] = splitProps(props, [
|
|
14
|
+
"ref",
|
|
15
|
+
"class",
|
|
16
|
+
"style",
|
|
17
|
+
"onClick",
|
|
18
|
+
"children",
|
|
19
|
+
"label",
|
|
20
|
+
"placeholder",
|
|
21
|
+
"disabled",
|
|
22
|
+
"isLoading",
|
|
23
|
+
"options",
|
|
24
|
+
"selectedOptionId",
|
|
25
|
+
"defaultSelectedOptionId",
|
|
26
|
+
"onSelectedOptionIdChange",
|
|
27
|
+
"icon",
|
|
28
|
+
]);
|
|
29
|
+
const [selected, setSelected] = createControllableSignal({
|
|
30
|
+
value: () => local.selectedOptionId,
|
|
31
|
+
defaultValue: () => local.defaultSelectedOptionId ?? null,
|
|
32
|
+
onChange: (selectedOptionId) => local.onSelectedOptionIdChange?.(selectedOptionId),
|
|
33
|
+
});
|
|
34
|
+
const selectedOption = createMemo(() => local.options.find((option) => option.id === selected()) ?? null);
|
|
35
|
+
const [isOpen, setIsOpen] = createSignal(false);
|
|
36
|
+
let root;
|
|
37
|
+
onMount(() => {
|
|
38
|
+
const handleOutsideClick = (event) => {
|
|
39
|
+
if (isOpen() &&
|
|
40
|
+
event.target instanceof Node &&
|
|
41
|
+
!root.contains(event.target)) {
|
|
42
|
+
setIsOpen(false);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
document.addEventListener("click", handleOutsideClick);
|
|
46
|
+
onCleanup(() => document.removeEventListener("click", handleOutsideClick));
|
|
47
|
+
});
|
|
48
|
+
const handleClick = (event) => {
|
|
49
|
+
callEventHandler(local.onClick, event);
|
|
50
|
+
if (!event.defaultPrevented && !local.disabled && !local.isLoading) {
|
|
51
|
+
setIsOpen((open) => !open);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
return (<div {...rest} ref={(element) => {
|
|
55
|
+
root = element;
|
|
56
|
+
if (typeof local.ref === "function")
|
|
57
|
+
local.ref(element);
|
|
58
|
+
}} class={clsx(styles["elm-select"], isOpen() && styles.active, (local.disabled || local.isLoading) && styles.disabled, local.class)} style={local.style} onClick={handleClick}>
|
|
59
|
+
<span class={clsx(styles.label, isOpen() && styles["label-active"])}>
|
|
60
|
+
{local.icon ?? (<ElmMdiIcon d={mdiArrowDownDropCircleOutline} size="0.75rem"/>)}
|
|
61
|
+
{local.label}
|
|
62
|
+
</span>
|
|
63
|
+
|
|
64
|
+
<div class={styles.body}>
|
|
65
|
+
<div class={clsx(styles["selected-option"], textStyles.text)}>
|
|
66
|
+
<Show when={selectedOption()} keyed fallback={<div class={styles.fallback}>
|
|
67
|
+
<span>{local.placeholder ?? "Select an option"}</span>
|
|
68
|
+
</div>}>
|
|
69
|
+
{(option) => (<div class={styles["option-content"]}>
|
|
70
|
+
<Show when={option.icon} keyed>
|
|
71
|
+
{(icon) => <ElmInlineIcon src={icon}/>}
|
|
72
|
+
</Show>
|
|
73
|
+
<ElmInlineText>{option.label}</ElmInlineText>
|
|
74
|
+
</div>)}
|
|
75
|
+
</Show>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<ElmMdiIcon d={mdiMenuDown} size="1.5rem"/>
|
|
79
|
+
|
|
80
|
+
<ElmCollapse isOpen={isOpen()} class={styles.pulldown}>
|
|
81
|
+
<For each={local.options}>
|
|
82
|
+
{(option) => (<div class={clsx(styles.option, textStyles.text)} onClick={(event) => {
|
|
83
|
+
event.stopPropagation();
|
|
84
|
+
setSelected(option.id);
|
|
85
|
+
setIsOpen(false);
|
|
86
|
+
}}>
|
|
87
|
+
<ElmMdiIcon d={mdiChevronRight} color="var(--elmethis-color-primary-weak)" size="0.75em"/>
|
|
88
|
+
<Show when={option.icon} keyed>
|
|
89
|
+
{(icon) => <ElmInlineIcon src={icon}/>}
|
|
90
|
+
</Show>
|
|
91
|
+
<ElmInlineText>{option.label}</ElmInlineText>
|
|
92
|
+
</div>)}
|
|
93
|
+
</For>
|
|
94
|
+
</ElmCollapse>
|
|
95
|
+
</div>
|
|
96
|
+
</div>);
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=elm-select.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-select.jsx","sourceRoot":"","sources":["../../../src/components/form/elm-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,YAAY,EACZ,GAAG,EACH,SAAS,EACT,OAAO,EACP,IAAI,EACJ,UAAU,GAEX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,6BAA6B,EAC7B,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,gBAAgB,EAAE,MA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CAAC,EAAE,aAAa,CAC9C;cAAA,EAAE,GAAG,CAAC,CACP,CACH;UAAA,EAAE,GAAG,CACP;QAAA,EAAE,WAAW,CACf;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
.elm-select {
|
|
2
|
+
--elmethis-scoped-highlight-color: var(--elmethis-color-primary-weak);
|
|
3
|
+
|
|
4
|
+
user-select: none;
|
|
5
|
+
position: relative;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
padding: 0.25rem;
|
|
8
|
+
border-radius: 0.25rem;
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
gap: 0.25rem;
|
|
13
|
+
border-style: solid;
|
|
14
|
+
border-width: 1px;
|
|
15
|
+
border-color: transparent;
|
|
16
|
+
transition:
|
|
17
|
+
border-color 200ms,
|
|
18
|
+
background-color 200ms;
|
|
19
|
+
background-color: var(--elmethis-color-surface-raised);
|
|
20
|
+
box-shadow: 0 0 0.125rem var(--elmethis-box-shadow-color);
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
|
|
23
|
+
&.disabled {
|
|
24
|
+
background-color: var(--elmethis-color-surface-sunken);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.active {
|
|
28
|
+
border-color: var(--elmethis-scoped-highlight-color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.label {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: 0.125rem;
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
font-size: 0.75rem;
|
|
38
|
+
line-height: 0.75rem;
|
|
39
|
+
height: 0.75rem;
|
|
40
|
+
transition: color 200ms;
|
|
41
|
+
user-select: none;
|
|
42
|
+
color: var(--elmethis-color-neutral);
|
|
43
|
+
|
|
44
|
+
&.label-active {
|
|
45
|
+
color: var(--elmethis-scoped-highlight-color);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.body {
|
|
50
|
+
padding: 0 0.25rem;
|
|
51
|
+
height: 1.25rem;
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
align-items: center;
|
|
55
|
+
|
|
56
|
+
.selected-option {
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
|
|
59
|
+
.option-content {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: 0.25rem;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.fallback {
|
|
67
|
+
opacity: 0.6;
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: flex-start;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: 0.5rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.pulldown {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: calc(100% + 0.25rem);
|
|
77
|
+
left: 0;
|
|
78
|
+
z-index: 100;
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
width: max-content;
|
|
81
|
+
padding: 0;
|
|
82
|
+
border-radius: 0.25rem;
|
|
83
|
+
background-color: light-dark(rgb(255 255 255 / 95%), rgb(51 51 51 / 95%));
|
|
84
|
+
box-shadow: 0 0 0.125rem light-dark(rgb(0 0 0 / 15%), rgb(0 0 0 / 75%));
|
|
85
|
+
|
|
86
|
+
.option {
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
width: 100%;
|
|
89
|
+
padding: 0.5rem;
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
border-radius: 0.25rem;
|
|
92
|
+
display: flex;
|
|
93
|
+
justify-content: flex-start;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: 0.25rem;
|
|
96
|
+
transition: background-color 100ms;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
|
|
99
|
+
&:hover {
|
|
100
|
+
background-color: light-dark(
|
|
101
|
+
rgb(190 194 202 / 30%),
|
|
102
|
+
rgb(190 194 202 / 20%)
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|