@elmethis/core 1.0.0-alpha.2 → 1.0.0-alpha.21

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 (31) hide show
  1. package/dist/{Bash-nrQ4AW4P.js → Bash-FmP2QG69.js} +1 -1
  2. package/dist/{JavaScript-C4Aer4yq.js → JavaScript-BwWTdzdf.js} +1 -1
  3. package/dist/{Rust-Bkg6BX0_.js → Rust-D_qsTMKZ.js} +1 -1
  4. package/dist/{TypeScript-LP8g9NCC.js → TypeScript-iVTasrrG.js} +1 -1
  5. package/dist/components/containments/ElmColumn.stories.d.ts +6 -0
  6. package/dist/components/containments/ElmColumn.vue.d.ts +18 -0
  7. package/dist/components/containments/ElmColumnList.vue.d.ts +18 -0
  8. package/dist/components/containments/ElmDesktopWindow.stories.d.ts +6 -0
  9. package/dist/components/containments/ElmDesktopWindow.vue.d.ts +26 -0
  10. package/dist/components/containments/ElmModal.stories.d.ts +6 -0
  11. package/dist/components/containments/ElmModal.vue.d.ts +34 -0
  12. package/dist/components/containments/ElmParallax.stories.d.ts +6 -0
  13. package/dist/components/containments/ElmParallax.vue.d.ts +6 -0
  14. package/dist/components/data/ElmProgress.stories.d.ts +9 -0
  15. package/dist/components/data/ElmProgress.vue.d.ts +33 -0
  16. package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
  17. package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
  18. package/dist/components/media/ElmFile.stories.d.ts +6 -0
  19. package/dist/components/media/ElmFile.vue.d.ts +16 -0
  20. package/dist/components/navigation/ElmBookmark.stories.d.ts +2 -0
  21. package/dist/components/navigation/ElmTableOfContents.stories.d.ts +7 -0
  22. package/dist/components/navigation/ElmTableOfContents.vue.d.ts +9 -0
  23. package/dist/components/renderer/ElmJsonRenderer.stories.d.ts +1 -0
  24. package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +28 -3
  25. package/dist/elmethis.js +45 -34
  26. package/dist/elmethis.umd.cjs +19 -19
  27. package/dist/hooks/useElmethisTheme.d.ts +4 -0
  28. package/dist/{index-CQpTLLBe.js → index-BAirwQ5V.js} +3479 -2933
  29. package/dist/index.d.ts +13 -2
  30. package/package.json +36 -4
  31. package/dist/vite.svg +0 -1
@@ -1,5 +1,5 @@
1
1
  import { openBlock as t, createElementBlock as e, createElementVNode as c } from "vue";
2
- import { _ as o } from "./index-CQpTLLBe.js";
2
+ import { _ as o } from "./index-BAirwQ5V.js";
3
3
  const n = {}, s = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  viewBox: "0 0 128 128"
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as l, createElementVNode as t } from "vue";
2
- import { _ as o } from "./index-CQpTLLBe.js";
2
+ import { _ as o } from "./index-BAirwQ5V.js";
3
3
  const r = {}, n = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  viewBox: "0 0 128 128"
@@ -1,5 +1,5 @@
1
1
  import { openBlock as l, createElementBlock as t, createElementVNode as e } from "vue";
2
- import { _ as o } from "./index-CQpTLLBe.js";
2
+ import { _ as o } from "./index-BAirwQ5V.js";
3
3
  const s = {}, r = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  viewBox: "0 0 128 128",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as t, createElementBlock as e, createElementVNode as a } from "vue";
2
- import { _ as o } from "./index-CQpTLLBe.js";
2
+ import { _ as o } from "./index-BAirwQ5V.js";
3
3
  const l = {}, r = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  viewBox: "0 0 128 128"
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmColumnList } from './ElmColumnList.vue';
3
+ declare const meta: Meta<typeof ElmColumnList>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,18 @@
1
+ export interface ElmColumnProps {
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<ElmColumnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmColumnProps> & 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 ElmColumnListProps {
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<ElmColumnListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmColumnListProps> & 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 ElmDesktopWindow } from './ElmDesktopWindow.vue';
3
+ declare const meta: Meta<typeof ElmDesktopWindow>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,26 @@
1
+ import { Property } from 'csstype';
2
+ export interface ElmDesktopWindowProps {
3
+ /**
4
+ * The minimum height of the window.
5
+ * @default '6rem'
6
+ */
7
+ minHeight?: Property.MinHeight;
8
+ }
9
+ declare function __VLS_template(): {
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ attrs: Partial<{}>;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<ElmDesktopWindowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmDesktopWindowProps> & Readonly<{}>, {
18
+ minHeight: Property.MinHeight;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmModal } from './ElmModal.vue';
3
+ declare const meta: Meta<typeof ElmModal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,34 @@
1
+ import { Property } from 'csstype';
2
+ export interface ElmModalProps {
3
+ /**
4
+ * The width of the modal.
5
+ * @default '90%'
6
+ */
7
+ width: Property.Width;
8
+ }
9
+ declare let __VLS_typeProps: ElmModalProps;
10
+ type __VLS_PublicProps = {
11
+ 'isOpen'?: boolean;
12
+ } & typeof __VLS_typeProps;
13
+ declare function __VLS_template(): {
14
+ slots: {
15
+ default?(_: {}): any;
16
+ };
17
+ refs: {};
18
+ attrs: Partial<{}>;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ "update:isOpen": (isOpen: boolean) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ "onUpdate:isOpen"?: ((isOpen: boolean) => any) | undefined;
25
+ }>, {
26
+ width: Property.Width;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmParallax } from './ElmParallax.vue';
3
+ declare const meta: Meta<typeof ElmParallax>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,6 @@
1
+ export interface ElmParallaxProps {
2
+ imageUrl1: string;
3
+ imageUrl2: string;
4
+ }
5
+ declare const _default: import('vue').DefineComponent<ElmParallaxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmParallaxProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmProgress } from './ElmProgress.vue';
3
+ declare const meta: Meta<typeof ElmProgress>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
7
+ export declare const WithBuffer: Story;
8
+ export declare const Bold: Story;
9
+ export declare const WithColor: Story;
@@ -0,0 +1,33 @@
1
+ import { Property } from 'csstype';
2
+ export interface ElmProgressProps {
3
+ /**
4
+ * The current value of the progress.
5
+ */
6
+ value: number;
7
+ /**
8
+ * The buffer value of the progress.
9
+ */
10
+ buffer?: number;
11
+ /**
12
+ * The maximum value of the progress.
13
+ */
14
+ max?: number;
15
+ /**
16
+ * The weight of the progress.
17
+ */
18
+ weight: Property.Height<string | number>;
19
+ /**
20
+ * Whether the progress should be round.
21
+ */
22
+ round?: boolean;
23
+ /**
24
+ * The color of the progress.
25
+ */
26
+ color?: string;
27
+ }
28
+ declare const _default: import('vue').DefineComponent<ElmProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmProgressProps> & Readonly<{}>, {
29
+ max: number;
30
+ weight: Property.Height<string | number>;
31
+ round: boolean;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmLoginIcon } from './ElmLoginIcon.vue';
3
+ declare const meta: Meta<typeof ElmLoginIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,18 @@
1
+ export interface ElmLoginIconProps {
2
+ /**
3
+ * Specifies the width of the icon.
4
+ */
5
+ size?: string;
6
+ /**
7
+ * Specifies whether the icon is for login or logout.
8
+ */
9
+ isLogin?: boolean;
10
+ /**
11
+ * Specifies whether the icon is loading.
12
+ */
13
+ isLoading?: boolean;
14
+ }
15
+ declare const _default: import('vue').DefineComponent<ElmLoginIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmLoginIconProps> & Readonly<{}>, {
16
+ size: string;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmFile } from './ElmFile.vue';
3
+ declare const meta: Meta<typeof ElmFile>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,16 @@
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
+ declare const _default: import('vue').DefineComponent<ElmFileProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmFileProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -6,3 +6,5 @@ type Story = StoryObj<typeof meta>;
6
6
  export declare const Primary: Story;
7
7
  export declare const WithoutDate: Story;
8
8
  export declare const Card: Story;
9
+ export declare const Square: Story;
10
+ export declare const SquareCard: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
+ import { default as ElmTableOfContents } from './ElmTableOfContents.vue';
3
+ declare const meta: Meta<typeof ElmTableOfContents>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
7
+ export declare const Deep: Story;
@@ -0,0 +1,9 @@
1
+ export interface ElmTableOfContentsProps {
2
+ headings: Array<{
3
+ level: 1 | 2 | 3 | 4 | 5 | 6;
4
+ text: string;
5
+ id?: string;
6
+ }>;
7
+ }
8
+ declare const _default: import('vue').DefineComponent<ElmTableOfContentsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableOfContentsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -16,3 +16,4 @@ export declare const Table: Story;
16
16
  export declare const Katex: Story;
17
17
  export declare const Image: Story;
18
18
  export declare const Bookmark: Story;
19
+ export declare const Full: Story;
@@ -23,8 +23,13 @@ import { ElmTableCellProps } from '../table/ElmTableCell.vue';
23
23
  import { ElmKatexProps } from '../code/ElmKatex.vue';
24
24
  import { ElmImageProps } from '../media/ElmImage.vue';
25
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;
26
+ import { ElmToggleProps } from '../containments/ElmToggle.vue';
27
+ import { ElmCheckboxProps } from '../form/ElmCheckbox.vue';
28
+ import { ElmFileProps } from '../media/ElmFile.vue';
29
+ import { ElmColumnProps } from '../containments/ElmColumn.vue';
30
+ import { ElmColumnListProps } from '../containments/ElmColumnList.vue';
31
+ 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' | 'ElmToggle' | 'ElmCheckbox' | 'ElmFile' | 'ElmColumn' | 'ElmColumnList';
32
+ 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 | ElmToggleProps | ElmCheckboxProps | ElmFileProps | ElmColumnProps | ElmColumnListProps;
28
33
  interface JsonComponentBase {
29
34
  type: ComponentType;
30
35
  props?: ComponentProps;
@@ -130,7 +135,27 @@ interface ElmBookmarkJsonComponent extends JsonComponentBase {
130
135
  type: 'ElmBookmark';
131
136
  props?: ElmBookmarkProps;
132
137
  }
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;
138
+ interface ElmToggleJsonComponent extends JsonComponentBase {
139
+ type: 'ElmToggle';
140
+ props?: ElmToggleProps;
141
+ }
142
+ interface ElmCheckboxJsonComponent extends JsonComponentBase {
143
+ type: 'ElmCheckbox';
144
+ props?: ElmCheckboxProps;
145
+ }
146
+ interface ElmFileJsonComponent extends JsonComponentBase {
147
+ type: 'ElmFile';
148
+ props?: ElmFileProps;
149
+ }
150
+ interface ElmColumnJsonComponent extends JsonComponentBase {
151
+ type: 'ElmColumn';
152
+ props?: ElmColumnProps;
153
+ }
154
+ interface ElmColumnListJsonComponent extends JsonComponentBase {
155
+ type: 'ElmColumnList';
156
+ props?: ElmColumnListProps;
157
+ }
158
+ 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 | ElmToggleJsonComponent | ElmCheckboxJsonComponent | ElmFileJsonComponent | ElmColumnJsonComponent | ElmColumnListJsonComponent;
134
159
  export interface ElmJsonRendererProps {
135
160
  json: JsonComponent[];
136
161
  }