hisd3-ui-kit 2.0.7 → 2.0.8
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.d.ts +2 -160
- package/package.json +2 -2
- package/tsconfig.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,160 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
interface IUserEmployee {
|
|
4
|
-
id: string;
|
|
5
|
-
fullName: string;
|
|
6
|
-
gender: "MALE" | "FEMALE";
|
|
7
|
-
positionType?: string;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare enum ThemeMode {
|
|
12
|
-
LIGHT = "light",
|
|
13
|
-
SEMI_DARK = "semi-dark",
|
|
14
|
-
DARK = "dark"
|
|
15
|
-
}
|
|
16
|
-
declare enum LayoutDirection {
|
|
17
|
-
RTL = "rtl",
|
|
18
|
-
LTR = "ltr"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface FontSize {
|
|
22
|
-
xs: string;
|
|
23
|
-
sm: string;
|
|
24
|
-
md: string;
|
|
25
|
-
lg: string;
|
|
26
|
-
xl: string;
|
|
27
|
-
xxl: string;
|
|
28
|
-
}
|
|
29
|
-
interface FontWeight {
|
|
30
|
-
light: string;
|
|
31
|
-
regular: string;
|
|
32
|
-
medium: string;
|
|
33
|
-
bold: string;
|
|
34
|
-
lg: string;
|
|
35
|
-
}
|
|
36
|
-
interface Font {
|
|
37
|
-
size: FontSize;
|
|
38
|
-
weight: FontWeight;
|
|
39
|
-
}
|
|
40
|
-
interface Palette {
|
|
41
|
-
mode: ThemeMode;
|
|
42
|
-
borderColor: string;
|
|
43
|
-
dividerColor: string;
|
|
44
|
-
tooltipBg: string;
|
|
45
|
-
background: string;
|
|
46
|
-
primary: {
|
|
47
|
-
main: string;
|
|
48
|
-
contrastText: string;
|
|
49
|
-
};
|
|
50
|
-
secondary: {
|
|
51
|
-
main: string;
|
|
52
|
-
};
|
|
53
|
-
success: {
|
|
54
|
-
main: string;
|
|
55
|
-
light: string;
|
|
56
|
-
};
|
|
57
|
-
warning: {
|
|
58
|
-
main: string;
|
|
59
|
-
light: string;
|
|
60
|
-
};
|
|
61
|
-
gray: {
|
|
62
|
-
50: string;
|
|
63
|
-
100: string;
|
|
64
|
-
200: string;
|
|
65
|
-
300: string;
|
|
66
|
-
400: string;
|
|
67
|
-
500: string;
|
|
68
|
-
600: string;
|
|
69
|
-
700: string;
|
|
70
|
-
800: string;
|
|
71
|
-
900: string;
|
|
72
|
-
A100: string;
|
|
73
|
-
A200: string;
|
|
74
|
-
A400: string;
|
|
75
|
-
A700: string;
|
|
76
|
-
};
|
|
77
|
-
black: string;
|
|
78
|
-
white: string;
|
|
79
|
-
orange: {
|
|
80
|
-
5: string;
|
|
81
|
-
6: string;
|
|
82
|
-
};
|
|
83
|
-
cyan: {
|
|
84
|
-
7: string;
|
|
85
|
-
};
|
|
86
|
-
red: {
|
|
87
|
-
6: string;
|
|
88
|
-
};
|
|
89
|
-
green: {
|
|
90
|
-
3: string;
|
|
91
|
-
5: string;
|
|
92
|
-
6: string;
|
|
93
|
-
7: string;
|
|
94
|
-
};
|
|
95
|
-
blue: {
|
|
96
|
-
5: string;
|
|
97
|
-
7: string;
|
|
98
|
-
};
|
|
99
|
-
text: string;
|
|
100
|
-
}
|
|
101
|
-
interface Sidebar {
|
|
102
|
-
light: string;
|
|
103
|
-
dark: string;
|
|
104
|
-
}
|
|
105
|
-
interface Breakpoints {
|
|
106
|
-
xs: number;
|
|
107
|
-
sm: number;
|
|
108
|
-
md: number;
|
|
109
|
-
lg: number;
|
|
110
|
-
xl: number;
|
|
111
|
-
xxl: number;
|
|
112
|
-
}
|
|
113
|
-
interface Sizes {
|
|
114
|
-
line: {
|
|
115
|
-
base: number;
|
|
116
|
-
};
|
|
117
|
-
borderRadius: {
|
|
118
|
-
base: string;
|
|
119
|
-
circle: string;
|
|
120
|
-
};
|
|
121
|
-
framed: {
|
|
122
|
-
base: string;
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
interface StyledTheme {
|
|
126
|
-
spacing?: number;
|
|
127
|
-
cardRadius?: string;
|
|
128
|
-
cardRadius30?: string;
|
|
129
|
-
cardShadow?: string;
|
|
130
|
-
direction?: LayoutDirection;
|
|
131
|
-
palette?: Palette;
|
|
132
|
-
status?: {
|
|
133
|
-
danger?: string;
|
|
134
|
-
};
|
|
135
|
-
divider?: string;
|
|
136
|
-
font?: Font;
|
|
137
|
-
sidebar?: Sidebar;
|
|
138
|
-
breakpoints?: Breakpoints;
|
|
139
|
-
sizes?: Sizes;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
interface HISD3SidebarProps {
|
|
143
|
-
account: IUserEmployee;
|
|
144
|
-
logoUrl: string;
|
|
145
|
-
appName: string;
|
|
146
|
-
menuItems: any[];
|
|
147
|
-
onLogout: () => Promise<void>;
|
|
148
|
-
pathname: string;
|
|
149
|
-
styledTheme: StyledTheme;
|
|
150
|
-
collapsed?: boolean;
|
|
151
|
-
loading?: boolean;
|
|
152
|
-
hideSidebar?: boolean;
|
|
153
|
-
layoutTop?: boolean;
|
|
154
|
-
avatarSrc?: string;
|
|
155
|
-
settingsUrl?: string;
|
|
156
|
-
children: React.ReactNode;
|
|
157
|
-
}
|
|
158
|
-
declare const HISD3Sidebar: React.FC<HISD3SidebarProps>;
|
|
159
|
-
|
|
160
|
-
export { HISD3Sidebar };
|
|
1
|
+
import "antd/dist/reset.css";
|
|
2
|
+
export { default as HISD3Sidebar } from "./components/Sidebar/index";
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hisd3-ui-kit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "A UI kit for HISD3",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "
|
|
7
|
+
"type": "module",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "rollup -c",
|
|
10
10
|
"start": "webpack serve"
|
package/tsconfig.json
CHANGED
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"allowJs": true, // Allow JavaScript files to be imported into the TypeScript project
|
|
14
14
|
"resolveJsonModule": true // Allow importing JSON files as modules
|
|
15
15
|
},
|
|
16
|
-
"include": ["src"
|
|
17
|
-
"exclude": ["node_modules"] // Exclude 'node_modules' folder
|
|
16
|
+
"include": ["src"], // Add your source directories here
|
|
17
|
+
"exclude": ["node_modules", "dist"] // Exclude 'node_modules' folder
|
|
18
18
|
}
|