@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
package/dist/App.d.ts
CHANGED
|
@@ -1,65 +1,2 @@
|
|
|
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
1
|
declare function App(): import("react/jsx-runtime").JSX.Element;
|
|
65
2
|
export default App;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { DataStructure } from '
|
|
2
|
-
|
|
1
|
+
import { DataStructure } from './dynamicTableData';
|
|
2
|
+
type MultiDynamicTableProps = {
|
|
3
3
|
tableData: DataStructure;
|
|
4
|
-
|
|
4
|
+
rowsPerPage: number;
|
|
5
|
+
page: number;
|
|
6
|
+
handleChangePage: (event: unknown, newPage: number) => void;
|
|
7
|
+
handleChangeRowsPerPage: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const MultiDynamicTable: React.FC<MultiDynamicTableProps>;
|
|
5
10
|
export default MultiDynamicTable;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface DatePickerProps {
|
|
2
|
+
date: string;
|
|
3
|
+
onChange: (parentItem: FieldItem, timeValue: Date) => void;
|
|
4
|
+
}
|
|
5
|
+
export interface FieldContentActionsProps {
|
|
6
|
+
label: string;
|
|
7
|
+
onClick: (data: FieldItem) => void;
|
|
8
|
+
icon: React.ReactNode;
|
|
9
|
+
variant: "contained" | "outlined";
|
|
10
|
+
}
|
|
11
|
+
export interface FieldItem {
|
|
12
|
+
id: number;
|
|
13
|
+
fieldName: string;
|
|
14
|
+
fieldType: string;
|
|
15
|
+
fieldContent: string | FieldContentActionsProps[] | DatePickerProps;
|
|
16
|
+
isDefault: boolean;
|
|
17
|
+
isVisible: boolean;
|
|
18
|
+
to?: string;
|
|
19
|
+
}
|
|
20
|
+
export type FieldItemArray = FieldItem[];
|
|
21
|
+
export type DataStructure = FieldItemArray[];
|
|
22
|
+
export declare const dynamicTableData: DataStructure;
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
export interface DatePickerProps {
|
|
2
|
-
date: string;
|
|
3
|
-
onChange: (parentItem: FieldItem, timeValue: Date) => void;
|
|
4
|
-
}
|
|
5
|
-
export interface FieldContentActionsProps {
|
|
6
|
-
label: string;
|
|
7
|
-
onClick: (data: FieldItem) => void;
|
|
8
|
-
icon: React.ReactNode;
|
|
9
|
-
variant: "contained" | "outlined";
|
|
10
|
-
}
|
|
11
|
-
export interface FieldItem {
|
|
12
|
-
id: number;
|
|
13
|
-
fieldName: string;
|
|
14
|
-
fieldType: string;
|
|
15
|
-
fieldContent: string | FieldContentActionsProps[] | DatePickerProps;
|
|
16
|
-
isDefault: boolean;
|
|
17
|
-
isVisible: boolean;
|
|
18
|
-
to?: string;
|
|
19
|
-
}
|
|
20
|
-
export type FieldItemArray = FieldItem[];
|
|
21
|
-
export type DataStructure = FieldItemArray[];
|
|
22
1
|
declare const Tables: () => import("react/jsx-runtime").JSX.Element;
|
|
23
2
|
export default Tables;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IMenuConfig, ISettingsConfig } from '../dummyData';
|
|
3
|
-
interface
|
|
3
|
+
interface IUser {
|
|
4
|
+
name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
image: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IUserManage {
|
|
9
|
+
user: IUser;
|
|
10
|
+
redirectUrl: string;
|
|
11
|
+
logoutHandler: () => void;
|
|
12
|
+
}
|
|
13
|
+
export interface ILayoutConfig {
|
|
4
14
|
navbar: {
|
|
5
15
|
showHamburgerInMobile: boolean;
|
|
6
16
|
themeToggler: boolean;
|
|
17
|
+
userManage?: IUserManage;
|
|
7
18
|
};
|
|
8
19
|
sideDrawer: {
|
|
9
20
|
menuConfig: IMenuConfig[];
|
|
@@ -15,7 +26,7 @@ interface LayoutConfig {
|
|
|
15
26
|
}
|
|
16
27
|
export interface IMainLayout {
|
|
17
28
|
children: React.ReactNode;
|
|
18
|
-
layoutConfig:
|
|
29
|
+
layoutConfig: ILayoutConfig;
|
|
19
30
|
}
|
|
20
31
|
declare const MainLayout: React.FC<IMainLayout>;
|
|
21
32
|
export default MainLayout;
|
|
@@ -3,6 +3,7 @@ export interface MenuItem {
|
|
|
3
3
|
label: string;
|
|
4
4
|
icon: React.ReactElement<SvgIconProps>;
|
|
5
5
|
link: string;
|
|
6
|
+
children?: MenuItem[];
|
|
6
7
|
}
|
|
7
8
|
export interface IMenuConfig {
|
|
8
9
|
items: MenuItem[];
|
|
@@ -12,4 +13,11 @@ export interface ISettingsConfig {
|
|
|
12
13
|
footerText: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const menuConfig: IMenuConfig[];
|
|
16
|
+
export interface ISettingsConfig {
|
|
17
|
+
logo: string;
|
|
18
|
+
title: string;
|
|
19
|
+
subTitle: string;
|
|
20
|
+
moduleName: string;
|
|
21
|
+
footerText: string;
|
|
22
|
+
}
|
|
15
23
|
export declare const settingsConfig: ISettingsConfig;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const StyledComponent:
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
declare const StyledComponent: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<Theme>> & import('@mui/system').MUIStyledCommonProps<Theme> & import('@mui/material').ContainerOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "maxWidth" | "children" | "sx" | "style" | "className" | "fixed" | "classes" | "disableGutters"> & {
|
|
3
|
+
component?: React.ElementType;
|
|
4
|
+
}, {}, {}>;
|
|
3
5
|
export default StyledComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
|
+
export { default as ThemeSetting } from './components/ThemeSetting';
|
|
2
|
+
export { default as AsyncAutocomplete } from './components/ui/AsyncAutocomplete';
|
|
3
|
+
export { default as CheckboxListWithAvatar } from './components/ui/CheckboxListWithAvatar';
|
|
4
|
+
export { default as ControlledDatePicker } from './components/ui/ControlledDatePicker';
|
|
5
|
+
export { default as CustomCheckbox } from './components/ui/CustomCheckbox';
|
|
6
|
+
export { default as CustomColorPicker } from './components/ui/CustomColorPicker';
|
|
7
|
+
export { default as CustomDatePicker } from './components/ui/CustomDatePicker';
|
|
8
|
+
export { default as CustomIconButton } from './components/ui/CustomIconButton';
|
|
9
|
+
export { default as CustomInput } from './components/ui/CustomInput';
|
|
10
|
+
export { default as CustomRadioGroup } from './components/ui/CustomRadioGroup';
|
|
11
|
+
export { default as CustomScrollbar } from './components/ui/CustomScrollbar';
|
|
12
|
+
export { default as CustomSelect } from './components/ui/CustomSelect';
|
|
13
|
+
export { default as CustomSelectableList } from './components/ui/CustomSelectableList';
|
|
14
|
+
export { default as CustomSwitch } from './components/ui/CustomSwitch';
|
|
15
|
+
export { default as CustomTabs } from './components/ui/CustomTabs';
|
|
16
|
+
export { default as CustomTextField } from './components/ui/CustomTextfield';
|
|
17
|
+
export { default as CustomButton } from './components/ui/CustomButton';
|
|
1
18
|
export { default as MainLayout } from './components/layout/MainLayout';
|
|
2
19
|
export { default as MainlayoutWithWrapper } from './components/layout/MainlayoutWithWrapper';
|
|
3
20
|
export { default as MultiDynamicTable } from './components/MultiDynamicTable/MultiDynamicTable';
|
|
4
21
|
export { default as ProfilePages } from './components/ProfilePages';
|
|
22
|
+
export { default as RoutesConfigLayout } from './routes/RoutesConfigLayout';
|
|
5
23
|
export { default as ThemeCustomization } from './theme/ThemeCustomization';
|