@dartech/arsenal-ui 0.3.37 → 0.3.39

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/package.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "0.3.37",
3
+ "version": "0.3.39",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
8
  "license": "ISC",
9
+ "module": "./index.js",
10
+ "main": "./index.js",
11
+ "type": "module",
12
+ "types": "./index.d.ts",
9
13
  "dependencies": {
10
- "react": "18.2.0",
11
- "react-hook-form": "^7.5.2",
12
- "@mui/x-date-pickers": "^5.0.0-alpha.0",
13
- "@mui/x-data-grid": "^5.17.18",
14
- "@mui/icons-material": "^5.11.0",
15
- "@mui/lab": "^5.0.0-alpha.114",
16
- "@mui/material": "^5.11.7",
17
- "@emotion/react": "^11.10.5",
18
- "@emotion/styled": "^11.10.5",
19
- "date-fns": "^2.22.1",
20
- "react-ace": "^10.1.0",
21
- "ace-builds": "^1.5.3",
22
- "react-router-dom": "6.8.0",
23
- "react-toastify": "^9.1.1",
24
- "classnames": "^2.3.1",
25
- "@tanstack/react-query": "^4.24.10",
14
+ "@emotion/react": "11.10.6",
15
+ "@emotion/styled": "11.10.6",
16
+ "@mui/icons-material": "5.11.16",
17
+ "@mui/lab": "5.0.0-alpha.125",
18
+ "@mui/material": "5.11.16",
19
+ "@mui/x-data-grid": "5.17.26",
20
+ "@mui/x-date-pickers": "5.0.20",
26
21
  "@rollup/plugin-node-resolve": "13.3.0",
22
+ "@tanstack/react-query": "4.29.1",
23
+ "ace-builds": "1.16.0",
24
+ "classnames": "2.3.2",
25
+ "date-fns": "2.29.3",
27
26
  "qs": "6.11.0",
27
+ "react": "18.2.0",
28
+ "react-ace": "10.1.0",
29
+ "react-hook-form": "7.43.9",
30
+ "react-router-dom": "6.10.0",
31
+ "react-toastify": "9.1.2",
28
32
  "tss-react": "4.6.0"
29
33
  },
30
- "module": "./index.js",
31
- "main": "./index.js",
32
- "type": "module",
33
- "types": "./index.d.ts",
34
34
  "peerDependencies": {}
35
35
  }
@@ -1,10 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { Theme } from '@mui/material/styles';
3
2
  import type { Route } from '../../interfaces';
4
3
  type Props = {
5
4
  routes: Route[];
6
- theme?: Theme;
5
+ theme?: any;
7
6
  title?: string;
8
7
  };
9
- export declare const Sidebar: ({ routes, theme: customTheme, title }: Props) => JSX.Element;
8
+ export declare const Sidebar: ({ routes, theme, title }: Props) => JSX.Element;
10
9
  export {};
@@ -1,6 +1,15 @@
1
1
  /// <reference types="react" />
2
- export declare const Drawer: import("@emotion/styled").StyledComponent<import("@mui/material").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
3
- export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
2
+ export declare const Drawer: import("@emotion/styled").StyledComponent<import("@mui/material/Drawer").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
3
+ export declare const Header: import("@emotion/styled").StyledComponent<{
4
+ children?: import("react").ReactNode;
5
+ classes?: Partial<import("@mui/material/Toolbar").ToolbarClasses>;
6
+ disableGutters?: boolean;
7
+ variant?: "regular" | "dense";
8
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
9
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
+ ref?: import("react").Ref<HTMLDivElement>;
11
+ }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "disableGutters" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
12
+ export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material/ListItemButton").ListItemButtonBaseProps & Omit<{
4
13
  action?: import("react").Ref<import("@mui/material").ButtonBaseActions>;
5
14
  centerRipple?: boolean;
6
15
  children?: import("react").ReactNode;
@@ -12,50 +21,50 @@ export declare const ListItemButton: import("@emotion/styled").StyledComponent<i
12
21
  focusVisibleClassName?: string;
13
22
  LinkComponent?: import("react").ElementType<any>;
14
23
  onFocusVisible?: import("react").FocusEventHandler<any>;
15
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
24
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
16
25
  tabIndex?: number;
17
26
  TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
18
27
  touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
19
28
  }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
20
29
  ref?: import("react").Ref<HTMLDivElement>;
21
- }, "classes" | "children" | "style" | "className" | "tabIndex" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "dense" | "disableGutters" | "divider" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
30
+ }, "classes" | "children" | "style" | "className" | "tabIndex" | "sx" | "alignItems" | "disableGutters" | "dense" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "divider" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
22
31
  export declare const List: import("@emotion/styled").StyledComponent<{
23
32
  children?: import("react").ReactNode;
24
- classes?: Partial<import("@mui/material").ListClasses>;
33
+ classes?: Partial<import("@mui/material/List").ListClasses>;
25
34
  dense?: boolean;
26
35
  disablePadding?: boolean;
27
36
  subheader?: import("react").ReactNode;
28
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
37
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
29
38
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
30
39
  ref?: import("react").Ref<HTMLUListElement>;
31
- }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
40
+ }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
32
41
  export declare const ListItem: import("@emotion/styled").StyledComponent<{
33
42
  button?: false;
34
- } & import("@mui/material").ListItemBaseProps & {
43
+ } & import("@mui/material/ListItem").ListItemBaseProps & {
35
44
  components?: {
36
45
  Root?: import("react").ElementType<any>;
37
46
  };
38
47
  componentsProps?: {
39
- root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides;
48
+ root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material/ListItem").ListItemComponentsPropsOverrides;
40
49
  };
41
50
  slotProps?: {
42
- root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides;
51
+ root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material/ListItem").ListItemComponentsPropsOverrides;
43
52
  };
44
53
  slots?: {
45
54
  root?: import("react").ElementType<any>;
46
55
  };
47
56
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
48
57
  ref?: import("react").Ref<HTMLLIElement>;
49
- }, "classes" | "slotProps" | "children" | "slots" | "button" | "style" | "className" | "components" | "componentsProps" | "sx" | "alignItems" | "disabled" | "autoFocus" | "dense" | "disableGutters" | "divider" | "selected" | "disablePadding" | "ContainerComponent" | "ContainerProps" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
50
- export declare const ListItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
58
+ }, "classes" | "slotProps" | "children" | "slots" | "button" | "style" | "className" | "components" | "componentsProps" | "sx" | "alignItems" | "disableGutters" | "dense" | "disabled" | "autoFocus" | "divider" | "selected" | "disablePadding" | "ContainerComponent" | "ContainerProps" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
59
+ export declare const ListItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material/ListItemIcon").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
51
60
  export declare const ListSubheader: import("@emotion/styled").StyledComponent<{
52
61
  children?: import("react").ReactNode;
53
- classes?: Partial<import("@mui/material").ListSubheaderClasses>;
62
+ classes?: Partial<import("@mui/material/ListSubheader").ListSubheaderClasses>;
54
63
  color?: "inherit" | "default" | "primary";
55
64
  disableGutters?: boolean;
56
65
  disableSticky?: boolean;
57
66
  inset?: boolean;
58
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
67
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
59
68
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
60
69
  ref?: import("react").Ref<HTMLLIElement>;
61
- }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "sx" | "inset" | "disableGutters" | "disableSticky"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
70
+ }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "sx" | "inset" | "disableGutters" | "disableSticky"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1,7 +1,6 @@
1
- import { SortDirection } from '@mui/material';
2
1
  declare const useTableSorting: () => {
3
2
  sortParams: string[][];
4
3
  onSortChanged: (sortKey: string) => void;
5
- getColumnSorting: (sortKey: string) => SortDirection;
4
+ getColumnSorting: (sortKey: string) => string | false;
6
5
  };
7
6
  export default useTableSorting;
@@ -1,2 +1,2 @@
1
- declare const _default: import("@mui/material").Theme;
1
+ declare const _default: import("@mui/material/styles").Theme;
2
2
  export default _default;
@@ -1 +1 @@
1
- export declare const theme: import("@mui/material").Theme;
1
+ export declare const theme: import("@mui/material/styles").Theme;
@@ -1,3 +1,117 @@
1
- import { ThemeOptions } from '@mui/material';
2
- declare const inputThemeOptions: ThemeOptions;
1
+ declare const inputThemeOptions: {
2
+ components: {
3
+ MuiButton: {
4
+ styleOverrides: {
5
+ root: {
6
+ lineHeight: number;
7
+ };
8
+ };
9
+ };
10
+ MuiInputBase: {
11
+ styleOverrides: {
12
+ root: {
13
+ borderRadius: string;
14
+ minWidth: string;
15
+ background: string;
16
+ };
17
+ input: {
18
+ minWidth: string;
19
+ };
20
+ };
21
+ };
22
+ MuiSelect: {
23
+ styleOverrides: {
24
+ nativeInput: {
25
+ padding: number;
26
+ height: string;
27
+ };
28
+ };
29
+ };
30
+ MuiTextField: {
31
+ styleOverrides: {
32
+ root: {
33
+ minWidth: string;
34
+ };
35
+ };
36
+ };
37
+ MuiInputLabel: {
38
+ styleOverrides: {
39
+ root: {
40
+ position: string;
41
+ overflow: string;
42
+ transform: string;
43
+ marginBottom: string;
44
+ fontWeight: number;
45
+ fontSize: string;
46
+ lineHeight: string;
47
+ };
48
+ };
49
+ };
50
+ MuiOutlinedInput: {
51
+ styleOverrides: {
52
+ root: {
53
+ borderRadius: string;
54
+ minWidth: string;
55
+ };
56
+ notchedOutline: {
57
+ top: number;
58
+ '& legend': {
59
+ display: string;
60
+ transition: string;
61
+ };
62
+ };
63
+ };
64
+ };
65
+ MuiAutocomplete: {
66
+ styleOverrides: {
67
+ paper: {
68
+ marginTop: number;
69
+ borderRadius: number;
70
+ boxShadow: string;
71
+ };
72
+ listbox: {
73
+ '::-webkit-scrollbar': {
74
+ width: string;
75
+ backgroundColor: string;
76
+ };
77
+ '::-webkit-scrollbar-thumb': {
78
+ borderRadius: string;
79
+ backgroundColor: string;
80
+ };
81
+ };
82
+ };
83
+ };
84
+ MuiMenu: {
85
+ styleOverrides: {
86
+ list: {
87
+ paddingTop: number;
88
+ paddingBottom: number;
89
+ background: string;
90
+ '& li.Mui-selected': {
91
+ background: string;
92
+ };
93
+ };
94
+ };
95
+ };
96
+ MuiPopover: {
97
+ styleOverrides: {
98
+ paper: {
99
+ marginTop: number;
100
+ borderRadius: number;
101
+ boxShadow: string;
102
+ };
103
+ };
104
+ };
105
+ MuiFormLabel: {
106
+ styleOverrides: {
107
+ asterisk: {
108
+ color: string;
109
+ '&$error': {
110
+ color: string;
111
+ };
112
+ };
113
+ };
114
+ };
115
+ };
116
+ };
3
117
  export default inputThemeOptions;
@@ -1,3 +1,16 @@
1
- import { ThemeOptions } from '@mui/material';
2
- declare const stepperThemeOptions: ThemeOptions;
1
+ declare const stepperThemeOptions: {
2
+ components: {
3
+ MuiStepIcon: {
4
+ styleOverrides: {
5
+ root: {
6
+ fontSize: string;
7
+ color: string;
8
+ '&.Mui-active, &.Mui-completed': {
9
+ color: string;
10
+ };
11
+ };
12
+ };
13
+ };
14
+ };
15
+ };
3
16
  export default stepperThemeOptions;
@@ -1,3 +1,47 @@
1
- import { ThemeOptions } from '@mui/material';
2
- declare const tableThemeOptions: ThemeOptions;
1
+ declare const tableThemeOptions: {
2
+ components: {
3
+ MuiTableContainer: {
4
+ styleOverrides: {
5
+ root: {
6
+ borderRadius: string;
7
+ border: string;
8
+ };
9
+ };
10
+ };
11
+ MuiTableHead: {
12
+ styleOverrides: {
13
+ root: {
14
+ backgroundColor: string;
15
+ };
16
+ };
17
+ };
18
+ MuiTableCell: {
19
+ styleOverrides: {
20
+ root: {
21
+ minHeight: number;
22
+ padding: string;
23
+ '&:first-of-type': {
24
+ paddingLeft: string;
25
+ };
26
+ };
27
+ head: {
28
+ maxHeight: string;
29
+ padding: string;
30
+ color: string;
31
+ };
32
+ body: {
33
+ wordBreak: string;
34
+ };
35
+ };
36
+ };
37
+ MuiTableSortLabel: {
38
+ styleOverrides: {
39
+ root: {
40
+ maxHeight: string;
41
+ lineHeight: number;
42
+ };
43
+ };
44
+ };
45
+ };
46
+ };
3
47
  export default tableThemeOptions;
@@ -1,3 +1,29 @@
1
- import { ThemeOptions } from '@mui/material';
2
- declare const typographyThemeOptions: ThemeOptions;
1
+ declare const typographyThemeOptions: {
2
+ components: {
3
+ MuiTypography: {
4
+ styleOverrides: {
5
+ h1: {
6
+ [x: string]: {
7
+ fontSize: string;
8
+ };
9
+ };
10
+ h3: {
11
+ [x: string]: string | {
12
+ fontSize: string;
13
+ };
14
+ fontSize: string;
15
+ };
16
+ h4: {
17
+ [x: string]: string | {
18
+ fontSize: string;
19
+ };
20
+ fontSize: string;
21
+ };
22
+ subtitle2: {
23
+ color: string;
24
+ };
25
+ };
26
+ };
27
+ };
28
+ };
3
29
  export default typographyThemeOptions;