@elmethis/core 1.0.0-alpha.1 → 1.0.0-alpha.11

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/index.d.ts CHANGED
@@ -1,7 +1,13 @@
1
+ import { App } from 'vue';
1
2
  import { default as ElmCodeBlock, ElmCodeBlockProps } from './components/code/ElmCodeBlock.vue';
2
3
  import { default as ElmPrismHighlighter, ElmPrismHighlighterProps } from './components/code/ElmPrismHighlighter.vue';
3
4
  import { default as ElmKatex, ElmKatexProps } from './components/code/ElmKatex.vue';
5
+ import { default as ElmColumn, ElmColumnProps } from './components/containments/ElmColumn.vue';
6
+ import { default as ElmColumnList, ElmColumnListProps } from './components/containments/ElmColumnList.vue';
7
+ import { default as ElmParallax, ElmParallaxProps } from './components/containments/ElmParallax.vue';
8
+ import { default as ElmToggle, ElmToggleProps } from './components/containments/ElmToggle.vue';
4
9
  import { default as ElmTooltip, ElmTooltipProps } from './components/containments/ElmTooltip.vue';
10
+ import { default as ElmProgress, ElmProgressProps } from './components/data/ElmProgress.vue';
5
11
  import { default as ElmRectangleWave, ElmRectangleWaveProps } from './components/fallback/ElmRectangleWave.vue';
6
12
  import { default as ElmHeading1, ElmHeading1Props } from './components/headings/ElmHeading1.vue';
7
13
  import { default as ElmHeading2, ElmHeading2Props } from './components/headings/ElmHeading2.vue';
@@ -17,10 +23,12 @@ import { default as ElmInlineCode, ElmInlineCodeProps } from './components/inlin
17
23
  import { default as ElmInlineLink, ElmInlineLinkProps } from './components/inline/ElmInlineLink.vue';
18
24
  import { default as ElmInlineRuby, ElmInlineRubyProps } from './components/inline/ElmInlineRuby.vue';
19
25
  import { default as ElmInlineText, ElmInlineTextProps } from './components/inline/ElmInlineText.vue';
26
+ import { default as ElmFile, ElmFileProps } from './components/media/ElmFile.vue';
20
27
  import { default as ElmImage, ElmImageProps } from './components/media/ElmImage.vue';
21
28
  import { default as ElmBookmark, ElmBookmarkProps } from './components/navigation/ElmBookmark.vue';
22
29
  import { default as ElmBreadcrumb, ElmBreadcrumbProps } from './components/navigation/ElmBreadcrumb.vue';
23
30
  import { default as ElmPagetop, ElmPagetopProps } from './components/navigation/ElmPagetop.vue';
31
+ import { default as ElmTableOfContents, ElmTableOfContentsProps } from './components/navigation/ElmTableOfContents.vue';
24
32
  import { default as ElmJsonRenderer, ElmJsonRendererProps } from './components/renderer/ElmJsonRenderer.vue';
25
33
  import { default as ElmTable, ElmTableProps } from './components/table/ElmTable.vue';
26
34
  import { default as ElmTableHeader, ElmTableHeaderProps } from './components/table/ElmTableHeader.vue';
@@ -33,5 +41,8 @@ import { default as ElmCallout, ElmCalloutProps } from './components/typography/
33
41
  import { default as ElmDivider, ElmDividerProps } from './components/typography/ElmDivider.vue';
34
42
  import { default as ElmNumberedList, ElmNumberedListProps } from './components/typography/ElmNumberedList.vue';
35
43
  import { default as ElmListItem, ElmListItemProps } from './components/typography/ElmListItem.vue';
36
- export { ElmCodeBlock, ElmPrismHighlighter, ElmKatex, ElmTooltip, ElmRectangleWave, ElmHeading1, ElmHeading2, ElmHeading3, ElmHeading4, ElmHeading5, ElmHeading6, ElmCubeIcon, ElmDotLoadingIcon, ElmLanguageIcon, ElmToggleTheme, ElmInlineCode, ElmInlineLink, ElmInlineRuby, ElmInlineText, ElmImage, ElmBookmark, ElmBreadcrumb, ElmPagetop, ElmJsonRenderer, ElmTable, ElmTableHeader, ElmTableBody, ElmTableRow, ElmTableCell, ElmBlockQuote, ElmBulletedList, ElmCallout, ElmDivider, ElmNumberedList, ElmListItem };
37
- export type { ElmCodeBlockProps, ElmPrismHighlighterProps, ElmKatexProps, ElmTooltipProps, ElmRectangleWaveProps, ElmHeading1Props, ElmHeading2Props, ElmHeading3Props, ElmHeading4Props, ElmHeading5Props, ElmHeading6Props, ElmCubeIconProps, ElmDotLoadingIconProps, ElmLanguageIconProps, ElmToggleThemeProps, ElmInlineCodeProps, ElmInlineLinkProps, ElmInlineRubyProps, ElmInlineTextProps, ElmImageProps, ElmBookmarkProps, ElmBreadcrumbProps, ElmPagetopProps, ElmJsonRendererProps, ElmTableProps, ElmTableHeaderProps, ElmTableBodyProps, ElmTableRowProps, ElmTableCellProps, ElmBlockQuoteProps, ElmBulletedListProps, ElmCalloutProps, ElmDividerProps, ElmNumberedListProps, ElmListItemProps };
44
+ export { ElmCodeBlock, ElmPrismHighlighter, ElmKatex, ElmColumn, ElmColumnList, ElmParallax, ElmToggle, ElmTooltip, ElmProgress, ElmRectangleWave, ElmHeading1, ElmHeading2, ElmHeading3, ElmHeading4, ElmHeading5, ElmHeading6, ElmCubeIcon, ElmDotLoadingIcon, ElmLanguageIcon, ElmToggleTheme, ElmInlineCode, ElmInlineLink, ElmInlineRuby, ElmInlineText, ElmFile, ElmImage, ElmBookmark, ElmBreadcrumb, ElmPagetop, ElmTableOfContents, ElmJsonRenderer, ElmTable, ElmTableHeader, ElmTableBody, ElmTableRow, ElmTableCell, ElmBlockQuote, ElmBulletedList, ElmCallout, ElmDivider, ElmNumberedList, ElmListItem };
45
+ export type { ElmCodeBlockProps, ElmPrismHighlighterProps, ElmKatexProps, ElmColumnProps, ElmColumnListProps, ElmParallaxProps, ElmToggleProps, ElmTooltipProps, ElmProgressProps, ElmRectangleWaveProps, ElmHeading1Props, ElmHeading2Props, ElmHeading3Props, ElmHeading4Props, ElmHeading5Props, ElmHeading6Props, ElmCubeIconProps, ElmDotLoadingIconProps, ElmLanguageIconProps, ElmToggleThemeProps, ElmInlineCodeProps, ElmInlineLinkProps, ElmInlineRubyProps, ElmInlineTextProps, ElmFileProps, ElmImageProps, ElmBookmarkProps, ElmBreadcrumbProps, ElmPagetopProps, ElmTableOfContentsProps, ElmJsonRendererProps, ElmTableProps, ElmTableHeaderProps, ElmTableBodyProps, ElmTableRowProps, ElmTableCellProps, ElmBlockQuoteProps, ElmBulletedListProps, ElmCalloutProps, ElmDividerProps, ElmNumberedListProps, ElmListItemProps };
46
+ export declare const ElmethisPlugin: {
47
+ install(app: App): void;
48
+ };
@@ -0,0 +1,57 @@
1
+ import { ElmCodeBlockProps, ElmPrismHighlighterProps, ElmKatexProps, ElmColumnProps, ElmColumnListProps, ElmParallaxProps, ElmToggleProps, ElmTooltipProps, ElmProgressProps, ElmRectangleWaveProps, ElmHeading1Props, ElmHeading2Props, ElmHeading3Props, ElmHeading4Props, ElmHeading5Props, ElmHeading6Props, ElmCubeIconProps, ElmDotLoadingIconProps, ElmLanguageIconProps, ElmToggleThemeProps, ElmInlineCodeProps, ElmInlineLinkProps, ElmInlineRubyProps, ElmInlineTextProps, ElmFileProps, ElmImageProps, ElmBookmarkProps, ElmBreadcrumbProps, ElmPagetopProps, ElmTableOfContentsProps, ElmJsonRendererProps, ElmTableProps, ElmTableHeaderProps, ElmTableBodyProps, ElmTableRowProps, ElmTableCellProps, ElmBlockQuoteProps, ElmBulletedListProps, ElmCalloutProps, ElmDividerProps, ElmNumberedListProps, ElmListItemProps } from '../index';
2
+ declare module 'vue' {
3
+ interface GlobalComponents {
4
+ ElmCodeBlock: (props: ElmCodeBlockProps) => JSX.Element
5
+ ElmPrismHighlighter: (props: ElmPrismHighlighterProps) => JSX.Element
6
+ ElmKatex: (props: ElmKatexProps) => JSX.Element
7
+
8
+ ElmColumn: (props: ElmColumnProps) => JSX.Element
9
+ ElmColumnList: (props: ElmColumnListProps) => JSX.Element
10
+ ElmParallax: (props: ElmParallaxProps) => JSX.Element
11
+ ElmToggle: (props: ElmToggleProps) => JSX.Element
12
+ ElmTooltip: (props: ElmTooltipProps) => JSX.Element
13
+
14
+ ElmProgress: (props: ElmProgressProps) => JSX.Element
15
+ ElmRectangleWave: (props: ElmRectangleWaveProps) => JSX.Element
16
+
17
+ ElmHeading1: (props: ElmHeading1Props) => JSX.Element
18
+ ElmHeading2: (props: ElmHeading2Props) => JSX.Element
19
+ ElmHeading3: (props: ElmHeading3Props) => JSX.Element
20
+ ElmHeading4: (props: ElmHeading4Props) => JSX.Element
21
+ ElmHeading5: (props: ElmHeading5Props) => JSX.Element
22
+ ElmHeading6: (props: ElmHeading6Props) => JSX.Element
23
+
24
+ ElmCubeIcon: (props: ElmCubeIconProps) => JSX.Element
25
+ ElmDotLoadingIcon: (props: ElmDotLoadingIconProps) => JSX.Element
26
+ ElmLanguageIcon: (props: ElmLanguageIconProps) => JSX.Element
27
+ ElmToggleTheme: (props: ElmToggleThemeProps) => JSX.Element
28
+
29
+ ElmInlineCode: (props: ElmInlineCodeProps) => JSX.Element
30
+ ElmInlineLink: (props: ElmInlineLinkProps) => JSX.Element
31
+ ElmInlineRuby: (props: ElmInlineRubyProps) => JSX.Element
32
+ ElmInlineText: (props: ElmInlineTextProps) => JSX.Element
33
+
34
+ ElmFile: (props: ElmFileProps) => JSX.Element
35
+ ElmImage: (props: ElmImageProps) => JSX.Element
36
+
37
+ ElmBookmark: (props: ElmBookmarkProps) => JSX.Element
38
+ ElmBreadcrumb: (props: ElmBreadcrumbProps) => JSX.Element
39
+ ElmPagetop: (props: ElmPagetopProps) => JSX.Element
40
+ ElmTableOfContents: (props: ElmTableOfContentsProps) => JSX.Element
41
+
42
+ ElmJsonRenderer: (props: ElmJsonRendererProps) => JSX.Element
43
+
44
+ ElmTable: (props: ElmTableProps) => JSX.Element
45
+ ElmTableHeader: (props: ElmTableHeaderProps) => JSX.Element
46
+ ElmTableBody: (props: ElmTableBodyProps) => JSX.Element
47
+ ElmTableRow: (props: ElmTableRowProps) => JSX.Element
48
+ ElmTableCell: (props: ElmTableCellProps) => JSX.Element
49
+
50
+ ElmBlockQuote: (props: ElmBlockQuoteProps) => JSX.Element
51
+ ElmBulletedList: (props: ElmBulletedListProps) => JSX.Element
52
+ ElmCallout: (props: ElmCalloutProps) => JSX.Element
53
+ ElmDivider: (props: ElmDividerProps) => JSX.Element
54
+ ElmNumberedList: (props: ElmNumberedListProps) => JSX.Element
55
+ ElmListItem: (props: ElmListItemProps) => JSX.Element
56
+ }
57
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/core",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -16,14 +16,46 @@
16
16
  ],
17
17
  "exports": {
18
18
  ".": {
19
+ "types": "./dist/index.d.ts",
19
20
  "import": "./dist/elmethis.js",
20
- "require": "./dist/elmethis.umd.cjs",
21
- "types": "./dist/index.d.ts"
21
+ "require": "./dist/elmethis.umd.cjs"
22
22
  }
23
23
  },
24
+ "devDependencies": {
25
+ "@chromatic-com/storybook": "^3.2.2",
26
+ "@heroicons/vue": "^2.1.5",
27
+ "@storybook/addon-essentials": "^8.4.1",
28
+ "@storybook/addon-interactions": "^8.4.1",
29
+ "@storybook/addon-links": "^8.4.1",
30
+ "@storybook/addon-onboarding": "^8.4.1",
31
+ "@storybook/blocks": "^8.3.6",
32
+ "@storybook/test": "^8.3.6",
33
+ "@storybook/vue3": "^8.4.1",
34
+ "@storybook/vue3-vite": "^8.4.1",
35
+ "@types/katex": "^0.16.7",
36
+ "@types/lodash-es": "^4.17.12",
37
+ "@types/prismjs": "^1.26.5",
38
+ "@vitejs/plugin-vue": "^5.1.4",
39
+ "@vitejs/plugin-vue-jsx": "^4.0.1",
40
+ "@vueuse/core": "^11.2.0",
41
+ "csstype": "^3.1.3",
42
+ "katex": "^0.16.11",
43
+ "lodash-es": "^4.17.21",
44
+ "polished": "^4.3.1",
45
+ "postcss": "^8.4.47",
46
+ "postcss-preset-env": "^10.0.8",
47
+ "prism-theme-vars": "^0.2.5",
48
+ "prismjs": "^1.29.0",
49
+ "sass": "^1.80.5",
50
+ "storybook": "^8.3.6",
51
+ "vite": "^5.4.9",
52
+ "vite-plugin-css-injected-by-js": "^3.5.2",
53
+ "vite-plugin-dts": "^4.3.0",
54
+ "vue": "^3.5.12",
55
+ "vue-tsc": "^2.1.10"
56
+ },
24
57
  "scripts": {
25
58
  "build": "vue-tsc && vite build",
26
- "prepublishOnly": "npm run build",
27
59
  "storybook": "storybook dev -p 6006",
28
60
  "build-storybook": "storybook build"
29
61
  }
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>