@elmethis/core 1.0.0-alpha.1

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 (88) hide show
  1. package/dist/Bash-nrQ4AW4P.js +26 -0
  2. package/dist/JavaScript-C4Aer4yq.js +22 -0
  3. package/dist/Rust-Bkg6BX0_.js +16 -0
  4. package/dist/TypeScript-LP8g9NCC.js +22 -0
  5. package/dist/components/code/ElmCodeBlock.stories.d.ts +7 -0
  6. package/dist/components/code/ElmCodeBlock.vue.d.ts +19 -0
  7. package/dist/components/code/ElmKatex.stories.d.ts +8 -0
  8. package/dist/components/code/ElmKatex.vue.d.ts +18 -0
  9. package/dist/components/code/ElmPrismHighlighter.stories.d.ts +7 -0
  10. package/dist/components/code/ElmPrismHighlighter.vue.d.ts +14 -0
  11. package/dist/components/containments/ElmToggle.stories.d.ts +6 -0
  12. package/dist/components/containments/ElmToggle.vue.d.ts +30 -0
  13. package/dist/components/containments/ElmTooltip.stories.d.ts +6 -0
  14. package/dist/components/containments/ElmTooltip.vue.d.ts +21 -0
  15. package/dist/components/fallback/ElmRectangleWave.stories.d.ts +6 -0
  16. package/dist/components/fallback/ElmRectangleWave.vue.d.ts +4 -0
  17. package/dist/components/form/ElmCheckbox.stories.d.ts +6 -0
  18. package/dist/components/form/ElmCheckbox.vue.d.ts +16 -0
  19. package/dist/components/headings/ElmHeading1.stories.d.ts +6 -0
  20. package/dist/components/headings/ElmHeading1.vue.d.ts +20 -0
  21. package/dist/components/headings/ElmHeading2.stories.d.ts +6 -0
  22. package/dist/components/headings/ElmHeading2.vue.d.ts +20 -0
  23. package/dist/components/headings/ElmHeading3.stories.d.ts +6 -0
  24. package/dist/components/headings/ElmHeading3.vue.d.ts +20 -0
  25. package/dist/components/headings/ElmHeading4.stories.d.ts +6 -0
  26. package/dist/components/headings/ElmHeading4.vue.d.ts +20 -0
  27. package/dist/components/headings/ElmHeading5.stories.d.ts +6 -0
  28. package/dist/components/headings/ElmHeading5.vue.d.ts +20 -0
  29. package/dist/components/headings/ElmHeading6.stories.d.ts +6 -0
  30. package/dist/components/headings/ElmHeading6.vue.d.ts +20 -0
  31. package/dist/components/icon/ElmCubeIcon.stories.d.ts +6 -0
  32. package/dist/components/icon/ElmCubeIcon.vue.d.ts +10 -0
  33. package/dist/components/icon/ElmDotLoadingIcon.stories.d.ts +6 -0
  34. package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +18 -0
  35. package/dist/components/icon/ElmLanguageIcon.stories.d.ts +6 -0
  36. package/dist/components/icon/ElmLanguageIcon.vue.d.ts +14 -0
  37. package/dist/components/icon/ElmToggleTheme.stories.d.ts +6 -0
  38. package/dist/components/icon/ElmToggleTheme.vue.d.ts +11 -0
  39. package/dist/components/icon/languages/Bash.vue.d.ts +2 -0
  40. package/dist/components/icon/languages/JavaScript.vue.d.ts +2 -0
  41. package/dist/components/icon/languages/Rust.vue.d.ts +2 -0
  42. package/dist/components/icon/languages/TypeScript.vue.d.ts +2 -0
  43. package/dist/components/inline/ElmInlineCode.stories.d.ts +6 -0
  44. package/dist/components/inline/ElmInlineCode.vue.d.ts +15 -0
  45. package/dist/components/inline/ElmInlineLink.stories.d.ts +9 -0
  46. package/dist/components/inline/ElmInlineLink.vue.d.ts +37 -0
  47. package/dist/components/inline/ElmInlineRuby.stories.d.ts +6 -0
  48. package/dist/components/inline/ElmInlineRuby.vue.d.ts +19 -0
  49. package/dist/components/inline/ElmInlineText.stories.d.ts +7 -0
  50. package/dist/components/inline/ElmInlineText.vue.d.ts +40 -0
  51. package/dist/components/media/ElmImage.stories.d.ts +7 -0
  52. package/dist/components/media/ElmImage.vue.d.ts +18 -0
  53. package/dist/components/navigation/ElmBookmark.stories.d.ts +8 -0
  54. package/dist/components/navigation/ElmBookmark.vue.d.ts +49 -0
  55. package/dist/components/navigation/ElmBreadcrumb.stories.d.ts +7 -0
  56. package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +17 -0
  57. package/dist/components/navigation/ElmPagetop.stories.d.ts +6 -0
  58. package/dist/components/navigation/ElmPagetop.vue.d.ts +10 -0
  59. package/dist/components/renderer/ElmJsonRenderer.stories.d.ts +18 -0
  60. package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +138 -0
  61. package/dist/components/table/ElmTable.stories.d.ts +6 -0
  62. package/dist/components/table/ElmTable.vue.d.ts +18 -0
  63. package/dist/components/table/ElmTableBody.vue.d.ts +18 -0
  64. package/dist/components/table/ElmTableCell.vue.d.ts +29 -0
  65. package/dist/components/table/ElmTableHeader.vue.d.ts +18 -0
  66. package/dist/components/table/ElmTableRow.vue.d.ts +18 -0
  67. package/dist/components/template/ElmTemplate.stories.d.ts +6 -0
  68. package/dist/components/template/ElmTemplate.vue.d.ts +4 -0
  69. package/dist/components/typography/ElmBlockQuote.stories.d.ts +6 -0
  70. package/dist/components/typography/ElmBlockQuote.vue.d.ts +20 -0
  71. package/dist/components/typography/ElmBulletedList.stories.d.ts +7 -0
  72. package/dist/components/typography/ElmBulletedList.vue.d.ts +20 -0
  73. package/dist/components/typography/ElmCallout.stories.d.ts +10 -0
  74. package/dist/components/typography/ElmCallout.vue.d.ts +27 -0
  75. package/dist/components/typography/ElmDivider.stories.d.ts +6 -0
  76. package/dist/components/typography/ElmDivider.vue.d.ts +4 -0
  77. package/dist/components/typography/ElmListItem.stories.d.ts +6 -0
  78. package/dist/components/typography/ElmListItem.vue.d.ts +18 -0
  79. package/dist/components/typography/ElmNumberedList.stories.d.ts +7 -0
  80. package/dist/components/typography/ElmNumberedList.vue.d.ts +20 -0
  81. package/dist/components/typography/ElmParagraph.stories.d.ts +6 -0
  82. package/dist/components/typography/ElmParagraph.vue.d.ts +20 -0
  83. package/dist/elmethis.js +39 -0
  84. package/dist/elmethis.umd.cjs +419 -0
  85. package/dist/index-CQpTLLBe.js +15827 -0
  86. package/dist/index.d.ts +37 -0
  87. package/dist/vite.svg +1 -0
  88. package/package.json +30 -0
@@ -0,0 +1,37 @@
1
+ import { Property } from 'csstype';
2
+ export interface ElmInlineLinkProps {
3
+ /**
4
+ * The text to display.
5
+ */
6
+ text?: string;
7
+ /**
8
+ * The URL to navigate to.
9
+ *
10
+ * e.g. `https://example.com`
11
+ */
12
+ href?: string;
13
+ /**
14
+ * Specifies the font size of the text.
15
+ */
16
+ size?: Property.FontSize;
17
+ /**
18
+ * Whether to open the link in a new tab.
19
+ * Defaults to `true`.
20
+ */
21
+ openInNewTab?: boolean;
22
+ /**
23
+ * The type of icon to display.
24
+ * If not provided, the icon is determined by the `openInNewTab` prop.
25
+ */
26
+ iconType?: 'internal' | 'external';
27
+ /**
28
+ * The function to call when the link is clicked.
29
+ * If provided, the default behavior (navigating to the URL) is prevented.
30
+ */
31
+ onClick?: () => void;
32
+ }
33
+ declare const _default: import('vue').DefineComponent<ElmInlineLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineLinkProps> & Readonly<{}>, {
34
+ size: Property.FontSize;
35
+ openInNewTab: boolean;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmInlineRuby } from './ElmInlineRuby.vue';
3
+ declare const meta: Meta<typeof ElmInlineRuby>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,19 @@
1
+ import { Property } from 'csstype';
2
+ export interface ElmInlineRubyProps {
3
+ /**
4
+ * The text to display.
5
+ */
6
+ text: string;
7
+ /**
8
+ * Specifies the color of the text.
9
+ *
10
+ * e.g.) `'red'`, `'#ff0000'`, `'rgba(255, 0, 0, 0.5)'`
11
+ */
12
+ color?: Property.BackgroundColor;
13
+ /**
14
+ * The ruby text to display.
15
+ */
16
+ ruby: string;
17
+ }
18
+ declare const _default: import('vue').DefineComponent<ElmInlineRubyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineRubyProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmInlineText } from './ElmInlineText.vue';
3
+ declare const meta: Meta<typeof ElmInlineText>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
7
+ export declare const Colored: Story;
@@ -0,0 +1,40 @@
1
+ import { Property } from 'csstype';
2
+ export interface ElmInlineTextProps {
3
+ /**
4
+ * The text to display.
5
+ */
6
+ text: string;
7
+ /**
8
+ * Specifies the color of the text.
9
+ *
10
+ * e.g.) `'red'`, `'#ff0000'`, `'rgba(255, 0, 0, 0.5)'`
11
+ */
12
+ color?: Property.BackgroundColor;
13
+ /**
14
+ * Specifies the font size of the text.
15
+ */
16
+ size?: Property.FontSize;
17
+ /**
18
+ * Specifies whether the text should be bold.
19
+ */
20
+ bold?: boolean;
21
+ /**
22
+ * Specifies whether the text should be italic.
23
+ */
24
+ italic?: boolean;
25
+ /**
26
+ * Specifies whether the text should be underlined.
27
+ */
28
+ underline?: boolean;
29
+ /**
30
+ * Specifies whether the text should be strikethrough.
31
+ */
32
+ strikethrough?: boolean;
33
+ }
34
+ declare const _default: import('vue').DefineComponent<ElmInlineTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineTextProps> & Readonly<{}>, {
35
+ bold: boolean;
36
+ italic: boolean;
37
+ underline: boolean;
38
+ strikethrough: boolean;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
40
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmImage } from './ElmImage.vue';
3
+ declare const meta: Meta<typeof ElmImage>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
7
+ export declare const Modal: Story;
@@ -0,0 +1,18 @@
1
+ export interface ElmImageProps {
2
+ /**
3
+ * Image source URL
4
+ */
5
+ src: string;
6
+ /**
7
+ * Image alt text
8
+ */
9
+ alt?: string;
10
+ /**
11
+ * Enable modal on image click. Default: `false`
12
+ */
13
+ enableModal?: boolean;
14
+ }
15
+ declare const _default: import('vue').DefineComponent<ElmImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmImageProps> & Readonly<{}>, {
16
+ enableModal: boolean;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmBookmark } from './ElmBookmark.vue';
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;
@@ -0,0 +1,49 @@
1
+ export interface ElmBookmarkProps {
2
+ /**
3
+ * Whether to display the bookmark horizontally.
4
+ */
5
+ isHorizontal?: boolean;
6
+ /**
7
+ * Whether to hide the URL.
8
+ */
9
+ hideUrl?: boolean;
10
+ /**
11
+ * Whether to open the link in a new tab.
12
+ * Defaults to `true`.
13
+ */
14
+ openInNewTab?: boolean;
15
+ /**
16
+ * The title of the bookmark.
17
+ */
18
+ title: string;
19
+ /**
20
+ * The description of the bookmark.
21
+ */
22
+ description?: string;
23
+ /**
24
+ * The image to display.
25
+ * This can be a URL or a base64-encoded image.
26
+ */
27
+ image: string;
28
+ /**
29
+ * The URL to navigate to.
30
+ */
31
+ url: string;
32
+ /**
33
+ * The date the bookmark was created.
34
+ */
35
+ createdAt?: string;
36
+ updatedAt?: string;
37
+ /**
38
+ * The function to call when the link is clicked.
39
+ * If provided, the default behavior (navigating to the URL) is prevented.
40
+ */
41
+ onClick?: () => void;
42
+ }
43
+ declare const _default: import('vue').DefineComponent<ElmBookmarkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBookmarkProps> & Readonly<{}>, {
44
+ openInNewTab: boolean;
45
+ isHorizontal: boolean;
46
+ hideUrl: boolean;
47
+ description: string;
48
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
49
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmBreadcrumb } from './ElmBreadcrumb.vue';
3
+ declare const meta: Meta<typeof ElmBreadcrumb>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
7
+ export declare const Long: Story;
@@ -0,0 +1,17 @@
1
+ export interface ElmBreadcrumbProps {
2
+ /**
3
+ * The links to display.
4
+ */
5
+ links: Array<{
6
+ /**
7
+ * The text to display.
8
+ */
9
+ text: string;
10
+ /**
11
+ * The action to perform when the link is clicked.
12
+ */
13
+ onClick?: () => void;
14
+ }>;
15
+ }
16
+ declare const _default: import('vue').DefineComponent<ElmBreadcrumbProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmPagetop } from './ElmPagetop.vue';
3
+ declare const meta: Meta<typeof ElmPagetop>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,10 @@
1
+ export interface ElmPagetopProps {
2
+ /**
3
+ * Specifies the position of the button.
4
+ */
5
+ position?: 'left' | 'right';
6
+ }
7
+ declare const _default: import('vue').DefineComponent<ElmPagetopProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmPagetopProps> & Readonly<{}>, {
8
+ position: "left" | "right";
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmJsonRenderer } from './ElmJsonRenderer.vue';
3
+ declare const meta: Meta<typeof ElmJsonRenderer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
7
+ export declare const Callout: Story;
8
+ export declare const BulletedList: Story;
9
+ export declare const NumberedList: Story;
10
+ export declare const Blockquote: Story;
11
+ export declare const Divider: Story;
12
+ export declare const Headings: Story;
13
+ export declare const CodeBlock: Story;
14
+ export declare const Paragraph: Story;
15
+ export declare const Table: Story;
16
+ export declare const Katex: Story;
17
+ export declare const Image: Story;
18
+ export declare const Bookmark: Story;
@@ -0,0 +1,138 @@
1
+ import { ElmInlineTextProps } from '../inline/ElmInlineText.vue';
2
+ import { ElmInlineCodeProps } from '../inline/ElmInlineCode.vue';
3
+ import { ElmInlineLinkProps } from '../inline/ElmInlineLink.vue';
4
+ import { ElmCalloutProps } from '../typography/ElmCallout.vue';
5
+ import { ElmBulletedListProps } from '../typography/ElmBulletedList.vue';
6
+ import { ElmNumberedListProps } from '../typography/ElmNumberedList.vue';
7
+ import { ElmListItemProps } from '../typography/ElmListItem.vue';
8
+ import { ElmBlockQuoteProps } from '../typography/ElmBlockQuote.vue';
9
+ import { ElmDividerProps } from '../typography/ElmDivider.vue';
10
+ import { ElmHeading1Props } from '../headings/ElmHeading1.vue';
11
+ import { ElmHeading2Props } from '../headings/ElmHeading2.vue';
12
+ import { ElmHeading3Props } from '../headings/ElmHeading3.vue';
13
+ import { ElmHeading4Props } from '../headings/ElmHeading4.vue';
14
+ import { ElmHeading5Props } from '../headings/ElmHeading5.vue';
15
+ import { ElmHeading6Props } from '../headings/ElmHeading6.vue';
16
+ import { ElmCodeBlockProps } from '../code/ElmCodeBlock.vue';
17
+ import { ElmParagraphProps } from '../typography/ElmParagraph.vue';
18
+ import { ElmTableProps } from '../table/ElmTable.vue';
19
+ import { ElmTableHeaderProps } from '../table/ElmTableHeader.vue';
20
+ import { ElmTableBodyProps } from '../table/ElmTableBody.vue';
21
+ import { ElmTableRowProps } from '../table/ElmTableRow.vue';
22
+ import { ElmTableCellProps } from '../table/ElmTableCell.vue';
23
+ import { ElmKatexProps } from '../code/ElmKatex.vue';
24
+ import { ElmImageProps } from '../media/ElmImage.vue';
25
+ import { ElmBookmarkProps } from '../navigation/ElmBookmark.vue';
26
+ type ComponentType = 'ElmInlineText' | 'ElmInlineCode' | 'ElmInlineLink' | 'ElmCallout' | 'ElmBulletedList' | 'ElmNumberedList' | 'ElmListItem' | 'ElmBlockQuote' | 'ElmDivider' | 'ElmHeading1' | 'ElmHeading2' | 'ElmHeading3' | 'ElmHeading4' | 'ElmHeading5' | 'ElmHeading6' | 'ElmCodeBlock' | 'ElmParagraph' | 'ElmTable' | 'ElmTableHeader' | 'ElmTableBody' | 'ElmTableRow' | 'ElmTableCell' | 'ElmKatex' | 'ElmImage' | 'ElmBookmark';
27
+ type ComponentProps = ElmInlineTextProps | ElmInlineCodeProps | ElmInlineLinkProps | ElmCalloutProps | ElmBulletedListProps | ElmNumberedListProps | ElmListItemProps | ElmBlockQuoteProps | ElmDividerProps | ElmHeading1Props | ElmHeading2Props | ElmHeading3Props | ElmHeading4Props | ElmHeading5Props | ElmHeading6Props | ElmCodeBlockProps | ElmParagraphProps | ElmTableProps | ElmTableHeaderProps | ElmTableBodyProps | ElmTableRowProps | ElmTableCellProps | ElmKatexProps | ElmImageProps | ElmBookmarkProps;
28
+ interface JsonComponentBase {
29
+ type: ComponentType;
30
+ props?: ComponentProps;
31
+ children?: JsonComponent[];
32
+ }
33
+ interface ElmInlineTextJsonComponent extends JsonComponentBase {
34
+ type: 'ElmInlineText';
35
+ props?: ElmInlineTextProps;
36
+ }
37
+ interface ElmInlineCodeJsonComponent extends JsonComponentBase {
38
+ type: 'ElmInlineCode';
39
+ props?: ElmInlineCodeProps;
40
+ }
41
+ interface ElmInlineLinkJsonComponent extends JsonComponentBase {
42
+ type: 'ElmInlineLink';
43
+ props?: ElmInlineLinkProps;
44
+ }
45
+ interface ElmCalloutJsonComponent extends JsonComponentBase {
46
+ type: 'ElmCallout';
47
+ props?: ElmCalloutProps;
48
+ }
49
+ interface ElmBulletedListJsonComponent extends JsonComponentBase {
50
+ type: 'ElmBulletedList';
51
+ props?: ElmBulletedListProps;
52
+ }
53
+ interface ElmNumberedListJsonComponent extends JsonComponentBase {
54
+ type: 'ElmNumberedList';
55
+ props?: ElmNumberedListProps;
56
+ }
57
+ interface ElmListItemJsonComponent extends JsonComponentBase {
58
+ type: 'ElmListItem';
59
+ props?: ElmListItemProps;
60
+ }
61
+ interface ElmBlockQuoteJsonComponent extends JsonComponentBase {
62
+ type: 'ElmBlockQuote';
63
+ props?: ElmBlockQuoteProps;
64
+ }
65
+ interface ElmDividerJsonComponent extends JsonComponentBase {
66
+ type: 'ElmDivider';
67
+ props?: ElmDividerProps;
68
+ }
69
+ interface ElmHeading1JsonComponent extends JsonComponentBase {
70
+ type: 'ElmHeading1';
71
+ props?: ElmHeading1Props;
72
+ }
73
+ interface ElmHeading2JsonComponent extends JsonComponentBase {
74
+ type: 'ElmHeading2';
75
+ props?: ElmHeading2Props;
76
+ }
77
+ interface ElmHeading3JsonComponent extends JsonComponentBase {
78
+ type: 'ElmHeading3';
79
+ props?: ElmHeading3Props;
80
+ }
81
+ interface ElmHeading4JsonComponent extends JsonComponentBase {
82
+ type: 'ElmHeading4';
83
+ props?: ElmHeading4Props;
84
+ }
85
+ interface ElmHeading5JsonComponent extends JsonComponentBase {
86
+ type: 'ElmHeading5';
87
+ props?: ElmHeading5Props;
88
+ }
89
+ interface ElmHeading6JsonComponent extends JsonComponentBase {
90
+ type: 'ElmHeading6';
91
+ props?: ElmHeading6Props;
92
+ }
93
+ interface ElmCodeBlockJsonComponent extends JsonComponentBase {
94
+ type: 'ElmCodeBlock';
95
+ props?: ElmCodeBlockProps;
96
+ }
97
+ interface ElmParagraphJsonComponent extends JsonComponentBase {
98
+ type: 'ElmParagraph';
99
+ props?: ElmParagraphProps;
100
+ }
101
+ interface ElmTableJsonComponent extends JsonComponentBase {
102
+ type: 'ElmTable';
103
+ props?: ElmTableProps;
104
+ }
105
+ interface ElmTableHeaderJsonComponent extends JsonComponentBase {
106
+ type: 'ElmTableHeader';
107
+ props?: ElmTableHeaderProps;
108
+ }
109
+ interface ElmTableBodyJsonComponent extends JsonComponentBase {
110
+ type: 'ElmTableBody';
111
+ props?: ElmTableBodyProps;
112
+ }
113
+ interface ElmTableRowJsonComponent extends JsonComponentBase {
114
+ type: 'ElmTableRow';
115
+ props?: ElmTableRowProps;
116
+ }
117
+ interface ElmTableCellJsonComponent extends JsonComponentBase {
118
+ type: 'ElmTableCell';
119
+ props?: ElmTableCellProps;
120
+ }
121
+ interface ElmKatexJsonComponent extends JsonComponentBase {
122
+ type: 'ElmKatex';
123
+ props?: ElmKatexProps;
124
+ }
125
+ interface ElmImageJsonComponent extends JsonComponentBase {
126
+ type: 'ElmImage';
127
+ props?: ElmImageProps;
128
+ }
129
+ interface ElmBookmarkJsonComponent extends JsonComponentBase {
130
+ type: 'ElmBookmark';
131
+ props?: ElmBookmarkProps;
132
+ }
133
+ type JsonComponent = ElmInlineTextJsonComponent | ElmInlineCodeJsonComponent | ElmInlineLinkJsonComponent | ElmCalloutJsonComponent | ElmBulletedListJsonComponent | ElmNumberedListJsonComponent | ElmListItemJsonComponent | ElmBlockQuoteJsonComponent | ElmDividerJsonComponent | ElmHeading1JsonComponent | ElmHeading2JsonComponent | ElmHeading3JsonComponent | ElmHeading4JsonComponent | ElmHeading5JsonComponent | ElmHeading6JsonComponent | ElmCodeBlockJsonComponent | ElmParagraphJsonComponent | ElmTableJsonComponent | ElmTableHeaderJsonComponent | ElmTableBodyJsonComponent | ElmTableRowJsonComponent | ElmTableCellJsonComponent | ElmKatexJsonComponent | ElmImageJsonComponent | ElmBookmarkJsonComponent;
134
+ export interface ElmJsonRendererProps {
135
+ json: JsonComponent[];
136
+ }
137
+ declare const _default: import('vue').DefineComponent<ElmJsonRendererProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmJsonRendererProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
138
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmTable } from './ElmTable.vue';
3
+ declare const meta: Meta<typeof ElmTable>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,18 @@
1
+ export interface ElmTableProps {
2
+ }
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ attrs: Partial<{}>;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ElmTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,18 @@
1
+ export interface ElmTableBodyProps {
2
+ }
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ attrs: Partial<{}>;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ElmTableBodyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableBodyProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,29 @@
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
+ declare function __VLS_template(): {
13
+ slots: {
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ attrs: Partial<{}>;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<ElmTableCellProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableCellProps> & Readonly<{}>, {
21
+ hasHeader: boolean;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,18 @@
1
+ export interface ElmTableHeaderProps {
2
+ }
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ attrs: Partial<{}>;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ElmTableHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,18 @@
1
+ export interface ElmTableRowProps {
2
+ }
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ attrs: Partial<{}>;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ElmTableRowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableRowProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmTemplate } from './ElmTemplate.vue';
3
+ declare const meta: Meta<typeof ElmTemplate>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,4 @@
1
+ export interface ElmTemplateProps {
2
+ }
3
+ declare const _default: import('vue').DefineComponent<ElmTemplateProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTemplateProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
4
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmBlockQuote } from './ElmBlockQuote.vue';
3
+ declare const meta: Meta<typeof ElmBlockQuote>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,20 @@
1
+ export interface ElmBlockQuoteProps {
2
+ }
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {
8
+ target: HTMLQuoteElement;
9
+ };
10
+ attrs: Partial<{}>;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<ElmBlockQuoteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBlockQuoteProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmBulletedList } from './ElmBulletedList.vue';
3
+ declare const meta: Meta<typeof ElmBulletedList>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
7
+ export declare const Nested: Story;
@@ -0,0 +1,20 @@
1
+ export interface ElmBulletedListProps {
2
+ }
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {
8
+ target: HTMLUListElement;
9
+ };
10
+ attrs: Partial<{}>;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<ElmBulletedListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBulletedListProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmCallout } from './ElmCallout.vue';
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;
@@ -0,0 +1,27 @@
1
+ export type AlertType = 'note' | 'tip' | 'important' | 'warning' | 'caution';
2
+ export interface ElmCalloutProps {
3
+ /**
4
+ * Type of alert
5
+ */
6
+ type?: AlertType;
7
+ }
8
+ declare function __VLS_template(): {
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {
13
+ target: HTMLElement;
14
+ };
15
+ attrs: Partial<{}>;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<ElmCalloutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmCalloutProps> & Readonly<{}>, {
19
+ type: AlertType;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmDivider } from './ElmDivider.vue';
3
+ declare const meta: Meta<typeof ElmDivider>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,4 @@
1
+ export interface ElmDividerProps {
2
+ }
3
+ declare const _default: import('vue').DefineComponent<ElmDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmDividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
4
+ export default _default;