@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.
- package/.prettierignore +6 -0
- package/.storybook/main.ts +23 -0
- package/.storybook/preview-head.html +4 -0
- package/.storybook/preview.tsx +51 -0
- package/.storybook/sb.scss +13 -0
- package/.storybook/tsconfig.json +24 -0
- package/eslint.config.js +79 -0
- package/package.json +5 -8
- package/src/assets/bg1.webp +0 -0
- package/src/assets/bg2.webp +0 -0
- package/src/assets/images/2.svg +4 -0
- package/src/assets/images/lamdscape.svg +4 -0
- package/src/assets/images/portrait.svg +4 -0
- package/src/assets/images/square.svg +4 -0
- package/src/assets/vite.svg +1 -0
- package/src/assets/vue.svg +1 -0
- package/src/components/code/elm-code-block.module.scss +67 -0
- package/src/components/code/elm-code-block.stories.tsx +44 -0
- package/src/components/code/elm-code-block.tsx +95 -0
- package/src/components/code/elm-katex.stories.tsx +28 -0
- package/src/components/code/elm-katex.tsx +34 -0
- package/src/components/code/elm-shiki-highlighter.global.scss +18 -0
- package/src/components/code/elm-shiki-highlighter.stories.tsx +21 -0
- package/src/components/code/elm-shiki-highlighter.tsx +44 -0
- package/src/components/code/seed/main.rs +24 -0
- package/{lib/qwik31.js → src/components/code/shikiInstance.ts} +8 -11
- package/src/components/containments/elm-toggle.module.scss +132 -0
- package/src/components/containments/elm-toggle.stories.tsx +34 -0
- package/src/components/containments/elm-toggle.tsx +106 -0
- package/src/components/fallback/elm-block-fallback.module.scss +8 -0
- package/src/components/fallback/elm-block-fallback.stories.tsx +14 -0
- package/src/components/fallback/elm-block-fallback.tsx +20 -0
- package/src/components/fallback/elm-rectangle-wave.module.scss +42 -0
- package/src/components/fallback/elm-rectangle-wave.stories.tsx +28 -0
- package/src/components/fallback/elm-rectangle-wave.tsx +11 -0
- package/src/components/icon/elm-dot-loading-icon.module.scss +53 -0
- package/src/components/icon/elm-dot-loading-icon.stories.tsx +15 -0
- package/src/components/icon/elm-dot-loading-icon.tsx +35 -0
- package/src/components/icon/elm-inline-icon.module.scss +21 -0
- package/src/components/icon/elm-inline-icon.stories.tsx +16 -0
- package/src/components/icon/elm-inline-icon.tsx +25 -0
- package/src/components/icon/elm-language-icon.stories.tsx +22 -0
- package/src/components/icon/elm-language-icon.tsx +167 -0
- package/src/components/icon/elm-mdi-icon.module.scss +8 -0
- package/src/components/icon/elm-mdi-icon.stories.tsx +25 -0
- package/src/components/icon/elm-mdi-icon.tsx +34 -0
- package/src/components/icon/languages/bash.module.scss +6 -0
- package/src/components/icon/languages/bash.tsx +27 -0
- package/src/components/icon/languages/c-plus-plus.tsx +33 -0
- package/src/components/icon/languages/c-sharp.tsx +29 -0
- package/src/components/icon/languages/c.tsx +27 -0
- package/src/components/icon/languages/css.tsx +21 -0
- package/src/components/icon/languages/go.tsx +22 -0
- package/src/components/icon/languages/html.tsx +30 -0
- package/src/components/icon/languages/java.tsx +37 -0
- package/src/components/icon/languages/javascript.tsx +22 -0
- package/src/components/icon/languages/json.tsx +53 -0
- package/src/components/icon/languages/kotlin.tsx +36 -0
- package/src/components/icon/languages/language-interface.ts +4 -0
- package/src/components/icon/languages/lua.tsx +29 -0
- package/src/components/icon/languages/npm.tsx +25 -0
- package/src/components/icon/languages/python.tsx +67 -0
- package/src/components/icon/languages/rust.tsx +19 -0
- package/src/components/icon/languages/sql.tsx +21 -0
- package/src/components/icon/languages/terraform.tsx +31 -0
- package/src/components/icon/languages/typescript.tsx +22 -0
- package/src/components/media/elm-block-image.module.scss +68 -0
- package/src/components/media/elm-block-image.stories.tsx +79 -0
- package/src/components/media/elm-block-image.tsx +110 -0
- package/src/components/media/elm-file.module.scss +43 -0
- package/src/components/media/elm-file.stories.tsx +27 -0
- package/src/components/media/elm-file.tsx +75 -0
- package/src/components/navigation/elm-bookmark.module.scss +100 -0
- package/src/components/navigation/elm-bookmark.stories.tsx +87 -0
- package/src/components/navigation/elm-bookmark.tsx +72 -0
- package/src/components/others/elm-jarkup.module.scss +26 -0
- package/src/components/others/elm-jarkup.stories.tsx +18 -0
- package/src/components/others/elm-jarkup.tsx +267 -0
- package/src/components/table/elm-table-body.tsx +14 -0
- package/src/components/table/elm-table-cell.module.scss +41 -0
- package/src/components/table/elm-table-cell.tsx +33 -0
- package/src/components/table/elm-table-header.module.scss +8 -0
- package/src/components/table/elm-table-header.tsx +21 -0
- package/src/components/table/elm-table-row.module.scss +28 -0
- package/src/components/table/elm-table-row.tsx +15 -0
- package/src/components/table/elm-table.module.scss +29 -0
- package/src/components/table/elm-table.stories.tsx +67 -0
- package/src/components/table/elm-table.tsx +63 -0
- package/src/components/typography/elm-block-quote.module.scss +29 -0
- package/src/components/typography/elm-block-quote.stories.tsx +22 -0
- package/src/components/typography/elm-block-quote.tsx +34 -0
- package/src/components/typography/elm-callout.module.scss +36 -0
- package/src/components/typography/elm-callout.stories.tsx +47 -0
- package/src/components/typography/elm-callout.tsx +52 -0
- package/src/components/typography/elm-divider.module.scss +6 -0
- package/src/components/typography/elm-divider.stories.tsx +14 -0
- package/src/components/typography/elm-divider.tsx +14 -0
- package/src/components/typography/elm-fragment-identifier.module.scss +28 -0
- package/src/components/typography/elm-fragment-identifier.stories.tsx +14 -0
- package/src/components/typography/elm-fragment-identifier.tsx +31 -0
- package/src/components/typography/elm-heading.module.scss +120 -0
- package/src/components/typography/elm-heading.stories.tsx +42 -0
- package/src/components/typography/elm-heading.tsx +40 -0
- package/src/components/typography/elm-inline-text.module.scss +114 -0
- package/src/components/typography/elm-inline-text.stories.tsx +70 -0
- package/src/components/typography/elm-inline-text.tsx +147 -0
- package/src/components/typography/elm-list.global.scss +66 -0
- package/src/components/typography/elm-list.stories.tsx +61 -0
- package/src/components/typography/elm-list.tsx +39 -0
- package/src/components/typography/elm-paragraph.module.scss +21 -0
- package/src/components/typography/elm-paragraph.stories.tsx +47 -0
- package/src/components/typography/elm-paragraph.tsx +31 -0
- package/src/entry.dev.tsx +17 -0
- package/{lib-types/entry.ssr.d.ts → src/entry.ssr.tsx} +9 -2
- package/src/global.d.ts +13 -0
- package/src/hooks/useDelayedSignal.ts +27 -0
- package/src/hooks/useInView.tsx +23 -0
- package/src/index.ts +113 -0
- package/src/root.tsx +13 -0
- package/src/styles/text.module.scss +17 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +21 -0
- package/vite.config.ts +36 -0
- package/lib/assets/6FDiDjPb-qwik.css +0 -955
- package/lib/qwik.js +0 -56
- package/lib/qwik10.js +0 -108
- package/lib/qwik11.js +0 -25
- package/lib/qwik12.js +0 -87
- package/lib/qwik13.js +0 -62
- package/lib/qwik14.js +0 -62
- package/lib/qwik15.js +0 -44
- package/lib/qwik16.js +0 -58
- package/lib/qwik17.js +0 -14
- package/lib/qwik18.js +0 -24
- package/lib/qwik19.js +0 -41
- package/lib/qwik2.js +0 -68
- package/lib/qwik20.js +0 -89
- package/lib/qwik21.js +0 -28
- package/lib/qwik22.js +0 -24
- package/lib/qwik23.js +0 -57
- package/lib/qwik24.js +0 -15
- package/lib/qwik25.js +0 -12
- package/lib/qwik26.js +0 -17
- package/lib/qwik27.js +0 -27
- package/lib/qwik28.js +0 -193
- package/lib/qwik29.js +0 -17
- package/lib/qwik3.js +0 -17
- package/lib/qwik30.js +0 -8
- package/lib/qwik33.js +0 -32
- package/lib/qwik34.js +0 -6
- package/lib/qwik35.js +0 -6
- package/lib/qwik36.js +0 -11
- package/lib/qwik37.js +0 -8
- package/lib/qwik38.js +0 -18
- package/lib/qwik39.js +0 -24
- package/lib/qwik4.js +0 -33
- package/lib/qwik40.js +0 -24
- package/lib/qwik41.js +0 -29
- package/lib/qwik42.js +0 -31
- package/lib/qwik43.js +0 -32
- package/lib/qwik44.js +0 -18
- package/lib/qwik45.js +0 -24
- package/lib/qwik46.js +0 -36
- package/lib/qwik47.js +0 -45
- package/lib/qwik48.js +0 -27
- package/lib/qwik49.js +0 -89
- package/lib/qwik5.js +0 -123
- package/lib/qwik50.js +0 -18
- package/lib/qwik51.js +0 -64
- package/lib/qwik52.js +0 -28
- package/lib/qwik53.js +0 -28
- package/lib/qwik54.js +0 -32
- package/lib/qwik55.js +0 -28
- package/lib/qwik56.js +0 -8
- package/lib/qwik57.js +0 -15
- package/lib/qwik58.js +0 -10
- package/lib/qwik59.js +0 -26
- package/lib/qwik6.js +0 -20
- package/lib/qwik60.js +0 -14
- package/lib/qwik61.js +0 -14
- package/lib/qwik62.js +0 -8
- package/lib/qwik63.js +0 -8
- package/lib/qwik64.js +0 -24
- package/lib/qwik65.js +0 -17
- package/lib/qwik67.js +0 -8
- package/lib/qwik68.js +0 -23
- package/lib/qwik69.js +0 -15
- package/lib/qwik7.js +0 -12
- package/lib/qwik70.js +0 -8
- package/lib/qwik71.js +0 -9
- package/lib/qwik72.js +0 -14
- package/lib/qwik73.js +0 -10
- package/lib/qwik74.js +0 -8
- package/lib/qwik8.js +0 -29
- package/lib/qwik9.js +0 -16
- package/lib-types/components/code/elm-code-block.d.ts +0 -21
- package/lib-types/components/code/elm-code-block.stories.d.ts +0 -9
- package/lib-types/components/code/elm-katex.d.ts +0 -15
- package/lib-types/components/code/elm-katex.stories.d.ts +0 -8
- package/lib-types/components/code/elm-shiki-highlighter.d.ts +0 -12
- package/lib-types/components/code/elm-shiki-highlighter.stories.d.ts +0 -6
- package/lib-types/components/code/shikiInstance.d.ts +0 -2
- package/lib-types/components/containments/elm-toggle.d.ts +0 -7
- package/lib-types/components/containments/elm-toggle.stories.d.ts +0 -6
- package/lib-types/components/fallback/elm-block-fallback.d.ts +0 -5
- package/lib-types/components/fallback/elm-block-fallback.stories.d.ts +0 -6
- package/lib-types/components/fallback/elm-rectangle-wave.d.ts +0 -4
- package/lib-types/components/fallback/elm-rectangle-wave.stories.d.ts +0 -6
- package/lib-types/components/icon/elm-dot-loading-icon.d.ts +0 -14
- package/lib-types/components/icon/elm-dot-loading-icon.stories.d.ts +0 -6
- package/lib-types/components/icon/elm-inline-icon.d.ts +0 -11
- package/lib-types/components/icon/elm-inline-icon.stories.d.ts +0 -6
- package/lib-types/components/icon/elm-language-icon.d.ts +0 -14
- package/lib-types/components/icon/elm-language-icon.stories.d.ts +0 -6
- package/lib-types/components/icon/elm-mdi-icon.d.ts +0 -8
- package/lib-types/components/icon/elm-mdi-icon.stories.d.ts +0 -6
- package/lib-types/components/icon/languages/bash.d.ts +0 -2
- package/lib-types/components/icon/languages/c-plus-plus.d.ts +0 -2
- package/lib-types/components/icon/languages/c-sharp.d.ts +0 -2
- package/lib-types/components/icon/languages/c.d.ts +0 -2
- package/lib-types/components/icon/languages/css.d.ts +0 -2
- package/lib-types/components/icon/languages/go.d.ts +0 -2
- package/lib-types/components/icon/languages/html.d.ts +0 -2
- package/lib-types/components/icon/languages/java.d.ts +0 -2
- package/lib-types/components/icon/languages/javascript.d.ts +0 -2
- package/lib-types/components/icon/languages/json.d.ts +0 -2
- package/lib-types/components/icon/languages/kotlin.d.ts +0 -2
- package/lib-types/components/icon/languages/language-interface.d.ts +0 -4
- package/lib-types/components/icon/languages/lua.d.ts +0 -2
- package/lib-types/components/icon/languages/npm.d.ts +0 -2
- package/lib-types/components/icon/languages/python.d.ts +0 -2
- package/lib-types/components/icon/languages/rust.d.ts +0 -2
- package/lib-types/components/icon/languages/sql.d.ts +0 -2
- package/lib-types/components/icon/languages/terraform.d.ts +0 -2
- package/lib-types/components/icon/languages/typescript.d.ts +0 -2
- package/lib-types/components/media/elm-block-image.d.ts +0 -16
- package/lib-types/components/media/elm-block-image.stories.d.ts +0 -12
- package/lib-types/components/media/elm-file.d.ts +0 -15
- package/lib-types/components/media/elm-file.stories.d.ts +0 -7
- package/lib-types/components/navigation/elm-bookmark.d.ts +0 -24
- package/lib-types/components/navigation/elm-bookmark.stories.d.ts +0 -12
- package/lib-types/components/others/elm-jarkup.d.ts +0 -5
- package/lib-types/components/others/elm-jarkup.stories.d.ts +0 -6
- package/lib-types/components/table/elm-table-body.d.ts +0 -2
- package/lib-types/components/table/elm-table-cell.d.ts +0 -12
- package/lib-types/components/table/elm-table-header.d.ts +0 -3
- package/lib-types/components/table/elm-table-row.d.ts +0 -2
- package/lib-types/components/table/elm-table.d.ts +0 -13
- package/lib-types/components/table/elm-table.stories.d.ts +0 -6
- package/lib-types/components/typography/elm-block-quote.d.ts +0 -4
- package/lib-types/components/typography/elm-block-quote.stories.d.ts +0 -6
- package/lib-types/components/typography/elm-callout.d.ts +0 -8
- package/lib-types/components/typography/elm-callout.stories.d.ts +0 -10
- package/lib-types/components/typography/elm-divider.d.ts +0 -8
- package/lib-types/components/typography/elm-divider.stories.d.ts +0 -6
- package/lib-types/components/typography/elm-fragment-identifier.d.ts +0 -7
- package/lib-types/components/typography/elm-fragment-identifier.stories.d.ts +0 -6
- package/lib-types/components/typography/elm-heading.d.ts +0 -6
- package/lib-types/components/typography/elm-heading.stories.d.ts +0 -7
- package/lib-types/components/typography/elm-inline-text.d.ts +0 -54
- package/lib-types/components/typography/elm-inline-text.stories.d.ts +0 -13
- package/lib-types/components/typography/elm-list.d.ts +0 -5
- package/lib-types/components/typography/elm-list.stories.d.ts +0 -8
- package/lib-types/components/typography/elm-paragraph.d.ts +0 -5
- package/lib-types/components/typography/elm-paragraph.stories.d.ts +0 -9
- package/lib-types/entry.dev.d.ts +0 -2
- package/lib-types/hooks/useDelayedSignal.d.ts +0 -6
- package/lib-types/hooks/useInView.d.ts +0 -6
- package/lib-types/index.d.ts +0 -27
- package/lib-types/root.d.ts +0 -2
- /package/{lib-types/components/table/index.d.ts → src/components/table/index.ts} +0 -0
package/lib/qwik.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ElmCodeBlock } from "./qwik2.js";
|
|
2
|
-
import { ElmKatex } from "./qwik3.js";
|
|
3
|
-
import { ElmShikiHighlighter } from "./qwik4.js";
|
|
4
|
-
import { ElmToggle } from "./qwik5.js";
|
|
5
|
-
import { ElmBlockFallback } from "./qwik6.js";
|
|
6
|
-
import { ElmRectangleWave } from "./qwik7.js";
|
|
7
|
-
import { ElmDotLoadingIcon } from "./qwik8.js";
|
|
8
|
-
import { ElmInlineIcon } from "./qwik9.js";
|
|
9
|
-
import { ElmLanguageIcon } from "./qwik10.js";
|
|
10
|
-
import { ElmMdiIcon } from "./qwik11.js";
|
|
11
|
-
import { ElmBlockImage } from "./qwik12.js";
|
|
12
|
-
import { ElmFile } from "./qwik13.js";
|
|
13
|
-
import { ElmBookmark } from "./qwik14.js";
|
|
14
|
-
import { ElmBlockQuote } from "./qwik15.js";
|
|
15
|
-
import { ElmCallout } from "./qwik16.js";
|
|
16
|
-
import { ElmDivider } from "./qwik17.js";
|
|
17
|
-
import { ElmFragmentIdentifier } from "./qwik18.js";
|
|
18
|
-
import { ElmHeading } from "./qwik19.js";
|
|
19
|
-
import { ElmInlineText } from "./qwik20.js";
|
|
20
|
-
import { ElmList } from "./qwik21.js";
|
|
21
|
-
import { ElmParagraph } from "./qwik22.js";
|
|
22
|
-
import { ElmTable } from "./qwik23.js";
|
|
23
|
-
import { ElmTableHeader } from "./qwik24.js";
|
|
24
|
-
import { ElmTableBody } from "./qwik25.js";
|
|
25
|
-
import { ElmTableRow } from "./qwik26.js";
|
|
26
|
-
import { ElmTableCell } from "./qwik27.js";
|
|
27
|
-
import { ElmJarkup } from "./qwik28.js";
|
|
28
|
-
export {
|
|
29
|
-
ElmBlockFallback,
|
|
30
|
-
ElmBlockImage,
|
|
31
|
-
ElmBlockQuote,
|
|
32
|
-
ElmBookmark,
|
|
33
|
-
ElmCallout,
|
|
34
|
-
ElmCodeBlock,
|
|
35
|
-
ElmDivider,
|
|
36
|
-
ElmDotLoadingIcon,
|
|
37
|
-
ElmFile,
|
|
38
|
-
ElmFragmentIdentifier,
|
|
39
|
-
ElmHeading,
|
|
40
|
-
ElmInlineIcon,
|
|
41
|
-
ElmInlineText,
|
|
42
|
-
ElmJarkup,
|
|
43
|
-
ElmKatex,
|
|
44
|
-
ElmLanguageIcon,
|
|
45
|
-
ElmList,
|
|
46
|
-
ElmMdiIcon,
|
|
47
|
-
ElmParagraph,
|
|
48
|
-
ElmRectangleWave,
|
|
49
|
-
ElmShikiHighlighter,
|
|
50
|
-
ElmTable,
|
|
51
|
-
ElmTableBody,
|
|
52
|
-
ElmTableCell,
|
|
53
|
-
ElmTableHeader,
|
|
54
|
-
ElmTableRow,
|
|
55
|
-
ElmToggle
|
|
56
|
-
};
|
package/lib/qwik10.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$ } from "@builder.io/qwik";
|
|
3
|
-
import { Rust } from "./qwik38.js";
|
|
4
|
-
import { Javascript } from "./qwik39.js";
|
|
5
|
-
import { Typescript } from "./qwik40.js";
|
|
6
|
-
import { Bash } from "./qwik41.js";
|
|
7
|
-
import { Terraform } from "./qwik42.js";
|
|
8
|
-
import { Html } from "./qwik43.js";
|
|
9
|
-
import { Css } from "./qwik44.js";
|
|
10
|
-
import { Npm } from "./qwik45.js";
|
|
11
|
-
import { Java } from "./qwik46.js";
|
|
12
|
-
import { Kotlin } from "./qwik47.js";
|
|
13
|
-
import { Go } from "./qwik48.js";
|
|
14
|
-
import { Python } from "./qwik49.js";
|
|
15
|
-
import { Sql } from "./qwik50.js";
|
|
16
|
-
import { Json } from "./qwik51.js";
|
|
17
|
-
import { Lua } from "./qwik52.js";
|
|
18
|
-
import { Csharp } from "./qwik53.js";
|
|
19
|
-
import { Cplusplus } from "./qwik54.js";
|
|
20
|
-
import { C } from "./qwik55.js";
|
|
21
|
-
const normalizeLanguage = (language) => {
|
|
22
|
-
switch (language) {
|
|
23
|
-
case "rust":
|
|
24
|
-
case "rs":
|
|
25
|
-
return "rust";
|
|
26
|
-
case "javascript":
|
|
27
|
-
case "js":
|
|
28
|
-
return "javascript";
|
|
29
|
-
case "typescript":
|
|
30
|
-
case "ts":
|
|
31
|
-
return "typescript";
|
|
32
|
-
case "bash":
|
|
33
|
-
case "sh":
|
|
34
|
-
case "shell":
|
|
35
|
-
return "shell";
|
|
36
|
-
case "tf":
|
|
37
|
-
case "terraform":
|
|
38
|
-
case "hcl":
|
|
39
|
-
return "terraform";
|
|
40
|
-
case "html":
|
|
41
|
-
case "html5":
|
|
42
|
-
return "html";
|
|
43
|
-
case "css":
|
|
44
|
-
case "css3":
|
|
45
|
-
return "css";
|
|
46
|
-
case "npm":
|
|
47
|
-
return "npm";
|
|
48
|
-
case "java":
|
|
49
|
-
return "java";
|
|
50
|
-
case "kotlin":
|
|
51
|
-
case "kt":
|
|
52
|
-
return "kotlin";
|
|
53
|
-
case "go":
|
|
54
|
-
case "golang":
|
|
55
|
-
return "go";
|
|
56
|
-
case "python":
|
|
57
|
-
case "py":
|
|
58
|
-
return "python";
|
|
59
|
-
case "sql":
|
|
60
|
-
return "sql";
|
|
61
|
-
case "json":
|
|
62
|
-
return "json";
|
|
63
|
-
case "lua":
|
|
64
|
-
return "lua";
|
|
65
|
-
case "cs":
|
|
66
|
-
case "c#":
|
|
67
|
-
case "csharp":
|
|
68
|
-
return "csharp";
|
|
69
|
-
case "cpp":
|
|
70
|
-
case "c++":
|
|
71
|
-
return "cpp";
|
|
72
|
-
case "c":
|
|
73
|
-
case "clang":
|
|
74
|
-
return "c";
|
|
75
|
-
default:
|
|
76
|
-
return "file";
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
const renderMap = {
|
|
80
|
-
rust: Rust,
|
|
81
|
-
javascript: Javascript,
|
|
82
|
-
typescript: Typescript,
|
|
83
|
-
shell: Bash,
|
|
84
|
-
terraform: Terraform,
|
|
85
|
-
html: Html,
|
|
86
|
-
css: Css,
|
|
87
|
-
npm: Npm,
|
|
88
|
-
java: Java,
|
|
89
|
-
kotlin: Kotlin,
|
|
90
|
-
go: Go,
|
|
91
|
-
python: Python,
|
|
92
|
-
sql: Sql,
|
|
93
|
-
json: Json,
|
|
94
|
-
lua: Lua,
|
|
95
|
-
csharp: Csharp,
|
|
96
|
-
cpp: Cplusplus,
|
|
97
|
-
c: C,
|
|
98
|
-
file: () => null
|
|
99
|
-
};
|
|
100
|
-
const ElmLanguageIcon = component$(({ size = 24, language }) => {
|
|
101
|
-
const Component2 = renderMap[normalizeLanguage(language)];
|
|
102
|
-
return /* @__PURE__ */ jsx(Component2, {
|
|
103
|
-
size
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
export {
|
|
107
|
-
ElmLanguageIcon
|
|
108
|
-
};
|
package/lib/qwik11.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$ } from "@builder.io/qwik";
|
|
3
|
-
import styles from "./qwik56.js";
|
|
4
|
-
const ElmMdiIcon = component$(({ d, size = "1em", color, lightColor, darkColor }) => {
|
|
5
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
6
|
-
class: styles.icon,
|
|
7
|
-
style: {
|
|
8
|
-
"--color": lightColor ?? color,
|
|
9
|
-
"--dark-color": darkColor ?? color
|
|
10
|
-
},
|
|
11
|
-
width: size,
|
|
12
|
-
height: size,
|
|
13
|
-
viewBox: "0 0 24 24",
|
|
14
|
-
fill: color,
|
|
15
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
-
focusable: "false",
|
|
17
|
-
role: "img",
|
|
18
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
19
|
-
d
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
ElmMdiIcon
|
|
25
|
-
};
|
package/lib/qwik12.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$, useSignal, $ } from "@builder.io/qwik";
|
|
3
|
-
import styles from "./qwik57.js";
|
|
4
|
-
import { ElmInlineText } from "./qwik20.js";
|
|
5
|
-
import { ElmMdiIcon } from "./qwik11.js";
|
|
6
|
-
import { ElmRectangleWave } from "./qwik7.js";
|
|
7
|
-
import { mdiMessageImageOutline } from "@mdi/js";
|
|
8
|
-
const ElmBlockImage = component$(({ src, alt, caption, width, height, enableModal = true }) => {
|
|
9
|
-
const isLoading = useSignal(true);
|
|
10
|
-
const isShowModal = useSignal(false);
|
|
11
|
-
const handleImageLoad = $(() => {
|
|
12
|
-
isLoading.value = false;
|
|
13
|
-
});
|
|
14
|
-
const handleToggleModal = $(() => {
|
|
15
|
-
if (enableModal) {
|
|
16
|
-
isShowModal.value = !isShowModal.value;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const ImageComponent = /* @__PURE__ */ jsx("img", {
|
|
20
|
-
class: [
|
|
21
|
-
styles.image
|
|
22
|
-
],
|
|
23
|
-
src,
|
|
24
|
-
alt: alt ?? caption ?? "Image",
|
|
25
|
-
width,
|
|
26
|
-
height,
|
|
27
|
-
onLoad$: handleImageLoad,
|
|
28
|
-
style: {
|
|
29
|
-
"--opacity": isLoading.value ? 0 : 1,
|
|
30
|
-
"--cursor": enableModal ? isShowModal.value ? "zoom-out" : "zoom-in" : "default"
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const Modal = /* @__PURE__ */ jsx("div", {
|
|
34
|
-
class: styles["modal-container"],
|
|
35
|
-
style: {
|
|
36
|
-
pointerEvents: isShowModal.value ? "auto" : "none",
|
|
37
|
-
"--opacity": isShowModal.value ? 1 : 0
|
|
38
|
-
},
|
|
39
|
-
onClick$: handleToggleModal,
|
|
40
|
-
children: ImageComponent
|
|
41
|
-
});
|
|
42
|
-
return /* @__PURE__ */ jsxs("figure", {
|
|
43
|
-
class: styles["block-image"],
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ jsxs("div", {
|
|
46
|
-
class: styles["image-container"],
|
|
47
|
-
style: {
|
|
48
|
-
"--opacity": isLoading.value ? 1 : 0
|
|
49
|
-
},
|
|
50
|
-
onClick$: handleToggleModal,
|
|
51
|
-
children: [
|
|
52
|
-
ImageComponent,
|
|
53
|
-
/* @__PURE__ */ jsx("div", {
|
|
54
|
-
class: styles["fallback"],
|
|
55
|
-
children: /* @__PURE__ */ jsx(ElmRectangleWave, {})
|
|
56
|
-
})
|
|
57
|
-
]
|
|
58
|
-
}),
|
|
59
|
-
caption && /* @__PURE__ */ jsxs("figcaption", {
|
|
60
|
-
class: styles["caption-box"],
|
|
61
|
-
style: {
|
|
62
|
-
"--opacity": isLoading.value ? 0 : 1
|
|
63
|
-
},
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ jsx("span", {
|
|
66
|
-
style: {
|
|
67
|
-
flex: "1"
|
|
68
|
-
},
|
|
69
|
-
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
70
|
-
d: mdiMessageImageOutline,
|
|
71
|
-
color: "#cdb57b",
|
|
72
|
-
size: "1.25rem"
|
|
73
|
-
})
|
|
74
|
-
}),
|
|
75
|
-
/* @__PURE__ */ jsx(ElmInlineText, {
|
|
76
|
-
size: "1rem",
|
|
77
|
-
children: caption
|
|
78
|
-
})
|
|
79
|
-
]
|
|
80
|
-
}),
|
|
81
|
-
Modal
|
|
82
|
-
]
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
export {
|
|
86
|
-
ElmBlockImage
|
|
87
|
-
};
|
package/lib/qwik13.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$, $ } from "@builder.io/qwik";
|
|
3
|
-
import styles from "./qwik58.js";
|
|
4
|
-
import { ElmMdiIcon } from "./qwik11.js";
|
|
5
|
-
import { mdiFile, mdiDownload } from "@mdi/js";
|
|
6
|
-
import { ElmInlineText } from "./qwik20.js";
|
|
7
|
-
function getLastPathSegmentWithoutQueryOrHash(urlString) {
|
|
8
|
-
const cleanedUrl = urlString.split(/[?#]/)[0];
|
|
9
|
-
const pathSegments = cleanedUrl.split("/").filter(Boolean);
|
|
10
|
-
return pathSegments.length > 0 ? pathSegments[pathSegments.length - 1] : null;
|
|
11
|
-
}
|
|
12
|
-
const ElmFile = component$(({ name, src, filesize }) => {
|
|
13
|
-
const downloadFile = $(async () => {
|
|
14
|
-
let link;
|
|
15
|
-
try {
|
|
16
|
-
const response = await fetch(src);
|
|
17
|
-
if (!response.ok) throw new Error("Failed to download file");
|
|
18
|
-
const blob = await response.blob();
|
|
19
|
-
link = document.createElement("a");
|
|
20
|
-
link.href = URL.createObjectURL(blob);
|
|
21
|
-
link.download = name ?? getLastPathSegmentWithoutQueryOrHash(src) ?? "file";
|
|
22
|
-
link.click();
|
|
23
|
-
} catch (error) {
|
|
24
|
-
console.error("ERROR:", error);
|
|
25
|
-
} finally {
|
|
26
|
-
if (link) URL.revokeObjectURL(link.href);
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
30
|
-
class: styles.file,
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ jsx("div", {
|
|
33
|
-
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
34
|
-
d: mdiFile,
|
|
35
|
-
size: "1.25rem"
|
|
36
|
-
})
|
|
37
|
-
}),
|
|
38
|
-
/* @__PURE__ */ jsx("div", {
|
|
39
|
-
children: /* @__PURE__ */ jsx(ElmInlineText, {
|
|
40
|
-
children: name ?? getLastPathSegmentWithoutQueryOrHash(src)
|
|
41
|
-
})
|
|
42
|
-
}),
|
|
43
|
-
/* @__PURE__ */ jsx("div", {
|
|
44
|
-
class: styles["file-size"],
|
|
45
|
-
children: /* @__PURE__ */ jsx(ElmInlineText, {
|
|
46
|
-
children: filesize
|
|
47
|
-
})
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ jsx("div", {
|
|
50
|
-
class: styles["download-icon"],
|
|
51
|
-
onClick$: downloadFile,
|
|
52
|
-
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
53
|
-
d: mdiDownload,
|
|
54
|
-
size: "1.25rem"
|
|
55
|
-
})
|
|
56
|
-
})
|
|
57
|
-
]
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
export {
|
|
61
|
-
ElmFile
|
|
62
|
-
};
|
package/lib/qwik14.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$ } from "@builder.io/qwik";
|
|
3
|
-
import styles from "./qwik59.js";
|
|
4
|
-
import { ElmInlineText } from "./qwik20.js";
|
|
5
|
-
import { mdiLinkVariant } from "@mdi/js";
|
|
6
|
-
import { ElmMdiIcon } from "./qwik11.js";
|
|
7
|
-
import { ElmInlineIcon } from "./qwik9.js";
|
|
8
|
-
const ElmBookmark = component$(({ url, image, title, description, favicon }) => {
|
|
9
|
-
return /* @__PURE__ */ jsx("div", {
|
|
10
|
-
class: styles.bookmark,
|
|
11
|
-
children: /* @__PURE__ */ jsxs("a", {
|
|
12
|
-
class: styles.container,
|
|
13
|
-
href: url,
|
|
14
|
-
target: "_blank",
|
|
15
|
-
rel: "noopener noreferrer",
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ jsx("img", {
|
|
18
|
-
class: styles.image,
|
|
19
|
-
src: image,
|
|
20
|
-
alt: "OGP Image"
|
|
21
|
-
}),
|
|
22
|
-
/* @__PURE__ */ jsxs("div", {
|
|
23
|
-
class: styles.content,
|
|
24
|
-
children: [
|
|
25
|
-
/* @__PURE__ */ jsx("div", {
|
|
26
|
-
class: styles.title,
|
|
27
|
-
children: /* @__PURE__ */ jsx(ElmInlineText, {
|
|
28
|
-
bold: true,
|
|
29
|
-
children: title
|
|
30
|
-
})
|
|
31
|
-
}),
|
|
32
|
-
/* @__PURE__ */ jsx("div", {
|
|
33
|
-
class: styles.description,
|
|
34
|
-
children: /* @__PURE__ */ jsx(ElmInlineText, {
|
|
35
|
-
size: "0.75rem",
|
|
36
|
-
children: description
|
|
37
|
-
})
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ jsxs("div", {
|
|
40
|
-
class: styles.link,
|
|
41
|
-
children: [
|
|
42
|
-
favicon ? /* @__PURE__ */ jsx(ElmInlineIcon, {
|
|
43
|
-
src: favicon
|
|
44
|
-
}) : /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
45
|
-
d: mdiLinkVariant,
|
|
46
|
-
color: "#6987b8"
|
|
47
|
-
}),
|
|
48
|
-
/* @__PURE__ */ jsx(ElmInlineText, {
|
|
49
|
-
size: "0.75rem",
|
|
50
|
-
children: url
|
|
51
|
-
})
|
|
52
|
-
]
|
|
53
|
-
})
|
|
54
|
-
]
|
|
55
|
-
})
|
|
56
|
-
]
|
|
57
|
-
})
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
export {
|
|
61
|
-
ElmBookmark
|
|
62
|
-
};
|
package/lib/qwik15.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$, Slot } from "@builder.io/qwik";
|
|
3
|
-
import styles from "./qwik60.js";
|
|
4
|
-
import textStyles from "./qwik30.js";
|
|
5
|
-
import { ElmMdiIcon } from "./qwik11.js";
|
|
6
|
-
import { mdiFormatQuoteOpen, mdiFormatQuoteClose } from "@mdi/js";
|
|
7
|
-
const ElmBlockQuote = component$(({ cite }) => {
|
|
8
|
-
return /* @__PURE__ */ jsxs("blockquote", {
|
|
9
|
-
class: [
|
|
10
|
-
styles.blockquote,
|
|
11
|
-
textStyles.text
|
|
12
|
-
],
|
|
13
|
-
cite,
|
|
14
|
-
children: [
|
|
15
|
-
/* @__PURE__ */ jsx("div", {
|
|
16
|
-
class: styles.icon,
|
|
17
|
-
style: {
|
|
18
|
-
"--inset": "0.25rem auto auto 0.5rem"
|
|
19
|
-
},
|
|
20
|
-
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
21
|
-
d: mdiFormatQuoteOpen
|
|
22
|
-
})
|
|
23
|
-
}),
|
|
24
|
-
/* @__PURE__ */ jsx("div", {
|
|
25
|
-
class: [
|
|
26
|
-
styles.body
|
|
27
|
-
],
|
|
28
|
-
children: /* @__PURE__ */ jsx(Slot, {})
|
|
29
|
-
}),
|
|
30
|
-
/* @__PURE__ */ jsx("div", {
|
|
31
|
-
class: styles.icon,
|
|
32
|
-
style: {
|
|
33
|
-
"--inset": "auto 0.25rem 0.25rem auto"
|
|
34
|
-
},
|
|
35
|
-
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
36
|
-
d: mdiFormatQuoteClose
|
|
37
|
-
})
|
|
38
|
-
})
|
|
39
|
-
]
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
export {
|
|
43
|
-
ElmBlockQuote
|
|
44
|
-
};
|
package/lib/qwik16.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$, Slot } from "@builder.io/qwik";
|
|
3
|
-
import styles from "./qwik61.js";
|
|
4
|
-
import { mdiAlertOctagram, mdiAlert, mdiShieldAlert, mdiLightbulbOn, mdiInformation } from "@mdi/js";
|
|
5
|
-
import { ElmMdiIcon } from "./qwik11.js";
|
|
6
|
-
import { ElmInlineText } from "./qwik20.js";
|
|
7
|
-
const COLOR_MAP = Object.freeze({
|
|
8
|
-
note: {
|
|
9
|
-
code: "#6987b8",
|
|
10
|
-
icon: mdiInformation
|
|
11
|
-
},
|
|
12
|
-
tip: {
|
|
13
|
-
code: "#59b57c",
|
|
14
|
-
icon: mdiLightbulbOn
|
|
15
|
-
},
|
|
16
|
-
important: {
|
|
17
|
-
code: "#9771bd",
|
|
18
|
-
icon: mdiShieldAlert
|
|
19
|
-
},
|
|
20
|
-
warning: {
|
|
21
|
-
code: "#b8a36e",
|
|
22
|
-
icon: mdiAlert
|
|
23
|
-
},
|
|
24
|
-
caution: {
|
|
25
|
-
code: "#b36472",
|
|
26
|
-
icon: mdiAlertOctagram
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
const ElmCallout = component$(({ type = "note" }) => {
|
|
30
|
-
return /* @__PURE__ */ jsxs("aside", {
|
|
31
|
-
class: styles.callout,
|
|
32
|
-
style: {
|
|
33
|
-
"--callout-color": COLOR_MAP[type].code
|
|
34
|
-
},
|
|
35
|
-
children: [
|
|
36
|
-
/* @__PURE__ */ jsxs("div", {
|
|
37
|
-
class: styles.header,
|
|
38
|
-
children: [
|
|
39
|
-
/* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
40
|
-
d: COLOR_MAP[type].icon,
|
|
41
|
-
color: COLOR_MAP[type].code,
|
|
42
|
-
size: "1.25rem"
|
|
43
|
-
}),
|
|
44
|
-
/* @__PURE__ */ jsx(ElmInlineText, {
|
|
45
|
-
children: type.toLocaleUpperCase()
|
|
46
|
-
})
|
|
47
|
-
]
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ jsx("div", {
|
|
50
|
-
class: styles.content,
|
|
51
|
-
children: /* @__PURE__ */ jsx(Slot, {})
|
|
52
|
-
})
|
|
53
|
-
]
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
export {
|
|
57
|
-
ElmCallout
|
|
58
|
-
};
|
package/lib/qwik17.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$ } from "@builder.io/qwik";
|
|
3
|
-
import styles from "./qwik62.js";
|
|
4
|
-
const ElmDivider = component$(({ margin }) => {
|
|
5
|
-
return /* @__PURE__ */ jsx("hr", {
|
|
6
|
-
class: styles.hr,
|
|
7
|
-
style: {
|
|
8
|
-
marginBlock: margin
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
export {
|
|
13
|
-
ElmDivider
|
|
14
|
-
};
|
package/lib/qwik18.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$, $ } from "@builder.io/qwik";
|
|
3
|
-
import styles from "./qwik63.js";
|
|
4
|
-
const ElmFragmentIdentifier = component$(({ id }) => {
|
|
5
|
-
const handleHashClick = $((id2) => {
|
|
6
|
-
const url = new URL(window.location.href);
|
|
7
|
-
url.hash = id2;
|
|
8
|
-
window.history.replaceState(null, "", url.toString());
|
|
9
|
-
const target = document.getElementById(id2);
|
|
10
|
-
if (target != null) {
|
|
11
|
-
target.scrollIntoView({
|
|
12
|
-
behavior: "smooth"
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
return /* @__PURE__ */ jsx("span", {
|
|
17
|
-
class: styles.fragment,
|
|
18
|
-
onClick$: () => handleHashClick(id),
|
|
19
|
-
children: "#"
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
ElmFragmentIdentifier
|
|
24
|
-
};
|
package/lib/qwik19.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$, Slot } from "@builder.io/qwik";
|
|
3
|
-
import styles from "./qwik64.js";
|
|
4
|
-
import textStyles from "./qwik30.js";
|
|
5
|
-
import { ElmFragmentIdentifier } from "./qwik18.js";
|
|
6
|
-
const SIZE_MAP = Object.freeze({
|
|
7
|
-
1: 1.5,
|
|
8
|
-
2: 1.4,
|
|
9
|
-
3: 1.3,
|
|
10
|
-
4: 1.2,
|
|
11
|
-
5: 1.15,
|
|
12
|
-
6: 1.1
|
|
13
|
-
});
|
|
14
|
-
const ElmHeading = component$(({ level, text, id }) => {
|
|
15
|
-
const Tag = `h${level}`;
|
|
16
|
-
return /* @__PURE__ */ jsxs(Tag, {
|
|
17
|
-
class: [
|
|
18
|
-
styles["heading-common"],
|
|
19
|
-
textStyles.text,
|
|
20
|
-
styles[`h${level}`]
|
|
21
|
-
],
|
|
22
|
-
style: {
|
|
23
|
-
"--font-size": `${SIZE_MAP[level]}em`
|
|
24
|
-
},
|
|
25
|
-
children: [
|
|
26
|
-
text,
|
|
27
|
-
/* @__PURE__ */ jsx(Slot, {}),
|
|
28
|
-
id && /* @__PURE__ */ jsx("span", {
|
|
29
|
-
style: {
|
|
30
|
-
padding: "0.5rem"
|
|
31
|
-
},
|
|
32
|
-
children: /* @__PURE__ */ jsx(ElmFragmentIdentifier, {
|
|
33
|
-
id
|
|
34
|
-
})
|
|
35
|
-
})
|
|
36
|
-
]
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
ElmHeading
|
|
41
|
-
};
|
package/lib/qwik2.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
import { component$, useSignal, $, Slot } from "@builder.io/qwik";
|
|
3
|
-
import styles from "./qwik29.js";
|
|
4
|
-
import { ElmLanguageIcon } from "./qwik10.js";
|
|
5
|
-
import { ElmInlineText } from "./qwik20.js";
|
|
6
|
-
import { ElmShikiHighlighter } from "./qwik4.js";
|
|
7
|
-
import { mdiClipboardCheckMultipleOutline, mdiClipboardMultipleOutline } from "@mdi/js";
|
|
8
|
-
import { ElmMdiIcon } from "./qwik11.js";
|
|
9
|
-
const ElmCodeBlock = component$(({ code, language = "txt", caption, margin }) => {
|
|
10
|
-
const timerId = useSignal(null);
|
|
11
|
-
const copyToClipboard = $(async () => {
|
|
12
|
-
if (timerId.value !== null) {
|
|
13
|
-
window.clearTimeout(timerId.value);
|
|
14
|
-
timerId.value = null;
|
|
15
|
-
}
|
|
16
|
-
try {
|
|
17
|
-
await navigator.clipboard.writeText(code);
|
|
18
|
-
timerId.value = window.setTimeout(() => timerId.value = null, 1500);
|
|
19
|
-
} catch (err) {
|
|
20
|
-
console.error("Failed to copy: ", err);
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
return /* @__PURE__ */ jsxs("figure", {
|
|
24
|
-
class: styles["code-block"],
|
|
25
|
-
style: {
|
|
26
|
-
margin
|
|
27
|
-
},
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ jsx("span", {
|
|
30
|
-
class: styles["language-icon"],
|
|
31
|
-
children: /* @__PURE__ */ jsx(ElmLanguageIcon, {
|
|
32
|
-
language
|
|
33
|
-
})
|
|
34
|
-
}),
|
|
35
|
-
/* @__PURE__ */ jsx("span", {
|
|
36
|
-
class: styles["caption"],
|
|
37
|
-
children: /* @__PURE__ */ jsxs(ElmInlineText, {
|
|
38
|
-
children: [
|
|
39
|
-
caption || language,
|
|
40
|
-
/* @__PURE__ */ jsx(Slot, {})
|
|
41
|
-
]
|
|
42
|
-
})
|
|
43
|
-
}),
|
|
44
|
-
/* @__PURE__ */ jsx("div", {
|
|
45
|
-
class: styles["copy-icon"],
|
|
46
|
-
onClick$: copyToClipboard,
|
|
47
|
-
children: /* @__PURE__ */ jsx(ElmMdiIcon, {
|
|
48
|
-
size: "1.25rem",
|
|
49
|
-
d: timerId.value !== null ? mdiClipboardCheckMultipleOutline : mdiClipboardMultipleOutline,
|
|
50
|
-
color: timerId.value !== null ? "#59b57c" : void 0
|
|
51
|
-
})
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ jsx("hr", {
|
|
54
|
-
class: styles["divider"]
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ jsx("div", {
|
|
57
|
-
class: styles["code"],
|
|
58
|
-
children: /* @__PURE__ */ jsx(ElmShikiHighlighter, {
|
|
59
|
-
code,
|
|
60
|
-
language
|
|
61
|
-
})
|
|
62
|
-
})
|
|
63
|
-
]
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
export {
|
|
67
|
-
ElmCodeBlock
|
|
68
|
-
};
|