@crystaltech/hsms-shared-ui 0.0.2 → 0.0.3-alpha-0.1
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 +830 -15
- package/dist/App.d.ts +0 -63
- package/dist/components/AccountInfoWithAvatar.d.ts +5 -0
- package/dist/components/LoginView.d.ts +2 -0
- package/dist/components/LogoWithTitle.d.ts +9 -0
- package/dist/components/MultiDynamicTable/ColumnVisibilityManage.d.ts +1 -1
- package/dist/components/MultiDynamicTable/FieldContent.d.ts +1 -1
- package/dist/components/MultiDynamicTable/MultiDynamicTable.d.ts +8 -3
- package/dist/components/MultiDynamicTable/dynamicTableData.d.ts +22 -0
- package/dist/components/Tables.d.ts +0 -21
- package/dist/components/layout/MainLayout/index.d.ts +13 -2
- package/dist/components/layout/dummyData.d.ts +8 -0
- package/dist/components/styled-components/index.d.ts +4 -2
- package/dist/hsms-shared-ui.css +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.es.js +49029 -5290
- package/dist/index.js +340 -59
- package/dist/pages/index.d.ts +2 -0
- package/dist/pages/table/child/index.d.ts +2 -0
- package/dist/pages/table/index.d.ts +2 -0
- package/dist/pages/table/some/index.d.ts +2 -0
- package/dist/pages/ui/index.d.ts +2 -0
- package/dist/routes/ProtectedRoute.d.ts +8 -0
- package/dist/routes/RoutesConfigLayout.d.ts +28 -0
- package/dist/theme/ThemeCustomization.d.ts +1 -1
- package/dist/theme/defaultTheme.d.ts +172 -0
- package/package.json +11 -10
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ActionFunction, LoaderFunction } from 'react-router-dom';
|
|
3
|
+
import { ILayoutConfig } from '../components/layout/MainLayout';
|
|
4
|
+
interface RouteCommon {
|
|
5
|
+
loader?: LoaderFunction;
|
|
6
|
+
action?: ActionFunction;
|
|
7
|
+
ErrorBoundary?: React.ComponentType<unknown>;
|
|
8
|
+
}
|
|
9
|
+
export interface IPages {
|
|
10
|
+
[key: string]: {
|
|
11
|
+
default: React.ComponentType<unknown>;
|
|
12
|
+
} & RouteCommon;
|
|
13
|
+
}
|
|
14
|
+
interface RoutesConfigLayoutProps {
|
|
15
|
+
pages: IPages;
|
|
16
|
+
Layout?: React.ComponentType<{
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}>;
|
|
19
|
+
mainLayoutConfig: ILayoutConfig;
|
|
20
|
+
NotFoundPage?: React.ComponentType<{
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}>;
|
|
23
|
+
roles?: string[];
|
|
24
|
+
user?: boolean;
|
|
25
|
+
loginPath?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const RoutesConfigLayout: ({ pages, Layout, mainLayoutConfig, NotFoundPage, roles, loginPath, }: RoutesConfigLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default RoutesConfigLayout;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
export interface ITheme {
|
|
2
|
+
palette: {
|
|
3
|
+
mode: string;
|
|
4
|
+
navbar: {
|
|
5
|
+
background: string;
|
|
6
|
+
foreground: string;
|
|
7
|
+
};
|
|
8
|
+
sidebar: {
|
|
9
|
+
background: string;
|
|
10
|
+
foreground: string;
|
|
11
|
+
};
|
|
12
|
+
primary: {
|
|
13
|
+
main: string;
|
|
14
|
+
};
|
|
15
|
+
secondary: {
|
|
16
|
+
main: string;
|
|
17
|
+
};
|
|
18
|
+
background: {
|
|
19
|
+
default: string;
|
|
20
|
+
paper: string;
|
|
21
|
+
};
|
|
22
|
+
text: {
|
|
23
|
+
primary: string;
|
|
24
|
+
secondary: string;
|
|
25
|
+
};
|
|
26
|
+
neutral: {
|
|
27
|
+
100: string;
|
|
28
|
+
200: string;
|
|
29
|
+
300: string;
|
|
30
|
+
400: string;
|
|
31
|
+
500: string;
|
|
32
|
+
600: string;
|
|
33
|
+
700: string;
|
|
34
|
+
800: string;
|
|
35
|
+
900: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
typography: {
|
|
39
|
+
fontFamily: string;
|
|
40
|
+
h1: TypographyStyle;
|
|
41
|
+
h2: TypographyStyle;
|
|
42
|
+
h3: TypographyStyle;
|
|
43
|
+
h4: TypographyStyle;
|
|
44
|
+
h5: TypographyStyle;
|
|
45
|
+
h6: TypographyStyle;
|
|
46
|
+
subtitle1: TypographyStyle;
|
|
47
|
+
subtitle2: TypographyStyle;
|
|
48
|
+
body1: TypographyStyle;
|
|
49
|
+
body2: TypographyStyle;
|
|
50
|
+
button: TypographyStyle & {
|
|
51
|
+
textTransform: "uppercase" | "none";
|
|
52
|
+
};
|
|
53
|
+
caption: TypographyStyle;
|
|
54
|
+
overline: TypographyStyle & {
|
|
55
|
+
textTransform: "uppercase" | "none";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
interface TypographyStyle {
|
|
60
|
+
fontSize: string;
|
|
61
|
+
fontWeight: number;
|
|
62
|
+
lineHeight: string;
|
|
63
|
+
}
|
|
64
|
+
export declare const defaultTheme: {
|
|
65
|
+
palette: {
|
|
66
|
+
mode: string;
|
|
67
|
+
navbar: {
|
|
68
|
+
background: string;
|
|
69
|
+
foreground: string;
|
|
70
|
+
};
|
|
71
|
+
sidebar: {
|
|
72
|
+
background: string;
|
|
73
|
+
foreground: string;
|
|
74
|
+
};
|
|
75
|
+
primary: {
|
|
76
|
+
main: string;
|
|
77
|
+
};
|
|
78
|
+
secondary: {
|
|
79
|
+
main: string;
|
|
80
|
+
};
|
|
81
|
+
background: {
|
|
82
|
+
default: string;
|
|
83
|
+
paper: string;
|
|
84
|
+
};
|
|
85
|
+
text: {
|
|
86
|
+
primary: string;
|
|
87
|
+
secondary: string;
|
|
88
|
+
};
|
|
89
|
+
neutral: {
|
|
90
|
+
100: string;
|
|
91
|
+
200: string;
|
|
92
|
+
300: string;
|
|
93
|
+
400: string;
|
|
94
|
+
500: string;
|
|
95
|
+
600: string;
|
|
96
|
+
700: string;
|
|
97
|
+
800: string;
|
|
98
|
+
900: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
typography: {
|
|
102
|
+
fontFamily: string;
|
|
103
|
+
h1: {
|
|
104
|
+
fontSize: string;
|
|
105
|
+
fontWeight: number;
|
|
106
|
+
lineHeight: string;
|
|
107
|
+
};
|
|
108
|
+
h2: {
|
|
109
|
+
fontSize: string;
|
|
110
|
+
fontWeight: number;
|
|
111
|
+
lineHeight: string;
|
|
112
|
+
};
|
|
113
|
+
h3: {
|
|
114
|
+
fontSize: string;
|
|
115
|
+
fontWeight: number;
|
|
116
|
+
lineHeight: string;
|
|
117
|
+
};
|
|
118
|
+
h4: {
|
|
119
|
+
fontSize: string;
|
|
120
|
+
fontWeight: number;
|
|
121
|
+
lineHeight: string;
|
|
122
|
+
};
|
|
123
|
+
h5: {
|
|
124
|
+
fontSize: string;
|
|
125
|
+
fontWeight: number;
|
|
126
|
+
lineHeight: string;
|
|
127
|
+
};
|
|
128
|
+
h6: {
|
|
129
|
+
fontSize: string;
|
|
130
|
+
fontWeight: number;
|
|
131
|
+
lineHeight: string;
|
|
132
|
+
};
|
|
133
|
+
subtitle1: {
|
|
134
|
+
fontSize: string;
|
|
135
|
+
fontWeight: number;
|
|
136
|
+
lineHeight: string;
|
|
137
|
+
};
|
|
138
|
+
subtitle2: {
|
|
139
|
+
fontSize: string;
|
|
140
|
+
fontWeight: number;
|
|
141
|
+
lineHeight: string;
|
|
142
|
+
};
|
|
143
|
+
body1: {
|
|
144
|
+
fontSize: string;
|
|
145
|
+
fontWeight: number;
|
|
146
|
+
lineHeight: string;
|
|
147
|
+
};
|
|
148
|
+
body2: {
|
|
149
|
+
fontSize: string;
|
|
150
|
+
fontWeight: number;
|
|
151
|
+
lineHeight: string;
|
|
152
|
+
};
|
|
153
|
+
button: {
|
|
154
|
+
fontSize: string;
|
|
155
|
+
fontWeight: number;
|
|
156
|
+
lineHeight: string;
|
|
157
|
+
textTransform: "uppercase" | "none";
|
|
158
|
+
};
|
|
159
|
+
caption: {
|
|
160
|
+
fontSize: string;
|
|
161
|
+
fontWeight: number;
|
|
162
|
+
lineHeight: string;
|
|
163
|
+
};
|
|
164
|
+
overline: {
|
|
165
|
+
fontSize: string;
|
|
166
|
+
fontWeight: number;
|
|
167
|
+
lineHeight: string;
|
|
168
|
+
textTransform: "uppercase" | "none";
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaltech/hsms-shared-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3-alpha-0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
@@ -35,31 +35,32 @@
|
|
|
35
35
|
"react-perfect-scrollbar": "^1.5.8"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@
|
|
38
|
+
"@crystaltech/shared-auth": "0.2.0-alpha-0.6",
|
|
39
|
+
"@mui/system": "^6.4.6",
|
|
39
40
|
"react": "^19.0.0",
|
|
40
41
|
"react-color": "^2.19.3",
|
|
41
42
|
"react-dom": "^19.0.0",
|
|
42
|
-
"react-router-dom": "
|
|
43
|
+
"react-router-dom": "7.2.0",
|
|
43
44
|
"simplebar-react": "^3.3.0",
|
|
44
45
|
"vite-plugin-pwa": "^0.21.1"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@types/node": "^22.13.5",
|
|
48
48
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
49
|
+
"@types/node": "^22.13.8",
|
|
49
50
|
"@types/react": "^19.0.10",
|
|
50
51
|
"@types/react-color": "^3.0.13",
|
|
51
52
|
"@types/react-dom": "^19.0.4",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
53
|
-
"@typescript-eslint/parser": "^8.
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.25.0",
|
|
54
|
+
"@typescript-eslint/parser": "^8.25.0",
|
|
54
55
|
"@vitejs/plugin-react": "^4.3.4",
|
|
55
56
|
"eslint": "^9.21.0",
|
|
56
|
-
"eslint-plugin-react-hooks": "^5.
|
|
57
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
57
58
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
58
59
|
"glob": "^11.0.1",
|
|
59
60
|
"globals": "^16.0.0",
|
|
60
|
-
"typescript": "^5.
|
|
61
|
-
"vite": "^6.
|
|
62
|
-
"vite-plugin-dts": "^4.5.
|
|
61
|
+
"typescript": "^5.8.2",
|
|
62
|
+
"vite": "^6.2.0",
|
|
63
|
+
"vite-plugin-dts": "^4.5.3",
|
|
63
64
|
"workbox-build": "^7.3.0",
|
|
64
65
|
"workbox-webpack-plugin": "^7.3.0"
|
|
65
66
|
},
|