@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,298 @@
|
|
|
1
|
+
import { createEffect, createMemo, createSignal, For, onCleanup, onMount, 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 { mergeStyle } from "../../styles/merge-style";
|
|
6
|
+
import styles from "./elm-slider.module.css";
|
|
7
|
+
const MAX_MARKERS = 500;
|
|
8
|
+
const clamp = (value, low, high) => Math.min(high, Math.max(low, value));
|
|
9
|
+
const preciseRound = (value) => Math.round(value * 1_000_000_000) / 1_000_000_000;
|
|
10
|
+
const primitiveTextLength = (value) => {
|
|
11
|
+
if (typeof value === "string" || typeof value === "number") {
|
|
12
|
+
return String(value).length;
|
|
13
|
+
}
|
|
14
|
+
if (Array.isArray(value)) {
|
|
15
|
+
return value.reduce((length, item) => length + primitiveTextLength(item), 0);
|
|
16
|
+
}
|
|
17
|
+
return 0;
|
|
18
|
+
};
|
|
19
|
+
const buildMarks = (enabled, min, max, step) => {
|
|
20
|
+
if (!enabled || max === min)
|
|
21
|
+
return [];
|
|
22
|
+
const magnitude = Math.abs(step);
|
|
23
|
+
if (magnitude === 0)
|
|
24
|
+
return [];
|
|
25
|
+
const signedStep = max > min ? magnitude : -magnitude;
|
|
26
|
+
const realCount = Math.floor(preciseRound(Math.abs(max - min) / magnitude));
|
|
27
|
+
const marks = [];
|
|
28
|
+
if (realCount <= MAX_MARKERS) {
|
|
29
|
+
for (let index = 0; index <= realCount; index++) {
|
|
30
|
+
const value = preciseRound(min + index * signedStep);
|
|
31
|
+
marks.push({
|
|
32
|
+
value,
|
|
33
|
+
ratio: max === min ? 0 : clamp((value - min) / (max - min), 0, 1),
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
if (preciseRound(min + realCount * signedStep) !== preciseRound(max)) {
|
|
37
|
+
marks.push({ value: max, ratio: 1 });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const sampledStep = (max - min) / MAX_MARKERS;
|
|
42
|
+
for (let index = 0; index <= MAX_MARKERS; index++) {
|
|
43
|
+
const value = index === MAX_MARKERS ? max : preciseRound(min + index * sampledStep);
|
|
44
|
+
marks.push({ value, ratio: index / MAX_MARKERS });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return marks;
|
|
48
|
+
};
|
|
49
|
+
export const ElmSlider = (props) => {
|
|
50
|
+
const [local, rest] = splitProps(props, [
|
|
51
|
+
"ref",
|
|
52
|
+
"class",
|
|
53
|
+
"style",
|
|
54
|
+
"children",
|
|
55
|
+
"onKeyDown",
|
|
56
|
+
"onPointerDown",
|
|
57
|
+
"onPointerMove",
|
|
58
|
+
"onPointerUp",
|
|
59
|
+
"onPointerCancel",
|
|
60
|
+
"onLostPointerCapture",
|
|
61
|
+
"min",
|
|
62
|
+
"max",
|
|
63
|
+
"step",
|
|
64
|
+
"innerMin",
|
|
65
|
+
"innerMax",
|
|
66
|
+
"orientation",
|
|
67
|
+
"value",
|
|
68
|
+
"defaultValue",
|
|
69
|
+
"onValueChange",
|
|
70
|
+
"disabled",
|
|
71
|
+
"markers",
|
|
72
|
+
"markerLabels",
|
|
73
|
+
"formatMarkerLabel",
|
|
74
|
+
]);
|
|
75
|
+
const min = () => local.min ?? 0;
|
|
76
|
+
const max = () => local.max ?? 100;
|
|
77
|
+
const step = () => local.step ?? 1;
|
|
78
|
+
const orientation = () => local.orientation ?? "horizontal";
|
|
79
|
+
const rangeLow = createMemo(() => Math.min(min(), max()));
|
|
80
|
+
const rangeHigh = createMemo(() => Math.max(min(), max()));
|
|
81
|
+
const effectiveInnerMin = createMemo(() => clamp(local.innerMin ?? rangeLow(), rangeLow(), rangeHigh()));
|
|
82
|
+
const effectiveInnerMax = createMemo(() => clamp(local.innerMax ?? rangeHigh(), effectiveInnerMin(), rangeHigh()));
|
|
83
|
+
const clampValue = (value) => clamp(preciseRound(value), effectiveInnerMin(), effectiveInnerMax());
|
|
84
|
+
const snapValue = (value) => {
|
|
85
|
+
const magnitude = Math.abs(step());
|
|
86
|
+
const snapped = magnitude === 0
|
|
87
|
+
? value
|
|
88
|
+
: min() + Math.round((value - min()) / magnitude) * magnitude;
|
|
89
|
+
return clampValue(snapped);
|
|
90
|
+
};
|
|
91
|
+
const ratioOf = (value) => max() === min() ? 0 : clamp((value - min()) / (max() - min()), 0, 1);
|
|
92
|
+
const [currentValue, setCurrentValue] = createControllableSignal({
|
|
93
|
+
value: () => local.value,
|
|
94
|
+
defaultValue: () => clampValue(local.defaultValue ?? (effectiveInnerMin() + effectiveInnerMax()) / 2),
|
|
95
|
+
onChange: (value) => local.onValueChange?.(value),
|
|
96
|
+
});
|
|
97
|
+
const displayValue = createMemo(() => clampValue(currentValue()));
|
|
98
|
+
const valueRatio = createMemo(() => ratioOf(displayValue()));
|
|
99
|
+
const numericInnerMinRatio = createMemo(() => ratioOf(effectiveInnerMin()));
|
|
100
|
+
const numericInnerMaxRatio = createMemo(() => ratioOf(effectiveInnerMax()));
|
|
101
|
+
const innerStartRatio = createMemo(() => Math.min(numericInnerMinRatio(), numericInnerMaxRatio()));
|
|
102
|
+
const innerEndRatio = createMemo(() => Math.max(numericInnerMinRatio(), numericInnerMaxRatio()));
|
|
103
|
+
const fillStartRatio = createMemo(() => Math.min(valueRatio(), numericInnerMinRatio()));
|
|
104
|
+
const fillSizeRatio = createMemo(() => Math.abs(valueRatio() - numericInnerMinRatio()));
|
|
105
|
+
const marksEnabled = createMemo(() => Boolean(local.markers || local.markerLabels));
|
|
106
|
+
const marks = createMemo(() => buildMarks(marksEnabled(), min(), max(), step()));
|
|
107
|
+
const resolvedMarks = createMemo(() => {
|
|
108
|
+
return marks().map((mark) => {
|
|
109
|
+
const label = createMemo(() => {
|
|
110
|
+
if (!local.markerLabels)
|
|
111
|
+
return undefined;
|
|
112
|
+
return local.formatMarkerLabel?.(mark.value) ?? mark.value;
|
|
113
|
+
});
|
|
114
|
+
return { ...mark, label };
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
const maxMarkerLabelChars = createMemo(() => resolvedMarks().reduce((longest, mark) => Math.max(longest, primitiveTextLength(mark.label())), 0));
|
|
118
|
+
const [maxMarkerLabelWidth, setMaxMarkerLabelWidth] = createSignal(0);
|
|
119
|
+
const markerLabelElements = new Set();
|
|
120
|
+
let labelObserver;
|
|
121
|
+
let track;
|
|
122
|
+
let capturedPointerId;
|
|
123
|
+
const measureMarkerLabels = () => {
|
|
124
|
+
let width = 0;
|
|
125
|
+
for (const element of markerLabelElements) {
|
|
126
|
+
width = Math.max(width, element.getBoundingClientRect().width);
|
|
127
|
+
}
|
|
128
|
+
setMaxMarkerLabelWidth(Math.ceil(width));
|
|
129
|
+
};
|
|
130
|
+
const registerMarkerLabel = (element) => {
|
|
131
|
+
markerLabelElements.add(element);
|
|
132
|
+
labelObserver?.observe(element);
|
|
133
|
+
onCleanup(() => {
|
|
134
|
+
markerLabelElements.delete(element);
|
|
135
|
+
labelObserver?.unobserve(element);
|
|
136
|
+
measureMarkerLabels();
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
const releasePointer = (pointerId = capturedPointerId) => {
|
|
140
|
+
if (pointerId === undefined || pointerId !== capturedPointerId)
|
|
141
|
+
return;
|
|
142
|
+
if (track?.hasPointerCapture(pointerId))
|
|
143
|
+
track.releasePointerCapture(pointerId);
|
|
144
|
+
if (capturedPointerId === pointerId)
|
|
145
|
+
capturedPointerId = undefined;
|
|
146
|
+
};
|
|
147
|
+
onMount(() => {
|
|
148
|
+
labelObserver =
|
|
149
|
+
typeof ResizeObserver === "undefined"
|
|
150
|
+
? undefined
|
|
151
|
+
: new ResizeObserver(measureMarkerLabels);
|
|
152
|
+
for (const element of markerLabelElements)
|
|
153
|
+
labelObserver?.observe(element);
|
|
154
|
+
measureMarkerLabels();
|
|
155
|
+
onCleanup(() => {
|
|
156
|
+
releasePointer();
|
|
157
|
+
labelObserver?.disconnect();
|
|
158
|
+
labelObserver = undefined;
|
|
159
|
+
markerLabelElements.clear();
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
createEffect(() => {
|
|
163
|
+
if (local.disabled)
|
|
164
|
+
releasePointer();
|
|
165
|
+
});
|
|
166
|
+
const valueFromPointer = (clientX, clientY) => {
|
|
167
|
+
if (track == null)
|
|
168
|
+
return displayValue();
|
|
169
|
+
const rect = track.getBoundingClientRect();
|
|
170
|
+
const ratio = orientation() === "vertical"
|
|
171
|
+
? rect.height === 0
|
|
172
|
+
? 0
|
|
173
|
+
: clamp((rect.bottom - clientY) / rect.height, 0, 1)
|
|
174
|
+
: rect.width === 0
|
|
175
|
+
? 0
|
|
176
|
+
: clamp((clientX - rect.left) / rect.width, 0, 1);
|
|
177
|
+
return snapValue(min() + ratio * (max() - min()));
|
|
178
|
+
};
|
|
179
|
+
const handlePointerDown = (event) => {
|
|
180
|
+
if (local.disabled)
|
|
181
|
+
return;
|
|
182
|
+
if (capturedPointerId !== undefined &&
|
|
183
|
+
capturedPointerId !== event.pointerId) {
|
|
184
|
+
releasePointer();
|
|
185
|
+
}
|
|
186
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
187
|
+
capturedPointerId = event.pointerId;
|
|
188
|
+
setCurrentValue(valueFromPointer(event.clientX, event.clientY));
|
|
189
|
+
callEventHandler(local.onPointerDown, event);
|
|
190
|
+
};
|
|
191
|
+
const handlePointerMove = (event) => {
|
|
192
|
+
if (local.disabled)
|
|
193
|
+
return;
|
|
194
|
+
if (capturedPointerId !== event.pointerId ||
|
|
195
|
+
!event.currentTarget.hasPointerCapture(event.pointerId)) {
|
|
196
|
+
callEventHandler(local.onPointerMove, event);
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
setCurrentValue(valueFromPointer(event.clientX, event.clientY));
|
|
200
|
+
callEventHandler(local.onPointerMove, event);
|
|
201
|
+
};
|
|
202
|
+
const handlePointerUp = (event) => {
|
|
203
|
+
if (local.disabled)
|
|
204
|
+
return;
|
|
205
|
+
releasePointer(event.pointerId);
|
|
206
|
+
callEventHandler(local.onPointerUp, event);
|
|
207
|
+
};
|
|
208
|
+
const handlePointerCancel = (event) => {
|
|
209
|
+
if (local.disabled)
|
|
210
|
+
return;
|
|
211
|
+
releasePointer(event.pointerId);
|
|
212
|
+
callEventHandler(local.onPointerCancel, event);
|
|
213
|
+
};
|
|
214
|
+
const handleLostPointerCapture = (event) => {
|
|
215
|
+
if (capturedPointerId === event.pointerId)
|
|
216
|
+
capturedPointerId = undefined;
|
|
217
|
+
if (!local.disabled)
|
|
218
|
+
callEventHandler(local.onLostPointerCapture, event);
|
|
219
|
+
};
|
|
220
|
+
const handleKeyDown = (event) => {
|
|
221
|
+
if (local.disabled)
|
|
222
|
+
return;
|
|
223
|
+
const delta = Math.abs(step());
|
|
224
|
+
switch (event.key) {
|
|
225
|
+
case "ArrowRight":
|
|
226
|
+
case "ArrowUp":
|
|
227
|
+
event.preventDefault();
|
|
228
|
+
setCurrentValue(clampValue(displayValue() + delta));
|
|
229
|
+
break;
|
|
230
|
+
case "ArrowLeft":
|
|
231
|
+
case "ArrowDown":
|
|
232
|
+
event.preventDefault();
|
|
233
|
+
setCurrentValue(clampValue(displayValue() - delta));
|
|
234
|
+
break;
|
|
235
|
+
case "PageUp":
|
|
236
|
+
event.preventDefault();
|
|
237
|
+
setCurrentValue(clampValue(displayValue() + delta * 10));
|
|
238
|
+
break;
|
|
239
|
+
case "PageDown":
|
|
240
|
+
event.preventDefault();
|
|
241
|
+
setCurrentValue(clampValue(displayValue() - delta * 10));
|
|
242
|
+
break;
|
|
243
|
+
case "Home":
|
|
244
|
+
event.preventDefault();
|
|
245
|
+
setCurrentValue(effectiveInnerMin());
|
|
246
|
+
break;
|
|
247
|
+
case "End":
|
|
248
|
+
event.preventDefault();
|
|
249
|
+
setCurrentValue(effectiveInnerMax());
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
callEventHandler(local.onKeyDown, event);
|
|
253
|
+
};
|
|
254
|
+
return (<div class={clsx(styles["elm-slider"], orientation() === "vertical" && styles.vertical, local.disabled && styles.disabled, local.markers && styles["has-markers"], local.markerLabels && styles["has-marker-labels"], local.class)} style={mergeStyle(local.style, {
|
|
255
|
+
"--elmethis-scoped-value-ratio": valueRatio(),
|
|
256
|
+
"--elmethis-scoped-inner-min-ratio": innerStartRatio(),
|
|
257
|
+
"--elmethis-scoped-inner-max-ratio": innerEndRatio(),
|
|
258
|
+
"--elmethis-scoped-fill-start-ratio": fillStartRatio(),
|
|
259
|
+
"--elmethis-scoped-fill-size-ratio": fillSizeRatio(),
|
|
260
|
+
"--elmethis-scoped-max-marker-label-chars": maxMarkerLabelChars(),
|
|
261
|
+
"--elmethis-scoped-max-marker-label-width": `${maxMarkerLabelWidth()}px`,
|
|
262
|
+
})}>
|
|
263
|
+
<div tabIndex={local.disabled ? -1 : 0} {...rest} ref={(element) => {
|
|
264
|
+
track = element;
|
|
265
|
+
if (typeof local.ref === "function")
|
|
266
|
+
local.ref(element);
|
|
267
|
+
}} class={styles.track} role="slider" aria-orientation={orientation()} aria-valuemin={effectiveInnerMin()} aria-valuemax={effectiveInnerMax()} aria-valuenow={displayValue()} aria-disabled={local.disabled || undefined} onPointerDown={handlePointerDown} onPointerMove={handlePointerMove} onPointerUp={handlePointerUp} onPointerCancel={handlePointerCancel} onLostPointerCapture={handleLostPointerCapture} onKeyDown={handleKeyDown}>
|
|
268
|
+
<div class={styles.rail} aria-hidden="true">
|
|
269
|
+
<div class={styles["restricted-start"]}/>
|
|
270
|
+
<div class={styles.fill}/>
|
|
271
|
+
<div class={styles["restricted-end"]}/>
|
|
272
|
+
</div>
|
|
273
|
+
|
|
274
|
+
<Show when={resolvedMarks().length > 0}>
|
|
275
|
+
<div class={styles.marks} aria-hidden="true">
|
|
276
|
+
<For each={resolvedMarks()}>
|
|
277
|
+
{(mark, index) => (<span class={clsx(styles.mark, index() === 0 && styles["mark-start"], index() === resolvedMarks().length - 1 &&
|
|
278
|
+
styles["mark-end"], (mark.value < effectiveInnerMin() ||
|
|
279
|
+
mark.value > effectiveInnerMax()) &&
|
|
280
|
+
styles["mark-restricted"])} style={{ "--elmethis-scoped-marker-ratio": mark.ratio }}>
|
|
281
|
+
<Show when={local.markers}>
|
|
282
|
+
<i class={styles.tick}/>
|
|
283
|
+
</Show>
|
|
284
|
+
<Show when={local.markerLabels}>
|
|
285
|
+
<span ref={registerMarkerLabel} class={styles["mark-label"]}>
|
|
286
|
+
{mark.label()}
|
|
287
|
+
</span>
|
|
288
|
+
</Show>
|
|
289
|
+
</span>)}
|
|
290
|
+
</For>
|
|
291
|
+
</div>
|
|
292
|
+
</Show>
|
|
293
|
+
|
|
294
|
+
<span class={styles.thumb} aria-hidden="true"/>
|
|
295
|
+
</div>
|
|
296
|
+
</div>);
|
|
297
|
+
};
|
|
298
|
+
//# sourceMappingURL=elm-slider.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-slider.jsx","sourceRoot":"","sources":["../../../src/components/form/elm-slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,GAAG,EACH,SAAS,EACT,OAAO,EACP,IAAI,EACJ,UAAU,GAGX,MAAM,UAAU,CAAC;AAClB,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,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,MAAM,MAAM,yBAAyB,CAAC;AA6C7C,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,GAAW,EAAE,IAAY,EAAE,E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AExD;kBAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CACxB;oBAAA,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EACxB;kBAAA,EAAE,IAAI,CACN;kBAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAC7B;oBAAA,CAAC,IAAI,CACH,GAAG,CAAC,CAAC,mBAAmB,CAAC,CACzB,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAE5B;sBAAA,CAAC,IAAI,CAAC,KAAK,EAAE,CACf;oBAAA,EAAE,IAAI,CACR;kBAAA,EAAE,IAAI,CACR;gBAAA,EAAE,IAAI,CAAC,CACR,CACH;YAAA,EAAE,GAAG,CACP;UAAA,EAAE,GAAG,CACP;QAAA,EAAE,IAAI,CAEN;;QAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,MAAM,EAC/C;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
.elm-slider {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
width: 100%;
|
|
4
|
+
user-select: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.elm-slider.vertical {
|
|
8
|
+
width: fit-content;
|
|
9
|
+
height: 12rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.elm-slider.disabled {
|
|
13
|
+
cursor: not-allowed;
|
|
14
|
+
opacity: 0.45;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.track {
|
|
18
|
+
position: relative;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 1.25rem;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
touch-action: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.vertical .track {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
width: 1.25rem;
|
|
30
|
+
height: 100%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.disabled .track {
|
|
34
|
+
cursor: not-allowed;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.track:focus-visible {
|
|
39
|
+
outline: 2px solid var(--elmethis-color-primary);
|
|
40
|
+
outline-offset: 4px;
|
|
41
|
+
border-radius: 0.25rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.rail {
|
|
45
|
+
position: relative;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 0.25rem;
|
|
48
|
+
border-radius: 999px;
|
|
49
|
+
background-color: var(--elmethis-color-neutral-weak);
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.vertical .rail {
|
|
54
|
+
width: 0.25rem;
|
|
55
|
+
height: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.restricted-start,
|
|
59
|
+
.restricted-end {
|
|
60
|
+
position: absolute;
|
|
61
|
+
background-color: var(--elmethis-color-neutral-weak);
|
|
62
|
+
background-image: repeating-linear-gradient(
|
|
63
|
+
45deg,
|
|
64
|
+
color-mix(in srgb, var(--elmethis-color-neutral) 35%, transparent) 0,
|
|
65
|
+
color-mix(in srgb, var(--elmethis-color-neutral) 35%, transparent) 2px,
|
|
66
|
+
transparent 2px,
|
|
67
|
+
transparent 6px
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.restricted-start {
|
|
72
|
+
inset: 0 auto 0 0;
|
|
73
|
+
width: calc(var(--elmethis-scoped-inner-min-ratio, 0) * 100%);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.restricted-end {
|
|
77
|
+
inset: 0 0 0 auto;
|
|
78
|
+
width: calc((1 - var(--elmethis-scoped-inner-max-ratio, 1)) * 100%);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.vertical .restricted-start,
|
|
82
|
+
.vertical .restricted-end {
|
|
83
|
+
width: auto;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.vertical .restricted-start {
|
|
87
|
+
inset: auto 0 0;
|
|
88
|
+
height: calc(var(--elmethis-scoped-inner-min-ratio, 0) * 100%);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.vertical .restricted-end {
|
|
92
|
+
inset: 0 0 auto;
|
|
93
|
+
height: calc((1 - var(--elmethis-scoped-inner-max-ratio, 1)) * 100%);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.fill {
|
|
97
|
+
position: absolute;
|
|
98
|
+
inset: 0 auto;
|
|
99
|
+
left: calc(var(--elmethis-scoped-fill-start-ratio, 0) * 100%);
|
|
100
|
+
width: calc(var(--elmethis-scoped-fill-size-ratio, 0) * 100%);
|
|
101
|
+
border-radius: 999px;
|
|
102
|
+
background-color: var(--elmethis-color-primary);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.vertical .fill {
|
|
106
|
+
inset: auto 0 0;
|
|
107
|
+
width: auto;
|
|
108
|
+
bottom: calc(var(--elmethis-scoped-fill-start-ratio, 0) * 100%);
|
|
109
|
+
height: calc(var(--elmethis-scoped-fill-size-ratio, 0) * 100%);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.thumb {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 50%;
|
|
115
|
+
left: calc(var(--elmethis-scoped-value-ratio, 0) * 100%);
|
|
116
|
+
width: 0.875rem;
|
|
117
|
+
height: 0.875rem;
|
|
118
|
+
border-radius: 50%;
|
|
119
|
+
background-color: var(--elmethis-color-primary-strong);
|
|
120
|
+
box-shadow: 0 0.125rem 0.375rem -0.0625rem var(--elmethis-box-shadow-color);
|
|
121
|
+
transform: translate(-50%, -50%);
|
|
122
|
+
transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
123
|
+
pointer-events: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.vertical .thumb {
|
|
127
|
+
top: auto;
|
|
128
|
+
left: 50%;
|
|
129
|
+
bottom: calc(var(--elmethis-scoped-value-ratio, 0) * 100%);
|
|
130
|
+
transform: translate(-50%, 50%);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.track:hover .thumb,
|
|
134
|
+
.track:focus-visible .thumb {
|
|
135
|
+
transform: translate(-50%, -50%) scale(1.2);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.vertical .track:hover .thumb,
|
|
139
|
+
.vertical .track:focus-visible .thumb {
|
|
140
|
+
transform: translate(-50%, 50%) scale(1.2);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.elm-slider.has-markers {
|
|
144
|
+
padding-block-end: 0.5rem;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.elm-slider.has-marker-labels {
|
|
148
|
+
padding-block-end: 1.75rem;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.elm-slider.vertical.has-markers {
|
|
152
|
+
padding-block-end: 0;
|
|
153
|
+
padding-right: 0.5rem;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.elm-slider.vertical.has-marker-labels {
|
|
157
|
+
font-family: var(--elmethis-font-family-monospace);
|
|
158
|
+
font-size: 0.7rem;
|
|
159
|
+
padding-block-end: 0;
|
|
160
|
+
padding-right: calc(
|
|
161
|
+
0.75rem +
|
|
162
|
+
max(
|
|
163
|
+
calc((var(--elmethis-scoped-max-marker-label-chars, 0) + 0.5) * 1ch),
|
|
164
|
+
calc(var(--elmethis-scoped-max-marker-label-width, 0px) + 0.5ch)
|
|
165
|
+
)
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.marks {
|
|
170
|
+
position: absolute;
|
|
171
|
+
inset: 0;
|
|
172
|
+
pointer-events: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.mark {
|
|
176
|
+
position: absolute;
|
|
177
|
+
top: 50%;
|
|
178
|
+
left: calc(var(--elmethis-scoped-marker-ratio, 0) * 100%);
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
align-items: center;
|
|
182
|
+
gap: 0.25rem;
|
|
183
|
+
transform: translate(-50%, 0.75rem);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.vertical .mark {
|
|
187
|
+
top: auto;
|
|
188
|
+
left: 50%;
|
|
189
|
+
bottom: calc(var(--elmethis-scoped-marker-ratio, 0) * 100%);
|
|
190
|
+
flex-direction: row;
|
|
191
|
+
transform: translate(0.75rem, 50%);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.mark-start {
|
|
195
|
+
transform: translate(0, 0.75rem);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mark-end {
|
|
199
|
+
transform: translate(-100%, 0.75rem);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.vertical .mark-start {
|
|
203
|
+
transform: translate(0.75rem, 0);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.vertical .mark-end {
|
|
207
|
+
transform: translate(0.75rem, 100%);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.tick {
|
|
211
|
+
width: 0.125rem;
|
|
212
|
+
height: 0.375rem;
|
|
213
|
+
border-radius: 999px;
|
|
214
|
+
background-color: var(--elmethis-color-neutral);
|
|
215
|
+
font-style: normal;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.vertical .tick {
|
|
219
|
+
width: 0.375rem;
|
|
220
|
+
height: 0.125rem;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.mark-restricted .tick {
|
|
224
|
+
background-color: var(--elmethis-color-neutral-weak);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.mark-label {
|
|
228
|
+
font-family: var(--elmethis-font-family-monospace);
|
|
229
|
+
font-size: 0.7rem;
|
|
230
|
+
color: var(--elmethis-color-neutral);
|
|
231
|
+
white-space: nowrap;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.mark-restricted .mark-label {
|
|
235
|
+
opacity: 0.6;
|
|
236
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { mergeProps, splitProps } from "solid-js";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { callEventHandler } from "../../primitives/call-event-handler";
|
|
4
|
+
import { mergeStyle } from "../../styles/merge-style";
|
|
5
|
+
import styles from "./elm-switch.module.css";
|
|
6
|
+
export const ElmSwitch = (props) => {
|
|
7
|
+
const merged = mergeProps({ color: "var(--elmethis-color-primary)", size: "18px" }, props);
|
|
8
|
+
const [local, rest] = splitProps(merged, [
|
|
9
|
+
"class",
|
|
10
|
+
"style",
|
|
11
|
+
"onClick",
|
|
12
|
+
"color",
|
|
13
|
+
"size",
|
|
14
|
+
"disabled",
|
|
15
|
+
"checked",
|
|
16
|
+
"onCheckedChange",
|
|
17
|
+
"children",
|
|
18
|
+
]);
|
|
19
|
+
const handleClick = (event) => {
|
|
20
|
+
callEventHandler(local.onClick, event);
|
|
21
|
+
if (!event.defaultPrevented && !local.disabled) {
|
|
22
|
+
local.onCheckedChange?.(!local.checked);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return (<div {...rest} onClick={handleClick} class={local.class} style={mergeStyle(local.style, {
|
|
26
|
+
"--elmethis-scoped-color": local.color,
|
|
27
|
+
"--elmethis-scoped-padding": "2px",
|
|
28
|
+
"--elmethis-scoped-size": local.size,
|
|
29
|
+
"--elmethis-scoped-width": "calc(var(--elmethis-scoped-size) * 2 + var(--elmethis-scoped-padding) * 2)",
|
|
30
|
+
})}>
|
|
31
|
+
<input class={styles.switch} type="checkbox" checked={local.checked} disabled={local.disabled} readOnly/>
|
|
32
|
+
<div class={clsx(styles.bar, local.checked && styles.checked, local.disabled && styles.disabled)}>
|
|
33
|
+
<div class={clsx(styles.circle, local.checked && styles.checked, local.disabled && styles.disabled)}/>
|
|
34
|
+
</div>
|
|
35
|
+
</div>);
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=elm-switch.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-switch.jsx","sourceRoot":"","sources":["../../../src/components/form/elm-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAwB7C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IACjD,MAAM,MAAM,GAAG,UAAU,CACvB,EAAE,KAAK,EAAE,+BAA+B,EAAE,IAAI,EAAE,MAAM,EAAE,EACxD,KAAK,CACN,CAAC;IACF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE;QACvC,OAAO;QACP,OAAO;QACP,SAAS;QACT,OAAO;QACP,MAAM;QACN,UAAU;QACV,SAAS;QACT,iBAAiB;QACjB,UAAU;KACX,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,QAAQ,EAAE,CAAC;YAC/C,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,GAAG,CACF,IAAI,IAAI,CAAC,CACT,OAAO,CAAC,CAAC,WAAW,CAAC,CACrB,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CACnB,KAAK,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE;YAC7B,yBAAyB,EAAE,KAAK,CAAC,KAAK;YACtC,2BAA2B,EAAE,KAAK;YAClC,wBAAwB,EAAE,KAAK,CAAC,IAAI;YACpC,yBAAyB,EACvB,4EAA4E;SAC/E,CAAC,CAAC,CAEH;MAAA,CAAC,KAAK,CACJ,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CACrB,IAAI,CAAC,UAAU,CACf,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CACvB,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CACzB,QAAQ,EAEV;MAAA,CAAC,GAAG,CACF,KAAK,CAAC,CAAC,IAAI,CACT,MAAM,CAAC,GAAG,EACV,KAAK,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,EAC/B,KAAK,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAClC,CAAC,CAEF;QAAA,CAAC,GAAG,CACF,KAAK,CAAC,CAAC,IAAI,CACT,MAAM,CAAC,MAAM,EACb,KAAK,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,EAC/B,KAAK,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAClC,CAAC,EAEN;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.switch {
|
|
2
|
+
display: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.bar {
|
|
6
|
+
z-index: 0;
|
|
7
|
+
padding: var(--elmethis-scoped-padding);
|
|
8
|
+
width: var(--elmethis-scoped-width);
|
|
9
|
+
height: var(--elmethis-scoped-size);
|
|
10
|
+
border-radius: calc(
|
|
11
|
+
(var(--elmethis-scoped-size) + var(--elmethis-scoped-padding)) / 2
|
|
12
|
+
);
|
|
13
|
+
position: relative;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
box-shadow: 0 0 2px rgb(0 0 0 / 10%);
|
|
16
|
+
transition:
|
|
17
|
+
opacity 300ms,
|
|
18
|
+
background-color 300ms;
|
|
19
|
+
background-color: rgb(128 128 128 / 25%);
|
|
20
|
+
|
|
21
|
+
&.checked {
|
|
22
|
+
background-color: var(--elmethis-scoped-color);
|
|
23
|
+
opacity: 0.9;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.disabled {
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.circle {
|
|
32
|
+
z-index: 1;
|
|
33
|
+
width: var(--elmethis-scoped-size);
|
|
34
|
+
height: var(--elmethis-scoped-size);
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: var(--elmethis-scoped-padding);
|
|
38
|
+
left: var(--elmethis-scoped-padding);
|
|
39
|
+
transition:
|
|
40
|
+
transform 300ms,
|
|
41
|
+
opacity 300ms,
|
|
42
|
+
background-color 300ms;
|
|
43
|
+
background-color: rgb(255 255 255 / 90%);
|
|
44
|
+
|
|
45
|
+
&.checked {
|
|
46
|
+
transform: translateX(
|
|
47
|
+
calc(var(--elmethis-scoped-width) - var(--elmethis-scoped-size))
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.disabled {
|
|
52
|
+
opacity: 0.5;
|
|
53
|
+
background-color: rgb(128 128 128 / 100%);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
opacity: 0.8;
|
|
58
|
+
}
|
|
59
|
+
}
|