@elmethis/qwik 0.0.2 → 0.0.4

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 (271) hide show
  1. package/.prettierignore +6 -0
  2. package/.storybook/main.ts +23 -0
  3. package/.storybook/preview-head.html +4 -0
  4. package/.storybook/preview.tsx +51 -0
  5. package/.storybook/sb.scss +13 -0
  6. package/.storybook/tsconfig.json +24 -0
  7. package/eslint.config.js +79 -0
  8. package/package.json +5 -8
  9. package/src/assets/bg1.webp +0 -0
  10. package/src/assets/bg2.webp +0 -0
  11. package/src/assets/images/2.svg +4 -0
  12. package/src/assets/images/lamdscape.svg +4 -0
  13. package/src/assets/images/portrait.svg +4 -0
  14. package/src/assets/images/square.svg +4 -0
  15. package/src/assets/vite.svg +1 -0
  16. package/src/assets/vue.svg +1 -0
  17. package/src/components/code/elm-code-block.module.scss +67 -0
  18. package/src/components/code/elm-code-block.stories.tsx +44 -0
  19. package/src/components/code/elm-code-block.tsx +95 -0
  20. package/src/components/code/elm-katex.stories.tsx +28 -0
  21. package/src/components/code/elm-katex.tsx +34 -0
  22. package/src/components/code/elm-shiki-highlighter.global.scss +18 -0
  23. package/src/components/code/elm-shiki-highlighter.stories.tsx +21 -0
  24. package/src/components/code/elm-shiki-highlighter.tsx +44 -0
  25. package/src/components/code/seed/main.rs +24 -0
  26. package/{lib/qwik31.js → src/components/code/shikiInstance.ts} +8 -11
  27. package/src/components/containments/elm-toggle.module.scss +132 -0
  28. package/src/components/containments/elm-toggle.stories.tsx +34 -0
  29. package/src/components/containments/elm-toggle.tsx +106 -0
  30. package/src/components/fallback/elm-block-fallback.module.scss +8 -0
  31. package/src/components/fallback/elm-block-fallback.stories.tsx +14 -0
  32. package/src/components/fallback/elm-block-fallback.tsx +20 -0
  33. package/src/components/fallback/elm-rectangle-wave.module.scss +42 -0
  34. package/src/components/fallback/elm-rectangle-wave.stories.tsx +28 -0
  35. package/src/components/fallback/elm-rectangle-wave.tsx +11 -0
  36. package/src/components/icon/elm-dot-loading-icon.module.scss +53 -0
  37. package/src/components/icon/elm-dot-loading-icon.stories.tsx +15 -0
  38. package/src/components/icon/elm-dot-loading-icon.tsx +35 -0
  39. package/src/components/icon/elm-inline-icon.module.scss +21 -0
  40. package/src/components/icon/elm-inline-icon.stories.tsx +16 -0
  41. package/src/components/icon/elm-inline-icon.tsx +25 -0
  42. package/src/components/icon/elm-language-icon.stories.tsx +22 -0
  43. package/src/components/icon/elm-language-icon.tsx +167 -0
  44. package/src/components/icon/elm-mdi-icon.module.scss +8 -0
  45. package/src/components/icon/elm-mdi-icon.stories.tsx +25 -0
  46. package/src/components/icon/elm-mdi-icon.tsx +34 -0
  47. package/src/components/icon/languages/bash.module.scss +6 -0
  48. package/src/components/icon/languages/bash.tsx +27 -0
  49. package/src/components/icon/languages/c-plus-plus.tsx +33 -0
  50. package/src/components/icon/languages/c-sharp.tsx +29 -0
  51. package/src/components/icon/languages/c.tsx +27 -0
  52. package/src/components/icon/languages/css.tsx +21 -0
  53. package/src/components/icon/languages/go.tsx +22 -0
  54. package/src/components/icon/languages/html.tsx +30 -0
  55. package/src/components/icon/languages/java.tsx +37 -0
  56. package/src/components/icon/languages/javascript.tsx +22 -0
  57. package/src/components/icon/languages/json.tsx +53 -0
  58. package/src/components/icon/languages/kotlin.tsx +36 -0
  59. package/src/components/icon/languages/language-interface.ts +4 -0
  60. package/src/components/icon/languages/lua.tsx +29 -0
  61. package/src/components/icon/languages/npm.tsx +25 -0
  62. package/src/components/icon/languages/python.tsx +67 -0
  63. package/src/components/icon/languages/rust.tsx +19 -0
  64. package/src/components/icon/languages/sql.tsx +21 -0
  65. package/src/components/icon/languages/terraform.tsx +31 -0
  66. package/src/components/icon/languages/typescript.tsx +22 -0
  67. package/src/components/media/elm-block-image.module.scss +68 -0
  68. package/src/components/media/elm-block-image.stories.tsx +79 -0
  69. package/src/components/media/elm-block-image.tsx +110 -0
  70. package/src/components/media/elm-file.module.scss +43 -0
  71. package/src/components/media/elm-file.stories.tsx +27 -0
  72. package/src/components/media/elm-file.tsx +75 -0
  73. package/src/components/navigation/elm-bookmark.module.scss +100 -0
  74. package/src/components/navigation/elm-bookmark.stories.tsx +87 -0
  75. package/src/components/navigation/elm-bookmark.tsx +72 -0
  76. package/src/components/others/elm-jarkup.module.scss +26 -0
  77. package/src/components/others/elm-jarkup.stories.tsx +18 -0
  78. package/src/components/others/elm-jarkup.tsx +267 -0
  79. package/src/components/table/elm-table-body.tsx +14 -0
  80. package/src/components/table/elm-table-cell.module.scss +41 -0
  81. package/src/components/table/elm-table-cell.tsx +33 -0
  82. package/src/components/table/elm-table-header.module.scss +8 -0
  83. package/src/components/table/elm-table-header.tsx +21 -0
  84. package/src/components/table/elm-table-row.module.scss +28 -0
  85. package/src/components/table/elm-table-row.tsx +15 -0
  86. package/src/components/table/elm-table.module.scss +29 -0
  87. package/src/components/table/elm-table.stories.tsx +67 -0
  88. package/src/components/table/elm-table.tsx +63 -0
  89. package/src/components/typography/elm-block-quote.module.scss +29 -0
  90. package/src/components/typography/elm-block-quote.stories.tsx +22 -0
  91. package/src/components/typography/elm-block-quote.tsx +34 -0
  92. package/src/components/typography/elm-callout.module.scss +36 -0
  93. package/src/components/typography/elm-callout.stories.tsx +47 -0
  94. package/src/components/typography/elm-callout.tsx +52 -0
  95. package/src/components/typography/elm-divider.module.scss +6 -0
  96. package/src/components/typography/elm-divider.stories.tsx +14 -0
  97. package/src/components/typography/elm-divider.tsx +14 -0
  98. package/src/components/typography/elm-fragment-identifier.module.scss +28 -0
  99. package/src/components/typography/elm-fragment-identifier.stories.tsx +14 -0
  100. package/src/components/typography/elm-fragment-identifier.tsx +31 -0
  101. package/src/components/typography/elm-heading.module.scss +120 -0
  102. package/src/components/typography/elm-heading.stories.tsx +42 -0
  103. package/src/components/typography/elm-heading.tsx +40 -0
  104. package/src/components/typography/elm-inline-text.module.scss +114 -0
  105. package/src/components/typography/elm-inline-text.stories.tsx +70 -0
  106. package/src/components/typography/elm-inline-text.tsx +147 -0
  107. package/src/components/typography/elm-list.global.scss +66 -0
  108. package/src/components/typography/elm-list.stories.tsx +61 -0
  109. package/src/components/typography/elm-list.tsx +39 -0
  110. package/src/components/typography/elm-paragraph.module.scss +21 -0
  111. package/src/components/typography/elm-paragraph.stories.tsx +47 -0
  112. package/src/components/typography/elm-paragraph.tsx +31 -0
  113. package/src/entry.dev.tsx +17 -0
  114. package/{lib-types/entry.ssr.d.ts → src/entry.ssr.tsx} +9 -2
  115. package/src/global.d.ts +13 -0
  116. package/src/hooks/useDelayedSignal.ts +27 -0
  117. package/src/hooks/useInView.tsx +23 -0
  118. package/src/index.ts +113 -0
  119. package/src/root.tsx +13 -0
  120. package/src/styles/text.module.scss +17 -0
  121. package/src/vite-env.d.ts +1 -0
  122. package/tsconfig.json +21 -0
  123. package/vite.config.ts +36 -0
  124. package/lib/assets/6FDiDjPb-qwik.css +0 -955
  125. package/lib/qwik.js +0 -56
  126. package/lib/qwik10.js +0 -108
  127. package/lib/qwik11.js +0 -25
  128. package/lib/qwik12.js +0 -87
  129. package/lib/qwik13.js +0 -62
  130. package/lib/qwik14.js +0 -62
  131. package/lib/qwik15.js +0 -44
  132. package/lib/qwik16.js +0 -58
  133. package/lib/qwik17.js +0 -14
  134. package/lib/qwik18.js +0 -24
  135. package/lib/qwik19.js +0 -41
  136. package/lib/qwik2.js +0 -68
  137. package/lib/qwik20.js +0 -89
  138. package/lib/qwik21.js +0 -28
  139. package/lib/qwik22.js +0 -24
  140. package/lib/qwik23.js +0 -57
  141. package/lib/qwik24.js +0 -15
  142. package/lib/qwik25.js +0 -12
  143. package/lib/qwik26.js +0 -17
  144. package/lib/qwik27.js +0 -27
  145. package/lib/qwik28.js +0 -193
  146. package/lib/qwik29.js +0 -17
  147. package/lib/qwik3.js +0 -17
  148. package/lib/qwik30.js +0 -8
  149. package/lib/qwik33.js +0 -32
  150. package/lib/qwik34.js +0 -6
  151. package/lib/qwik35.js +0 -6
  152. package/lib/qwik36.js +0 -11
  153. package/lib/qwik37.js +0 -8
  154. package/lib/qwik38.js +0 -18
  155. package/lib/qwik39.js +0 -24
  156. package/lib/qwik4.js +0 -33
  157. package/lib/qwik40.js +0 -24
  158. package/lib/qwik41.js +0 -29
  159. package/lib/qwik42.js +0 -31
  160. package/lib/qwik43.js +0 -32
  161. package/lib/qwik44.js +0 -18
  162. package/lib/qwik45.js +0 -24
  163. package/lib/qwik46.js +0 -36
  164. package/lib/qwik47.js +0 -45
  165. package/lib/qwik48.js +0 -27
  166. package/lib/qwik49.js +0 -89
  167. package/lib/qwik5.js +0 -123
  168. package/lib/qwik50.js +0 -18
  169. package/lib/qwik51.js +0 -64
  170. package/lib/qwik52.js +0 -28
  171. package/lib/qwik53.js +0 -28
  172. package/lib/qwik54.js +0 -32
  173. package/lib/qwik55.js +0 -28
  174. package/lib/qwik56.js +0 -8
  175. package/lib/qwik57.js +0 -15
  176. package/lib/qwik58.js +0 -10
  177. package/lib/qwik59.js +0 -26
  178. package/lib/qwik6.js +0 -20
  179. package/lib/qwik60.js +0 -14
  180. package/lib/qwik61.js +0 -14
  181. package/lib/qwik62.js +0 -8
  182. package/lib/qwik63.js +0 -8
  183. package/lib/qwik64.js +0 -24
  184. package/lib/qwik65.js +0 -17
  185. package/lib/qwik67.js +0 -8
  186. package/lib/qwik68.js +0 -23
  187. package/lib/qwik69.js +0 -15
  188. package/lib/qwik7.js +0 -12
  189. package/lib/qwik70.js +0 -8
  190. package/lib/qwik71.js +0 -9
  191. package/lib/qwik72.js +0 -14
  192. package/lib/qwik73.js +0 -10
  193. package/lib/qwik74.js +0 -8
  194. package/lib/qwik8.js +0 -29
  195. package/lib/qwik9.js +0 -16
  196. package/lib-types/components/code/elm-code-block.d.ts +0 -21
  197. package/lib-types/components/code/elm-code-block.stories.d.ts +0 -9
  198. package/lib-types/components/code/elm-katex.d.ts +0 -15
  199. package/lib-types/components/code/elm-katex.stories.d.ts +0 -8
  200. package/lib-types/components/code/elm-shiki-highlighter.d.ts +0 -12
  201. package/lib-types/components/code/elm-shiki-highlighter.stories.d.ts +0 -6
  202. package/lib-types/components/code/shikiInstance.d.ts +0 -2
  203. package/lib-types/components/containments/elm-toggle.d.ts +0 -7
  204. package/lib-types/components/containments/elm-toggle.stories.d.ts +0 -6
  205. package/lib-types/components/fallback/elm-block-fallback.d.ts +0 -5
  206. package/lib-types/components/fallback/elm-block-fallback.stories.d.ts +0 -6
  207. package/lib-types/components/fallback/elm-rectangle-wave.d.ts +0 -4
  208. package/lib-types/components/fallback/elm-rectangle-wave.stories.d.ts +0 -6
  209. package/lib-types/components/icon/elm-dot-loading-icon.d.ts +0 -14
  210. package/lib-types/components/icon/elm-dot-loading-icon.stories.d.ts +0 -6
  211. package/lib-types/components/icon/elm-inline-icon.d.ts +0 -11
  212. package/lib-types/components/icon/elm-inline-icon.stories.d.ts +0 -6
  213. package/lib-types/components/icon/elm-language-icon.d.ts +0 -14
  214. package/lib-types/components/icon/elm-language-icon.stories.d.ts +0 -6
  215. package/lib-types/components/icon/elm-mdi-icon.d.ts +0 -8
  216. package/lib-types/components/icon/elm-mdi-icon.stories.d.ts +0 -6
  217. package/lib-types/components/icon/languages/bash.d.ts +0 -2
  218. package/lib-types/components/icon/languages/c-plus-plus.d.ts +0 -2
  219. package/lib-types/components/icon/languages/c-sharp.d.ts +0 -2
  220. package/lib-types/components/icon/languages/c.d.ts +0 -2
  221. package/lib-types/components/icon/languages/css.d.ts +0 -2
  222. package/lib-types/components/icon/languages/go.d.ts +0 -2
  223. package/lib-types/components/icon/languages/html.d.ts +0 -2
  224. package/lib-types/components/icon/languages/java.d.ts +0 -2
  225. package/lib-types/components/icon/languages/javascript.d.ts +0 -2
  226. package/lib-types/components/icon/languages/json.d.ts +0 -2
  227. package/lib-types/components/icon/languages/kotlin.d.ts +0 -2
  228. package/lib-types/components/icon/languages/language-interface.d.ts +0 -4
  229. package/lib-types/components/icon/languages/lua.d.ts +0 -2
  230. package/lib-types/components/icon/languages/npm.d.ts +0 -2
  231. package/lib-types/components/icon/languages/python.d.ts +0 -2
  232. package/lib-types/components/icon/languages/rust.d.ts +0 -2
  233. package/lib-types/components/icon/languages/sql.d.ts +0 -2
  234. package/lib-types/components/icon/languages/terraform.d.ts +0 -2
  235. package/lib-types/components/icon/languages/typescript.d.ts +0 -2
  236. package/lib-types/components/media/elm-block-image.d.ts +0 -16
  237. package/lib-types/components/media/elm-block-image.stories.d.ts +0 -12
  238. package/lib-types/components/media/elm-file.d.ts +0 -15
  239. package/lib-types/components/media/elm-file.stories.d.ts +0 -7
  240. package/lib-types/components/navigation/elm-bookmark.d.ts +0 -24
  241. package/lib-types/components/navigation/elm-bookmark.stories.d.ts +0 -12
  242. package/lib-types/components/others/elm-jarkup.d.ts +0 -5
  243. package/lib-types/components/others/elm-jarkup.stories.d.ts +0 -6
  244. package/lib-types/components/table/elm-table-body.d.ts +0 -2
  245. package/lib-types/components/table/elm-table-cell.d.ts +0 -12
  246. package/lib-types/components/table/elm-table-header.d.ts +0 -3
  247. package/lib-types/components/table/elm-table-row.d.ts +0 -2
  248. package/lib-types/components/table/elm-table.d.ts +0 -13
  249. package/lib-types/components/table/elm-table.stories.d.ts +0 -6
  250. package/lib-types/components/typography/elm-block-quote.d.ts +0 -4
  251. package/lib-types/components/typography/elm-block-quote.stories.d.ts +0 -6
  252. package/lib-types/components/typography/elm-callout.d.ts +0 -8
  253. package/lib-types/components/typography/elm-callout.stories.d.ts +0 -10
  254. package/lib-types/components/typography/elm-divider.d.ts +0 -8
  255. package/lib-types/components/typography/elm-divider.stories.d.ts +0 -6
  256. package/lib-types/components/typography/elm-fragment-identifier.d.ts +0 -7
  257. package/lib-types/components/typography/elm-fragment-identifier.stories.d.ts +0 -6
  258. package/lib-types/components/typography/elm-heading.d.ts +0 -6
  259. package/lib-types/components/typography/elm-heading.stories.d.ts +0 -7
  260. package/lib-types/components/typography/elm-inline-text.d.ts +0 -54
  261. package/lib-types/components/typography/elm-inline-text.stories.d.ts +0 -13
  262. package/lib-types/components/typography/elm-list.d.ts +0 -5
  263. package/lib-types/components/typography/elm-list.stories.d.ts +0 -8
  264. package/lib-types/components/typography/elm-paragraph.d.ts +0 -5
  265. package/lib-types/components/typography/elm-paragraph.stories.d.ts +0 -9
  266. package/lib-types/entry.dev.d.ts +0 -2
  267. package/lib-types/hooks/useDelayedSignal.d.ts +0 -6
  268. package/lib-types/hooks/useInView.d.ts +0 -6
  269. package/lib-types/index.d.ts +0 -27
  270. package/lib-types/root.d.ts +0 -2
  271. /package/{lib-types/components/table/index.d.ts → src/components/table/index.ts} +0 -0
package/lib/qwik20.js DELETED
@@ -1,89 +0,0 @@
1
- import { jsx, jsxs } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, Slot } from "@builder.io/qwik";
3
- import styles from "./qwik65.js";
4
- import textStyles from "./qwik30.js";
5
- import { ElmInlineIcon } from "./qwik9.js";
6
- const ElmInlineText = component$((props) => {
7
- const { bold = false, italic = false, underline = false, strikethrough = false, code = false, size = "1em" } = props;
8
- let vnode = props.text ? /* @__PURE__ */ jsx("span", {
9
- children: props.text
10
- }) : /* @__PURE__ */ jsx(Slot, {});
11
- if (props.kbd) {
12
- vnode = /* @__PURE__ */ jsx("kbd", {
13
- class: styles.kbd,
14
- children: vnode
15
- });
16
- }
17
- if (strikethrough) {
18
- vnode = /* @__PURE__ */ jsx("del", {
19
- children: vnode
20
- });
21
- }
22
- if (italic) {
23
- vnode = /* @__PURE__ */ jsx("em", {
24
- children: vnode
25
- });
26
- }
27
- if (underline) {
28
- vnode = /* @__PURE__ */ jsx("ins", {
29
- children: vnode
30
- });
31
- }
32
- if (bold) {
33
- vnode = /* @__PURE__ */ jsx("strong", {
34
- children: vnode
35
- });
36
- }
37
- if (code) {
38
- vnode = /* @__PURE__ */ jsx("code", {
39
- class: styles.code,
40
- children: vnode
41
- });
42
- }
43
- if (props.ruby) {
44
- vnode = /* @__PURE__ */ jsxs("ruby", {
45
- class: styles.text,
46
- children: [
47
- /* @__PURE__ */ jsx("span", {
48
- children: vnode
49
- }),
50
- /* @__PURE__ */ jsx("rt", {
51
- children: props.ruby
52
- })
53
- ]
54
- });
55
- }
56
- const wrappedVnode = /* @__PURE__ */ jsx("span", {
57
- class: [
58
- styles.text,
59
- textStyles.text
60
- ],
61
- style: {
62
- "--color": props.color,
63
- "--font-size": size,
64
- "--background-color": props.backgroundColor
65
- },
66
- children: vnode
67
- });
68
- if (props.href) {
69
- return /* @__PURE__ */ jsxs("a", {
70
- class: styles.link,
71
- href: props.href,
72
- style: {
73
- "--font-size": size
74
- },
75
- target: "_blank",
76
- rel: "noopener noreferrer",
77
- children: [
78
- props.favicon && /* @__PURE__ */ jsx(ElmInlineIcon, {
79
- src: props.favicon
80
- }),
81
- wrappedVnode
82
- ]
83
- });
84
- }
85
- return wrappedVnode;
86
- });
87
- export {
88
- ElmInlineText
89
- };
package/lib/qwik21.js DELETED
@@ -1,28 +0,0 @@
1
- import { jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, Slot } from "@builder.io/qwik";
3
- /* empty css */
4
- import textStyles from "./qwik30.js";
5
- const ElmList = component$(({ listStyle = "unordered" }) => {
6
- if (listStyle === "ordered") {
7
- return /* @__PURE__ */ jsx("ol", {
8
- class: [
9
- textStyles.text,
10
- "elmethis-list-common",
11
- "elmethis-numbered-list"
12
- ],
13
- children: /* @__PURE__ */ jsx(Slot, {})
14
- });
15
- } else {
16
- return /* @__PURE__ */ jsx("ul", {
17
- class: [
18
- textStyles.text,
19
- "elmethis-list-common",
20
- "elmethis-bulleted-list"
21
- ],
22
- children: /* @__PURE__ */ jsx(Slot, {})
23
- });
24
- }
25
- });
26
- export {
27
- ElmList
28
- };
package/lib/qwik22.js DELETED
@@ -1,24 +0,0 @@
1
- import { jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, Slot } from "@builder.io/qwik";
3
- import styles from "./qwik67.js";
4
- import textStyles from "./qwik30.js";
5
- import { useInView } from "./qwik68.js";
6
- const ElmParagraph = component$(({ color, backgroundColor }) => {
7
- const { ref, isVisible } = useInView();
8
- return /* @__PURE__ */ jsx("p", {
9
- ref,
10
- class: [
11
- styles.paragraph,
12
- textStyles.text
13
- ],
14
- style: {
15
- "--color": color,
16
- "--background-color": backgroundColor,
17
- "--opacity": isVisible.value ? 1 : 0
18
- },
19
- children: /* @__PURE__ */ jsx(Slot, {})
20
- });
21
- });
22
- export {
23
- ElmParagraph
24
- };
package/lib/qwik23.js DELETED
@@ -1,57 +0,0 @@
1
- import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, useComputed$, useContextProvider, createContextId, Slot } from "@builder.io/qwik";
3
- import styles from "./qwik69.js";
4
- import textStyles from "./qwik30.js";
5
- import { ElmInlineText } from "./qwik20.js";
6
- const HasRowHeaderContext = createContextId("HasRowHeaderContext");
7
- const ElmTable = component$((props) => {
8
- const { margin, caption, hasRowHeader = false } = props;
9
- const hasRowHeaderComputed = useComputed$(() => hasRowHeader);
10
- useContextProvider(HasRowHeaderContext, hasRowHeaderComputed);
11
- return /* @__PURE__ */ jsxs("table", {
12
- class: [
13
- styles.table,
14
- textStyles.text
15
- ],
16
- style: {
17
- "--margin-block": margin
18
- },
19
- children: [
20
- caption && /* @__PURE__ */ jsx("caption", {
21
- children: /* @__PURE__ */ jsxs("span", {
22
- class: styles["caption"],
23
- children: [
24
- /* @__PURE__ */ jsx("span", {
25
- class: styles.spacing
26
- }),
27
- /* @__PURE__ */ jsxs("span", {
28
- class: styles["caption-inner"],
29
- children: [
30
- /* @__PURE__ */ jsx("svg", {
31
- viewBox: "0 0 24 24",
32
- width: "1rem",
33
- height: "1rem",
34
- children: /* @__PURE__ */ jsx("path", {
35
- d: "M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M12,6A6,6 0 0,0 6,12A6,6 0 0,0 12,18A6,6 0 0,0 18,12A6,6 0 0,0 12,6M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8Z",
36
- fill: "#6987b8"
37
- })
38
- }),
39
- /* @__PURE__ */ jsx(ElmInlineText, {
40
- text: caption
41
- })
42
- ]
43
- }),
44
- /* @__PURE__ */ jsx("span", {
45
- class: styles.spacing
46
- })
47
- ]
48
- })
49
- }),
50
- /* @__PURE__ */ jsx(Slot, {})
51
- ]
52
- });
53
- });
54
- export {
55
- ElmTable,
56
- HasRowHeaderContext
57
- };
package/lib/qwik24.js DELETED
@@ -1,15 +0,0 @@
1
- import { jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, useContextProvider, createContextId, Slot } from "@builder.io/qwik";
3
- import styles from "./qwik70.js";
4
- const HasHeaderContext = createContextId("HasHeaderContext");
5
- const ElmTableHeader = component$(() => {
6
- useContextProvider(HasHeaderContext, true);
7
- return /* @__PURE__ */ jsx("thead", {
8
- class: styles.thead,
9
- children: /* @__PURE__ */ jsx(Slot, {})
10
- });
11
- });
12
- export {
13
- ElmTableHeader,
14
- HasHeaderContext
15
- };
package/lib/qwik25.js DELETED
@@ -1,12 +0,0 @@
1
- import { jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, useContextProvider, Slot } from "@builder.io/qwik";
3
- import { HasHeaderContext } from "./qwik24.js";
4
- const ElmTableBody = component$(() => {
5
- useContextProvider(HasHeaderContext, false);
6
- return /* @__PURE__ */ jsx("tbody", {
7
- children: /* @__PURE__ */ jsx(Slot, {})
8
- });
9
- });
10
- export {
11
- ElmTableBody
12
- };
package/lib/qwik26.js DELETED
@@ -1,17 +0,0 @@
1
- import { jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, useContext, Slot } from "@builder.io/qwik";
3
- import styles from "./qwik71.js";
4
- import { HasRowHeaderContext } from "./qwik23.js";
5
- const ElmTableRow = component$(() => {
6
- const hasRowHeader = useContext(HasRowHeaderContext);
7
- return /* @__PURE__ */ jsx("tr", {
8
- class: [
9
- styles.tr,
10
- hasRowHeader.value && styles["has-row-header"]
11
- ],
12
- children: /* @__PURE__ */ jsx(Slot, {})
13
- });
14
- });
15
- export {
16
- ElmTableRow
17
- };
package/lib/qwik27.js DELETED
@@ -1,27 +0,0 @@
1
- import { jsx, Fragment } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, useContext, Slot } from "@builder.io/qwik";
3
- import styles from "./qwik72.js";
4
- import { HasHeaderContext } from "./qwik24.js";
5
- const ElmTableCell = component$((props) => {
6
- const { hasHeader = false, text } = props;
7
- const hasHeaderInjected = useContext(HasHeaderContext, false);
8
- const isHeader = hasHeader || hasHeaderInjected;
9
- return /* @__PURE__ */ jsx(Fragment, {
10
- children: isHeader ? /* @__PURE__ */ jsx("th", {
11
- class: [
12
- styles.common,
13
- styles.th
14
- ],
15
- children: text ? text : /* @__PURE__ */ jsx(Slot, {})
16
- }) : /* @__PURE__ */ jsx("td", {
17
- class: [
18
- styles.common,
19
- styles.td
20
- ],
21
- children: text ? text : /* @__PURE__ */ jsx(Slot, {})
22
- })
23
- });
24
- });
25
- export {
26
- ElmTableCell
27
- };
package/lib/qwik28.js DELETED
@@ -1,193 +0,0 @@
1
- import { jsx, jsxs } from "@builder.io/qwik/jsx-runtime";
2
- import { component$ } from "@builder.io/qwik";
3
- import { kebabCase } from "lodash-es";
4
- import styles from "./qwik73.js";
5
- import { ElmInlineText } from "./qwik20.js";
6
- import { ElmKatex } from "./qwik3.js";
7
- import { ElmInlineIcon } from "./qwik9.js";
8
- import { ElmHeading } from "./qwik19.js";
9
- import { ElmParagraph } from "./qwik22.js";
10
- import { ElmList } from "./qwik21.js";
11
- import { ElmBlockQuote } from "./qwik15.js";
12
- import { ElmCallout } from "./qwik16.js";
13
- import { ElmDivider } from "./qwik17.js";
14
- import { ElmToggle } from "./qwik5.js";
15
- import { ElmBookmark } from "./qwik14.js";
16
- import { ElmFile } from "./qwik13.js";
17
- import { ElmBlockImage } from "./qwik12.js";
18
- import { ElmCodeBlock } from "./qwik2.js";
19
- import { ElmTableCell } from "./qwik27.js";
20
- import { ElmTableRow } from "./qwik26.js";
21
- import { ElmTable } from "./qwik23.js";
22
- import { ElmTableHeader } from "./qwik24.js";
23
- import { ElmTableBody } from "./qwik25.js";
24
- const convertInlineComponentsToPlainText = (inlineComponents) => {
25
- return inlineComponents.map((component) => {
26
- if (component.type === "Text") {
27
- return component.props.text;
28
- } else {
29
- return "";
30
- }
31
- }).join("");
32
- };
33
- const ElmJarkup = component$((props) => {
34
- const render = (jsonComponents) => {
35
- return jsonComponents.map((component, index) => {
36
- const key = component.id || index;
37
- switch (component.type) {
38
- case "Text": {
39
- const { props: p } = component;
40
- if (p.katex) {
41
- return /* @__PURE__ */ jsx(ElmKatex, {
42
- expression: p.text,
43
- block: false
44
- }, key);
45
- }
46
- return /* @__PURE__ */ jsx(ElmInlineText, {
47
- text: p.text,
48
- color: p.color,
49
- backgroundColor: p.backgroundColor,
50
- bold: p.bold,
51
- italic: p.italic,
52
- underline: p.underline,
53
- strikethrough: p.strikethrough,
54
- code: p.code,
55
- ruby: p.ruby,
56
- href: p.href,
57
- favicon: p.favicon
58
- }, key);
59
- }
60
- case "Icon":
61
- return /* @__PURE__ */ jsx(ElmInlineIcon, {
62
- src: component.props.src,
63
- alt: component.props.alt
64
- }, key);
65
- case "Heading":
66
- return /* @__PURE__ */ jsx(ElmHeading, {
67
- level: component.props.level,
68
- id: kebabCase(convertInlineComponentsToPlainText(component.slots.default)),
69
- children: render(component.slots.default)
70
- }, key);
71
- case "Paragraph":
72
- return /* @__PURE__ */ jsx(ElmParagraph, {
73
- color: component.props?.color,
74
- backgroundColor: component.props?.backgroundColor,
75
- children: render(component.slots.default)
76
- }, key);
77
- case "ListItem":
78
- return /* @__PURE__ */ jsx("li", {
79
- children: render(component.slots.default)
80
- }, key);
81
- case "List":
82
- return /* @__PURE__ */ jsx(ElmList, {
83
- listStyle: component.props?.listStyle === "unordered" ? "unordered" : "ordered",
84
- children: render(component.slots.default)
85
- }, key);
86
- case "BlockQuote":
87
- return /* @__PURE__ */ jsx(ElmBlockQuote, {
88
- cite: component.props?.cite,
89
- children: render(component.slots.default)
90
- }, key);
91
- case "Callout":
92
- return /* @__PURE__ */ jsx(ElmCallout, {
93
- type: component.props?.type,
94
- children: render(component.slots.default)
95
- }, key);
96
- case "Divider":
97
- return /* @__PURE__ */ jsx(ElmDivider, {}, key);
98
- case "Toggle":
99
- return /* @__PURE__ */ jsxs(ElmToggle, {
100
- children: [
101
- /* @__PURE__ */ jsx("div", {
102
- "q:slot": "summary",
103
- children: render(component.slots.summary)
104
- }),
105
- render(component.slots.default)
106
- ]
107
- }, key);
108
- case "Bookmark":
109
- return /* @__PURE__ */ jsx(ElmBookmark, {
110
- url: component.props.url,
111
- title: component.props.title,
112
- description: component.props.description,
113
- image: component.props.image
114
- }, key);
115
- case "File":
116
- return /* @__PURE__ */ jsx(ElmFile, {
117
- src: component.props.src,
118
- name: component.props.name
119
- }, key);
120
- case "Image":
121
- return /* @__PURE__ */ jsx(ElmBlockImage, {
122
- src: component.props.src,
123
- alt: component.props.alt,
124
- enableModal: true
125
- }, key);
126
- case "CodeBlock":
127
- return /* @__PURE__ */ jsx(ElmCodeBlock, {
128
- code: component.props.code,
129
- language: component.props.language,
130
- children: component.slots?.default && render(component.slots.default)
131
- }, key);
132
- case "Katex":
133
- return /* @__PURE__ */ jsx(ElmKatex, {
134
- expression: component.props.expression,
135
- block: true
136
- }, key);
137
- case "Table":
138
- return /* @__PURE__ */ jsxs(ElmTable, {
139
- caption: component.props?.caption,
140
- hasRowHeader: component.props?.hasRowHeader,
141
- children: [
142
- component.slots.header && /* @__PURE__ */ jsx(ElmTableHeader, {
143
- children: render(component.slots.header)
144
- }),
145
- /* @__PURE__ */ jsx(ElmTableBody, {
146
- children: render(component.slots.body)
147
- })
148
- ]
149
- }, key);
150
- case "TableRow":
151
- return /* @__PURE__ */ jsx(ElmTableRow, {
152
- children: render(component.slots.default)
153
- }, key);
154
- case "TableCell":
155
- return /* @__PURE__ */ jsx(ElmTableCell, {
156
- children: render(component.slots.default)
157
- }, key);
158
- case "ColumnList":
159
- return /* @__PURE__ */ jsx("div", {
160
- class: styles["column-list"],
161
- children: render(component.slots.default)
162
- }, key);
163
- case "Column":
164
- return /* @__PURE__ */ jsx("div", {
165
- class: styles.column,
166
- style: {
167
- "--width-ratio": component.props?.widthRatio || 1,
168
- width: component.props?.widthRatio ? `${component.props.widthRatio * 100}%` : void 0
169
- },
170
- children: render(component.slots.default)
171
- }, key);
172
- default:
173
- return /* @__PURE__ */ jsxs("div", {
174
- style: {
175
- color: "red",
176
- border: "1px solid red"
177
- },
178
- children: [
179
- "Unsupported component type: ",
180
- component.type
181
- ]
182
- }, key);
183
- }
184
- });
185
- };
186
- return /* @__PURE__ */ jsx("div", {
187
- class: styles["jarkup-body"],
188
- children: render(props.jsonComponents)
189
- });
190
- });
191
- export {
192
- ElmJarkup
193
- };
package/lib/qwik29.js DELETED
@@ -1,17 +0,0 @@
1
- const caption = "_caption_f7ep7_27";
2
- const divider = "_divider_f7ep7_49";
3
- const code = "_code_f7ep7_1";
4
- const styles = {
5
- "code-block": "_code-block_f7ep7_1",
6
- "language-icon": "_language-icon_f7ep7_22",
7
- caption,
8
- "copy-icon": "_copy-icon_f7ep7_33",
9
- divider,
10
- code
11
- };
12
- export {
13
- caption,
14
- code,
15
- styles as default,
16
- divider
17
- };
package/lib/qwik3.js DELETED
@@ -1,17 +0,0 @@
1
- import { jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, useComputed$ } from "@builder.io/qwik";
3
- import textStyles from "./qwik30.js";
4
- import { renderToString } from "katex";
5
- const ElmKatex = component$(({ expression, block = false }) => {
6
- const html = useComputed$(() => renderToString(expression, {
7
- displayMode: block,
8
- output: "mathml"
9
- }));
10
- return /* @__PURE__ */ jsx("div", {
11
- class: textStyles.text,
12
- dangerouslySetInnerHTML: html.value
13
- });
14
- });
15
- export {
16
- ElmKatex
17
- };
package/lib/qwik30.js DELETED
@@ -1,8 +0,0 @@
1
- const text = "_text_zryur_1";
2
- const textStyles = {
3
- text
4
- };
5
- export {
6
- textStyles as default,
7
- text
8
- };
package/lib/qwik33.js DELETED
@@ -1,32 +0,0 @@
1
- const toggle = "_toggle_1nxqa_1";
2
- const summary = "_summary_1nxqa_14";
3
- const content = "_content_1nxqa_60";
4
- const footer = "_footer_1nxqa_80";
5
- const styles = {
6
- toggle,
7
- "toggle-closed": "_toggle-closed_1nxqa_7",
8
- "toggle-open": "_toggle-open_1nxqa_10",
9
- summary,
10
- "summary-open": "_summary-open_1nxqa_29",
11
- "summary-closed": "_summary-closed_1nxqa_33",
12
- "chevron-icon": "_chevron-icon_1nxqa_37",
13
- "chevron-icon-open": "_chevron-icon-open_1nxqa_40",
14
- "chevron-icon-closed": "_chevron-icon-closed_1nxqa_43",
15
- "plus-icon": "_plus-icon_1nxqa_47",
16
- "plus-icon-open": "_plus-icon-open_1nxqa_53",
17
- "plus-icon-closed": "_plus-icon-closed_1nxqa_56",
18
- content,
19
- "content-open": "_content-open_1nxqa_73",
20
- "content-closed": "_content-closed_1nxqa_76",
21
- footer,
22
- "footer-line": "_footer-line_1nxqa_99",
23
- "footer-cross-icon": "_footer-cross-icon_1nxqa_106",
24
- "footer-chevron-icon": "_footer-chevron-icon_1nxqa_109"
25
- };
26
- export {
27
- content,
28
- styles as default,
29
- footer,
30
- summary,
31
- toggle
32
- };
package/lib/qwik34.js DELETED
@@ -1,6 +0,0 @@
1
- const styles = {
2
- "block-fallback": "_block-fallback_rt986_1"
3
- };
4
- export {
5
- styles as default
6
- };
package/lib/qwik35.js DELETED
@@ -1,6 +0,0 @@
1
- const styles = {
2
- "rectangle-wave": "_rectangle-wave_hej9g_17"
3
- };
4
- export {
5
- styles as default
6
- };
package/lib/qwik36.js DELETED
@@ -1,11 +0,0 @@
1
- const wrapper = "_wrapper_1yktj_12";
2
- const dot = "_dot_1yktj_22";
3
- const styles = {
4
- wrapper,
5
- dot
6
- };
7
- export {
8
- styles as default,
9
- dot,
10
- wrapper
11
- };
package/lib/qwik37.js DELETED
@@ -1,8 +0,0 @@
1
- const icon = "_icon_19g82_1";
2
- const styles = {
3
- icon
4
- };
5
- export {
6
- styles as default,
7
- icon
8
- };
package/lib/qwik38.js DELETED
@@ -1,18 +0,0 @@
1
- import { jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$ } from "@builder.io/qwik";
3
- const Rust = component$(({ size = 24, ...props }) => {
4
- return /* @__PURE__ */ jsx("svg", {
5
- xmlns: "http://www.w3.org/2000/svg",
6
- viewBox: "0 0 128 128",
7
- fill: "#a84f33",
8
- width: size,
9
- height: size,
10
- ...props,
11
- children: /* @__PURE__ */ jsx("path", {
12
- d: "M62.96.242c-.232.135-1.203 1.528-2.16 3.097c-2.4 3.94-2.426 3.942-5.65.55c-2.098-2.208-2.605-2.612-3.28-2.607c-.44.002-.995.152-1.235.332s-.916 1.612-1.504 3.183c-1.346 3.6-1.41 3.715-2.156 3.86c-.46.086-1.343-.407-3.463-1.929c-1.565-1.125-3.1-2.045-3.411-2.045c-1.291 0-1.655.706-2.27 4.4c-.78 4.697-.754 4.681-4.988 2.758c-1.71-.776-3.33-1.41-3.603-1.41s-.792.293-1.15.652c-.652.652-.653.655-.475 4.246l.178 3.595l-.68.364c-.602.322-1.017.283-3.684-.348c-3.48-.822-4.216-.8-4.92.15l-.516.693l.692 2.964c.38 1.63.745 3.2.814 3.487c.067.287-.05.746-.26 1.02c-.348.448-.717.49-3.94.44c-5.452-.086-5.761.382-3.51 5.3c.718 1.56 1.305 2.98 1.305 3.15c0 .898-.717 1.224-3.794 1.727c-1.722.28-3.218.51-3.326.51c-.107 0-.43.235-.717.522c-.937.936-.671 1.816 1.453 4.814c2.646 3.735 2.642 3.75-1.73 5.421c-4.971 1.902-5.072 2.37-1.287 5.96c3.525 3.344 3.53 3.295-.461 5.804C.208 62.8.162 62.846.085 63.876c-.093 1.253-.071 1.275 3.538 3.48c3.57 2.18 3.57 2.246.067 5.56C-.078 76.48.038 77 5.013 78.877c4.347 1.64 4.353 1.66 1.702 5.394c-1.502 2.117-1.981 3-1.981 3.653c0 1.223.637 1.535 4.44 2.174c3.206.54 3.92.857 3.92 1.741c0 .182-.588 1.612-1.307 3.177c-2.236 4.87-1.981 5.275 3.31 5.275c4.93 0 4.799-.15 3.737 4.294c-.8 3.35-.813 3.992-.088 4.715c.554.556 1.6.494 4.87-.289c2.499-.596 2.937-.637 3.516-.328l.66.354l-.177 3.594c-.178 3.593-.177 3.595.475 4.248c.358.36.884.652 1.165.652s1.903-.63 3.604-1.404c4.22-1.916 4.194-1.932 4.973 2.75c.617 3.711.977 4.4 2.294 4.4c.327 0 1.83-.88 3.34-1.958c2.654-1.893 3.342-2.19 4.049-1.74c.182.115.89 1.67 1.572 3.455c1.003 2.625 1.37 3.31 1.929 3.576c1.062.51 1.72.1 4.218-2.62c3.016-3.286 3.14-3.27 5.602.72c2.72 4.406 3.424 4.396 6.212-.089c2.402-3.864 2.374-3.862 5.621-.47c2.157 2.25 2.616 2.61 3.343 2.61c.464 0 1.019-.175 1.23-.388c.214-.213.92-1.786 1.568-3.496c.649-1.71 1.321-3.2 1.495-3.31c.687-.436 1.398-.13 4.048 1.752c1.56 1.108 3.028 1.96 3.377 1.96c1.296 0 1.764-.92 2.302-4.535c.46-3.082.554-3.378 1.16-3.685c.596-.302.954-.2 3.75 1.07c1.701.77 3.323 1.402 3.604 1.402s.816-.302 1.184-.672l.672-.67l-.184-3.448c-.177-3.29-.16-3.468.364-3.943c.54-.488.596-.486 3.615.204c3.656.835 4.338.857 5.025.17c.671-.67.664-.818-.254-4.69c-1.03-4.346-1.168-4.19 3.78-4.19c3.374 0 3.75-.049 4.18-.523c.718-.793.547-1.702-.896-4.779c-.729-1.55-1.32-2.96-1.315-3.135c.024-.914.743-1.227 4.065-1.767c2.033-.329 3.553-.71 3.829-.96c.923-.833.584-1.918-1.523-4.873c-2.642-3.703-2.63-3.738 1.599-5.297c5.064-1.866 5.209-2.488 1.419-6.09c-3.51-3.335-3.512-3.317.333-5.677c4.648-2.853 4.655-3.496.082-6.335c-3.933-2.44-3.93-2.406-.405-5.753c3.78-3.593 3.678-4.063-1.295-5.965c-4.388-1.679-4.402-1.72-1.735-5.38c1.588-2.18 1.982-2.903 1.982-3.65c0-1.306-.586-1.598-4.436-2.22c-3.216-.52-3.924-.835-3.924-1.75c0-.174.588-1.574 1.307-3.113c1.406-3.013 1.604-4.22.808-4.94c-.428-.387-1-.443-4.067-.392c-3.208.054-3.618.008-4.063-.439c-.486-.488-.48-.557.278-3.725c.931-3.88.935-3.975.17-4.694c-.777-.73-1.262-.718-4.826.121c-2.597.612-3.027.653-3.617.337l-.67-.36l.185-3.582l.186-3.58l-.67-.67c-.369-.37-.891-.67-1.163-.67c-.27 0-1.884.64-3.583 1.421c-2.838 1.306-3.143 1.393-3.757 1.072c-.612-.32-.714-.637-1.237-3.829c-.603-3.693-.977-4.412-2.288-4.412c-.311 0-1.853.925-3.426 2.055c-2.584 1.856-2.93 2.032-3.574 1.807c-.533-.186-.843-.59-1.221-1.599c-.28-.742-.817-2.172-1.194-3.177c-.762-2.028-1.187-2.482-2.328-2.482c-.637 0-1.213.458-3.28 2.604c-3.25 3.375-3.261 3.374-5.65-.545C66.073 1.78 65.075.382 64.81.24c-.597-.32-1.3-.32-1.85.002m2.96 11.798c2.83 2.014 1.326 6.75-2.144 6.75c-3.368 0-5.064-4.057-2.66-6.36c1.358-1.3 3.304-1.459 4.805-.39m-3.558 12.507c1.855.705 2.616.282 6.852-3.8l3.182-3.07l1.347.18c4.225.56 12.627 4.25 17.455 7.666c4.436 3.14 10.332 9.534 12.845 13.93l.537.942l-2.38 5.364c-1.31 2.95-2.382 5.673-2.382 6.053c0 .878.576 2.267 1.13 2.726c.234.195 2.457 1.265 4.939 2.378l4.51 2.025l.178 1.148c.23 1.495.26 5.167.052 6.21l-.163.816h-2.575c-2.987 0-2.756-.267-2.918 3.396c-.118 2.656-.76 4.124-2.22 5.075c-2.377 1.551-6.304 1.27-7.97-.57c-.255-.284-.752-1.705-1.105-3.16c-1.03-4.254-2.413-6.64-5.193-8.965c-.878-.733-1.595-1.418-1.595-1.522c0-.102.965-.915 2.145-1.803c4.298-3.24 6.77-7.012 7.04-10.747c.519-7.126-5.158-13.767-13.602-15.92c-2.002-.51-2.857-.526-27.624-.526c-14.057 0-25.56-.092-25.56-.204c0-.263 3.125-3.295 4.965-4.816c5.054-4.178 11.618-7.465 18.417-9.22l2.35-.61l3.34 3.387c1.839 1.863 3.64 3.5 4.003 3.637M20.3 46.34c1.539 1.008 2.17 3.54 1.26 5.062c-1.405 2.356-4.966 2.455-6.373.178c-2.046-3.309 1.895-7.349 5.113-5.24m90.672.13c4.026 2.454.906 8.493-3.404 6.586c-2.877-1.273-2.97-5.206-.155-6.64c1.174-.6 2.523-.579 3.56.053M32.163 61.5v15.02h-13.28l-.526-2.285c-1.036-4.5-1.472-9.156-1.211-12.969l.182-2.679l4.565-2.047c2.864-1.283 4.706-2.262 4.943-2.625c1.038-1.584.94-2.715-.518-5.933l-.68-1.502h6.523V61.5M70.39 47.132c2.843.74 4.345 2.245 4.349 4.355c.002 1.55-.765 2.52-2.67 3.38c-1.348.61-1.562.625-10.063.708l-8.686.084v-8.92h7.782c6.078 0 8.112.086 9.288.393m-2.934 21.554c1.41.392 3.076 1.616 3.93 2.888c.898 1.337 1.423 3.076 2.667 8.836c1.05 4.87 1.727 6.46 3.62 8.532c2.345 2.566 1.8 2.466 13.514 2.466c5.61 0 10.198.09 10.198.2c0 .197-3.863 4.764-4.03 4.764c-.048 0-2.066-.422-4.484-.939c-6.829-1.458-7.075-1.287-8.642 6.032l-1.008 4.702l-.91.448c-1.518.75-6.453 2.292-9.01 2.82c-4.228.87-8.828 1.162-12.871.821c-6.893-.585-16.02-3.259-16.377-4.8c-.075-.327-.535-2.443-1.018-4.704c-.485-2.26-1.074-4.404-1.31-4.764c-1.13-1.724-2.318-1.83-7.547-.674c-1.98.44-3.708.796-3.84.796c-.248 0-3.923-4.249-3.923-4.535c0-.09 8.728-.194 19.396-.23l19.395-.066l.07-6.89c.05-4.865-.018-6.997-.23-7.25c-.234-.284-1.485-.358-6.011-.358H53.32v-8.36l6.597.001c3.626.002 7.02.12 7.539.264M37.57 100.02c3.084 1.88 1.605 6.804-2.043 6.8c-3.74 0-5.127-4.88-1.94-6.826c1.055-.643 2.908-.63 3.983.026m56.48.206c1.512 1.108 2.015 3.413 1.079 4.95c-2.46 4.034-8.612.827-6.557-3.419c1.01-2.085 3.695-2.837 5.478-1.53"
13
- })
14
- });
15
- });
16
- export {
17
- Rust
18
- };
package/lib/qwik39.js DELETED
@@ -1,24 +0,0 @@
1
- import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$ } from "@builder.io/qwik";
3
- const Javascript = component$(({ size = 24, ...props }) => {
4
- return /* @__PURE__ */ jsxs("svg", {
5
- xmlns: "http://www.w3.org/2000/svg",
6
- width: size,
7
- height: size,
8
- viewBox: "0 0 128 128",
9
- ...props,
10
- children: [
11
- /* @__PURE__ */ jsx("path", {
12
- fill: "#f0db4f",
13
- d: "M1.408 1.408h125.184v125.185H1.408z"
14
- }),
15
- /* @__PURE__ */ jsx("path", {
16
- fill: "#323330",
17
- d: "M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981c-3.832-1.761-8.104-3.022-9.377-5.926c-.452-1.69-.512-2.642-.226-3.665c.821-3.32 4.784-4.355 7.925-3.403c2.023.678 3.938 2.237 5.093 4.724c5.402-3.498 5.391-3.475 9.163-5.879c-1.381-2.141-2.118-3.129-3.022-4.045c-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235c-5.926 6.724-4.236 18.492 2.975 23.335c7.104 5.332 17.54 6.545 18.873 11.531c1.297 6.104-4.486 8.08-10.234 7.378c-4.236-.881-6.592-3.034-9.139-6.949c-4.688 2.713-4.688 2.713-9.508 5.485c1.143 2.499 2.344 3.63 4.26 5.795c9.068 9.198 31.76 8.746 35.83-5.176c.165-.478 1.261-3.666.38-8.581M69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149c-1.713 3.558-6.152 3.117-8.175 2.427c-2.059-1.012-3.106-2.451-4.319-4.485c-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901c4.462 2.678 10.459 3.499 16.731 2.059c4.082-1.189 7.604-3.652 9.448-7.401c2.666-4.915 2.094-10.864 2.07-17.444c.06-10.735.001-21.468.001-32.237"
18
- })
19
- ]
20
- });
21
- });
22
- export {
23
- Javascript
24
- };
package/lib/qwik4.js DELETED
@@ -1,33 +0,0 @@
1
- import { jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, useSignal, useTask$ } from "@builder.io/qwik";
3
- /* empty css */
4
- const ElmShikiHighlighter = component$(({ code, language = "txt" }) => {
5
- const rawHtml = useSignal("");
6
- useTask$(async ({ track }) => {
7
- const currentCode = track(() => code);
8
- const currentLang = track(() => language);
9
- const { getHighlighterSingleton } = await import("./qwik31.js");
10
- const highlighter = await getHighlighterSingleton();
11
- try {
12
- rawHtml.value = highlighter.codeToHtml(currentCode, {
13
- lang: currentLang,
14
- themes: {
15
- dark: "vitesse-dark",
16
- light: "vitesse-light"
17
- },
18
- colorReplacements: {
19
- "#ffffff": "transparent",
20
- "#121212": "transparent"
21
- }
22
- });
23
- } catch {
24
- rawHtml.value = `<pre>${currentCode.replace(/</g, "&lt;")}</pre>`;
25
- }
26
- });
27
- return /* @__PURE__ */ jsx("pre", {
28
- dangerouslySetInnerHTML: rawHtml.value
29
- });
30
- });
31
- export {
32
- ElmShikiHighlighter
33
- };