@infinilabs/entity-ui 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.
@@ -0,0 +1,99 @@
1
+ import { default as default_2 } from 'react';
2
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
3
+
4
+ export declare const EntityCard: ({ title, subtitle, description, imageUrl, actions, footer, triggerType, popupMode, trigger, open, onOpenChange, modalTitle, width, placement, data, hoverOpenDelay, closeDelay, autoPlacement, hoverAutoClose, hoverAutoCloseDelay, }: EntityCardProps) => JSX_2.Element;
5
+
6
+ declare interface EntityCardAction {
7
+ label: string;
8
+ onClick?: () => void;
9
+ }
10
+
11
+ export declare interface EntityCardData {
12
+ type?: string;
13
+ id?: string;
14
+ style?: {
15
+ width?: string;
16
+ height?: string;
17
+ max_width?: string;
18
+ max_height?: string;
19
+ cover_max_height?: string;
20
+ };
21
+ color?: string;
22
+ icon?: string;
23
+ title?: string;
24
+ subtitle?: string;
25
+ url?: string;
26
+ cover?: string;
27
+ categories?: string[];
28
+ tags?: string[];
29
+ properties?: Array<{
30
+ icon?: string;
31
+ value?: any;
32
+ view?: string;
33
+ payload?: any;
34
+ }>;
35
+ details?: {
36
+ table?: {
37
+ rows?: Array<{
38
+ columns?: Array<{
39
+ label?: string;
40
+ value?: any;
41
+ view?: string;
42
+ payload?: any;
43
+ }>;
44
+ }>;
45
+ };
46
+ };
47
+ }
48
+
49
+ export declare interface EntityCardProps {
50
+ title: string;
51
+ subtitle?: string;
52
+ description?: string;
53
+ imageUrl?: string;
54
+ actions?: EntityCardAction[];
55
+ footer?: string;
56
+ triggerType?: "click" | "hover";
57
+ popupMode?: "modal";
58
+ trigger?: default_2.ReactNode;
59
+ open?: boolean;
60
+ onOpenChange?: (open: boolean) => void;
61
+ modalTitle?: string;
62
+ width?: number;
63
+ placement?: "left" | "right" | "top" | "bottom";
64
+ hoverOpenDelay?: number;
65
+ closeDelay?: number;
66
+ autoPlacement?: boolean;
67
+ hoverAutoClose?: boolean;
68
+ hoverAutoCloseDelay?: number;
69
+ data?: EntityCardData;
70
+ }
71
+
72
+ export declare function EntityLabel({ data }: EntityLabelProps): JSX_2.Element;
73
+
74
+ declare interface EntityLabelProps {
75
+ data?: EntityCardData;
76
+ }
77
+
78
+ export declare const EntityUser: default_2.FC<EntityUserProps>;
79
+
80
+ declare interface EntityUserData {
81
+ type?: string;
82
+ id?: string;
83
+ icon?: string;
84
+ title?: string;
85
+ color?: string;
86
+ subtitle?: string;
87
+ url?: string;
88
+ properties?: Array<{
89
+ icon?: string;
90
+ label?: string;
91
+ value?: any;
92
+ }>;
93
+ }
94
+
95
+ declare interface EntityUserProps {
96
+ data?: EntityUserData;
97
+ }
98
+
99
+ export { }
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ ._entityCard_qqftp_1{width:400px;padding:16px;overflow:auto;border-radius:5px;background-color:#fff;color:#101010;font-size:14px;text-align:center;box-shadow:0 0 10px #0000004d;font-family:-regular}._pcCover_qqftp_15{display:flex;align-items:center;justify-content:center;margin-bottom:25px;overflow:hidden;border-radius:3px;background-color:#bbbbbbb0}._pcCover_qqftp_15 img{width:100%;height:auto;display:block}._pcSection_qqftp_31{width:100%;padding-bottom:16px;display:flex;align-items:center}._pcBreadcrumbSep_qqftp_38{font-size:12px;color:#999}._pcBasic_qqftp_43{display:flex;gap:8px;padding-bottom:25px;flex-wrap:wrap}._pcBasicRow_qqftp_50{width:100%;display:flex;align-items:center;justify-content:space-between}._pcBasicRowLeft_qqftp_57{display:flex;align-items:center;gap:8px}._pcLinkIconRight_qqftp_62{display:flex;align-items:center;justify-content:center;width:30px;height:20px;text-decoration:none;background-color:#fafafa;border-radius:4px}._pcColorSwatch_qqftp_73{width:7px;height:16px}._pcIconDot_qqftp_78{width:18px;height:18px}._pcTitleLink_qqftp_83{display:inline-flex;align-items:center;gap:8px;padding:2px 8px;border:2px solid #027ffe;border-radius:4px;color:#027ffe;font-weight:500;text-decoration:none;line-height:1.6}._pcTitleLink_qqftp_83:hover{background:#1677ff0f}._pcTitleText_qqftp_100{display:inline-flex;align-items:center;color:#027ffe;font-size:16px}._pcSubTitleText_qqftp_107{display:inline-flex;align-items:center;color:#999;font-size:16px}._pcExternalIcon_qqftp_114{font-size:12px;color:#027ffe;margin-left:2px}._pcProperties_qqftp_120{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px;row-gap:12px;align-items:start}._pcProperty_qqftp_128{display:flex;align-items:center;gap:4px;min-height:24px;min-width:0;box-sizing:border-box;font-size:12px;color:#999}._pcTagsRow_qqftp_139{display:inline-flex;flex-wrap:wrap;gap:4px}._pcTag_qqftp_139{padding:2px 6px;border-radius:4px;background:#f2f3f5;color:#555;font-size:12px}._pcDetails_qqftp_152{width:100%;display:flex;flex-direction:column;gap:12px}._pcRow_qqftp_158{display:grid;column-gap:8px;row-gap:12px;width:100%}._pcCol_qqftp_73{width:100%;padding:10px 8px;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;min-width:0;text-align:left;border-radius:5px;background-color:#fafafa;color:#101010;font-size:14px;font-family:-regular;border:1px solid rgba(245,245,245,1)}._pcColLabel_qqftp_180{color:#999;font-size:12px}._pcColValue_qqftp_184{font-size:16px;color:#027ffe}._pcProgressText_qqftp_189{font-size:10px;color:#027ffe}._entityLabel_qqftp_195{width:100%;overflow:hidden}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@infinilabs/entity-ui",
3
+ "version": "0.0.2",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "private": false,
8
+ "type": "module",
9
+ "files": [
10
+ "dist",
11
+ "README.md",
12
+ "README-zh_CN.md"
13
+ ],
14
+ "main": "dist/entity-ui.cjs",
15
+ "module": "dist/entity-ui.js",
16
+ "types": "dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/entity-ui.js",
21
+ "require": "./dist/entity-ui.cjs"
22
+ }
23
+ },
24
+ "scripts": {
25
+ "dev": "vite",
26
+ "build": "vite build",
27
+ "preview": "vite preview",
28
+ "prepublishOnly": "vite build",
29
+ "publish": "npm publish"
30
+ },
31
+ "peerDependencies": {
32
+ "antd": ">=5",
33
+ "react": ">=17",
34
+ "react-dom": ">=17"
35
+ },
36
+ "dependencies": {
37
+ "lucide-react": "^0.461.0",
38
+ "react": "^18.3.1",
39
+ "react-dom": "^18.3.1"
40
+ },
41
+ "devDependencies": {
42
+ "@types/react": "^18.3.3",
43
+ "@types/react-dom": "^18.3.0",
44
+ "@vitejs/plugin-react": "^4.3.1",
45
+ "antd": "^5.20.6",
46
+ "vite": "^5.4.1",
47
+ "vite-plugin-css-injected-by-js": "^3.5.1",
48
+ "vite-plugin-dts": "^3.9.0"
49
+ }
50
+ }