decoprofile 1.0.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/README.md +15 -0
- package/dist/components/Avatar.d.ts +2 -0
- package/dist/components/Namespace.d.ts +2 -0
- package/dist/components/Profile.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7656 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/main/DecoProfile.d.ts +5 -0
- package/dist/types/index.d.ts +41 -0
- package/package.json +55 -0
- package/types/index.ts +46 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cn(...inputs: any[]): string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AvatarDecorationProps, NamespaceDecorationProps, ProfileDecorationProps } from "../types";
|
|
2
|
+
declare function AvatarDecoration({ name, size, className }: AvatarDecorationProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function ProfileDecoration({ name, className }: ProfileDecorationProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function NamespaceDecoration({ name, className }: NamespaceDecorationProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { AvatarDecoration, ProfileDecoration, NamespaceDecoration };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type AvatarProps = {
|
|
2
|
+
src: string;
|
|
3
|
+
decorationId?: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
ring?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type NameSpaceProps = {
|
|
10
|
+
userName?: string;
|
|
11
|
+
avatar?: string;
|
|
12
|
+
videoId?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
width?: number;
|
|
15
|
+
height?: number;
|
|
16
|
+
};
|
|
17
|
+
export type ProfileEffectProps = {
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
headerComponent?: React.ReactNode;
|
|
20
|
+
bottomComponent?: React.ReactNode;
|
|
21
|
+
bgEffectId?: string;
|
|
22
|
+
avatar?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
width?: string | number;
|
|
25
|
+
height?: number;
|
|
26
|
+
};
|
|
27
|
+
export interface AvatarDecorationProps {
|
|
28
|
+
name: string;
|
|
29
|
+
size?: number;
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ProfileDecorationProps {
|
|
33
|
+
name: string;
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface NamespaceDecorationProps {
|
|
37
|
+
name: string;
|
|
38
|
+
titleColor: string;
|
|
39
|
+
backgroundColor: string;
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "decoprofile",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "DecoProfile is a bun library for creating effects on avatar, profile and namespace.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "bun run index.tsx",
|
|
10
|
+
"build": "bun build ./index.tsx --outdir dist --target node",
|
|
11
|
+
"types": "tsc --emitDeclarationOnly --outDir dist",
|
|
12
|
+
"prepare": "bun run types && bun run build",
|
|
13
|
+
"prepublishOnly": "bun run prepare"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"profileeffect",
|
|
17
|
+
"avatar",
|
|
18
|
+
"profile",
|
|
19
|
+
"namespace",
|
|
20
|
+
"decoration",
|
|
21
|
+
"title",
|
|
22
|
+
"bun",
|
|
23
|
+
"node"
|
|
24
|
+
],
|
|
25
|
+
"author": {
|
|
26
|
+
"name": "Vikash Khati",
|
|
27
|
+
"url": "https://github.com/vikashkhati007"
|
|
28
|
+
},
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/vikashkhati007/decoprofile"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://www.npmjs.com/package/decoprofile",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/vikashkhati007/decoprofile/issues"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"types"
|
|
41
|
+
],
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=18.0.0",
|
|
44
|
+
"bun": ">=1.1.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/react": "^19.2.7",
|
|
48
|
+
"react": "^19.2.0",
|
|
49
|
+
"typescript": "^5.9.3"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"clsx": "^2.1.1",
|
|
53
|
+
"tailwind-merge": "^3.4.0"
|
|
54
|
+
}
|
|
55
|
+
}
|
package/types/index.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type AvatarProps = {
|
|
2
|
+
src: string;
|
|
3
|
+
decorationId?: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
size?: number; // like 120, 150 (px)
|
|
7
|
+
ring?: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type NameSpaceProps = {
|
|
11
|
+
userName?: string;
|
|
12
|
+
avatar?: string;
|
|
13
|
+
videoId?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
width?: number;
|
|
16
|
+
height?: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type ProfileEffectProps = {
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
headerComponent?: React.ReactNode;
|
|
22
|
+
bottomComponent?: React.ReactNode;
|
|
23
|
+
bgEffectId?: string;
|
|
24
|
+
avatar?: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
width?: string | number;
|
|
27
|
+
height?: number;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export interface AvatarDecorationProps {
|
|
31
|
+
name: string;
|
|
32
|
+
size?: number;
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface ProfileDecorationProps {
|
|
37
|
+
name: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface NamespaceDecorationProps {
|
|
42
|
+
name: string;
|
|
43
|
+
titleColor: string;
|
|
44
|
+
backgroundColor: string;
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|