@elmethis/core 1.0.0-alpha.157 → 1.0.0-alpha.158
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/dist/components/inline/ElmInlineIcon.stories.d.ts +6 -0
- package/dist/components/inline/ElmInlineIcon.vue.d.ts +6 -0
- package/dist/components/inline/ElmInlineIcon.vue.mjs +10 -0
- package/dist/components/inline/ElmInlineIcon.vue2.mjs +21 -0
- package/dist/components/inline/ElmInlineIcon.vue3.mjs +8 -0
- package/dist/components/inline/ElmInlineText.vue3.mjs +2 -2
- package/dist/components/renderer/ElmJsonRenderer.stories.d.ts +1 -0
- package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +9 -3
- package/dist/components/renderer/ElmJsonRenderer.vue.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface ElmInlineIconProps {
|
|
2
|
+
src: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<ElmInlineIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLImageElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmInlineIcon.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmInlineIcon.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmInlineIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmInlineIcon as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass } from "vue";
|
|
2
|
+
const _hoisted_1 = ["src", "alt"];
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmInlineIcon",
|
|
5
|
+
props: {
|
|
6
|
+
src: {},
|
|
7
|
+
alt: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
return (_ctx, _cache) => {
|
|
11
|
+
return openBlock(), createElementBlock("img", {
|
|
12
|
+
class: normalizeClass(_ctx.$style.icon),
|
|
13
|
+
src: _ctx.src,
|
|
14
|
+
alt: _ctx.alt
|
|
15
|
+
}, null, 10, _hoisted_1);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
_sfc_main as default
|
|
21
|
+
};
|
|
@@ -4,6 +4,7 @@ declare const meta: Meta<typeof ElmJsonRenderer>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Primary: Story;
|
|
7
|
+
export declare const InlineIcon: Story;
|
|
7
8
|
export declare const Callout: Story;
|
|
8
9
|
export declare const BulletedList: Story;
|
|
9
10
|
export declare const NumberedList: Story;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElmInlineTextProps } from '../inline/ElmInlineText.vue';
|
|
2
2
|
import { ElmInlineLinkProps } from '../inline/ElmInlineLink.vue';
|
|
3
|
+
import { ElmInlineIconProps } from '../inline/ElmInlineIcon.vue';
|
|
3
4
|
import { ElmCalloutProps } from '../typography/ElmCallout.vue';
|
|
4
5
|
import { ElmBulletedListProps } from '../typography/ElmBulletedList.vue';
|
|
5
6
|
import { ElmNumberedListProps } from '../typography/ElmNumberedList.vue';
|
|
@@ -27,8 +28,8 @@ import { ElmCheckboxProps } from '../form/ElmCheckbox.vue';
|
|
|
27
28
|
import { ElmFileProps } from '../media/ElmFile.vue';
|
|
28
29
|
import { ElmColumnProps } from '../containments/ElmColumn.vue';
|
|
29
30
|
import { ElmColumnListProps } from '../containments/ElmColumnList.vue';
|
|
30
|
-
type ComponentType = 'ElmInlineText' | 'ElmInlineLink' | 'ElmCallout' | 'ElmBulletedList' | 'ElmNumberedList' | 'ElmListItem' | 'ElmBlockQuote' | 'ElmDivider' | 'ElmHeading1' | 'ElmHeading2' | 'ElmHeading3' | 'ElmHeading4' | 'ElmHeading5' | 'ElmHeading6' | 'ElmCodeBlock' | 'ElmParagraph' | 'ElmTable' | 'ElmTableHeader' | 'ElmTableBody' | 'ElmTableRow' | 'ElmTableCell' | 'ElmKatex' | 'ElmImage' | 'ElmBookmark' | 'ElmToggle' | 'ElmCheckbox' | 'ElmFile' | 'ElmColumn' | 'ElmColumnList';
|
|
31
|
-
type ComponentProps = ElmInlineTextProps | ElmInlineLinkProps | ElmCalloutProps | ElmBulletedListProps | ElmNumberedListProps | ElmListItemProps | ElmBlockQuoteProps | ElmDividerProps | ElmHeading1Props | ElmHeading2Props | ElmHeading3Props | ElmHeading4Props | ElmHeading5Props | ElmHeading6Props | ElmCodeBlockProps | ElmParagraphProps | ElmTableProps | ElmTableHeaderProps | ElmTableBodyProps | ElmTableRowProps | ElmTableCellProps | ElmKatexProps | ElmImageProps | ElmBookmarkProps | ElmToggleProps | ElmCheckboxProps | ElmFileProps | ElmColumnProps | ElmColumnListProps;
|
|
31
|
+
type ComponentType = 'ElmInlineText' | 'ElmInlineLink' | 'ElmInlineIcon' | 'ElmCallout' | 'ElmBulletedList' | 'ElmNumberedList' | 'ElmListItem' | 'ElmBlockQuote' | 'ElmDivider' | 'ElmHeading1' | 'ElmHeading2' | 'ElmHeading3' | 'ElmHeading4' | 'ElmHeading5' | 'ElmHeading6' | 'ElmCodeBlock' | 'ElmParagraph' | 'ElmTable' | 'ElmTableHeader' | 'ElmTableBody' | 'ElmTableRow' | 'ElmTableCell' | 'ElmKatex' | 'ElmImage' | 'ElmBookmark' | 'ElmToggle' | 'ElmCheckbox' | 'ElmFile' | 'ElmColumn' | 'ElmColumnList';
|
|
32
|
+
type ComponentProps = ElmInlineTextProps | ElmInlineLinkProps | ElmInlineIconProps | ElmCalloutProps | ElmBulletedListProps | ElmNumberedListProps | ElmListItemProps | ElmBlockQuoteProps | ElmDividerProps | ElmHeading1Props | ElmHeading2Props | ElmHeading3Props | ElmHeading4Props | ElmHeading5Props | ElmHeading6Props | ElmCodeBlockProps | ElmParagraphProps | ElmTableProps | ElmTableHeaderProps | ElmTableBodyProps | ElmTableRowProps | ElmTableCellProps | ElmKatexProps | ElmImageProps | ElmBookmarkProps | ElmToggleProps | ElmCheckboxProps | ElmFileProps | ElmColumnProps | ElmColumnListProps;
|
|
32
33
|
interface JsonComponentBase {
|
|
33
34
|
type: ComponentType;
|
|
34
35
|
id?: string;
|
|
@@ -45,6 +46,11 @@ interface ElmInlineLinkJsonComponent extends JsonComponentBase {
|
|
|
45
46
|
id?: string;
|
|
46
47
|
props?: ElmInlineLinkProps;
|
|
47
48
|
}
|
|
49
|
+
interface ElmInlineIconJsonComponent extends JsonComponentBase {
|
|
50
|
+
type: 'ElmInlineIcon';
|
|
51
|
+
id?: string;
|
|
52
|
+
props?: ElmInlineIconProps;
|
|
53
|
+
}
|
|
48
54
|
interface ElmCalloutJsonComponent extends JsonComponentBase {
|
|
49
55
|
type: 'ElmCallout';
|
|
50
56
|
id?: string;
|
|
@@ -180,7 +186,7 @@ interface ElmColumnListJsonComponent extends JsonComponentBase {
|
|
|
180
186
|
id?: string;
|
|
181
187
|
props?: ElmColumnListProps;
|
|
182
188
|
}
|
|
183
|
-
type JsonComponent = ElmInlineTextJsonComponent | ElmInlineLinkJsonComponent | ElmCalloutJsonComponent | ElmBulletedListJsonComponent | ElmNumberedListJsonComponent | ElmListItemJsonComponent | ElmBlockQuoteJsonComponent | ElmDividerJsonComponent | ElmHeading1JsonComponent | ElmHeading2JsonComponent | ElmHeading3JsonComponent | ElmHeading4JsonComponent | ElmHeading5JsonComponent | ElmHeading6JsonComponent | ElmCodeBlockJsonComponent | ElmParagraphJsonComponent | ElmTableJsonComponent | ElmTableHeaderJsonComponent | ElmTableBodyJsonComponent | ElmTableRowJsonComponent | ElmTableCellJsonComponent | ElmKatexJsonComponent | ElmImageJsonComponent | ElmBookmarkJsonComponent | ElmToggleJsonComponent | ElmCheckboxJsonComponent | ElmFileJsonComponent | ElmColumnJsonComponent | ElmColumnListJsonComponent;
|
|
189
|
+
type JsonComponent = ElmInlineTextJsonComponent | ElmInlineLinkJsonComponent | ElmInlineIconJsonComponent | ElmCalloutJsonComponent | ElmBulletedListJsonComponent | ElmNumberedListJsonComponent | ElmListItemJsonComponent | ElmBlockQuoteJsonComponent | ElmDividerJsonComponent | ElmHeading1JsonComponent | ElmHeading2JsonComponent | ElmHeading3JsonComponent | ElmHeading4JsonComponent | ElmHeading5JsonComponent | ElmHeading6JsonComponent | ElmCodeBlockJsonComponent | ElmParagraphJsonComponent | ElmTableJsonComponent | ElmTableHeaderJsonComponent | ElmTableBodyJsonComponent | ElmTableRowJsonComponent | ElmTableCellJsonComponent | ElmKatexJsonComponent | ElmImageJsonComponent | ElmBookmarkJsonComponent | ElmToggleJsonComponent | ElmCheckboxJsonComponent | ElmFileJsonComponent | ElmColumnJsonComponent | ElmColumnListJsonComponent;
|
|
184
190
|
export interface ElmJsonRendererProps {
|
|
185
191
|
json: JsonComponent[];
|
|
186
192
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, markRaw, createBlock, openBlock, resolveDynamicComponent, h } from "vue";
|
|
2
2
|
import ElmInlineText from "../inline/ElmInlineText.vue.mjs";
|
|
3
3
|
import ElmInlineLink from "../inline/ElmInlineLink.vue.mjs";
|
|
4
|
+
import ElmInlineIcon from "../inline/ElmInlineIcon.vue.mjs";
|
|
4
5
|
import ElmCallout from "../typography/ElmCallout.vue.mjs";
|
|
5
6
|
import _sfc_main$5 from "../typography/ElmBulletedList.vue.mjs";
|
|
6
7
|
/* empty css */
|
|
@@ -41,6 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
42
|
const componentMap = {
|
|
42
43
|
ElmInlineText: markRaw(ElmInlineText),
|
|
43
44
|
ElmInlineLink: markRaw(ElmInlineLink),
|
|
45
|
+
ElmInlineIcon: markRaw(ElmInlineIcon),
|
|
44
46
|
ElmCallout: markRaw(ElmCallout),
|
|
45
47
|
ElmBulletedList: markRaw(_sfc_main$5),
|
|
46
48
|
ElmNumberedList: markRaw(_sfc_main$4),
|