@elmethis/solid 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +118 -0
  3. package/lib/index.solid.cjs +25 -0
  4. package/lib/index.solid.mjs +5806 -0
  5. package/lib/style.css +2 -0
  6. package/lib-solid/components/a2ui/catalog/basic-catalog.jsx +207 -0
  7. package/lib-solid/components/a2ui/catalog/basic-catalog.jsx.map +1 -0
  8. package/lib-solid/components/a2ui/catalog/catalog-utils.js +23 -0
  9. package/lib-solid/components/a2ui/catalog/catalog-utils.js.map +1 -0
  10. package/lib-solid/components/a2ui/catalog/catalog.js +85 -0
  11. package/lib-solid/components/a2ui/catalog/catalog.js.map +1 -0
  12. package/lib-solid/components/a2ui/catalog/notion-block-catalog.jsx +217 -0
  13. package/lib-solid/components/a2ui/catalog/notion-block-catalog.jsx.map +1 -0
  14. package/lib-solid/components/a2ui/catalog/render-indexed-child.jsx +4 -0
  15. package/lib-solid/components/a2ui/catalog/render-indexed-child.jsx.map +1 -0
  16. package/lib-solid/components/a2ui/component-host.jsx +98 -0
  17. package/lib-solid/components/a2ui/component-host.jsx.map +1 -0
  18. package/lib-solid/components/a2ui/elm-a2ui.jsx +152 -0
  19. package/lib-solid/components/a2ui/elm-a2ui.jsx.map +1 -0
  20. package/lib-solid/components/a2ui/elm-a2ui.module.css +193 -0
  21. package/lib-solid/components/a2ui/stream-json-lines.js +45 -0
  22. package/lib-solid/components/a2ui/stream-json-lines.js.map +1 -0
  23. package/lib-solid/components/code/elm-code-block.jsx +40 -0
  24. package/lib-solid/components/code/elm-code-block.jsx.map +1 -0
  25. package/lib-solid/components/code/elm-code-block.module.css +45 -0
  26. package/lib-solid/components/code/elm-html-viewer.jsx +114 -0
  27. package/lib-solid/components/code/elm-html-viewer.jsx.map +1 -0
  28. package/lib-solid/components/code/elm-html-viewer.module.css +61 -0
  29. package/lib-solid/components/code/elm-html.jsx +178 -0
  30. package/lib-solid/components/code/elm-html.jsx.map +1 -0
  31. package/lib-solid/components/code/elm-html.module.css +5 -0
  32. package/lib-solid/components/code/elm-katex.jsx +14 -0
  33. package/lib-solid/components/code/elm-katex.jsx.map +1 -0
  34. package/lib-solid/components/code/elm-katex.module.css +4 -0
  35. package/lib-solid/components/code/elm-shiki-highlighter.jsx +74 -0
  36. package/lib-solid/components/code/elm-shiki-highlighter.jsx.map +1 -0
  37. package/lib-solid/components/code/elm-shiki-highlighter.module.css +25 -0
  38. package/lib-solid/components/containments/elm-collapse.jsx +31 -0
  39. package/lib-solid/components/containments/elm-collapse.jsx.map +1 -0
  40. package/lib-solid/components/containments/elm-collapse.module.css +47 -0
  41. package/lib-solid/components/containments/elm-modal.jsx +96 -0
  42. package/lib-solid/components/containments/elm-modal.jsx.map +1 -0
  43. package/lib-solid/components/containments/elm-modal.module.css +28 -0
  44. package/lib-solid/components/containments/elm-parallax.jsx +22 -0
  45. package/lib-solid/components/containments/elm-parallax.jsx.map +1 -0
  46. package/lib-solid/components/containments/elm-parallax.module.css +29 -0
  47. package/lib-solid/components/containments/elm-tabs.jsx +74 -0
  48. package/lib-solid/components/containments/elm-tabs.jsx.map +1 -0
  49. package/lib-solid/components/containments/elm-tabs.module.css +63 -0
  50. package/lib-solid/components/containments/elm-toggle.jsx +58 -0
  51. package/lib-solid/components/containments/elm-toggle.jsx.map +1 -0
  52. package/lib-solid/components/containments/elm-toggle.module.css +98 -0
  53. package/lib-solid/components/containments/elm-tooltip.jsx +61 -0
  54. package/lib-solid/components/containments/elm-tooltip.jsx.map +1 -0
  55. package/lib-solid/components/containments/elm-tooltip.module.css +23 -0
  56. package/lib-solid/components/fallback/elm-block-fallback.jsx +22 -0
  57. package/lib-solid/components/fallback/elm-block-fallback.jsx.map +1 -0
  58. package/lib-solid/components/fallback/elm-block-fallback.module.css +8 -0
  59. package/lib-solid/components/fallback/elm-rectangle-wave.jsx +8 -0
  60. package/lib-solid/components/fallback/elm-rectangle-wave.jsx.map +1 -0
  61. package/lib-solid/components/fallback/elm-rectangle-wave.module.css +35 -0
  62. package/lib-solid/components/fallback/elm-unsupported-block.jsx +19 -0
  63. package/lib-solid/components/fallback/elm-unsupported-block.jsx.map +1 -0
  64. package/lib-solid/components/fallback/elm-unsupported-block.module.css +26 -0
  65. package/lib-solid/components/form/elm-button-dropdown.jsx +121 -0
  66. package/lib-solid/components/form/elm-button-dropdown.jsx.map +1 -0
  67. package/lib-solid/components/form/elm-button-dropdown.module.css +83 -0
  68. package/lib-solid/components/form/elm-button.jsx +49 -0
  69. package/lib-solid/components/form/elm-button.jsx.map +1 -0
  70. package/lib-solid/components/form/elm-button.module.css +96 -0
  71. package/lib-solid/components/form/elm-checkbox.jsx +61 -0
  72. package/lib-solid/components/form/elm-checkbox.jsx.map +1 -0
  73. package/lib-solid/components/form/elm-checkbox.module.css +63 -0
  74. package/lib-solid/components/form/elm-select.jsx +98 -0
  75. package/lib-solid/components/form/elm-select.jsx.map +1 -0
  76. package/lib-solid/components/form/elm-select.module.css +108 -0
  77. package/lib-solid/components/form/elm-slider.jsx +298 -0
  78. package/lib-solid/components/form/elm-slider.jsx.map +1 -0
  79. package/lib-solid/components/form/elm-slider.module.css +236 -0
  80. package/lib-solid/components/form/elm-switch.jsx +37 -0
  81. package/lib-solid/components/form/elm-switch.jsx.map +1 -0
  82. package/lib-solid/components/form/elm-switch.module.css +59 -0
  83. package/lib-solid/components/form/elm-text-area.jsx +95 -0
  84. package/lib-solid/components/form/elm-text-area.jsx.map +1 -0
  85. package/lib-solid/components/form/elm-text-area.module.css +133 -0
  86. package/lib-solid/components/form/elm-text-field.jsx +129 -0
  87. package/lib-solid/components/form/elm-text-field.jsx.map +1 -0
  88. package/lib-solid/components/form/elm-text-field.module.css +158 -0
  89. package/lib-solid/components/form/elm-validation.jsx +27 -0
  90. package/lib-solid/components/form/elm-validation.jsx.map +1 -0
  91. package/lib-solid/components/form/elm-validation.module.css +9 -0
  92. package/lib-solid/components/icon/elm-copy-icon.jsx +34 -0
  93. package/lib-solid/components/icon/elm-copy-icon.jsx.map +1 -0
  94. package/lib-solid/components/icon/elm-copy-icon.module.css +32 -0
  95. package/lib-solid/components/icon/elm-dot-loading-icon.jsx +19 -0
  96. package/lib-solid/components/icon/elm-dot-loading-icon.jsx.map +1 -0
  97. package/lib-solid/components/icon/elm-dot-loading-icon.module.css +48 -0
  98. package/lib-solid/components/icon/elm-inline-icon.jsx +19 -0
  99. package/lib-solid/components/icon/elm-inline-icon.jsx.map +1 -0
  100. package/lib-solid/components/icon/elm-inline-icon.module.css +38 -0
  101. package/lib-solid/components/icon/elm-language-icon.jsx +17 -0
  102. package/lib-solid/components/icon/elm-language-icon.jsx.map +1 -0
  103. package/lib-solid/components/icon/elm-mdi-icon.jsx +27 -0
  104. package/lib-solid/components/icon/elm-mdi-icon.jsx.map +1 -0
  105. package/lib-solid/components/icon/elm-mdi-icon.module.css +7 -0
  106. package/lib-solid/components/icon/elm-square-loading-icon.jsx +31 -0
  107. package/lib-solid/components/icon/elm-square-loading-icon.jsx.map +1 -0
  108. package/lib-solid/components/icon/elm-square-loading-icon.module.css +38 -0
  109. package/lib-solid/components/icon/elm-toggle-theme.jsx +146 -0
  110. package/lib-solid/components/icon/elm-toggle-theme.jsx.map +1 -0
  111. package/lib-solid/components/icon/elm-toggle-theme.module.css +15 -0
  112. package/lib-solid/components/icon/language-glyph.jsx +27 -0
  113. package/lib-solid/components/icon/language-glyph.jsx.map +1 -0
  114. package/lib-solid/components/media/elm-audio-player.jsx +275 -0
  115. package/lib-solid/components/media/elm-audio-player.jsx.map +1 -0
  116. package/lib-solid/components/media/elm-audio-player.module.css +433 -0
  117. package/lib-solid/components/media/elm-block-image.jsx +54 -0
  118. package/lib-solid/components/media/elm-block-image.jsx.map +1 -0
  119. package/lib-solid/components/media/elm-block-image.module.css +45 -0
  120. package/lib-solid/components/media/elm-file.jsx +65 -0
  121. package/lib-solid/components/media/elm-file.jsx.map +1 -0
  122. package/lib-solid/components/media/elm-file.module.css +33 -0
  123. package/lib-solid/components/navigation/elm-bookmark.jsx +44 -0
  124. package/lib-solid/components/navigation/elm-bookmark.jsx.map +1 -0
  125. package/lib-solid/components/navigation/elm-bookmark.module.css +88 -0
  126. package/lib-solid/components/navigation/elm-breadcrumb.jsx +26 -0
  127. package/lib-solid/components/navigation/elm-breadcrumb.jsx.map +1 -0
  128. package/lib-solid/components/navigation/elm-breadcrumb.module.css +44 -0
  129. package/lib-solid/components/navigation/elm-page-top.jsx +56 -0
  130. package/lib-solid/components/navigation/elm-page-top.jsx.map +1 -0
  131. package/lib-solid/components/navigation/elm-page-top.module.css +130 -0
  132. package/lib-solid/components/notion/elm-notion-callout.jsx +22 -0
  133. package/lib-solid/components/notion/elm-notion-callout.jsx.map +1 -0
  134. package/lib-solid/components/notion/elm-notion-callout.module.css +91 -0
  135. package/lib-solid/components/others/color-sample-copy.js +63 -0
  136. package/lib-solid/components/others/color-sample-copy.js.map +1 -0
  137. package/lib-solid/components/others/elm-color-primitive-sample.jsx +55 -0
  138. package/lib-solid/components/others/elm-color-primitive-sample.jsx.map +1 -0
  139. package/lib-solid/components/others/elm-color-primitive-sample.module.css +74 -0
  140. package/lib-solid/components/others/elm-color-semantic-sample.jsx +170 -0
  141. package/lib-solid/components/others/elm-color-semantic-sample.jsx.map +1 -0
  142. package/lib-solid/components/others/elm-color-semantic-sample.module.css +134 -0
  143. package/lib-solid/components/others/elm-markdown.jsx +133 -0
  144. package/lib-solid/components/others/elm-markdown.jsx.map +1 -0
  145. package/lib-solid/components/others/elm-markdown.module.css +6 -0
  146. package/lib-solid/components/others/use-wordle.jsx +247 -0
  147. package/lib-solid/components/others/use-wordle.jsx.map +1 -0
  148. package/lib-solid/components/others/use-wordle.module.css +192 -0
  149. package/lib-solid/components/others/wordle/validGuesses.js +10660 -0
  150. package/lib-solid/components/others/wordle/validGuesses.js.map +1 -0
  151. package/lib-solid/components/others/wordle/wordlist.js +5760 -0
  152. package/lib-solid/components/others/wordle/wordlist.js.map +1 -0
  153. package/lib-solid/components/table/elm-table-body.jsx +9 -0
  154. package/lib-solid/components/table/elm-table-body.jsx.map +1 -0
  155. package/lib-solid/components/table/elm-table-cell.jsx +27 -0
  156. package/lib-solid/components/table/elm-table-cell.jsx.map +1 -0
  157. package/lib-solid/components/table/elm-table-cell.module.css +27 -0
  158. package/lib-solid/components/table/elm-table-header.jsx +13 -0
  159. package/lib-solid/components/table/elm-table-header.jsx.map +1 -0
  160. package/lib-solid/components/table/elm-table-header.module.css +7 -0
  161. package/lib-solid/components/table/elm-table-row.jsx +10 -0
  162. package/lib-solid/components/table/elm-table-row.jsx.map +1 -0
  163. package/lib-solid/components/table/elm-table-row.module.css +15 -0
  164. package/lib-solid/components/table/elm-table.jsx +63 -0
  165. package/lib-solid/components/table/elm-table.jsx.map +1 -0
  166. package/lib-solid/components/table/elm-table.module.css +107 -0
  167. package/lib-solid/components/table/index.js +7 -0
  168. package/lib-solid/components/table/index.js.map +1 -0
  169. package/lib-solid/components/table/table-context.js +5 -0
  170. package/lib-solid/components/table/table-context.js.map +1 -0
  171. package/lib-solid/components/typography/elm-block-quote.jsx +22 -0
  172. package/lib-solid/components/typography/elm-block-quote.jsx.map +1 -0
  173. package/lib-solid/components/typography/elm-block-quote.module.css +40 -0
  174. package/lib-solid/components/typography/elm-callout.jsx +24 -0
  175. package/lib-solid/components/typography/elm-callout.jsx.map +1 -0
  176. package/lib-solid/components/typography/elm-callout.module.css +65 -0
  177. package/lib-solid/components/typography/elm-divider.jsx +8 -0
  178. package/lib-solid/components/typography/elm-divider.jsx.map +1 -0
  179. package/lib-solid/components/typography/elm-divider.module.css +5 -0
  180. package/lib-solid/components/typography/elm-fragment-identifier.jsx +16 -0
  181. package/lib-solid/components/typography/elm-fragment-identifier.jsx.map +1 -0
  182. package/lib-solid/components/typography/elm-fragment-identifier.module.css +28 -0
  183. package/lib-solid/components/typography/elm-heading.jsx +37 -0
  184. package/lib-solid/components/typography/elm-heading.jsx.map +1 -0
  185. package/lib-solid/components/typography/elm-heading.module.css +96 -0
  186. package/lib-solid/components/typography/elm-inline-text.jsx +75 -0
  187. package/lib-solid/components/typography/elm-inline-text.jsx.map +1 -0
  188. package/lib-solid/components/typography/elm-inline-text.module.css +118 -0
  189. package/lib-solid/components/typography/elm-list.jsx +13 -0
  190. package/lib-solid/components/typography/elm-list.jsx.map +1 -0
  191. package/lib-solid/components/typography/elm-list.module.css +92 -0
  192. package/lib-solid/components/typography/elm-paragraph.jsx +21 -0
  193. package/lib-solid/components/typography/elm-paragraph.jsx.map +1 -0
  194. package/lib-solid/components/typography/elm-paragraph.module.css +15 -0
  195. package/lib-solid/components/typography/markers/list-bullet-level-1.svg +3 -0
  196. package/lib-solid/components/typography/markers/list-bullet-level-2.svg +3 -0
  197. package/lib-solid/components/typography/markers/list-bullet-level-3.svg +3 -0
  198. package/lib-solid/exports.js +67 -0
  199. package/lib-solid/exports.js.map +1 -0
  200. package/lib-solid/hooks/create-auto-animate.js +61 -0
  201. package/lib-solid/hooks/create-auto-animate.js.map +1 -0
  202. package/lib-solid/index.js +3 -0
  203. package/lib-solid/index.js.map +1 -0
  204. package/lib-solid/primitives/call-event-handler.js +9 -0
  205. package/lib-solid/primitives/call-event-handler.js.map +1 -0
  206. package/lib-solid/primitives/create-async-state.js +71 -0
  207. package/lib-solid/primitives/create-async-state.js.map +1 -0
  208. package/lib-solid/primitives/create-auto-animate.js +67 -0
  209. package/lib-solid/primitives/create-auto-animate.js.map +1 -0
  210. package/lib-solid/primitives/create-clipboard.js +41 -0
  211. package/lib-solid/primitives/create-clipboard.js.map +1 -0
  212. package/lib-solid/primitives/create-controllable-signal.js +32 -0
  213. package/lib-solid/primitives/create-controllable-signal.js.map +1 -0
  214. package/lib-solid/primitives/create-debounced.js +41 -0
  215. package/lib-solid/primitives/create-debounced.js.map +1 -0
  216. package/lib-solid/primitives/create-delayed-signal.js +34 -0
  217. package/lib-solid/primitives/create-delayed-signal.js.map +1 -0
  218. package/lib-solid/primitives/create-elmethis-theme.js +83 -0
  219. package/lib-solid/primitives/create-elmethis-theme.js.map +1 -0
  220. package/lib-solid/primitives/create-modal.jsx +14 -0
  221. package/lib-solid/primitives/create-modal.jsx.map +1 -0
  222. package/lib-solid/primitives/create-storage.js +173 -0
  223. package/lib-solid/primitives/create-storage.js.map +1 -0
  224. package/lib-solid/primitives/create-throttled-queue.js +80 -0
  225. package/lib-solid/primitives/create-throttled-queue.js.map +1 -0
  226. package/lib-solid/primitives/create-throttled.js +58 -0
  227. package/lib-solid/primitives/create-throttled.js.map +1 -0
  228. package/lib-solid/styles/_component-vars.css +48 -0
  229. package/lib-solid/styles/merge-style.js +11 -0
  230. package/lib-solid/styles/merge-style.js.map +1 -0
  231. package/lib-solid/styles/text.module.css +11 -0
  232. package/lib-types/components/a2ui/catalog/basic-catalog.d.ts +5 -0
  233. package/lib-types/components/a2ui/catalog/basic-catalog.d.ts.map +1 -0
  234. package/lib-types/components/a2ui/catalog/catalog-utils.d.ts +5 -0
  235. package/lib-types/components/a2ui/catalog/catalog-utils.d.ts.map +1 -0
  236. package/lib-types/components/a2ui/catalog/catalog.d.ts +39 -0
  237. package/lib-types/components/a2ui/catalog/catalog.d.ts.map +1 -0
  238. package/lib-types/components/a2ui/catalog/notion-block-catalog.d.ts +5 -0
  239. package/lib-types/components/a2ui/catalog/notion-block-catalog.d.ts.map +1 -0
  240. package/lib-types/components/a2ui/catalog/render-indexed-child.d.ts +11 -0
  241. package/lib-types/components/a2ui/catalog/render-indexed-child.d.ts.map +1 -0
  242. package/lib-types/components/a2ui/component-host.d.ts +14 -0
  243. package/lib-types/components/a2ui/component-host.d.ts.map +1 -0
  244. package/lib-types/components/a2ui/elm-a2ui.d.ts +28 -0
  245. package/lib-types/components/a2ui/elm-a2ui.d.ts.map +1 -0
  246. package/lib-types/components/a2ui/stream-json-lines.d.ts +8 -0
  247. package/lib-types/components/a2ui/stream-json-lines.d.ts.map +1 -0
  248. package/lib-types/components/code/elm-code-block.d.ts +11 -0
  249. package/lib-types/components/code/elm-code-block.d.ts.map +1 -0
  250. package/lib-types/components/code/elm-html-viewer.d.ts +20 -0
  251. package/lib-types/components/code/elm-html-viewer.d.ts.map +1 -0
  252. package/lib-types/components/code/elm-html.d.ts +24 -0
  253. package/lib-types/components/code/elm-html.d.ts.map +1 -0
  254. package/lib-types/components/code/elm-katex.d.ts +9 -0
  255. package/lib-types/components/code/elm-katex.d.ts.map +1 -0
  256. package/lib-types/components/code/elm-shiki-highlighter.d.ts +9 -0
  257. package/lib-types/components/code/elm-shiki-highlighter.d.ts.map +1 -0
  258. package/lib-types/components/containments/elm-collapse.d.ts +8 -0
  259. package/lib-types/components/containments/elm-collapse.d.ts.map +1 -0
  260. package/lib-types/components/containments/elm-modal.d.ts +9 -0
  261. package/lib-types/components/containments/elm-modal.d.ts.map +1 -0
  262. package/lib-types/components/containments/elm-parallax.d.ts +6 -0
  263. package/lib-types/components/containments/elm-parallax.d.ts.map +1 -0
  264. package/lib-types/components/containments/elm-tabs.d.ts +24 -0
  265. package/lib-types/components/containments/elm-tabs.d.ts.map +1 -0
  266. package/lib-types/components/containments/elm-toggle.d.ts +17 -0
  267. package/lib-types/components/containments/elm-toggle.d.ts.map +1 -0
  268. package/lib-types/components/containments/elm-tooltip.d.ts +9 -0
  269. package/lib-types/components/containments/elm-tooltip.d.ts.map +1 -0
  270. package/lib-types/components/fallback/elm-block-fallback.d.ts +6 -0
  271. package/lib-types/components/fallback/elm-block-fallback.d.ts.map +1 -0
  272. package/lib-types/components/fallback/elm-rectangle-wave.d.ts +4 -0
  273. package/lib-types/components/fallback/elm-rectangle-wave.d.ts.map +1 -0
  274. package/lib-types/components/fallback/elm-unsupported-block.d.ts +6 -0
  275. package/lib-types/components/fallback/elm-unsupported-block.d.ts.map +1 -0
  276. package/lib-types/components/form/elm-button-dropdown.d.ts +51 -0
  277. package/lib-types/components/form/elm-button-dropdown.d.ts.map +1 -0
  278. package/lib-types/components/form/elm-button.d.ts +12 -0
  279. package/lib-types/components/form/elm-button.d.ts.map +1 -0
  280. package/lib-types/components/form/elm-checkbox.d.ts +17 -0
  281. package/lib-types/components/form/elm-checkbox.d.ts.map +1 -0
  282. package/lib-types/components/form/elm-select.d.ts +29 -0
  283. package/lib-types/components/form/elm-select.d.ts.map +1 -0
  284. package/lib-types/components/form/elm-slider.d.ts +32 -0
  285. package/lib-types/components/form/elm-slider.d.ts.map +1 -0
  286. package/lib-types/components/form/elm-switch.d.ts +15 -0
  287. package/lib-types/components/form/elm-switch.d.ts.map +1 -0
  288. package/lib-types/components/form/elm-text-area.d.ts +14 -0
  289. package/lib-types/components/form/elm-text-area.d.ts.map +1 -0
  290. package/lib-types/components/form/elm-text-field.d.ts +18 -0
  291. package/lib-types/components/form/elm-text-field.d.ts.map +1 -0
  292. package/lib-types/components/form/elm-validation.d.ts +8 -0
  293. package/lib-types/components/form/elm-validation.d.ts.map +1 -0
  294. package/lib-types/components/icon/elm-copy-icon.d.ts +7 -0
  295. package/lib-types/components/icon/elm-copy-icon.d.ts.map +1 -0
  296. package/lib-types/components/icon/elm-dot-loading-icon.d.ts +7 -0
  297. package/lib-types/components/icon/elm-dot-loading-icon.d.ts.map +1 -0
  298. package/lib-types/components/icon/elm-inline-icon.d.ts +12 -0
  299. package/lib-types/components/icon/elm-inline-icon.d.ts.map +1 -0
  300. package/lib-types/components/icon/elm-language-icon.d.ts +13 -0
  301. package/lib-types/components/icon/elm-language-icon.d.ts.map +1 -0
  302. package/lib-types/components/icon/elm-mdi-icon.d.ts +10 -0
  303. package/lib-types/components/icon/elm-mdi-icon.d.ts.map +1 -0
  304. package/lib-types/components/icon/elm-square-loading-icon.d.ts +7 -0
  305. package/lib-types/components/icon/elm-square-loading-icon.d.ts.map +1 -0
  306. package/lib-types/components/icon/elm-toggle-theme.d.ts +7 -0
  307. package/lib-types/components/icon/elm-toggle-theme.d.ts.map +1 -0
  308. package/lib-types/components/icon/language-glyph.d.ts +11 -0
  309. package/lib-types/components/icon/language-glyph.d.ts.map +1 -0
  310. package/lib-types/components/media/elm-audio-player.d.ts +25 -0
  311. package/lib-types/components/media/elm-audio-player.d.ts.map +1 -0
  312. package/lib-types/components/media/elm-block-image.d.ts +15 -0
  313. package/lib-types/components/media/elm-block-image.d.ts.map +1 -0
  314. package/lib-types/components/media/elm-file.d.ts +11 -0
  315. package/lib-types/components/media/elm-file.d.ts.map +1 -0
  316. package/lib-types/components/navigation/elm-bookmark.d.ts +13 -0
  317. package/lib-types/components/navigation/elm-bookmark.d.ts.map +1 -0
  318. package/lib-types/components/navigation/elm-breadcrumb.d.ts +11 -0
  319. package/lib-types/components/navigation/elm-breadcrumb.d.ts.map +1 -0
  320. package/lib-types/components/navigation/elm-page-top.d.ts +7 -0
  321. package/lib-types/components/navigation/elm-page-top.d.ts.map +1 -0
  322. package/lib-types/components/notion/elm-notion-callout.d.ts +21 -0
  323. package/lib-types/components/notion/elm-notion-callout.d.ts.map +1 -0
  324. package/lib-types/components/others/color-sample-copy.d.ts +10 -0
  325. package/lib-types/components/others/color-sample-copy.d.ts.map +1 -0
  326. package/lib-types/components/others/elm-color-primitive-sample.d.ts +4 -0
  327. package/lib-types/components/others/elm-color-primitive-sample.d.ts.map +1 -0
  328. package/lib-types/components/others/elm-color-semantic-sample.d.ts +4 -0
  329. package/lib-types/components/others/elm-color-semantic-sample.d.ts.map +1 -0
  330. package/lib-types/components/others/elm-markdown.d.ts +8 -0
  331. package/lib-types/components/others/elm-markdown.d.ts.map +1 -0
  332. package/lib-types/components/others/use-wordle.d.ts +25 -0
  333. package/lib-types/components/others/use-wordle.d.ts.map +1 -0
  334. package/lib-types/components/others/wordle/validGuesses.d.ts +2 -0
  335. package/lib-types/components/others/wordle/validGuesses.d.ts.map +1 -0
  336. package/lib-types/components/others/wordle/wordlist.d.ts +2 -0
  337. package/lib-types/components/others/wordle/wordlist.d.ts.map +1 -0
  338. package/lib-types/components/table/elm-table-body.d.ts +4 -0
  339. package/lib-types/components/table/elm-table-body.d.ts.map +1 -0
  340. package/lib-types/components/table/elm-table-cell.d.ts +11 -0
  341. package/lib-types/components/table/elm-table-cell.d.ts.map +1 -0
  342. package/lib-types/components/table/elm-table-header.d.ts +4 -0
  343. package/lib-types/components/table/elm-table-header.d.ts.map +1 -0
  344. package/lib-types/components/table/elm-table-row.d.ts +4 -0
  345. package/lib-types/components/table/elm-table-row.d.ts.map +1 -0
  346. package/lib-types/components/table/elm-table.d.ts +7 -0
  347. package/lib-types/components/table/elm-table.d.ts.map +1 -0
  348. package/lib-types/components/table/index.d.ts +7 -0
  349. package/lib-types/components/table/index.d.ts.map +1 -0
  350. package/lib-types/components/table/table-context.d.ts +7 -0
  351. package/lib-types/components/table/table-context.d.ts.map +1 -0
  352. package/lib-types/components/typography/elm-block-quote.d.ts +5 -0
  353. package/lib-types/components/typography/elm-block-quote.d.ts.map +1 -0
  354. package/lib-types/components/typography/elm-callout.d.ts +8 -0
  355. package/lib-types/components/typography/elm-callout.d.ts.map +1 -0
  356. package/lib-types/components/typography/elm-divider.d.ts +4 -0
  357. package/lib-types/components/typography/elm-divider.d.ts.map +1 -0
  358. package/lib-types/components/typography/elm-fragment-identifier.d.ts +7 -0
  359. package/lib-types/components/typography/elm-fragment-identifier.d.ts.map +1 -0
  360. package/lib-types/components/typography/elm-heading.d.ts +8 -0
  361. package/lib-types/components/typography/elm-heading.d.ts.map +1 -0
  362. package/lib-types/components/typography/elm-inline-text.d.ts +23 -0
  363. package/lib-types/components/typography/elm-inline-text.d.ts.map +1 -0
  364. package/lib-types/components/typography/elm-list.d.ts +7 -0
  365. package/lib-types/components/typography/elm-list.d.ts.map +1 -0
  366. package/lib-types/components/typography/elm-paragraph.d.ts +7 -0
  367. package/lib-types/components/typography/elm-paragraph.d.ts.map +1 -0
  368. package/lib-types/exports.d.ts +67 -0
  369. package/lib-types/exports.d.ts.map +1 -0
  370. package/lib-types/hooks/create-auto-animate.d.ts +26 -0
  371. package/lib-types/hooks/create-auto-animate.d.ts.map +1 -0
  372. package/lib-types/index.d.ts +3 -0
  373. package/lib-types/index.d.ts.map +1 -0
  374. package/lib-types/primitives/call-event-handler.d.ts +6 -0
  375. package/lib-types/primitives/call-event-handler.d.ts.map +1 -0
  376. package/lib-types/primitives/create-async-state.d.ts +25 -0
  377. package/lib-types/primitives/create-async-state.d.ts.map +1 -0
  378. package/lib-types/primitives/create-auto-animate.d.ts +26 -0
  379. package/lib-types/primitives/create-auto-animate.d.ts.map +1 -0
  380. package/lib-types/primitives/create-clipboard.d.ts +16 -0
  381. package/lib-types/primitives/create-clipboard.d.ts.map +1 -0
  382. package/lib-types/primitives/create-controllable-signal.d.ts +17 -0
  383. package/lib-types/primitives/create-controllable-signal.d.ts.map +1 -0
  384. package/lib-types/primitives/create-debounced.d.ts +10 -0
  385. package/lib-types/primitives/create-debounced.d.ts.map +1 -0
  386. package/lib-types/primitives/create-delayed-signal.d.ts +10 -0
  387. package/lib-types/primitives/create-delayed-signal.d.ts.map +1 -0
  388. package/lib-types/primitives/create-elmethis-theme.d.ts +12 -0
  389. package/lib-types/primitives/create-elmethis-theme.d.ts.map +1 -0
  390. package/lib-types/primitives/create-modal.d.ts +15 -0
  391. package/lib-types/primitives/create-modal.d.ts.map +1 -0
  392. package/lib-types/primitives/create-storage.d.ts +18 -0
  393. package/lib-types/primitives/create-storage.d.ts.map +1 -0
  394. package/lib-types/primitives/create-throttled-queue.d.ts +17 -0
  395. package/lib-types/primitives/create-throttled-queue.d.ts.map +1 -0
  396. package/lib-types/primitives/create-throttled.d.ts +10 -0
  397. package/lib-types/primitives/create-throttled.d.ts.map +1 -0
  398. package/lib-types/styles/merge-style.d.ts +5 -0
  399. package/lib-types/styles/merge-style.d.ts.map +1 -0
  400. package/package.json +112 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elm-dot-loading-icon.jsx","sourceRoot":"","sources":["../../../src/components/icon/elm-dot-loading-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;A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Y(1.1);
12
+ }
13
+ }
14
+
15
+ .elm-dot-loading-icon {
16
+ width: var(--elmethis-scoped-size);
17
+ height: var(--elmethis-scoped-size);
18
+ user-select: none;
19
+ position: relative;
20
+ display: flex;
21
+ justify-content: space-around;
22
+ align-items: flex-end;
23
+ }
24
+
25
+ .dot {
26
+ width: 20%;
27
+ height: 20%;
28
+ border-radius: 50%;
29
+ animation-name: bounce;
30
+ animation-duration: 0.4s;
31
+ animation-iteration-count: infinite;
32
+ animation-direction: alternate;
33
+ animation-timing-function: ease-out;
34
+ transition: background-color 400ms;
35
+ background-color: var(--elmethis-color-primary);
36
+
37
+ &:nth-last-of-type(1) {
38
+ animation-delay: -100ms;
39
+ }
40
+
41
+ &:nth-last-of-type(2) {
42
+ animation-delay: 0ms;
43
+ }
44
+
45
+ &:nth-last-of-type(3) {
46
+ animation-delay: 100ms;
47
+ }
48
+ }
@@ -0,0 +1,19 @@
1
+ import { mergeProps, splitProps } from "solid-js";
2
+ import { clsx } from "clsx";
3
+ import styles from "./elm-inline-icon.module.css";
4
+ export const ElmInlineIcon = (props) => {
5
+ const merged = mergeProps({ size: 16 }, props);
6
+ const [local, rest] = splitProps(merged, [
7
+ "class",
8
+ "children",
9
+ "src",
10
+ "alt",
11
+ "width",
12
+ "height",
13
+ "size",
14
+ ]);
15
+ return (<span {...rest} class={clsx(styles["elm-inline-icon"], local.class)}>
16
+ <img src={local.src} alt={local.alt} class={styles["elm-inline-icon"]} width={local.width ?? local.size} height={local.height ?? local.size}/>
17
+ </span>);
18
+ };
19
+ //# sourceMappingURL=elm-inline-icon.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elm-inline-icon.jsx","sourceRoot":"","sources":["../../../src/components/icon/elm-inline-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,MAAM,MAAM,8BAA8B,CAAC;AAclD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IACzD,MAAM,MAAM,GAAG,UAAU,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAC/C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE;QACvC,OAAO;QACP,UAAU;QACV,KAAK;QACL,KAAK;QACL,OAAO;QACP,QAAQ;QACR,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAClE;MAAA,CAAC,GAAG,CACF,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CACf,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CACf,KAAK,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CACjC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,CACjC,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,EAEvC;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,38 @@
1
+ .elm-inline-icon {
2
+ margin: 0;
3
+ padding: 0;
4
+ display: inline-block;
5
+ vertical-align: top;
6
+ width: 0.95lh;
7
+ height: 0.95lh;
8
+
9
+ /* Light inherits the surrounding text color; dark lightens the glyph. */
10
+ color: light-dark(
11
+ currentcolor,
12
+ var(--elmethis-scoped-color, rgb(255 255 255 / 70%))
13
+ );
14
+
15
+ &::selection {
16
+ color: light-dark(currentcolor, rgb(0 0 0 / 70%));
17
+ background-color: light-dark(
18
+ var(--elmethis-scoped-color, rgb(0 0 0 / 25%)),
19
+ var(--elmethis-scoped-color, rgb(255 255 255 / 25%))
20
+ );
21
+
22
+ /* `filter` is not a <color>, so it can't use light-dark(): the OS default
23
+ is the media query; an explicit pin overrides it below. */
24
+ filter: brightness(1000%);
25
+
26
+ @media (prefers-color-scheme: dark) {
27
+ filter: none;
28
+ }
29
+ }
30
+
31
+ [data-theme="light"] &::selection {
32
+ filter: brightness(1000%);
33
+ }
34
+
35
+ [data-theme="dark"] &::selection {
36
+ filter: none;
37
+ }
38
+ }
@@ -0,0 +1,17 @@
1
+ import { createMemo, mergeProps, Show } from "solid-js";
2
+ import { LANGUAGES, languageIcons, normalizeLanguage, } from "@elmethis/core";
3
+ import { ElmMdiIcon } from "./elm-mdi-icon";
4
+ import { LanguageGlyph } from "./language-glyph";
5
+ export { LANGUAGES };
6
+ const MDI_CODE_TAGS = "M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z";
7
+ export const ElmLanguageIcon = (props) => {
8
+ const merged = mergeProps({ size: 24 }, props);
9
+ const glyph = createMemo(() => {
10
+ const language = normalizeLanguage(merged.language);
11
+ return language === "file" ? undefined : languageIcons[language];
12
+ });
13
+ return (<Show when={glyph()} keyed fallback={<ElmMdiIcon d={MDI_CODE_TAGS} size={String(merged.size)} class={merged.class} style={merged.style}/>}>
14
+ {(icon) => (<LanguageGlyph icon={icon} size={merged.size} class={merged.class} style={merged.style}/>)}
15
+ </Show>);
16
+ };
17
+ //# sourceMappingURL=elm-language-icon.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elm-language-icon.jsx","sourceRoot":"","sources":["../../../src/components/icon/elm-language-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAY,MAAM,UAAU,CAAC;AAClE,OAAO,EACL,SAAS,EACT,aAAa,EACb,iBAAiB,GAElB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EA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+ import { mergeProps, splitProps } from "solid-js";
2
+ import { clsx } from "clsx";
3
+ import styles from "./elm-mdi-icon.module.css";
4
+ import { mergeStyle } from "../../styles/merge-style";
5
+ const NON_FOCUSABLE = {
6
+ focusable: "false",
7
+ };
8
+ export const ElmMdiIcon = (props) => {
9
+ const merged = mergeProps({ size: "1em", color: "currentColor" }, props);
10
+ const [local, rest] = splitProps(merged, [
11
+ "class",
12
+ "style",
13
+ "children",
14
+ "d",
15
+ "size",
16
+ "color",
17
+ "lightColor",
18
+ "darkColor",
19
+ ]);
20
+ return (<svg class={clsx(styles["elm-mdi-icon"], local.class)} style={mergeStyle(local.style, {
21
+ "--elmethis-scoped-color": local.lightColor ?? local.color,
22
+ "--dark-color": local.darkColor ?? local.color,
23
+ })} width={local.size} height={local.size} viewBox="0 0 24 24" fill={local.color} xmlns="http://www.w3.org/2000/svg" role="img" {...NON_FOCUSABLE} {...rest}>
24
+ <path d={local.d}/>
25
+ </svg>);
26
+ };
27
+ //# sourceMappingURL=elm-mdi-icon.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elm-mdi-icon.jsx","sourceRoot":"","sources":["../../../src/components/icon/elm-mdi-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,aAAa,GAAG;IACpB,SAAS,EAAE,OAAO;CAC+B,CAAC;AAUpD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,KAAK,CAAC,CAAC;IACzE,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE;QACvC,OAAO;QACP,OAAO;QACP,UAAU;QACV,GAAG;QACH,MAAM;QACN,OAAO;QACP,YAAY;QACZ,WAAW;KACZ,CAAC,CAAC;IAEH,OAAO,CACL,CAAC,GAAG,CACF,KAAK,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CACjD,KAAK,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE;YAC7B,yBAAyB,EAAE,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK;YAC1D,cAAc,EAAE,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK;SAC/C,CAAC,CAAC,CACH,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAClB,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CACnB,OAAO,CAAC,WAAW,CACnB,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAClB,KAAK,CAAC,4BAA4B,CAClC,IAAI,CAAC,KAAK,CACV,IAAI,aAAa,CAAC,CAClB,IAAI,IAAI,CAAC,CAET;MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EACnB;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ .elm-mdi-icon {
2
+ fill: light-dark(
3
+ var(--elmethis-scoped-color, #555b67),
4
+ var(--dark-color, #b0b5be)
5
+ );
6
+ transition: fill 200ms;
7
+ }
@@ -0,0 +1,31 @@
1
+ import { createMemo, For, mergeProps, splitProps } from "solid-js";
2
+ import { clsx } from "clsx";
3
+ import styles from "./elm-square-loading-icon.module.css";
4
+ import { mergeStyle } from "../../styles/merge-style";
5
+ const DURATION = 1200;
6
+ export const ElmSquareLoadingIcon = (props) => {
7
+ const merged = mergeProps({ size: "3rem", dimensions: 4 }, props);
8
+ const [local, rest] = splitProps(merged, [
9
+ "class",
10
+ "style",
11
+ "children",
12
+ "size",
13
+ "dimensions",
14
+ ]);
15
+ const indexes = createMemo(() => new Array(local.dimensions).fill(null).map((_, index) => index));
16
+ return (<span class={clsx(styles["elm-square-loading-icon"], local.class)} style={mergeStyle(local.style, {
17
+ "--elmethis-scoped-size": local.size,
18
+ "--elmethis-scoped-dimensions": local.dimensions,
19
+ "--elmethis-scoped-duration": `${DURATION}ms`,
20
+ })} {...rest}>
21
+ <For each={indexes()}>
22
+ {(rowIndex) => (<For each={indexes()}>
23
+ {(columnIndex) => (<span class={styles.square} style={{
24
+ "--elmethis-scoped-delay": `${(DURATION / (local.dimensions * 3)) *
25
+ (rowIndex + columnIndex)}ms`,
26
+ }}/>)}
27
+ </For>)}
28
+ </For>
29
+ </span>);
30
+ };
31
+ //# sourceMappingURL=elm-square-loading-icon.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elm-square-loading-icon.jsx","sourceRoot":"","sources":["../../../src/components/icon/elm-square-loading-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,MAAM,MAAM,sCAAsC,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAOtD,MAAM,QAAQ,GAAG,IAAI,CAAC;AAEtB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAgC,EAAE,EAAE;IACvE,MAAM,MAAM,GAAG,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAClE,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE;QACvC,OAAO;QACP,OAAO;QACP,UAAU;QACV,MAAM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0);
4
+ }
5
+
6
+ 20% {
7
+ transform: scale(0);
8
+ }
9
+
10
+ 80% {
11
+ transform: scale(1);
12
+ }
13
+
14
+ 100% {
15
+ transform: scale(1);
16
+ }
17
+ }
18
+
19
+ .elm-square-loading-icon {
20
+ margin: 0;
21
+ padding: 0;
22
+ display: grid;
23
+ grid-template-columns: repeat(var(--elmethis-scoped-dimensions), auto);
24
+ grid-template-rows: repeat(var(--elmethis-scoped-dimensions), auto);
25
+ justify-content: start;
26
+ }
27
+
28
+ .square {
29
+ width: calc(var(--elmethis-scoped-size) / var(--elmethis-scoped-dimensions));
30
+ height: calc(var(--elmethis-scoped-size) / var(--elmethis-scoped-dimensions));
31
+ animation-name: appear;
32
+ animation-iteration-count: infinite;
33
+ animation-fill-mode: both;
34
+ animation-direction: alternate;
35
+ animation-duration: var(--elmethis-scoped-duration);
36
+ animation-delay: var(--elmethis-scoped-delay);
37
+ background-color: var(--elmethis-color-primary);
38
+ }
@@ -0,0 +1,146 @@
1
+ import { createUniqueId, mergeProps, splitProps } from "solid-js";
2
+ import { clsx } from "clsx";
3
+ import { createElmethisTheme } from "../../primitives/create-elmethis-theme";
4
+ import styles from "./elm-toggle-theme.module.css";
5
+ const setOpacity = (to) => ({ attributeName: "opacity", to });
6
+ export const ElmToggleTheme = (props) => {
7
+ const merged = mergeProps({ size: "2rem" }, props);
8
+ const [local, rest] = splitProps(merged, [
9
+ "class",
10
+ "style",
11
+ "size",
12
+ "onClick",
13
+ "onKeyDown",
14
+ "role",
15
+ "tabindex",
16
+ "tabIndex",
17
+ "aria-label",
18
+ "children",
19
+ ]);
20
+ const theme = createElmethisTheme();
21
+ const uniqueId = createUniqueId();
22
+ const moonMaskId = `elm-toggle-theme-moon-mask-${uniqueId}`;
23
+ const sunAnimationId = `elm-toggle-theme-sun-animation-${uniqueId}`;
24
+ const sunMaskId = `elm-toggle-theme-sun-mask-${uniqueId}`;
25
+ const handleClick = (event) => {
26
+ theme.toggleTheme();
27
+ const handler = local.onClick;
28
+ if (typeof handler === "function")
29
+ handler(event);
30
+ else
31
+ handler?.[0](handler[1], event);
32
+ };
33
+ const handleKeyDown = (event) => {
34
+ if (event.key === "Enter" || event.key === " ") {
35
+ event.preventDefault();
36
+ theme.toggleTheme();
37
+ }
38
+ const handler = local.onKeyDown;
39
+ if (typeof handler === "function")
40
+ handler(event);
41
+ else
42
+ handler?.[0](handler[1], event);
43
+ };
44
+ const sharedProps = {
45
+ xmlns: "http://www.w3.org/2000/svg",
46
+ viewBox: "0 0 24 24",
47
+ };
48
+ return (<>
49
+ {!theme.isDarkTheme() ? (<svg {...sharedProps} width={local.size} height={local.size} class={clsx(styles["elm-toggle-theme"], local.class)} style={local.style} role={local.role ?? "button"} tabindex={local.tabindex ?? local.tabIndex ?? 0} aria-label={local["aria-label"] ?? "Switch to dark theme"} onClick={handleClick} onKeyDown={handleKeyDown} {...rest}>
50
+ <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
51
+ <path stroke-dasharray="2" stroke-dashoffset="2" d="M12 19v1M19 12h1M12 5v-1M5 12h-1">
52
+ <animate fill="freeze" attributeName="d" begin="1.2s" dur="0.2s" values="M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1"/>
53
+ <animate fill="freeze" attributeName="stroke-dashoffset" begin="1.2s" dur="0.2s" values="2;0"/>
54
+ </path>
55
+ <path stroke-dasharray="2" stroke-dashoffset="2" d="M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5">
56
+ <animate fill="freeze" attributeName="d" begin="1.4s" dur="0.2s" values="M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5"/>
57
+ <animate fill="freeze" attributeName="stroke-dashoffset" begin="1.4s" dur="0.2s" values="2;0"/>
58
+ </path>
59
+ <animateTransform attributeName="transform" dur="30s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"/>
60
+ </g>
61
+ <g fill="currentColor">
62
+ <path d="M15.22 6.03L17.75 4.09L14.56 4L13.5 1L12.44 4L9.25 4.09L11.78 6.03L10.87 9.09L13.5 7.28L16.13 9.09L15.22 6.03Z">
63
+ <animate fill="freeze" attributeName="fill-opacity" dur="0.4s" values="1;0"/>
64
+ </path>
65
+ <path d="M19.61 12.25L21.25 11L19.19 10.95L18.5 9L17.81 10.95L15.75 11L17.39 12.25L16.8 14.23L18.5 13.06L20.2 14.23L19.61 12.25Z">
66
+ <animate fill="freeze" attributeName="fill-opacity" begin="0.2s" dur="0.4s" values="1;0"/>
67
+ </path>
68
+ </g>
69
+ <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z">
70
+ <set {...setOpacity("0")} fill="freeze" begin="0.6s"/>
71
+ </path>
72
+ <mask id={moonMaskId}>
73
+ <circle cx="12" cy="12" r="12" fill="#fff"/>
74
+ <circle cx="12" cy="12" r="8">
75
+ <animate fill="freeze" attributeName="r" begin="0.6s" dur="0.4s" values="8;4"/>
76
+ </circle>
77
+ <circle cx="18" cy="6" r="12" fill="#fff">
78
+ <animate fill="freeze" attributeName="cx" begin="0.6s" dur="0.4s" values="18;22"/>
79
+ <animate fill="freeze" attributeName="cy" begin="0.6s" dur="0.4s" values="6;2"/>
80
+ <animate fill="freeze" attributeName="r" begin="0.6s" dur="0.4s" values="12;3"/>
81
+ </circle>
82
+ <circle cx="18" cy="6" r="10">
83
+ <animate fill="freeze" attributeName="cx" begin="0.6s" dur="0.4s" values="18;22"/>
84
+ <animate fill="freeze" attributeName="cy" begin="0.6s" dur="0.4s" values="6;2"/>
85
+ <animate fill="freeze" attributeName="r" begin="0.6s" dur="0.4s" values="10;1"/>
86
+ </circle>
87
+ </mask>
88
+ <circle cx="12" cy="12" r="10" mask={`url(#${moonMaskId})`} opacity="0" fill="currentColor">
89
+ <animate fill="freeze" attributeName="r" begin="0.6s" dur="0.4s" values="10;6"/>
90
+ <set {...setOpacity("1")} fill="freeze" begin="0.6s"/>
91
+ </circle>
92
+ </svg>) : (<svg {...sharedProps} width={local.size} height={local.size} class={clsx(styles["elm-toggle-theme"], local.class)} style={local.style} role={local.role ?? "button"} tabindex={local.tabindex ?? local.tabIndex ?? 0} aria-label={local["aria-label"] ?? "Switch to light theme"} onClick={handleClick} onKeyDown={handleKeyDown} {...rest}>
93
+ <path fill-opacity="0" d="M15.22 6.03l2.53-1.94L14.56 4L13.5 1l-1.06 3l-3.19.09l2.53 1.94l-.91 3.06l2.63-1.81l2.63 1.81z" fill="currentColor">
94
+ <animate id={sunAnimationId} fill="freeze" attributeName="fill-opacity" begin={`0.6s;${sunAnimationId}.begin+6s`} dur="0.4s" values="0;1"/>
95
+ <animate fill="freeze" attributeName="fill-opacity" begin={`${sunAnimationId}.begin+2.2s`} dur="0.4s" values="1;0"/>
96
+ </path>
97
+ <path fill-opacity="0" d="M13.61 5.25L15.25 4l-2.06-.05L12.5 2l-.69 1.95L9.75 4l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z" fill="currentColor">
98
+ <animate fill="freeze" attributeName="fill-opacity" begin={`${sunAnimationId}.begin+3s`} dur="0.4s" values="0;1"/>
99
+ <animate fill="freeze" attributeName="fill-opacity" begin={`${sunAnimationId}.begin+5.2s`} dur="0.4s" values="1;0"/>
100
+ </path>
101
+ <path fill-opacity="0" d="M19.61 12.25L21.25 11l-2.06-.05L18.5 9l-.69 1.95l-2.06.05l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z" fill="currentColor">
102
+ <animate fill="freeze" attributeName="fill-opacity" begin={`${sunAnimationId}.begin+0.4s`} dur="0.4s" values="0;1"/>
103
+ <animate fill="freeze" attributeName="fill-opacity" begin={`${sunAnimationId}.begin+2.8s`} dur="0.4s" values="1;0"/>
104
+ </path>
105
+ <path fill-opacity="0" d="M20.828 9.731l1.876-1.439l-2.366-.067L19.552 6l-.786 2.225l-2.366.067l1.876 1.439L17.601 12l1.951-1.342L21.503 12z" fill="currentColor">
106
+ <animate fill="freeze" attributeName="fill-opacity" begin={`${sunAnimationId}.begin+3.4s`} dur="0.4s" values="0;1"/>
107
+ <animate fill="freeze" attributeName="fill-opacity" begin={`${sunAnimationId}.begin+5.6s`} dur="0.4s" values="1;0"/>
108
+ </path>
109
+ <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
110
+ <g>
111
+ <path stroke-dasharray="2" stroke-dashoffset="4" d="M12 21v1M21 12h1M12 3v-1M3 12h-1">
112
+ <animate fill="freeze" attributeName="stroke-dashoffset" dur="0.2s" values="4;2"/>
113
+ </path>
114
+ <path stroke-dasharray="2" stroke-dashoffset="4" d="M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5">
115
+ <animate fill="freeze" attributeName="stroke-dashoffset" begin="0.2s" dur="0.2s" values="4;2"/>
116
+ </path>
117
+ <set {...setOpacity("0")} fill="freeze" begin="0.5s"/>
118
+ </g>
119
+ <path d="M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z" opacity="0">
120
+ <set {...setOpacity("1")} fill="freeze" begin="0.5s"/>
121
+ </path>
122
+ </g>
123
+ <mask id={sunMaskId}>
124
+ <circle cx="12" cy="12" r="12" fill="#fff"/>
125
+ <circle cx="12" cy="12" r="4">
126
+ <animate fill="freeze" attributeName="r" begin="0.1s" dur="0.4s" values="4;8"/>
127
+ </circle>
128
+ <circle cx="22" cy="2" r="3" fill="#fff">
129
+ <animate fill="freeze" attributeName="cx" begin="0.1s" dur="0.4s" values="22;18"/>
130
+ <animate fill="freeze" attributeName="cy" begin="0.1s" dur="0.4s" values="2;6"/>
131
+ <animate fill="freeze" attributeName="r" begin="0.1s" dur="0.4s" values="3;12"/>
132
+ </circle>
133
+ <circle cx="22" cy="2" r="1">
134
+ <animate fill="freeze" attributeName="cx" begin="0.1s" dur="0.4s" values="22;18"/>
135
+ <animate fill="freeze" attributeName="cy" begin="0.1s" dur="0.4s" values="2;6"/>
136
+ <animate fill="freeze" attributeName="r" begin="0.1s" dur="0.4s" values="1;10"/>
137
+ </circle>
138
+ </mask>
139
+ <circle cx="12" cy="12" r="6" mask={`url(#${sunMaskId})`} fill="currentColor">
140
+ <animate fill="freeze" attributeName="r" begin="0.1s" dur="0.4s" values="6;10"/>
141
+ <set {...setOpacity("0")} fill="freeze" begin="0.5s"/>
142
+ </circle>
143
+ </svg>)}
144
+ </>);
145
+ };
146
+ //# sourceMappingURL=elm-toggle-theme.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elm-toggle-theme.jsx","sourceRoot":"","sources":["../../../src/components/icon/elm-toggle-theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAY,MAAM,UAAU,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAEnD,MAAM,UAAU,GAAG,CAAC,EAAa,EAAE,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;AAOzE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE;IAC3D,MAAM,MAAM,GAAG,UAAU,CAAC,EAAE,IAAI,EAAE,M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CACZ,GAAG,CAAC,MAAM,CACV,MAAM,CAAC,MAAM,EAEjB;YAAA,EAAE,MAAM,CACV;UAAA,EAAE,IAAI,CACN;UAAA,CAAC,MAAM,CACL,EAAE,CAAC,IAAI,CACP,EAAE,CAAC,IAAI,CACP,CAAC,CAAC,GAAG,CACL,IAAI,CAAC,CAAC,QAAQ,SAAS,GAAG,CAAC,CAC3B,IAAI,CAAC,cAAc,CAEnB;YAAA,CAAC,OAAO,CACN,IAAI,CAAC,QAAQ,CACb,aAAa,CAAC,GAAG,CACjB,KAAK,CAAC,MAAM,CACZ,GAAG,CAAC,MAAM,CACV,MAAM,CAAC,MAAM,EAEf;YAAA,CAAC,GAAG,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EACtD;UAAA,EAAE,MAAM,CACV;QAAA,EAAE,GAAG,CAAC,CACP,CACH;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ .elm-toggle-theme {
2
+ display: block;
3
+ box-sizing: border-box;
4
+ padding: 0.25rem;
5
+ color: light-dark(#555b67, #b0b5be);
6
+ border-radius: 50%;
7
+ cursor: pointer;
8
+ box-shadow: 0 0 0.125rem light-dark(rgb(0 0 0 / 30%), rgb(0 0 0 / 60%));
9
+ background-color: light-dark(rgb(255 255 255 / 20%), rgb(0 0 0 / 20%));
10
+
11
+ &:focus-visible {
12
+ outline: 2px solid var(--elmethis-color-primary);
13
+ outline-offset: 2px;
14
+ }
15
+ }
@@ -0,0 +1,27 @@
1
+ import { createMemo, createUniqueId, For, mergeProps, splitProps, } from "solid-js";
2
+ import { Dynamic } from "solid-js/web";
3
+ const scopeId = (value, key, suffix) => key === "id"
4
+ ? `${value}-${suffix}`
5
+ : value.replace(/url\(#([^)]+)\)/g, `url(#$1-${suffix})`);
6
+ const renderNode = (node, suffix) => {
7
+ const attrs = {};
8
+ for (const [key, value] of Object.entries(node.attrs ?? {})) {
9
+ attrs[key] = scopeId(value, key, suffix);
10
+ }
11
+ return (<Dynamic component={node.tag} {...attrs} style={node.style}>
12
+ <For each={node.children}>{(child) => renderNode(child, suffix)}</For>
13
+ </Dynamic>);
14
+ };
15
+ /** Renders core language artwork with gradient ids scoped per instance. */
16
+ export const LanguageGlyph = (props) => {
17
+ const merged = mergeProps({ size: 24 }, props);
18
+ const [local] = splitProps(merged, ["icon", "size", "class", "style"]);
19
+ const suffix = createUniqueId();
20
+ const rootAttrs = createMemo(() => local.icon.attrs ?? {});
21
+ return (<svg xmlns="http://www.w3.org/2000/svg" viewBox={local.icon.viewBox} width={local.size} height={local.size} class={local.class} style={local.style} {...rootAttrs()}>
22
+ <For each={local.icon.children}>
23
+ {(child) => renderNode(child, suffix)}
24
+ </For>
25
+ </svg>);
26
+ };
27
+ //# sourceMappingURL=language-glyph.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language-glyph.jsx","sourceRoot":"","sources":["../../../src/components/icon/language-glyph.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,GAAG,EACH,UAAU,EACV,UAAU,GAEX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAUvC,MAAM,OAAO,GAAG,CAAC,KAAa,EAAE,GAAW,EAAE,MAAc,EAAU,EAAE,CACrE,GAAG,KAAK,IAAI;IACV,CAAC,CAAC,GAAG,KAAK,IAAI,MAAM,EAAE;IACtB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,EAAE,WAAW,MAAM,GAAG,CAAC,CAAC;AAE9D,MAAM,UAAU,GAAG,CAAC,IAAa,EAAE,MAAc,EAAe,EAAE;IAChE,MAAM,KAAK,GAA2B,EAAE,CAAC;IACzC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,C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