@creopse/react 0.0.1 → 0.0.2
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.cjs +7469 -7
- package/dist/index.js +7471 -8
- package/dist/index.mjs +7454 -7
- package/package.json +11 -4
- package/types/components/widgets/AsyncImg/AsyncImg.d.ts +11 -0
- package/types/components/widgets/AsyncImg/index.d.ts +1 -0
- package/types/components/widgets/CustomTransition/CustomTransition.d.ts +12 -0
- package/types/components/widgets/CustomTransition/index.d.ts +1 -0
- package/types/index.d.ts +2 -0
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.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Noé Gnanih <noegnanih@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -23,15 +23,22 @@
|
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"dev": "vite",
|
|
27
|
-
"
|
|
26
|
+
"dev-server": "pnpm --parallel vite",
|
|
27
|
+
"dev-types": "tsc --noEmit -p tsconfig.app.json --watch",
|
|
28
|
+
"build": "pnpm build-lib && pnpm build-types",
|
|
29
|
+
"build-lib": "vite build",
|
|
30
|
+
"build-types": "rm -f *.tsbuildinfo && tsc --emitDeclarationOnly --declaration -p tsconfig.app.json",
|
|
28
31
|
"lint": "eslint .",
|
|
29
32
|
"preview": "vite preview"
|
|
30
33
|
},
|
|
31
|
-
"
|
|
34
|
+
"peerDependencies": {
|
|
32
35
|
"react": "^19.1.0",
|
|
33
36
|
"react-dom": "^19.1.0"
|
|
34
37
|
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@creopse/utils": "^0.0.4",
|
|
40
|
+
"framer-motion": "^12.23.9"
|
|
41
|
+
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"@eslint/js": "^9.30.1",
|
|
37
44
|
"@types/react": "^19.1.8",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { type CSSProperties } from 'react';
|
|
2
|
+
export interface AsyncImgProps {
|
|
3
|
+
load: () => Promise<string>;
|
|
4
|
+
alt?: string;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
height?: string | number;
|
|
7
|
+
title?: string;
|
|
8
|
+
loading?: 'lazy' | 'eager';
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
export declare const AsyncImg: React.FC<AsyncImgProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AsyncImg, type AsyncImgProps } from './AsyncImg';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Animation = 'fade' | 'slide-fade' | 'bounce';
|
|
3
|
+
type Mode = 'wait' | 'sync' | 'popLayout' | undefined;
|
|
4
|
+
export interface CustomTransitionProps {
|
|
5
|
+
name?: Animation;
|
|
6
|
+
mode?: Mode;
|
|
7
|
+
appear?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
contentKey?: string | number;
|
|
10
|
+
}
|
|
11
|
+
export declare const CustomTransition: React.FC<CustomTransitionProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CustomTransition, type CustomTransitionProps, } from './CustomTransition';
|
package/types/index.d.ts
ADDED