@elmethis/react 0.3.20 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -66
- package/lib/index.react.cjs +2 -1
- package/lib/index.react.mjs +3311 -2630
- package/lib/style.css +1 -1
- package/lib-types/components/a2ui/catalog/block-catalog.d.ts +18 -0
- package/lib-types/components/a2ui/catalog/block-catalog.d.ts.map +1 -0
- package/lib-types/components/a2ui/catalog/catalog-utils.d.ts +30 -0
- package/lib-types/components/a2ui/catalog/catalog-utils.d.ts.map +1 -0
- package/lib-types/components/a2ui/elm-a2ui.d.ts +38 -0
- package/lib-types/components/a2ui/elm-a2ui.d.ts.map +1 -0
- package/lib-types/components/a2ui/stream-json-lines.d.ts +14 -0
- package/lib-types/components/a2ui/stream-json-lines.d.ts.map +1 -0
- package/lib-types/components/code/elm-code-block.d.ts +18 -0
- package/lib-types/components/code/elm-code-block.d.ts.map +1 -0
- package/lib-types/components/code/elm-katex.d.ts +17 -0
- package/lib-types/components/code/elm-katex.d.ts.map +1 -0
- package/lib-types/components/code/elm-shiki-highlighter.d.ts +13 -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 +13 -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 +30 -0
- package/lib-types/components/containments/elm-tabs.d.ts.map +1 -0
- package/lib-types/components/containments/elm-toggle.d.ts +18 -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.d.ts +18 -0
- package/lib-types/components/form/elm-button.d.ts.map +1 -0
- package/lib-types/components/form/elm-checkbox.d.ts +29 -0
- package/lib-types/components/form/elm-checkbox.d.ts.map +1 -0
- package/lib-types/components/form/elm-select.d.ts +49 -0
- package/lib-types/components/form/elm-select.d.ts.map +1 -0
- package/lib-types/components/form/elm-switch.d.ts +25 -0
- package/lib-types/components/form/elm-switch.d.ts.map +1 -0
- package/lib-types/components/form/elm-text-area.d.ts +16 -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 +9 -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 +9 -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 +16 -0
- package/lib-types/components/icon/elm-inline-icon.d.ts.map +1 -0
- package/lib-types/components/icon/elm-language-icon.d.ts +17 -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 +9 -0
- package/lib-types/components/icon/elm-toggle-theme.d.ts.map +1 -0
- package/lib-types/components/icon/languages/bash.d.ts +3 -0
- package/lib-types/components/icon/languages/bash.d.ts.map +1 -0
- package/lib-types/components/icon/languages/c-plus-plus.d.ts +3 -0
- package/lib-types/components/icon/languages/c-plus-plus.d.ts.map +1 -0
- package/lib-types/components/icon/languages/c-sharp.d.ts +3 -0
- package/lib-types/components/icon/languages/c-sharp.d.ts.map +1 -0
- package/lib-types/components/icon/languages/c.d.ts +3 -0
- package/lib-types/components/icon/languages/c.d.ts.map +1 -0
- package/lib-types/components/icon/languages/css.d.ts +3 -0
- package/lib-types/components/icon/languages/css.d.ts.map +1 -0
- package/lib-types/components/icon/languages/go.d.ts +3 -0
- package/lib-types/components/icon/languages/go.d.ts.map +1 -0
- package/lib-types/components/icon/languages/html.d.ts +3 -0
- package/lib-types/components/icon/languages/html.d.ts.map +1 -0
- package/lib-types/components/icon/languages/java.d.ts +3 -0
- package/lib-types/components/icon/languages/java.d.ts.map +1 -0
- package/lib-types/components/icon/languages/javascript.d.ts +3 -0
- package/lib-types/components/icon/languages/javascript.d.ts.map +1 -0
- package/lib-types/components/icon/languages/json.d.ts +3 -0
- package/lib-types/components/icon/languages/json.d.ts.map +1 -0
- package/lib-types/components/icon/languages/kotlin.d.ts +3 -0
- package/lib-types/components/icon/languages/kotlin.d.ts.map +1 -0
- package/lib-types/components/icon/languages/language-interface.d.ts +7 -0
- package/lib-types/components/icon/languages/language-interface.d.ts.map +1 -0
- package/lib-types/components/icon/languages/lua.d.ts +3 -0
- package/lib-types/components/icon/languages/lua.d.ts.map +1 -0
- package/lib-types/components/icon/languages/npm.d.ts +3 -0
- package/lib-types/components/icon/languages/npm.d.ts.map +1 -0
- package/lib-types/components/icon/languages/python.d.ts +3 -0
- package/lib-types/components/icon/languages/python.d.ts.map +1 -0
- package/lib-types/components/icon/languages/rust.d.ts +3 -0
- package/lib-types/components/icon/languages/rust.d.ts.map +1 -0
- package/lib-types/components/icon/languages/sql.d.ts +3 -0
- package/lib-types/components/icon/languages/sql.d.ts.map +1 -0
- package/lib-types/components/icon/languages/terraform.d.ts +3 -0
- package/lib-types/components/icon/languages/terraform.d.ts.map +1 -0
- package/lib-types/components/icon/languages/typescript.d.ts +3 -0
- package/lib-types/components/icon/languages/typescript.d.ts.map +1 -0
- package/lib-types/components/media/elm-block-image.d.ts +19 -0
- package/lib-types/components/media/elm-block-image.d.ts.map +1 -0
- package/lib-types/components/media/elm-file.d.ts +17 -0
- package/lib-types/components/media/elm-file.d.ts.map +1 -0
- package/lib-types/components/navigation/elm-bookmark.d.ts +22 -0
- package/lib-types/components/navigation/elm-bookmark.d.ts.map +1 -0
- package/lib-types/components/navigation/elm-breadcrumb.d.ts +15 -0
- package/lib-types/components/navigation/elm-breadcrumb.d.ts.map +1 -0
- package/lib-types/components/navigation/elm-page-top.d.ts +9 -0
- package/lib-types/components/navigation/elm-page-top.d.ts.map +1 -0
- package/lib-types/components/others/elm-color-primitive-sample.d.ts +5 -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 +5 -0
- package/lib-types/components/others/elm-color-semantic-sample.d.ts.map +1 -0
- package/lib-types/components/others/elm-jarkup.d.ts +8 -0
- package/lib-types/components/others/elm-jarkup.d.ts.map +1 -0
- package/lib-types/components/others/elm-markdown.d.ts +11 -0
- package/lib-types/components/others/elm-markdown.d.ts.map +1 -0
- package/lib-types/components/others/use-wordle.d.ts +24 -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 +21 -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 +25 -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 +10 -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 +9 -0
- package/lib-types/components/typography/elm-fragment-identifier.d.ts.map +1 -0
- package/lib-types/components/typography/elm-heading.d.ts +7 -0
- package/lib-types/components/typography/elm-heading.d.ts.map +1 -0
- package/lib-types/components/typography/elm-inline-text.d.ts +61 -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/hooks/use-async-state.d.ts +58 -0
- package/lib-types/hooks/use-async-state.d.ts.map +1 -0
- package/lib-types/hooks/use-auto-animate.d.ts +44 -0
- package/lib-types/hooks/use-auto-animate.d.ts.map +1 -0
- package/lib-types/hooks/use-bindable-signal.d.ts +35 -0
- package/lib-types/hooks/use-bindable-signal.d.ts.map +1 -0
- package/lib-types/hooks/use-bindable-store.d.ts +43 -0
- package/lib-types/hooks/use-bindable-store.d.ts.map +1 -0
- package/lib-types/hooks/use-clipboard.d.ts +23 -0
- package/lib-types/hooks/use-clipboard.d.ts.map +1 -0
- package/lib-types/hooks/use-debounced-signal.d.ts +39 -0
- package/lib-types/hooks/use-debounced-signal.d.ts.map +1 -0
- package/lib-types/hooks/use-debounced-store.d.ts +40 -0
- package/lib-types/hooks/use-debounced-store.d.ts.map +1 -0
- package/lib-types/hooks/use-delayed-signal.d.ts +37 -0
- package/lib-types/hooks/use-delayed-signal.d.ts.map +1 -0
- package/lib-types/hooks/use-elmethis-theme.d.ts +29 -0
- package/lib-types/hooks/use-elmethis-theme.d.ts.map +1 -0
- package/lib-types/hooks/use-modal.d.ts +23 -0
- package/lib-types/hooks/use-modal.d.ts.map +1 -0
- package/lib-types/hooks/use-storage.d.ts +35 -0
- package/lib-types/hooks/use-storage.d.ts.map +1 -0
- package/lib-types/hooks/use-throttled-queue.d.ts +32 -0
- package/lib-types/hooks/use-throttled-queue.d.ts.map +1 -0
- package/lib-types/hooks/use-throttled-signal.d.ts +47 -0
- package/lib-types/hooks/use-throttled-signal.d.ts.map +1 -0
- package/lib-types/hooks/use-throttled-store.d.ts +61 -0
- package/lib-types/hooks/use-throttled-store.d.ts.map +1 -0
- package/lib-types/index.d.ts +63 -0
- package/lib-types/index.d.ts.map +1 -0
- package/package.json +74 -44
- package/lib/ElmMermaid-CUeT_XM9.js +0 -75
- package/lib/ElmMermaid-DnSjC5T_.cjs +0 -1
- package/lib-types/components/code/ElmCodeBlock.d.ts +0 -22
- package/lib-types/components/code/ElmCodeBlock.d.ts.map +0 -1
- package/lib-types/components/code/ElmCodeBlock.stories.d.ts +0 -9
- package/lib-types/components/code/ElmCodeBlock.stories.d.ts.map +0 -1
- package/lib-types/components/code/ElmKatex.d.ts +0 -19
- package/lib-types/components/code/ElmKatex.d.ts.map +0 -1
- package/lib-types/components/code/ElmKatex.stories.d.ts +0 -9
- package/lib-types/components/code/ElmKatex.stories.d.ts.map +0 -1
- package/lib-types/components/code/ElmMermaid.d.ts +0 -14
- package/lib-types/components/code/ElmMermaid.d.ts.map +0 -1
- package/lib-types/components/code/ElmMermaid.stories.d.ts +0 -8
- package/lib-types/components/code/ElmMermaid.stories.d.ts.map +0 -1
- package/lib-types/components/code/ElmShikiHighlighter.d.ts +0 -20
- package/lib-types/components/code/ElmShikiHighlighter.d.ts.map +0 -1
- package/lib-types/components/code/ElmShikiHighlighter.stories.d.ts +0 -7
- package/lib-types/components/code/ElmShikiHighlighter.stories.d.ts.map +0 -1
- package/lib-types/components/code/shikiInstance.d.ts +0 -3
- package/lib-types/components/code/shikiInstance.d.ts.map +0 -1
- package/lib-types/components/containments/ElmCollapse.d.ts +0 -20
- package/lib-types/components/containments/ElmCollapse.d.ts.map +0 -1
- package/lib-types/components/containments/ElmCollapse.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmCollapse.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmColumn.d.ts +0 -10
- package/lib-types/components/containments/ElmColumn.d.ts.map +0 -1
- package/lib-types/components/containments/ElmColumn.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmColumn.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmColumnList.d.ts +0 -10
- package/lib-types/components/containments/ElmColumnList.d.ts.map +0 -1
- package/lib-types/components/containments/ElmColumnList.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmColumnList.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmConfirmModal.d.ts +0 -24
- package/lib-types/components/containments/ElmConfirmModal.d.ts.map +0 -1
- package/lib-types/components/containments/ElmConfirmModal.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmConfirmModal.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmDesktopWindow.d.ts +0 -15
- package/lib-types/components/containments/ElmDesktopWindow.d.ts.map +0 -1
- package/lib-types/components/containments/ElmDesktopWindow.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmDesktopWindow.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmModal.d.ts +0 -21
- package/lib-types/components/containments/ElmModal.d.ts.map +0 -1
- package/lib-types/components/containments/ElmModal.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmModal.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmParallax.d.ts +0 -14
- package/lib-types/components/containments/ElmParallax.d.ts.map +0 -1
- package/lib-types/components/containments/ElmParallax.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmParallax.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmSimpleTooltip.d.ts +0 -14
- package/lib-types/components/containments/ElmSimpleTooltip.d.ts.map +0 -1
- package/lib-types/components/containments/ElmSimpleTooltip.stories.d.ts +0 -8
- package/lib-types/components/containments/ElmSimpleTooltip.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmSnackbar.d.ts +0 -16
- package/lib-types/components/containments/ElmSnackbar.d.ts.map +0 -1
- package/lib-types/components/containments/ElmSnackbar.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmSnackbar.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmSnackbarContainer.d.ts +0 -19
- package/lib-types/components/containments/ElmSnackbarContainer.d.ts.map +0 -1
- package/lib-types/components/containments/ElmSnackbarContainer.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmSnackbarContainer.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmTabs.d.ts +0 -14
- package/lib-types/components/containments/ElmTabs.d.ts.map +0 -1
- package/lib-types/components/containments/ElmTabs.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmTabs.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmToggle.d.ts +0 -18
- package/lib-types/components/containments/ElmToggle.d.ts.map +0 -1
- package/lib-types/components/containments/ElmToggle.stories.d.ts +0 -9
- package/lib-types/components/containments/ElmToggle.stories.d.ts.map +0 -1
- package/lib-types/components/containments/ElmTooltip.d.ts +0 -14
- package/lib-types/components/containments/ElmTooltip.d.ts.map +0 -1
- package/lib-types/components/containments/ElmTooltip.stories.d.ts +0 -7
- package/lib-types/components/containments/ElmTooltip.stories.d.ts.map +0 -1
- package/lib-types/components/copilotkit/ElmModelSelect.d.ts +0 -17
- package/lib-types/components/copilotkit/ElmModelSelect.d.ts.map +0 -1
- package/lib-types/components/copilotkit/ElmModelSelect.stories.d.ts +0 -28
- package/lib-types/components/copilotkit/ElmModelSelect.stories.d.ts.map +0 -1
- package/lib-types/components/copilotkit/ToolApproval.d.ts +0 -17
- package/lib-types/components/copilotkit/ToolApproval.d.ts.map +0 -1
- package/lib-types/components/copilotkit/ToolApproval.stories.d.ts +0 -7
- package/lib-types/components/copilotkit/ToolApproval.stories.d.ts.map +0 -1
- package/lib-types/components/data/ElmMultiProgress.d.ts +0 -33
- package/lib-types/components/data/ElmMultiProgress.d.ts.map +0 -1
- package/lib-types/components/data/ElmMultiProgress.stories.d.ts +0 -7
- package/lib-types/components/data/ElmMultiProgress.stories.d.ts.map +0 -1
- package/lib-types/components/data/ElmProgress.d.ts +0 -41
- package/lib-types/components/data/ElmProgress.d.ts.map +0 -1
- package/lib-types/components/data/ElmProgress.stories.d.ts +0 -11
- package/lib-types/components/data/ElmProgress.stories.d.ts.map +0 -1
- package/lib-types/components/data/ElmStatusMessage.d.ts +0 -19
- package/lib-types/components/data/ElmStatusMessage.d.ts.map +0 -1
- package/lib-types/components/data/ElmStatusMessage.stories.d.ts +0 -10
- package/lib-types/components/data/ElmStatusMessage.stories.d.ts.map +0 -1
- package/lib-types/components/embed/ElmOEmbed.d.ts +0 -48
- package/lib-types/components/embed/ElmOEmbed.d.ts.map +0 -1
- package/lib-types/components/embed/ElmOEmbed.stories.d.ts +0 -8
- package/lib-types/components/embed/ElmOEmbed.stories.d.ts.map +0 -1
- package/lib-types/components/fallback/ElmBlockFallback.d.ts +0 -15
- package/lib-types/components/fallback/ElmBlockFallback.d.ts.map +0 -1
- package/lib-types/components/fallback/ElmBlockFallback.stories.d.ts +0 -7
- package/lib-types/components/fallback/ElmBlockFallback.stories.d.ts.map +0 -1
- package/lib-types/components/fallback/ElmRectangleWave.d.ts +0 -10
- package/lib-types/components/fallback/ElmRectangleWave.d.ts.map +0 -1
- package/lib-types/components/fallback/ElmRectangleWave.stories.d.ts +0 -7
- package/lib-types/components/fallback/ElmRectangleWave.stories.d.ts.map +0 -1
- package/lib-types/components/fallback/ElmSpinner.d.ts +0 -18
- package/lib-types/components/fallback/ElmSpinner.d.ts.map +0 -1
- package/lib-types/components/fallback/ElmSpinner.stories.d.ts +0 -7
- package/lib-types/components/fallback/ElmSpinner.stories.d.ts.map +0 -1
- package/lib-types/components/fallback/ElmUnsupportedBlock.d.ts +0 -14
- package/lib-types/components/fallback/ElmUnsupportedBlock.d.ts.map +0 -1
- package/lib-types/components/fallback/ElmUnsupportedBlock.stories.d.ts +0 -7
- package/lib-types/components/fallback/ElmUnsupportedBlock.stories.d.ts.map +0 -1
- package/lib-types/components/form/ElmButton.d.ts +0 -24
- package/lib-types/components/form/ElmButton.d.ts.map +0 -1
- package/lib-types/components/form/ElmButton.stories.d.ts +0 -11
- package/lib-types/components/form/ElmButton.stories.d.ts.map +0 -1
- package/lib-types/components/form/ElmCheckbox.d.ts +0 -20
- package/lib-types/components/form/ElmCheckbox.d.ts.map +0 -1
- package/lib-types/components/form/ElmCheckbox.stories.d.ts +0 -7
- package/lib-types/components/form/ElmCheckbox.stories.d.ts.map +0 -1
- package/lib-types/components/form/ElmSelect.d.ts +0 -30
- package/lib-types/components/form/ElmSelect.d.ts.map +0 -1
- package/lib-types/components/form/ElmSelect.stories.d.ts +0 -8
- package/lib-types/components/form/ElmSelect.stories.d.ts.map +0 -1
- package/lib-types/components/form/ElmSwitch.d.ts +0 -24
- package/lib-types/components/form/ElmSwitch.d.ts.map +0 -1
- package/lib-types/components/form/ElmSwitch.stories.d.ts +0 -7
- package/lib-types/components/form/ElmSwitch.stories.d.ts.map +0 -1
- package/lib-types/components/form/ElmTextField.d.ts +0 -34
- package/lib-types/components/form/ElmTextField.d.ts.map +0 -1
- package/lib-types/components/form/ElmTextField.stories.d.ts +0 -7
- package/lib-types/components/form/ElmTextField.stories.d.ts.map +0 -1
- package/lib-types/components/form/ElmValidation.d.ts +0 -17
- package/lib-types/components/form/ElmValidation.d.ts.map +0 -1
- package/lib-types/components/form/ElmValidation.stories.d.ts +0 -7
- package/lib-types/components/form/ElmValidation.stories.d.ts.map +0 -1
- package/lib-types/components/icon/ElmArrowIcon.d.ts +0 -26
- package/lib-types/components/icon/ElmArrowIcon.d.ts.map +0 -1
- package/lib-types/components/icon/ElmArrowIcon.stories.d.ts +0 -7
- package/lib-types/components/icon/ElmArrowIcon.stories.d.ts.map +0 -1
- package/lib-types/components/icon/ElmBookmarkIcon.d.ts +0 -22
- package/lib-types/components/icon/ElmBookmarkIcon.d.ts.map +0 -1
- package/lib-types/components/icon/ElmBookmarkIcon.stories.d.ts +0 -9
- package/lib-types/components/icon/ElmBookmarkIcon.stories.d.ts.map +0 -1
- package/lib-types/components/icon/ElmCubeIcon.d.ts +0 -14
- package/lib-types/components/icon/ElmCubeIcon.d.ts.map +0 -1
- package/lib-types/components/icon/ElmCubeIcon.stories.d.ts +0 -7
- package/lib-types/components/icon/ElmCubeIcon.stories.d.ts.map +0 -1
- package/lib-types/components/icon/ElmDotLoadingIcon.d.ts +0 -20
- package/lib-types/components/icon/ElmDotLoadingIcon.d.ts.map +0 -1
- package/lib-types/components/icon/ElmDotLoadingIcon.stories.d.ts +0 -7
- package/lib-types/components/icon/ElmDotLoadingIcon.stories.d.ts.map +0 -1
- package/lib-types/components/icon/ElmInlineIcon.d.ts +0 -18
- package/lib-types/components/icon/ElmInlineIcon.d.ts.map +0 -1
- package/lib-types/components/icon/ElmInlineIcon.stories.d.ts +0 -7
- package/lib-types/components/icon/ElmInlineIcon.stories.d.ts.map +0 -1
- package/lib-types/components/icon/ElmLanguageIcon.d.ts +0 -19
- package/lib-types/components/icon/ElmLanguageIcon.d.ts.map +0 -1
- package/lib-types/components/icon/ElmLanguageIcon.stories.d.ts +0 -7
- package/lib-types/components/icon/ElmLanguageIcon.stories.d.ts.map +0 -1
- package/lib-types/components/icon/ElmLoginIcon.d.ts +0 -22
- package/lib-types/components/icon/ElmLoginIcon.d.ts.map +0 -1
- package/lib-types/components/icon/ElmLoginIcon.stories.d.ts +0 -7
- package/lib-types/components/icon/ElmLoginIcon.stories.d.ts.map +0 -1
- package/lib-types/components/icon/ElmMdiIcon.d.ts +0 -19
- package/lib-types/components/icon/ElmMdiIcon.d.ts.map +0 -1
- package/lib-types/components/icon/ElmMdiIcon.stories.d.ts +0 -7
- package/lib-types/components/icon/ElmMdiIcon.stories.d.ts.map +0 -1
- package/lib-types/components/icon/ElmSquareLoadingIcon.d.ts +0 -18
- package/lib-types/components/icon/ElmSquareLoadingIcon.d.ts.map +0 -1
- package/lib-types/components/icon/ElmSquareLoadingIcon.stories.d.ts +0 -7
- package/lib-types/components/icon/ElmSquareLoadingIcon.stories.d.ts.map +0 -1
- package/lib-types/components/icon/ElmToggleTheme.d.ts +0 -14
- package/lib-types/components/icon/ElmToggleTheme.d.ts.map +0 -1
- package/lib-types/components/icon/ElmToggleTheme.stories.d.ts +0 -7
- package/lib-types/components/icon/ElmToggleTheme.stories.d.ts.map +0 -1
- package/lib-types/components/icon/language.d.ts +0 -3
- package/lib-types/components/icon/language.d.ts.map +0 -1
- package/lib-types/components/media/ElmFile.d.ts +0 -22
- package/lib-types/components/media/ElmFile.d.ts.map +0 -1
- package/lib-types/components/media/ElmFile.stories.d.ts +0 -8
- package/lib-types/components/media/ElmFile.stories.d.ts.map +0 -1
- package/lib-types/components/media/ElmImage.d.ts +0 -34
- package/lib-types/components/media/ElmImage.d.ts.map +0 -1
- package/lib-types/components/media/ElmImage.stories.d.ts +0 -10
- package/lib-types/components/media/ElmImage.stories.d.ts.map +0 -1
- package/lib-types/components/navigation/ElmBookmark.d.ts +0 -53
- package/lib-types/components/navigation/ElmBookmark.d.ts.map +0 -1
- package/lib-types/components/navigation/ElmBookmark.stories.d.ts +0 -9
- package/lib-types/components/navigation/ElmBookmark.stories.d.ts.map +0 -1
- package/lib-types/components/navigation/ElmBreadcrumb.d.ts +0 -23
- package/lib-types/components/navigation/ElmBreadcrumb.d.ts.map +0 -1
- package/lib-types/components/navigation/ElmBreadcrumb.stories.d.ts +0 -8
- package/lib-types/components/navigation/ElmBreadcrumb.stories.d.ts.map +0 -1
- package/lib-types/components/navigation/ElmPageTop.d.ts +0 -14
- package/lib-types/components/navigation/ElmPageTop.d.ts.map +0 -1
- package/lib-types/components/navigation/ElmPageTop.stories.d.ts +0 -7
- package/lib-types/components/navigation/ElmPageTop.stories.d.ts.map +0 -1
- package/lib-types/components/navigation/ElmTableOfContents.d.ts +0 -18
- package/lib-types/components/navigation/ElmTableOfContents.d.ts.map +0 -1
- package/lib-types/components/navigation/ElmTableOfContents.stories.d.ts +0 -8
- package/lib-types/components/navigation/ElmTableOfContents.stories.d.ts.map +0 -1
- package/lib-types/components/others/ElmColorSample.d.ts +0 -12
- package/lib-types/components/others/ElmColorSample.d.ts.map +0 -1
- package/lib-types/components/others/ElmColorSample.stories.d.ts +0 -8
- package/lib-types/components/others/ElmColorSample.stories.d.ts.map +0 -1
- package/lib-types/components/others/ElmColorTable.d.ts +0 -15
- package/lib-types/components/others/ElmColorTable.d.ts.map +0 -1
- package/lib-types/components/others/ElmColorTable.stories.d.ts +0 -7
- package/lib-types/components/others/ElmColorTable.stories.d.ts.map +0 -1
- package/lib-types/components/others/ElmCommandPalette.d.ts +0 -34
- package/lib-types/components/others/ElmCommandPalette.d.ts.map +0 -1
- package/lib-types/components/others/ElmCommandPalette.stories.d.ts +0 -7
- package/lib-types/components/others/ElmCommandPalette.stories.d.ts.map +0 -1
- package/lib-types/components/others/ElmJarkup.d.ts +0 -30
- package/lib-types/components/others/ElmJarkup.d.ts.map +0 -1
- package/lib-types/components/others/ElmJarkup.stories.d.ts +0 -8
- package/lib-types/components/others/ElmJarkup.stories.d.ts.map +0 -1
- package/lib-types/components/others/ElmJsonComponentRenderer.d.ts +0 -14
- package/lib-types/components/others/ElmJsonComponentRenderer.d.ts.map +0 -1
- package/lib-types/components/others/ElmJsonComponentRenderer.stories.d.ts +0 -7
- package/lib-types/components/others/ElmJsonComponentRenderer.stories.d.ts.map +0 -1
- package/lib-types/components/others/ElmMarkdown.d.ts +0 -25
- package/lib-types/components/others/ElmMarkdown.d.ts.map +0 -1
- package/lib-types/components/others/ElmMarkdown.stories.d.ts +0 -7
- package/lib-types/components/others/ElmMarkdown.stories.d.ts.map +0 -1
- package/lib-types/components/others/ElmTyping.d.ts +0 -12
- package/lib-types/components/others/ElmTyping.d.ts.map +0 -1
- package/lib-types/components/others/ElmTyping.stories.d.ts +0 -8
- package/lib-types/components/others/ElmTyping.stories.d.ts.map +0 -1
- package/lib-types/components/table/ElmTable.d.ts +0 -26
- package/lib-types/components/table/ElmTable.d.ts.map +0 -1
- package/lib-types/components/table/ElmTable.stories.d.ts +0 -8
- package/lib-types/components/table/ElmTable.stories.d.ts.map +0 -1
- package/lib-types/components/table/ElmTableBody.d.ts +0 -8
- package/lib-types/components/table/ElmTableBody.d.ts.map +0 -1
- package/lib-types/components/table/ElmTableBody.stories.d.ts +0 -7
- package/lib-types/components/table/ElmTableBody.stories.d.ts.map +0 -1
- package/lib-types/components/table/ElmTableCell.d.ts +0 -17
- package/lib-types/components/table/ElmTableCell.d.ts.map +0 -1
- package/lib-types/components/table/ElmTableCell.stories.d.ts +0 -7
- package/lib-types/components/table/ElmTableCell.stories.d.ts.map +0 -1
- package/lib-types/components/table/ElmTableHeader.d.ts +0 -8
- package/lib-types/components/table/ElmTableHeader.d.ts.map +0 -1
- package/lib-types/components/table/ElmTableHeader.stories.d.ts +0 -7
- package/lib-types/components/table/ElmTableHeader.stories.d.ts.map +0 -1
- package/lib-types/components/table/ElmTableRow.d.ts +0 -8
- package/lib-types/components/table/ElmTableRow.d.ts.map +0 -1
- package/lib-types/components/table/ElmTableRow.stories.d.ts +0 -7
- package/lib-types/components/table/ElmTableRow.stories.d.ts.map +0 -1
- package/lib-types/components/table/TableContext.d.ts +0 -3
- package/lib-types/components/table/TableContext.d.ts.map +0 -1
- package/lib-types/components/template/ElmTemplate.d.ts +0 -10
- package/lib-types/components/template/ElmTemplate.d.ts.map +0 -1
- package/lib-types/components/template/ElmTemplate.stories.d.ts +0 -7
- package/lib-types/components/template/ElmTemplate.stories.d.ts.map +0 -1
- package/lib-types/components/typography/ElmBlockQuote.d.ts +0 -14
- package/lib-types/components/typography/ElmBlockQuote.d.ts.map +0 -1
- package/lib-types/components/typography/ElmBlockQuote.stories.d.ts +0 -7
- package/lib-types/components/typography/ElmBlockQuote.stories.d.ts.map +0 -1
- package/lib-types/components/typography/ElmCallout.d.ts +0 -15
- package/lib-types/components/typography/ElmCallout.d.ts.map +0 -1
- package/lib-types/components/typography/ElmCallout.stories.d.ts +0 -11
- package/lib-types/components/typography/ElmCallout.stories.d.ts.map +0 -1
- package/lib-types/components/typography/ElmDivider.d.ts +0 -10
- package/lib-types/components/typography/ElmDivider.d.ts.map +0 -1
- package/lib-types/components/typography/ElmDivider.stories.d.ts +0 -7
- package/lib-types/components/typography/ElmDivider.stories.d.ts.map +0 -1
- package/lib-types/components/typography/ElmFragmentIdentifier.d.ts +0 -14
- package/lib-types/components/typography/ElmFragmentIdentifier.d.ts.map +0 -1
- package/lib-types/components/typography/ElmFragmentIdentifier.stories.d.ts +0 -7
- package/lib-types/components/typography/ElmFragmentIdentifier.stories.d.ts.map +0 -1
- package/lib-types/components/typography/ElmHeading.d.ts +0 -32
- package/lib-types/components/typography/ElmHeading.d.ts.map +0 -1
- package/lib-types/components/typography/ElmHeading.stories.d.ts +0 -8
- package/lib-types/components/typography/ElmHeading.stories.d.ts.map +0 -1
- package/lib-types/components/typography/ElmInlineText.d.ts +0 -25
- package/lib-types/components/typography/ElmInlineText.d.ts.map +0 -1
- package/lib-types/components/typography/ElmInlineText.stories.d.ts +0 -13
- package/lib-types/components/typography/ElmInlineText.stories.d.ts.map +0 -1
- package/lib-types/components/typography/ElmList.d.ts +0 -16
- package/lib-types/components/typography/ElmList.d.ts.map +0 -1
- package/lib-types/components/typography/ElmList.stories.d.ts +0 -9
- package/lib-types/components/typography/ElmList.stories.d.ts.map +0 -1
- package/lib-types/components/typography/ElmParagraph.d.ts +0 -11
- package/lib-types/components/typography/ElmParagraph.d.ts.map +0 -1
- package/lib-types/components/typography/ElmParagraph.stories.d.ts +0 -8
- package/lib-types/components/typography/ElmParagraph.stories.d.ts.map +0 -1
- package/lib-types/components/typography/ElmTypingAnimation.d.ts +0 -22
- package/lib-types/components/typography/ElmTypingAnimation.d.ts.map +0 -1
- package/lib-types/components/typography/ElmTypingAnimation.stories.d.ts +0 -7
- package/lib-types/components/typography/ElmTypingAnimation.stories.d.ts.map +0 -1
- package/lib-types/hooks/useElmethisTheme.d.ts +0 -5
- package/lib-types/hooks/useElmethisTheme.d.ts.map +0 -1
- package/lib-types/hooks/useLocalStorage.d.ts +0 -14
- package/lib-types/hooks/useLocalStorage.d.ts.map +0 -1
- package/lib-types/hooks/useLocalStorage.stories.d.ts +0 -9
- package/lib-types/hooks/useLocalStorage.stories.d.ts.map +0 -1
- package/lib-types/hooks/useLocalStorageDispatch.d.ts +0 -2
- package/lib-types/hooks/useLocalStorageDispatch.d.ts.map +0 -1
- package/lib-types/hooks/useLocalStorageDispatch.stories.d.ts +0 -6
- package/lib-types/hooks/useLocalStorageDispatch.stories.d.ts.map +0 -1
- package/lib-types/lib.d.ts +0 -75
- package/lib-types/lib.d.ts.map +0 -1
- package/lib-types/styles/variables.d.ts +0 -10
- package/lib-types/styles/variables.d.ts.map +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface ElmColorSemanticSampleProps extends ComponentPropsWithoutRef<"div"> {
|
|
3
|
+
}
|
|
4
|
+
export declare const ElmColorSemanticSample: ({ className, style, ...props }: ElmColorSemanticSampleProps) => import("react").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=elm-color-semantic-sample.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-color-semantic-sample.d.ts","sourceRoot":"","sources":["../../../src/components/others/elm-color-semantic-sample.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,wBAAwB,EAG9B,MAAM,OAAO,CAAC;AAOf,MAAM,WAAW,2BAA4B,SAAQ,wBAAwB,CAAC,KAAK,CAAC;CAAG;AA0GvF,eAAO,MAAM,sBAAsB,GAAI,gCAIpC,2BAA2B,gCAoM7B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import type { Component } from "jarkup-ts";
|
|
3
|
+
export interface ElmJarkupProps extends ComponentPropsWithoutRef<"div"> {
|
|
4
|
+
jsonComponents: Component[];
|
|
5
|
+
skipUnsupportedComponentWarning?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ElmJarkup: ({ className, style, jsonComponents, skipUnsupportedComponentWarning, ...rest }: ElmJarkupProps) => import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=elm-jarkup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-jarkup.d.ts","sourceRoot":"","sources":["../../../src/components/others/elm-jarkup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAG9B,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,WAAW,CAAC;AAkC5D,MAAM,WAAW,cAAe,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACrE,cAAc,EAAE,SAAS,EAAE,CAAC;IAE5B,+BAA+B,CAAC,EAAE,OAAO,CAAC;CAC3C;AAgBD,eAAO,MAAM,SAAS,GAAI,gFAMvB,cAAc,gCAwThB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface ElmMarkdownProps extends ComponentPropsWithoutRef<"div"> {
|
|
3
|
+
markdown: string;
|
|
4
|
+
/**
|
|
5
|
+
* Set to true when markdown is being streamed incrementally.
|
|
6
|
+
* Keeps completed blocks stable and only re-renders the trailing block on each token.
|
|
7
|
+
*/
|
|
8
|
+
isStreaming?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const ElmMarkdown: ({ className, markdown, isStreaming, ...rest }: ElmMarkdownProps) => import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=elm-markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-markdown.d.ts","sourceRoot":"","sources":["../../../src/components/others/elm-markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,wBAAwB,EAE9B,MAAM,OAAO,CAAC;AAoBf,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACvE,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA6MD,eAAO,MAAM,WAAW,GAAI,+CAKzB,gBAAgB,gCAiClB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type LetterStatus = "correct" | "present" | "absent";
|
|
2
|
+
export type GameStatus = "playing" | "won" | "lost";
|
|
3
|
+
export interface LetterResult {
|
|
4
|
+
letter: string;
|
|
5
|
+
status: LetterStatus;
|
|
6
|
+
}
|
|
7
|
+
export interface UseWordleOptions {
|
|
8
|
+
/** Override the target word (useful for testing). Must be a lowercase 5-letter word. */
|
|
9
|
+
initialWord?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const useWordle: (options?: UseWordleOptions) => {
|
|
12
|
+
answer: string;
|
|
13
|
+
board: LetterResult[][];
|
|
14
|
+
currentGuess: string;
|
|
15
|
+
gameStatus: GameStatus;
|
|
16
|
+
letterStatuses: Record<string, LetterStatus>;
|
|
17
|
+
errorMessage: string;
|
|
18
|
+
submit: () => void;
|
|
19
|
+
addLetter: (letter: string) => void;
|
|
20
|
+
removeLetter: () => void;
|
|
21
|
+
reset: () => void;
|
|
22
|
+
Wordle: () => import("react").JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=use-wordle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-wordle.d.ts","sourceRoot":"","sources":["../../../src/components/others/use-wordle.tsx"],"names":[],"mappings":"AAoBA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC5D,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAoKD,eAAO,MAAM,SAAS,GAAI,UAAU,gBAAgB;;;;;;;;wBAwBvC,MAAM;;;;CA6LlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validGuesses.d.ts","sourceRoot":"","sources":["../../../../src/components/others/wordle/validGuesses.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,UAk6UxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordlist.d.ts","sourceRoot":"","sources":["../../../../src/components/others/wordle/wordlist.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UA8nLjB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export type ElmTableBodyProps = ComponentPropsWithoutRef<"tbody">;
|
|
3
|
+
export declare const ElmTableBody: ({ children, ...props }: ElmTableBodyProps) => import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=elm-table-body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-table-body.d.ts","sourceRoot":"","sources":["../../../src/components/table/elm-table-body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAItD,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAElE,eAAO,MAAM,YAAY,GAAI,wBAAwB,iBAAiB,gCAMrE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface ElmTableCellProps extends ComponentPropsWithoutRef<"td"> {
|
|
3
|
+
/**
|
|
4
|
+
* Force this cell to render as a `<th>`. Use for cells that are headers
|
|
5
|
+
* but live outside `<ElmTableHeader>` (e.g. a mid-table grouping row).
|
|
6
|
+
* Cells inside `<ElmTableHeader>` are promoted automatically.
|
|
7
|
+
*/
|
|
8
|
+
isHeader?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 0-based column index within the row. When the surrounding `<ElmTable>`
|
|
11
|
+
* has `hasRowHeader`, the cell at `columnIndex === 0` is promoted to
|
|
12
|
+
* `<th scope="row">` for accessibility. Hand-authored callers can omit
|
|
13
|
+
* this; renderers (e.g. the A2UI catalog) should pass their iteration
|
|
14
|
+
* index through.
|
|
15
|
+
*/
|
|
16
|
+
columnIndex?: number;
|
|
17
|
+
/** Convenience for plain-text cells. Equivalent to passing children. */
|
|
18
|
+
text?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const ElmTableCell: ({ className, style, isHeader, columnIndex, text, scope: scopeOverride, children, ...rest }: ElmTableCellProps) => import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=elm-table-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-table-cell.d.ts","sourceRoot":"","sources":["../../../src/components/table/elm-table-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAiB,MAAM,OAAO,CAAC;AAOrE,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB,CAAC,IAAI,CAAC;IACvE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,YAAY,GAAI,4FAS1B,iBAAiB,gCAgCnB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export type ElmTableHeaderProps = ComponentPropsWithoutRef<"thead">;
|
|
3
|
+
export declare const ElmTableHeader: ({ className, children, ...props }: ElmTableHeaderProps) => import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=elm-table-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-table-header.d.ts","sourceRoot":"","sources":["../../../src/components/table/elm-table-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAMtD,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,gCAQrB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export type ElmTableRowProps = ComponentPropsWithoutRef<"tr">;
|
|
3
|
+
export declare const ElmTableRow: ({ className, children, ...props }: ElmTableRowProps) => import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=elm-table-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-table-row.d.ts","sourceRoot":"","sources":["../../../src/components/table/elm-table-row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC;AAE9D,eAAO,MAAM,WAAW,GAAI,mCAIzB,gBAAgB,gCAMlB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface ElmTableProps extends ComponentPropsWithoutRef<"table"> {
|
|
3
|
+
caption?: string;
|
|
4
|
+
hasRowHeader?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const ElmTable: ({ className, caption, hasRowHeader, children, ...rest }: ElmTableProps) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=elm-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-table.d.ts","sourceRoot":"","sources":["../../../src/components/table/elm-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAStD,MAAM,WAAW,aAAc,SAAQ,wBAAwB,CAAC,OAAO,CAAC;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,GAAI,yDAMtB,aAAa,gCA6Bf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exposes whether the surrounding `<ElmTable>` was rendered with
|
|
3
|
+
* `hasRowHeader`. Cells read this to decide whether to self-promote the
|
|
4
|
+
* first column to `<th scope="row">`.
|
|
5
|
+
*
|
|
6
|
+
* Typed as the structural `{ value }` shape rather than a bare `boolean` so the
|
|
7
|
+
* provider can hand down a stable object and `useContext` falls back to a
|
|
8
|
+
* non-reactive default for cells rendered outside an `<ElmTable>` ancestor
|
|
9
|
+
* (e.g. in isolated tests). The `createContext` default value supplies that
|
|
10
|
+
* `{ value: false }` fallback.
|
|
11
|
+
*/
|
|
12
|
+
export declare const HasRowHeaderContext: import("react").Context<{
|
|
13
|
+
readonly value: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
/**
|
|
16
|
+
* Which section of the table a row/cell lives in. `ElmTableHeader` and
|
|
17
|
+
* `ElmTableBody` provide this so `ElmTableCell` can render `<th>` vs `<td>`
|
|
18
|
+
* without each cell needing an explicit prop.
|
|
19
|
+
*
|
|
20
|
+
* `"foot"` is reserved for a future `<ElmTableFoot>`. The `createContext`
|
|
21
|
+
* default (`"body"`) matches the fallback cells used outside a section.
|
|
22
|
+
*/
|
|
23
|
+
export type TableSection = "head" | "body" | "foot";
|
|
24
|
+
export declare const TableSectionContext: import("react").Context<TableSection>;
|
|
25
|
+
//# sourceMappingURL=table-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-context.d.ts","sourceRoot":"","sources":["../../../src/components/table/table-context.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB;oBAAmC,OAAO;EAExE,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AACpD,eAAO,MAAM,mBAAmB,uCAAsC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface ElmBlockQuoteProps extends ComponentPropsWithoutRef<"blockquote"> {
|
|
3
|
+
}
|
|
4
|
+
export declare const ElmBlockQuote: ({ className, children, ...props }: ElmBlockQuoteProps) => import("react").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=elm-block-quote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-block-quote.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-block-quote.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAQtD,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB,CAAC,YAAY,CAAC;CAAG;AAErF,eAAO,MAAM,aAAa,GAAI,mCAI3B,kBAAkB,gCAiBpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export type AlertType = "note" | "tip" | "important" | "warning" | "caution";
|
|
3
|
+
export interface ElmCalloutProps extends ComponentPropsWithoutRef<"aside"> {
|
|
4
|
+
/**
|
|
5
|
+
* Type of alert
|
|
6
|
+
*/
|
|
7
|
+
type?: AlertType;
|
|
8
|
+
}
|
|
9
|
+
export declare const ElmCallout: ({ className, type, style, children, ...props }: ElmCalloutProps) => import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=elm-callout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-callout.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-callout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAatD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;AAU7E,MAAM,WAAW,eAAgB,SAAQ,wBAAwB,CAAC,OAAO,CAAC;IACxE;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,eAAO,MAAM,UAAU,GAAI,gDAMxB,eAAe,gCAejB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-divider.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,MAAM,eAAe,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC;AAE7D,eAAO,MAAM,UAAU,GAAI,yBAAyB,eAAe,gCAElE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface ElmFragmentIdentifierProps extends ComponentPropsWithoutRef<"span"> {
|
|
3
|
+
/**
|
|
4
|
+
* ID of the heading element.
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ElmFragmentIdentifier: ({ className, id, ...props }: ElmFragmentIdentifierProps) => import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=elm-fragment-identifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-fragment-identifier.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-fragment-identifier.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,WAAW,0BAA2B,SAAQ,wBAAwB,CAAC,MAAM,CAAC;IAClF;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,qBAAqB,GAAI,6BAInC,0BAA0B,gCAqB5B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface ElmHeadingProps extends ComponentPropsWithoutRef<"h1"> {
|
|
3
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ElmHeading: ({ className, level, text, id, style, children, ...props }: ElmHeadingProps) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=elm-heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-heading.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAiB,MAAM,OAAO,CAAC;AAOrE,MAAM,WAAW,eAAgB,SAAQ,wBAAwB,CAAC,IAAI,CAAC;IACrE,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAE7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAWD,eAAO,MAAM,UAAU,GAAI,2DAQxB,eAAe,gCAgCjB,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, CSSProperties } from "react";
|
|
2
|
+
export interface ElmInlineTextProps extends ComponentPropsWithoutRef<"span"> {
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the color of the text.
|
|
5
|
+
*
|
|
6
|
+
* Accepts any CSS color value, including theme tokens via `var(...)`.
|
|
7
|
+
* Defaults to `var(--elmethis-color-neutral)` when omitted.
|
|
8
|
+
*
|
|
9
|
+
* e.g.) `'red'`, `'#ff0000'`, `'rgba(255, 0, 0, 0.5)'`,
|
|
10
|
+
* `'var(--elmethis-color-primary)'`
|
|
11
|
+
*/
|
|
12
|
+
color?: CSSProperties["color"];
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the font size of the text.
|
|
15
|
+
*/
|
|
16
|
+
size?: CSSProperties["fontSize"];
|
|
17
|
+
/**
|
|
18
|
+
* Specifies whether the text should be bold.
|
|
19
|
+
*/
|
|
20
|
+
bold?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies whether the text should be italic.
|
|
23
|
+
*/
|
|
24
|
+
italic?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies whether the text should be underlined.
|
|
27
|
+
*/
|
|
28
|
+
underline?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies whether the text should be strikethrough.
|
|
31
|
+
*/
|
|
32
|
+
strikethrough?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies whether the text should be displayed as code.
|
|
35
|
+
*/
|
|
36
|
+
code?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies whether the text should be displayed as a keyboard key.
|
|
39
|
+
*/
|
|
40
|
+
kbd?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the background color of the text.
|
|
43
|
+
*/
|
|
44
|
+
backgroundColor?: CSSProperties["backgroundColor"];
|
|
45
|
+
/**
|
|
46
|
+
* The ruby text to display.
|
|
47
|
+
*/
|
|
48
|
+
ruby?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The URL to navigate to.
|
|
51
|
+
*
|
|
52
|
+
* e.g. `https://example.com`
|
|
53
|
+
*/
|
|
54
|
+
href?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Optional favicon URL displayed alongside the link.
|
|
57
|
+
*/
|
|
58
|
+
favicon?: string;
|
|
59
|
+
}
|
|
60
|
+
export declare const ElmInlineText: ({ className, style, color, size, backgroundColor, bold, italic, underline, strikethrough, code, kbd, ruby, href, favicon, children, ...rest }: ElmInlineTextProps) => import("react").JSX.Element;
|
|
61
|
+
//# sourceMappingURL=elm-inline-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-inline-text.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-inline-text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAQhF,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB,CAAC,MAAM,CAAC;IAC1E;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAEjC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAEnD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,GAAI,+IAiB3B,kBAAkB,gCAiDpB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface ElmListProps extends Omit<ComponentPropsWithoutRef<"ul">, "type"> {
|
|
3
|
+
listStyle?: "unordered" | "ordered";
|
|
4
|
+
type?: "a" | "i" | "1" | "A" | "I";
|
|
5
|
+
}
|
|
6
|
+
export declare const ElmList: ({ className, listStyle, children, ...props }: ElmListProps) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=elm-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-list.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAMtD,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,wBAAwB,CAAC,IAAI,CAAC,EAC9B,MAAM,CACP;IACC,SAAS,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACpC,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;CACpC;AAED,eAAO,MAAM,OAAO,GAAI,8CAKrB,YAAY,gCA8Bd,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface ElmParagraphProps extends ComponentPropsWithoutRef<"p"> {
|
|
3
|
+
color?: string;
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ElmParagraph: ({ className, style, color, backgroundColor, children, ...props }: ElmParagraphProps) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=elm-paragraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elm-paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAiB,MAAM,OAAO,CAAC;AAMrE,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB,CAAC,GAAG,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,GAAI,kEAO1B,iBAAiB,gCAgBnB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export interface UseAsyncStateOptions<D = unknown> {
|
|
2
|
+
/**
|
|
3
|
+
* Delay for the first execution when `immediate` is true (in milliseconds).
|
|
4
|
+
* @default 0
|
|
5
|
+
*/
|
|
6
|
+
delay?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Execute the promise immediately after the hook is mounted on the client.
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
immediate?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Callback when an error is caught.
|
|
14
|
+
*/
|
|
15
|
+
onError?: (e: unknown) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Callback when the promise resolves successfully.
|
|
18
|
+
*/
|
|
19
|
+
onSuccess?: (data: D) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Reset state to the initial value before each execution.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
resetOnExecute?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Re-throw errors from `execute`.
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
throwError?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface UseAsyncStateReturn<Data> {
|
|
32
|
+
/** The current state. Initialized with `initialState` until the promise resolves. */
|
|
33
|
+
state: Data;
|
|
34
|
+
/** `true` once the promise has resolved successfully at least once for the latest call. */
|
|
35
|
+
isReady: boolean;
|
|
36
|
+
/** `true` while a promise is in flight. */
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
/** The error caught from the latest execution, if any. */
|
|
39
|
+
error: unknown;
|
|
40
|
+
/** Manually trigger an execution, optionally delayed by `execDelay` ms. */
|
|
41
|
+
execute: (execDelay?: number) => Promise<Data | undefined>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Reactive async state that runs only on the client side.
|
|
45
|
+
* Resembles VueUse's `useAsyncState` interface.
|
|
46
|
+
*
|
|
47
|
+
* Concurrency: when `execute` is called while a prior call is still in
|
|
48
|
+
* flight, the prior call's resolution / rejection is **discarded**. Without
|
|
49
|
+
* this guard the older call's result could land after the newer one and
|
|
50
|
+
* silently overwrite the up-to-date state (classic search-as-you-type
|
|
51
|
+
* staleness bug).
|
|
52
|
+
*
|
|
53
|
+
* @param promise - The async function to execute.
|
|
54
|
+
* @param initialState - The initial state used until the promise resolves.
|
|
55
|
+
* @param options - Configuration options.
|
|
56
|
+
*/
|
|
57
|
+
export declare const useAsyncState: <Data>(promise: () => Promise<Data>, initialState: Data, options?: UseAsyncStateOptions<Data>) => UseAsyncStateReturn<Data>;
|
|
58
|
+
//# sourceMappingURL=use-async-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-async-state.d.ts","sourceRoot":"","sources":["../../src/hooks/use-async-state.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,OAAO;IAC/C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB,CAAC,IAAI;IACvC,qFAAqF;IACrF,KAAK,EAAE,IAAI,CAAC;IACZ,2FAA2F;IAC3F,OAAO,EAAE,OAAO,CAAC;IACjB,2CAA2C;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,KAAK,EAAE,OAAO,CAAC;IACf,2EAA2E;IAC3E,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC;CAC5D;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,GAAI,IAAI,EAChC,SAAS,MAAM,OAAO,CAAC,IAAI,CAAC,EAC5B,cAAc,IAAI,EAClB,UAAU,oBAAoB,CAAC,IAAI,CAAC,KACnC,mBAAmB,CAAC,IAAI,CA8F1B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import autoAnimate from "@formkit/auto-animate";
|
|
2
|
+
export type UseAutoAnimateOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* The configuration options for auto-animate.
|
|
5
|
+
*/
|
|
6
|
+
config?: Parameters<typeof autoAnimate>[1];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A hook that provides an easy way to add auto-animate to a component.
|
|
10
|
+
*
|
|
11
|
+
* @see {@link https://auto-animate.formkit.com/|Auto Animate} for more information.
|
|
12
|
+
*
|
|
13
|
+
* Unlike the qwik twin (which returns a `{ ref, animationController }` pair of
|
|
14
|
+
* signals), this React port returns the `[ref, setEnabled]` shape exposed by
|
|
15
|
+
* `@formkit/auto-animate/react`, mapped onto a `{ ref, setEnabled }` object:
|
|
16
|
+
* spread `ref` onto the container element, and call `setEnabled(boolean)` to
|
|
17
|
+
* toggle the animation controller on or off.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* const Render = () => {
|
|
21
|
+
* const { ref } = useAutoAnimate();
|
|
22
|
+
* const [items, setItems] = useState([1, 2, 3, 4, 5]);
|
|
23
|
+
*
|
|
24
|
+
* const handleShuffle = () => {
|
|
25
|
+
* setItems((prev) => [...prev].sort(() => Math.random() - 0.5));
|
|
26
|
+
* };
|
|
27
|
+
*
|
|
28
|
+
* return (
|
|
29
|
+
* <div>
|
|
30
|
+
* <button onClick={handleShuffle}>Click me</button>
|
|
31
|
+
* <ul ref={ref}>
|
|
32
|
+
* {items.map((item) => (
|
|
33
|
+
* <li key={item}>Item {item}</li>
|
|
34
|
+
* ))}
|
|
35
|
+
* </ul>
|
|
36
|
+
* </div>
|
|
37
|
+
* );
|
|
38
|
+
* };
|
|
39
|
+
*/
|
|
40
|
+
export declare const useAutoAnimate: <T extends HTMLElement = HTMLElement>(options?: UseAutoAnimateOptions) => {
|
|
41
|
+
ref: import("react").RefCallback<T>;
|
|
42
|
+
setEnabled: (enabled: boolean) => void;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=use-auto-animate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-auto-animate.d.ts","sourceRoot":"","sources":["../../src/hooks/use-auto-animate.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,WAAW,GAAG,WAAW,EAChE,UAAU,qBAAqB;;;CAKhC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Optionally-controllable single-value state.
|
|
4
|
+
*
|
|
5
|
+
* React port of qwik's `useBindableSignal`. Qwik's signal/store model does not
|
|
6
|
+
* exist in React, so where qwik returned a `Signal<T>` (read/write via
|
|
7
|
+
* `.value`), the React idiom returns a `[value, setValue]` tuple. The
|
|
8
|
+
* underlying controllable-vs-internal behavior is preserved:
|
|
9
|
+
*
|
|
10
|
+
* - **Controlled:** parent passes their own `value`. The hook returns that
|
|
11
|
+
* value — calling `setValue` invokes the parent's `onChange` so the parent
|
|
12
|
+
* stays the source of truth.
|
|
13
|
+
* - **Uncontrolled:** parent omits `value`. The hook owns internal state
|
|
14
|
+
* seeded with `defaultValue`.
|
|
15
|
+
*
|
|
16
|
+
* Use this when the controllable state is a single value. For multi-field /
|
|
17
|
+
* nested-struct state, prefer `useBindableStore`.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* const [checked, setChecked] = useBindableSignal({
|
|
21
|
+
* value: props.checked,
|
|
22
|
+
* defaultValue: props.defaultChecked ?? false,
|
|
23
|
+
* onChange: props.onCheckedChange,
|
|
24
|
+
* });
|
|
25
|
+
* // Read `checked`; write with `setChecked(next)`.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useBindableSignal<T>({ value, defaultValue, onChange, }: {
|
|
28
|
+
/** Parent-owned value. When omitted, the hook falls back to internal state. */
|
|
29
|
+
value?: T;
|
|
30
|
+
/** Initial value for the internal state when uncontrolled. */
|
|
31
|
+
defaultValue: T;
|
|
32
|
+
/** Invoked whenever the value changes (so a controlling parent can react). */
|
|
33
|
+
onChange?: (value: T) => void;
|
|
34
|
+
}): [T, Dispatch<SetStateAction<T>>];
|
|
35
|
+
//# sourceMappingURL=use-bindable-signal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-bindable-signal.d.ts","sourceRoot":"","sources":["../../src/hooks/use-bindable-signal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,EACnC,KAAK,EACL,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,+EAA+E;IAC/E,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,8DAA8D;IAC9D,YAAY,EAAE,CAAC,CAAC;IAChB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CAC/B,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAOnC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Optionally-bindable struct state.
|
|
4
|
+
*
|
|
5
|
+
* - **Bound (controlled):** parent passes their own `value`. The hook returns
|
|
6
|
+
* that same value, and every write is forwarded to `onChange` so the parent
|
|
7
|
+
* stays the single source of truth.
|
|
8
|
+
* - **Unbound (uncontrolled):** parent omits `value`. The hook owns an
|
|
9
|
+
* internal state seeded with `defaultValue`.
|
|
10
|
+
*
|
|
11
|
+
* Use this when the controllable state is a struct (form values, multi-field
|
|
12
|
+
* UI state). For a single primitive value, prefer `useBindableSignal`.
|
|
13
|
+
*
|
|
14
|
+
* React-idiom note: Qwik's twin returns the mutable `Proxy<T>` from `useStore`,
|
|
15
|
+
* so callers mutate nested properties in place (`form.name = "Alice"`). React
|
|
16
|
+
* has no such reactive proxy, so this port returns the
|
|
17
|
+
* `[value, setValue]` tuple from `@radix-ui/react-use-controllable-state`
|
|
18
|
+
* instead. To update a field, set a fresh object:
|
|
19
|
+
* `setValue((prev) => ({ ...prev, name: "Alice" }))`.
|
|
20
|
+
*
|
|
21
|
+
* Aliasing footgun: passing a module-scope object as `defaultValue` will share
|
|
22
|
+
* its nested references across every component instance. Pass a fresh object
|
|
23
|
+
* literal at the call site (or `structuredClone` a shared seed) so updates do
|
|
24
|
+
* not leak between instances.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* const [form, setForm] = useBindableStore({
|
|
28
|
+
* value: props.form,
|
|
29
|
+
* defaultValue: { name: "", age: 0 },
|
|
30
|
+
* onChange: props.onFormChange,
|
|
31
|
+
* });
|
|
32
|
+
* // setForm((prev) => ({ ...prev, name: "Alice" }));
|
|
33
|
+
* // setForm((prev) => ({ ...prev, age: prev.age + 1 }));
|
|
34
|
+
*/
|
|
35
|
+
export declare function useBindableStore<T extends object>({ value, defaultValue, onChange, }: {
|
|
36
|
+
/** Parent-owned value. When omitted, the hook falls back to internal state. */
|
|
37
|
+
value?: T;
|
|
38
|
+
/** Initial value for the internal state when unbound. */
|
|
39
|
+
defaultValue: T;
|
|
40
|
+
/** Called with the next value on every write (required for the bound case). */
|
|
41
|
+
onChange?: (value: T) => void;
|
|
42
|
+
}): [T, React.Dispatch<React.SetStateAction<T>>];
|
|
43
|
+
//# sourceMappingURL=use-bindable-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-bindable-store.d.ts","sourceRoot":"","sources":["../../src/hooks/use-bindable-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,EACjD,KAAK,EACL,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,+EAA+E;IAC/E,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,yDAAyD;IACzD,YAAY,EAAE,CAAC,CAAC;IAChB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CAC/B,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAO/C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
type ClipboardItemParameter = ConstructorParameters<typeof ClipboardItem>[0];
|
|
3
|
+
export interface UseClipboardOptions {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
content: string | ClipboardItemParameter[];
|
|
7
|
+
delay?: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* React port of qwik's `useClipboard`. Returns a `copy` callback and a
|
|
11
|
+
* `CopyButton` component whose icon swaps to the check variant for `delay`
|
|
12
|
+
* ms after a successful copy.
|
|
13
|
+
*
|
|
14
|
+
* Text content is written via usehooks-ts `useCopyToClipboard`; rich
|
|
15
|
+
* `ClipboardItem[]` content (which that hook does not support) is written
|
|
16
|
+
* directly through `navigator.clipboard.write`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const useClipboard: (options: UseClipboardOptions) => {
|
|
19
|
+
CopyButton: () => import("react").JSX.Element;
|
|
20
|
+
copy: () => Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=use-clipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-clipboard.d.ts","sourceRoot":"","sources":["../../src/hooks/use-clipboard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAS3C,KAAK,sBAAsB,GAAG,qBAAqB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,OAAO,EAAE,MAAM,GAAG,sBAAsB,EAAE,CAAC;IAE3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,mBAAmB;;;CAqExD,CAAC"}
|