@creopse/react 0.0.2 → 0.0.3
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creopse/react",
|
|
3
3
|
"description": "Creopse React Toolkit",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Noé Gnanih <noegnanih@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dev-types": "tsc --noEmit -p tsconfig.app.json --watch",
|
|
28
28
|
"build": "pnpm build-lib && pnpm build-types",
|
|
29
29
|
"build-lib": "vite build",
|
|
30
|
-
"build-types": "rm -f *.tsbuildinfo && tsc --emitDeclarationOnly --declaration -p tsconfig.app.json",
|
|
30
|
+
"build-types": "rm -f *.tsbuildinfo && rm -rf types && tsc --emitDeclarationOnly --declaration -p tsconfig.app.json",
|
|
31
31
|
"lint": "eslint .",
|
|
32
32
|
"preview": "vite preview"
|
|
33
33
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type CSSProperties } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface Props {
|
|
3
3
|
load: () => Promise<string>;
|
|
4
4
|
alt?: string;
|
|
5
5
|
width?: string | number;
|
|
@@ -8,4 +8,5 @@ export interface AsyncImgProps {
|
|
|
8
8
|
loading?: 'lazy' | 'eager';
|
|
9
9
|
style?: CSSProperties;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
declare const AsyncImg: React.FC<Props>;
|
|
12
|
+
export default AsyncImg;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AsyncImg, type AsyncImgProps } from './AsyncImg';
|
|
1
|
+
export { default as AsyncImg, type Props as AsyncImgProps } from './AsyncImg';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type Animation = 'fade' | 'slide-fade' | 'bounce';
|
|
3
3
|
type Mode = 'wait' | 'sync' | 'popLayout' | undefined;
|
|
4
|
-
export interface
|
|
4
|
+
export interface Props {
|
|
5
5
|
name?: Animation;
|
|
6
6
|
mode?: Mode;
|
|
7
7
|
appear?: boolean;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
contentKey?: string | number;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
export
|
|
11
|
+
declare const CustomTransition: React.FC<Props>;
|
|
12
|
+
export default CustomTransition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CustomTransition, type CustomTransitionProps, } from './CustomTransition';
|
|
1
|
+
export { default as CustomTransition, type Props as CustomTransitionProps, } from './CustomTransition';
|