@elmethis/react 0.1.0 → 0.2.0
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/icon/ElmMdiIcon.d.ts +9 -0
- package/dist/components/icon/ElmMdiIcon.stories.d.ts +6 -0
- package/dist/components/media/ElmImage.d.ts +24 -0
- package/dist/components/media/ElmImage.stories.d.ts +9 -0
- package/dist/components/typography/ElmBlockQuote.d.ts +6 -0
- package/dist/components/typography/ElmBlockQuote.stories.d.ts +7 -0
- package/dist/components/typography/ElmCallout.d.ts +9 -0
- package/dist/components/typography/ElmCallout.stories.d.ts +10 -0
- package/package.json +5 -2
- package/dist/App.d.ts +0 -2
- package/dist/main.d.ts +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export interface ElmMdiIconProps extends ComponentProps<"svg"> {
|
|
3
|
+
size?: string;
|
|
4
|
+
d: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
lightColor?: string;
|
|
7
|
+
darkColor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ElmMdiIcon: ({ size, d, color, lightColor, darkColor, }: ElmMdiIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentProps, CSSProperties } from 'react';
|
|
2
|
+
export interface ElmImageProps extends ComponentProps<"img"> {
|
|
3
|
+
/**
|
|
4
|
+
* Image source URL
|
|
5
|
+
*/
|
|
6
|
+
src: string;
|
|
7
|
+
/**
|
|
8
|
+
* Image alt text
|
|
9
|
+
*/
|
|
10
|
+
alt?: string;
|
|
11
|
+
/**
|
|
12
|
+
* inline or block
|
|
13
|
+
*/
|
|
14
|
+
block?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Enable modal on image click. Default: `false`
|
|
17
|
+
*/
|
|
18
|
+
enableModal?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The margin of the image.
|
|
21
|
+
*/
|
|
22
|
+
margin?: CSSProperties["marginBlock"];
|
|
23
|
+
}
|
|
24
|
+
export declare const ElmImage: ({ src, alt, block, enableModal, margin, ...args }: ElmImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ElmImage } from './ElmImage';
|
|
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 Svg: Story;
|
|
8
|
+
export declare const LongAlt: Story;
|
|
9
|
+
export declare const Invalid: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ElmBlockQuote } from './ElmBlockQuote';
|
|
3
|
+
declare const meta: Meta<typeof ElmBlockQuote>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const OnlyContent: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type AlertType = "note" | "tip" | "important" | "warning" | "caution";
|
|
3
|
+
export interface ElmCalloutProps extends ComponentProps<"aside"> {
|
|
4
|
+
/**
|
|
5
|
+
* Type of alert
|
|
6
|
+
*/
|
|
7
|
+
type?: AlertType;
|
|
8
|
+
}
|
|
9
|
+
export declare const ElmCallout: ({ type, children }: ElmCalloutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ElmCallout } from './ElmCallout';
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -23,10 +23,12 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
+
"@mdi/js": "^7.4.47",
|
|
26
27
|
"clsx": "^2.1.1",
|
|
27
28
|
"polished": "^4.3.1",
|
|
28
29
|
"react": "^19.1.1",
|
|
29
|
-
"react-dom": "^19.1.1"
|
|
30
|
+
"react-dom": "^19.1.1",
|
|
31
|
+
"react-transition-group": "^4.4.5"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
34
|
"@eslint/js": "^9.36.0",
|
|
@@ -34,6 +36,7 @@
|
|
|
34
36
|
"@types/node": "^24.6.0",
|
|
35
37
|
"@types/react": "^19.1.16",
|
|
36
38
|
"@types/react-dom": "^19.1.9",
|
|
39
|
+
"@types/react-transition-group": "^4.4.12",
|
|
37
40
|
"@vitejs/plugin-react": "^5.0.4",
|
|
38
41
|
"babel-plugin-react-compiler": "^19.1.0-rc.3",
|
|
39
42
|
"eslint": "^9.36.0",
|
package/dist/App.d.ts
DELETED
package/dist/main.d.ts
DELETED
|
File without changes
|