@elmethis/react 0.3.20 → 0.4.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.
Files changed (493) hide show
  1. package/README.md +24 -66
  2. package/lib/index.react.cjs +2 -1
  3. package/lib/index.react.mjs +3311 -2630
  4. package/lib/style.css +1 -1
  5. package/lib-types/components/a2ui/catalog/block-catalog.d.ts +18 -0
  6. package/lib-types/components/a2ui/catalog/block-catalog.d.ts.map +1 -0
  7. package/lib-types/components/a2ui/catalog/catalog-utils.d.ts +30 -0
  8. package/lib-types/components/a2ui/catalog/catalog-utils.d.ts.map +1 -0
  9. package/lib-types/components/a2ui/elm-a2ui.d.ts +38 -0
  10. package/lib-types/components/a2ui/elm-a2ui.d.ts.map +1 -0
  11. package/lib-types/components/a2ui/stream-json-lines.d.ts +14 -0
  12. package/lib-types/components/a2ui/stream-json-lines.d.ts.map +1 -0
  13. package/lib-types/components/code/elm-code-block.d.ts +18 -0
  14. package/lib-types/components/code/elm-code-block.d.ts.map +1 -0
  15. package/lib-types/components/code/elm-katex.d.ts +17 -0
  16. package/lib-types/components/code/elm-katex.d.ts.map +1 -0
  17. package/lib-types/components/code/elm-shiki-highlighter.d.ts +13 -0
  18. package/lib-types/components/code/elm-shiki-highlighter.d.ts.map +1 -0
  19. package/lib-types/components/containments/elm-collapse.d.ts +8 -0
  20. package/lib-types/components/containments/elm-collapse.d.ts.map +1 -0
  21. package/lib-types/components/containments/elm-modal.d.ts +13 -0
  22. package/lib-types/components/containments/elm-modal.d.ts.map +1 -0
  23. package/lib-types/components/containments/elm-parallax.d.ts +6 -0
  24. package/lib-types/components/containments/elm-parallax.d.ts.map +1 -0
  25. package/lib-types/components/containments/elm-tabs.d.ts +30 -0
  26. package/lib-types/components/containments/elm-tabs.d.ts.map +1 -0
  27. package/lib-types/components/containments/elm-toggle.d.ts +18 -0
  28. package/lib-types/components/containments/elm-toggle.d.ts.map +1 -0
  29. package/lib-types/components/containments/elm-tooltip.d.ts +9 -0
  30. package/lib-types/components/containments/elm-tooltip.d.ts.map +1 -0
  31. package/lib-types/components/fallback/elm-block-fallback.d.ts +6 -0
  32. package/lib-types/components/fallback/elm-block-fallback.d.ts.map +1 -0
  33. package/lib-types/components/fallback/elm-rectangle-wave.d.ts +4 -0
  34. package/lib-types/components/fallback/elm-rectangle-wave.d.ts.map +1 -0
  35. package/lib-types/components/fallback/elm-unsupported-block.d.ts +6 -0
  36. package/lib-types/components/fallback/elm-unsupported-block.d.ts.map +1 -0
  37. package/lib-types/components/form/elm-button.d.ts +18 -0
  38. package/lib-types/components/form/elm-button.d.ts.map +1 -0
  39. package/lib-types/components/form/elm-checkbox.d.ts +29 -0
  40. package/lib-types/components/form/elm-checkbox.d.ts.map +1 -0
  41. package/lib-types/components/form/elm-select.d.ts +49 -0
  42. package/lib-types/components/form/elm-select.d.ts.map +1 -0
  43. package/lib-types/components/form/elm-switch.d.ts +25 -0
  44. package/lib-types/components/form/elm-switch.d.ts.map +1 -0
  45. package/lib-types/components/form/elm-text-area.d.ts +16 -0
  46. package/lib-types/components/form/elm-text-area.d.ts.map +1 -0
  47. package/lib-types/components/form/elm-text-field.d.ts +18 -0
  48. package/lib-types/components/form/elm-text-field.d.ts.map +1 -0
  49. package/lib-types/components/form/elm-validation.d.ts +8 -0
  50. package/lib-types/components/form/elm-validation.d.ts.map +1 -0
  51. package/lib-types/components/icon/elm-copy-icon.d.ts +9 -0
  52. package/lib-types/components/icon/elm-copy-icon.d.ts.map +1 -0
  53. package/lib-types/components/icon/elm-dot-loading-icon.d.ts +9 -0
  54. package/lib-types/components/icon/elm-dot-loading-icon.d.ts.map +1 -0
  55. package/lib-types/components/icon/elm-inline-icon.d.ts +16 -0
  56. package/lib-types/components/icon/elm-inline-icon.d.ts.map +1 -0
  57. package/lib-types/components/icon/elm-language-icon.d.ts +17 -0
  58. package/lib-types/components/icon/elm-language-icon.d.ts.map +1 -0
  59. package/lib-types/components/icon/elm-mdi-icon.d.ts +10 -0
  60. package/lib-types/components/icon/elm-mdi-icon.d.ts.map +1 -0
  61. package/lib-types/components/icon/elm-square-loading-icon.d.ts +7 -0
  62. package/lib-types/components/icon/elm-square-loading-icon.d.ts.map +1 -0
  63. package/lib-types/components/icon/elm-toggle-theme.d.ts +9 -0
  64. package/lib-types/components/icon/elm-toggle-theme.d.ts.map +1 -0
  65. package/lib-types/components/icon/languages/bash.d.ts +3 -0
  66. package/lib-types/components/icon/languages/bash.d.ts.map +1 -0
  67. package/lib-types/components/icon/languages/c-plus-plus.d.ts +3 -0
  68. package/lib-types/components/icon/languages/c-plus-plus.d.ts.map +1 -0
  69. package/lib-types/components/icon/languages/c-sharp.d.ts +3 -0
  70. package/lib-types/components/icon/languages/c-sharp.d.ts.map +1 -0
  71. package/lib-types/components/icon/languages/c.d.ts +3 -0
  72. package/lib-types/components/icon/languages/c.d.ts.map +1 -0
  73. package/lib-types/components/icon/languages/css.d.ts +3 -0
  74. package/lib-types/components/icon/languages/css.d.ts.map +1 -0
  75. package/lib-types/components/icon/languages/go.d.ts +3 -0
  76. package/lib-types/components/icon/languages/go.d.ts.map +1 -0
  77. package/lib-types/components/icon/languages/html.d.ts +3 -0
  78. package/lib-types/components/icon/languages/html.d.ts.map +1 -0
  79. package/lib-types/components/icon/languages/java.d.ts +3 -0
  80. package/lib-types/components/icon/languages/java.d.ts.map +1 -0
  81. package/lib-types/components/icon/languages/javascript.d.ts +3 -0
  82. package/lib-types/components/icon/languages/javascript.d.ts.map +1 -0
  83. package/lib-types/components/icon/languages/json.d.ts +3 -0
  84. package/lib-types/components/icon/languages/json.d.ts.map +1 -0
  85. package/lib-types/components/icon/languages/kotlin.d.ts +3 -0
  86. package/lib-types/components/icon/languages/kotlin.d.ts.map +1 -0
  87. package/lib-types/components/icon/languages/language-interface.d.ts +7 -0
  88. package/lib-types/components/icon/languages/language-interface.d.ts.map +1 -0
  89. package/lib-types/components/icon/languages/lua.d.ts +3 -0
  90. package/lib-types/components/icon/languages/lua.d.ts.map +1 -0
  91. package/lib-types/components/icon/languages/npm.d.ts +3 -0
  92. package/lib-types/components/icon/languages/npm.d.ts.map +1 -0
  93. package/lib-types/components/icon/languages/python.d.ts +3 -0
  94. package/lib-types/components/icon/languages/python.d.ts.map +1 -0
  95. package/lib-types/components/icon/languages/rust.d.ts +3 -0
  96. package/lib-types/components/icon/languages/rust.d.ts.map +1 -0
  97. package/lib-types/components/icon/languages/sql.d.ts +3 -0
  98. package/lib-types/components/icon/languages/sql.d.ts.map +1 -0
  99. package/lib-types/components/icon/languages/terraform.d.ts +3 -0
  100. package/lib-types/components/icon/languages/terraform.d.ts.map +1 -0
  101. package/lib-types/components/icon/languages/typescript.d.ts +3 -0
  102. package/lib-types/components/icon/languages/typescript.d.ts.map +1 -0
  103. package/lib-types/components/media/elm-block-image.d.ts +19 -0
  104. package/lib-types/components/media/elm-block-image.d.ts.map +1 -0
  105. package/lib-types/components/media/elm-file.d.ts +17 -0
  106. package/lib-types/components/media/elm-file.d.ts.map +1 -0
  107. package/lib-types/components/navigation/elm-bookmark.d.ts +22 -0
  108. package/lib-types/components/navigation/elm-bookmark.d.ts.map +1 -0
  109. package/lib-types/components/navigation/elm-breadcrumb.d.ts +15 -0
  110. package/lib-types/components/navigation/elm-breadcrumb.d.ts.map +1 -0
  111. package/lib-types/components/navigation/elm-page-top.d.ts +9 -0
  112. package/lib-types/components/navigation/elm-page-top.d.ts.map +1 -0
  113. package/lib-types/components/others/elm-color-primitive-sample.d.ts +5 -0
  114. package/lib-types/components/others/elm-color-primitive-sample.d.ts.map +1 -0
  115. package/lib-types/components/others/elm-color-semantic-sample.d.ts +5 -0
  116. package/lib-types/components/others/elm-color-semantic-sample.d.ts.map +1 -0
  117. package/lib-types/components/others/elm-jarkup.d.ts +8 -0
  118. package/lib-types/components/others/elm-jarkup.d.ts.map +1 -0
  119. package/lib-types/components/others/elm-markdown.d.ts +11 -0
  120. package/lib-types/components/others/elm-markdown.d.ts.map +1 -0
  121. package/lib-types/components/others/use-wordle.d.ts +24 -0
  122. package/lib-types/components/others/use-wordle.d.ts.map +1 -0
  123. package/lib-types/components/others/wordle/validGuesses.d.ts +2 -0
  124. package/lib-types/components/others/wordle/validGuesses.d.ts.map +1 -0
  125. package/lib-types/components/others/wordle/wordlist.d.ts +2 -0
  126. package/lib-types/components/others/wordle/wordlist.d.ts.map +1 -0
  127. package/lib-types/components/table/elm-table-body.d.ts +4 -0
  128. package/lib-types/components/table/elm-table-body.d.ts.map +1 -0
  129. package/lib-types/components/table/elm-table-cell.d.ts +21 -0
  130. package/lib-types/components/table/elm-table-cell.d.ts.map +1 -0
  131. package/lib-types/components/table/elm-table-header.d.ts +4 -0
  132. package/lib-types/components/table/elm-table-header.d.ts.map +1 -0
  133. package/lib-types/components/table/elm-table-row.d.ts +4 -0
  134. package/lib-types/components/table/elm-table-row.d.ts.map +1 -0
  135. package/lib-types/components/table/elm-table.d.ts +7 -0
  136. package/lib-types/components/table/elm-table.d.ts.map +1 -0
  137. package/lib-types/components/table/index.d.ts +7 -0
  138. package/lib-types/components/table/index.d.ts.map +1 -0
  139. package/lib-types/components/table/table-context.d.ts +25 -0
  140. package/lib-types/components/table/table-context.d.ts.map +1 -0
  141. package/lib-types/components/typography/elm-block-quote.d.ts +5 -0
  142. package/lib-types/components/typography/elm-block-quote.d.ts.map +1 -0
  143. package/lib-types/components/typography/elm-callout.d.ts +10 -0
  144. package/lib-types/components/typography/elm-callout.d.ts.map +1 -0
  145. package/lib-types/components/typography/elm-divider.d.ts +4 -0
  146. package/lib-types/components/typography/elm-divider.d.ts.map +1 -0
  147. package/lib-types/components/typography/elm-fragment-identifier.d.ts +9 -0
  148. package/lib-types/components/typography/elm-fragment-identifier.d.ts.map +1 -0
  149. package/lib-types/components/typography/elm-heading.d.ts +7 -0
  150. package/lib-types/components/typography/elm-heading.d.ts.map +1 -0
  151. package/lib-types/components/typography/elm-inline-text.d.ts +61 -0
  152. package/lib-types/components/typography/elm-inline-text.d.ts.map +1 -0
  153. package/lib-types/components/typography/elm-list.d.ts +7 -0
  154. package/lib-types/components/typography/elm-list.d.ts.map +1 -0
  155. package/lib-types/components/typography/elm-paragraph.d.ts +7 -0
  156. package/lib-types/components/typography/elm-paragraph.d.ts.map +1 -0
  157. package/lib-types/hooks/use-async-state.d.ts +58 -0
  158. package/lib-types/hooks/use-async-state.d.ts.map +1 -0
  159. package/lib-types/hooks/use-auto-animate.d.ts +44 -0
  160. package/lib-types/hooks/use-auto-animate.d.ts.map +1 -0
  161. package/lib-types/hooks/use-bindable-signal.d.ts +35 -0
  162. package/lib-types/hooks/use-bindable-signal.d.ts.map +1 -0
  163. package/lib-types/hooks/use-bindable-store.d.ts +43 -0
  164. package/lib-types/hooks/use-bindable-store.d.ts.map +1 -0
  165. package/lib-types/hooks/use-clipboard.d.ts +23 -0
  166. package/lib-types/hooks/use-clipboard.d.ts.map +1 -0
  167. package/lib-types/hooks/use-debounced-signal.d.ts +39 -0
  168. package/lib-types/hooks/use-debounced-signal.d.ts.map +1 -0
  169. package/lib-types/hooks/use-debounced-store.d.ts +40 -0
  170. package/lib-types/hooks/use-debounced-store.d.ts.map +1 -0
  171. package/lib-types/hooks/use-delayed-signal.d.ts +37 -0
  172. package/lib-types/hooks/use-delayed-signal.d.ts.map +1 -0
  173. package/lib-types/hooks/use-elmethis-theme.d.ts +29 -0
  174. package/lib-types/hooks/use-elmethis-theme.d.ts.map +1 -0
  175. package/lib-types/hooks/use-modal.d.ts +23 -0
  176. package/lib-types/hooks/use-modal.d.ts.map +1 -0
  177. package/lib-types/hooks/use-storage.d.ts +35 -0
  178. package/lib-types/hooks/use-storage.d.ts.map +1 -0
  179. package/lib-types/hooks/use-throttled-queue.d.ts +32 -0
  180. package/lib-types/hooks/use-throttled-queue.d.ts.map +1 -0
  181. package/lib-types/hooks/use-throttled-signal.d.ts +47 -0
  182. package/lib-types/hooks/use-throttled-signal.d.ts.map +1 -0
  183. package/lib-types/hooks/use-throttled-store.d.ts +61 -0
  184. package/lib-types/hooks/use-throttled-store.d.ts.map +1 -0
  185. package/lib-types/index.d.ts +63 -0
  186. package/lib-types/index.d.ts.map +1 -0
  187. package/package.json +74 -44
  188. package/lib/ElmMermaid-CUeT_XM9.js +0 -75
  189. package/lib/ElmMermaid-DnSjC5T_.cjs +0 -1
  190. package/lib-types/components/code/ElmCodeBlock.d.ts +0 -22
  191. package/lib-types/components/code/ElmCodeBlock.d.ts.map +0 -1
  192. package/lib-types/components/code/ElmCodeBlock.stories.d.ts +0 -9
  193. package/lib-types/components/code/ElmCodeBlock.stories.d.ts.map +0 -1
  194. package/lib-types/components/code/ElmKatex.d.ts +0 -19
  195. package/lib-types/components/code/ElmKatex.d.ts.map +0 -1
  196. package/lib-types/components/code/ElmKatex.stories.d.ts +0 -9
  197. package/lib-types/components/code/ElmKatex.stories.d.ts.map +0 -1
  198. package/lib-types/components/code/ElmMermaid.d.ts +0 -14
  199. package/lib-types/components/code/ElmMermaid.d.ts.map +0 -1
  200. package/lib-types/components/code/ElmMermaid.stories.d.ts +0 -8
  201. package/lib-types/components/code/ElmMermaid.stories.d.ts.map +0 -1
  202. package/lib-types/components/code/ElmShikiHighlighter.d.ts +0 -20
  203. package/lib-types/components/code/ElmShikiHighlighter.d.ts.map +0 -1
  204. package/lib-types/components/code/ElmShikiHighlighter.stories.d.ts +0 -7
  205. package/lib-types/components/code/ElmShikiHighlighter.stories.d.ts.map +0 -1
  206. package/lib-types/components/code/shikiInstance.d.ts +0 -3
  207. package/lib-types/components/code/shikiInstance.d.ts.map +0 -1
  208. package/lib-types/components/containments/ElmCollapse.d.ts +0 -20
  209. package/lib-types/components/containments/ElmCollapse.d.ts.map +0 -1
  210. package/lib-types/components/containments/ElmCollapse.stories.d.ts +0 -7
  211. package/lib-types/components/containments/ElmCollapse.stories.d.ts.map +0 -1
  212. package/lib-types/components/containments/ElmColumn.d.ts +0 -10
  213. package/lib-types/components/containments/ElmColumn.d.ts.map +0 -1
  214. package/lib-types/components/containments/ElmColumn.stories.d.ts +0 -7
  215. package/lib-types/components/containments/ElmColumn.stories.d.ts.map +0 -1
  216. package/lib-types/components/containments/ElmColumnList.d.ts +0 -10
  217. package/lib-types/components/containments/ElmColumnList.d.ts.map +0 -1
  218. package/lib-types/components/containments/ElmColumnList.stories.d.ts +0 -7
  219. package/lib-types/components/containments/ElmColumnList.stories.d.ts.map +0 -1
  220. package/lib-types/components/containments/ElmConfirmModal.d.ts +0 -24
  221. package/lib-types/components/containments/ElmConfirmModal.d.ts.map +0 -1
  222. package/lib-types/components/containments/ElmConfirmModal.stories.d.ts +0 -7
  223. package/lib-types/components/containments/ElmConfirmModal.stories.d.ts.map +0 -1
  224. package/lib-types/components/containments/ElmDesktopWindow.d.ts +0 -15
  225. package/lib-types/components/containments/ElmDesktopWindow.d.ts.map +0 -1
  226. package/lib-types/components/containments/ElmDesktopWindow.stories.d.ts +0 -7
  227. package/lib-types/components/containments/ElmDesktopWindow.stories.d.ts.map +0 -1
  228. package/lib-types/components/containments/ElmModal.d.ts +0 -21
  229. package/lib-types/components/containments/ElmModal.d.ts.map +0 -1
  230. package/lib-types/components/containments/ElmModal.stories.d.ts +0 -7
  231. package/lib-types/components/containments/ElmModal.stories.d.ts.map +0 -1
  232. package/lib-types/components/containments/ElmParallax.d.ts +0 -14
  233. package/lib-types/components/containments/ElmParallax.d.ts.map +0 -1
  234. package/lib-types/components/containments/ElmParallax.stories.d.ts +0 -7
  235. package/lib-types/components/containments/ElmParallax.stories.d.ts.map +0 -1
  236. package/lib-types/components/containments/ElmSimpleTooltip.d.ts +0 -14
  237. package/lib-types/components/containments/ElmSimpleTooltip.d.ts.map +0 -1
  238. package/lib-types/components/containments/ElmSimpleTooltip.stories.d.ts +0 -8
  239. package/lib-types/components/containments/ElmSimpleTooltip.stories.d.ts.map +0 -1
  240. package/lib-types/components/containments/ElmSnackbar.d.ts +0 -16
  241. package/lib-types/components/containments/ElmSnackbar.d.ts.map +0 -1
  242. package/lib-types/components/containments/ElmSnackbar.stories.d.ts +0 -7
  243. package/lib-types/components/containments/ElmSnackbar.stories.d.ts.map +0 -1
  244. package/lib-types/components/containments/ElmSnackbarContainer.d.ts +0 -19
  245. package/lib-types/components/containments/ElmSnackbarContainer.d.ts.map +0 -1
  246. package/lib-types/components/containments/ElmSnackbarContainer.stories.d.ts +0 -7
  247. package/lib-types/components/containments/ElmSnackbarContainer.stories.d.ts.map +0 -1
  248. package/lib-types/components/containments/ElmTabs.d.ts +0 -14
  249. package/lib-types/components/containments/ElmTabs.d.ts.map +0 -1
  250. package/lib-types/components/containments/ElmTabs.stories.d.ts +0 -7
  251. package/lib-types/components/containments/ElmTabs.stories.d.ts.map +0 -1
  252. package/lib-types/components/containments/ElmToggle.d.ts +0 -18
  253. package/lib-types/components/containments/ElmToggle.d.ts.map +0 -1
  254. package/lib-types/components/containments/ElmToggle.stories.d.ts +0 -9
  255. package/lib-types/components/containments/ElmToggle.stories.d.ts.map +0 -1
  256. package/lib-types/components/containments/ElmTooltip.d.ts +0 -14
  257. package/lib-types/components/containments/ElmTooltip.d.ts.map +0 -1
  258. package/lib-types/components/containments/ElmTooltip.stories.d.ts +0 -7
  259. package/lib-types/components/containments/ElmTooltip.stories.d.ts.map +0 -1
  260. package/lib-types/components/copilotkit/ElmModelSelect.d.ts +0 -17
  261. package/lib-types/components/copilotkit/ElmModelSelect.d.ts.map +0 -1
  262. package/lib-types/components/copilotkit/ElmModelSelect.stories.d.ts +0 -28
  263. package/lib-types/components/copilotkit/ElmModelSelect.stories.d.ts.map +0 -1
  264. package/lib-types/components/copilotkit/ToolApproval.d.ts +0 -17
  265. package/lib-types/components/copilotkit/ToolApproval.d.ts.map +0 -1
  266. package/lib-types/components/copilotkit/ToolApproval.stories.d.ts +0 -7
  267. package/lib-types/components/copilotkit/ToolApproval.stories.d.ts.map +0 -1
  268. package/lib-types/components/data/ElmMultiProgress.d.ts +0 -33
  269. package/lib-types/components/data/ElmMultiProgress.d.ts.map +0 -1
  270. package/lib-types/components/data/ElmMultiProgress.stories.d.ts +0 -7
  271. package/lib-types/components/data/ElmMultiProgress.stories.d.ts.map +0 -1
  272. package/lib-types/components/data/ElmProgress.d.ts +0 -41
  273. package/lib-types/components/data/ElmProgress.d.ts.map +0 -1
  274. package/lib-types/components/data/ElmProgress.stories.d.ts +0 -11
  275. package/lib-types/components/data/ElmProgress.stories.d.ts.map +0 -1
  276. package/lib-types/components/data/ElmStatusMessage.d.ts +0 -19
  277. package/lib-types/components/data/ElmStatusMessage.d.ts.map +0 -1
  278. package/lib-types/components/data/ElmStatusMessage.stories.d.ts +0 -10
  279. package/lib-types/components/data/ElmStatusMessage.stories.d.ts.map +0 -1
  280. package/lib-types/components/embed/ElmOEmbed.d.ts +0 -48
  281. package/lib-types/components/embed/ElmOEmbed.d.ts.map +0 -1
  282. package/lib-types/components/embed/ElmOEmbed.stories.d.ts +0 -8
  283. package/lib-types/components/embed/ElmOEmbed.stories.d.ts.map +0 -1
  284. package/lib-types/components/fallback/ElmBlockFallback.d.ts +0 -15
  285. package/lib-types/components/fallback/ElmBlockFallback.d.ts.map +0 -1
  286. package/lib-types/components/fallback/ElmBlockFallback.stories.d.ts +0 -7
  287. package/lib-types/components/fallback/ElmBlockFallback.stories.d.ts.map +0 -1
  288. package/lib-types/components/fallback/ElmRectangleWave.d.ts +0 -10
  289. package/lib-types/components/fallback/ElmRectangleWave.d.ts.map +0 -1
  290. package/lib-types/components/fallback/ElmRectangleWave.stories.d.ts +0 -7
  291. package/lib-types/components/fallback/ElmRectangleWave.stories.d.ts.map +0 -1
  292. package/lib-types/components/fallback/ElmSpinner.d.ts +0 -18
  293. package/lib-types/components/fallback/ElmSpinner.d.ts.map +0 -1
  294. package/lib-types/components/fallback/ElmSpinner.stories.d.ts +0 -7
  295. package/lib-types/components/fallback/ElmSpinner.stories.d.ts.map +0 -1
  296. package/lib-types/components/fallback/ElmUnsupportedBlock.d.ts +0 -14
  297. package/lib-types/components/fallback/ElmUnsupportedBlock.d.ts.map +0 -1
  298. package/lib-types/components/fallback/ElmUnsupportedBlock.stories.d.ts +0 -7
  299. package/lib-types/components/fallback/ElmUnsupportedBlock.stories.d.ts.map +0 -1
  300. package/lib-types/components/form/ElmButton.d.ts +0 -24
  301. package/lib-types/components/form/ElmButton.d.ts.map +0 -1
  302. package/lib-types/components/form/ElmButton.stories.d.ts +0 -11
  303. package/lib-types/components/form/ElmButton.stories.d.ts.map +0 -1
  304. package/lib-types/components/form/ElmCheckbox.d.ts +0 -20
  305. package/lib-types/components/form/ElmCheckbox.d.ts.map +0 -1
  306. package/lib-types/components/form/ElmCheckbox.stories.d.ts +0 -7
  307. package/lib-types/components/form/ElmCheckbox.stories.d.ts.map +0 -1
  308. package/lib-types/components/form/ElmSelect.d.ts +0 -30
  309. package/lib-types/components/form/ElmSelect.d.ts.map +0 -1
  310. package/lib-types/components/form/ElmSelect.stories.d.ts +0 -8
  311. package/lib-types/components/form/ElmSelect.stories.d.ts.map +0 -1
  312. package/lib-types/components/form/ElmSwitch.d.ts +0 -24
  313. package/lib-types/components/form/ElmSwitch.d.ts.map +0 -1
  314. package/lib-types/components/form/ElmSwitch.stories.d.ts +0 -7
  315. package/lib-types/components/form/ElmSwitch.stories.d.ts.map +0 -1
  316. package/lib-types/components/form/ElmTextField.d.ts +0 -34
  317. package/lib-types/components/form/ElmTextField.d.ts.map +0 -1
  318. package/lib-types/components/form/ElmTextField.stories.d.ts +0 -7
  319. package/lib-types/components/form/ElmTextField.stories.d.ts.map +0 -1
  320. package/lib-types/components/form/ElmValidation.d.ts +0 -17
  321. package/lib-types/components/form/ElmValidation.d.ts.map +0 -1
  322. package/lib-types/components/form/ElmValidation.stories.d.ts +0 -7
  323. package/lib-types/components/form/ElmValidation.stories.d.ts.map +0 -1
  324. package/lib-types/components/icon/ElmArrowIcon.d.ts +0 -26
  325. package/lib-types/components/icon/ElmArrowIcon.d.ts.map +0 -1
  326. package/lib-types/components/icon/ElmArrowIcon.stories.d.ts +0 -7
  327. package/lib-types/components/icon/ElmArrowIcon.stories.d.ts.map +0 -1
  328. package/lib-types/components/icon/ElmBookmarkIcon.d.ts +0 -22
  329. package/lib-types/components/icon/ElmBookmarkIcon.d.ts.map +0 -1
  330. package/lib-types/components/icon/ElmBookmarkIcon.stories.d.ts +0 -9
  331. package/lib-types/components/icon/ElmBookmarkIcon.stories.d.ts.map +0 -1
  332. package/lib-types/components/icon/ElmCubeIcon.d.ts +0 -14
  333. package/lib-types/components/icon/ElmCubeIcon.d.ts.map +0 -1
  334. package/lib-types/components/icon/ElmCubeIcon.stories.d.ts +0 -7
  335. package/lib-types/components/icon/ElmCubeIcon.stories.d.ts.map +0 -1
  336. package/lib-types/components/icon/ElmDotLoadingIcon.d.ts +0 -20
  337. package/lib-types/components/icon/ElmDotLoadingIcon.d.ts.map +0 -1
  338. package/lib-types/components/icon/ElmDotLoadingIcon.stories.d.ts +0 -7
  339. package/lib-types/components/icon/ElmDotLoadingIcon.stories.d.ts.map +0 -1
  340. package/lib-types/components/icon/ElmInlineIcon.d.ts +0 -18
  341. package/lib-types/components/icon/ElmInlineIcon.d.ts.map +0 -1
  342. package/lib-types/components/icon/ElmInlineIcon.stories.d.ts +0 -7
  343. package/lib-types/components/icon/ElmInlineIcon.stories.d.ts.map +0 -1
  344. package/lib-types/components/icon/ElmLanguageIcon.d.ts +0 -19
  345. package/lib-types/components/icon/ElmLanguageIcon.d.ts.map +0 -1
  346. package/lib-types/components/icon/ElmLanguageIcon.stories.d.ts +0 -7
  347. package/lib-types/components/icon/ElmLanguageIcon.stories.d.ts.map +0 -1
  348. package/lib-types/components/icon/ElmLoginIcon.d.ts +0 -22
  349. package/lib-types/components/icon/ElmLoginIcon.d.ts.map +0 -1
  350. package/lib-types/components/icon/ElmLoginIcon.stories.d.ts +0 -7
  351. package/lib-types/components/icon/ElmLoginIcon.stories.d.ts.map +0 -1
  352. package/lib-types/components/icon/ElmMdiIcon.d.ts +0 -19
  353. package/lib-types/components/icon/ElmMdiIcon.d.ts.map +0 -1
  354. package/lib-types/components/icon/ElmMdiIcon.stories.d.ts +0 -7
  355. package/lib-types/components/icon/ElmMdiIcon.stories.d.ts.map +0 -1
  356. package/lib-types/components/icon/ElmSquareLoadingIcon.d.ts +0 -18
  357. package/lib-types/components/icon/ElmSquareLoadingIcon.d.ts.map +0 -1
  358. package/lib-types/components/icon/ElmSquareLoadingIcon.stories.d.ts +0 -7
  359. package/lib-types/components/icon/ElmSquareLoadingIcon.stories.d.ts.map +0 -1
  360. package/lib-types/components/icon/ElmToggleTheme.d.ts +0 -14
  361. package/lib-types/components/icon/ElmToggleTheme.d.ts.map +0 -1
  362. package/lib-types/components/icon/ElmToggleTheme.stories.d.ts +0 -7
  363. package/lib-types/components/icon/ElmToggleTheme.stories.d.ts.map +0 -1
  364. package/lib-types/components/icon/language.d.ts +0 -3
  365. package/lib-types/components/icon/language.d.ts.map +0 -1
  366. package/lib-types/components/media/ElmFile.d.ts +0 -22
  367. package/lib-types/components/media/ElmFile.d.ts.map +0 -1
  368. package/lib-types/components/media/ElmFile.stories.d.ts +0 -8
  369. package/lib-types/components/media/ElmFile.stories.d.ts.map +0 -1
  370. package/lib-types/components/media/ElmImage.d.ts +0 -34
  371. package/lib-types/components/media/ElmImage.d.ts.map +0 -1
  372. package/lib-types/components/media/ElmImage.stories.d.ts +0 -10
  373. package/lib-types/components/media/ElmImage.stories.d.ts.map +0 -1
  374. package/lib-types/components/navigation/ElmBookmark.d.ts +0 -53
  375. package/lib-types/components/navigation/ElmBookmark.d.ts.map +0 -1
  376. package/lib-types/components/navigation/ElmBookmark.stories.d.ts +0 -9
  377. package/lib-types/components/navigation/ElmBookmark.stories.d.ts.map +0 -1
  378. package/lib-types/components/navigation/ElmBreadcrumb.d.ts +0 -23
  379. package/lib-types/components/navigation/ElmBreadcrumb.d.ts.map +0 -1
  380. package/lib-types/components/navigation/ElmBreadcrumb.stories.d.ts +0 -8
  381. package/lib-types/components/navigation/ElmBreadcrumb.stories.d.ts.map +0 -1
  382. package/lib-types/components/navigation/ElmPageTop.d.ts +0 -14
  383. package/lib-types/components/navigation/ElmPageTop.d.ts.map +0 -1
  384. package/lib-types/components/navigation/ElmPageTop.stories.d.ts +0 -7
  385. package/lib-types/components/navigation/ElmPageTop.stories.d.ts.map +0 -1
  386. package/lib-types/components/navigation/ElmTableOfContents.d.ts +0 -18
  387. package/lib-types/components/navigation/ElmTableOfContents.d.ts.map +0 -1
  388. package/lib-types/components/navigation/ElmTableOfContents.stories.d.ts +0 -8
  389. package/lib-types/components/navigation/ElmTableOfContents.stories.d.ts.map +0 -1
  390. package/lib-types/components/others/ElmColorSample.d.ts +0 -12
  391. package/lib-types/components/others/ElmColorSample.d.ts.map +0 -1
  392. package/lib-types/components/others/ElmColorSample.stories.d.ts +0 -8
  393. package/lib-types/components/others/ElmColorSample.stories.d.ts.map +0 -1
  394. package/lib-types/components/others/ElmColorTable.d.ts +0 -15
  395. package/lib-types/components/others/ElmColorTable.d.ts.map +0 -1
  396. package/lib-types/components/others/ElmColorTable.stories.d.ts +0 -7
  397. package/lib-types/components/others/ElmColorTable.stories.d.ts.map +0 -1
  398. package/lib-types/components/others/ElmCommandPalette.d.ts +0 -34
  399. package/lib-types/components/others/ElmCommandPalette.d.ts.map +0 -1
  400. package/lib-types/components/others/ElmCommandPalette.stories.d.ts +0 -7
  401. package/lib-types/components/others/ElmCommandPalette.stories.d.ts.map +0 -1
  402. package/lib-types/components/others/ElmJarkup.d.ts +0 -30
  403. package/lib-types/components/others/ElmJarkup.d.ts.map +0 -1
  404. package/lib-types/components/others/ElmJarkup.stories.d.ts +0 -8
  405. package/lib-types/components/others/ElmJarkup.stories.d.ts.map +0 -1
  406. package/lib-types/components/others/ElmJsonComponentRenderer.d.ts +0 -14
  407. package/lib-types/components/others/ElmJsonComponentRenderer.d.ts.map +0 -1
  408. package/lib-types/components/others/ElmJsonComponentRenderer.stories.d.ts +0 -7
  409. package/lib-types/components/others/ElmJsonComponentRenderer.stories.d.ts.map +0 -1
  410. package/lib-types/components/others/ElmMarkdown.d.ts +0 -25
  411. package/lib-types/components/others/ElmMarkdown.d.ts.map +0 -1
  412. package/lib-types/components/others/ElmMarkdown.stories.d.ts +0 -7
  413. package/lib-types/components/others/ElmMarkdown.stories.d.ts.map +0 -1
  414. package/lib-types/components/others/ElmTyping.d.ts +0 -12
  415. package/lib-types/components/others/ElmTyping.d.ts.map +0 -1
  416. package/lib-types/components/others/ElmTyping.stories.d.ts +0 -8
  417. package/lib-types/components/others/ElmTyping.stories.d.ts.map +0 -1
  418. package/lib-types/components/table/ElmTable.d.ts +0 -26
  419. package/lib-types/components/table/ElmTable.d.ts.map +0 -1
  420. package/lib-types/components/table/ElmTable.stories.d.ts +0 -8
  421. package/lib-types/components/table/ElmTable.stories.d.ts.map +0 -1
  422. package/lib-types/components/table/ElmTableBody.d.ts +0 -8
  423. package/lib-types/components/table/ElmTableBody.d.ts.map +0 -1
  424. package/lib-types/components/table/ElmTableBody.stories.d.ts +0 -7
  425. package/lib-types/components/table/ElmTableBody.stories.d.ts.map +0 -1
  426. package/lib-types/components/table/ElmTableCell.d.ts +0 -17
  427. package/lib-types/components/table/ElmTableCell.d.ts.map +0 -1
  428. package/lib-types/components/table/ElmTableCell.stories.d.ts +0 -7
  429. package/lib-types/components/table/ElmTableCell.stories.d.ts.map +0 -1
  430. package/lib-types/components/table/ElmTableHeader.d.ts +0 -8
  431. package/lib-types/components/table/ElmTableHeader.d.ts.map +0 -1
  432. package/lib-types/components/table/ElmTableHeader.stories.d.ts +0 -7
  433. package/lib-types/components/table/ElmTableHeader.stories.d.ts.map +0 -1
  434. package/lib-types/components/table/ElmTableRow.d.ts +0 -8
  435. package/lib-types/components/table/ElmTableRow.d.ts.map +0 -1
  436. package/lib-types/components/table/ElmTableRow.stories.d.ts +0 -7
  437. package/lib-types/components/table/ElmTableRow.stories.d.ts.map +0 -1
  438. package/lib-types/components/table/TableContext.d.ts +0 -3
  439. package/lib-types/components/table/TableContext.d.ts.map +0 -1
  440. package/lib-types/components/template/ElmTemplate.d.ts +0 -10
  441. package/lib-types/components/template/ElmTemplate.d.ts.map +0 -1
  442. package/lib-types/components/template/ElmTemplate.stories.d.ts +0 -7
  443. package/lib-types/components/template/ElmTemplate.stories.d.ts.map +0 -1
  444. package/lib-types/components/typography/ElmBlockQuote.d.ts +0 -14
  445. package/lib-types/components/typography/ElmBlockQuote.d.ts.map +0 -1
  446. package/lib-types/components/typography/ElmBlockQuote.stories.d.ts +0 -7
  447. package/lib-types/components/typography/ElmBlockQuote.stories.d.ts.map +0 -1
  448. package/lib-types/components/typography/ElmCallout.d.ts +0 -15
  449. package/lib-types/components/typography/ElmCallout.d.ts.map +0 -1
  450. package/lib-types/components/typography/ElmCallout.stories.d.ts +0 -11
  451. package/lib-types/components/typography/ElmCallout.stories.d.ts.map +0 -1
  452. package/lib-types/components/typography/ElmDivider.d.ts +0 -10
  453. package/lib-types/components/typography/ElmDivider.d.ts.map +0 -1
  454. package/lib-types/components/typography/ElmDivider.stories.d.ts +0 -7
  455. package/lib-types/components/typography/ElmDivider.stories.d.ts.map +0 -1
  456. package/lib-types/components/typography/ElmFragmentIdentifier.d.ts +0 -14
  457. package/lib-types/components/typography/ElmFragmentIdentifier.d.ts.map +0 -1
  458. package/lib-types/components/typography/ElmFragmentIdentifier.stories.d.ts +0 -7
  459. package/lib-types/components/typography/ElmFragmentIdentifier.stories.d.ts.map +0 -1
  460. package/lib-types/components/typography/ElmHeading.d.ts +0 -32
  461. package/lib-types/components/typography/ElmHeading.d.ts.map +0 -1
  462. package/lib-types/components/typography/ElmHeading.stories.d.ts +0 -8
  463. package/lib-types/components/typography/ElmHeading.stories.d.ts.map +0 -1
  464. package/lib-types/components/typography/ElmInlineText.d.ts +0 -25
  465. package/lib-types/components/typography/ElmInlineText.d.ts.map +0 -1
  466. package/lib-types/components/typography/ElmInlineText.stories.d.ts +0 -13
  467. package/lib-types/components/typography/ElmInlineText.stories.d.ts.map +0 -1
  468. package/lib-types/components/typography/ElmList.d.ts +0 -16
  469. package/lib-types/components/typography/ElmList.d.ts.map +0 -1
  470. package/lib-types/components/typography/ElmList.stories.d.ts +0 -9
  471. package/lib-types/components/typography/ElmList.stories.d.ts.map +0 -1
  472. package/lib-types/components/typography/ElmParagraph.d.ts +0 -11
  473. package/lib-types/components/typography/ElmParagraph.d.ts.map +0 -1
  474. package/lib-types/components/typography/ElmParagraph.stories.d.ts +0 -8
  475. package/lib-types/components/typography/ElmParagraph.stories.d.ts.map +0 -1
  476. package/lib-types/components/typography/ElmTypingAnimation.d.ts +0 -22
  477. package/lib-types/components/typography/ElmTypingAnimation.d.ts.map +0 -1
  478. package/lib-types/components/typography/ElmTypingAnimation.stories.d.ts +0 -7
  479. package/lib-types/components/typography/ElmTypingAnimation.stories.d.ts.map +0 -1
  480. package/lib-types/hooks/useElmethisTheme.d.ts +0 -5
  481. package/lib-types/hooks/useElmethisTheme.d.ts.map +0 -1
  482. package/lib-types/hooks/useLocalStorage.d.ts +0 -14
  483. package/lib-types/hooks/useLocalStorage.d.ts.map +0 -1
  484. package/lib-types/hooks/useLocalStorage.stories.d.ts +0 -9
  485. package/lib-types/hooks/useLocalStorage.stories.d.ts.map +0 -1
  486. package/lib-types/hooks/useLocalStorageDispatch.d.ts +0 -2
  487. package/lib-types/hooks/useLocalStorageDispatch.d.ts.map +0 -1
  488. package/lib-types/hooks/useLocalStorageDispatch.stories.d.ts +0 -6
  489. package/lib-types/hooks/useLocalStorageDispatch.stories.d.ts.map +0 -1
  490. package/lib-types/lib.d.ts +0 -75
  491. package/lib-types/lib.d.ts.map +0 -1
  492. package/lib-types/styles/variables.d.ts +0 -10
  493. 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,2 @@
1
+ export declare const VALIDGUESSES: string[];
2
+ //# sourceMappingURL=validGuesses.d.ts.map
@@ -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,2 @@
1
+ export declare const WORDS: string[];
2
+ //# sourceMappingURL=wordlist.d.ts.map
@@ -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,7 @@
1
+ export * from "./elm-table";
2
+ export * from "./elm-table-body";
3
+ export * from "./elm-table-cell";
4
+ export * from "./elm-table-header";
5
+ export * from "./elm-table-row";
6
+ export * from "./table-context";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ import type { ComponentPropsWithoutRef } from "react";
2
+ export type ElmDividerProps = ComponentPropsWithoutRef<"hr">;
3
+ export declare const ElmDivider: ({ className, ...props }: ElmDividerProps) => import("react").JSX.Element;
4
+ //# sourceMappingURL=elm-divider.d.ts.map
@@ -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"}