@mxmweb/zui 1.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/Preview.d.ts +3 -0
- package/README.md +1 -0
- package/assets/zui.css +1 -0
- package/containers/DashboardContainer.d.ts +27 -0
- package/elements/Button.d.ts +18 -0
- package/elements/DropdownMenu.d.ts +19 -0
- package/elements/Uploader/UploadItem.d.ts +18 -0
- package/elements/Uploader/example.d.ts +7 -0
- package/elements/Uploader/index.d.ts +9 -0
- package/elements/Uploader/styles.d.ts +56 -0
- package/elements/Uploader/types.d.ts +50 -0
- package/elements/Uploader/utils.d.ts +31 -0
- package/elements/Uploader.d.ts +2 -0
- package/index-CgFHm4CL-O5tUkbrp.js +48009 -0
- package/index.js +49394 -0
- package/lib_enter.d.ts +6 -0
- package/main.d.ts +1 -0
- package/mock.csv +16 -0
- package/mock_/345/211/257/346/234/254.csv +16 -0
- package/package.json +23 -0
- package/theme/styledTheme.d.ts +115 -0
- package/vite.svg +1 -0
package/lib_enter.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as Button } from './elements/Button';
|
|
2
|
+
import { default as MoreDropdown } from './elements/DropdownMenu';
|
|
3
|
+
import { default as Uploader } from './elements/Uploader';
|
|
4
|
+
import { default as DashboardContainer } from './containers/DashboardContainer';
|
|
5
|
+
export { Button, MoreDropdown, Uploader };
|
|
6
|
+
export { DashboardContainer };
|
package/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/mock.csv
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
id,name,age,gender,email,phone,address,company,position,salary
|
|
2
|
+
1,张三,28,男,zhangsan@example.com,13800000001,北京市朝阳区,字节跳动,前端工程师,18000
|
|
3
|
+
2,李四,32,女,lis4@example.com,13800000002,上海市浦东新区,阿里巴巴,产品经理,22000
|
|
4
|
+
3,王五,25,男,wangwu@example.com,13800000003,深圳市南山区,腾讯,后端工程师,17000
|
|
5
|
+
4,赵六,29,女,zhaoliu@example.com,13800000004,杭州市西湖区,网易,UI设计师,16000
|
|
6
|
+
5,钱七,35,男,qianqi@example.com,13800000005,广州市天河区,美团,测试工程师,15000
|
|
7
|
+
6,孙八,27,女,sunba@example.com,13800000006,成都市高新区,京东,数据分析师,20000
|
|
8
|
+
7,周九,31,男,zhoujiu@example.com,13800000007,南京市鼓楼区,小米,运维工程师,15500
|
|
9
|
+
8,吴十,26,女,wushi@example.com,13800000008,武汉市武昌区,拼多多,市场专员,14000
|
|
10
|
+
9,郑十一,30,男,zheng11@example.com,13800000009,重庆市渝中区,百度,算法工程师,23000
|
|
11
|
+
10,冯十二,33,女,feng12@example.com,13800000010,苏州市工业园区,携程,HR,13500
|
|
12
|
+
11,陈十三,24,男,chen13@example.com,13800000011,天津市和平区,滴滴,前端工程师,17500
|
|
13
|
+
12,褚十四,28,女,chu14@example.com,13800000012,青岛市市南区,快手,产品经理,21000
|
|
14
|
+
13,卫十五,29,男,wei15@example.com,13800000013,厦门市思明区,知乎,后端工程师,16500
|
|
15
|
+
14,蒋十六,27,女,jiang16@example.com,13800000014,合肥市包河区,B站,UI设计师,15800
|
|
16
|
+
15,沈十七,34,男,shen17@example.com,13800000015,福州市鼓楼区,字节跳动,测试工程师,15200
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
id,name,age,gender,email,phone,address,company,position,salary
|
|
2
|
+
1,张三,28,男,zhangsan@example.com,13800000001,北京市朝阳区,字节跳动,前端工程师,18000
|
|
3
|
+
2,李四,32,女,lis4@example.com,13800000002,上海市浦东新区,阿里巴巴,产品经理,22000
|
|
4
|
+
3,王五,25,男,wangwu@example.com,13800000003,深圳市南山区,腾讯,后端工程师,17000
|
|
5
|
+
4,赵六,29,女,zhaoliu@example.com,13800000004,杭州市西湖区,网易,UI设计师,16000
|
|
6
|
+
5,钱七,35,男,qianqi@example.com,13800000005,广州市天河区,美团,测试工程师,15000
|
|
7
|
+
6,孙八,27,女,sunba@example.com,13800000006,成都市高新区,京东,数据分析师,20000
|
|
8
|
+
7,周九,31,男,zhoujiu@example.com,13800000007,南京市鼓楼区,小米,运维工程师,15500
|
|
9
|
+
8,吴十,26,女,wushi@example.com,13800000008,武汉市武昌区,拼多多,市场专员,14000
|
|
10
|
+
9,郑十一,30,男,zheng11@example.com,13800000009,重庆市渝中区,百度,算法工程师,23000
|
|
11
|
+
10,冯十二,33,女,feng12@example.com,13800000010,苏州市工业园区,携程,HR,13500
|
|
12
|
+
11,陈十三,24,男,chen13@example.com,13800000011,天津市和平区,滴滴,前端工程师,17500
|
|
13
|
+
12,褚十四,28,女,chu14@example.com,13800000012,青岛市市南区,快手,产品经理,21000
|
|
14
|
+
13,卫十五,29,男,wei15@example.com,13800000013,厦门市思明区,知乎,后端工程师,16500
|
|
15
|
+
14,蒋十六,27,女,jiang16@example.com,13800000014,合肥市包河区,B站,UI设计师,15800
|
|
16
|
+
15,沈十七,34,男,shen17@example.com,13800000015,福州市鼓楼区,字节跳动,测试工程师,15200
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mxmweb/zui",
|
|
3
|
+
"main": "index.js",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"style": "assets/style.css",
|
|
6
|
+
"types": "lib_enter.d.ts",
|
|
7
|
+
"private": false,
|
|
8
|
+
"version": "1.0.3",
|
|
9
|
+
"author": "hanfeng_Zhang",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "yarn link",
|
|
13
|
+
"disconnect": "yarn unlink"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./lib_enter.d.ts",
|
|
18
|
+
"import": "./index.js",
|
|
19
|
+
"default": "./index.js"
|
|
20
|
+
},
|
|
21
|
+
"./style.css": "./assets/style.css"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type SizeType = 'sm' | 'md' | 'lg';
|
|
3
|
+
export type FontWeightType = 'normal' | 'bold' | 'thin';
|
|
4
|
+
export type FontFamilyType = 'default' | 'serif' | 'mono';
|
|
5
|
+
export interface AiChatStyles {
|
|
6
|
+
theme?: AppTheme;
|
|
7
|
+
mode?: 'light' | 'dark';
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export interface ThemeColors {
|
|
11
|
+
primary: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
success: string;
|
|
14
|
+
warning: string;
|
|
15
|
+
error: string;
|
|
16
|
+
info: string;
|
|
17
|
+
background: string;
|
|
18
|
+
text: string;
|
|
19
|
+
border: string;
|
|
20
|
+
disabled: string;
|
|
21
|
+
disabledBackground: string;
|
|
22
|
+
disabledText: string;
|
|
23
|
+
textSecondary?: string;
|
|
24
|
+
shadow?: string;
|
|
25
|
+
appBackground?: string;
|
|
26
|
+
listBackground?: string;
|
|
27
|
+
dashboardBackground?: string;
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}
|
|
30
|
+
export interface ThemeOthers {
|
|
31
|
+
}
|
|
32
|
+
export interface ThemeSpace {
|
|
33
|
+
sidebar: string;
|
|
34
|
+
size: string;
|
|
35
|
+
radius: string;
|
|
36
|
+
padding: string;
|
|
37
|
+
margin: string;
|
|
38
|
+
shadow: string;
|
|
39
|
+
lineHeight: string;
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}
|
|
42
|
+
export interface ThemeFonts {
|
|
43
|
+
body?: {
|
|
44
|
+
size?: string;
|
|
45
|
+
weight?: string;
|
|
46
|
+
family?: string;
|
|
47
|
+
};
|
|
48
|
+
heading?: {
|
|
49
|
+
size?: string;
|
|
50
|
+
weight?: string;
|
|
51
|
+
family?: string;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface ThemeIcons {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}
|
|
57
|
+
export interface AppTheme {
|
|
58
|
+
colors: ThemeColors;
|
|
59
|
+
space: ThemeSpace;
|
|
60
|
+
icons: ThemeIcons;
|
|
61
|
+
fonts?: ThemeFonts;
|
|
62
|
+
others?: ThemeOthers;
|
|
63
|
+
}
|
|
64
|
+
export declare const defaultTheme: AppTheme;
|
|
65
|
+
export declare const sidebarMap: {
|
|
66
|
+
sm: string;
|
|
67
|
+
md: string;
|
|
68
|
+
lg: string;
|
|
69
|
+
};
|
|
70
|
+
export declare const sizeMap: {
|
|
71
|
+
sm: string;
|
|
72
|
+
md: string;
|
|
73
|
+
lg: string;
|
|
74
|
+
};
|
|
75
|
+
export declare const radiusMap: {
|
|
76
|
+
sm: string;
|
|
77
|
+
md: string;
|
|
78
|
+
lg: string;
|
|
79
|
+
};
|
|
80
|
+
export declare const paddingMap: {
|
|
81
|
+
sm: string;
|
|
82
|
+
md: string;
|
|
83
|
+
lg: string;
|
|
84
|
+
};
|
|
85
|
+
export declare const marginMap: {
|
|
86
|
+
sm: string;
|
|
87
|
+
md: string;
|
|
88
|
+
lg: string;
|
|
89
|
+
};
|
|
90
|
+
export declare const shadowMap: {
|
|
91
|
+
sm: string;
|
|
92
|
+
md: string;
|
|
93
|
+
lg: string;
|
|
94
|
+
};
|
|
95
|
+
export declare const lineHeightMap: {
|
|
96
|
+
sm: string;
|
|
97
|
+
md: string;
|
|
98
|
+
lg: string;
|
|
99
|
+
};
|
|
100
|
+
export declare function deepMergeTheme(defaultTheme: AppTheme, customTheme?: Partial<AppTheme>): AppTheme;
|
|
101
|
+
export declare function mapSpaceToCssValue(space: Record<string, string>): {
|
|
102
|
+
size: string;
|
|
103
|
+
radius: string;
|
|
104
|
+
padding: string;
|
|
105
|
+
margin: string;
|
|
106
|
+
shadow: string;
|
|
107
|
+
lineHeight: string;
|
|
108
|
+
sidebar: string;
|
|
109
|
+
};
|
|
110
|
+
export declare const ThemeContext: React.Context<AppTheme>;
|
|
111
|
+
export declare const useTheme: () => AppTheme;
|
|
112
|
+
export declare const ThemeProvider: ({ theme, children }: {
|
|
113
|
+
theme: AppTheme;
|
|
114
|
+
children: React.ReactNode;
|
|
115
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
package/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|