@creopse/react 0.0.1 → 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.1",
4
+ "version": "0.0.3",
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
- "build": "tsc -b && vite build",
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 && rm -rf types && tsc --emitDeclarationOnly --declaration -p tsconfig.app.json",
28
31
  "lint": "eslint .",
29
32
  "preview": "vite preview"
30
33
  },
31
- "dependencies": {
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,12 @@
1
+ import React, { type CSSProperties } from 'react';
2
+ export interface Props {
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
+ declare const AsyncImg: React.FC<Props>;
12
+ export default AsyncImg;
@@ -0,0 +1 @@
1
+ export { default as AsyncImg, type Props as 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 Props {
5
+ name?: Animation;
6
+ mode?: Mode;
7
+ appear?: boolean;
8
+ children?: React.ReactNode;
9
+ contentKey?: string | number;
10
+ }
11
+ declare const CustomTransition: React.FC<Props>;
12
+ export default CustomTransition;
@@ -0,0 +1 @@
1
+ export { default as CustomTransition, type Props as CustomTransitionProps, } from './CustomTransition';
@@ -0,0 +1,2 @@
1
+ export { AsyncImg, type AsyncImgProps } from './components/widgets/AsyncImg';
2
+ export { CustomTransition, type CustomTransitionProps, } from './components/widgets/CustomTransition';