@elmethis/qwik 0.0.6 → 0.0.8
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/lib/index.qwik.cjs +1678 -0
- package/lib/index.qwik.mjs +1678 -0
- package/lib/shikiInstance-BxkUyfqr.cjs +79 -0
- package/{src/components/code/shikiInstance.ts → lib/shikiInstance-igs7t2fe.js} +11 -8
- package/lib-types/components/code/elm-code-block.d.ts +21 -0
- package/lib-types/components/code/elm-code-block.stories.d.ts +9 -0
- package/lib-types/components/code/elm-katex.d.ts +15 -0
- package/lib-types/components/code/elm-katex.stories.d.ts +8 -0
- package/lib-types/components/code/elm-shiki-highlighter.d.ts +11 -0
- package/lib-types/components/code/elm-shiki-highlighter.stories.d.ts +6 -0
- package/lib-types/components/code/shikiInstance.d.ts +2 -0
- package/lib-types/components/containments/elm-toggle.d.ts +7 -0
- package/lib-types/components/containments/elm-toggle.stories.d.ts +6 -0
- package/lib-types/components/fallback/elm-block-fallback.d.ts +5 -0
- package/lib-types/components/fallback/elm-block-fallback.stories.d.ts +6 -0
- package/lib-types/components/fallback/elm-rectangle-wave.d.ts +4 -0
- package/lib-types/components/fallback/elm-rectangle-wave.stories.d.ts +6 -0
- package/lib-types/components/icon/elm-dot-loading-icon.d.ts +14 -0
- package/lib-types/components/icon/elm-dot-loading-icon.stories.d.ts +6 -0
- package/lib-types/components/icon/elm-inline-icon.d.ts +11 -0
- package/lib-types/components/icon/elm-inline-icon.stories.d.ts +6 -0
- package/lib-types/components/icon/elm-language-icon.d.ts +14 -0
- package/lib-types/components/icon/elm-language-icon.stories.d.ts +6 -0
- package/lib-types/components/icon/elm-mdi-icon.d.ts +8 -0
- package/lib-types/components/icon/elm-mdi-icon.stories.d.ts +6 -0
- package/lib-types/components/icon/languages/bash.d.ts +2 -0
- package/lib-types/components/icon/languages/c-plus-plus.d.ts +2 -0
- package/lib-types/components/icon/languages/c-sharp.d.ts +2 -0
- package/lib-types/components/icon/languages/c.d.ts +2 -0
- package/lib-types/components/icon/languages/css.d.ts +2 -0
- package/lib-types/components/icon/languages/go.d.ts +2 -0
- package/lib-types/components/icon/languages/html.d.ts +2 -0
- package/lib-types/components/icon/languages/java.d.ts +2 -0
- package/lib-types/components/icon/languages/javascript.d.ts +2 -0
- package/lib-types/components/icon/languages/json.d.ts +2 -0
- package/lib-types/components/icon/languages/kotlin.d.ts +2 -0
- package/lib-types/components/icon/languages/language-interface.d.ts +4 -0
- package/lib-types/components/icon/languages/lua.d.ts +2 -0
- package/lib-types/components/icon/languages/npm.d.ts +2 -0
- package/lib-types/components/icon/languages/python.d.ts +2 -0
- package/lib-types/components/icon/languages/rust.d.ts +2 -0
- package/lib-types/components/icon/languages/sql.d.ts +2 -0
- package/lib-types/components/icon/languages/terraform.d.ts +2 -0
- package/lib-types/components/icon/languages/typescript.d.ts +2 -0
- package/lib-types/components/media/elm-block-image.d.ts +16 -0
- package/lib-types/components/media/elm-block-image.stories.d.ts +12 -0
- package/lib-types/components/media/elm-file.d.ts +15 -0
- package/lib-types/components/media/elm-file.stories.d.ts +7 -0
- package/lib-types/components/navigation/elm-bookmark.d.ts +24 -0
- package/lib-types/components/navigation/elm-bookmark.stories.d.ts +12 -0
- package/lib-types/components/others/elm-jarkup.d.ts +5 -0
- package/lib-types/components/others/elm-jarkup.stories.d.ts +6 -0
- package/lib-types/components/table/elm-table-body.d.ts +2 -0
- package/lib-types/components/table/elm-table-cell.d.ts +12 -0
- package/lib-types/components/table/elm-table-header.d.ts +3 -0
- package/lib-types/components/table/elm-table-row.d.ts +2 -0
- package/lib-types/components/table/elm-table.d.ts +13 -0
- package/lib-types/components/table/elm-table.stories.d.ts +6 -0
- package/lib-types/components/typography/elm-block-quote.d.ts +4 -0
- package/lib-types/components/typography/elm-block-quote.stories.d.ts +6 -0
- package/lib-types/components/typography/elm-callout.d.ts +8 -0
- package/lib-types/components/typography/elm-callout.stories.d.ts +10 -0
- package/lib-types/components/typography/elm-divider.d.ts +8 -0
- package/lib-types/components/typography/elm-divider.stories.d.ts +6 -0
- package/lib-types/components/typography/elm-fragment-identifier.d.ts +7 -0
- package/lib-types/components/typography/elm-fragment-identifier.stories.d.ts +6 -0
- package/lib-types/components/typography/elm-heading.d.ts +6 -0
- package/lib-types/components/typography/elm-heading.stories.d.ts +7 -0
- package/lib-types/components/typography/elm-inline-text.d.ts +54 -0
- package/lib-types/components/typography/elm-inline-text.stories.d.ts +13 -0
- package/lib-types/components/typography/elm-list.d.ts +4 -0
- package/lib-types/components/typography/elm-list.stories.d.ts +8 -0
- package/lib-types/components/typography/elm-paragraph.d.ts +5 -0
- package/lib-types/components/typography/elm-paragraph.stories.d.ts +9 -0
- package/lib-types/entry.dev.d.ts +2 -0
- package/{src/entry.ssr.tsx → lib-types/entry.ssr.d.ts} +2 -9
- package/lib-types/hooks/useDelayedSignal.d.ts +6 -0
- package/lib-types/hooks/useInView.d.ts +6 -0
- package/lib-types/index.d.ts +27 -0
- package/lib-types/root.d.ts +2 -0
- package/package.json +5 -1
- package/.prettierignore +0 -6
- package/.storybook/main.ts +0 -23
- package/.storybook/preview-head.html +0 -4
- package/.storybook/preview.tsx +0 -51
- package/.storybook/sb.scss +0 -13
- package/.storybook/tsconfig.json +0 -24
- package/eslint.config.js +0 -79
- package/src/assets/bg1.webp +0 -0
- package/src/assets/bg2.webp +0 -0
- package/src/assets/images/2.svg +0 -4
- package/src/assets/images/lamdscape.svg +0 -4
- package/src/assets/images/portrait.svg +0 -4
- package/src/assets/images/square.svg +0 -4
- package/src/assets/vite.svg +0 -1
- package/src/assets/vue.svg +0 -1
- package/src/components/code/elm-code-block.module.scss +0 -67
- package/src/components/code/elm-code-block.stories.tsx +0 -44
- package/src/components/code/elm-code-block.tsx +0 -95
- package/src/components/code/elm-katex.stories.tsx +0 -28
- package/src/components/code/elm-katex.tsx +0 -34
- package/src/components/code/elm-shiki-highlighter.global.scss +0 -18
- package/src/components/code/elm-shiki-highlighter.stories.tsx +0 -21
- package/src/components/code/elm-shiki-highlighter.tsx +0 -44
- package/src/components/code/seed/main.rs +0 -24
- package/src/components/containments/elm-toggle.module.scss +0 -132
- package/src/components/containments/elm-toggle.stories.tsx +0 -34
- package/src/components/containments/elm-toggle.tsx +0 -106
- package/src/components/fallback/elm-block-fallback.module.scss +0 -8
- package/src/components/fallback/elm-block-fallback.stories.tsx +0 -14
- package/src/components/fallback/elm-block-fallback.tsx +0 -20
- package/src/components/fallback/elm-rectangle-wave.module.scss +0 -42
- package/src/components/fallback/elm-rectangle-wave.stories.tsx +0 -28
- package/src/components/fallback/elm-rectangle-wave.tsx +0 -11
- package/src/components/icon/elm-dot-loading-icon.module.scss +0 -53
- package/src/components/icon/elm-dot-loading-icon.stories.tsx +0 -15
- package/src/components/icon/elm-dot-loading-icon.tsx +0 -35
- package/src/components/icon/elm-inline-icon.module.scss +0 -21
- package/src/components/icon/elm-inline-icon.stories.tsx +0 -16
- package/src/components/icon/elm-inline-icon.tsx +0 -25
- package/src/components/icon/elm-language-icon.stories.tsx +0 -22
- package/src/components/icon/elm-language-icon.tsx +0 -167
- package/src/components/icon/elm-mdi-icon.module.scss +0 -8
- package/src/components/icon/elm-mdi-icon.stories.tsx +0 -25
- package/src/components/icon/elm-mdi-icon.tsx +0 -34
- package/src/components/icon/languages/bash.module.scss +0 -6
- package/src/components/icon/languages/bash.tsx +0 -27
- package/src/components/icon/languages/c-plus-plus.tsx +0 -33
- package/src/components/icon/languages/c-sharp.tsx +0 -29
- package/src/components/icon/languages/c.tsx +0 -27
- package/src/components/icon/languages/css.tsx +0 -21
- package/src/components/icon/languages/go.tsx +0 -22
- package/src/components/icon/languages/html.tsx +0 -30
- package/src/components/icon/languages/java.tsx +0 -37
- package/src/components/icon/languages/javascript.tsx +0 -22
- package/src/components/icon/languages/json.tsx +0 -53
- package/src/components/icon/languages/kotlin.tsx +0 -36
- package/src/components/icon/languages/language-interface.ts +0 -4
- package/src/components/icon/languages/lua.tsx +0 -29
- package/src/components/icon/languages/npm.tsx +0 -25
- package/src/components/icon/languages/python.tsx +0 -67
- package/src/components/icon/languages/rust.tsx +0 -19
- package/src/components/icon/languages/sql.tsx +0 -21
- package/src/components/icon/languages/terraform.tsx +0 -31
- package/src/components/icon/languages/typescript.tsx +0 -22
- package/src/components/media/elm-block-image.module.scss +0 -68
- package/src/components/media/elm-block-image.stories.tsx +0 -79
- package/src/components/media/elm-block-image.tsx +0 -110
- package/src/components/media/elm-file.module.scss +0 -43
- package/src/components/media/elm-file.stories.tsx +0 -27
- package/src/components/media/elm-file.tsx +0 -75
- package/src/components/navigation/elm-bookmark.module.scss +0 -100
- package/src/components/navigation/elm-bookmark.stories.tsx +0 -87
- package/src/components/navigation/elm-bookmark.tsx +0 -72
- package/src/components/others/elm-jarkup.module.scss +0 -26
- package/src/components/others/elm-jarkup.stories.tsx +0 -18
- package/src/components/others/elm-jarkup.tsx +0 -267
- package/src/components/table/elm-table-body.tsx +0 -14
- package/src/components/table/elm-table-cell.module.scss +0 -41
- package/src/components/table/elm-table-cell.tsx +0 -33
- package/src/components/table/elm-table-header.module.scss +0 -8
- package/src/components/table/elm-table-header.tsx +0 -21
- package/src/components/table/elm-table-row.module.scss +0 -28
- package/src/components/table/elm-table-row.tsx +0 -15
- package/src/components/table/elm-table.module.scss +0 -29
- package/src/components/table/elm-table.stories.tsx +0 -67
- package/src/components/table/elm-table.tsx +0 -63
- package/src/components/typography/elm-block-quote.module.scss +0 -29
- package/src/components/typography/elm-block-quote.stories.tsx +0 -22
- package/src/components/typography/elm-block-quote.tsx +0 -34
- package/src/components/typography/elm-callout.module.scss +0 -36
- package/src/components/typography/elm-callout.stories.tsx +0 -47
- package/src/components/typography/elm-callout.tsx +0 -52
- package/src/components/typography/elm-divider.module.scss +0 -6
- package/src/components/typography/elm-divider.stories.tsx +0 -14
- package/src/components/typography/elm-divider.tsx +0 -14
- package/src/components/typography/elm-fragment-identifier.module.scss +0 -28
- package/src/components/typography/elm-fragment-identifier.stories.tsx +0 -14
- package/src/components/typography/elm-fragment-identifier.tsx +0 -31
- package/src/components/typography/elm-heading.module.scss +0 -120
- package/src/components/typography/elm-heading.stories.tsx +0 -42
- package/src/components/typography/elm-heading.tsx +0 -40
- package/src/components/typography/elm-inline-text.module.scss +0 -114
- package/src/components/typography/elm-inline-text.stories.tsx +0 -70
- package/src/components/typography/elm-inline-text.tsx +0 -147
- package/src/components/typography/elm-list.global.scss +0 -66
- package/src/components/typography/elm-list.stories.tsx +0 -61
- package/src/components/typography/elm-list.tsx +0 -39
- package/src/components/typography/elm-paragraph.module.scss +0 -21
- package/src/components/typography/elm-paragraph.stories.tsx +0 -47
- package/src/components/typography/elm-paragraph.tsx +0 -31
- package/src/entry.dev.tsx +0 -17
- package/src/global.d.ts +0 -13
- package/src/hooks/useDelayedSignal.ts +0 -27
- package/src/hooks/useInView.tsx +0 -23
- package/src/index.ts +0 -113
- package/src/root.tsx +0 -13
- package/src/styles/text.module.scss +0 -17
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -21
- package/vite.config.ts +0 -36
- /package/{src/components/table/index.ts → lib-types/components/table/index.d.ts} +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const shiki = require("shiki");
|
|
4
|
+
let highlighterPromise = null;
|
|
5
|
+
function getHighlighterSingleton() {
|
|
6
|
+
if (!highlighterPromise) {
|
|
7
|
+
highlighterPromise = shiki.createHighlighter({
|
|
8
|
+
langs: [
|
|
9
|
+
"abap",
|
|
10
|
+
"bash",
|
|
11
|
+
"c",
|
|
12
|
+
"clojure",
|
|
13
|
+
"coffeescript",
|
|
14
|
+
"c++",
|
|
15
|
+
"c#",
|
|
16
|
+
"css",
|
|
17
|
+
"dart",
|
|
18
|
+
"diff",
|
|
19
|
+
"docker",
|
|
20
|
+
"elixir",
|
|
21
|
+
"elm",
|
|
22
|
+
"erlang",
|
|
23
|
+
"f#",
|
|
24
|
+
"gherkin",
|
|
25
|
+
"glsl",
|
|
26
|
+
"go",
|
|
27
|
+
"graphql",
|
|
28
|
+
"groovy",
|
|
29
|
+
"haskell",
|
|
30
|
+
"html",
|
|
31
|
+
"java",
|
|
32
|
+
"javascript",
|
|
33
|
+
"json",
|
|
34
|
+
"julia",
|
|
35
|
+
"kotlin",
|
|
36
|
+
"latex",
|
|
37
|
+
"less",
|
|
38
|
+
"lisp",
|
|
39
|
+
"lua",
|
|
40
|
+
"makefile",
|
|
41
|
+
"markdown",
|
|
42
|
+
"matlab",
|
|
43
|
+
"mermaid",
|
|
44
|
+
"nix",
|
|
45
|
+
"objective-c",
|
|
46
|
+
"ocaml",
|
|
47
|
+
"pascal",
|
|
48
|
+
"perl",
|
|
49
|
+
"php",
|
|
50
|
+
"plaintext",
|
|
51
|
+
"powershell",
|
|
52
|
+
"prolog",
|
|
53
|
+
"protobuf",
|
|
54
|
+
"python",
|
|
55
|
+
"r",
|
|
56
|
+
"ruby",
|
|
57
|
+
"rust",
|
|
58
|
+
"sass",
|
|
59
|
+
"scala",
|
|
60
|
+
"scheme",
|
|
61
|
+
"scss",
|
|
62
|
+
"shell",
|
|
63
|
+
"sql",
|
|
64
|
+
"swift",
|
|
65
|
+
"toml",
|
|
66
|
+
"typescript",
|
|
67
|
+
"wasm",
|
|
68
|
+
"xml",
|
|
69
|
+
"yaml"
|
|
70
|
+
],
|
|
71
|
+
themes: [
|
|
72
|
+
"vitesse-light",
|
|
73
|
+
"vitesse-dark"
|
|
74
|
+
]
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return highlighterPromise;
|
|
78
|
+
}
|
|
79
|
+
exports.getHighlighterSingleton = getHighlighterSingleton;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let highlighterPromise: Promise<Highlighter> | null = null;
|
|
5
|
-
|
|
6
|
-
export function getHighlighterSingleton() {
|
|
1
|
+
import { createHighlighter } from "shiki";
|
|
2
|
+
let highlighterPromise = null;
|
|
3
|
+
function getHighlighterSingleton() {
|
|
7
4
|
if (!highlighterPromise) {
|
|
8
5
|
highlighterPromise = createHighlighter({
|
|
9
6
|
langs: [
|
|
@@ -67,10 +64,16 @@ export function getHighlighterSingleton() {
|
|
|
67
64
|
"typescript",
|
|
68
65
|
"wasm",
|
|
69
66
|
"xml",
|
|
70
|
-
"yaml"
|
|
67
|
+
"yaml"
|
|
71
68
|
],
|
|
72
|
-
themes: [
|
|
69
|
+
themes: [
|
|
70
|
+
"vitesse-light",
|
|
71
|
+
"vitesse-dark"
|
|
72
|
+
]
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
return highlighterPromise;
|
|
76
76
|
}
|
|
77
|
+
export {
|
|
78
|
+
getHighlighterSingleton
|
|
79
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties } from "@builder.io/qwik";
|
|
2
|
+
export interface ElmCodeBlockProps {
|
|
3
|
+
/**
|
|
4
|
+
* The code to display.
|
|
5
|
+
*/
|
|
6
|
+
code: string;
|
|
7
|
+
/**
|
|
8
|
+
* The language of the code.
|
|
9
|
+
*/
|
|
10
|
+
language?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The caption of the code block.
|
|
13
|
+
* If not provided, the language will be used.
|
|
14
|
+
*/
|
|
15
|
+
caption?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The margin of the code block.
|
|
18
|
+
*/
|
|
19
|
+
margin?: CSSProperties["margin"];
|
|
20
|
+
}
|
|
21
|
+
export declare const ElmCodeBlock: import("@builder.io/qwik").Component<ElmCodeBlockProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmCodeBlock } from "./elm-code-block";
|
|
3
|
+
declare const meta: Meta<typeof ElmCodeBlock>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Rust: Story;
|
|
8
|
+
export declare const Caption: Story;
|
|
9
|
+
export declare const CaptionSlot: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ElmKatexProps {
|
|
2
|
+
/**
|
|
3
|
+
* The KaTex expression.
|
|
4
|
+
*/
|
|
5
|
+
expression: string;
|
|
6
|
+
/**
|
|
7
|
+
* Whether to render the equation in block mode.
|
|
8
|
+
* - If `true`, the equation will be rendered in block mode.
|
|
9
|
+
* - If `false`, the equation will be rendered in inline mode.
|
|
10
|
+
*
|
|
11
|
+
* Default is `false`.
|
|
12
|
+
*/
|
|
13
|
+
block?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const ElmKatex: import("@builder.io/qwik").Component<ElmKatexProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmKatex } from "./elm-katex";
|
|
3
|
+
declare const meta: Meta<typeof ElmKatex>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Inline: Story;
|
|
7
|
+
export declare const Block: Story;
|
|
8
|
+
export declare const Complex: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ElmShikiHighlighterProps {
|
|
2
|
+
/**
|
|
3
|
+
* The code to display.
|
|
4
|
+
*/
|
|
5
|
+
code: string;
|
|
6
|
+
/**
|
|
7
|
+
* The language of the code.
|
|
8
|
+
*/
|
|
9
|
+
language?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ElmShikiHighlighter: import("@builder.io/qwik").Component<ElmShikiHighlighterProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmShikiHighlighter } from "./elm-shiki-highlighter";
|
|
3
|
+
declare const meta: Meta<typeof ElmShikiHighlighter>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmBlockFallback } from "./elm-block-fallback";
|
|
3
|
+
declare const meta: Meta<typeof ElmBlockFallback>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmRectangleWave } from "./elm-rectangle-wave";
|
|
3
|
+
declare const meta: Meta<typeof ElmRectangleWave>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type CSSProperties } from "@builder.io/qwik";
|
|
2
|
+
export interface ElmDotLoadingIconProps {
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the color of the dot.
|
|
5
|
+
*
|
|
6
|
+
* e.g.) `'red'`, `'#ff0000'`, `'rgba(255, 0, 0, 0.5)'`
|
|
7
|
+
*/
|
|
8
|
+
color?: CSSProperties["backgroundColor"];
|
|
9
|
+
/**
|
|
10
|
+
* Specifies the size of the dot.
|
|
11
|
+
*/
|
|
12
|
+
size?: CSSProperties["width"];
|
|
13
|
+
}
|
|
14
|
+
export declare const ElmDotLoadingIcon: import("@builder.io/qwik").Component<ElmDotLoadingIconProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmDotLoadingIcon } from "./elm-dot-loading-icon";
|
|
3
|
+
declare const meta: Meta<typeof ElmDotLoadingIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component } from "@builder.io/qwik";
|
|
2
|
+
export declare const LANGUAGES: readonly ["rust", "javascript", "typescript", "shell", "terraform", "html", "css", "npm", "java", "kotlin", "go", "python", "sql", "json", "lua", "csharp", "cpp", "c", "file"];
|
|
3
|
+
export type Language = (typeof LANGUAGES)[number];
|
|
4
|
+
export interface ElmLanguageIconProps {
|
|
5
|
+
/**
|
|
6
|
+
* The size of the icon.
|
|
7
|
+
*/
|
|
8
|
+
size?: number;
|
|
9
|
+
/**
|
|
10
|
+
* The language of the icon.
|
|
11
|
+
*/
|
|
12
|
+
language: Language | string;
|
|
13
|
+
}
|
|
14
|
+
export declare const ElmLanguageIcon: Component<ElmLanguageIconProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmLanguageIcon } from "./elm-language-icon";
|
|
3
|
+
declare const meta: Meta<typeof ElmLanguageIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Numberish } from "@builder.io/qwik";
|
|
2
|
+
export interface ElmBlockImageProps {
|
|
3
|
+
/**
|
|
4
|
+
* Image source URL
|
|
5
|
+
*/
|
|
6
|
+
src: string;
|
|
7
|
+
/**
|
|
8
|
+
* Image alt text
|
|
9
|
+
*/
|
|
10
|
+
alt?: string;
|
|
11
|
+
enableModal?: boolean;
|
|
12
|
+
caption?: string;
|
|
13
|
+
width?: Numberish;
|
|
14
|
+
height?: Numberish;
|
|
15
|
+
}
|
|
16
|
+
export declare const ElmBlockImage: import("@builder.io/qwik").Component<ElmBlockImageProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmBlockImage } from "./elm-block-image";
|
|
3
|
+
declare const meta: Meta<typeof ElmBlockImage>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Svg: Story;
|
|
8
|
+
export declare const LongAlt: Story;
|
|
9
|
+
export declare const Invalid: Story;
|
|
10
|
+
export declare const Landscape: Story;
|
|
11
|
+
export declare const Portrait: Story;
|
|
12
|
+
export declare const Square: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ElmFileProps {
|
|
2
|
+
/**
|
|
3
|
+
* The name of the file.
|
|
4
|
+
*/
|
|
5
|
+
name?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The source of the file.
|
|
8
|
+
*/
|
|
9
|
+
src: string;
|
|
10
|
+
/**
|
|
11
|
+
* The size of the file in bytes.
|
|
12
|
+
*/
|
|
13
|
+
filesize?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const ElmFile: import("@builder.io/qwik").Component<ElmFileProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmFile } from "./elm-file";
|
|
3
|
+
declare const meta: Meta<typeof ElmFile>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Secondary: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface ElmBookmarkProps {
|
|
2
|
+
/**
|
|
3
|
+
* The title of the bookmark.
|
|
4
|
+
*/
|
|
5
|
+
title?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The description of the bookmark.
|
|
8
|
+
*/
|
|
9
|
+
description?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The image to display.
|
|
12
|
+
* This can be a URL or a base64-encoded image.
|
|
13
|
+
*/
|
|
14
|
+
image?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The URL to navigate to.
|
|
17
|
+
*/
|
|
18
|
+
url?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The URL of the favicon.
|
|
21
|
+
*/
|
|
22
|
+
favicon?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const ElmBookmark: import("@builder.io/qwik").Component<ElmBookmarkProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmBookmark } from "./elm-bookmark";
|
|
3
|
+
declare const meta: Meta<typeof ElmBookmark>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const WithoutDate: Story;
|
|
8
|
+
export declare const Card: Story;
|
|
9
|
+
export declare const Square: Story;
|
|
10
|
+
export declare const SquareCard: Story;
|
|
11
|
+
export declare const InvalidImage: Story;
|
|
12
|
+
export declare const NoImage: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ElmTableCellProps {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the cell is a header cell.
|
|
4
|
+
*/
|
|
5
|
+
hasHeader?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The text content of the cell.
|
|
8
|
+
* If not provided, the cell will render its children as content.
|
|
9
|
+
*/
|
|
10
|
+
text?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const ElmTableCell: import("@builder.io/qwik").Component<ElmTableCellProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CSSProperties } from "@builder.io/qwik";
|
|
2
|
+
export declare const HasRowHeaderContext: import("@builder.io/qwik").ContextId<Readonly<{
|
|
3
|
+
value: boolean;
|
|
4
|
+
}>>;
|
|
5
|
+
export interface ElmTableProps {
|
|
6
|
+
/**
|
|
7
|
+
* The margin of the table.
|
|
8
|
+
*/
|
|
9
|
+
margin?: CSSProperties["marginBlock"];
|
|
10
|
+
caption?: string;
|
|
11
|
+
hasRowHeader?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const ElmTable: import("@builder.io/qwik").Component<ElmTableProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmCallout } from "./elm-callout";
|
|
3
|
+
declare const meta: Meta<typeof ElmCallout>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Tip: Story;
|
|
8
|
+
export declare const Important: Story;
|
|
9
|
+
export declare const Warning: Story;
|
|
10
|
+
export declare const Caution: Story;
|